From e486815ab0d2adb98b2621747af7e2f4c84b7432 Mon Sep 17 00:00:00 2001 From: Copple <10214025+kiwicopple@users.noreply.github.com> Date: Fri, 23 Sep 2022 11:40:07 +0200 Subject: [PATCH] Docs: hide generated (#9078) * removes all generated files * ignore all generated files * moves the docs generator into docusaurus * clean up old files from the generator * generator -> parser * Adds the latest spec * fixing generated path * updates specs * delete generated files * keep the generated folder * keep generated folder * Adds a dart generator * Addds new auth doc for Dart v1 * Adds postgrest method in Dart doc * Adds realtime docs to Dart v1 * Adds storage docs to Dart doc * Adds filters and modifiers to Dart docs spec file * fix: label used in dart sidebar to match spec file for Dart docs * final items for generator * Adds a build command * Adds typescript * fix broken links * fix build * fix import error * lowercase helpers * clean missing file Co-authored-by: dshukertjr <18113850+dshukertjr@users.noreply.github.com> --- apps/reference/.gitignore | 3 +- apps/reference/_api/usage.mdx | 103 +- .../generated}/.gitkeep | 0 apps/reference/_cli/generated/config.mdx | 337 - apps/reference/_cli/generated/usage.mdx | 1008 - apps/reference/_gotrue/config.mdx | 237 +- apps/reference/_storage/generated/config.mdx | 264 - apps/reference/_storage/generated/usage.mdx | 3452 -- .../generated/auth-onauthstatechange.mdx | 29 - .../_supabase_dart/generated/auth-session.mdx | 23 - .../_supabase_dart/generated/auth-signin.mdx | 54 - .../generated/auth-signinwithprovider.mdx | 55 - .../_supabase_dart/generated/auth-signout.mdx | 23 - .../_supabase_dart/generated/auth-signup.mdx | 38 - .../_supabase_dart/generated/auth-update.mdx | 28 - .../_supabase_dart/generated/auth-user.mdx | 23 - .../_supabase_dart/generated/containedby.mdx | 54 - .../_supabase_dart/generated/contains.mdx | 54 - .../_supabase_dart/generated/delete.mdx | 33 - .../reference/_supabase_dart/generated/eq.mdx | 56 - .../_supabase_dart/generated/filter.mdx | 75 - .../_supabase_dart/generated/getchannels.mdx | 23 - .../reference/_supabase_dart/generated/gt.mdx | 56 - .../_supabase_dart/generated/gte.mdx | 56 - .../_supabase_dart/generated/ilike.mdx | 56 - .../_supabase_dart/generated/in_.mdx | 58 - .../_supabase_dart/generated/index.mdx | 11 - .../_supabase_dart/generated/insert.mdx | 48 - .../_supabase_dart/generated/invoke.mdx | 57 - .../_supabase_dart/generated/is_.mdx | 58 - .../_supabase_dart/generated/like.mdx | 102 - .../_supabase_dart/generated/limit.mdx | 39 - .../reference/_supabase_dart/generated/lt.mdx | 56 - .../_supabase_dart/generated/lte.mdx | 102 - .../_supabase_dart/generated/match.mdx | 56 - .../_supabase_dart/generated/neq.mdx | 56 - .../_supabase_dart/generated/not.mdx | 68 - .../reference/_supabase_dart/generated/or.mdx | 48 - .../_supabase_dart/generated/order.mdx | 39 - .../_supabase_dart/generated/overlaps.mdx | 54 - .../_supabase_dart/generated/range.mdx | 29 - .../generated/rangeadjacent.mdx | 54 - .../_supabase_dart/generated/rangegt.mdx | 54 - .../_supabase_dart/generated/rangegte.mdx | 54 - .../_supabase_dart/generated/rangelt.mdx | 54 - .../_supabase_dart/generated/rangelte.mdx | 54 - .../generated/removeallchannels.mdx | 27 - .../generated/removechannel.mdx | 27 - .../generated/reset-password-email.mdx | 55 - .../_supabase_dart/generated/rpc.mdx | 48 - .../_supabase_dart/generated/select.mdx | 133 - .../_supabase_dart/generated/single.mdx | 29 - .../generated/storage-createbucket.mdx | 33 - .../generated/storage-deletebucket.mdx | 33 - .../generated/storage-emptybucket.mdx | 33 - .../storage-from-createsignedurl.mdx | 35 - .../generated/storage-from-download.mdx | 35 - .../generated/storage-from-getpublicurl.mdx | 36 - .../generated/storage-from-list.mdx | 35 - .../generated/storage-from-move.mdx | 35 - .../generated/storage-from-remove.mdx | 35 - .../generated/storage-from-update.mdx | 40 - .../generated/storage-from-upload.mdx | 168 - .../generated/storage-getbucket.mdx | 59 - .../generated/storage-listbuckets.mdx | 33 - .../generated/storage-updatebucket.mdx | 33 - .../_supabase_dart/generated/stream.mdx | 106 - .../_supabase_dart/generated/subscribe.mdx | 120 - .../_supabase_dart/generated/textsearch.mdx | 73 - .../_supabase_dart/generated/update.mdx | 52 - .../_supabase_dart/generated/upsert.mdx | 59 - .../generated/using-filters.mdx | 41 - .../generated/using-modifiers.mdx | 13 - .../reference/_supabase_dart/initializing.mdx | 3 +- apps/reference/_supabase_dart/installing.mdx | 3 +- .../generated/auth-onauthstatechange.mdx | 29 - .../version-v0/generated/auth-session.mdx | 23 - .../version-v0/generated/auth-signin.mdx | 59 - .../generated/auth-signinwithprovider.mdx | 63 - .../version-v0/generated/auth-signout.mdx | 27 - .../version-v0/generated/auth-signup.mdx | 40 - .../version-v0/generated/auth-update.mdx | 36 - .../version-v0/generated/auth-user.mdx | 23 - .../version-v0/generated/containedby.mdx | 59 - .../version-v0/generated/contains.mdx | 59 - .../version-v0/generated/delete.mdx | 35 - .../version-v0/generated/eq.mdx | 61 - .../version-v0/generated/filter.mdx | 80 - .../version-v0/generated/getsubscriptions.mdx | 23 - .../version-v0/generated/gt.mdx | 61 - .../version-v0/generated/gte.mdx | 61 - .../version-v0/generated/ilike.mdx | 61 - .../version-v0/generated/in_.mdx | 63 - .../version-v0/generated/index.mdx | 11 - .../version-v0/generated/initializing.mdx | 37 - .../version-v0/generated/insert.mdx | 48 - .../version-v0/generated/installing.mdx | 32 - .../version-v0/generated/invoke.mdx | 60 - .../version-v0/generated/is_.mdx | 63 - .../version-v0/generated/like.mdx | 107 - .../version-v0/generated/limit.mdx | 42 - .../version-v0/generated/lt.mdx | 61 - .../version-v0/generated/lte.mdx | 107 - .../version-v0/generated/match.mdx | 61 - .../version-v0/generated/neq.mdx | 61 - .../version-v0/generated/not.mdx | 73 - .../version-v0/generated/or.mdx | 51 - .../version-v0/generated/order.mdx | 42 - .../version-v0/generated/overlaps.mdx | 59 - .../version-v0/generated/range.mdx | 31 - .../version-v0/generated/rangeadjacent.mdx | 59 - .../version-v0/generated/rangegt.mdx | 59 - .../version-v0/generated/rangegte.mdx | 59 - .../version-v0/generated/rangelt.mdx | 59 - .../version-v0/generated/rangelte.mdx | 59 - .../generated/removesubscription.mdx | 27 - .../generated/reset-password-email.mdx | 61 - .../version-v0/generated/rpc.mdx | 51 - .../version-v0/generated/select.mdx | 147 - .../version-v0/generated/single.mdx | 31 - .../generated/storage-createbucket.mdx | 33 - .../generated/storage-deletebucket.mdx | 33 - .../generated/storage-emptybucket.mdx | 33 - .../storage-from-createsignedurl.mdx | 39 - .../generated/storage-from-download.mdx | 35 - .../generated/storage-from-getpublicurl.mdx | 40 - .../generated/storage-from-list.mdx | 35 - .../generated/storage-from-move.mdx | 35 - .../generated/storage-from-remove.mdx | 35 - .../generated/storage-from-update.mdx | 43 - .../generated/storage-from-upload.mdx | 112 - .../generated/storage-getbucket.mdx | 59 - .../generated/storage-listbuckets.mdx | 33 - .../generated/storage-updatebucket.mdx | 33 - .../version-v0/generated/stream.mdx | 67 - .../version-v0/generated/subscribe.mdx | 119 - .../version-v0/generated/textsearch.mdx | 77 - .../version-v0/generated/update.mdx | 55 - .../version-v0/generated/upsert.mdx | 62 - .../version-v0/generated/using-filters.mdx | 44 - .../version-v0/generated/using-modifiers.mdx | 13 - .../generated/auth-admin-createuser.mdx | 263 - .../generated/auth-admin-deleteuser.mdx | 59 - .../generated/auth-admin-generatelink.mdx | 183 - .../generated/auth-admin-getuserbyid.mdx | 56 - .../auth-admin-inviteuserbyemail.mdx | 122 - .../generated/auth-admin-listusers.mdx | 31 - .../generated/auth-admin-updateuserbyid.mdx | 303 - .../generated/auth-getsession.mdx | 24 - .../_supabase_js/generated/auth-getuser.mdx | 66 - .../generated/auth-onauthstatechange.mdx | 105 - .../generated/auth-resetpasswordforemail.mdx | 160 - .../generated/auth-setsession.mdx | 58 - .../generated/auth-signinwithoauth.mdx | 197 - .../generated/auth-signinwithotp.mdx | 321 - .../generated/auth-signinwithpassword.mdx | 299 - .../_supabase_js/generated/auth-signout.mdx | 31 - .../_supabase_js/generated/auth-signup.mdx | 371 - .../generated/auth-updateuser.mdx | 164 - .../_supabase_js/generated/auth-verifyotp.mdx | 117 - .../_supabase_js/generated/containedby.mdx | 179 - .../_supabase_js/generated/contains.mdx | 180 - .../_supabase_js/generated/db-abortsignal.mdx | 37 - .../_supabase_js/generated/db-csv.mdx | 11 - .../_supabase_js/generated/db-explain.mdx | 211 - .../_supabase_js/generated/db-geojson.mdx | 11 - .../generated/db-modifiers-select.mdx | 41 - .../_supabase_js/generated/db-rollback.mdx | 13 - .../_supabase_js/generated/delete.mdx | 166 - apps/reference/_supabase_js/generated/eq.mdx | 104 - .../_supabase_js/generated/filter.mdx | 612 - .../_supabase_js/generated/getchannels.mdx | 23 - apps/reference/_supabase_js/generated/gt.mdx | 102 - apps/reference/_supabase_js/generated/gte.mdx | 102 - .../_supabase_js/generated/ilike.mdx | 102 - apps/reference/_supabase_js/generated/in.mdx | 102 - .../_supabase_js/generated/index.mdx | 11 - .../_supabase_js/generated/initializing.mdx | 437 - .../_supabase_js/generated/insert.mdx | 242 - .../_supabase_js/generated/invoke.mdx | 312 - apps/reference/_supabase_js/generated/is.mdx | 103 - .../reference/_supabase_js/generated/like.mdx | 102 - .../_supabase_js/generated/limit.mdx | 111 - apps/reference/_supabase_js/generated/lt.mdx | 102 - apps/reference/_supabase_js/generated/lte.mdx | 102 - .../_supabase_js/generated/match.mdx | 84 - .../_supabase_js/generated/maybesingle.mdx | 34 - apps/reference/_supabase_js/generated/neq.mdx | 102 - apps/reference/_supabase_js/generated/not.mdx | 140 - apps/reference/_supabase_js/generated/or.mdx | 135 - .../_supabase_js/generated/order.mdx | 157 - .../_supabase_js/generated/overlaps.mdx | 159 - .../_supabase_js/generated/range.mdx | 121 - .../_supabase_js/generated/rangeadjacent.mdx | 104 - .../_supabase_js/generated/rangegt.mdx | 103 - .../_supabase_js/generated/rangegte.mdx | 104 - .../_supabase_js/generated/rangelt.mdx | 103 - .../_supabase_js/generated/rangelte.mdx | 104 - .../generated/removeallchannels.mdx | 27 - .../_supabase_js/generated/removechannel.mdx | 838 - apps/reference/_supabase_js/generated/rpc.mdx | 264 - .../_supabase_js/generated/select.mdx | 319 - .../_supabase_js/generated/single.mdx | 34 - .../generated/storage-createbucket.mdx | 105 - .../generated/storage-deletebucket.mdx | 57 - .../generated/storage-emptybucket.mdx | 56 - .../generated/storage-from-copy.mdx | 80 - .../storage-from-createsignedurl.mdx | 80 - .../storage-from-createsignedurls.mdx | 80 - .../generated/storage-from-download.mdx | 60 - .../generated/storage-from-getpublicurl.mdx | 62 - .../generated/storage-from-list.mdx | 225 - .../generated/storage-from-move.mdx | 80 - .../generated/storage-from-remove.mdx | 60 - .../generated/storage-from-update.mdx | 391 - .../generated/storage-from-upload.mdx | 391 - .../generated/storage-getbucket.mdx | 56 - .../generated/storage-listbuckets.mdx | 30 - .../generated/storage-updatebucket.mdx | 105 - .../_supabase_js/generated/subscribe.mdx | 219 - .../generated/supabase-auth-admin-api.mdx | 14 - .../_supabase_js/generated/textsearch.mdx | 250 - .../_supabase_js/generated/update.mdx | 202 - .../_supabase_js/generated/upsert.mdx | 309 - .../_supabase_js/generated/using-filters.mdx | 65 - .../generated/using-modifiers.mdx | 13 - .../version-v1/auth-api-createuser.mdx | 83 - .../version-v1/auth-api-deleteuser.mdx | 60 - .../version-v1/auth-api-generatelink.mdx | 158 - .../version-v1/auth-api-getuser.mdx | 59 - .../version-v1/auth-api-inviteuserbyemail.mdx | 117 - .../version-v1/auth-api-listusers.mdx | 30 - .../auth-api-resetpasswordforemail.mdx | 160 - .../version-v1/auth-api-sendmobileotp.mdx | 115 - .../version-v1/auth-api-updateuserbyid.mdx | 127 - .../version-v1/auth-onauthstatechange.mdx | 101 - .../version-v1/auth-session.mdx | 23 - .../version-v1/auth-setauth.mdx | 110 - .../version-v1/auth-signin.mdx | 275 - .../version-v1/auth-signout.mdx | 26 - .../version-v1/auth-signup.mdx | 189 - .../version-v1/auth-update.mdx | 73 - .../version-v1/auth-user.mdx | 29 - .../version-v1/containedby.mdx | 65 - .../version-v1/contains.mdx | 66 - .../version-v1/delete.mdx | 109 - .../version-v1/eq.mdx | 103 - .../version-v1/filter.mdx | 141 - .../version-v1/generated/.gitkeep | 0 .../version-v1/generating-types.mdx | 20 +- .../version-v1/getsubscriptions.mdx | 23 - .../version-v1/gt.mdx | 103 - .../version-v1/gte.mdx | 103 - .../version-v1/ilike.mdx | 103 - .../version-v1/in.mdx | 103 - .../version-v1/index.mdx | 9 +- .../version-v1/initializing.mdx | 70 +- .../version-v1/insert.mdx | 110 - .../version-v1/installing.mdx | 11 +- .../version-v1/invoke.mdx | 105 - .../version-v1/is.mdx | 98 - .../version-v1/like.mdx | 103 - .../version-v1/limit.mdx | 110 - .../version-v1/lt.mdx | 103 - .../version-v1/lte.mdx | 103 - .../version-v1/match.mdx | 83 - .../version-v1/maybesingle.mdx | 33 - .../version-v1/neq.mdx | 103 - .../version-v1/not.mdx | 134 - .../version-v1/or.mdx | 128 - .../version-v1/order.mdx | 160 - .../version-v1/overlaps.mdx | 65 - .../version-v1/range.mdx | 120 - .../version-v1/rangeadjacent.mdx | 54 - .../version-v1/rangegt.mdx | 54 - .../version-v1/rangegte.mdx | 54 - .../version-v1/rangelt.mdx | 54 - .../version-v1/rangelte.mdx | 54 - .../version-v1/removeallsubscriptions.mdx | 28 - .../version-v1/removesubscription.mdx | 53 - .../version-v1/rpc.mdx | 187 - .../version-v1/select.mdx | 244 - .../version-v1/single.mdx | 32 - .../version-v1/storage-createbucket.mdx | 104 - .../version-v1/storage-deletebucket.mdx | 56 - .../version-v1/storage-emptybucket.mdx | 55 - .../version-v1/storage-from-copy.mdx | 79 - .../storage-from-createsignedurl.mdx | 79 - .../storage-from-createsignedurls.mdx | 79 - .../version-v1/storage-from-download.mdx | 59 - .../version-v1/storage-from-getpublicurl.mdx | 60 - .../version-v1/storage-from-list.mdx | 114 - .../version-v1/storage-from-move.mdx | 79 - .../version-v1/storage-from-remove.mdx | 59 - .../version-v1/storage-from-update.mdx | 123 - .../version-v1/storage-from-upload.mdx | 123 - .../version-v1/storage-getbucket.mdx | 55 - .../version-v1/storage-listbuckets.mdx | 29 - .../version-v1/storage-updatebucket.mdx | 104 - .../version-v1/subscribe.mdx | 165 - .../version-v1/textsearch.mdx | 165 - .../version-v1/update.mdx | 145 - .../version-v1/upsert.mdx | 200 - .../version-v1/using-filters.mdx | 65 - .../version-v1/using-modifiers.mdx | 13 - .../version-v1-sidebars.json | 145 +- .../docs => apps/reference/generator}/api.ts | 8 +- .../docs => apps/reference/generator}/cli.ts | 12 +- .../reference/generator}/config.ts | 13 +- .../reference/generator}/helpers.ts | 4 +- .../reference/generator}/index.ts | 27 +- .../reference/generator/legacy.ts | 32 +- .../generator}/legacy/components/Example.ts | 0 .../generator}/legacy/components/Page.ts | 0 .../generator}/legacy/components/Sidebar.ts | 0 .../legacy/components/SidebarCategory.ts | 0 .../generator}/legacy/components/Tab.ts | 0 .../generator}/legacy/components/Tabs.ts | 0 .../generator}/legacy/definitions.ts | 0 .../generator}/legacy/lib/helpers.ts | 0 .../docs => apps/reference/generator}/sdk.ts | 12 +- .../generator}/templates/ApiTemplate.ts | 0 .../generator}/templates/CliTemplate.ts | 0 .../generator}/templates/ConfigTemplate.ts | 0 .../generator}/templates/SdkTemplate.ts | 0 .../reference/generator}/types/CliSpec.ts | 0 .../reference/generator}/types/ConfigSpec.ts | 0 .../reference/generator}/types/SdkSpec.ts | 0 .../reference/generator}/types/Spec.ts | 0 apps/reference/nav/supabase_dart_sidebars.js | 2 - apps/reference/package-lock.json | 1130 +- apps/reference/package.json | 34 +- apps/reference/tsconfig.json | 7 + spec/Makefile | 53 +- spec/enrichments/tsdoc_v1/combined.json | 43753 +++++----------- spec/enrichments/tsdoc_v1/gotrue.json | 15007 +++--- spec/enrichments/tsdoc_v1/postgrest.json | 9795 ++-- spec/enrichments/tsdoc_v1/supabase.json | 18950 +------ spec/generator/index.ts | 21 - spec/generator/package-lock.json | 3183 -- spec/generator/package.json | 52 - spec/parser/helpers.ts | 41 + spec/parser/package-lock.json | 1352 + spec/parser/package.json | 29 + spec/{generator => parser}/tsconfig.json | 0 spec/{generator => parser}/tsdoc.ts | 2 +- ..._v1_config.yaml => storage_v0_config.yaml} | 2 +- spec/supabase_dart_v0_legacy.yml | 2183 + spec/supabase_dart_v1_legacy.yml | 1095 +- spec/supabase_js_v1_legacy.yml | 192 +- 350 files changed, 29906 insertions(+), 98925 deletions(-) rename apps/reference/{_supabase_js_versioned_docs => _cli/generated}/.gitkeep (100%) delete mode 100644 apps/reference/_cli/generated/config.mdx delete mode 100644 apps/reference/_cli/generated/usage.mdx delete mode 100644 apps/reference/_storage/generated/config.mdx delete mode 100644 apps/reference/_storage/generated/usage.mdx delete mode 100644 apps/reference/_supabase_dart/generated/auth-onauthstatechange.mdx delete mode 100644 apps/reference/_supabase_dart/generated/auth-session.mdx delete mode 100644 apps/reference/_supabase_dart/generated/auth-signin.mdx delete mode 100644 apps/reference/_supabase_dart/generated/auth-signinwithprovider.mdx delete mode 100644 apps/reference/_supabase_dart/generated/auth-signout.mdx delete mode 100644 apps/reference/_supabase_dart/generated/auth-signup.mdx delete mode 100644 apps/reference/_supabase_dart/generated/auth-update.mdx delete mode 100644 apps/reference/_supabase_dart/generated/auth-user.mdx delete mode 100644 apps/reference/_supabase_dart/generated/containedby.mdx delete mode 100644 apps/reference/_supabase_dart/generated/contains.mdx delete mode 100644 apps/reference/_supabase_dart/generated/delete.mdx delete mode 100644 apps/reference/_supabase_dart/generated/eq.mdx delete mode 100644 apps/reference/_supabase_dart/generated/filter.mdx delete mode 100644 apps/reference/_supabase_dart/generated/getchannels.mdx delete mode 100644 apps/reference/_supabase_dart/generated/gt.mdx delete mode 100644 apps/reference/_supabase_dart/generated/gte.mdx delete mode 100644 apps/reference/_supabase_dart/generated/ilike.mdx delete mode 100644 apps/reference/_supabase_dart/generated/in_.mdx delete mode 100644 apps/reference/_supabase_dart/generated/index.mdx delete mode 100644 apps/reference/_supabase_dart/generated/insert.mdx delete mode 100644 apps/reference/_supabase_dart/generated/invoke.mdx delete mode 100644 apps/reference/_supabase_dart/generated/is_.mdx delete mode 100644 apps/reference/_supabase_dart/generated/like.mdx delete mode 100644 apps/reference/_supabase_dart/generated/limit.mdx delete mode 100644 apps/reference/_supabase_dart/generated/lt.mdx delete mode 100644 apps/reference/_supabase_dart/generated/lte.mdx delete mode 100644 apps/reference/_supabase_dart/generated/match.mdx delete mode 100644 apps/reference/_supabase_dart/generated/neq.mdx delete mode 100644 apps/reference/_supabase_dart/generated/not.mdx delete mode 100644 apps/reference/_supabase_dart/generated/or.mdx delete mode 100644 apps/reference/_supabase_dart/generated/order.mdx delete mode 100644 apps/reference/_supabase_dart/generated/overlaps.mdx delete mode 100644 apps/reference/_supabase_dart/generated/range.mdx delete mode 100644 apps/reference/_supabase_dart/generated/rangeadjacent.mdx delete mode 100644 apps/reference/_supabase_dart/generated/rangegt.mdx delete mode 100644 apps/reference/_supabase_dart/generated/rangegte.mdx delete mode 100644 apps/reference/_supabase_dart/generated/rangelt.mdx delete mode 100644 apps/reference/_supabase_dart/generated/rangelte.mdx delete mode 100644 apps/reference/_supabase_dart/generated/removeallchannels.mdx delete mode 100644 apps/reference/_supabase_dart/generated/removechannel.mdx delete mode 100644 apps/reference/_supabase_dart/generated/reset-password-email.mdx delete mode 100644 apps/reference/_supabase_dart/generated/rpc.mdx delete mode 100644 apps/reference/_supabase_dart/generated/select.mdx delete mode 100644 apps/reference/_supabase_dart/generated/single.mdx delete mode 100644 apps/reference/_supabase_dart/generated/storage-createbucket.mdx delete mode 100644 apps/reference/_supabase_dart/generated/storage-deletebucket.mdx delete mode 100644 apps/reference/_supabase_dart/generated/storage-emptybucket.mdx delete mode 100644 apps/reference/_supabase_dart/generated/storage-from-createsignedurl.mdx delete mode 100644 apps/reference/_supabase_dart/generated/storage-from-download.mdx delete mode 100644 apps/reference/_supabase_dart/generated/storage-from-getpublicurl.mdx delete mode 100644 apps/reference/_supabase_dart/generated/storage-from-list.mdx delete mode 100644 apps/reference/_supabase_dart/generated/storage-from-move.mdx delete mode 100644 apps/reference/_supabase_dart/generated/storage-from-remove.mdx delete mode 100644 apps/reference/_supabase_dart/generated/storage-from-update.mdx delete mode 100644 apps/reference/_supabase_dart/generated/storage-from-upload.mdx delete mode 100644 apps/reference/_supabase_dart/generated/storage-getbucket.mdx delete mode 100644 apps/reference/_supabase_dart/generated/storage-listbuckets.mdx delete mode 100644 apps/reference/_supabase_dart/generated/storage-updatebucket.mdx delete mode 100644 apps/reference/_supabase_dart/generated/stream.mdx delete mode 100644 apps/reference/_supabase_dart/generated/subscribe.mdx delete mode 100644 apps/reference/_supabase_dart/generated/textsearch.mdx delete mode 100644 apps/reference/_supabase_dart/generated/update.mdx delete mode 100644 apps/reference/_supabase_dart/generated/upsert.mdx delete mode 100644 apps/reference/_supabase_dart/generated/using-filters.mdx delete mode 100644 apps/reference/_supabase_dart/generated/using-modifiers.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/auth-onauthstatechange.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/auth-session.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/auth-signin.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/auth-signinwithprovider.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/auth-signout.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/auth-signup.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/auth-update.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/auth-user.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/containedby.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/contains.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/delete.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/eq.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/filter.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/getsubscriptions.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/gt.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/gte.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/ilike.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/in_.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/index.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/initializing.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/insert.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/installing.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/invoke.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/is_.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/like.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/limit.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/lt.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/lte.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/match.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/neq.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/not.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/or.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/order.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/overlaps.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/range.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/rangeadjacent.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/rangegt.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/rangegte.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/rangelt.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/rangelte.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/removesubscription.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/reset-password-email.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/rpc.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/select.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/single.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-createbucket.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-deletebucket.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-emptybucket.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-from-createsignedurl.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-from-download.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-from-getpublicurl.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-from-list.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-from-move.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-from-remove.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-from-update.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-from-upload.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-getbucket.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-listbuckets.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-updatebucket.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/stream.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/subscribe.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/textsearch.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/update.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/upsert.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/using-filters.mdx delete mode 100644 apps/reference/_supabase_dart_versioned_docs/version-v0/generated/using-modifiers.mdx delete mode 100644 apps/reference/_supabase_js/generated/auth-admin-createuser.mdx delete mode 100644 apps/reference/_supabase_js/generated/auth-admin-deleteuser.mdx delete mode 100644 apps/reference/_supabase_js/generated/auth-admin-generatelink.mdx delete mode 100644 apps/reference/_supabase_js/generated/auth-admin-getuserbyid.mdx delete mode 100644 apps/reference/_supabase_js/generated/auth-admin-inviteuserbyemail.mdx delete mode 100644 apps/reference/_supabase_js/generated/auth-admin-listusers.mdx delete mode 100644 apps/reference/_supabase_js/generated/auth-admin-updateuserbyid.mdx delete mode 100644 apps/reference/_supabase_js/generated/auth-getsession.mdx delete mode 100644 apps/reference/_supabase_js/generated/auth-getuser.mdx delete mode 100644 apps/reference/_supabase_js/generated/auth-onauthstatechange.mdx delete mode 100644 apps/reference/_supabase_js/generated/auth-resetpasswordforemail.mdx delete mode 100644 apps/reference/_supabase_js/generated/auth-setsession.mdx delete mode 100644 apps/reference/_supabase_js/generated/auth-signinwithoauth.mdx delete mode 100644 apps/reference/_supabase_js/generated/auth-signinwithotp.mdx delete mode 100644 apps/reference/_supabase_js/generated/auth-signinwithpassword.mdx delete mode 100644 apps/reference/_supabase_js/generated/auth-signout.mdx delete mode 100644 apps/reference/_supabase_js/generated/auth-signup.mdx delete mode 100644 apps/reference/_supabase_js/generated/auth-updateuser.mdx delete mode 100644 apps/reference/_supabase_js/generated/auth-verifyotp.mdx delete mode 100644 apps/reference/_supabase_js/generated/containedby.mdx delete mode 100644 apps/reference/_supabase_js/generated/contains.mdx delete mode 100644 apps/reference/_supabase_js/generated/db-abortsignal.mdx delete mode 100644 apps/reference/_supabase_js/generated/db-csv.mdx delete mode 100644 apps/reference/_supabase_js/generated/db-explain.mdx delete mode 100644 apps/reference/_supabase_js/generated/db-geojson.mdx delete mode 100644 apps/reference/_supabase_js/generated/db-modifiers-select.mdx delete mode 100644 apps/reference/_supabase_js/generated/db-rollback.mdx delete mode 100644 apps/reference/_supabase_js/generated/delete.mdx delete mode 100644 apps/reference/_supabase_js/generated/eq.mdx delete mode 100644 apps/reference/_supabase_js/generated/filter.mdx delete mode 100644 apps/reference/_supabase_js/generated/getchannels.mdx delete mode 100644 apps/reference/_supabase_js/generated/gt.mdx delete mode 100644 apps/reference/_supabase_js/generated/gte.mdx delete mode 100644 apps/reference/_supabase_js/generated/ilike.mdx delete mode 100644 apps/reference/_supabase_js/generated/in.mdx delete mode 100644 apps/reference/_supabase_js/generated/index.mdx delete mode 100644 apps/reference/_supabase_js/generated/initializing.mdx delete mode 100644 apps/reference/_supabase_js/generated/insert.mdx delete mode 100644 apps/reference/_supabase_js/generated/invoke.mdx delete mode 100644 apps/reference/_supabase_js/generated/is.mdx delete mode 100644 apps/reference/_supabase_js/generated/like.mdx delete mode 100644 apps/reference/_supabase_js/generated/limit.mdx delete mode 100644 apps/reference/_supabase_js/generated/lt.mdx delete mode 100644 apps/reference/_supabase_js/generated/lte.mdx delete mode 100644 apps/reference/_supabase_js/generated/match.mdx delete mode 100644 apps/reference/_supabase_js/generated/maybesingle.mdx delete mode 100644 apps/reference/_supabase_js/generated/neq.mdx delete mode 100644 apps/reference/_supabase_js/generated/not.mdx delete mode 100644 apps/reference/_supabase_js/generated/or.mdx delete mode 100644 apps/reference/_supabase_js/generated/order.mdx delete mode 100644 apps/reference/_supabase_js/generated/overlaps.mdx delete mode 100644 apps/reference/_supabase_js/generated/range.mdx delete mode 100644 apps/reference/_supabase_js/generated/rangeadjacent.mdx delete mode 100644 apps/reference/_supabase_js/generated/rangegt.mdx delete mode 100644 apps/reference/_supabase_js/generated/rangegte.mdx delete mode 100644 apps/reference/_supabase_js/generated/rangelt.mdx delete mode 100644 apps/reference/_supabase_js/generated/rangelte.mdx delete mode 100644 apps/reference/_supabase_js/generated/removeallchannels.mdx delete mode 100644 apps/reference/_supabase_js/generated/removechannel.mdx delete mode 100644 apps/reference/_supabase_js/generated/rpc.mdx delete mode 100644 apps/reference/_supabase_js/generated/select.mdx delete mode 100644 apps/reference/_supabase_js/generated/single.mdx delete mode 100644 apps/reference/_supabase_js/generated/storage-createbucket.mdx delete mode 100644 apps/reference/_supabase_js/generated/storage-deletebucket.mdx delete mode 100644 apps/reference/_supabase_js/generated/storage-emptybucket.mdx delete mode 100644 apps/reference/_supabase_js/generated/storage-from-copy.mdx delete mode 100644 apps/reference/_supabase_js/generated/storage-from-createsignedurl.mdx delete mode 100644 apps/reference/_supabase_js/generated/storage-from-createsignedurls.mdx delete mode 100644 apps/reference/_supabase_js/generated/storage-from-download.mdx delete mode 100644 apps/reference/_supabase_js/generated/storage-from-getpublicurl.mdx delete mode 100644 apps/reference/_supabase_js/generated/storage-from-list.mdx delete mode 100644 apps/reference/_supabase_js/generated/storage-from-move.mdx delete mode 100644 apps/reference/_supabase_js/generated/storage-from-remove.mdx delete mode 100644 apps/reference/_supabase_js/generated/storage-from-update.mdx delete mode 100644 apps/reference/_supabase_js/generated/storage-from-upload.mdx delete mode 100644 apps/reference/_supabase_js/generated/storage-getbucket.mdx delete mode 100644 apps/reference/_supabase_js/generated/storage-listbuckets.mdx delete mode 100644 apps/reference/_supabase_js/generated/storage-updatebucket.mdx delete mode 100644 apps/reference/_supabase_js/generated/subscribe.mdx delete mode 100644 apps/reference/_supabase_js/generated/supabase-auth-admin-api.mdx delete mode 100644 apps/reference/_supabase_js/generated/textsearch.mdx delete mode 100644 apps/reference/_supabase_js/generated/update.mdx delete mode 100644 apps/reference/_supabase_js/generated/upsert.mdx delete mode 100644 apps/reference/_supabase_js/generated/using-filters.mdx delete mode 100644 apps/reference/_supabase_js/generated/using-modifiers.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/auth-api-createuser.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/auth-api-deleteuser.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/auth-api-generatelink.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/auth-api-getuser.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/auth-api-inviteuserbyemail.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/auth-api-listusers.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/auth-api-resetpasswordforemail.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/auth-api-sendmobileotp.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/auth-api-updateuserbyid.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/auth-onauthstatechange.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/auth-session.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/auth-setauth.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/auth-signin.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/auth-signout.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/auth-signup.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/auth-update.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/auth-user.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/containedby.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/contains.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/delete.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/eq.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/filter.mdx create mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/generated/.gitkeep delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/getsubscriptions.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/gt.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/gte.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/ilike.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/in.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/insert.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/invoke.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/is.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/like.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/limit.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/lt.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/lte.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/match.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/maybesingle.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/neq.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/not.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/or.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/order.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/overlaps.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/range.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/rangeadjacent.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/rangegt.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/rangegte.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/rangelt.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/rangelte.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/removeallsubscriptions.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/removesubscription.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/rpc.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/select.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/single.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/storage-createbucket.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/storage-deletebucket.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/storage-emptybucket.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/storage-from-copy.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/storage-from-createsignedurl.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/storage-from-createsignedurls.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/storage-from-download.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/storage-from-getpublicurl.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/storage-from-list.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/storage-from-move.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/storage-from-remove.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/storage-from-update.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/storage-from-upload.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/storage-getbucket.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/storage-listbuckets.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/storage-updatebucket.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/subscribe.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/textsearch.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/update.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/upsert.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/using-filters.mdx delete mode 100644 apps/reference/_supabase_js_versioned_docs/version-v1/using-modifiers.mdx rename {spec/generator/src/docs => apps/reference/generator}/api.ts (94%) rename {spec/generator/src/docs => apps/reference/generator}/cli.ts (84%) rename {spec/generator/src/docs => apps/reference/generator}/config.ts (76%) rename {spec/generator/src/docs => apps/reference/generator}/helpers.ts (95%) rename {spec/generator/src/docs => apps/reference/generator}/index.ts (54%) rename spec/generator/LegacyReferenceGenerator.ts => apps/reference/generator/legacy.ts (92%) rename {spec/generator/src => apps/reference/generator}/legacy/components/Example.ts (100%) rename {spec/generator/src => apps/reference/generator}/legacy/components/Page.ts (100%) rename {spec/generator/src => apps/reference/generator}/legacy/components/Sidebar.ts (100%) rename {spec/generator/src => apps/reference/generator}/legacy/components/SidebarCategory.ts (100%) rename {spec/generator/src => apps/reference/generator}/legacy/components/Tab.ts (100%) rename {spec/generator/src => apps/reference/generator}/legacy/components/Tabs.ts (100%) rename {spec/generator/src => apps/reference/generator}/legacy/definitions.ts (100%) rename {spec/generator/src => apps/reference/generator}/legacy/lib/helpers.ts (100%) rename {spec/generator/src/docs => apps/reference/generator}/sdk.ts (79%) rename {spec/generator/src/docs => apps/reference/generator}/templates/ApiTemplate.ts (100%) rename {spec/generator/src/docs => apps/reference/generator}/templates/CliTemplate.ts (100%) rename {spec/generator/src/docs => apps/reference/generator}/templates/ConfigTemplate.ts (100%) rename {spec/generator/src/docs => apps/reference/generator}/templates/SdkTemplate.ts (100%) rename {spec/generator/src => apps/reference/generator}/types/CliSpec.ts (100%) rename {spec/generator/src => apps/reference/generator}/types/ConfigSpec.ts (100%) rename {spec/generator/src => apps/reference/generator}/types/SdkSpec.ts (100%) rename {spec/generator/src => apps/reference/generator}/types/Spec.ts (100%) create mode 100644 apps/reference/tsconfig.json delete mode 100644 spec/generator/index.ts delete mode 100644 spec/generator/package-lock.json delete mode 100644 spec/generator/package.json create mode 100644 spec/parser/helpers.ts create mode 100644 spec/parser/package-lock.json create mode 100644 spec/parser/package.json rename spec/{generator => parser}/tsconfig.json (100%) rename spec/{generator => parser}/tsdoc.ts (97%) rename spec/{storage_v1_config.yaml => storage_v0_config.yaml} (99%) create mode 100644 spec/supabase_dart_v0_legacy.yml diff --git a/apps/reference/.gitignore b/apps/reference/.gitignore index 8ea2c34929e..6327667b400 100644 --- a/apps/reference/.gitignore +++ b/apps/reference/.gitignore @@ -19,5 +19,4 @@ npm-debug.log* yarn-debug.log* yarn-error.log* -# _supabase_js/sdk/**/* -# !_supabase_js/sdk/.gitkeep \ No newline at end of file +**/*/generated \ No newline at end of file diff --git a/apps/reference/_api/usage.mdx b/apps/reference/_api/usage.mdx index f9aaa960c54..09584d7a96b 100644 --- a/apps/reference/_api/usage.mdx +++ b/apps/reference/_api/usage.mdx @@ -334,6 +334,9 @@ POST https://api.supabase.com/v1/projects "ap-south-1", "sa-east-1" ] + }, + "kps_enabled": { + "type": "boolean" } }, "required": [ @@ -511,6 +514,18 @@ GET https://api.supabase.com/v1/projects/{ref}/functions ``` + + + + + + + + + + + + @@ -583,7 +598,7 @@ POST https://api.supabase.com/v1/projects/{ref}/functions "properties": { "slug": { "type": "string", - "pattern": {} + "pattern": "/^[A-Za-z0-9_-]+$/" }, "name": { "type": "string" @@ -667,6 +682,18 @@ POST https://api.supabase.com/v1/projects/{ref}/functions ``` + + + + + + + + + + + + @@ -814,6 +841,18 @@ GET https://api.supabase.com/v1/projects/{ref}/functions/{function_slug} ``` + + + + + + + + + + + + @@ -979,6 +1018,18 @@ PATCH https://api.supabase.com/v1/projects/{ref}/functions/{function_slug} ``` + + + + + + + + + + + + @@ -1075,6 +1126,18 @@ DELETE https://api.supabase.com/v1/projects/{ref}/functions/{function_slug} + + + + + + + + + + + + @@ -1176,6 +1239,18 @@ GET https://api.supabase.com/v1/projects/{ref}/secrets ``` + + + + + + + + + + + + @@ -1253,7 +1328,7 @@ POST https://api.supabase.com/v1/projects/{ref}/secrets }, "value": { "type": "string", - "pattern": {} + "pattern": "/^(?!SUPABASE_).*/" } }, "required": [ @@ -1280,6 +1355,18 @@ POST https://api.supabase.com/v1/projects/{ref}/secrets + + + + + + + + + + + + @@ -1379,6 +1466,18 @@ DELETE https://api.supabase.com/v1/projects/{ref}/secrets ``` + + + + + + + + + + + + diff --git a/apps/reference/_supabase_js_versioned_docs/.gitkeep b/apps/reference/_cli/generated/.gitkeep similarity index 100% rename from apps/reference/_supabase_js_versioned_docs/.gitkeep rename to apps/reference/_cli/generated/.gitkeep diff --git a/apps/reference/_cli/generated/config.mdx b/apps/reference/_cli/generated/config.mdx deleted file mode 100644 index 4f69366e0f0..00000000000 --- a/apps/reference/_cli/generated/config.mdx +++ /dev/null @@ -1,337 +0,0 @@ ---- -id: config -slug: /config -title: Configuration -toc_max_heading_level: 3 ---- - - - -A `config.toml` file is generated after running `supabase init`. - -This file is located in the `supabase` folder under `supabase/config.toml`. - - - -## General {#general} - -### `project_id` {#project_id} - -A string used to distinguish different Supabase projects on the same host. Defaults to the working directory name when running `supabase init`. - - - -
- - - -## Auth Settings {#auth} - -### `auth.site_url` {#auth.site_url} - -The base URL of your website. Used as an allow-list for redirects and for constructing URLs used in emails. - - - -
- -### `auth.additional_redirect_urls` {#auth.additional_redirect_urls} - -A list of _exact_ URLs that auth providers are permitted to redirect to post authentication. - - - -
- -### `auth.jwt_expiry` {#auth.jwt_expiry} - -How long tokens are valid for, in seconds. Defaults to 3600 (1 hour), maximum 604,800 seconds (one week). - - - -
- -### `auth.enable_signup` {#auth.enable_signup} - -Allow/disallow new user signups to your project. - - - -
- -### `auth.email.enable_signup` {#auth.email.enable_signup} - -Allow/disallow new user signups via email to your project. - - - -
- -### `auth.email.double_confirm_changes` {#auth.email.double_confirm_changes} - -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. - - - -
- -### `auth.email.enable_confirmations` {#auth.email.enable_confirmations} - -If enabled, users need to confirm their email address before signing in. - - - -
- -### `auth.external..enabled` {#auth.external.provider.enabled} - -Use an external OAuth provider. The full list of providers are: - -- `apple` -- `azure` -- `bitbucket` -- `discord` -- `facebook` -- `github` -- `gitlab` -- `google` -- `twitch` -- `twitter` -- `slack` -- `spotify` - - - -
- -### `auth.external..client_id` {#auth.external.provider.client_id} - -Client ID for the external OAuth provider. - - - -
- -### `auth.external..secret` {#auth.external.provider.secret} - -Client secret for the external OAuth provider. - - - -
- - - -## API Settings {#api} - -### `api.port` {#api.port} - -Port to use for the API URL. - - - -
- -### `api.extra_search_path` {#api.extra_search_path} - -Extra schemas to add to the `search_path` of every request. - - - -
- -### `api.max_rows` {#api.max_rows} - -The maximum number of rows returned from a view, table, or stored procedure. Limits payload size for accidental or malicious requests. - - - -
- - - -## Database Settings {#database} - -### `db.port` {#db.port} - -Port to use for the local database URL. - - - -
- -### `db.major_version` {#db.major_version} - -The database major version to use. This has to be the same as your remote database's. Run `SHOW server_version;` on the remote database to check. - - - -
- - - -## Dashboard Settings {#dashboard} - -### `studio.port` {#studio.port} - -Port to use for Supabase Studio. - -
    -
  • - Required: true -
  • -
  • - Default: 54323 -
  • -
- -
- - - -## Local Development {#local} - -### `inbucket.port` {#inbucket.port} - -Port to use for the email testing server web interface. - -Emails sent with the local dev setup are not actually sent - rather, they are monitored, and you can view the emails that would have been sent from the web interface. - - - -
diff --git a/apps/reference/_cli/generated/usage.mdx b/apps/reference/_cli/generated/usage.mdx deleted file mode 100644 index 7235621cecb..00000000000 --- a/apps/reference/_cli/generated/usage.mdx +++ /dev/null @@ -1,1008 +0,0 @@ ---- -id: usage -slug: /usage -title: Usage -toc_max_heading_level: 3 ---- - - - -Supabase CLI provides you with tools to develop your application locally, and deploy your application to the Supabase platform. - - - -
-
- -### Stop all local Supabase containers {#supabase-stop} - - - -```sh -supabase stop [flags] -``` - - - - - -**Options** - -```sh - -h, --help help for stop -``` - - - -
-
- -### Show status of local Supabase containers {#supabase-status} - - - -```sh -supabase status [flags] -``` - - - - - -**Options** - -```sh - -h, --help help for status -``` - - - -
-
- -### Start containers for Supabase local development {#supabase-start} - - - -```sh -supabase start [flags] -``` - - - - - -**Options** - -```sh - -h, --help help for start -``` - - - -
-
- -## Manage Supabase secrets {#supabase-secrets} - - - - - -**Available Commands** - -- - supabase secrets list - - -- - supabase secrets set - - -- - supabase secrets unset - - - - -**Options** - -```sh - -h, --help help for secrets -``` - - - -
-
- -### Unset a secret(s) on Supabase {#supabase-secrets-unset} - - - -Unset a secret(s) from the linked Supabase project. - -```sh -supabase secrets unset ... [flags] -``` - - - - - -**Options** - -```sh - -h, --help help for unset -``` - - - -
-
- -### Set a secret(s) on Supabase {#supabase-secrets-set} - - - -Set a secret(s) to the linked Supabase project. - -```sh -supabase secrets set [flags] ... -``` - - - - - -**Options** - -```sh - --env-file string Read secrets from a .env file. - -h, --help help for set -``` - - - -
-
- -### List all secrets on Supabase {#supabase-secrets-list} - - - -List all secrets in the linked project. - -```sh -supabase secrets list [flags] -``` - - - - - -**Options** - -```sh - -h, --help help for list -``` - - - -
-
- -## Manage Supabase projects {#supabase-projects} - - - - - -**Available Commands** - -- - supabase projects create - - -- - supabase projects list - - - - -**Options** - -```sh - -h, --help help for projects -``` - - - -
-
- -### List all Supabase projects {#supabase-projects-list} - - - -List all Supabase projects the logged-in user can access. - -```sh -supabase projects list [flags] -``` - - - - - -**Options** - -```sh - -h, --help help for list -``` - - - -
-
- -### Create a project on Supabase {#supabase-projects-create} - - - -```sh -supabase projects create [flags] -``` - - - - - -**Options** - -```sh - --db-password string Database password of the project. - -h, --help help for create - -i, --interactive Enables interactive mode. - --org-id string Organization ID to create the project in. - --plan string Select a plan that suits your needs. (default "free") - --region string Select a region close to you for the best performance. -``` - - - -
-
- -## Manage Supabase organizations {#supabase-orgs} - - - - - -**Available Commands** - -- - supabase orgs list - - - - -**Options** - -```sh - -h, --help help for orgs -``` - - - -
-
- -### List all organizations {#supabase-orgs-list} - - - -List all organizations the logged-in user belongs. - -```sh -supabase orgs list [flags] -``` - - - - - -**Options** - -```sh - -h, --help help for list -``` - - - -
-
- -## Manage database migration scripts {#supabase-migration} - - - - - -**Available Commands** - -- - supabase migration list - - -- - supabase migration new - - - - -**Options** - -```sh - -h, --help help for migration -``` - - - -
-
- -### Create an empty migration script {#supabase-migration-new} - - - -```sh -supabase migration new [flags] -``` - - - - - -**Options** - -```sh - -h, --help help for new -``` - - - -
-
- -### List local and remote migrations {#supabase-migration-list} - - - -```sh -supabase migration list [flags] -``` - - - - - -**Options** - -```sh - -h, --help help for list - -p, --password string Password to your remote Postgres database. -``` - - - -
-
- -### Authenticate using an access token {#supabase-login} - - - -```sh -supabase login [flags] -``` - - - - - -**Options** - -```sh - -h, --help help for login -``` - - - -
-
- -### Link to a Supabase project {#supabase-link} - - - -```sh -supabase link [flags] -``` - - - - - -**Options** - -```sh - -h, --help help for link - -p, --password string Password to your remote Postgres database. - --project-ref string Project ref of the Supabase project. -``` - - - -
-
- -### Initialize a local project {#supabase-init} - - - -```sh -supabase init [flags] -``` - - - - - -**Options** - -```sh - -h, --help help for init -``` - - - -
-
- -## Run code generation tools {#supabase-gen} - - - - - -**Available Commands** - -- - supabase gen types - - - - -**Options** - -```sh - -h, --help help for gen -``` - - - -
-
- -## Generate types from Postgres schema {#supabase-gen-types} - - - - - -**Available Commands** - -- - supabase gen types typescript - - - - -**Options** - -```sh - -h, --help help for types -``` - - - -
-
- -### Generate types for TypeScript {#supabase-gen-types-typescript} - - - -Generate types for TypeScript. Must specify either --local or --db-url - -```sh -supabase gen types typescript [flags] -``` - - - - - -**Options** - -```sh - --db-url string Generate types from a database url. - -h, --help help for typescript - --local Generate types from the local dev database. -``` - - - -
-
- -## Manage Supabase Edge functions {#supabase-functions} - - - - - -**Available Commands** - -- - supabase functions delete - - -- - supabase functions deploy - - -- - supabase functions new - - -- - supabase functions serve - - - - -**Options** - -```sh - -h, --help help for functions -``` - - - -
-
- -### Serve a Function locally {#supabase-functions-serve} - - - -```sh -supabase functions serve [flags] -``` - - - - - -**Options** - -```sh - --env-file string Path to an env file to be populated to the Function environment. - -h, --help help for serve - --no-verify-jwt Disable JWT verification for the Function. -``` - - - -
-
- -### Create a new Function locally {#supabase-functions-new} - - - -```sh -supabase functions new [flags] -``` - - - - - -**Options** - -```sh - -h, --help help for new -``` - - - -
-
- -### Deploy a Function to Supabase {#supabase-functions-deploy} - - - -Deploy a Function to the linked Supabase project. - -```sh -supabase functions deploy [flags] -``` - - - - - -**Options** - -```sh - -h, --help help for deploy - --no-verify-jwt Disable JWT verification for the Function. - --project-ref string Project ref of the Supabase project. -``` - - - -
-
- -### Delete a Function from Supabase {#supabase-functions-delete} - - - -Delete a Function from the linked Supabase project. This does NOT remove the Function locally. - -```sh -supabase functions delete [flags] -``` - - - - - -**Options** - -```sh - -h, --help help for delete - --project-ref string Project ref of the Supabase project. -``` - - - -
-
- -## Manage local Postgres databases {#supabase-db} - - - - - -**Available Commands** - -- - supabase db branch - - -- - supabase db diff - - -- - supabase db push - - -- - supabase db remote - - -- - supabase db reset - - - - -**Options** - -```sh - -h, --help help for db -``` - - - -
-
- -### Resets the local database to current migrations {#supabase-db-reset} - - - -```sh -supabase db reset [flags] -``` - - - - - -**Options** - -```sh - -h, --help help for reset -``` - - - -
-
- -## Manage remote databases {#supabase-db-remote} - - - - - -**Available Commands** - -- - supabase db remote changes - - -- - supabase db remote commit - - - - -**Options** - -```sh - -h, --help help for remote - -p, --password string Password to your remote Postgres database. -``` - - - -
-
- -### Commit remote changes as a new migration {#supabase-db-remote-commit} - - - -```sh -supabase db remote commit [flags] -``` - - - - - -**Options** - -```sh - -h, --help help for commit -``` - - - -
-
- -### Show changes on the remote database {#supabase-db-remote-changes} - - - -Show changes on the remote database since last migration. - -```sh -supabase db remote changes [flags] -``` - - - - - -**Options** - -```sh - -h, --help help for changes -``` - - - -
-
- -### Push new migrations to the remote database {#supabase-db-push} - - - -```sh -supabase db push [flags] -``` - - - - - -**Options** - -```sh - --dry-run Print the migrations that would be applied, but don't actually apply them. - -h, --help help for push - -p, --password string Password to your remote Postgres database. -``` - - - -
-
- -### Diffs the local database for schema changes {#supabase-db-diff} - - - -```sh -supabase db diff [flags] -``` - - - - - -**Options** - -```sh - -f, --file string Saves schema diff to a file. - -h, --help help for diff - -s, --schema strings List of schema to include. (default [public]) - --use-migra Use migra to generate schema diff. -``` - - - -
-
- -## Manage local database branches {#supabase-db-branch} - - - -Manage local database branches. Each branch is associated with a separate local database. Forking remote databases is NOT supported. - - - -**Available Commands** - -- - supabase db branch create - - -- - supabase db branch delete - - -- - supabase db branch list - - -- - supabase db branch switch - - - - -**Options** - -```sh - -h, --help help for branch -``` - - - -
-
- -### Switch the active branch {#supabase-db-branch-switch} - - - -```sh -supabase db branch switch [flags] -``` - - - - - -**Options** - -```sh - -h, --help help for switch -``` - - - -
-
- -### List branches {#supabase-db-branch-list} - - - -```sh -supabase db branch list [flags] -``` - - - - - -**Options** - -```sh - -h, --help help for list -``` - - - -
-
- -### Delete a branch {#supabase-db-branch-delete} - - - -```sh -supabase db branch delete [flags] -``` - - - - - -**Options** - -```sh - -h, --help help for delete -``` - - - -
-
- -### Create a branch {#supabase-db-branch-create} - - - -```sh -supabase db branch create [flags] -``` - - - - - -**Options** - -```sh - -h, --help help for create -``` - - diff --git a/apps/reference/_gotrue/config.mdx b/apps/reference/_gotrue/config.mdx index dfa0090df45..9a00a5a380e 100644 --- a/apps/reference/_gotrue/config.mdx +++ b/apps/reference/_gotrue/config.mdx @@ -1,244 +1,35 @@ --- id: config +slug: /config title: Configuration +toc_max_heading_level: 3 --- -## Security + -| Parameter | Type | Description | -| :-------------------------------------------------------------------- | :------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `SITE_URL` | `string` | **Required**. The base URL your site is located at. Currently used in combination with other settings to construct URLs used in emails. Any URI that shares a host with `SITE_URL` is a permitted value for `redirect_to` params (see `/authorize` etc.). | -| `URI_ALLOW_LIST` | `string` | A comma separated list of URIs (e.g. `"https://foo.example.com,https://*.foo.example.com"`) which are permitted as valid `redirect_to` destinations. Defaults to [ ].

Supports wildcard matching through globbing. (e.g. `https://*.foo.example.com` will allow `https://a.foo.example.com` and `https://b.foo.example.com` to be accepted.)

Globbing is also supported on subdomains. (e.g. `https://foo.example.com/*` will allow `https://foo.example.com/page1` and `https://foo.example.com/page2` to be accepted.)
For more common glob patterns, check out the [following link](https://pkg.go.dev/github.com/gobwas/glob#Compile). | -| `OPERATOR_TOKEN` | `string` | The shared secret with an operator for this microservice. Used to verify requests have been proxied through the operator and the payload values can be trusted. | -| `DISABLE_SIGNUP` | `bool` | When signup is disabled the only way to create new users is through invites. Defaults to `false`, all signups enabled. | -| `EXTERNAL_EMAIL_ENABLED` | `bool` | Use this to disable email signups (users can still use external oauth providers to sign up / sign in) | -| `EXTERNAL_PHONE_ENABLED` | `bool` | Use this to disable phone signups (users can still use external oauth providers to sign up / sign in) | -| `RATE_LIMIT_TOKEN_REFRESH` | `string` | Rate limit the number of requests sent to `/token` | -| `RATE_LIMIT_EMAIL_SENT` | `string` | Rate limit the number of emails sent per hr on the following endpoints: `/signup`, `/invite`, `/magiclink`, `/recover`, `/otp`, & `/user`. | -| `PASSWORD_MIN_LENGTH` | `int` | Minimum password length, defaults to 6. | +A `config.toml` file is generated after running `supabase init`. -These options control additional security settings available in gotrue. If self-hosting, they need to be prefixed with `GOTRUE_SECURITY_` . +This file is located in the `supabase` folder under `supabase/config.toml`. -| Parameter | Type | Description | -| :---------------------------------------------------------------------------------------------------- | :------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `REFRESH_TOKEN_ROTATION_ENABLED` | `bool` | If refresh token rotation is enabled, gotrue will automatically detect malicious attempts to reuse a revoked refresh token. When a malicious attempt is detected, gotrue immediately revokes all tokens that descended from the offending token. | -| `REFRESH_TOKEN_REUSE_INTERVAL` | `string` | This setting is only applicable if `REFRESH_TOKEN_ROTATION_ENABLED` is enabled. The reuse interval for a refresh token allows for exchanging the refresh token multiple times during the interval to support concurrency or offline issues.
During the reuse interval, gotrue will not consider using a revoked token as a malicious attempt and will simply return the child refresh token.
Only the previous revoked token can be reused. Using an old refresh token way before the current valid refresh token will trigger the reuse detection. | -| `CAPTCHA_ENABLED` | `string` | Enables the captcha middleware. | -| `CAPTCHA_PROVIDER` | `string` | The only captcha provider option supported is: `hcaptcha`. | -| `CAPTCHA_SECRET` | `string` | The captcha secret token. Retrieve this from your captcha account. | -| `CAPTCHA_TIMEOUT` | `string` | The http timeout on the captcha request. | -| `UPDATE_PASSWORD_REQUIRE_REAUTHENTICATION` | `bool` | When enabled, this requires a user to reauthenticate before being able to update their password. | -## API -| Parameter | Type | Description | -| :------------------------------------------------------ | :------- | :--------------------------------------------------------------------------------------------- | -| `API_HOST` | `string` | Hostname to listen on. | -| `PORT` | `number` | Port number to listen on. Defaults to `8081`. | -| `REQUEST_ID_HEADER` | `string` | If you wish to inherit a request ID from the incoming request, specify the name in this value. | -## Database + -| Parameter | Type | Description | -| :---------------------------------------------------- | :------- | :-------------------------------------------------------------------------------------------------------------------------------------- | -| `DB_DRIVER` | `string` | **Required**. Chooses what dialect of database you want. Must be `postgres`. | -| `DATABASE_URL` | `string` | **Required**. Connection string for the database. | -| `DB_MAX_POOL_SIZE` | `int` | Sets the maximum number of open connections to the database. Defaults to 0 which is equivalent to an "unlimited" number of connections. | -| `DB_NAMESPACE` | `string` | Specifies the schema in which the tables are to be created in. | +## General {#general} -## JSON Web Tokens (JWT) -| Parameter | Type | Description | -| :---------------------------------------------------------------- | :------- | :----------------------------------------------------------------------------------- | -| `JWT_SECRET` | `string` | **Required**. The secret used to sign JWT tokens with. | -| `JWT_EXP` | `number` | How long tokens are valid for in seconds. Defaults to 3600 (1 hour). | -| `JWT_AUD` | `string` | The default JWT audience. Use audiences to group users. Defaults to `authenticated`. | -| `JWT_ADMIN_GROUP_NAME` | `string` | The name of the admin group (if enabled). Defaults to `admin`. | -| `JWT_DEFAULT_GROUP_NAME` | `string` | The default group to assign all new users to. | -## External Authentication Providers +### `project_id` {#project_id} -We support `apple`, `azure`, `bitbucket`, `discord`, `facebook`, `github`, `gitlab`, `google`, `keycloak`, `linkedin`, `notion`, `spotify`, `slack`, `twitch`, `twitter` and `workos` for external authentication. +A string used to distinguish different Supabase projects on the same host. Defaults to the working directory name when running `supabase init`. -Use the names as the keys underneath `external` to configure each separately. -No external providers are required, but you must provide the required values if you choose to enable any. +
    +
  • Required: true
  • +
  • Default: None
  • +
-| Parameter | Type | Description | -| :------------------------------------------------------------------ | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `EXTERNAL_X_ENABLED` | `bool` | Whether this external provider is enabled or not | -| `EXTERNAL_X_CLIENT_ID` | `string` | **Required**. The OAuth2 Client ID registered with the external provider. | -| `EXTERNAL_X_SECRET` | `string` | **Required**. The OAuth2 Client Secret provided by the external provider when you registered. | -| `EXTERNAL_X_REDIRECT_URI` | `string` | **Required**. Also known as the callback url, this is the URI an OAuth2 provider will redirect to with the `code` and `state` values. | -| `EXTERNAL_X_URL` | `string` | The base URL used for constructing the URLs to request authorization and access tokens. Used by `gitlab` and `keycloak`. For `gitlab` it defaults to `https://gitlab.com`. For `keycloak` you need to set this to your realm url, (e.g. `https://keycloak.example.com/auth/realms/myrealm`) | +
-### Apple OAuth -To try out sign-in with Apple locally, you will need to do the following: - -1. Run GoTrue over `https` via a reverse proxy (like ngrok). -2. Generate the `crt` and `key` file. See [here](https://www.freecodecamp.org/news/how-to-get-https-working-on-your-local-development-environment-in-5-minutes-7af615770eec/) for more information. -3. Generate the `GOTRUE_EXTERNAL_APPLE_SECRET` by following this [post](https://medium.com/identity-beyond-borders/how-to-configure-sign-in-with-apple-77c61e336003)! - -## SMTP Configuration - -Sending email is not required, but highly recommended for password recovery. If `mailer_autoconfirm` is enabled, no emails will be sent out for `signup`, `recovery`, `invite`. Emails will only be sent out for `magiclink`. - -| Parameter | Type | Description | -| :-------------------------------------------------------- | :------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `SMTP_ADMIN_EMAIL` | `string` | **Required**. The `From` email address for all emails sent. | -| `SMTP_HOST` | `string` | **Required**. The mail server hostname to send emails through. | -| `SMTP_PORT` | `string` | **Required**. The port number to connect to the mail server on. | -| `SMTP_USER` | `string` | **Required**. If the mail server requires authentication, the username to use. | -| `SMTP_PASS` | `string` | **Required**. If the mail server requires authentication, the password to use. | -| `SMTP_MAX_FREQUENCY` | `string` | Controls the minimum amount of time that must pass before sending another signup confirmation or password reset email. The value is the number of seconds. Defaults to 60 seconds. | -| `SMTP_SENDER_NAME` | `string` | Sets the name of the sender. Defaults to the `SMTP_ADMIN_EMAIL` if not used. | - -## Email - -These options control the emails sent from GoTrue. - -| Parameter | Type | Description | -| :---------------------------------------------------------------------------------------- | :------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `MAILER_AUTOCONFIRM` | `bool` | If you do not require email confirmation, you may set this to `true`. Defaults to `false`. | -| `MAILER_SECURE_EMAIL_CHANGE_ENABLED` | `bool` | If `true`, send an email to both the user's current and new email with a confirmation link, otherwise send an email with confirmation link only to new email. Defaults to `true`. | -| `MAILER_OTP_EXP` | `string` | Controls the duration an email link or otp is valid for. Defaults to 24 hrs. | -| `MAILER_URLPATHS_INVITE` | `string` | URL path to use in the user invite email. Defaults to `/`. | -| `MAILER_URLPATHS_CONFIRMATION` | `string` | URL path to use in the signup confirmation email. Defaults to `/`. | -| `MAILER_URLPATHS_RECOVERY` | `string` | URL path to use in the password reset email. Defaults to `/`. | -| `MAILER_URLPATHS_EMAIL_CHANGE` | `string` | URL path to use in the email change confirmation email. Defaults to `/`. | -| `MAILER_SUBJECTS_INVITE` | `string` | Email subject to use for user invite. Defaults to `You have been invited`. | -| `MAILER_SUBJECTS_CONFIRMATION` | `string` | Email subject to use for signup confirmation. Defaults to `Confirm Your Signup`. | -| `MAILER_SUBJECTS_RECOVERY` | `string` | Email subject to use for password reset. Defaults to `Reset Your Password`. | -| `MAILER_SUBJECTS_MAGIC_LINK` | `string` | Email subject to use for magic link email. Defaults to `Your Magic Link`. | -| `MAILER_SUBJECTS_EMAIL_CHANGE` | `string` | Email subject to use for email change confirmation. Defaults to `Confirm Email Change`. | - -## Email Templates - -| Parameter | Type | Description | -| :------------------------------------------------------------------ | :------- | :---------------------------------------------------------------------------------------------------------------------------- | -| `MAILER_TEMPLATES_INVITE` | `string` | URL path to an email template to use when inviting a user. `SiteURL`, `Email`, and `ConfirmationURL` variables are available. | - -Default Content (if template is unavailable): - -```html -

You have been invited

-

- You have been invited to create a user on {{ .SiteURL }}. Follow this link to - accept the invite: -

-

Accept the invite

-``` - -| Parameter | Type | Description | -| :------------------------------------------------------------------------------ | :------- | :-------------------------------------------------------------------------------------------------------------------------------- | -| `MAILER_TEMPLATES_CONFIRMATION` | `string` | URL path to an email template to use when confirming a signup. `SiteURL`, `Email`, and `ConfirmationURL` variables are available. | - -Default Content (if template is unavailable): - -```html -

Confirm your signup

- -

Follow this link to confirm your user:

-

Confirm your mail

-``` - -| Parameter | Type | Description | -| :---------------------------------------------------------------------- | :------- | :--------------------------------------------------------------------------------------------------------------------------------- | -| `MAILER_TEMPLATES_RECOVERY` | `string` | URL path to an email template to use when resetting a password. `SiteURL`, `Email`, and `ConfirmationURL` variables are available. | - -Default Content (if template is unavailable): - -```html -

Reset Password

- -

Follow this link to reset the password for your user:

-

Reset Password

-``` - -| Parameter | Type | Description | -| :-------------------------------------------------------------------------- | :------- | :------------------------------------------------------------------------------------------------------------------------------- | -| `MAILER_TEMPLATES_MAGIC_LINK` | `string` | URL path to an email template to use when sending magic link. `SiteURL`, `Email`, and `ConfirmationURL` variables are available. | - -Default Content (if template is unavailable): - -```html -

Magic Link

- -

Follow this link to login:

-

Log In

-``` - -| Parameter | Type | Description | -| :------------------------------------------------------------------------------ | :------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `MAILER_TEMPLATES_EMAIL_CHANGE` | `string` | URL path to an email template to use when confirming the change of an email address. `SiteURL`, `Email`, `NewEmail` and `ConfirmationURL` variables are available. | - -Default Content (if template is unavailable): - -```html -

Confirm Change of Email

- -

- Follow this link to confirm the update of your email from {{ .Email }} to {{ - .NewEmail }}: -

-

Change Email

-``` - -### Phone Auth - -These options control the SMS-es sent from GoTrue. - -| Parameter | Type | Description | -| :------------------------------------------------------ | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------- | -| `SMS_AUTOCONFIRM` | `bool` | If you do not require phone confirmation, you may set this to `true`. Defaults to `false`. | -| `SMS_MAX_FREQUENCY` | `number` | Controls the minimum amount of time that must pass before sending another sms otp. The value is the number of seconds. Defaults to 60 (1 minute)). | -| `SMS_OTP_EXP` | `number` | Controls the duration an sms otp is valid for. | -| `SMS_OTP_LENGTH` | `number` | Controls the number of digits of the sms otp sent. Valid otp lengths are between [6 - 10] digits | -| `SMS_PROVIDER` | `string` | Available options are: `twilio`, `messagebird`, `textlocal`, and `vonage` | - -If you're using twilio, you can obtain your credentials from the [twilio dashboard](https://www.twilio.com/docs/usage/requests-to-twilio#credentials): - -You can find the `SMS_TWILIO_ACCOUNT_SID` and `SMS_TWILIO_AUTH_TOKEN` in the account info page of the twilio console dashboard. - -| Parameter | Type | Description | -| :---------------------------------------------------------------------------- | :------- | :------------------------------------------- | -| `SMS_TWILIO_ACCOUNT_SID` | `string` | Your twilio account string identifier (SID). | -| `SMS_TWILIO_AUTH_TOKEN` | `string` | Your twilio auth token. | -| `SMS_TWILIO_MESSAGE_SERVICE_SID` | `string` | Your twilio sender mobile number | - -If you're using MessageBird, you can obtain your credentials from the [MessageBird dashboard](https://dashboard.messagebird.com/en/developers/access): - -| Parameter | Type | Description | -| :-------------------------------------------------------------------- | :------- | :----------------------------------------------------------- | -| `SMS_MESSAGEBIRD_ACCESS_KEY` | `string` | Your MessageBird access key. | -| `SMS_MESSAGEBIRD_ORIGINATOR` | `string` | Your MessageBird sender phone number with + or company name. | - -## Logging - -| Parameter | Type | Description | -| :-------------------------------------- | :------- | :-------------------------------------------------------------------------------------------------------------------------- | -| `LOG_LEVEL` | `string` | Controls what log levels are output. Choose from `panic`, `fatal`, `error`, `warn`, `info`, or `debug`. Defaults to `info`. | -| `LOG_FILE` | `string` | If you wish logs to be written to a file, set `log_file` to a valid file path. | - -## Opentracing - -Currently Datadog is the only tracer supported. - -| Parameter | Type | Description | -| :-------------------------------------------------- | :------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `TRACING_ENABLED` | `bool` | Whether tracing is enabled or not. Defaults to `false`. | -| `TRACING_HOST` | `string` | The tracing destination. (e.g. `GOTRUE_TRACING_HOST=127.0.0.1`) | -| `TRACING_PORT` | `int` | The port for the tracing host. | -| `TRACING_TAGS` | `string` | A comma separated list of key:value pairs. These key value pairs will be added as tags to all opentracing spans. (e.g. `GOTRUE_TRACING_TAGS="tag1:value1,tag2:value2"`) | -| `SERVICE_NAME` | `string` | The name to use for the service. | - -## Webhooks - -| Parameter | Type | Description | -| :---------------------------------------------------------- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `WEBHOOK_URL` | `string` | URL of the webhook receiver endpoint. This will be called when events like `validate`, `signup` or `login` occur. | -| `WEBHOOK_SECRET` | `string` | Shared secret to authorize webhook requests. This secret signs the [JSON Web Signature](https://tools.ietf.org/html/draft-ietf-jose-json-web-signature-41) of the request. You _should_ use this to verify the integrity of the request. Otherwise others can feed your webhook receiver with fake data. | -| `WEBHOOK_RETRIES` | `number` | How often GoTrue should try a failed hook. | -| `WEBHOOK_TIMEOUT_SEC` | `number` | Time between retries (in seconds). | -| `WEBHOOK_EVENTS` | `list` | Which events should trigger a webhook. You can provide a comma separated list. For example to listen to all events, provide the values `validate,signup,login`. | diff --git a/apps/reference/_storage/generated/config.mdx b/apps/reference/_storage/generated/config.mdx deleted file mode 100644 index 2cfc75f1a27..00000000000 --- a/apps/reference/_storage/generated/config.mdx +++ /dev/null @@ -1,264 +0,0 @@ ---- -id: config -slug: /config -title: Configuration -toc_max_heading_level: 3 ---- - - - -A sample `.env` file is located in the [storage repository](https://github.com/supabase/storage-api/blob/master/.env.sample). - -Use this file to configure your environment variables for your Storage server. - - - - - - -## General {#general} - - - -### `ANON_KEY` {#ANON_KEY} - -A long-lived JWT with anonymous Postgres privileges. - - -
    -
  • Required: true
  • -
  • Default: None
  • -
- -
- - -### `SERVICE_KEY` {#SERVICE_KEY} - -A long-lived JWT with Postgres privileges to bypass Row Level Security. - - -
    -
  • Required: true
  • -
  • Default: None
  • -
- -
- - -### `TENANT_ID` {#TENANT_ID} - -The ID of a Storage tenant. - - -
    -
  • Required: true
  • -
  • Default: None
  • -
- -
- - -### `REGION` {#REGION} - -Region of your S3 bucket. - - -
    -
  • Required: true
  • -
  • Default: None
  • -
- -
- - -### `GLOBAL_S3_BUCKET` {#GLOBAL_S3_BUCKET} - -Name of your S3 bucket. - - -
    -
  • Required: true
  • -
  • Default: None
  • -
- -
- - -### `POSTGREST_URL` {#POSTGREST_URL} - -The URL of your PostgREST server. - - -
    -
  • Required: true
  • -
  • Default: None
  • -
- -
- - -### `PGRST_JWT_SECRET` {#PGRST_JWT_SECRET} - -A JWT Secret for the PostgREST database. - - -
    -
  • Required: true
  • -
  • Default: None
  • -
- -
- - -### `DATABASE_URL` {#DATABASE_URL} - -The URL of your Postgres database. - - -
    -
  • Required: true
  • -
  • Default: None
  • -
- -
- - -### `PGOPTIONS` {#PGOPTIONS} - -Additional configuration parameters for Postgres startup. - - -
    -
  • Required: true
  • -
  • Default: None
  • -
- -
- - -### `FILE_SIZE_LIMIT` {#FILE_SIZE_LIMIT} - -The maximum file size allowed. - - -
    -
  • Required: true
  • -
  • Default: None
  • -
- -
- - -### `STORAGE_BACKEND` {#STORAGE_BACKEND} - -The storage provider. - - -
    -
  • Required: true
  • -
  • Default: None
  • -
- -
- - -### `FILE_STORAGE_BACKEND_PATH` {#FILE_STORAGE_BACKEND_PATH} - -The location storage when the "STORAGE_BACKEND" is set to "file". - - -
    -
  • Required: true
  • -
  • Default: None
  • -
- -
- - - - - - -## Multi-tenant {#multitenant} - - - -### `IS_MULTITENANT` {#IS_MULTITENANT} - -Operate across multiple tenants. - - -
    -
  • Required: true
  • -
  • Default: None
  • -
- -
- - -### `MULTITENANT_DATABASE_URL` {#MULTITENANT_DATABASE_URL} - -The URL of the multitenant Postgres database. - - -
    -
  • Required: true
  • -
  • Default: None
  • -
- -
- - -### `X_FORWARDED_HOST_REGEXP` {#X_FORWARDED_HOST_REGEXP} - -TBD. - - -
    -
  • Required: true
  • -
  • Default: None
  • -
- -
- - -### `POSTGREST_URL_SUFFIX` {#POSTGREST_URL_SUFFIX} - -The suffix for the PostgREST instance. - - -
    -
  • Required: true
  • -
  • Default: None
  • -
- -
- - -### `ADMIN_API_KEYS` {#ADMIN_API_KEYS} - -Secure API key for administrative endpoints. - - -
    -
  • Required: true
  • -
  • Default: None
  • -
- -
- - -### `ENCRYPTION_KEY` {#ENCRYPTION_KEY} - -An key for encryting/decrypting secrets. - - -
    -
  • Required: true
  • -
  • Default: None
  • -
- -
- - diff --git a/apps/reference/_storage/generated/usage.mdx b/apps/reference/_storage/generated/usage.mdx deleted file mode 100644 index c7d850ac82b..00000000000 --- a/apps/reference/_storage/generated/usage.mdx +++ /dev/null @@ -1,3452 +0,0 @@ ---- -id: usage -slug: /usage -title: Usage -toc_max_heading_level: 3 ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - - - - -API documentation for Supabase Storage - - - - - - -## Object {#object} - -Object end-points - - - - - -### Delete an object {#delete-an-object} - -``` -DELETE /object/{bucketName}/{wildcard} -``` - - - - -#### Path Parameters - -
    - -
  • -

    - - bucketName - - - required - - - - -

    - -

    - Example: - - avatars - -

    - -
    - -
    -
  • - -
  • -

    - - * - - - required - - - - -

    - -

    - Example: - - folder/cat.png - -

    - -
    - -
    -
  • - -
- - - -#### Header Parameters -
    - -
  • -

    - - authorization - - - required - - - - -

    - -

    - Example: - - Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs - -

    - -
    - -
    -
  • - -
- - - - - - - - - -#### Responses - - - - - -Successful response - - - - -```json -{ - "schema": { - "description": "Successful response", - "type": "object", - "properties": { - "message": { - "type": "string", - "example": "Successfully deleted" - } - } - } -} -``` - - - - - - - - -Error response - - - - -```json -{ - "schema": { - "description": "Error response", - "type": "object", - "properties": { - "statusCode": { - "type": "string" - }, - "error": { - "type": "string" - }, - "message": { - "type": "string" - } - }, - "required": [ - "statusCode", - "error", - "message" - ], - "title": "errorSchema" - } -} -``` - - - - - - - - -
- - - - -### Update the object at an existing key {#update-the-object-at-an-existing-key} - -``` -PUT /object/{bucketName}/{wildcard} -``` - - - - -#### Path Parameters - -
    - -
  • -

    - - bucketName - - - required - - - - -

    - -

    - Example: - - avatars - -

    - -
    - -
    -
  • - -
  • -

    - - * - - - required - - - - -

    - -

    - Example: - - folder/cat.png - -

    - -
    - -
    -
  • - -
- - - -#### Header Parameters -
    - -
  • -

    - - authorization - - - required - - - - -

    - -

    - Example: - - Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs - -

    - -
    - -
    -
  • - -
- - - - - - - - - -#### Responses - - - - - -Successful response - - - - -```json -{ - "schema": { - "description": "Successful response", - "type": "object", - "properties": { - "Key": { - "type": "string", - "example": "projectref/avatars/folder/cat.png" - } - }, - "required": [ - "Key" - ] - } -} -``` - - - - - - - - -Error response - - - - -```json -{ - "schema": { - "description": "Error response", - "type": "object", - "properties": { - "statusCode": { - "type": "string" - }, - "error": { - "type": "string" - }, - "message": { - "type": "string" - } - }, - "required": [ - "statusCode", - "error", - "message" - ], - "title": "errorSchema" - } -} -``` - - - - - - - - -
- - - - -### Upload a new object {#upload-a-new-object} - -``` -POST /object/{bucketName}/{wildcard} -``` - - - - -#### Path Parameters - -
    - -
  • -

    - - bucketName - - - required - - - - -

    - -

    - Example: - - avatars - -

    - -
    - -
    -
  • - -
  • -

    - - * - - - required - - - - -

    - -

    - Example: - - folder/cat.png - -

    - -
    - -
    -
  • - -
- - - -#### Header Parameters -
    - -
  • -

    - - authorization - - - required - - - - -

    - -

    - Example: - - Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs - -

    - -
    - -
    -
  • - -
- - - - - - - - - -#### Responses - - - - - -Successful response - - - - -```json -{ - "schema": { - "description": "Successful response", - "type": "object", - "properties": { - "Key": { - "type": "string", - "example": "avatars/folder/cat.png" - } - }, - "required": [ - "Key" - ] - } -} -``` - - - - - - - - -Error response - - - - -```json -{ - "schema": { - "description": "Error response", - "type": "object", - "properties": { - "statusCode": { - "type": "string" - }, - "error": { - "type": "string" - }, - "message": { - "type": "string" - } - }, - "required": [ - "statusCode", - "error", - "message" - ], - "title": "errorSchema" - } -} -``` - - - - - - - - -
- - - - -### Delete multiple objects {#delete-multiple-objects} - -``` -DELETE /object/{bucketName} -``` - - - - -#### Path Parameters - -
    - -
  • -

    - - bucketName - - - required - - - - -

    - -

    - Example: - - avatars - -

    - -
    - -
    -
  • - -
- - - -#### Header Parameters -
    - -
  • -

    - - authorization - - - required - - - - -

    - -

    - Example: - - Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs - -

    - -
    - -
    -
  • - -
- - - - - - -#### Body Parameters - -```json -{ - "schema": { - "type": "object", - "properties": { - "prefixes": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "example": [ - "folder/cat.png", - "folder/morecats.png" - ] - } - }, - "required": [ - "prefixes" - ] - } -} -``` - - - - -#### Responses - - - - - -Successful response - - - - -```json -{ - "schema": { - "description": "Successful response", - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "bucket_id": { - "type": "string" - }, - "owner": { - "type": "string" - }, - "id": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "updated_at": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "created_at": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "last_accessed_at": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "metadata": { - "anyOf": [ - { - "type": "object", - "additionalProperties": true - }, - { - "type": "null" - } - ] - }, - "buckets": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "owner": { - "type": "string" - }, - "public": { - "type": "boolean" - }, - "created_at": { - "type": "string" - }, - "updated_at": { - "type": "string" - } - }, - "required": [ - "id", - "name" - ], - "additionalProperties": false, - "example": { - "id": "bucket2", - "name": "bucket2", - "owner": "4d56e902-f0a0-4662-8448-a4d9e643c142", - "created_at": "2021-02-17T04:43:32.770206+00:00", - "updated_at": "2021-02-17T04:43:32.770206+00:00" - } - } - }, - "required": [ - "name" - ], - "additionalProperties": false, - "title": "objectSchema", - "example": { - "name": "folder/cat.png", - "bucket_id": "avatars", - "owner": "317eadce-631a-4429-a0bb-f19a7a517b4a", - "id": "eaa8bdb5-2e00-4767-b5a9-d2502efe2196", - "updated_at": "2021-04-06T16:30:35.394674+00:00", - "created_at": "2021-04-06T16:30:35.394674+00:00", - "last_accessed_at": "2021-04-06T16:30:35.394674+00:00", - "metadata": { - "size": 1234 - } - } - } - } -} -``` - - - - - - - - -Error response - - - - -```json -{ - "schema": { - "description": "Error response", - "type": "object", - "properties": { - "statusCode": { - "type": "string" - }, - "error": { - "type": "string" - }, - "message": { - "type": "string" - } - }, - "required": [ - "statusCode", - "error", - "message" - ], - "title": "errorSchema" - } -} -``` - - - - - - - - -
- - - - -### Retrieve an object {#retrieve-an-object} - -``` -GET /object/authenticated/{bucketName}/{wildcard} -``` - - - - -#### Path Parameters - -
    - -
  • -

    - - bucketName - - - required - - - - -

    - -

    - Example: - - avatars - -

    - -
    - -
    -
  • - -
  • -

    - - * - - - required - - - - -

    - -

    - Example: - - folder/cat.png - -

    - -
    - -
    -
  • - -
- - - -#### Header Parameters -
    - -
  • -

    - - authorization - - - required - - - - -

    - -

    - Example: - - Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs - -

    - -
    - -
    -
  • - -
- - - - - - - - - -#### Responses - - - - - -Error response - - - - -```json -{ - "schema": { - "description": "Error response", - "type": "object", - "properties": { - "statusCode": { - "type": "string" - }, - "error": { - "type": "string" - }, - "message": { - "type": "string" - } - }, - "required": [ - "statusCode", - "error", - "message" - ], - "title": "errorSchema" - } -} -``` - - - - - - - - -
- - - - -### Generate a presigned url to retrieve an object {#generate-a-presigned-url-to-retrieve-an-object} - -``` -POST /object/sign/{bucketName}/{wildcard} -``` - - - - -#### Path Parameters - -
    - -
  • -

    - - bucketName - - - required - - - - -

    - -

    - Example: - - avatars - -

    - -
    - -
    -
  • - -
  • -

    - - * - - - required - - - - -

    - -

    - Example: - - folder/cat.png - -

    - -
    - -
    -
  • - -
- - - -#### Header Parameters -
    - -
  • -

    - - authorization - - - required - - - - -

    - -

    - Example: - - Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs - -

    - -
    - -
    -
  • - -
- - - - - - -#### Body Parameters - -```json -{ - "schema": { - "type": "object", - "properties": { - "expiresIn": { - "type": "integer", - "minimum": 1, - "example": 60000 - } - }, - "required": [ - "expiresIn" - ] - } -} -``` - - - - -#### Responses - - - - - -Successful response - - - - -```json -{ - "schema": { - "description": "Successful response", - "type": "object", - "properties": { - "signedURL": { - "type": "string", - "example": "/object/sign/avatars/folder/cat.png?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cmwiOiJhdmF0YXJzL2ZvbGRlci9jYXQucG5nIiwiaWF0IjoxNjE3NzI2MjczLCJleHAiOjE2MTc3MjcyNzN9.s7Gt8ME80iREVxPhH01ZNv8oUn4XtaWsmiQ5csiUHn4" - } - }, - "required": [ - "signedURL" - ] - } -} -``` - - - - - - - - -Error response - - - - -```json -{ - "schema": { - "description": "Error response", - "type": "object", - "properties": { - "statusCode": { - "type": "string" - }, - "error": { - "type": "string" - }, - "message": { - "type": "string" - } - }, - "required": [ - "statusCode", - "error", - "message" - ], - "title": "errorSchema" - } -} -``` - - - - - - - - -
- - - - -### Retrieve an object via a presigned URL {#retrieve-an-object-via-a-presigned-url} - -``` -GET /object/sign/{bucketName}/{wildcard} -``` - - - - -#### Path Parameters - -
    - -
  • -

    - - bucketName - - - required - - - - -

    - -

    - Example: - - avatars - -

    - -
    - -
    -
  • - -
  • -

    - - * - - - required - - - - -

    - -

    - Example: - - folder/cat.png - -

    - -
    - -
    -
  • - -
- - - - - - - - - - - -#### Responses - - - - - -Error response - - - - -```json -{ - "schema": { - "description": "Error response", - "type": "object", - "properties": { - "statusCode": { - "type": "string" - }, - "error": { - "type": "string" - }, - "message": { - "type": "string" - } - }, - "required": [ - "statusCode", - "error", - "message" - ], - "title": "errorSchema" - } -} -``` - - - - - - - - -
- - - - -### Generate presigned urls to retrieve objects {#generate-presigned-urls-to-retrieve-objects} - -``` -POST /object/sign/{bucketName} -``` - - - - -#### Path Parameters - -
    - -
  • -

    - - bucketName - - - required - - - - -

    - -

    - Example: - - avatars - -

    - -
    - -
    -
  • - -
- - - -#### Header Parameters -
    - -
  • -

    - - authorization - - - required - - - - -

    - -

    - Example: - - Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs - -

    - -
    - -
    -
  • - -
- - - - - - -#### Body Parameters - -```json -{ - "schema": { - "type": "object", - "properties": { - "expiresIn": { - "type": "integer", - "minimum": 1, - "example": 60000 - }, - "paths": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "example": [ - "folder/cat.png", - "folder/morecats.png" - ] - } - }, - "required": [ - "expiresIn", - "paths" - ] - } -} -``` - - - - -#### Responses - - - - - -Successful response - - - - -```json -{ - "schema": { - "description": "Successful response", - "type": "array", - "items": { - "type": "object", - "properties": { - "error": { - "error": [ - "string", - "null" - ], - "example": "Either the object does not exist or you do not have access to it" - }, - "path": { - "type": "string", - "example": "folder/cat.png" - }, - "signedURL": { - "type": [ - "string", - "null" - ], - "example": "/object/sign/avatars/folder/cat.png?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cmwiOiJhdmF0YXJzL2ZvbGRlci9jYXQucG5nIiwiaWF0IjoxNjE3NzI2MjczLCJleHAiOjE2MTc3MjcyNzN9.s7Gt8ME80iREVxPhH01ZNv8oUn4XtaWsmiQ5csiUHn4" - } - }, - "required": [ - "error", - "path", - "signedURL" - ] - } - } -} -``` - - - - - - - - -Error response - - - - -```json -{ - "schema": { - "description": "Error response", - "type": "object", - "properties": { - "statusCode": { - "type": "string" - }, - "error": { - "type": "string" - }, - "message": { - "type": "string" - } - }, - "required": [ - "statusCode", - "error", - "message" - ], - "title": "errorSchema" - } -} -``` - - - - - - - - -
- - - - -### Moves an object {#moves-an-object} - -``` -POST /object/move -``` - - - - - - -#### Header Parameters -
    - -
  • -

    - - authorization - - - required - - - - -

    - -

    - Example: - - Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs - -

    - -
    - -
    -
  • - -
- - - - - - -#### Body Parameters - -```json -{ - "schema": { - "type": "object", - "properties": { - "bucketId": { - "type": "string", - "example": "avatars" - }, - "sourceKey": { - "type": "string", - "example": "folder/cat.png" - }, - "destinationKey": { - "type": "string", - "example": "folder/newcat.png" - } - }, - "required": [ - "bucketId", - "sourceKey", - "destinationKey" - ] - } -} -``` - - - - -#### Responses - - - - - -Successful response - - - - -```json -{ - "schema": { - "description": "Successful response", - "type": "object", - "properties": { - "message": { - "type": "string", - "example": "Successfully moved" - } - }, - "required": [ - "message" - ] - } -} -``` - - - - - - - - -Error response - - - - -```json -{ - "schema": { - "description": "Error response", - "type": "object", - "properties": { - "statusCode": { - "type": "string" - }, - "error": { - "type": "string" - }, - "message": { - "type": "string" - } - }, - "required": [ - "statusCode", - "error", - "message" - ], - "title": "errorSchema" - } -} -``` - - - - - - - - -
- - - - -### Search for objects under a prefix {#search-for-objects-under-a-prefix} - -``` -POST /object/list/{bucketName} -``` - - - - -#### Path Parameters - -
    - -
  • -

    - - bucketName - - - required - - - - -

    - -
    - -
    -
  • - -
- - - -#### Header Parameters -
    - -
  • -

    - - authorization - - - required - - - - -

    - -

    - Example: - - Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs - -

    - -
    - -
    -
  • - -
- - - - - - -#### Body Parameters - -```json -{ - "schema": { - "type": "object", - "properties": { - "prefix": { - "type": "string", - "example": "folder/subfolder" - }, - "limit": { - "type": "integer", - "minimum": 1, - "example": 10 - }, - "offset": { - "type": "integer", - "minimum": 0, - "example": 0 - }, - "sortBy": { - "type": "object", - "properties": { - "column": { - "type": "string", - "enum": [ - "name", - "updated_at", - "created_at", - "last_accessed_at" - ] - }, - "order": { - "type": "string", - "enum": [ - "asc", - "desc" - ] - } - }, - "required": [ - "column" - ] - }, - "search": { - "type": "string" - } - }, - "required": [ - "prefix" - ] - } -} -``` - - - - -#### Responses - - - - - -Successful response - - - - -```json -{ - "schema": { - "description": "Successful response", - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "bucket_id": { - "type": "string" - }, - "owner": { - "type": "string" - }, - "id": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "updated_at": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "created_at": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "last_accessed_at": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "metadata": { - "anyOf": [ - { - "type": "object", - "additionalProperties": true - }, - { - "type": "null" - } - ] - }, - "buckets": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "owner": { - "type": "string" - }, - "public": { - "type": "boolean" - }, - "created_at": { - "type": "string" - }, - "updated_at": { - "type": "string" - } - }, - "required": [ - "id", - "name" - ], - "additionalProperties": false, - "example": { - "id": "bucket2", - "name": "bucket2", - "owner": "4d56e902-f0a0-4662-8448-a4d9e643c142", - "created_at": "2021-02-17T04:43:32.770206+00:00", - "updated_at": "2021-02-17T04:43:32.770206+00:00" - } - } - }, - "required": [ - "name" - ], - "additionalProperties": false, - "example": { - "name": "folder/cat.png", - "bucket_id": "avatars", - "owner": "317eadce-631a-4429-a0bb-f19a7a517b4a", - "id": "eaa8bdb5-2e00-4767-b5a9-d2502efe2196", - "updated_at": "2021-04-06T16:30:35.394674+00:00", - "created_at": "2021-04-06T16:30:35.394674+00:00", - "last_accessed_at": "2021-04-06T16:30:35.394674+00:00", - "metadata": { - "size": 1234 - } - } - } - } -} -``` - - - - - - - - -Error response - - - - -```json -{ - "schema": { - "description": "Error response", - "type": "object", - "properties": { - "statusCode": { - "type": "string" - }, - "error": { - "type": "string" - }, - "message": { - "type": "string" - } - }, - "required": [ - "statusCode", - "error", - "message" - ], - "title": "errorSchema" - } -} -``` - - - - - - - - -
- - - - -### Copies an object {#copies-an-object} - -``` -POST /object/copy -``` - - - - - - -#### Header Parameters -
    - -
  • -

    - - authorization - - - required - - - - -

    - -

    - Example: - - Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs - -

    - -
    - -
    -
  • - -
- - - - - - -#### Body Parameters - -```json -{ - "schema": { - "type": "object", - "properties": { - "sourceKey": { - "type": "string", - "example": "folder/source.png" - }, - "bucketId": { - "type": "string", - "example": "avatars" - }, - "destinationKey": { - "type": "string", - "example": "folder/destination.png" - } - }, - "required": [ - "sourceKey", - "bucketId", - "destinationKey" - ] - } -} -``` - - - - -#### Responses - - - - - -Successful response - - - - -```json -{ - "schema": { - "description": "Successful response", - "type": "object", - "properties": { - "Key": { - "type": "string", - "example": "folder/destination.png" - } - }, - "required": [ - "Key" - ] - } -} -``` - - - - - - - - -Error response - - - - -```json -{ - "schema": { - "description": "Error response", - "type": "object", - "properties": { - "statusCode": { - "type": "string" - }, - "error": { - "type": "string" - }, - "message": { - "type": "string" - } - }, - "required": [ - "statusCode", - "error", - "message" - ], - "title": "errorSchema" - } -} -``` - - - - - - - - -
- - - - -### Retrieve an object from a public bucket {#retrieve-an-object-from-a-public-bucket} - -``` -GET /object/public/{bucketName}/{wildcard} -``` - - - - -#### Path Parameters - -
    - -
  • -

    - - bucketName - - - required - - - - -

    - -

    - Example: - - avatars - -

    - -
    - -
    -
  • - -
  • -

    - - * - - - required - - - - -

    - -

    - Example: - - folder/cat.png - -

    - -
    - -
    -
  • - -
- - - - - - - - - - - -#### Responses - - - - - -Error response - - - - -```json -{ - "schema": { - "description": "Error response", - "type": "object", - "properties": { - "statusCode": { - "type": "string" - }, - "error": { - "type": "string" - }, - "message": { - "type": "string" - } - }, - "required": [ - "statusCode", - "error", - "message" - ], - "title": "errorSchema" - } -} -``` - - - - - - - - -
- - - -## Bucket {#bucket} - -Bucket end-points - - - - - -### Create a bucket {#create-a-bucket} - -``` -POST /bucket/ -``` - - - - - - -#### Header Parameters -
    - -
  • -

    - - authorization - - - required - - - - -

    - -

    - Example: - - Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs - -

    - -
    - -
    -
  • - -
- - - - - - -#### Body Parameters - -```json -{ - "schema": { - "type": "object", - "properties": { - "name": { - "type": "string", - "example": "avatars" - }, - "id": { - "type": "string", - "example": "avatars" - }, - "public": { - "type": "boolean", - "example": false - } - }, - "required": [ - "name" - ] - } -} -``` - - - - -#### Responses - - - - - -Successful response - - - - -```json -{ - "schema": { - "description": "Successful response", - "type": "object", - "properties": { - "name": { - "type": "string", - "example": "avatars" - } - }, - "required": [ - "name" - ] - } -} -``` - - - - - - - - -Error response - - - - -```json -{ - "schema": { - "description": "Error response", - "type": "object", - "properties": { - "statusCode": { - "type": "string" - }, - "error": { - "type": "string" - }, - "message": { - "type": "string" - } - }, - "required": [ - "statusCode", - "error", - "message" - ], - "title": "errorSchema" - } -} -``` - - - - - - - - -
- - - - -### Gets all buckets {#gets-all-buckets} - -``` -GET /bucket/ -``` - - - - - - -#### Header Parameters -
    - -
  • -

    - - authorization - - - required - - - - -

    - -

    - Example: - - Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs - -

    - -
    - -
    -
  • - -
- - - - - - - - - -#### Responses - - - - - -Successful response - - - - -```json -{ - "schema": { - "description": "Successful response", - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "owner": { - "type": "string" - }, - "public": { - "type": "boolean" - }, - "created_at": { - "type": "string" - }, - "updated_at": { - "type": "string" - } - }, - "required": [ - "id", - "name" - ], - "additionalProperties": false, - "title": "bucketSchema", - "example": { - "id": "bucket2", - "name": "bucket2", - "owner": "4d56e902-f0a0-4662-8448-a4d9e643c142", - "created_at": "2021-02-17T04:43:32.770206+00:00", - "updated_at": "2021-02-17T04:43:32.770206+00:00" - } - }, - "example": [ - { - "id": "bucket2", - "name": "bucket2", - "owner": "4d56e902-f0a0-4662-8448-a4d9e643c142", - "created_at": "2021-02-17T04:43:32.770206+00:00", - "updated_at": "2021-02-17T04:43:32.770206+00:00" - } - ] - }, - "example": [ - { - "id": "bucket2", - "name": "bucket2", - "owner": "4d56e902-f0a0-4662-8448-a4d9e643c142", - "created_at": "2021-02-17T04:43:32.770206+00:00", - "updated_at": "2021-02-17T04:43:32.770206+00:00" - } - ] -} -``` - - - - - - - - -Error response - - - - -```json -{ - "schema": { - "description": "Error response", - "type": "object", - "properties": { - "statusCode": { - "type": "string" - }, - "error": { - "type": "string" - }, - "message": { - "type": "string" - } - }, - "required": [ - "statusCode", - "error", - "message" - ], - "title": "errorSchema" - } -} -``` - - - - - - - - -
- - - - -### Empty a bucket {#empty-a-bucket} - -``` -POST /bucket/{bucketId}/empty -``` - - - - -#### Path Parameters - -
    - -
  • -

    - - bucketId - - - required - - - - -

    - -

    - Example: - - avatars - -

    - -
    - -
    -
  • - -
- - - -#### Header Parameters -
    - -
  • -

    - - authorization - - - required - - - - -

    - -

    - Example: - - Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs - -

    - -
    - -
    -
  • - -
- - - - - - - - - -#### Responses - - - - - -Successful response - - - - -```json -{ - "schema": { - "description": "Successful response", - "type": "object", - "properties": { - "message": { - "type": "string", - "example": "Successfully emptied" - } - } - } -} -``` - - - - - - - - -Error response - - - - -```json -{ - "schema": { - "description": "Error response", - "type": "object", - "properties": { - "statusCode": { - "type": "string" - }, - "error": { - "type": "string" - }, - "message": { - "type": "string" - } - }, - "required": [ - "statusCode", - "error", - "message" - ], - "title": "errorSchema" - } -} -``` - - - - - - - - -
- - - - -### Get details of a bucket {#get-details-of-a-bucket} - -``` -GET /bucket/{bucketId} -``` - - - - -#### Path Parameters - -
    - -
  • -

    - - bucketId - - - required - - - - -

    - -

    - Example: - - avatars - -

    - -
    - -
    -
  • - -
- - - -#### Header Parameters -
    - -
  • -

    - - authorization - - - required - - - - -

    - -

    - Example: - - Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs - -

    - -
    - -
    -
  • - -
- - - - - - - - - -#### Responses - - - - - -Successful response - - - - -```json -{ - "schema": { - "description": "Successful response", - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "owner": { - "type": "string" - }, - "public": { - "type": "boolean" - }, - "created_at": { - "type": "string" - }, - "updated_at": { - "type": "string" - } - }, - "required": [ - "id", - "name" - ], - "additionalProperties": false, - "example": { - "id": "bucket2", - "name": "bucket2", - "owner": "4d56e902-f0a0-4662-8448-a4d9e643c142", - "created_at": "2021-02-17T04:43:32.770206+00:00", - "updated_at": "2021-02-17T04:43:32.770206+00:00" - } - }, - "example": { - "id": "bucket2", - "name": "bucket2", - "owner": "4d56e902-f0a0-4662-8448-a4d9e643c142", - "created_at": "2021-02-17T04:43:32.770206+00:00", - "updated_at": "2021-02-17T04:43:32.770206+00:00" - } -} -``` - - - - - - - - -Error response - - - - -```json -{ - "schema": { - "description": "Error response", - "type": "object", - "properties": { - "statusCode": { - "type": "string" - }, - "error": { - "type": "string" - }, - "message": { - "type": "string" - } - }, - "required": [ - "statusCode", - "error", - "message" - ], - "title": "errorSchema" - } -} -``` - - - - - - - - -
- - - - -### Update properties of a bucket {#update-properties-of-a-bucket} - -``` -PUT /bucket/{bucketId} -``` - - - - - - -#### Header Parameters -
    - -
  • -

    - - authorization - - - required - - - - -

    - -

    - Example: - - Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs - -

    - -
    - -
    -
  • - -
- - - - - - -#### Body Parameters - -```json -{ - "schema": { - "type": "object", - "properties": { - "public": { - "type": "boolean", - "example": false - } - } - } -} -``` - - - - -#### Responses - - - - - -Successful response - - - - -```json -{ - "schema": { - "description": "Successful response", - "type": "object", - "properties": { - "message": { - "type": "string", - "example": "Successfully updated" - } - }, - "required": [ - "message" - ] - } -} -``` - - - - - - - - -Error response - - - - -```json -{ - "schema": { - "description": "Error response", - "type": "object", - "properties": { - "statusCode": { - "type": "string" - }, - "error": { - "type": "string" - }, - "message": { - "type": "string" - } - }, - "required": [ - "statusCode", - "error", - "message" - ], - "title": "errorSchema" - } -} -``` - - - - - - - - -
- - - - -### Delete a bucket {#delete-a-bucket} - -``` -DELETE /bucket/{bucketId} -``` - - - - -#### Path Parameters - -
    - -
  • -

    - - bucketId - - - required - - - - -

    - -

    - Example: - - avatars - -

    - -
    - -
    -
  • - -
- - - -#### Header Parameters -
    - -
  • -

    - - authorization - - - required - - - - -

    - -

    - Example: - - Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs - -

    - -
    - -
    -
  • - -
- - - - - - - - - -#### Responses - - - - - -Successful response - - - - -```json -{ - "schema": { - "description": "Successful response", - "type": "object", - "properties": { - "message": { - "type": "string", - "example": "Successfully deleted" - } - } - } -} -``` - - - - - - - - -Error response - - - - -```json -{ - "schema": { - "description": "Error response", - "type": "object", - "properties": { - "statusCode": { - "type": "string" - }, - "error": { - "type": "string" - }, - "message": { - "type": "string" - } - }, - "required": [ - "statusCode", - "error", - "message" - ], - "title": "errorSchema" - } -} -``` - - - - - - - - -
- - - -## Deprecated {#deprecated} - -Deprecated end-points - - - - - -### Get object {#get-object} - -``` -GET /object/{bucketName}/{wildcard} -``` - - - - -#### Path Parameters - -
    - -
  • -

    - - bucketName - - - required - - - - -

    - -

    - Example: - - avatars - -

    - -
    - -
    -
  • - -
  • -

    - - * - - - required - - - - -

    - -

    - Example: - - folder/cat.png - -

    - -
    - -
    -
  • - -
- - - -#### Header Parameters -
    - -
  • -

    - - authorization - - - required - - - - -

    - -

    - Example: - - Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs - -

    - -
    - -
    -
  • - -
- - - - - - - - - -#### Responses - - - - - -Default Response - - - - -```json -{ - "schema": { - "type": "object", - "properties": { - "statusCode": { - "type": "string" - }, - "error": { - "type": "string" - }, - "message": { - "type": "string" - } - }, - "required": [ - "statusCode", - "error", - "message" - ], - "title": "errorSchema" - } -} -``` - - - - - - - - -
- diff --git a/apps/reference/_supabase_dart/generated/auth-onauthstatechange.mdx b/apps/reference/_supabase_dart/generated/auth-onauthstatechange.mdx deleted file mode 100644 index 20bea627851..00000000000 --- a/apps/reference/_supabase_dart/generated/auth-onauthstatechange.mdx +++ /dev/null @@ -1,29 +0,0 @@ ---- -id: auth-onauthstatechange -title: 'auth.onAuthStateChange()' -slug: /auth-onauthstatechange -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Receive a notification every time an auth event happens. - -```dart -final subscription = supabase.auth.onAuthStateChange((event, session) { - print(session?.user?.id); - // handle auth state change -}); -``` - -## Examples - -### Listen to auth changes - -```dart -final subscription = supabase.auth.onAuthStateChange((event, session) { - print(session?.user?.id); - // handle auth state change -}); -``` diff --git a/apps/reference/_supabase_dart/generated/auth-session.mdx b/apps/reference/_supabase_dart/generated/auth-session.mdx deleted file mode 100644 index 2695de7e177..00000000000 --- a/apps/reference/_supabase_dart/generated/auth-session.mdx +++ /dev/null @@ -1,23 +0,0 @@ ---- -id: auth-session -title: 'auth.session()' -slug: /auth-session -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Returns the session data, if there is an active session. - -```dart -final Session? session = supabase.auth.currentSession; -``` - -## Examples - -### Get the session data - -```dart -final Session? session = supabase.auth.currentSession; -``` diff --git a/apps/reference/_supabase_dart/generated/auth-signin.mdx b/apps/reference/_supabase_dart/generated/auth-signin.mdx deleted file mode 100644 index 93c12ffd39b..00000000000 --- a/apps/reference/_supabase_dart/generated/auth-signin.mdx +++ /dev/null @@ -1,54 +0,0 @@ ---- -id: auth-signin -title: 'auth.signIn()' -slug: /auth-signin -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Log in an existing user, or login via a third-party provider. - -```dart -final GotrueSessionResponse res = await supabase.auth.signIn(email: 'example@email.com', password: 'example-password'); - -final User? user = res.user; -``` - -## Notes - -- A user can sign up via email, phone number. -- If you provide `email` without a `password`, the user will be sent a magic link. -- The magic link's destination URL is determined by the SITE_URL config variable. To change this, you can go to Authentication -> Settings on [app.supabase.com](https://app.supabase.com) -- Similarly, if you provide `phone` without a `password`, the user will be sent a one time password. -- If you are looking to sign users in with OAuth in Flutter apps, go to [`signInWithProvider()`](/docs/reference/dart/auth-signinwithprovider). - -## Examples - -### Sign in with email. - -```dart -final GotrueSessionResponse res = await supabase.auth.signIn(email: 'example@email.com', password: 'example-password'); - -final User? user = res.user; -``` - -### Sign in with magic link. - -If email is provided, but no password is provided, the user will be sent a "magic link" to their email address, which they can click to open your application with a valid session. By default, a given user can only request a Magic Link once every 60 seconds. - -```dart -final GotrueSessionResponse res = await supabase.auth.signIn(email: 'example@email.com'); -``` - -### Get OAuth sign in URL. - -Passing provider parameter to `signIn()` will return a URL to sign your user in via OAuth. -If you are looking to sign in a user via OAuth on Flutter app, go to [`signInWithProvider()`](/docs/reference/dart/auth-signinwithprovider). - -```dart -final GotrueSessionResponse res = await supabase.auth.signIn(provider: Provider.github); - -final User? user = res.user; -``` diff --git a/apps/reference/_supabase_dart/generated/auth-signinwithprovider.mdx b/apps/reference/_supabase_dart/generated/auth-signinwithprovider.mdx deleted file mode 100644 index cc7078af3f4..00000000000 --- a/apps/reference/_supabase_dart/generated/auth-signinwithprovider.mdx +++ /dev/null @@ -1,55 +0,0 @@ ---- -id: auth-signinwithprovider -title: 'auth.signInWithProvider()' -slug: /auth-signinwithprovider -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Signs the user in using third party OAuth providers. - -```dart -await supabase.auth.signInWithProvider(Provider.github); -``` - -## Notes - -- `auth.signInWithProvider()` is only available on `supabase_flutter` -- It will open the browser to the relevant login page. - -## Examples - -### Sign in with provider. - -```dart -await supabase.auth.signInWithProvider(Provider.github); -``` - -### With `redirectTo` - -Specify the redirect link to bring back the user via deeplink. -Note that `redirectTo` should be null for Flutter Web. - -```dart -await supabase.auth.signInWithProvider(Provider.github, - options: const AuthOptions( - redirectTo: - kIsWeb ? null : 'io.supabase.flutter://reset-callback/')); -``` - -### With scopes - -If you need additional data from an OAuth provider, you can include a space-separated list of scopes in your request to get back an OAuth provider token. -You may also need to specify the scopes in the provider's OAuth app settings, depending on the provider. - -```dart -await supabase.auth.signInWithProvider(Provider.github, - options: const AuthOptions(scopes: 'repo gist notifications')); -... -// after user comes back from signin flow - -final Session? session = supabase.auth.currentSession; -final String? oAuthToken = session?.providerToken; -``` diff --git a/apps/reference/_supabase_dart/generated/auth-signout.mdx b/apps/reference/_supabase_dart/generated/auth-signout.mdx deleted file mode 100644 index 9a85917e778..00000000000 --- a/apps/reference/_supabase_dart/generated/auth-signout.mdx +++ /dev/null @@ -1,23 +0,0 @@ ---- -id: auth-signout -title: 'auth.signOut()' -slug: /auth-signout -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Signs out the current user, if there is a logged in user. - -```dart -await supabase.auth.signOut(); -``` - -## Examples - -### Sign out - -```dart -await supabase.auth.signOut(); -``` diff --git a/apps/reference/_supabase_dart/generated/auth-signup.mdx b/apps/reference/_supabase_dart/generated/auth-signup.mdx deleted file mode 100644 index 1174fb7a608..00000000000 --- a/apps/reference/_supabase_dart/generated/auth-signup.mdx +++ /dev/null @@ -1,38 +0,0 @@ ---- -id: auth-signup -title: 'auth.signUp()' -slug: /auth-signup -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Creates a new user. - -```dart -final GotrueSessionResponse res = await supabase.auth.signUp('example@email.com', 'example-password'); - -final User? user = res.user; -``` - -## Notes - -- By default, the user will need to verify their email address before logging in. If you would like to change this, you can disable "Email Confirmations" by going to Authentication -> Settings on [app.supabase.com](https://app.supabase.com) -- If "Email Confirmations" is turned on, a user is returned but session will be null -- If "Email Confirmations" is turned off, both a `user` and a `session` will be returned -- When the user confirms their email address, they will be redirected to localhost:3000 by default. To change this, you can go to Authentication -> Settings on [app.supabase.com](https://app.supabase.com) - -## Examples - -### Sign up. - -```dart -final GotrueSessionResponse res = await supabase.auth.signUp('example@email.com', 'example-password'); - -final User? user = res.user; -``` - -### Sign up with third-party providers. - -If you are using Flutter, you can sign up with OAuth providers using the [`signInWithProvider()`](/docs/reference/dart/auth-signinwithprovider) method available on `supabase_flutter`. diff --git a/apps/reference/_supabase_dart/generated/auth-update.mdx b/apps/reference/_supabase_dart/generated/auth-update.mdx deleted file mode 100644 index 1d95999e765..00000000000 --- a/apps/reference/_supabase_dart/generated/auth-update.mdx +++ /dev/null @@ -1,28 +0,0 @@ ---- -id: auth-update -title: 'auth.update()' -slug: /auth-update -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Updates user data, if there is a logged in user. - -```dart -final GotrueUserResponse res = await supabase.auth.update(UserAttributes(data: {'hello': 'world'})); -``` - -## Notes - -It's generally better to store user data in a table inside your public schema (i.e. `public.users`). -Use the `update()` method if you have data which rarely changes or is specific only to the logged in user. - -## Examples - -### Update a user's metadata. - -```dart -final GotrueUserResponse res = await supabase.auth.update(UserAttributes(data: {'hello': 'world'})); -``` diff --git a/apps/reference/_supabase_dart/generated/auth-user.mdx b/apps/reference/_supabase_dart/generated/auth-user.mdx deleted file mode 100644 index 25be1f9609c..00000000000 --- a/apps/reference/_supabase_dart/generated/auth-user.mdx +++ /dev/null @@ -1,23 +0,0 @@ ---- -id: auth-user -title: 'auth.user()' -slug: /auth-user -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Returns the user data, if there is a logged in user. - -```dart -final User? user = supabase.auth.currentUser; -``` - -## Examples - -### Get the logged in user - -```dart -final User? user = supabase.auth.currentUser; -``` diff --git a/apps/reference/_supabase_dart/generated/containedby.mdx b/apps/reference/_supabase_dart/generated/containedby.mdx deleted file mode 100644 index 0e09e8326fd..00000000000 --- a/apps/reference/_supabase_dart/generated/containedby.mdx +++ /dev/null @@ -1,54 +0,0 @@ ---- -id: containedby -title: '.containedBy()' -slug: /containedby -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -```dart -final data = await supabase - .from('countries') - .select('name, id, main_exports') - .containedBy('main_exports', ['cars', 'food', 'machine']); -``` - -## Examples - -### With `select()` - -```dart -final data = await supabase - .from('countries') - .select('name, id, main_exports') - .containedBy('main_exports', ['cars', 'food', 'machine']); -``` - -### With `update()` - -```dart -final data = await supabase - .from('countries') - .update({ 'name': 'Mordor' }) - .containedBy('main_exports', ['orks', 'surveillance', 'evil']); -``` - -### With `delete()` - -```dart -final data = await supabase - .from('countries') - .delete() - .containedBy('main_exports', ['cars', 'food', 'machine']); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final data = await supabase - .rpc('echo_all_countries') - .containedBy('main_exports', ['cars', 'food', 'machine']); -``` diff --git a/apps/reference/_supabase_dart/generated/contains.mdx b/apps/reference/_supabase_dart/generated/contains.mdx deleted file mode 100644 index c1a7823d494..00000000000 --- a/apps/reference/_supabase_dart/generated/contains.mdx +++ /dev/null @@ -1,54 +0,0 @@ ---- -id: contains -title: '.contains()' -slug: /contains -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -```dart -final data = await supabase - .from('countries') - .select('name, id, main_exports') - .contains('main_exports', ['oil']); -``` - -## Examples - -### With `select()` - -```dart -final data = await supabase - .from('countries') - .select('name, id, main_exports') - .contains('main_exports', ['oil']); -``` - -### With `update()` - -```dart -final data = await supabase - .from('countries') - .update({ 'name': 'Mordor' }) - .contains('main_exports', ['oil']); -``` - -### With `delete()` - -```dart -final data = await supabase - .from('countries') - .delete() - .contains('main_exports', ['oil']); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final data = await supabase - .rpc('echo_all_countries') - .contains('main_exports', ['oil']); -``` diff --git a/apps/reference/_supabase_dart/generated/delete.mdx b/apps/reference/_supabase_dart/generated/delete.mdx deleted file mode 100644 index d94a6df55bf..00000000000 --- a/apps/reference/_supabase_dart/generated/delete.mdx +++ /dev/null @@ -1,33 +0,0 @@ ---- -id: delete -title: 'Delete data: delete()' -slug: /delete -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Performs a DELETE on the table. - -```dart -final data = await supabase - .from('cities') - .delete() - .match({ 'id': 666 }); -``` - -## Notes - -- `delete()` should always be combined with [Filters](/docs/reference/dart/using-filters) to target the item(s) you wish to delete. - -## Examples - -### Delete records - -```dart -final data = await supabase - .from('cities') - .delete() - .match({ 'id': 666 }); -``` diff --git a/apps/reference/_supabase_dart/generated/eq.mdx b/apps/reference/_supabase_dart/generated/eq.mdx deleted file mode 100644 index 1cb74567cc5..00000000000 --- a/apps/reference/_supabase_dart/generated/eq.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -id: eq -title: '.eq()' -slug: /eq -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows whose value on the stated `column` exactly matches the specified `value`. - -```dart -final data = await supabase - .from('cities') - .select('name, country_id') - .eq('name', 'The shire'); -``` - -## Examples - -### With `select()` - -```dart -final data = await supabase - .from('cities') - .select('name, country_id') - .eq('name', 'The shire'); -``` - -### With `update()` - -```dart -final data = await supabase - .from('cities') - .update({ 'name': 'Mordor' }) - .eq('name', 'San Francisco'); -``` - -### With `delete()` - -```dart -final data = await supabase - .from('cities') - .delete() - .eq('name', 'Mordor'); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final data = await supabase - .rpc('echo_all_cities') - .eq('name', 'San Francisco'); -``` diff --git a/apps/reference/_supabase_dart/generated/filter.mdx b/apps/reference/_supabase_dart/generated/filter.mdx deleted file mode 100644 index 253945c18ad..00000000000 --- a/apps/reference/_supabase_dart/generated/filter.mdx +++ /dev/null @@ -1,75 +0,0 @@ ---- -id: filter -title: '.filter()' -slug: /filter -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows whose `column` satisfies the filter. - -```dart -final data = await supabase - .from('cities') - .select('name, country_id') - .filter('name', 'in', '("Paris","Tokyo")'); -``` - -## Notes - -- `.filter()` expects you to use the raw [PostgREST syntax](https://postgrest.org/en/stable/api.html#horizontal-filtering-rows) for the filter names and values, so it should only be used as an escape hatch in case other filters don't work. - ```dart - .filter('arraycol','cs','{"a","b"}') // Use Postgres array {} and 'cs' for contains. - .filter('rangecol','cs','(1,2]') // Use Postgres range syntax for range column. - .filter('id','in','(6,7)') // Use Postgres list () and 'in' for in_ filter. - .filter('id','cs','{${mylist.join(',')}}') // You can insert a Dart array list. - ``` - -## Examples - -### With `select()` - -```dart -final data = await supabase - .from('cities') - .select('name, country_id') - .filter('name', 'in', '("Paris","Tokyo")'); -``` - -### With `update()` - -```dart -final data = await supabase - .from('cities') - .update({ 'name': 'Mordor' }) - .filter('name', 'in', '("Paris","Tokyo")'); -``` - -### With `delete()` - -```dart -final data = await supabase - .from('cities') - .delete() - .filter('name', 'in', '("Paris","Tokyo")'); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final data = await supabase - .rpc('echo_all_cities') - .filter('name', 'in', '("Paris","Tokyo")') -``` - -### Filter embedded resources - -```dart -final data = await supabase - .from('cities') - .select('name, countries ( name )') - .filter('countries.name', 'in', '("France","Japan")'); -``` diff --git a/apps/reference/_supabase_dart/generated/getchannels.mdx b/apps/reference/_supabase_dart/generated/getchannels.mdx deleted file mode 100644 index 3f01145853f..00000000000 --- a/apps/reference/_supabase_dart/generated/getchannels.mdx +++ /dev/null @@ -1,23 +0,0 @@ ---- -id: getchannels -title: 'getChannels()' -slug: /getchannels -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Returns all Realtime channels. - -```dart -final channels = supabase.getChannels(); -``` - -## Examples - -### Get all channels - -```dart -final channels = supabase.getChannels(); -``` diff --git a/apps/reference/_supabase_dart/generated/gt.mdx b/apps/reference/_supabase_dart/generated/gt.mdx deleted file mode 100644 index c2f9e44d6a1..00000000000 --- a/apps/reference/_supabase_dart/generated/gt.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -id: gt -title: '.gt()' -slug: /gt -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows whose value on the stated `column` is greater than the specified `value`. - -```dart -final data = await supabase - .from('cities') - .select('name, country_id') - .gt('country_id', 250); -``` - -## Examples - -### With `select()` - -```dart -final data = await supabase - .from('cities') - .select('name, country_id') - .gt('country_id', 250); -``` - -### With `update()` - -```dart -final data = await supabase - .from('cities') - .update({ 'name': 'Mordor' }) - .gt('country_id', 250); -``` - -### With `delete()` - -```dart -final data = await supabase - .from('cities') - .delete() - .gt('country_id', 250); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final data = await supabase - .rpc('echo_all_cities') - .gt('country_id', 250); -``` diff --git a/apps/reference/_supabase_dart/generated/gte.mdx b/apps/reference/_supabase_dart/generated/gte.mdx deleted file mode 100644 index d64aab2d69d..00000000000 --- a/apps/reference/_supabase_dart/generated/gte.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -id: gte -title: '.gte()' -slug: /gte -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows whose value on the stated `column` is greater than or equal to the specified `value`. - -```dart -final data = await supabase - .from('cities') - .select('name, country_id') - .gte('country_id', 250); -``` - -## Examples - -### With `select()` - -```dart -final data = await supabase - .from('cities') - .select('name, country_id') - .gte('country_id', 250); -``` - -### With `update()` - -```dart -final data = await supabase - .from('cities') - .update({ 'name': 'Mordor' }) - .gte('country_id', 250); -``` - -### With `delete()` - -```dart -final data = await supabase - .from('cities') - .delete() - .gte('country_id', 250); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final data = await supabase - .rpc('echo_all_cities') - .gte('country_id', 250); -``` diff --git a/apps/reference/_supabase_dart/generated/ilike.mdx b/apps/reference/_supabase_dart/generated/ilike.mdx deleted file mode 100644 index 202f61746e3..00000000000 --- a/apps/reference/_supabase_dart/generated/ilike.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -id: ilike -title: '.ilike()' -slug: /ilike -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows whose value in the stated `column` matches the supplied `pattern` (case insensitive). - -```dart -final data = await supabase - .from('cities') - .select('name, country_id') - .ilike('name', '%la%'); -``` - -## Examples - -### With `select()` - -```dart -final data = await supabase - .from('cities') - .select('name, country_id') - .ilike('name', '%la%'); -``` - -### With `update()` - -```dart -final data = await supabase - .from('cities') - .update({ 'name': 'Mordor' }) - .ilike('name', '%la%'); -``` - -### With `delete()` - -```dart -final data = await supabase - .from('cities') - .delete() - .ilike('name', '%la%'); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final data = await supabase - .rpc('echo_all_cities') - .ilike('name', '%la%'); -``` diff --git a/apps/reference/_supabase_dart/generated/in_.mdx b/apps/reference/_supabase_dart/generated/in_.mdx deleted file mode 100644 index 5bfef4a1107..00000000000 --- a/apps/reference/_supabase_dart/generated/in_.mdx +++ /dev/null @@ -1,58 +0,0 @@ ---- -id: in_ -title: '.in_()' -slug: /in_ -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows whose value on the stated `column` is found on the specified `values`. - -`is_` and `in_` filter methods are suffixed with `_` to avoid collisions with reserved keywords. - -```dart -final data = await supabase - .from('cities') - .select('name, country_id') - .in_('name', ['Rio de Janeiro', 'San Francisco']); -``` - -## Examples - -### With `select()` - -```dart -final data = await supabase - .from('cities') - .select('name, country_id') - .in_('name', ['Rio de Janeiro', 'San Francisco']); -``` - -### With `update()` - -```dart -final data = await supabase - .from('cities') - .update({ 'name': 'Mordor' }) - .in_('name', ['Rio de Janeiro', 'San Francisco']); -``` - -### With `delete()` - -```dart -final data = await supabase - .from('cities') - .delete() - .in_('name', ['Rio de Janeiro', 'San Francisco']); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final data = await supabase - .rpc('echo_all_cities') - .in_('name', ['Rio de Janeiro', 'San Francisco']); -``` diff --git a/apps/reference/_supabase_dart/generated/index.mdx b/apps/reference/_supabase_dart/generated/index.mdx deleted file mode 100644 index 946a7d97d95..00000000000 --- a/apps/reference/_supabase_dart/generated/index.mdx +++ /dev/null @@ -1,11 +0,0 @@ ---- -id: index -title: 'Getting started' -slug: getting-started -custom_edit_url: ../../spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Supabase Dart. diff --git a/apps/reference/_supabase_dart/generated/insert.mdx b/apps/reference/_supabase_dart/generated/insert.mdx deleted file mode 100644 index 201f39357fb..00000000000 --- a/apps/reference/_supabase_dart/generated/insert.mdx +++ /dev/null @@ -1,48 +0,0 @@ ---- -id: insert -title: 'Create data: insert()' -slug: /insert -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Performs an INSERT into the table. - -```dart -final data = await supabase - .from('cities') - .insert([ - {'name': 'The Shire', 'country_id': 554} - ]); -``` - -## Notes - -- By default, every time you run `insert()`, the client library will make a `select` to return the full record. - This is convenient, but it can also cause problems if your Policies are not configured to allow the `select` operation. - If you are using Row Level Security and you are encountering problems, try setting the `returning` param to `minimal`. - -## Examples - -### Create a record - -```dart -final data = await supabase - .from('cities') - .insert([ - {'name': 'The Shire', 'country_id': 554} - ]); -``` - -### Bulk create - -```dart -final data = await supabase - .from('cities') - .insert([ - {'name': 'The Shire', 'country_id': 554}, - {'name': 'Rohan', 'country_id': 555}, - ]); -``` diff --git a/apps/reference/_supabase_dart/generated/invoke.mdx b/apps/reference/_supabase_dart/generated/invoke.mdx deleted file mode 100644 index cd946b09aaa..00000000000 --- a/apps/reference/_supabase_dart/generated/invoke.mdx +++ /dev/null @@ -1,57 +0,0 @@ ---- -id: invoke -title: 'invoke()' -slug: /invoke -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Invokes a Supabase Function. See the [guide](/docs/guides/functions) for details on writing Functions. - -```dart -final res = await supabase.functions.invoke('hello', body: {'foo': 'baa'}); -final data = res.data; -``` - -## Notes - -- Requires an Authorization header. -- Invoke params generally match the [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) spec. - -## Examples - -### Basic invocation. - -```dart -final res = await supabase.functions.invoke('hello', body: {'foo': 'baa'}); -final data = res.data; -``` - -### Specifying response type. - -By default, `invoke()` will parse the response as JSON. You can parse the response in the following formats: `json`, `blob`, `text`, and `arrayBuffer`. - -```dart -final res = await supabase.functions.invoke( - 'hello', - body: {'foo': 'baa'}, - responseType: ResponseType.text, -); -final data = res.data; -``` - -### Parsing custom headers. - -Any `headers` will be passed through to the function. A common pattern is to pass a logged-in user's JWT token as an Authorization header. - -```dart -final res = await supabase.functions.invoke( - 'hello', - body: {'foo': 'baa'}, - headers: { - 'Authorization': 'Bearer ${supabase.auth.currentSession?.accessToken}' - }, -); -``` diff --git a/apps/reference/_supabase_dart/generated/is_.mdx b/apps/reference/_supabase_dart/generated/is_.mdx deleted file mode 100644 index daae2c1e29b..00000000000 --- a/apps/reference/_supabase_dart/generated/is_.mdx +++ /dev/null @@ -1,58 +0,0 @@ ---- -id: is_ -title: '.is_()' -slug: /is_ -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -A check for exact equality (null, true, false), finds all rows whose value on the stated `column` exactly match the specified `value`. - -`is_` and `in_` filter methods are suffixed with `_` to avoid collisions with reserved keywords. - -```dart -final data = await supabase - .from('cities') - .select('name, country_id') - .is_('name', null); -``` - -## Examples - -### With `select()` - -```dart -final data = await supabase - .from('cities') - .select('name, country_id') - .is_('name', null); -``` - -### With `update()` - -```dart -final data = await supabase - .from('cities') - .update({ 'name': 'Mordor' }) - .is_('name', null); -``` - -### With `delete()` - -```dart -final data = await supabase - .from('cities') - .delete() - .is_('name', null); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final data = await supabase - .rpc('echo_all_cities') - .is_('name', null); -``` diff --git a/apps/reference/_supabase_dart/generated/like.mdx b/apps/reference/_supabase_dart/generated/like.mdx deleted file mode 100644 index 3bb8f1aacdb..00000000000 --- a/apps/reference/_supabase_dart/generated/like.mdx +++ /dev/null @@ -1,102 +0,0 @@ ---- -id: like -title: '.like()' -slug: /like -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows whose value in the stated `column` matches the supplied `pattern` (case sensitive). - -```dart -final data = await supabase - .from('cities') - .select('name, country_id') - .like('name', '%la%'); -``` - -## Parameters - -
    - -
  • -

    - - column - - - required - - - object - -

    -
    - -The column to filter on. - -
    - -
  • - -
  • -

    - - pattern - - - required - - - string - -

    -
    - -The pattern to filter with. - -
    - -
  • - -
- -## Examples - -### With `select()` - -```dart -final data = await supabase - .from('cities') - .select('name, country_id') - .like('name', '%la%'); -``` - -### With `update()` - -```dart -final data = await supabase - .from('cities') - .update({ 'name': 'Mordor' }) - .like('name', '%la%'); -``` - -### With `delete()` - -```dart -final data = await supabase - .from('cities') - .delete() - .like('name', '%la%'); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final data = await supabase - .rpc('echo_all_cities') - .like('name', '%la%'); -``` diff --git a/apps/reference/_supabase_dart/generated/limit.mdx b/apps/reference/_supabase_dart/generated/limit.mdx deleted file mode 100644 index e1dd3bc9d51..00000000000 --- a/apps/reference/_supabase_dart/generated/limit.mdx +++ /dev/null @@ -1,39 +0,0 @@ ---- -id: limit -title: 'limit()' -slug: /limit -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Limits the result with the specified count. - -```dart -final data = await supabase - .from('cities') - .select('name, country_id') - .limit(1); -``` - -## Examples - -### With `select()` - -```dart -final data = await supabase - .from('cities') - .select('name, country_id') - .limit(1); -``` - -### With embedded resources - -```dart -final data = await supabase - .from('countries') - .select('name, cities(name)') - .eq('name', 'United States') - .limit(1, foreignTable: 'cities' ); -``` diff --git a/apps/reference/_supabase_dart/generated/lt.mdx b/apps/reference/_supabase_dart/generated/lt.mdx deleted file mode 100644 index 2d8f3506dc2..00000000000 --- a/apps/reference/_supabase_dart/generated/lt.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -id: lt -title: '.lt()' -slug: /lt -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows whose value on the stated `column` is less than the specified `value`. - -```dart -final data = await supabase - .from('cities') - .select('name, country_id') - .lt('country_id', 250); -``` - -## Examples - -### With `select()` - -```dart -final data = await supabase - .from('cities') - .select('name, country_id') - .lt('country_id', 250); -``` - -### With `update()` - -```dart -final data = await supabase - .from('cities') - .update({ 'name': 'Mordor' }) - .lt('country_id', 250); -``` - -### With `delete()` - -```dart -final data = await supabase - .from('cities') - .delete() - .lt('country_id', 250); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final data = await supabase - .rpc('echo_all_cities') - .lt('country_id', 250); -``` diff --git a/apps/reference/_supabase_dart/generated/lte.mdx b/apps/reference/_supabase_dart/generated/lte.mdx deleted file mode 100644 index 5f33a32f83e..00000000000 --- a/apps/reference/_supabase_dart/generated/lte.mdx +++ /dev/null @@ -1,102 +0,0 @@ ---- -id: lte -title: '.lte()' -slug: /lte -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows whose value on the stated `column` is less than or equal to the specified `value`. - -```dart -final data = await supabase - .from('cities') - .select('name, country_id') - .lte('country_id', 250); -``` - -## Parameters - -
    - -
  • -

    - - column - - - required - - - object - -

    -
    - -The column to filter on. - -
    - -
  • - -
  • -

    - - value - - - required - - - object - -

    -
    - -The value to filter with. - -
    - -
  • - -
- -## Examples - -### With `select()` - -```dart -final data = await supabase - .from('cities') - .select('name, country_id') - .lte('country_id', 250); -``` - -### With `update()` - -```dart -final data = await supabase - .from('cities') - .update({ 'name': 'Mordor' }) - .lte('country_id', 250); -``` - -### With `delete()` - -```dart -final data = await supabase - .from('cities') - .delete() - .lte('country_id', 250); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final data = await supabase - .rpc('echo_all_cities') - .lte('country_id', 250); -``` diff --git a/apps/reference/_supabase_dart/generated/match.mdx b/apps/reference/_supabase_dart/generated/match.mdx deleted file mode 100644 index 91c0a592d65..00000000000 --- a/apps/reference/_supabase_dart/generated/match.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -id: match -title: '.match()' -slug: /match -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows whose columns match the specified `query` object. - -```dart -final data = await supabase - .from('cities') - .select('name, country_id') - .match({'name': 'Beijing', 'country_id': 156}); -``` - -## Examples - -### With `select()` - -```dart -final data = await supabase - .from('cities') - .select('name, country_id') - .match({'name': 'Beijing', 'country_id': 156}); -``` - -### With `update()` - -```dart -final data = await supabase - .from('cities') - .update({ 'name': 'Mordor' }) - .match({'name': 'Beijing', 'country_id': 156}); -``` - -### With `delete()` - -```dart -final data = await supabase - .from('cities') - .delete() - .match({'name': 'Beijing', 'country_id': 156}); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final data = await supabase - .rpc('echo_all_cities') - .match({'name': 'Beijing', 'country_id': 156}); -``` diff --git a/apps/reference/_supabase_dart/generated/neq.mdx b/apps/reference/_supabase_dart/generated/neq.mdx deleted file mode 100644 index 819ef1006ab..00000000000 --- a/apps/reference/_supabase_dart/generated/neq.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -id: neq -title: '.neq()' -slug: /neq -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows whose value on the stated `column` doesn't match the specified `value`. - -```dart -final data = await supabase - .from('cities') - .select('name, country_id') - .neq('name', 'The shire'); -``` - -## Examples - -### With `select()` - -```dart -final data = await supabase - .from('cities') - .select('name, country_id') - .neq('name', 'The shire'); -``` - -### With `update()` - -```dart -final data = await supabase - .from('cities') - .update({ 'name': 'Mordor' }) - .neq('name', 'San Francisco'); -``` - -### With `delete()` - -```dart -final data = await supabase - .from('cities') - .delete() - .neq('name', 'Mordor'); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final data = await supabase - .rpc('echo_all_cities') - .neq('name', 'Lagos'); -``` diff --git a/apps/reference/_supabase_dart/generated/not.mdx b/apps/reference/_supabase_dart/generated/not.mdx deleted file mode 100644 index e2dffc5c3b5..00000000000 --- a/apps/reference/_supabase_dart/generated/not.mdx +++ /dev/null @@ -1,68 +0,0 @@ ---- -id: not -title: '.not()' -slug: /not -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows which doesn't satisfy the filter. - -```dart -final data = await supabase - .from('cities') - .select('name, country_id') - .not('name', 'eq', 'Paris'); -``` - -## Notes - -- `.not()` expects you to use the raw [PostgREST syntax](https://postgrest.org/en/stable/api.html#horizontal-filtering-rows) for the filter names and values. - - ```dart - .not('name','eq','Paris') - .not('arraycol','cs','{"a","b"}') // Use Postgres array {} for array column and 'cs' for contains. - .not('rangecol','cs','(1,2]') // Use Postgres range syntax for range column. - .not('id','in','(6,7)') // Use Postgres list () and 'in' for in_ filter. - .not('id','in','(${mylist.join(',')})') // You can insert a Dart list array. - ``` - -## Examples - -### With `select()` - -```dart -final data = await supabase - .from('cities') - .select('name, country_id') - .not('name', 'eq', 'Paris'); -``` - -### With `update()` - -```dart -final data = await supabase - .from('cities') - .update({ 'name': 'Mordor' }) - .not('name', 'eq', 'Paris'); -``` - -### With `delete()` - -```dart -final data = await supabase - .from('cities') - .delete() - .not('name', 'eq', 'Paris'); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final data = await supabase - .rpc('echo_all_cities) - .not('name', 'eq', 'Paris'); -``` diff --git a/apps/reference/_supabase_dart/generated/or.mdx b/apps/reference/_supabase_dart/generated/or.mdx deleted file mode 100644 index f4ebb8e3088..00000000000 --- a/apps/reference/_supabase_dart/generated/or.mdx +++ /dev/null @@ -1,48 +0,0 @@ ---- -id: or -title: '.or()' -slug: /or -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows satisfying at least one of the filters. - -```dart -final data = await supabase - .from('cities') - .select('name, country_id') - .or('id.eq.20,id.eq.30'); -``` - -## Notes - -- `.or()` expects you to use the raw [PostgREST syntax](https://postgrest.org/en/stable/api.html#horizontal-filtering-rows) for the filter names and values. - - ```dart - .or('id.in.(6,7),arraycol.cs.{"a","b"}') // Use Postgres list () and 'in' for in_ filter. Array {} and 'cs' for contains. - .or('id.in.(${mylist.join(',')}),arraycol.cs.{${mylistArray.join(',')}}') // You can insert a Dart list for list or array column. - .or('id.in.(${mylist.join(',')}),rangecol.cs.(${mylistRange.join(',')}]') // You can insert a Dart list for list or range column. - ``` - -## Examples - -### With `select()` - -```dart -final data = await supabase - .from('cities') - .select('name, country_id') - .or('id.eq.20,id.eq.30'); -``` - -### Use `or` with `and` - -```dart -final data = await supabase - .from('cities') - .select('name, country_id') - .or('id.gt.20,and(name.eq.New Zealand,name.eq.France)'); -``` diff --git a/apps/reference/_supabase_dart/generated/order.mdx b/apps/reference/_supabase_dart/generated/order.mdx deleted file mode 100644 index 1e306a81069..00000000000 --- a/apps/reference/_supabase_dart/generated/order.mdx +++ /dev/null @@ -1,39 +0,0 @@ ---- -id: order -title: 'order()' -slug: /order -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Orders the result with the specified column. - -```dart -final data = await supabase - .from('cities') - .select('name, country_id') - .order('id', ascending: false ); -``` - -## Examples - -### With `select()` - -```dart -final data = await supabase - .from('cities') - .select('name, country_id') - .order('id', ascending: false ); -``` - -### With embedded resources - -```dart -final data = await supabase - .from('countries') - .select('name, cities(name)') - .eq('name', 'United States') - .order('name', foreignTable: 'cities'); -``` diff --git a/apps/reference/_supabase_dart/generated/overlaps.mdx b/apps/reference/_supabase_dart/generated/overlaps.mdx deleted file mode 100644 index eae54bbdef2..00000000000 --- a/apps/reference/_supabase_dart/generated/overlaps.mdx +++ /dev/null @@ -1,54 +0,0 @@ ---- -id: overlaps -title: '.overlaps()' -slug: /overlaps -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -```dart -final data = await supabase - .from('countries') - .select('name, id, main_exports') - .overlaps('main_exports', ['computers', 'minerals']); -``` - -## Examples - -### With `select()` - -```dart -final data = await supabase - .from('countries') - .select('name, id, main_exports') - .overlaps('main_exports', ['computers', 'minerals']); -``` - -### With `update()` - -```dart -final data = await supabase - .from('countries') - .update({ 'name': 'Mordor' }) - .overlaps('main_exports', ['computers', 'minerals']); -``` - -### With `delete()` - -```dart -final data = await supabase - .from('countries') - .delete() - .overlaps('main_exports', ['computers', 'minerals']); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final data = await supabase - .rpc('echo_all_countries') - .overlaps('main_exports', ['computers', 'minerals']); -``` diff --git a/apps/reference/_supabase_dart/generated/range.mdx b/apps/reference/_supabase_dart/generated/range.mdx deleted file mode 100644 index 25c6b2c0dbe..00000000000 --- a/apps/reference/_supabase_dart/generated/range.mdx +++ /dev/null @@ -1,29 +0,0 @@ ---- -id: range -title: 'range()' -slug: /range -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Limits the result to rows within the specified range, inclusive. - -```dart -final data = await supabase - .from('cities') - .select('name, country_id') - .range(0,3); -``` - -## Examples - -### With `select()` - -```dart -final data = await supabase - .from('cities') - .select('name, country_id') - .range(0,3); -``` diff --git a/apps/reference/_supabase_dart/generated/rangeadjacent.mdx b/apps/reference/_supabase_dart/generated/rangeadjacent.mdx deleted file mode 100644 index f3b85d3275c..00000000000 --- a/apps/reference/_supabase_dart/generated/rangeadjacent.mdx +++ /dev/null @@ -1,54 +0,0 @@ ---- -id: rangeadjacent -title: '.rangeAdjacent()' -slug: /rangeadjacent -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -```dart -final data = await supabase - .from('countries') - .select('name, id, population_range_millions') - .rangeAdjacent('population_range_millions', '[70, 185]'); -``` - -## Examples - -### With `select()` - -```dart -final data = await supabase - .from('countries') - .select('name, id, population_range_millions') - .rangeAdjacent('population_range_millions', '[70, 185]'); -``` - -### With `update()` - -```dart -final data = await supabase - .from('countries') - .update({ 'name': 'Mordor' }) - .rangeAdjacent('population_range_millions', '[70, 185]'); -``` - -### With `delete()` - -```dart -final data = await supabase - .from('countries') - .delete() - .rangeAdjacent('population_range_millions', '[70, 185]'); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final data = await supabase - .rpc('echo_all_countries') - .rangeAdjacent('population_range_millions', '[70, 185]'); -``` diff --git a/apps/reference/_supabase_dart/generated/rangegt.mdx b/apps/reference/_supabase_dart/generated/rangegt.mdx deleted file mode 100644 index 259d2aac135..00000000000 --- a/apps/reference/_supabase_dart/generated/rangegt.mdx +++ /dev/null @@ -1,54 +0,0 @@ ---- -id: rangegt -title: '.rangeGt()' -slug: /rangegt -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -```dart -final data = await supabase - .from('countries') - .select('name, id, population_range_millions') - .rangeGt('population_range_millions', '[150, 250]'); -``` - -## Examples - -### With `select()` - -```dart -final data = await supabase - .from('countries') - .select('name, id, population_range_millions') - .rangeGt('population_range_millions', '[150, 250]'); -``` - -### With `update()` - -```dart -final data = await supabase - .from('countries') - .update({ 'name': 'Mordor' }) - .rangeGt('population_range_millions', '[150, 250]'); -``` - -### With `delete()` - -```dart -final data = await supabase - .from('countries') - .delete() - .rangeGt('population_range_millions', '[150, 250]'); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final data = await supabase - .rpc('echo_all_countries') - .rangeGt('population_range_millions', '[150, 250]'); -``` diff --git a/apps/reference/_supabase_dart/generated/rangegte.mdx b/apps/reference/_supabase_dart/generated/rangegte.mdx deleted file mode 100644 index 8d6888ce0fd..00000000000 --- a/apps/reference/_supabase_dart/generated/rangegte.mdx +++ /dev/null @@ -1,54 +0,0 @@ ---- -id: rangegte -title: '.rangeGte()' -slug: /rangegte -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -```dart -final data = await supabase - .from('countries') - .select('name, id, population_range_millions') - .rangeGte('population_range_millions', '[150, 250]'); -``` - -## Examples - -### With `select()` - -```dart -final data = await supabase - .from('countries') - .select('name, id, population_range_millions') - .rangeGte('population_range_millions', '[150, 250]'); -``` - -### With `update()` - -```dart -final data = await supabase - .from('countries') - .update({ 'name': 'Mordor' }) - .rangeGte('population_range_millions', '[150, 250]'); -``` - -### With `delete()` - -```dart -final data = await supabase - .from('countries') - .delete() - .rangeGte('population_range_millions', '[150, 250]'); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final data = await supabase - .rpc('echo_all_countries') - .rangeGte('population_range_millions', '[150, 250]'); -``` diff --git a/apps/reference/_supabase_dart/generated/rangelt.mdx b/apps/reference/_supabase_dart/generated/rangelt.mdx deleted file mode 100644 index a9c27e4b7d0..00000000000 --- a/apps/reference/_supabase_dart/generated/rangelt.mdx +++ /dev/null @@ -1,54 +0,0 @@ ---- -id: rangelt -title: '.rangeLt()' -slug: /rangelt -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -```dart -final data = await supabase - .from('countries') - .select('name, id, population_range_millions') - .rangeLt('population_range_millions', '[150, 250]'); -``` - -## Examples - -### With `select()` - -```dart -final data = await supabase - .from('countries') - .select('name, id, population_range_millions') - .rangeLt('population_range_millions', '[150, 250]'); -``` - -### With `update()` - -```dart -final data = await supabase - .from('countries') - .update({ 'name': 'Mordor' }) - .rangeLt('population_range_millions', '[150, 250]'); -``` - -### With `delete()` - -```dart -final data = await supabase - .from('countries') - .delete() - .rangeLt('population_range_millions', '[150, 250]'); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final data = await supabase - .rpc('echo_all_countries') - .rangeLt('population_range_millions', '[150, 250]'); -``` diff --git a/apps/reference/_supabase_dart/generated/rangelte.mdx b/apps/reference/_supabase_dart/generated/rangelte.mdx deleted file mode 100644 index 68f4f7fd496..00000000000 --- a/apps/reference/_supabase_dart/generated/rangelte.mdx +++ /dev/null @@ -1,54 +0,0 @@ ---- -id: rangelte -title: '.rangeLte()' -slug: /rangelte -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -```dart -final data = await supabase - .from('countries') - .select('name, id, population_range_millions') - .rangeLte('population_range_millions', '[150, 250]'); -``` - -## Examples - -### With `select()` - -```dart -final data = await supabase - .from('countries') - .select('name, id, population_range_millions') - .rangeLte('population_range_millions', '[150, 250]'); -``` - -### With `update()` - -```dart -final data = await supabase - .from('countries') - .update({ 'name': 'Mordor' }) - .rangeLte('population_range_millions', '[150, 250]'); -``` - -### With `delete()` - -```dart -final data = await supabase - .from('countries') - .delete() - .rangeLte('population_range_millions', '[150, 250]'); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final data = await supabase - .rpc('echo_all_countries') - .rangeLte('population_range_millions', [150, 250]); -``` diff --git a/apps/reference/_supabase_dart/generated/removeallchannels.mdx b/apps/reference/_supabase_dart/generated/removeallchannels.mdx deleted file mode 100644 index 7bfa2a276a1..00000000000 --- a/apps/reference/_supabase_dart/generated/removeallchannels.mdx +++ /dev/null @@ -1,27 +0,0 @@ ---- -id: removeallchannels -title: 'removeAllChannels()' -slug: /removeallchannels -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Unsubscribes and removes all Realtime channels from Realtime client. - -```dart -final statuses = await supabase.removeAllChannels(); -``` - -## Notes - -- Removing channels is a great way to maintain the performance of your project's Realtime service as well as your database if you're listening to Postgres changes. Supabase will automatically handle cleanup 30 seconds after a client is disconnected, but unused channels may cause degradation as more clients are simultaneously subscribed. - -## Examples - -### Remove all channels - -```dart -final statuses = await supabase.removeAllChannels(); -``` diff --git a/apps/reference/_supabase_dart/generated/removechannel.mdx b/apps/reference/_supabase_dart/generated/removechannel.mdx deleted file mode 100644 index b0ec98929f2..00000000000 --- a/apps/reference/_supabase_dart/generated/removechannel.mdx +++ /dev/null @@ -1,27 +0,0 @@ ---- -id: removechannel -title: 'removeChannel()' -slug: /removechannel -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Unsubscribes and removes Realtime channel from Realtime client. - -```dart -final status = await supabase.removeChannel(channel); -``` - -## Notes - -- Removing a channel is a great way to maintain the performance of your project's Realtime service as well as your database if you're listening to Postgres changes. Supabase will automatically handle cleanup 30 seconds after a client is disconnected, but unused channels may cause degradation as more clients are simultaneously subscribed. - -## Examples - -### Remove a channel - -```dart -final status = await supabase.removeChannel(channel); -``` diff --git a/apps/reference/_supabase_dart/generated/reset-password-email.mdx b/apps/reference/_supabase_dart/generated/reset-password-email.mdx deleted file mode 100644 index 10bbfcb0607..00000000000 --- a/apps/reference/_supabase_dart/generated/reset-password-email.mdx +++ /dev/null @@ -1,55 +0,0 @@ ---- -id: reset-password-email -title: 'Reset Password (Email)' -slug: /reset-password-email -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Sends a reset request to an email address. - -```dart -final res = await supabase.auth.api.resetPasswordForEmail('user@example.com'); -``` - -## Notes - -Sends a reset request to an email address. - -When the user clicks the reset link in the email they will be forwarded to: - -`#access_token=x&refresh_token=y&expires_in=z&token_type=bearer&type=recovery` - -Your app must detect `type=recovery` in the fragment and display a password reset form to the user. - -You should then use the access_token in the url and new password to update the user as follows: - -```dart -final res = await supabase.auth.api.updateUser( - accessToken, - UserAttributes(password: 'NEW_PASSWORD'), -); -``` - -## Examples - -### Reset password - -```dart -final res = await supabase.auth.api.resetPasswordForEmail('user@example.com'); -``` - -### Reset password for Flutter - -You can pass `redirectTo` to open the app via deeplink when user opens the password reset email. - -```dart -final res = await supabase.auth.api.resetPasswordForEmail( - 'user@example.com', - options: AuthOptions(redirectTo: kIsWeb - ? null - : 'io.supabase.flutter://reset-callback/'), -); -``` diff --git a/apps/reference/_supabase_dart/generated/rpc.mdx b/apps/reference/_supabase_dart/generated/rpc.mdx deleted file mode 100644 index 8e1dfe9daa2..00000000000 --- a/apps/reference/_supabase_dart/generated/rpc.mdx +++ /dev/null @@ -1,48 +0,0 @@ ---- -id: rpc -title: 'Stored Procedures: rpc()' -slug: /rpc -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -You can call stored procedures as a "Remote Procedure Call". - -That's a fancy way of saying that you can put some logic into your database then call it from anywhere. -It's especially useful when the logic rarely changes - like password resets and updates. - -```dart -final data = await supabase - .rpc('hello_world'); -``` - -## Examples - -### Call a stored procedure - -This is an example invoking a stored procedure. - -```dart -final data = await supabase - .rpc('hello_world'); -``` - -### With Parameters - -```dart -final data = await supabase - .rpc('echo_city', params: { 'name': 'The Shire' }); -``` - -### With count option - -You can specify a count option to get the row count along with your data. -Allowed values for count option are `exact`, `planned` and `estimated`. - -```dart -final data = await supabase - .rpc('hello_world') - .execute(count: CountOption.exact); -``` diff --git a/apps/reference/_supabase_dart/generated/select.mdx b/apps/reference/_supabase_dart/generated/select.mdx deleted file mode 100644 index 42eb6bfc5fb..00000000000 --- a/apps/reference/_supabase_dart/generated/select.mdx +++ /dev/null @@ -1,133 +0,0 @@ ---- -id: select -title: 'Fetch data: select()' -slug: /select -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Performs vertical filtering with SELECT. - -```dart -final data = await supabase - .from('cities') - .select(); -``` - -## Notes - -- By default, Supabase projects will return a maximum of 1,000 rows. This setting can be changed in Project API Settings. It's recommended that you keep it low to limit the payload size of accidental or malicious requests. You can use `range()` queries to paginate through your data. -- `select()` can be combined with [Modifiers](/docs/reference/dart/using-modifiers) -- `select()` can be combined with [Filters](/docs/reference/dart/using-filters) -- If using the Supabase hosted platform `apikey` is technically a reserved keyword, since the API gateway will pluck it out for authentication. [It should be avoided as a column name](https://github.com/supabase/supabase/issues/5465). - -## Examples - -### Getting your data - -```dart -final data = await supabase - .from('cities') - .select(); -``` - -### Selecting specific columns - -You can select specific fields from your tables. - -```dart -final data = await supabase - .from('cities') - .select('name'); -``` - -### Query foreign tables - -If your database has relationships, you can query related tables too. - -```dart -final data = await supabase - .from('countries') - .select(''' - name, - cities ( - name - ) - '''); -``` - -### Query the same foreign table multiple times - -Sometimes you will need to query the same foreign table twice. -In this case, you can use the name of the joined column to identify -which join you intend to use. For convenience, you can also give an -alias for each column. For example, if we had a shop of products, -and we wanted to get the supplier and the purchaser at the same time -(both in the users) table: - -```dart -final data = await supabase - .from('products') - .select(''' - id, - supplier:supplier_id ( name ), - purchaser:purchaser_id ( name ) - '''); -``` - -### Filtering with inner joins - -If you want to filter a table based on a child table's values you can use the `!inner()` function. For example, if you wanted -to select all rows in a `message` table which belong to a user with the `username` "Jane": - -```dart -final data = await supabase - .from('messages') - .select('*, users!inner(*)') - .eq('users.username', 'Jane'); -``` - -### Querying with count option - -You can get the number of rows by using the count option. -Allowed values for count option are [exact](https://postgrest.org/en/stable/api.html#exact-count), [planned](https://postgrest.org/en/stable/api.html#planned-count) and [estimated](https://postgrest.org/en/stable/api.html#estimated-count). - -```dart -final data = await supabase - .from('cities') - .select('name') - .execute(count: CountOption.exact); - -final count = res.count; -``` - -### Querying JSON data - -If you have data inside of a JSONB column, you can apply select -and query filters to the data values. Postgres offers a -[number of operators](https://www.postgresql.org/docs/current/functions-json.html) -for querying JSON data. Also see -[PostgREST docs](http://postgrest.org/en/v7.0.0/api.html#json-columns) for more details. - -```dart -final data = await supabase - .from('users') - .select(''' - id, name, - address->street - ''') - .eq('address->postcode', 90210); -``` - -### Return data as CSV - -By default the data is returned in JSON format, however you can also request for it to be returned as Comma Separated Values. - -```dart -final data = await supabase - .from('users') - .select() - .csv(); -``` diff --git a/apps/reference/_supabase_dart/generated/single.mdx b/apps/reference/_supabase_dart/generated/single.mdx deleted file mode 100644 index 93cf85294f3..00000000000 --- a/apps/reference/_supabase_dart/generated/single.mdx +++ /dev/null @@ -1,29 +0,0 @@ ---- -id: single -title: 'single()' -slug: /single -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Retrieves only one row from the result. Result must be one row (e.g. using limit), otherwise this will result in an error. - -```dart -final data = await supabase - .from('cities') - .select('name, country_id') - .single(); -``` - -## Examples - -### With `select()` - -```dart -final data = await supabase - .from('cities') - .select('name, country_id') - .single(); -``` diff --git a/apps/reference/_supabase_dart/generated/storage-createbucket.mdx b/apps/reference/_supabase_dart/generated/storage-createbucket.mdx deleted file mode 100644 index 7abae13d89b..00000000000 --- a/apps/reference/_supabase_dart/generated/storage-createbucket.mdx +++ /dev/null @@ -1,33 +0,0 @@ ---- -id: storage-createbucket -title: 'createBucket()' -slug: /storage-createbucket -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Creates a new Storage bucket - -```dart -final String bucketId = await supabase - .storage - .createBucket('avatars'); -``` - -## Notes - -- Policy permissions required: - - `buckets` permissions: `insert` - - `objects` permissions: none - -## Examples - -### Create bucket - -```dart -final String bucketId = await supabase - .storage - .createBucket('avatars'); -``` diff --git a/apps/reference/_supabase_dart/generated/storage-deletebucket.mdx b/apps/reference/_supabase_dart/generated/storage-deletebucket.mdx deleted file mode 100644 index c1867fdaac9..00000000000 --- a/apps/reference/_supabase_dart/generated/storage-deletebucket.mdx +++ /dev/null @@ -1,33 +0,0 @@ ---- -id: storage-deletebucket -title: 'deleteBucket()' -slug: /storage-deletebucket -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Deletes an existing bucket. A bucket can't be deleted with existing objects inside it. You must first `empty()` the bucket. - -```dart -final String result = await supabase - .storage - .deleteBucket('avatars'); -``` - -## Notes - -- Policy permissions required: - - `buckets` permissions: `select` and `delete` - - `objects` permissions: none - -## Examples - -### Delete bucket - -```dart -final String result = await supabase - .storage - .deleteBucket('avatars'); -``` diff --git a/apps/reference/_supabase_dart/generated/storage-emptybucket.mdx b/apps/reference/_supabase_dart/generated/storage-emptybucket.mdx deleted file mode 100644 index 3ebe3d0481e..00000000000 --- a/apps/reference/_supabase_dart/generated/storage-emptybucket.mdx +++ /dev/null @@ -1,33 +0,0 @@ ---- -id: storage-emptybucket -title: 'emptyBucket()' -slug: /storage-emptybucket -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Removes all objects inside a single bucket. - -```dart -final String result = await supabase - .storage - .emptyBucket('avatars'); -``` - -## Notes - -- Policy permissions required: - - `buckets` permissions: `select` - - `objects` permissions: `select` and `delete` - -## Examples - -### Empty bucket - -```dart -final String result = await supabase - .storage - .emptyBucket('avatars'); -``` diff --git a/apps/reference/_supabase_dart/generated/storage-from-createsignedurl.mdx b/apps/reference/_supabase_dart/generated/storage-from-createsignedurl.mdx deleted file mode 100644 index 0b6691979d5..00000000000 --- a/apps/reference/_supabase_dart/generated/storage-from-createsignedurl.mdx +++ /dev/null @@ -1,35 +0,0 @@ ---- -id: storage-from-createsignedurl -title: 'from.createSignedUrl()' -slug: /storage-from-createsignedurl -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Create signed url to download file without requiring permissions. This URL can be valid for a set number of seconds. - -```dart -final String signedUrl = await supabase - .storage - .from('avatars') - .createSignedUrl('avatar1.png', 60); -``` - -## Notes - -- Policy permissions required: - - `buckets` permissions: none - - `objects` permissions: `select` - -## Examples - -### Create Signed URL - -```dart -final String signedUrl = await supabase - .storage - .from('avatars') - .createSignedUrl('avatar1.png', 60); -``` diff --git a/apps/reference/_supabase_dart/generated/storage-from-download.mdx b/apps/reference/_supabase_dart/generated/storage-from-download.mdx deleted file mode 100644 index 5b205e0bb08..00000000000 --- a/apps/reference/_supabase_dart/generated/storage-from-download.mdx +++ /dev/null @@ -1,35 +0,0 @@ ---- -id: storage-from-download -title: 'from.download()' -slug: /storage-from-download -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Downloads a file. - -```dart -final Uint8List file = await supabase - .storage - .from('avatars') - .download('avatar1.png'); -``` - -## Notes - -- Policy permissions required: - - `buckets` permissions: none - - `objects` permissions: `select` - -## Examples - -### Download file - -```dart -final Uint8List file = await supabase - .storage - .from('avatars') - .download('avatar1.png'); -``` diff --git a/apps/reference/_supabase_dart/generated/storage-from-getpublicurl.mdx b/apps/reference/_supabase_dart/generated/storage-from-getpublicurl.mdx deleted file mode 100644 index 18853e773ac..00000000000 --- a/apps/reference/_supabase_dart/generated/storage-from-getpublicurl.mdx +++ /dev/null @@ -1,36 +0,0 @@ ---- -id: storage-from-getpublicurl -title: 'from.getPublicUrl()' -slug: /storage-from-getpublicurl -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Retrieve URLs for assets in public buckets - -```dart -final String publicUrl = supabase - .storage - .from('public-bucket') - .getPublicUrl('avatar1.png'); -``` - -## Notes - -- The bucket needs to be set to public, either via [updateBucket()](/docs/reference/javascript/storage-updatebucket) or by going to Storage on [app.supabase.com](https://app.supabase.com), clicking the overflow menu on a bucket and choosing "Make public" -- Policy permissions required: - - `buckets` permissions: none - - `objects` permissions: none - -## Examples - -### Returns the URL for an asset in a public bucket - -```dart -final String publicUrl = supabase - .storage - .from('public-bucket') - .getPublicUrl('avatar1.png'); -``` diff --git a/apps/reference/_supabase_dart/generated/storage-from-list.mdx b/apps/reference/_supabase_dart/generated/storage-from-list.mdx deleted file mode 100644 index b19550f4eab..00000000000 --- a/apps/reference/_supabase_dart/generated/storage-from-list.mdx +++ /dev/null @@ -1,35 +0,0 @@ ---- -id: storage-from-list -title: 'from.list()' -slug: /storage-from-list -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Lists all the files within a bucket. - -```dart -final List objects = await supabase - .storage - .from('avatars') - .list(); -``` - -## Notes - -- Policy permissions required: - - `buckets` permissions: none - - `objects` permissions: `select` - -## Examples - -### List files in a bucket - -```dart -final List objects = await supabase - .storage - .from('avatars') - .list(); -``` diff --git a/apps/reference/_supabase_dart/generated/storage-from-move.mdx b/apps/reference/_supabase_dart/generated/storage-from-move.mdx deleted file mode 100644 index ea147d37463..00000000000 --- a/apps/reference/_supabase_dart/generated/storage-from-move.mdx +++ /dev/null @@ -1,35 +0,0 @@ ---- -id: storage-from-move -title: 'from.move()' -slug: /storage-from-move -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Moves an existing file, optionally renaming it at the same time. - -```dart -final String result = await supabase - .storage - .from('avatars') - .move('public/avatar1.png', 'private/avatar2.png'); -``` - -## Notes - -- Policy permissions required: - - `buckets` permissions: none - - `objects` permissions: `update` and `select` - -## Examples - -### Move file - -```dart -final String result = await supabase - .storage - .from('avatars') - .move('public/avatar1.png', 'private/avatar2.png'); -``` diff --git a/apps/reference/_supabase_dart/generated/storage-from-remove.mdx b/apps/reference/_supabase_dart/generated/storage-from-remove.mdx deleted file mode 100644 index a15ccbd2938..00000000000 --- a/apps/reference/_supabase_dart/generated/storage-from-remove.mdx +++ /dev/null @@ -1,35 +0,0 @@ ---- -id: storage-from-remove -title: 'from.remove()' -slug: /storage-from-remove -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Deletes files within the same bucket - -```dart -final List objects = await supabase - .storage - .from('avatars') - .remove(['avatar1.png']); -``` - -## Notes - -- Policy permissions required: - - `buckets` permissions: none - - `objects` permissions: `delete` and `select` - -## Examples - -### Delete file - -```dart -final List objects = await supabase - .storage - .from('avatars') - .remove(['avatar1.png']); -``` diff --git a/apps/reference/_supabase_dart/generated/storage-from-update.mdx b/apps/reference/_supabase_dart/generated/storage-from-update.mdx deleted file mode 100644 index 51946d2b8af..00000000000 --- a/apps/reference/_supabase_dart/generated/storage-from-update.mdx +++ /dev/null @@ -1,40 +0,0 @@ ---- -id: storage-from-update -title: 'from.update()' -slug: /storage-from-update -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Replaces an existing file at the specified path with a new one. - -```dart -final avatarFile = File('path/to/local/file'); -final String path = await supabase.storage.from('avatars').update( - 'public/avatar1.png', - avatarFile, - fileOptions: const FileOptions(cacheControl: '3600', upsert: false), - ); - -``` - -## Notes - -- Policy permissions required: - - `buckets` permissions: none - - `objects` permissions: `update` and `select` - -## Examples - -### Update file - -```dart -final avatarFile = File('path/to/local/file'); -final String path = await supabase.storage.from('avatars').update( - 'public/avatar1.png', - avatarFile, - fileOptions: const FileOptions(cacheControl: '3600', upsert: false), - ); -``` diff --git a/apps/reference/_supabase_dart/generated/storage-from-upload.mdx b/apps/reference/_supabase_dart/generated/storage-from-upload.mdx deleted file mode 100644 index d776350c958..00000000000 --- a/apps/reference/_supabase_dart/generated/storage-from-upload.mdx +++ /dev/null @@ -1,168 +0,0 @@ ---- -id: storage-from-upload -title: 'from.upload()' -slug: /storage-from-upload -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Uploads a file to an existing bucket. - -```dart -final avatarFile = File('path/to/file'); -final String path = await supabase.storage.from('avatars').upload( - 'public/avatar1.png', - avatarFile, - fileOptions: const FileOptions(cacheControl: '3600', upsert: false), - ); -``` - -## Parameters - -
    - -
  • -

    - - path - - - required - - - string - -

    -
    - -The relative file path. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to upload. - -
    - -
  • - -
  • -

    - - fileBody - - - required - - - File - -

    -
    - -The body of the file to be stored in the bucket. - -
    - -
  • - -
  • -

    - - fileOptions - - - optional - - - FileOptions - -

    -
    - -
      -
      Properties
      - -
    • -

      - - cacheControl - - - optional - - - string - -

      -
      - -The Cache-Control: max-age=[seconds] seconds value. - -
      - -
    • - -
    • -

      - - contentType - - - optional - - - string - -

      -
      - -The Content-Type header value. By default, the SDK reads the content type and sets the header. - -
      - -
    • - -
    • -

      - - upsert - - - optional - - - boolean - -

      -
      - -Whether to perform an upsert. - -
      - -
    • - -
    - -
    - -
  • - -
- -## Notes - -- Policy permissions required: - - `buckets` permissions: none - - `objects` permissions: `insert` - -## Examples - -### Upload file - -```dart -final avatarFile = File('path/to/file'); -final String path = await supabase.storage.from('avatars').upload( - 'public/avatar1.png', - avatarFile, - fileOptions: const FileOptions(cacheControl: '3600', upsert: false), - ); -``` diff --git a/apps/reference/_supabase_dart/generated/storage-getbucket.mdx b/apps/reference/_supabase_dart/generated/storage-getbucket.mdx deleted file mode 100644 index a6166dc199c..00000000000 --- a/apps/reference/_supabase_dart/generated/storage-getbucket.mdx +++ /dev/null @@ -1,59 +0,0 @@ ---- -id: storage-getbucket -title: 'getBucket()' -slug: /storage-getbucket -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Retrieves the details of an existing Storage bucket. - -```dart -final Bucket bucket = await supabase - .storage - .getBucket('avatars'); -``` - -## Parameters - -
    - -
  • -

    - - id - - - required - - - string - -

    -
    - -The unique identifier of the bucket you would like to retrieve. - -
    - -
  • - -
- -## Notes - -- Policy permissions required: - - `buckets` permissions: `select` - - `objects` permissions: none - -## Examples - -### Get bucket - -```dart -final Bucket bucket = await supabase - .storage - .getBucket('avatars'); -``` diff --git a/apps/reference/_supabase_dart/generated/storage-listbuckets.mdx b/apps/reference/_supabase_dart/generated/storage-listbuckets.mdx deleted file mode 100644 index ff7ea234122..00000000000 --- a/apps/reference/_supabase_dart/generated/storage-listbuckets.mdx +++ /dev/null @@ -1,33 +0,0 @@ ---- -id: storage-listbuckets -title: 'listBuckets()' -slug: /storage-listbuckets -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Retrieves the details of all Storage buckets within an existing product. - -```dart -final List buckets = await supabase - .storage - .listBuckets(); -``` - -## Notes - -- Policy permissions required: - - `buckets` permissions: `select` - - `objects` permissions: none - -## Examples - -### List buckets - -```dart -final List buckets = await supabase - .storage - .listBuckets(); -``` diff --git a/apps/reference/_supabase_dart/generated/storage-updatebucket.mdx b/apps/reference/_supabase_dart/generated/storage-updatebucket.mdx deleted file mode 100644 index ac0e92585a8..00000000000 --- a/apps/reference/_supabase_dart/generated/storage-updatebucket.mdx +++ /dev/null @@ -1,33 +0,0 @@ ---- -id: storage-updatebucket -title: 'updateBucket()' -slug: /storage-updatebucket -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Updates a new Storage bucket - -```dart -final res = await supabase - .storage - .updateBucket('avatars', const BucketOptions(public: false)); -``` - -## Notes - -- Policy permissions required: - - `buckets` permissions: `update` - - `objects` permissions: none - -## Examples - -### Update bucket - -```dart -final res = await supabase - .storage - .updateBucket('avatars', const BucketOptions(public: false)); -``` diff --git a/apps/reference/_supabase_dart/generated/stream.mdx b/apps/reference/_supabase_dart/generated/stream.mdx deleted file mode 100644 index 603d60e5045..00000000000 --- a/apps/reference/_supabase_dart/generated/stream.mdx +++ /dev/null @@ -1,106 +0,0 @@ ---- -id: stream -title: 'stream()' -slug: /stream -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Notifies of data at the queried table. - -```dart -supabase.from('countries') - .stream(['id']) - .listen((List> data) { - // Do something awesome with the data -}); -``` - -## Notes - -- `stream()` will emit the initial data as well as any further change on the database as `Stream` of `List>` by combining Postgrest and Realtime. -- Takes a list of primary key columns as its argument. - -## Examples - -### Listening to a specific table - -```dart -supabase.from('countries') - .stream(['id']) - .listen((List> data) { - // Do something awesome with the data -}); -``` - -### Listening to a specific rows within a table - -You can add up to one `eq` filter to your `stream()` query. - -```dart -supabase.from('countries') - .stream(['id']) - .eq('id', '120') - .listen((List> data) { - // Do something awesome with the data -}); -``` - -### With `order()` - -Allows you to order the queried data by the value of the specified column. - -```dart -supabase.from('countries') - .stream(['id']) - .order('name', ascending: true) - .listen((List> data) { - // Do something awesome with the data -}); -``` - -### With `limit()` - -Allows you to limit the number of rows returned. - -```dart -supabase.from('countries') - .stream(['id']) - .order('name', ascending: true) - .limit(10) - .listen((List> data) { - // Do something awesome with the data -}); -``` - -### Using `stream()` with `StreamBuilder` - -When using `stream()` with a `StreamBuilder` within your Flutter application, make sure to store your stream in a variable to prevent refetching upon rebuilding. - -```dart -final supabase = Supabase.instance.client; - -class MyWidget extends StatefulWidget { - const MyWidget({Key? key}) : super(key: key); - - @override - State createState() => _MyWidgetState(); -} - -class _MyWidgetState extends State { - // Persist the stream in a local variable to prevent refetching upon rebuilds - final _stream = supabase.from('countries').stream(['id']); - - @override - Widget build(BuildContext context) { - return StreamBuilder( - stream: _stream, - builder: (context, snapshot) { - // Return your widget with the data from the snapshot - }, - ); - } -} -``` \ No newline at end of file diff --git a/apps/reference/_supabase_dart/generated/subscribe.mdx b/apps/reference/_supabase_dart/generated/subscribe.mdx deleted file mode 100644 index 1bfff16bbdb..00000000000 --- a/apps/reference/_supabase_dart/generated/subscribe.mdx +++ /dev/null @@ -1,120 +0,0 @@ ---- -id: subscribe -title: 'on().subscribe()' -slug: /subscribe -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Subscribe to realtime changes in your database. - -```dart -supabase.channel('*').on(RealtimeListenTypes.postgresChanges, - ChannelFilter(event: '*', schema: '*'), (payload, [ref]) { - print('Change received: ${payload.toString()}'); -}).subscribe(); -``` - -## Notes - -- Realtime is disabled by default for new Projects for better database performance and security. You can turn it on by managing replication. -Row level security is not applied to delete statements. -- If you want to receive the "previous" data for updates and deletes, you will need to set REPLICA IDENTITY to FULL, like this: ALTER TABLE your_table REPLICA IDENTITY FULL; -- When a delete occurs, the contents of old_record will be broadcast to all subscribers to that table so ensure that each table's replica identity only contains information that is safe to expose publicly. -- The channel name must exactly match the schema/table/filter you want to listen to separated by colons. See below examples for additional context. - -## Examples - -### Listen to all database changes - -```dart -supabase.channel('*').on(RealtimeListenTypes.postgresChanges, - ChannelFilter(event: '*', schema: '*'), (payload, [ref]) { - print('Change received: ${payload.toString()}'); -}).subscribe(); -``` - -### Listening to a specific table - -```dart -supabase.channel('public:countries').on(RealtimeListenTypes.postgresChanges, - ChannelFilter(event: '*', schema: 'public', table: 'countries'), (payload, [ref]) { - print('Change received: ${payload.toString()}'); -}).subscribe(); -``` - -### Listening to inserts - -```dart -supabase.channel('public:countries').on(RealtimeListenTypes.postgresChanges, - ChannelFilter(event: 'INSERT', schema: 'public', table: 'countries'), (payload, [ref]) { - print('Change received: ${payload.toString()}'); -}).subscribe(); -``` - -### Listening to updates - -By default, Supabase will send only the updated record. If you want to receive the previous values as well you can -enable full replication for the table you are listening too: - -```sql -alter table "your_table" replica identity full; -``` - -```dart -supabase.channel('public:countries').on(RealtimeListenTypes.postgresChanges, - ChannelFilter(event: 'UPDATE', schema: 'public', table: 'countries'), (payload, [ref]) { - print('Change received: ${payload.toString()}'); -}).subscribe(); -``` - -### Listening to deletes - -By default, Supabase does not send deleted records. If you want to receive the deleted record you can -enable full replication for the table you are listening too: - -```sql -alter table "your_table" replica identity full; -``` - -```dart -supabase.channel('public:countries').on(RealtimeListenTypes.postgresChanges, - ChannelFilter(event: 'DELETE', schema: 'public', table: 'countries'), (payload, [ref]) { - print('Change received: ${payload.toString()}'); -}).subscribe(); -``` - -### Listening to multiple events - -You can chain listeners if you want to listen to multiple events for each table. - -```dart -supabase.channel('public:countries').on(RealtimeListenTypes.postgresChanges, - ChannelFilter(event: 'INSERT', schema: 'public', table: 'countries'), - (payload, [ref]) { - print('Change received: ${payload.toString()}'); -}).on(RealtimeListenTypes.postgresChanges, - ChannelFilter(event: 'DELETE', schema: 'public', table: 'countries'), - (payload, [ref]) { - print('Change received: ${payload.toString()}'); -}).subscribe(); -``` - -### Listening to row level changes - -You can listen to individual rows using the format `{table}:{col}=eq.{val}` - where `{col}` is the column name, and `{val}` is the value which you want to match. - -```dart - supabase.channel('public:countries:id=eq.200').on( - RealtimeListenTypes.postgresChanges, - ChannelFilter( - event: 'UPDATE', - schema: 'public', - table: 'countries', - filter: 'id=eq.200', - ), (payload, [ref]) { - print('Change received: ${payload.toString()}'); - }).subscribe(); -``` diff --git a/apps/reference/_supabase_dart/generated/textsearch.mdx b/apps/reference/_supabase_dart/generated/textsearch.mdx deleted file mode 100644 index 2b290e1ab27..00000000000 --- a/apps/reference/_supabase_dart/generated/textsearch.mdx +++ /dev/null @@ -1,73 +0,0 @@ ---- -id: textsearch -title: '.textSearch()' -slug: /textsearch -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows whose tsvector value on the stated `column` matches to_tsquery(query). - -## Examples - -### Text search - -```dart -final data = await supabase - .from('quotes') - .select('catchphrase') - .textSearch('catchphrase', "'fat' & 'cat'", - config: 'english' - ); -``` - -### Basic normalization - -Uses PostgreSQL's `plainto_tsquery` function. - -```dart -final data = await supabase - .from('quotes') - .select('catchphrase') - .textSearch('catchphrase', "'fat' & 'cat'", - type: TextSearchType.plain, - config: 'english' - ); -``` - -### Full normalization - -Uses PostgreSQL's `phraseto_tsquery` function. - -```dart -final data = await supabase - .from('quotes') - .select('catchphrase') - .textSearch('catchphrase', "'fat' & 'cat'", - type: TextSearchType.phrase, - config: 'english' - ); -``` - -### Full normalization - -Uses PostgreSQL's `websearch_to_tsquery` function. -This function will never raise syntax errors, which makes it possible to use raw user-supplied input for search, and can be used -with advanced operators. - -- `unquoted text`: text not inside quote marks will be converted to terms separated by & operators, as if processed by plainto_tsquery. -- `"quoted text"`: text inside quote marks will be converted to terms separated by <-> operators, as if processed by phraseto_tsquery. -- `OR`: the word “or” will be converted to the | operator. -- `-`: a dash will be converted to the ! operator. - -```dart -final data = await supabase - .from('quotes') - .select('catchphrase') - .textSearch('catchphrase', "'fat or cat'", - type: TextSearchType.websearch, - config: 'english' - ); -``` diff --git a/apps/reference/_supabase_dart/generated/update.mdx b/apps/reference/_supabase_dart/generated/update.mdx deleted file mode 100644 index 19f8d6335a3..00000000000 --- a/apps/reference/_supabase_dart/generated/update.mdx +++ /dev/null @@ -1,52 +0,0 @@ ---- -id: update -title: 'Modify data: update()' -slug: /update -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Performs an UPDATE on the table. - -```dart -final data = await supabase - .from('cities') - .update({ 'name': 'Middle Earth' }) - .match({ 'name': 'Auckland' }); -``` - -## Notes - -- `update()` should always be combined with [Filters](/docs/reference/dart/using-filters) to target the item(s) you wish to update. - -## Examples - -### Updating your data - -```dart -final data = await supabase - .from('cities') - .update({ 'name': 'Middle Earth' }) - .match({ 'name': 'Auckland' }); -``` - -### Updating JSON data - -Postgres offers a -[number of operators](https://www.postgresql.org/docs/current/functions-json.html) -for working with JSON data. Right now it is only possible to update an entire JSON document, -but we are [working on ideas](https://github.com/PostgREST/postgrest/issues/465) for updating individual keys. - -```dart -final data = await supabase - .from('users') - .update({ - 'address': { - 'street': 'Melrose Place', - 'postcode': 90210 - } - }) - .eq('address->postcode', 90210); -``` diff --git a/apps/reference/_supabase_dart/generated/upsert.mdx b/apps/reference/_supabase_dart/generated/upsert.mdx deleted file mode 100644 index e295e133589..00000000000 --- a/apps/reference/_supabase_dart/generated/upsert.mdx +++ /dev/null @@ -1,59 +0,0 @@ ---- -id: upsert -title: 'Upsert data: upsert()' -slug: /upsert -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Performs an UPSERT into the table. - -```dart -final data = await supabase - .from('messages') - .upsert({ 'id': 3, 'message': 'foo', 'username': 'supabot' }); -``` - -## Notes - -- Primary keys should be included in the data payload in order for an update to work correctly. -- Primary keys must be natural, not surrogate. There are however, [workarounds](https://github.com/PostgREST/postgrest/issues/1118) for surrogate primary keys. - -## Examples - -### Upsert your data - -```dart -final data = await supabase - .from('messages') - .upsert({ 'id': 3, 'message': 'foo', 'username': 'supabot' }); -``` - -### Upserting into tables with constraints - -Running the following will cause supabase to upsert data into the `users` table. -If the username 'supabot' already exists, the `onConflict` argument tells supabase to overwrite that row -based on the column passed into `onConflict`. - -```dart -final data = await supabase - .from('users') - .upsert({ 'username': 'supabot' }, { 'onConflict': 'username' }); -``` - -### Return the exact number of rows - -Allowed values for count option are `exact`, `planned` and `estimated`. - -```dart -final data = await supabase - .from('users') - .upsert({ - 'id': 3, - 'message': 'foo', - 'username': 'supabot' - }) - .execute(count: CountOption.exact); -``` diff --git a/apps/reference/_supabase_dart/generated/using-filters.mdx b/apps/reference/_supabase_dart/generated/using-filters.mdx deleted file mode 100644 index 71e13bf36af..00000000000 --- a/apps/reference/_supabase_dart/generated/using-filters.mdx +++ /dev/null @@ -1,41 +0,0 @@ ---- -id: using-filters -title: 'Using Filters' -slug: /using-filters -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Filters can be used on `select()`, `update()`, and `delete()` queries. - -If a Stored Procedure returns a table response, you can also apply filters. - -### Applying Filters - -You must apply your filters to the end of your query. For example: - -```dart -final data = await supabase - .from('cities') - .select('name, country_id') - .eq('name', 'The Shire') // Correct; - -final data = await supabase - .from('cities') - .eq('name', 'The Shire') // Incorrect - .select('name, country_id'); -``` - -### Chaining - -Filters can be chained together to produce advanced queries. For example: - -```dart -final data = await supabase - .from('cities') - .select('name, country_id') - .gte('population', 1000) - .lt('population', 10000); -``` diff --git a/apps/reference/_supabase_dart/generated/using-modifiers.mdx b/apps/reference/_supabase_dart/generated/using-modifiers.mdx deleted file mode 100644 index 5fbbe72b81a..00000000000 --- a/apps/reference/_supabase_dart/generated/using-modifiers.mdx +++ /dev/null @@ -1,13 +0,0 @@ ---- -id: using-modifiers -title: 'Using Modifiers' -slug: /using-modifiers -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Modifiers can be used on `select()` queries. - -If a Stored Procedure returns a table response, you can also apply modifiers to the `rpc()` function. diff --git a/apps/reference/_supabase_dart/initializing.mdx b/apps/reference/_supabase_dart/initializing.mdx index 282de1b232f..e779b7e8ac2 100644 --- a/apps/reference/_supabase_dart/initializing.mdx +++ b/apps/reference/_supabase_dart/initializing.mdx @@ -1,8 +1,7 @@ --- id: initializing title: 'Initializing' -slug: /initializing -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml +slug: initializing --- import Tabs from '@theme/Tabs' diff --git a/apps/reference/_supabase_dart/installing.mdx b/apps/reference/_supabase_dart/installing.mdx index 4930b9baeff..2ed91c356fd 100644 --- a/apps/reference/_supabase_dart/installing.mdx +++ b/apps/reference/_supabase_dart/installing.mdx @@ -1,8 +1,7 @@ --- id: installing title: 'Installing' -slug: /installing -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml +slug: installing --- import Tabs from '@theme/Tabs' diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/auth-onauthstatechange.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/auth-onauthstatechange.mdx deleted file mode 100644 index 20bea627851..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/auth-onauthstatechange.mdx +++ /dev/null @@ -1,29 +0,0 @@ ---- -id: auth-onauthstatechange -title: 'auth.onAuthStateChange()' -slug: /auth-onauthstatechange -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Receive a notification every time an auth event happens. - -```dart -final subscription = supabase.auth.onAuthStateChange((event, session) { - print(session?.user?.id); - // handle auth state change -}); -``` - -## Examples - -### Listen to auth changes - -```dart -final subscription = supabase.auth.onAuthStateChange((event, session) { - print(session?.user?.id); - // handle auth state change -}); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/auth-session.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/auth-session.mdx deleted file mode 100644 index 1ca53e7ece4..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/auth-session.mdx +++ /dev/null @@ -1,23 +0,0 @@ ---- -id: auth-session -title: 'auth.session()' -slug: /auth-session -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Returns the session data, if there is an active session. - -```dart -final session = supabase.auth.session(); -``` - -## Examples - -### Get the session data - -```dart -final session = supabase.auth.session(); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/auth-signin.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/auth-signin.mdx deleted file mode 100644 index 639c2b47b27..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/auth-signin.mdx +++ /dev/null @@ -1,59 +0,0 @@ ---- -id: auth-signin -title: 'auth.signIn()' -slug: /auth-signin -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Log in an existing user, or login via a third-party provider. - -```dart -final res = await supabase.auth.signIn(email: 'example@email.com', password: 'example-password'); - -final user = res.data?.user; -final error = res.error; -``` - -## Notes - -- A user can sign up via email, phone number. -- If you provide `email` without a `password`, the user will be sent a magic link. -- The magic link's destination URL is determined by the SITE_URL config variable. To change this, you can go to Authentication -> Settings on [app.supabase.com](https://app.supabase.com) -- Similarly, if you provide `phone` without a `password`, the user will be sent a one time password. -- If you are looking to sign users in with OAuth in Flutter apps, go to [`signInWithProvider()`](/docs/reference/dart/auth-signinwithprovider). - -## Examples - -### Sign in with email. - -```dart -final res = await supabase.auth.signIn(email: 'example@email.com', password: 'example-password'); - -final user = res.data?.user; -final error = res.error; -``` - -### Sign in with magic link. - -If email is provided, but no password is provided, the user will be sent a "magic link" to their email address, which they can click to open your application with a valid session. By default, a given user can only request a Magic Link once every 60 seconds. - -```dart -final res = await supabase.auth.signIn(email: 'example@email.com'); - -final error = res.error; -``` - -### Get OAuth sign in URL. - -Passing provider parameter to `signIn()` will return a URL to sign your user in via OAuth. -If you are looking to sign in a user via OAuth on Flutter app, go to [`signInWithProvider()`](/docs/reference/dart/auth-signinwithprovider). - -```dart -final res = await supabase.auth.signIn(provider: Provider.github); - -final url = res.data?.url; -final error = res.error; -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/auth-signinwithprovider.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/auth-signinwithprovider.mdx deleted file mode 100644 index c44069bacb6..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/auth-signinwithprovider.mdx +++ /dev/null @@ -1,63 +0,0 @@ ---- -id: auth-signinwithprovider -title: 'auth.signInWithProvider()' -slug: /auth-signinwithprovider -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Signs the user in using third party OAuth providers. - -```dart -final res = await supabase.auth.signInWithProvider(Provider.github); - -final error = res.error; -``` - -## Notes - -- `auth.signInWithProvider()` is only available on `supabase_flutter` -- It will open the browser to the relevant login page. - -## Examples - -### Sign in with provider. - -```dart -final res = await supabase.auth.signInWithProvider(Provider.github); - -final error = res.error; -``` - -### With `redirectTo` - -Specify the redirect link to bring back the user via deeplink. -Note that `redirectTo` should be null for Flutter Web. - -```dart -final res = await supabase.auth.signInWithProvider( - Provider.github, - options: AuthOptions( - redirectTo: kIsWeb - ? null - : 'io.supabase.flutter://reset-callback/'), -); - -final error = res.error; -``` - -### With scopes - -If you need additional data from an OAuth provider, you can include a space-separated list of scopes in your request to get back an OAuth provider token. -You may also need to specify the scopes in the provider's OAuth app settings, depending on the provider. - -```dart -const { user, session, error } = await supabase.auth.signIn({ - provider: 'github' -}, { - scopes: 'repo gist notifications' -}) -const oAuthToken = session.provider_token // use to access provider API -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/auth-signout.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/auth-signout.mdx deleted file mode 100644 index 2f05b6435da..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/auth-signout.mdx +++ /dev/null @@ -1,27 +0,0 @@ ---- -id: auth-signout -title: 'auth.signOut()' -slug: /auth-signout -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Signs out the current user, if there is a logged in user. - -```dart -final res = await supabase.auth.signOut(); - -final error = res.error; -``` - -## Examples - -### Sign out - -```dart -final res = await supabase.auth.signOut(); - -final error = res.error; -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/auth-signup.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/auth-signup.mdx deleted file mode 100644 index a9a12b7ffc3..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/auth-signup.mdx +++ /dev/null @@ -1,40 +0,0 @@ ---- -id: auth-signup -title: 'auth.signUp()' -slug: /auth-signup -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Creates a new user. - -```dart -final res = await supabase.auth.signUp('example@email.com', 'example-password'); - -final user = res.data?.user; -final error = res.error; -``` - -## Notes - -- By default, the user will need to verify their email address before logging in. If you would like to change this, you can disable "Email Confirmations" by going to Authentication -> Settings on [app.supabase.com](https://app.supabase.com) -- If "Email Confirmations" is turned on, a user is returned but session will be null -- If "Email Confirmations" is turned off, both a `user` and a `session` will be returned -- When the user confirms their email address, they will be redirected to localhost:3000 by default. To change this, you can go to Authentication -> Settings on [app.supabase.com](https://app.supabase.com) - -## Examples - -### Sign up. - -```dart -final res = await supabase.auth.signUp('example@email.com', 'example-password'); - -final user = res.data?.user; -final error = res.error; -``` - -### Sign up with third-party providers. - -If you are using Flutter, you can sign up with OAuth providers using the [`signInWithProvider()`](/docs/reference/dart/auth-signinwithprovider) method available on `supabase_flutter`. diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/auth-update.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/auth-update.mdx deleted file mode 100644 index 69b16bd7af8..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/auth-update.mdx +++ /dev/null @@ -1,36 +0,0 @@ ---- -id: auth-update -title: 'auth.update()' -slug: /auth-update -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Updates user data, if there is a logged in user. - -```dart -final res = await supabase.auth.update( - UserAttributes(data: {'hello': 'world'}) -); - -final error = res.error; -``` - -## Notes - -It's generally better to store user data in a table inside your public schema (i.e. `public.users`). -Use the `update()` method if you have data which rarely changes or is specific only to the logged in user. - -## Examples - -### Update a user's metadata. - -```dart -final res = await supabase.auth.update( - UserAttributes(data: {'hello': 'world'}) -); - -final error = res.error; -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/auth-user.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/auth-user.mdx deleted file mode 100644 index d789a54798a..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/auth-user.mdx +++ /dev/null @@ -1,23 +0,0 @@ ---- -id: auth-user -title: 'auth.user()' -slug: /auth-user -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Returns the user data, if there is a logged in user. - -```dart -final user = supabase.auth.user(); -``` - -## Examples - -### Get the logged in user - -```dart -final user = supabase.auth.user(); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/containedby.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/containedby.mdx deleted file mode 100644 index 7410fab9675..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/containedby.mdx +++ /dev/null @@ -1,59 +0,0 @@ ---- -id: containedby -title: '.containedBy()' -slug: /containedby -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -```dart -final res = await supabase - .from('countries') - .select('name, id, main_exports') - .containedBy('main_exports', ['cars', 'food', 'machine']) - .execute(); -``` - -## Examples - -### With `select()` - -```dart -final res = await supabase - .from('countries') - .select('name, id, main_exports') - .containedBy('main_exports', ['cars', 'food', 'machine']) - .execute(); -``` - -### With `update()` - -```dart -final res = await supabase - .from('countries') - .update({ 'name': 'Mordor' }) - .containedBy('main_exports', ['orks', 'surveillance', 'evil']) - .execute(); -``` - -### With `delete()` - -```dart -final res = await supabase - .from('countries') - .delete() - .containedBy('main_exports', ['cars', 'food', 'machine']) - .execute(); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final res = await supabase - .rpc('echo_all_countries') - .containedBy('main_exports', ['cars', 'food', 'machine']) - .execute(); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/contains.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/contains.mdx deleted file mode 100644 index 4349bd001b9..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/contains.mdx +++ /dev/null @@ -1,59 +0,0 @@ ---- -id: contains -title: '.contains()' -slug: /contains -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -```dart -final res = await supabase - .from('countries') - .select('name, id, main_exports') - .contains('main_exports', ['oil']) - .execute(); -``` - -## Examples - -### With `select()` - -```dart -final res = await supabase - .from('countries') - .select('name, id, main_exports') - .contains('main_exports', ['oil']) - .execute(); -``` - -### With `update()` - -```dart -final res = await supabase - .from('countries') - .update({ 'name': 'Mordor' }) - .contains('main_exports', ['oil']) - .execute(); -``` - -### With `delete()` - -```dart -final res = await supabase - .from('countries') - .delete() - .contains('main_exports', ['oil']) - .execute(); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final res = await supabase - .rpc('echo_all_countries') - .contains('main_exports', ['oil']) - .execute(); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/delete.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/delete.mdx deleted file mode 100644 index 5f7de2ff42b..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/delete.mdx +++ /dev/null @@ -1,35 +0,0 @@ ---- -id: delete -title: 'Delete data: delete()' -slug: /delete -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Performs a DELETE on the table. - -```dart -final res = await supabase - .from('cities') - .delete() - .match({ 'id': 666 }) - .execute(); -``` - -## Notes - -- `delete()` should always be combined with [Filters](/docs/reference/dart/using-filters) to target the item(s) you wish to delete. - -## Examples - -### Delete records - -```dart -final res = await supabase - .from('cities') - .delete() - .match({ 'id': 666 }) - .execute(); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/eq.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/eq.mdx deleted file mode 100644 index af396084f38..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/eq.mdx +++ /dev/null @@ -1,61 +0,0 @@ ---- -id: eq -title: '.eq()' -slug: /eq -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows whose value on the stated `column` exactly matches the specified `value`. - -```dart -final res = await supabase - .from('cities') - .select('name, country_id') - .eq('name', 'The shire') - .execute(); -``` - -## Examples - -### With `select()` - -```dart -final res = await supabase - .from('cities') - .select('name, country_id') - .eq('name', 'The shire') - .execute(); -``` - -### With `update()` - -```dart -final res = await supabase - .from('cities') - .update({ 'name': 'Mordor' }) - .eq('name', 'San Francisco') - .execute(); -``` - -### With `delete()` - -```dart -final res = await supabase - .from('cities') - .delete() - .eq('name', 'Mordor') - .execute(); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final res = await supabase - .rpc('echo_all_cities') - .eq('name', 'San Francisco') - .execute(); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/filter.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/filter.mdx deleted file mode 100644 index 9f41c021f89..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/filter.mdx +++ /dev/null @@ -1,80 +0,0 @@ ---- -id: filter -title: '.filter()' -slug: /filter -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows whose `column` satisfies the filter. - -```dart -final res = await supabase - .from('cities') - .select('name, country_id') - .filter('name', 'in', '("Paris","Tokyo")') - .execute(); -``` - -## Notes - -- `.filter()` expects you to use the raw [PostgREST syntax](https://postgrest.org/en/stable/api.html#horizontal-filtering-rows) for the filter names and values, so it should only be used as an escape hatch in case other filters don't work. - ```dart - .filter('arraycol','cs','{"a","b"}') // Use Postgres array {} and 'cs' for contains. - .filter('rangecol','cs','(1,2]') // Use Postgres range syntax for range column. - .filter('id','in','(6,7)') // Use Postgres list () and 'in' for in_ filter. - .filter('id','cs','{${mylist.join(',')}}') // You can insert a Dart array list. - ``` - -## Examples - -### With `select()` - -```dart -final res = await supabase - .from('cities') - .select('name, country_id') - .filter('name', 'in', '("Paris","Tokyo")') - .execute(); -``` - -### With `update()` - -```dart -final res = await supabase - .from('cities') - .update({ 'name': 'Mordor' }) - .filter('name', 'in', '("Paris","Tokyo")') - .execute(); -``` - -### With `delete()` - -```dart -final res = await supabase - .from('cities') - .delete() - .filter('name', 'in', '("Paris","Tokyo")') - .execute(); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final res = await supabase - .rpc('echo_all_cities') - .filter('name', 'in', '("Paris","Tokyo")') -``` - -### Filter embedded resources - -```dart -final res = await supabase - .from('cities') - .select('name, countries ( name )') - .filter('countries.name', 'in', '("France","Japan")') - .execute(); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/getsubscriptions.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/getsubscriptions.mdx deleted file mode 100644 index 9d7ed2989d7..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/getsubscriptions.mdx +++ /dev/null @@ -1,23 +0,0 @@ ---- -id: getsubscriptions -title: 'getSubscriptions()' -slug: /getsubscriptions -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Returns an array of all your subscriptions. - -```dart -final subscriptions = supabase.getSubscriptions(); -``` - -## Examples - -### Get all subscriptions - -```dart -final subscriptions = supabase.getSubscriptions(); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/gt.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/gt.mdx deleted file mode 100644 index 7bc6f4c15b1..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/gt.mdx +++ /dev/null @@ -1,61 +0,0 @@ ---- -id: gt -title: '.gt()' -slug: /gt -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows whose value on the stated `column` is greater than the specified `value`. - -```dart -final res = await supabase - .from('cities') - .select('name, country_id') - .gt('country_id', 250) - .execute(); -``` - -## Examples - -### With `select()` - -```dart -final res = await supabase - .from('cities') - .select('name, country_id') - .gt('country_id', 250) - .execute(); -``` - -### With `update()` - -```dart -final res = await supabase - .from('cities') - .update({ 'name': 'Mordor' }) - .gt('country_id', 250) - .execute(); -``` - -### With `delete()` - -```dart -final res = await supabase - .from('cities') - .delete() - .gt('country_id', 250) - .execute(); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final res = await supabase - .rpc('echo_all_cities') - .gt('country_id', 250) - .execute(); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/gte.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/gte.mdx deleted file mode 100644 index c9a36c36cd8..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/gte.mdx +++ /dev/null @@ -1,61 +0,0 @@ ---- -id: gte -title: '.gte()' -slug: /gte -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows whose value on the stated `column` is greater than or equal to the specified `value`. - -```dart -final res = await supabase - .from('cities') - .select('name, country_id') - .gte('country_id', 250) - .execute(); -``` - -## Examples - -### With `select()` - -```dart -final res = await supabase - .from('cities') - .select('name, country_id') - .gte('country_id', 250) - .execute(); -``` - -### With `update()` - -```dart -final res = await supabase - .from('cities') - .update({ 'name': 'Mordor' }) - .gte('country_id', 250) - .execute(); -``` - -### With `delete()` - -```dart -final res = await supabase - .from('cities') - .delete() - .gte('country_id', 250) - .execute(); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final res = await supabase - .rpc('echo_all_cities') - .gte('country_id', 250) - .execute(); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/ilike.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/ilike.mdx deleted file mode 100644 index 88bd0f5ad70..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/ilike.mdx +++ /dev/null @@ -1,61 +0,0 @@ ---- -id: ilike -title: '.ilike()' -slug: /ilike -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows whose value in the stated `column` matches the supplied `pattern` (case insensitive). - -```dart -final res = await supabase - .from('cities') - .select('name, country_id') - .ilike('name', '%la%') - .execute(); -``` - -## Examples - -### With `select()` - -```dart -final res = await supabase - .from('cities') - .select('name, country_id') - .ilike('name', '%la%') - .execute(); -``` - -### With `update()` - -```dart -final res = await supabase - .from('cities') - .update({ 'name': 'Mordor' }) - .ilike('name', '%la%') - .execute(); -``` - -### With `delete()` - -```dart -final res = await supabase - .from('cities') - .delete() - .ilike('name', '%la%') - .execute(); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final res = await supabase - .rpc('echo_all_cities') - .ilike('name', '%la%') - .execute(); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/in_.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/in_.mdx deleted file mode 100644 index be147c9fc43..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/in_.mdx +++ /dev/null @@ -1,63 +0,0 @@ ---- -id: in_ -title: '.in_()' -slug: /in_ -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows whose value on the stated `column` is found on the specified `values`. - -`is_` and `in_` filter methods are suffixed with `_` to avoid collisions with reserved keywords. - -```dart -final res = await supabase - .from('cities') - .select('name, country_id') - .in_('name', ['Rio de Janeiro', 'San Francisco']) - .execute(); -``` - -## Examples - -### With `select()` - -```dart -final res = await supabase - .from('cities') - .select('name, country_id') - .in_('name', ['Rio de Janeiro', 'San Francisco']) - .execute(); -``` - -### With `update()` - -```dart -final res = await supabase - .from('cities') - .update({ 'name': 'Mordor' }) - .in_('name', ['Rio de Janeiro', 'San Francisco']) - .execute(); -``` - -### With `delete()` - -```dart -final res = await supabase - .from('cities') - .delete() - .in_('name', ['Rio de Janeiro', 'San Francisco']) - .execute(); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final res = await supabase - .rpc('echo_all_cities') - .in_('name', ['Rio de Janeiro', 'San Francisco']) - .execute(); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/index.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/index.mdx deleted file mode 100644 index 946a7d97d95..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/index.mdx +++ /dev/null @@ -1,11 +0,0 @@ ---- -id: index -title: 'Getting started' -slug: getting-started -custom_edit_url: ../../spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Supabase Dart. diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/initializing.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/initializing.mdx deleted file mode 100644 index 4d8e7de815f..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/initializing.mdx +++ /dev/null @@ -1,37 +0,0 @@ ---- -id: initializing -title: 'Initializing' -slug: /initializing -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -## Dart - -You can initialize a new Supabase client using the `SupabaseClient()` method. - -The Supabase client is your entrypoint to the rest of the Supabase functionality -and is the easiest way to interact with everything we offer within the Supabase ecosystem. - -## Flutter - -For `supabase_flutter`, you will be using the static `initialize()` method on `Supabase` class. - -## Examples - -### Dart SupabaseClient() - -```dart -final supabase = SupabaseClient('https://xyzcompany.supabase.co', 'public-anon-key'); -``` - -### Flutter initialize() - -```dart title="main.dart" -Future main() async { - await Supabase.initialize(url: 'https://xyzcompany.supabase.co', anonKey: 'public-anon-key'); - runApp(MyApp()); -} -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/insert.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/insert.mdx deleted file mode 100644 index 6330ee63c0c..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/insert.mdx +++ /dev/null @@ -1,48 +0,0 @@ ---- -id: insert -title: 'Create data: insert()' -slug: /insert -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Performs an INSERT into the table. - -```dart -final res = await supabase - .from('cities') - .insert([ - {'name': 'The Shire', 'country_id': 554} - ]).execute(); -``` - -## Notes - -- By default, every time you run `insert()`, the client library will make a `select` to return the full record. - This is convenient, but it can also cause problems if your Policies are not configured to allow the `select` operation. - If you are using Row Level Security and you are encountering problems, try setting the `returning` param to `minimal`. - -## Examples - -### Create a record - -```dart -final res = await supabase - .from('cities') - .insert([ - {'name': 'The Shire', 'country_id': 554} - ]).execute(); -``` - -### Bulk create - -```dart -final res = await supabase - .from('cities') - .insert([ - {'name': 'The Shire', 'country_id': 554}, - {'name': 'Rohan', 'country_id': 555}, - ]).execute(); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/installing.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/installing.mdx deleted file mode 100644 index 4930b9baeff..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/installing.mdx +++ /dev/null @@ -1,32 +0,0 @@ ---- -id: installing -title: 'Installing' -slug: /installing -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -## Dart - -Dart libraries are built and supported by the community. - -```bash -dart pub add supabase -``` - -Find the source code on [GitHub](https://github.com/supabase/supabase-dart). - -## Flutter - -For Flutter project, you can use [supabase_flutter](https://github.com/supabase/supabase-flutter). - -```bash -flutter pub add supabase_flutter -``` - -`supabase_flutter` plugin uses `supabase` plugin internally, and it adds some Flutter specific functionality such as handling deeplinks coming back from magic link verifications. -If you are creating a Flutter application, we recommend using `supabase_flutter` instead of `supabase`. - -For the most part `supabase_flutter` shares the same API as `supabase` with few exceptions such as initialization or OAuth sign in. diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/invoke.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/invoke.mdx deleted file mode 100644 index 1bc5f777f03..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/invoke.mdx +++ /dev/null @@ -1,60 +0,0 @@ ---- -id: invoke -title: 'invoke()' -slug: /invoke -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Invokes a Supabase Function. See the [guide](/docs/guides/functions) for details on writing Functions. - -```dart -final res = await supabaseClient.functions.invoke('hello', body: {'foo': 'baa'}); -final data = res.data; -final error = res.error; -``` - -## Notes - -- Requires an Authorization header. -- Invoke params generally match the [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) spec. - -## Examples - -### Basic invocation. - -```dart -final res = await supabaseClient.functions.invoke('hello', body: {'foo': 'baa'}); -final data = res.data; -final error = res.error; -``` - -### Specifying response type. - -By default, `invoke()` will parse the response as JSON. You can parse the response in the following formats: `json`, `blob`, `text`, and `arrayBuffer`. - -```dart -final res = await supabaseClient.functions.invoke( - 'hello', - body: {'foo': 'baa'}, - responseType: ResponseType.text, -); -final data = res.data; -final error = res.error; -``` - -### Parsing custom headers. - -Any `headers` will be passed through to the function. A common pattern is to pass a logged-in user's JWT token as an Authorization header. - -```dart -final res = await supabaseClient.functions.invoke( - 'hello', - body: {'foo': 'baa'}, - headers: { - 'Authorization': 'Bearer ${supabase.auth.session()?.access_token}' - }, -); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/is_.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/is_.mdx deleted file mode 100644 index 89e4b117d88..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/is_.mdx +++ /dev/null @@ -1,63 +0,0 @@ ---- -id: is_ -title: '.is_()' -slug: /is_ -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -A check for exact equality (null, true, false), finds all rows whose value on the stated `column` exactly match the specified `value`. - -`is_` and `in_` filter methods are suffixed with `_` to avoid collisions with reserved keywords. - -```dart -final res = await supabase - .from('cities') - .select('name, country_id') - .is_('name', null) - .execute(); -``` - -## Examples - -### With `select()` - -```dart -final res = await supabase - .from('cities') - .select('name, country_id') - .is_('name', null) - .execute(); -``` - -### With `update()` - -```dart -final res = await supabase - .from('cities') - .update({ 'name': 'Mordor' }) - .is_('name', null) - .execute(); -``` - -### With `delete()` - -```dart -final res = await supabase - .from('cities') - .delete() - .is_('name', null) - .execute(); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final res = await supabase - .rpc('echo_all_cities') - .is_('name', null) - .execute(); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/like.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/like.mdx deleted file mode 100644 index 69ec224c02e..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/like.mdx +++ /dev/null @@ -1,107 +0,0 @@ ---- -id: like -title: '.like()' -slug: /like -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows whose value in the stated `column` matches the supplied `pattern` (case sensitive). - -```dart -final res = await supabase - .from('cities') - .select('name, country_id') - .like('name', '%la%') - .execute(); -``` - -## Parameters - -
    - -
  • -

    - - column - - - required - - - object - -

    -
    - -The column to filter on. - -
    - -
  • - -
  • -

    - - pattern - - - required - - - string - -

    -
    - -The pattern to filter with. - -
    - -
  • - -
- -## Examples - -### With `select()` - -```dart -final res = await supabase - .from('cities') - .select('name, country_id') - .like('name', '%la%') - .execute(); -``` - -### With `update()` - -```dart -final res = await supabase - .from('cities') - .update({ 'name': 'Mordor' }) - .like('name', '%la%') - .execute(); -``` - -### With `delete()` - -```dart -final res = await supabase - .from('cities') - .delete() - .like('name', '%la%') - .execute(); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final res = await supabase - .rpc('echo_all_cities') - .like('name', '%la%') - .execute(); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/limit.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/limit.mdx deleted file mode 100644 index 69358c1d106..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/limit.mdx +++ /dev/null @@ -1,42 +0,0 @@ ---- -id: limit -title: 'limit()' -slug: /limit -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Limits the result with the specified count. - -```dart -final res = await supabase - .from('cities') - .select('name, country_id') - .limit(1) - .execute(); -``` - -## Examples - -### With `select()` - -```dart -final res = await supabase - .from('cities') - .select('name, country_id') - .limit(1) - .execute(); -``` - -### With embedded resources - -```dart -final res = await supabase - .from('countries') - .select('name, cities(name)') - .eq('name', 'United States') - .limit(1, foreignTable: 'cities' ) - .execute(); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/lt.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/lt.mdx deleted file mode 100644 index 130a5a09de7..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/lt.mdx +++ /dev/null @@ -1,61 +0,0 @@ ---- -id: lt -title: '.lt()' -slug: /lt -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows whose value on the stated `column` is less than the specified `value`. - -```dart -final res = await supabase - .from('cities') - .select('name, country_id') - .lt('country_id', 250) - .execute(); -``` - -## Examples - -### With `select()` - -```dart -final res = await supabase - .from('cities') - .select('name, country_id') - .lt('country_id', 250) - .execute(); -``` - -### With `update()` - -```dart -final res = await supabase - .from('cities') - .update({ 'name': 'Mordor' }) - .lt('country_id', 250) - .execute(); -``` - -### With `delete()` - -```dart -final res = await supabase - .from('cities') - .delete() - .lt('country_id', 250) - .execute(); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final res = await supabase - .rpc('echo_all_cities') - .lt('country_id', 250) - .execute(); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/lte.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/lte.mdx deleted file mode 100644 index 15fa4ac1280..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/lte.mdx +++ /dev/null @@ -1,107 +0,0 @@ ---- -id: lte -title: '.lte()' -slug: /lte -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows whose value on the stated `column` is less than or equal to the specified `value`. - -```dart -final res = await supabase - .from('cities') - .select('name, country_id') - .lte('country_id', 250) - .execute(); -``` - -## Parameters - -
    - -
  • -

    - - column - - - required - - - object - -

    -
    - -The column to filter on. - -
    - -
  • - -
  • -

    - - value - - - required - - - object - -

    -
    - -The value to filter with. - -
    - -
  • - -
- -## Examples - -### With `select()` - -```dart -final res = await supabase - .from('cities') - .select('name, country_id') - .lte('country_id', 250) - .execute(); -``` - -### With `update()` - -```dart -final res = await supabase - .from('cities') - .update({ 'name': 'Mordor' }) - .lte('country_id', 250) - .execute(); -``` - -### With `delete()` - -```dart -final res = await supabase - .from('cities') - .delete() - .lte('country_id', 250) - .execute(); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final res = await supabase - .rpc('echo_all_cities') - .lte('country_id', 250) - .execute(); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/match.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/match.mdx deleted file mode 100644 index d5f51720cc7..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/match.mdx +++ /dev/null @@ -1,61 +0,0 @@ ---- -id: match -title: '.match()' -slug: /match -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows whose columns match the specified `query` object. - -```dart -final res = await supabase - .from('cities') - .select('name, country_id') - .match({'name': 'Beijing', 'country_id': 156}) - .execute(); -``` - -## Examples - -### With `select()` - -```dart -final res = await supabase - .from('cities') - .select('name, country_id') - .match({'name': 'Beijing', 'country_id': 156}) - .execute(); -``` - -### With `update()` - -```dart -final res = await supabase - .from('cities') - .update({ 'name': 'Mordor' }) - .match({'name': 'Beijing', 'country_id': 156}) - .execute(); -``` - -### With `delete()` - -```dart -final res = await supabase - .from('cities') - .delete() - .match({'name': 'Beijing', 'country_id': 156}) - .execute(); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final res = await supabase - .rpc('echo_all_cities') - .match({'name': 'Beijing', 'country_id': 156}) - .execute(); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/neq.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/neq.mdx deleted file mode 100644 index 8634f355312..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/neq.mdx +++ /dev/null @@ -1,61 +0,0 @@ ---- -id: neq -title: '.neq()' -slug: /neq -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows whose value on the stated `column` doesn't match the specified `value`. - -```dart -final res = await supabase - .from('cities') - .select('name, country_id') - .neq('name', 'The shire') - .execute(); -``` - -## Examples - -### With `select()` - -```dart -final res = await supabase - .from('cities') - .select('name, country_id') - .neq('name', 'The shire') - .execute(); -``` - -### With `update()` - -```dart -final res = await supabase - .from('cities') - .update({ 'name': 'Mordor' }) - .neq('name', 'San Francisco') - .execute(); -``` - -### With `delete()` - -```dart -final res = await supabase - .from('cities') - .delete() - .neq('name', 'Mordor') - .execute(); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final res = await supabase - .rpc('echo_all_cities') - .neq('name', 'Lagos') - .execute(); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/not.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/not.mdx deleted file mode 100644 index a616d4ee84e..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/not.mdx +++ /dev/null @@ -1,73 +0,0 @@ ---- -id: not -title: '.not()' -slug: /not -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows which doesn't satisfy the filter. - -```dart -final res = await supabase - .from('cities') - .select('name, country_id') - .not('name', 'eq', 'Paris') - .execute(); -``` - -## Notes - -- `.not()` expects you to use the raw [PostgREST syntax](https://postgrest.org/en/stable/api.html#horizontal-filtering-rows) for the filter names and values. - - ```dart - .not('name','eq','Paris') - .not('arraycol','cs','{"a","b"}') // Use Postgres array {} for array column and 'cs' for contains. - .not('rangecol','cs','(1,2]') // Use Postgres range syntax for range column. - .not('id','in','(6,7)') // Use Postgres list () and 'in' for in_ filter. - .not('id','in','(${mylist.join(',')})') // You can insert a Dart list array. - ``` - -## Examples - -### With `select()` - -```dart -final res = await supabase - .from('cities') - .select('name, country_id') - .not('name', 'eq', 'Paris') - .execute(); -``` - -### With `update()` - -```dart -final res = await supabase - .from('cities') - .update({ 'name': 'Mordor' }) - .not('name', 'eq', 'Paris') - .execute(); -``` - -### With `delete()` - -```dart -final res = await supabase - .from('cities') - .delete() - .not('name', 'eq', 'Paris') - .execute(); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final res = await supabase - .rpc('echo_all_cities) - .not('name', 'eq', 'Paris') - .execute(); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/or.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/or.mdx deleted file mode 100644 index 6ff5d72f7ca..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/or.mdx +++ /dev/null @@ -1,51 +0,0 @@ ---- -id: or -title: '.or()' -slug: /or -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows satisfying at least one of the filters. - -```dart -final res = await supabase - .from('cities') - .select('name, country_id') - .or('id.eq.20,id.eq.30') - .execute(); -``` - -## Notes - -- `.or()` expects you to use the raw [PostgREST syntax](https://postgrest.org/en/stable/api.html#horizontal-filtering-rows) for the filter names and values. - - ```dart - .or('id.in.(6,7),arraycol.cs.{"a","b"}') // Use Postgres list () and 'in' for in_ filter. Array {} and 'cs' for contains. - .or('id.in.(${mylist.join(',')}),arraycol.cs.{${mylistArray.join(',')}}') // You can insert a Dart list for list or array column. - .or('id.in.(${mylist.join(',')}),rangecol.cs.(${mylistRange.join(',')}]') // You can insert a Dart list for list or range column. - ``` - -## Examples - -### With `select()` - -```dart -final res = await supabase - .from('cities') - .select('name, country_id') - .or('id.eq.20,id.eq.30') - .execute(); -``` - -### Use `or` with `and` - -```dart -final res = await supabase - .from('cities') - .select('name, country_id') - .or('id.gt.20,and(name.eq.New Zealand,name.eq.France)') - .execute(); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/order.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/order.mdx deleted file mode 100644 index 3d559c632b9..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/order.mdx +++ /dev/null @@ -1,42 +0,0 @@ ---- -id: order -title: 'order()' -slug: /order -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Orders the result with the specified column. - -```dart -final res = await supabase - .from('cities') - .select('name, country_id') - .order('id', ascending: false ) - .execute(); -``` - -## Examples - -### With `select()` - -```dart -final res = await supabase - .from('cities') - .select('name, country_id') - .order('id', ascending: false ) - .execute(); -``` - -### With embedded resources - -```dart -final res = await supabase - .from('countries') - .select('name, cities(name)') - .eq('name', 'United States') - .order('name', foreignTable: 'cities') - .execute(); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/overlaps.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/overlaps.mdx deleted file mode 100644 index 3985e4f2f89..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/overlaps.mdx +++ /dev/null @@ -1,59 +0,0 @@ ---- -id: overlaps -title: '.overlaps()' -slug: /overlaps -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -```dart -final res = await supabase - .from('countries') - .select('name, id, main_exports') - .overlaps('main_exports', ['computers', 'minerals']) - .execute(); -``` - -## Examples - -### With `select()` - -```dart -final res = await supabase - .from('countries') - .select('name, id, main_exports') - .overlaps('main_exports', ['computers', 'minerals']) - .execute(); -``` - -### With `update()` - -```dart -final res = await supabase - .from('countries') - .update({ 'name': 'Mordor' }) - .overlaps('main_exports', ['computers', 'minerals']) - .execute(); -``` - -### With `delete()` - -```dart -final res = await supabase - .from('countries') - .delete() - .overlaps('main_exports', ['computers', 'minerals']) - .execute(); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final res = await supabase - .rpc('echo_all_countries') - .overlaps('main_exports', ['computers', 'minerals']) - .execute(); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/range.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/range.mdx deleted file mode 100644 index fe8f1e987cc..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/range.mdx +++ /dev/null @@ -1,31 +0,0 @@ ---- -id: range -title: 'range()' -slug: /range -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Limits the result to rows within the specified range, inclusive. - -```dart -final res = await supabase - .from('cities') - .select('name, country_id') - .range(0,3) - .execute(); -``` - -## Examples - -### With `select()` - -```dart -final res = await supabase - .from('cities') - .select('name, country_id') - .range(0,3) - .execute(); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/rangeadjacent.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/rangeadjacent.mdx deleted file mode 100644 index 002f1ee8c73..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/rangeadjacent.mdx +++ /dev/null @@ -1,59 +0,0 @@ ---- -id: rangeadjacent -title: '.rangeAdjacent()' -slug: /rangeadjacent -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -```dart -final res = await supabase - .from('countries') - .select('name, id, population_range_millions') - .rangeAdjacent('population_range_millions', '[70, 185]') - .execute(); -``` - -## Examples - -### With `select()` - -```dart -final res = await supabase - .from('countries') - .select('name, id, population_range_millions') - .rangeAdjacent('population_range_millions', '[70, 185]') - .execute(); -``` - -### With `update()` - -```dart -final res = await supabase - .from('countries') - .update({ 'name': 'Mordor' }) - .rangeAdjacent('population_range_millions', '[70, 185]') - .execute(); -``` - -### With `delete()` - -```dart -final res = await supabase - .from('countries') - .delete() - .rangeAdjacent('population_range_millions', '[70, 185]') - .execute(); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final res = await supabase - .rpc('echo_all_countries') - .rangeAdjacent('population_range_millions', '[70, 185]') - .execute(); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/rangegt.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/rangegt.mdx deleted file mode 100644 index 1a44b170727..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/rangegt.mdx +++ /dev/null @@ -1,59 +0,0 @@ ---- -id: rangegt -title: '.rangeGt()' -slug: /rangegt -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -```dart -final res = await supabase - .from('countries') - .select('name, id, population_range_millions') - .rangeGt('population_range_millions', '[150, 250]') - .execute(); -``` - -## Examples - -### With `select()` - -```dart -final res = await supabase - .from('countries') - .select('name, id, population_range_millions') - .rangeGt('population_range_millions', '[150, 250]') - .execute(); -``` - -### With `update()` - -```dart -final res = await supabase - .from('countries') - .update({ 'name': 'Mordor' }) - .rangeGt('population_range_millions', '[150, 250]') - .execute(); -``` - -### With `delete()` - -```dart -final res = await supabase - .from('countries') - .delete() - .rangeGt('population_range_millions', '[150, 250]') - .execute(); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final res = await supabase - .rpc('echo_all_countries') - .rangeGt('population_range_millions', '[150, 250]') - .execute(); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/rangegte.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/rangegte.mdx deleted file mode 100644 index a641d5eeba9..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/rangegte.mdx +++ /dev/null @@ -1,59 +0,0 @@ ---- -id: rangegte -title: '.rangeGte()' -slug: /rangegte -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -```dart -final res = await supabase - .from('countries') - .select('name, id, population_range_millions') - .rangeGte('population_range_millions', '[150, 250]') - .execute(); -``` - -## Examples - -### With `select()` - -```dart -final res = await supabase - .from('countries') - .select('name, id, population_range_millions') - .rangeGte('population_range_millions', '[150, 250]') - .execute(); -``` - -### With `update()` - -```dart -final res = await supabase - .from('countries') - .update({ 'name': 'Mordor' }) - .rangeGte('population_range_millions', '[150, 250]') - .execute(); -``` - -### With `delete()` - -```dart -final res = await supabase - .from('countries') - .delete() - .rangeGte('population_range_millions', '[150, 250]') - .execute(); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final res = await supabase - .rpc('echo_all_countries') - .rangeGte('population_range_millions', '[150, 250]') - .execute(); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/rangelt.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/rangelt.mdx deleted file mode 100644 index 99f8484a912..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/rangelt.mdx +++ /dev/null @@ -1,59 +0,0 @@ ---- -id: rangelt -title: '.rangeLt()' -slug: /rangelt -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -```dart -final res = await supabase - .from('countries') - .select('name, id, population_range_millions') - .rangeLt('population_range_millions', '[150, 250]') - .execute(); -``` - -## Examples - -### With `select()` - -```dart -final res = await supabase - .from('countries') - .select('name, id, population_range_millions') - .rangeLt('population_range_millions', '[150, 250]') - .execute(); -``` - -### With `update()` - -```dart -final res = await supabase - .from('countries') - .update({ 'name': 'Mordor' }) - .rangeLt('population_range_millions', '[150, 250]') - .execute(); -``` - -### With `delete()` - -```dart -final res = await supabase - .from('countries') - .delete() - .rangeLt('population_range_millions', '[150, 250]') - .execute(); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final res = await supabase - .rpc('echo_all_countries') - .rangeLt('population_range_millions', '[150, 250]') - .execute(); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/rangelte.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/rangelte.mdx deleted file mode 100644 index 548b61c2668..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/rangelte.mdx +++ /dev/null @@ -1,59 +0,0 @@ ---- -id: rangelte -title: '.rangeLte()' -slug: /rangelte -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -```dart -final res = await supabase - .from('countries') - .select('name, id, population_range_millions') - .rangeLte('population_range_millions', '[150, 250]') - .execute(); -``` - -## Examples - -### With `select()` - -```dart -final res = await supabase - .from('countries') - .select('name, id, population_range_millions') - .rangeLte('population_range_millions', '[150, 250]') - .execute(); -``` - -### With `update()` - -```dart -final res = await supabase - .from('countries') - .update({ 'name': 'Mordor' }) - .rangeLte('population_range_millions', '[150, 250]') - .execute(); -``` - -### With `delete()` - -```dart -final res = await supabase - .from('countries') - .delete() - .rangeLte('population_range_millions', '[150, 250]') - .execute(); -``` - -### With `rpc()` - -```dart -// Only valid if the Stored Procedure returns a table type. -final res = await supabase - .rpc('echo_all_countries') - .rangeLte('population_range_millions', [150, 250]) - .execute(); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/removesubscription.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/removesubscription.mdx deleted file mode 100644 index 5c95f1b1a60..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/removesubscription.mdx +++ /dev/null @@ -1,27 +0,0 @@ ---- -id: removesubscription -title: 'removeSubscription()' -slug: /removesubscription -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Removes an active subscription and returns the number of open connections. - -```dart -supabase.removeSubscription(mySubscription); -``` - -## Notes - -- Removing subscriptions is a great way to maintain the performance of your project's database. Supabase will automatically handle cleanup 30 seconds after a user is disconnected, but unused subscriptions may cause degradation as more users are simultaneously subscribed. - -## Examples - -### Remove a subscription - -```dart -supabase.removeSubscription(mySubscription); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/reset-password-email.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/reset-password-email.mdx deleted file mode 100644 index d7c61047c9f..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/reset-password-email.mdx +++ /dev/null @@ -1,61 +0,0 @@ ---- -id: reset-password-email -title: 'Reset Password (Email)' -slug: /reset-password-email -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Sends a reset request to an email address. - -```dart -final res = await supabase.auth.api.resetPasswordForEmail('user@example.com'); - -final error = res.error; -``` - -## Notes - -Sends a reset request to an email address. - -When the user clicks the reset link in the email they will be forwarded to: - -`#access_token=x&refresh_token=y&expires_in=z&token_type=bearer&type=recovery` - -Your app must detect `type=recovery` in the fragment and display a password reset form to the user. - -You should then use the access_token in the url and new password to update the user as follows: - -```dart -final res = await supabase.auth.api.updateUser( - accessToken, - UserAttributes(password: 'NEW_PASSWORD'), -); -``` - -## Examples - -### Reset password - -```dart -final res = await supabase.auth.api.resetPasswordForEmail('user@example.com'); - -final error = res.error; -``` - -### Reset password for Flutter - -You can pass `redirectTo` to open the app via deeplink when user opens the password reset email. - -```dart -final res = await supabase.auth.api.resetPasswordForEmail( - 'user@example.com', - options: AuthOptions(redirectTo: kIsWeb - ? null - : 'io.supabase.flutter://reset-callback/'), -); - -final error = res.error; -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/rpc.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/rpc.mdx deleted file mode 100644 index 78f0367e7a6..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/rpc.mdx +++ /dev/null @@ -1,51 +0,0 @@ ---- -id: rpc -title: 'Stored Procedures: rpc()' -slug: /rpc -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -You can call stored procedures as a "Remote Procedure Call". - -That's a fancy way of saying that you can put some logic into your database then call it from anywhere. -It's especially useful when the logic rarely changes - like password resets and updates. - -```dart -final res = await supabase - .rpc('hello_world') - .execute(); -``` - -## Examples - -### Call a stored procedure - -This is an example invoking a stored procedure. - -```dart -final res = await supabase - .rpc('hello_world') - .execute(); -``` - -### With Parameters - -```dart -final res = await supabase - .rpc('echo_city', params: { 'name': 'The Shire' }) - .execute(); -``` - -### With count option - -You can specify a count option to get the row count along with your data. -Allowed values for count option are `exact`, `planned` and `estimated`. - -```dart -final res = await supabase - .rpc('hello_world') - .execute(count: CountOption.exact); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/select.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/select.mdx deleted file mode 100644 index 827be2a3f6a..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/select.mdx +++ /dev/null @@ -1,147 +0,0 @@ ---- -id: select -title: 'Fetch data: select()' -slug: /select -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Performs vertical filtering with SELECT. - -```dart -final res = await supabase - .from('cities') - .select() - .execute(); - -final data = res.data; -final error = res.error; -``` - -## Notes - -- By default, Supabase projects will return a maximum of 1,000 rows. This setting can be changed in Project API Settings. It's recommended that you keep it low to limit the payload size of accidental or malicious requests. You can use `range()` queries to paginate through your data. -- `select()` can be combined with [Modifiers](/docs/reference/dart/using-modifiers) -- `select()` can be combined with [Filters](/docs/reference/dart/using-filters) -- If using the Supabase hosted platform `apikey` is technically a reserved keyword, since the API gateway will pluck it out for authentication. [It should be avoided as a column name](https://github.com/supabase/supabase/issues/5465). - -## Examples - -### Getting your data - -```dart -final res = await supabase - .from('cities') - .select() - .execute(); - -final data = res.data; -final error = res.error; -``` - -### Selecting specific columns - -You can select specific fields from your tables. - -```dart -final res = await supabase - .from('cities') - .select('name') - .execute(); -``` - -### Query foreign tables - -If your database has relationships, you can query related tables too. - -```dart -final res = await supabase - .from('countries') - .select(''' - name, - cities ( - name - ) - ''') - .execute(); -``` - -### Query the same foreign table multiple times - -Sometimes you will need to query the same foreign table twice. -In this case, you can use the name of the joined column to identify -which join you intend to use. For convenience, you can also give an -alias for each column. For example, if we had a shop of products, -and we wanted to get the supplier and the purchaser at the same time -(both in the users) table: - -```dart -final res = await supabase - .from('products') - .select(''' - id, - supplier:supplier_id ( name ), - purchaser:purchaser_id ( name ) - ''') - .execute(); -``` - -### Filtering with inner joins - -If you want to filter a table based on a child table's values you can use the `!inner()` function. For example, if you wanted -to select all rows in a `message` table which belong to a user with the `username` "Jane": - -```dart -final res = await supabase - .from('messages') - .select('*, users!inner(*)') - .eq('users.username', 'Jane') - .execute(); -``` - -### Querying with count option - -You can get the number of rows by using the count option. -Allowed values for count option are [exact](https://postgrest.org/en/stable/api.html#exact-count), [planned](https://postgrest.org/en/stable/api.html#planned-count) and [estimated](https://postgrest.org/en/stable/api.html#estimated-count). - -```dart -final res = await supabase - .from('cities') - .select('name') - .execute(count: CountOption.exact); - -final count = res.count; -``` - -### Querying JSON data - -If you have data inside of a JSONB column, you can apply select -and query filters to the data values. Postgres offers a -[number of operators](https://www.postgresql.org/docs/current/functions-json.html) -for querying JSON data. Also see -[PostgREST docs](http://postgrest.org/en/v7.0.0/api.html#json-columns) for more details. - -```dart -final res = await supabase - .from('users') - .select(''' - id, name, - address->street - ''') - .eq('address->postcode', 90210) - .execute(); -``` - -### Return data as CSV - -By default the data is returned in JSON format, however you can also request for it to be returned as Comma Separated Values. - -```dart -final res = await supabase - .from('users') - .select() - .csv() - .execute(); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/single.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/single.mdx deleted file mode 100644 index 04a9c0c853a..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/single.mdx +++ /dev/null @@ -1,31 +0,0 @@ ---- -id: single -title: 'single()' -slug: /single -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Retrieves only one row from the result. Result must be one row (e.g. using limit), otherwise this will result in an error. - -```dart -final res = await supabase - .from('cities') - .select('name, country_id') - .single() - .execute(); -``` - -## Examples - -### With `select()` - -```dart -final res = await supabase - .from('cities') - .select('name, country_id') - .single() - .execute(); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-createbucket.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-createbucket.mdx deleted file mode 100644 index dd3ba519532..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-createbucket.mdx +++ /dev/null @@ -1,33 +0,0 @@ ---- -id: storage-createbucket -title: 'createBucket()' -slug: /storage-createbucket -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Creates a new Storage bucket - -```dart -final res = await supabase - .storage - .createBucket('avatars'); -``` - -## Notes - -- Policy permissions required: - - `buckets` permissions: `insert` - - `objects` permissions: none - -## Examples - -### Create bucket - -```dart -final res = await supabase - .storage - .createBucket('avatars'); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-deletebucket.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-deletebucket.mdx deleted file mode 100644 index d8466d3ddd6..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-deletebucket.mdx +++ /dev/null @@ -1,33 +0,0 @@ ---- -id: storage-deletebucket -title: 'deleteBucket()' -slug: /storage-deletebucket -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Deletes an existing bucket. A bucket can't be deleted with existing objects inside it. You must first `empty()` the bucket. - -```dart -final res = await supabase - .storage - .deleteBucket('avatars'); -``` - -## Notes - -- Policy permissions required: - - `buckets` permissions: `select` and `delete` - - `objects` permissions: none - -## Examples - -### Delete bucket - -```dart -final res = await supabase - .storage - .deleteBucket('avatars'); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-emptybucket.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-emptybucket.mdx deleted file mode 100644 index 47372c505ee..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-emptybucket.mdx +++ /dev/null @@ -1,33 +0,0 @@ ---- -id: storage-emptybucket -title: 'emptyBucket()' -slug: /storage-emptybucket -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Removes all objects inside a single bucket. - -```dart -final res = await supabase - .storage - .emptyBucket('avatars'); -``` - -## Notes - -- Policy permissions required: - - `buckets` permissions: `select` - - `objects` permissions: `select` and `delete` - -## Examples - -### Empty bucket - -```dart -final res = await supabase - .storage - .emptyBucket('avatars'); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-from-createsignedurl.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-from-createsignedurl.mdx deleted file mode 100644 index e4c4ea26957..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-from-createsignedurl.mdx +++ /dev/null @@ -1,39 +0,0 @@ ---- -id: storage-from-createsignedurl -title: 'from.createSignedUrl()' -slug: /storage-from-createsignedurl -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Create signed url to download file without requiring permissions. This URL can be valid for a set number of seconds. - -```dart -final res = await supabase - .storage - .from('avatars') - .createSignedUrl('avatar1.png', 60); - -final signedURL = res.data; -``` - -## Notes - -- Policy permissions required: - - `buckets` permissions: none - - `objects` permissions: `select` - -## Examples - -### Create Signed URL - -```dart -final res = await supabase - .storage - .from('avatars') - .createSignedUrl('avatar1.png', 60); - -final signedURL = res.data; -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-from-download.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-from-download.mdx deleted file mode 100644 index 44c80600d91..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-from-download.mdx +++ /dev/null @@ -1,35 +0,0 @@ ---- -id: storage-from-download -title: 'from.download()' -slug: /storage-from-download -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Downloads a file. - -```dart -final res = await supabase - .storage - .from('avatars') - .download('avatar1.png'); -``` - -## Notes - -- Policy permissions required: - - `buckets` permissions: none - - `objects` permissions: `select` - -## Examples - -### Download file - -```dart -final res = await supabase - .storage - .from('avatars') - .download('avatar1.png'); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-from-getpublicurl.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-from-getpublicurl.mdx deleted file mode 100644 index 44cfa40072c..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-from-getpublicurl.mdx +++ /dev/null @@ -1,40 +0,0 @@ ---- -id: storage-from-getpublicurl -title: 'from.getPublicUrl()' -slug: /storage-from-getpublicurl -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Retrieve URLs for assets in public buckets - -```dart -final res = supabase - .storage - .from('public-bucket') - .getPublicUrl('avatar1.png'); - -final publicURL = res.data; -``` - -## Notes - -- The bucket needs to be set to public, either via [updateBucket()](/docs/reference/javascript/storage-updatebucket) or by going to Storage on [app.supabase.com](https://app.supabase.com), clicking the overflow menu on a bucket and choosing "Make public" -- Policy permissions required: - - `buckets` permissions: none - - `objects` permissions: none - -## Examples - -### Returns the URL for an asset in a public bucket - -```dart -final res = supabase - .storage - .from('public-bucket') - .getPublicUrl('avatar1.png'); - -final publicURL = res.data; -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-from-list.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-from-list.mdx deleted file mode 100644 index d760e8b757f..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-from-list.mdx +++ /dev/null @@ -1,35 +0,0 @@ ---- -id: storage-from-list -title: 'from.list()' -slug: /storage-from-list -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Lists all the files within a bucket. - -```dart -final res = await supabase - .storage - .from('avatars') - .list(); -``` - -## Notes - -- Policy permissions required: - - `buckets` permissions: none - - `objects` permissions: `select` - -## Examples - -### List files in a bucket - -```dart -final res = await supabase - .storage - .from('avatars') - .list(); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-from-move.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-from-move.mdx deleted file mode 100644 index 0a0462da7ed..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-from-move.mdx +++ /dev/null @@ -1,35 +0,0 @@ ---- -id: storage-from-move -title: 'from.move()' -slug: /storage-from-move -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Moves an existing file, optionally renaming it at the same time. - -```dart -final res = await supabase - .storage - .from('avatars') - .move('public/avatar1.png', 'private/avatar2.png'); -``` - -## Notes - -- Policy permissions required: - - `buckets` permissions: none - - `objects` permissions: `update` and `select` - -## Examples - -### Move file - -```dart -final res = await supabase - .storage - .from('avatars') - .move('public/avatar1.png', 'private/avatar2.png'); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-from-remove.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-from-remove.mdx deleted file mode 100644 index 4267ab63d0e..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-from-remove.mdx +++ /dev/null @@ -1,35 +0,0 @@ ---- -id: storage-from-remove -title: 'from.remove()' -slug: /storage-from-remove -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Deletes files within the same bucket - -```dart -final res = await supabase - .storage - .from('avatars') - .remove(['avatar1.png']); -``` - -## Notes - -- Policy permissions required: - - `buckets` permissions: none - - `objects` permissions: `delete` and `select` - -## Examples - -### Delete file - -```dart -final res = await supabase - .storage - .from('avatars') - .remove(['avatar1.png']); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-from-update.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-from-update.mdx deleted file mode 100644 index 03dac7904f4..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-from-update.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -id: storage-from-update -title: 'from.update()' -slug: /storage-from-update -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Replaces an existing file at the specified path with a new one. - -```dart -final avatarFile = File('path/to/file'); -final res = await supabase - .storage - .from('avatars') - .update('public/avatar1.png', avatarFile, fileOptions: FileOptions( - cacheControl: '3600', - upsert: false - )); -``` - -## Notes - -- Policy permissions required: - - `buckets` permissions: none - - `objects` permissions: `update` and `select` - -## Examples - -### Update file - -```dart -final avatarFile = File('path/to/file'); -final res = await supabase - .storage - .from('avatars') - .update('public/avatar1.png', avatarFile, fileOptions: FileOptions( - cacheControl: '3600', - upsert: false - )); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-from-upload.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-from-upload.mdx deleted file mode 100644 index f9454c41893..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-from-upload.mdx +++ /dev/null @@ -1,112 +0,0 @@ ---- -id: storage-from-upload -title: 'from.upload()' -slug: /storage-from-upload -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Uploads a file to an existing bucket. - -```dart -final avatarFile = File('path/to/file'); -final res = await supabase - .storage - .from('avatars') - .upload('public/avatar1.png', avatarFile, fileOptions: FileOptions( - cacheControl: '3600', - upsert: false - )); -``` - -## Parameters - -
    - -
  • -

    - - path - - - required - - - string - -

    -
    - -The relative file path. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to upload. - -
    - -
  • - -
  • -

    - - fileBody - - - required - - - ArrayBuffer | ArrayBufferView | Blob | Buffer | File | FormData | ReadableStream | ReadableStream | URLSearchParams | string - -

    -
    - -The body of the file to be stored in the bucket. - -
    - -
  • - -
  • -

    - - fileOptions - - - optional - - - FileOptions - -

    -
    - -HTTP headers. -`cacheControl`: string, the `Cache-Control: max-age=` seconds value. -`contentType`: string, the `Content-Type` header value. Should be specified if using a `fileBody` that is neither `Blob` nor `File` nor `FormData`, otherwise will default to `text/plain;charset=UTF-8`. -`upsert`: boolean, whether to perform an upsert. - -
    - -
  • - -
- -## Notes - -- Policy permissions required: - - `buckets` permissions: none - - `objects` permissions: `insert` - -## Examples - -### Upload file - -```dart -final avatarFile = File('path/to/file'); -final res = await supabase - .storage - .from('avatars') - .upload('public/avatar1.png', avatarFile, fileOptions: FileOptions( - cacheControl: '3600', - upsert: false - )); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-getbucket.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-getbucket.mdx deleted file mode 100644 index bc086060252..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-getbucket.mdx +++ /dev/null @@ -1,59 +0,0 @@ ---- -id: storage-getbucket -title: 'getBucket()' -slug: /storage-getbucket -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Retrieves the details of an existing Storage bucket. - -```dart -final res = await supabase - .storage - .getBucket('avatars') -``` - -## Parameters - -
    - -
  • -

    - - id - - - required - - - string - -

    -
    - -The unique identifier of the bucket you would like to retrieve. - -
    - -
  • - -
- -## Notes - -- Policy permissions required: - - `buckets` permissions: `select` - - `objects` permissions: none - -## Examples - -### Get bucket - -```dart -final res = await supabase - .storage - .getBucket('avatars') -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-listbuckets.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-listbuckets.mdx deleted file mode 100644 index b51a7024740..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-listbuckets.mdx +++ /dev/null @@ -1,33 +0,0 @@ ---- -id: storage-listbuckets -title: 'listBuckets()' -slug: /storage-listbuckets -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Retrieves the details of all Storage buckets within an existing product. - -```dart -final res = await supabase - .storage - .listBuckets() -``` - -## Notes - -- Policy permissions required: - - `buckets` permissions: `select` - - `objects` permissions: none - -## Examples - -### List buckets - -```dart -final res = await supabase - .storage - .listBuckets() -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-updatebucket.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-updatebucket.mdx deleted file mode 100644 index 38809788af9..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/storage-updatebucket.mdx +++ /dev/null @@ -1,33 +0,0 @@ ---- -id: storage-updatebucket -title: 'updateBucket()' -slug: /storage-updatebucket -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Updates a new Storage bucket - -```dart -final res = await supabase - .storage - .updateBucket('avatars', { public: false }); -``` - -## Notes - -- Policy permissions required: - - `buckets` permissions: `update` - - `objects` permissions: none - -## Examples - -### Update bucket - -```dart -final res = await supabase - .storage - .updateBucket('avatars', { public: false }); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/stream.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/stream.mdx deleted file mode 100644 index 994d8005507..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/stream.mdx +++ /dev/null @@ -1,67 +0,0 @@ ---- -id: stream -title: 'stream()' -slug: /stream -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Notifies of data at the queried table. - -```dart -supabase - .from('countries') - .stream(['id']) - .execute(); -``` - -## Notes - -- `stream()` will emit the initial data as well as any further change on the database as `Stream` of `List>` by combining Postgrest and Realtime. -- Takes a list of primary key columns as its argument. - -## Examples - -### Listening to a specific table - -```dart -supabase - .from('countries') - .stream(['id']) - .execute(); -``` - -### Listening to a specific rows within a table - -You can listen to individual rows using the format `{table}:{col}=eq.{val}` - where `{col}` is the column name, and `{val}` is the value which you want to match. -This syntax is the as how you can filter data in Realtime - -```dart -supabase - .from('countries:id=eq.120') - .stream(['id']) - .execute(); -``` - -### With `order()` - -```dart -supabase - .from('countries') - .stream(['id']) - .order('name', ascending: false) - .execute(); -``` - -### With `limit()` - -```dart -supabase - .from('countries') - .stream(['id']) - .order('name', ascending: false) - .limit(10) - .execute(); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/subscribe.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/subscribe.mdx deleted file mode 100644 index 866fed8d0ec..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/subscribe.mdx +++ /dev/null @@ -1,119 +0,0 @@ ---- -id: subscribe -title: 'on().subscribe()' -slug: /subscribe -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Subscribe to realtime changes in your database. - -```dart -final mySubscription = supabase - .from('countries') - .on(SupabaseEventTypes.all, (payload) { - // Handle realtime payload - }) - .subscribe(); -``` - -## Notes - -- Realtime is disabled by default for new Projects for better database performance and security. You can turn it on by [managing replication](/docs/guides/api#managing-realtime). -- If you want to receive the "previous" data for updates and deletes, you will need to set `REPLICA IDENTITY` to `FULL`, like this: `ALTER TABLE your_table REPLICA IDENTITY FULL;` - -## Examples - -### Listen to all database changes - -```dart -final mySubscription = supabase - .from('countries') - .on(SupabaseEventTypes.all, (payload) { - // Handle realtime payload - }) - .subscribe(); -``` - -### Listening to a specific table - -```dart -final mySubscription = supabase - .from('countries') - .on(SupabaseEventTypes.all, (payload) { - // Handle realtime payload - }) - .subscribe(); -``` - -### Listening to inserts - -```dart -final mySubscription = supabase - .from('countries') - .on(SupabaseEventTypes.insert, (payload) { - // Handle realtime payload - }) - .subscribe(); -``` - -### Listening to updates - -By default, Supabase will send only the updated record. If you want to receive the previous values as well you can -enable full replication for the table you are listening too: - -```sql -alter table "your_table" replica identity full; -``` - -```dart -final mySubscription = supabase - .from('countries') - .on(SupabaseEventTypes.update, (payload) { - // Handle realtime payload - }) - .subscribe(); -``` - -### Listening to deletes - -By default, Supabase does not send deleted records. If you want to receive the deleted record you can -enable full replication for the table you are listening too: - -```sql -alter table "your_table" replica identity full; -``` - -```dart -final mySubscription = supabase - .from('countries') - .on(SupabaseEventTypes.delete, (payload) { - // Handle realtime payload - }) - .subscribe(); -``` - -### Listening to multiple events - -You can chain listeners if you want to listen to multiple events for each table. - -```dart -final mySubscription = supabase - .from('countries') - .on(SupabaseEventTypes.insert, handleInsert) - .on(SupabaseEventTypes.delete, handleDelete) - .subscribe(); -``` - -### Listening to row level changes - -You can listen to individual rows using the format `{table}:{col}=eq.{val}` - where `{col}` is the column name, and `{val}` is the value which you want to match. - -```dart -final mySubscription = supabase - .from('countries:id=eq.200') - .on(SupabaseEventTypes.update, handleRecordUpdated) - .subscribe(); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/textsearch.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/textsearch.mdx deleted file mode 100644 index 810eeb04b7a..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/textsearch.mdx +++ /dev/null @@ -1,77 +0,0 @@ ---- -id: textsearch -title: '.textSearch()' -slug: /textsearch -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows whose tsvector value on the stated `column` matches to_tsquery(query). - -## Examples - -### Text search - -```dart -final res = await supabase - .from('quotes') - .select('catchphrase') - .textSearch('catchphrase', "'fat' & 'cat'", - config: 'english' - ) - .execute(); -``` - -### Basic normalization - -Uses PostgreSQL's `plainto_tsquery` function. - -```dart -final res = await supabase - .from('quotes') - .select('catchphrase') - .textSearch('catchphrase', "'fat' & 'cat'", - type: TextSearchType.plain, - config: 'english' - ) - .execute(); -``` - -### Full normalization - -Uses PostgreSQL's `phraseto_tsquery` function. - -```dart -final res = await supabase - .from('quotes') - .select('catchphrase') - .textSearch('catchphrase', "'fat' & 'cat'", - type: TextSearchType.phrase, - config: 'english' - ) - .execute(); -``` - -### Full normalization - -Uses PostgreSQL's `websearch_to_tsquery` function. -This function will never raise syntax errors, which makes it possible to use raw user-supplied input for search, and can be used -with advanced operators. - -- `unquoted text`: text not inside quote marks will be converted to terms separated by & operators, as if processed by plainto_tsquery. -- `"quoted text"`: text inside quote marks will be converted to terms separated by <-> operators, as if processed by phraseto_tsquery. -- `OR`: the word “or” will be converted to the | operator. -- `-`: a dash will be converted to the ! operator. - -```dart -final res = await supabase - .from('quotes') - .select('catchphrase') - .textSearch('catchphrase', "'fat or cat'", - type: TextSearchType.websearch, - config: 'english' - ) - .execute(); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/update.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/update.mdx deleted file mode 100644 index 280172efbed..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/update.mdx +++ /dev/null @@ -1,55 +0,0 @@ ---- -id: update -title: 'Modify data: update()' -slug: /update -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Performs an UPDATE on the table. - -```dart -final res = await supabase - .from('cities') - .update({ 'name': 'Middle Earth' }) - .match({ 'name': 'Auckland' }) - .execute(); -``` - -## Notes - -- `update()` should always be combined with [Filters](/docs/reference/dart/using-filters) to target the item(s) you wish to update. - -## Examples - -### Updating your data - -```dart -final res = await supabase - .from('cities') - .update({ 'name': 'Middle Earth' }) - .match({ 'name': 'Auckland' }) - .execute(); -``` - -### Updating JSON data - -Postgres offers a -[number of operators](https://www.postgresql.org/docs/current/functions-json.html) -for working with JSON data. Right now it is only possible to update an entire JSON document, -but we are [working on ideas](https://github.com/PostgREST/postgrest/issues/465) for updating individual keys. - -```dart -final res = await supabase - .from('users') - .update({ - 'address': { - 'street': 'Melrose Place', - 'postcode': 90210 - } - }) - .eq('address->postcode', 90210) - .execute(); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/upsert.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/upsert.mdx deleted file mode 100644 index 5230a5dab54..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/upsert.mdx +++ /dev/null @@ -1,62 +0,0 @@ ---- -id: upsert -title: 'Upsert data: upsert()' -slug: /upsert -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Performs an UPSERT into the table. - -```dart -final res = await supabase - .from('messages') - .upsert({ 'id': 3, 'message': 'foo', 'username': 'supabot' }) - .execute(); -``` - -## Notes - -- Primary keys should be included in the data payload in order for an update to work correctly. -- Primary keys must be natural, not surrogate. There are however, [workarounds](https://github.com/PostgREST/postgrest/issues/1118) for surrogate primary keys. - -## Examples - -### Upsert your data - -```dart -final res = await supabase - .from('messages') - .upsert({ 'id': 3, 'message': 'foo', 'username': 'supabot' }) - .execute(); -``` - -### Upserting into tables with constraints - -Running the following will cause supabase to upsert data into the `users` table. -If the username 'supabot' already exists, the `onConflict` argument tells supabase to overwrite that row -based on the column passed into `onConflict`. - -```dart -final res = await supabase - .from('users') - .upsert({ 'username': 'supabot' }, { 'onConflict': 'username' }) - .execute(); -``` - -### Return the exact number of rows - -Allowed values for count option are `exact`, `planned` and `estimated`. - -```dart -final res = await supabase - .from('users') - .upsert({ - 'id': 3, - 'message': 'foo', - 'username': 'supabot' - }) - .execute(count: CountOption.exact); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/using-filters.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/using-filters.mdx deleted file mode 100644 index 839a35fc748..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/using-filters.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -id: using-filters -title: 'Using Filters' -slug: /using-filters -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Filters can be used on `select()`, `update()`, and `delete()` queries. - -If a Stored Procedure returns a table response, you can also apply filters. - -### Applying Filters - -You must apply your filters to the end of your query. For example: - -```dart -final res = await supabase - .from('cities') - .select('name, country_id') - .eq('name', 'The Shire') // Correct - .execute(); - -final res = await supabase - .from('cities') - .eq('name', 'The Shire') // Incorrect - .select('name, country_id') - .execute(); -``` - -### Chaining - -Filters can be chained together to produce advanced queries. For example: - -```dart -final res = await supabase - .from('cities') - .select('name, country_id') - .gte('population', 1000) - .lt('population', 10000) - .execute(); -``` diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/using-modifiers.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/using-modifiers.mdx deleted file mode 100644 index 5fbbe72b81a..00000000000 --- a/apps/reference/_supabase_dart_versioned_docs/version-v0/generated/using-modifiers.mdx +++ /dev/null @@ -1,13 +0,0 @@ ---- -id: using-modifiers -title: 'Using Modifiers' -slug: /using-modifiers -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Modifiers can be used on `select()` queries. - -If a Stored Procedure returns a table response, you can also apply modifiers to the `rpc()` function. diff --git a/apps/reference/_supabase_js/generated/auth-admin-createuser.mdx b/apps/reference/_supabase_js/generated/auth-admin-createuser.mdx deleted file mode 100644 index e690ec05e4b..00000000000 --- a/apps/reference/_supabase_js/generated/auth-admin-createuser.mdx +++ /dev/null @@ -1,263 +0,0 @@ ---- -id: auth-admin-createuser -title: 'createUser()' -slug: /auth-admin-createuser -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Creates a new user. -This function should only be called on a server. Never expose your `service_role` key in the browser. - -```js -const { data, error } = await supabase.auth.admin.createUser({ - email: 'user@email.com', - password: 'password', - user_metadata: { name: 'Yoda' }, -}) -``` - -## Parameters - -
    - -
  • -

    - - AdminUserAttributes - - - required - - - object - -

    -
    - -No description provided. - -
    - -
      -
      Properties
      - -
    • -

      - - app_metadata - - - optional - - - object - -

      -
      - -A custom data object to store the user's application specific metadata. This maps to the `auth.users.app_metadata` column. - -Only a service role can modify. - -The `app_metadata` should be a JSON object that includes app-specific info, such as identity providers, roles, and other -access control information. - -
      - -
    • - -
    • -

      - - data - - - optional - - - object - -

      -
      - -A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column. - -The `data` should be a JSON object that includes user-specific info, such as their first and last name. - -
      - -
    • - -
    • -

      - - email - - - optional - - - string - -

      -
      - -The user's email. - -
      - -
    • - -
    • -

      - - email_confirm - - - optional - - - boolean - -

      -
      - -Confirms the user's email address if set to true. - -Only a service role can modify. - -
      - -
    • - -
    • -

      - - password - - - optional - - - string - -

      -
      - -The user's password. - -
      - -
    • - -
    • -

      - - phone - - - optional - - - string - -

      -
      - -The user's phone. - -
      - -
    • - -
    • -

      - - phone_confirm - - - optional - - - boolean - -

      -
      - -Confirms the user's phone number if set to true. - -Only a service role can modify. - -
      - -
    • - -
    • -

      - - user_metadata - - - optional - - - object - -

      -
      - -A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column. - -Only a service role can modify. - -The `user_metadata` should be a JSON object that includes user-specific info, such as their first and last name. - -Note: When using the GoTrueAdminApi and wanting to modify a user's metadata, -this attribute is used instead of UserAttributes data. - -
      - -
    • - -
    - -
  • - -
- -## Notes - -- To confirm the user's email address or phone number, set `email_confirm` or `phone_confirm` to true. Both arguments default to false. - -## Examples - -### Create a new user with custom user metadata - -```js -const { data, error } = await supabase.auth.admin.createUser({ - email: 'user@email.com', - password: 'password', - user_metadata: { name: 'Yoda' }, -}) -``` - -### Auto-confirm the user's email - -```js -const { data, error } = await supabase.auth.admin.createUser({ - email: 'user@email.com', - email_confirm: true, -}) -``` - -### Auto-confirm the user's phone number - -```js -const { data, error } = await supabase.auth.admin.createUser({ - phone: '1234567890', - phone_confirm: true, -}) -``` diff --git a/apps/reference/_supabase_js/generated/auth-admin-deleteuser.mdx b/apps/reference/_supabase_js/generated/auth-admin-deleteuser.mdx deleted file mode 100644 index d7e96b605e4..00000000000 --- a/apps/reference/_supabase_js/generated/auth-admin-deleteuser.mdx +++ /dev/null @@ -1,59 +0,0 @@ ---- -id: auth-admin-deleteuser -title: 'deleteUser()' -slug: /auth-admin-deleteuser -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Delete a user. Requires a `service_role` key. - -```js -const { data, error } = await supabase.auth.admin.deleteUser( - '715ed5db-f090-4b8c-a067-640ecee36aa0' -) -``` - -## Parameters - -
    - -
  • -

    - - id - - - required - - - string - -

    -
    - -The user id you want to remove. - -This function should only be called on a server. Never expose your `service_role` key in the browser. - -
    - -
  • - -
- -## Notes - -- The `deleteUser()` method requires the user's ID, which maps to the `auth.users.id` column. - -## Examples - -### Removes a user - -```js -const { data, error } = await supabase.auth.admin.deleteUser( - '715ed5db-f090-4b8c-a067-640ecee36aa0' -) -``` diff --git a/apps/reference/_supabase_js/generated/auth-admin-generatelink.mdx b/apps/reference/_supabase_js/generated/auth-admin-generatelink.mdx deleted file mode 100644 index 5c5a79e4721..00000000000 --- a/apps/reference/_supabase_js/generated/auth-admin-generatelink.mdx +++ /dev/null @@ -1,183 +0,0 @@ ---- -id: auth-admin-generatelink -title: 'generateLink()' -slug: /auth-admin-generatelink -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Generates email links and OTPs to send via a custom email provider. - -```js -const { data, error } = await supabase.auth.admin.generateLink({ - type: 'signup', - email: 'email@example.com', - options: { - password: 'secret', - }, -}) -``` - -## Parameters - -
    - -
  • -

    - - GenerateLinkParams - - - required - - - GenerateSignupLinkParams | GenerateInviteOrMagiclinkParams | GenerateRecoveryLinkParams | GenerateEmailChangeLinkParams - -

    -
    - -No description provided. - -
    - -
      -
      Properties
      - -
    • -

      - - GenerateSignupLinkParams - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - GenerateRecoveryLinkParams - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - GenerateInviteOrMagiclinkParams - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - GenerateEmailChangeLinkParams - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    - -
  • - -
- -## Examples - -### Generate a signup link - -```js -const { data, error } = await supabase.auth.admin.generateLink({ - type: 'signup', - email: 'email@example.com', - options: { - password: 'secret', - }, -}) -``` - -### Generate an invite link - -```js -const { data, error } = await supabase.auth.admin.generateLink({ - type: 'invite', - email: 'email@example.com', -}) -``` - -### Generate a magic link - -```js -const { data, error } = await supabase.auth.admin.generateLink({ - type: 'magiclink', - email: 'email@example.com', -}) -``` - -### Generate a recovery link - -```js -const { data, error } = await supabase.auth.admin.generateLink({ - type: 'recovery', - email: 'email@example.com', -}) -``` - -### Generate a link to change email addresses - -```js -const { data, error } = await supabase.auth.admin.generateLink({ - type: 'email_change_current', - email: 'old.email@example.com', - newEmail: 'new.email@example.com', -}) -``` diff --git a/apps/reference/_supabase_js/generated/auth-admin-getuserbyid.mdx b/apps/reference/_supabase_js/generated/auth-admin-getuserbyid.mdx deleted file mode 100644 index d4a31673288..00000000000 --- a/apps/reference/_supabase_js/generated/auth-admin-getuserbyid.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -id: auth-admin-getuserbyid -title: 'getUserById()' -slug: /auth-admin-getuserbyid -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Get user by id. - -```js -const { data, error } = await supabase.auth.admin.getUserById(1) -``` - -## Parameters - -
    - -
  • -

    - - uid - - - required - - - string - -

    -
    - -The user's unique identifier - -This function should only be called on a server. Never expose your `service_role` key in the browser. - -
    - -
  • - -
- -## Notes - -- Fetches the user object from the database based on the user's id. -- The `getUserById()` method requires the user's id which maps to the `auth.users.id` column. - -## Examples - -### Fetch the user object using the access_token jwt. - -```js -const { data, error } = await supabase.auth.admin.getUserById(1) -``` diff --git a/apps/reference/_supabase_js/generated/auth-admin-inviteuserbyemail.mdx b/apps/reference/_supabase_js/generated/auth-admin-inviteuserbyemail.mdx deleted file mode 100644 index d35c8d80387..00000000000 --- a/apps/reference/_supabase_js/generated/auth-admin-inviteuserbyemail.mdx +++ /dev/null @@ -1,122 +0,0 @@ ---- -id: auth-admin-inviteuserbyemail -title: 'inviteUserByEmail()' -slug: /auth-admin-inviteuserbyemail -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Sends an invite link to an email address. - -```js -const { data, error } = await supabase.auth.admin.inviteUserByEmail( - 'email@example.com' -) -``` - -## Parameters - -
    - -
  • -

    - - email - - - required - - - string - -

    -
    - -The email address of the user. - -
    - -
  • - -
  • -

    - - options - - - required - - - object - -

    -
    - -No description provided. - -
    - -
      -
      Properties
      - -
    • -

      - - data - - - optional - - - object - -

      -
      - -Optional user metadata - -
      - -
    • - -
    • -

      - - redirectTo - - - optional - - - string - -

      -
      - -A URL or mobile deeplink to send the user to after they are confirmed. - -
      - -
    • - -
    - -
  • - -
- -## Notes - -- Sends an invite link to the user's email address. - -## Examples - -### Invite a user - -```js -const { data, error } = await supabase.auth.admin.inviteUserByEmail( - 'email@example.com' -) -``` diff --git a/apps/reference/_supabase_js/generated/auth-admin-listusers.mdx b/apps/reference/_supabase_js/generated/auth-admin-listusers.mdx deleted file mode 100644 index 8865b657add..00000000000 --- a/apps/reference/_supabase_js/generated/auth-admin-listusers.mdx +++ /dev/null @@ -1,31 +0,0 @@ ---- -id: auth-admin-listusers -title: 'listUsers()' -slug: /auth-admin-listusers -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Get a list of users. - -This function should only be called on a server. Never expose your `service_role` key in the browser. - -```js -const { - data: { users }, - error, -} = await supabase.auth.admin.listUsers() -``` - -## Examples - -### Get a full list of users. - -```js -const { - data: { users }, - error, -} = await supabase.auth.admin.listUsers() -``` diff --git a/apps/reference/_supabase_js/generated/auth-admin-updateuserbyid.mdx b/apps/reference/_supabase_js/generated/auth-admin-updateuserbyid.mdx deleted file mode 100644 index d6ca9bd9078..00000000000 --- a/apps/reference/_supabase_js/generated/auth-admin-updateuserbyid.mdx +++ /dev/null @@ -1,303 +0,0 @@ ---- -id: auth-admin-updateuserbyid -title: 'updateUserById()' -slug: /auth-admin-updateuserbyid -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Updates the user data. - -```js -const { data: user, error } = await supabase.auth.admin.updateUserById( - '6aa5d0d4-2a9f-4483-b6c8-0cf4c6c98ac4', - { user_metadata: { hello: 'world' } } -) -``` - -## Parameters - -
    - -
  • -

    - - uid - - - required - - - string - -

    -
    - -No description provided. - -
    - -
  • - -
  • -

    - - AdminUserAttributes - - - required - - - object - -

    -
    - -No description provided. - -
    - -
      -
      Properties
      - -
    • -

      - - app_metadata - - - optional - - - object - -

      -
      - -A custom data object to store the user's application specific metadata. This maps to the `auth.users.app_metadata` column. - -Only a service role can modify. - -The `app_metadata` should be a JSON object that includes app-specific info, such as identity providers, roles, and other -access control information. - -
      - -
    • - -
    • -

      - - data - - - optional - - - object - -

      -
      - -A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column. - -The `data` should be a JSON object that includes user-specific info, such as their first and last name. - -
      - -
    • - -
    • -

      - - email - - - optional - - - string - -

      -
      - -The user's email. - -
      - -
    • - -
    • -

      - - email_confirm - - - optional - - - boolean - -

      -
      - -Confirms the user's email address if set to true. - -Only a service role can modify. - -
      - -
    • - -
    • -

      - - password - - - optional - - - string - -

      -
      - -The user's password. - -
      - -
    • - -
    • -

      - - phone - - - optional - - - string - -

      -
      - -The user's phone. - -
      - -
    • - -
    • -

      - - phone_confirm - - - optional - - - boolean - -

      -
      - -Confirms the user's phone number if set to true. - -Only a service role can modify. - -
      - -
    • - -
    • -

      - - user_metadata - - - optional - - - object - -

      -
      - -A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column. - -Only a service role can modify. - -The `user_metadata` should be a JSON object that includes user-specific info, such as their first and last name. - -Note: When using the GoTrueAdminApi and wanting to modify a user's metadata, -this attribute is used instead of UserAttributes data. - -
      - -
    • - -
    - -
  • - -
- -## Examples - -### Updates a user's email. - -```js -const { data: user, error } = await supabase.auth.admin.updateUserById( - '6aa5d0d4-2a9f-4483-b6c8-0cf4c6c98ac4', - { email: 'new@email.com' } -) -``` - -### Updates a user's password. - -```js -const { data: user, error } = await supabase.auth.admin.updateUserById( - '6aa5d0d4-2a9f-4483-b6c8-0cf4c6c98ac4', - { password: 'new_password' } -) -``` - -### Updates a user's metadata. - -```js -const { data: user, error } = await supabase.auth.admin.updateUserById( - '6aa5d0d4-2a9f-4483-b6c8-0cf4c6c98ac4', - { user_metadata: { hello: 'world' } } -) -``` - -### Updates a user's app_metadata. - -```js -const { data: user, error } = await supabase.auth.admin.updateUserById( - '6aa5d0d4-2a9f-4483-b6c8-0cf4c6c98ac4', - { app_metadata: { plan: 'trial' } } -) -``` - -### Confirms a user's email address. - -```js -const { data: user, error } = await supabase.auth.admin.updateUserById( - '6aa5d0d4-2a9f-4483-b6c8-0cf4c6c98ac4', - { email_confirm: true } -) -``` - -### Confirms a user's phone number. - -```js -const { data: user, error } = await supabase.auth.admin.updateUserById( - '6aa5d0d4-2a9f-4483-b6c8-0cf4c6c98ac4', - { phone_confirm: true } -) -``` diff --git a/apps/reference/_supabase_js/generated/auth-getsession.mdx b/apps/reference/_supabase_js/generated/auth-getsession.mdx deleted file mode 100644 index 5d48abae16e..00000000000 --- a/apps/reference/_supabase_js/generated/auth-getsession.mdx +++ /dev/null @@ -1,24 +0,0 @@ ---- -id: auth-getsession -title: 'getSession()' -slug: /auth-getsession -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Returns the session, refreshing it if necessary. -The session returned can be null if the session is not detected which can happen in the event a user is not signed-in or has logged out. - -```js -const { data, error } = await supabase.auth.getSession() -``` - -## Examples - -### Get the session data - -```js -const { data, error } = await supabase.auth.getSession() -``` diff --git a/apps/reference/_supabase_js/generated/auth-getuser.mdx b/apps/reference/_supabase_js/generated/auth-getuser.mdx deleted file mode 100644 index c43a4e02a74..00000000000 --- a/apps/reference/_supabase_js/generated/auth-getuser.mdx +++ /dev/null @@ -1,66 +0,0 @@ ---- -id: auth-getuser -title: 'getUser()' -slug: /auth-getuser -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Gets the current user details if there is an existing session. - -```js -const { - data: { user }, -} = await supabase.auth.getUser() -``` - -## Parameters - -
    - -
  • -

    - - jwt - - - optional - - - string - -

    -
    - -Takes in an optional access token jwt. If no jwt is provided, getUser() will attempt to get the jwt from the current session. - -
    - -
  • - -
- -## Notes - -- This method gets the user object from the current session. -- Fetches the user object from the database instead of local session. - -## Examples - -### Get the logged in user with the current existing session - -```js -const { - data: { user }, -} = await supabase.auth.getUser() -``` - -### Get the logged in user with a custom access token jwt. - -```js -const { - data: { user }, -} = await supabase.auth.getUser(jwt) -``` diff --git a/apps/reference/_supabase_js/generated/auth-onauthstatechange.mdx b/apps/reference/_supabase_js/generated/auth-onauthstatechange.mdx deleted file mode 100644 index d35e657fde6..00000000000 --- a/apps/reference/_supabase_js/generated/auth-onauthstatechange.mdx +++ /dev/null @@ -1,105 +0,0 @@ ---- -id: auth-onauthstatechange -title: 'onAuthStateChange()' -slug: /auth-onauthstatechange -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Receive a notification every time an auth event happens. - -```js -supabase.auth.onAuthStateChange((event, session) => { - console.log(event, session) -}) -``` - -## Parameters - -
    - -
  • -

    - - callback - - - required - - - object - -

    -
    - -A callback function to be invoked when an auth event happens. - -
    - -
  • - -
- -## Notes - -- Types of auth events: `SIGNED_IN`, `SIGNED_OUT`, `TOKEN_REFRESHED`, `USER_UPDATED`, `USER_DELETED`, `PASSWORD_RECOVERY` - -## Examples - -### Listen to auth changes - -```js -supabase.auth.onAuthStateChange((event, session) => { - console.log(event, session) -}) -``` - -### Listen to sign in - -```js -supabase.auth.onAuthStateChange((event, session) => { - if (event == 'SIGNED_IN') console.log('SIGNED_IN', session) -}) -``` - -### Listen to sign out - -```js -supabase.auth.onAuthStateChange((event, session) => { - if (event == 'SIGNED_OUT') console.log('SIGNED_OUT', session) -}) -``` - -### Listen to token refresh - -```js -supabase.auth.onAuthStateChange((event, session) => { - if (event == 'TOKEN_REFRESHED') console.log('TOKEN_REFRESHED', session) -}) -``` - -### Listen to user updates - -```js -supabase.auth.onAuthStateChange((event, session) => { - if (event == 'USER_UPDATED') console.log('USER_UPDATED', session) -}) -``` - -### Listen to user deleted - -```js -supabase.auth.onAuthStateChange((event, session) => { - if (event == 'USER_DELETED') console.log('USER_DELETED', session) -}) -``` - -### Listen to password recovery events - -```js -supabase.auth.onAuthStateChange((event, session) => { - if (event == 'PASSWORD_RECOVERY') console.log('PASSWORD_RECOVERY', session) -}) -``` diff --git a/apps/reference/_supabase_js/generated/auth-resetpasswordforemail.mdx b/apps/reference/_supabase_js/generated/auth-resetpasswordforemail.mdx deleted file mode 100644 index d68a4488398..00000000000 --- a/apps/reference/_supabase_js/generated/auth-resetpasswordforemail.mdx +++ /dev/null @@ -1,160 +0,0 @@ ---- -id: auth-resetpasswordforemail -title: 'resetPasswordForEmail()' -slug: /auth-resetpasswordforemail -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Sends a password reset request to an email address. - -```js -const { data, error } = await supabase.auth.resetPasswordForEmail(email, { - redirectTo: 'https://example.com/update-password', -}) -``` - -## Parameters - -
    - -
  • -

    - - email - - - required - - - string - -

    -
    - -The email address of the user. - -
    - -
  • - -
  • -

    - - options - - - required - - - object - -

    -
    - -No description provided. - -
    - -
      -
      Properties
      - -
    • -

      - - captchaToken - - - optional - - - string - -

      -
      - -Verification token received when the user completes the captcha on the site. - -
      - -
    • - -
    • -

      - - redirectTo - - - optional - - - string - -

      -
      - -The URL to send the user to after they click the password reset link. - -
      - -
    • - -
    - -
  • - -
- -## Notes - -Sends a password reset request to an email address. -When the user clicks the reset link in the email they are redirected back to your application. -Prompt the user for a new password and call `auth.updateUser()`: - -```js -const { data, error } = await supabase.auth.updateUser({ - password: new_password, -}) -``` - -## Examples - -### Reset password - -```js -const { data, error } = await supabase.auth.resetPasswordForEmail(email, { - redirectTo: 'https://example.com/update-password', -}) -``` - -### Reset password (React) - -```js -/** - * Step 1: Send the user an email to get a password reset token. - * This email contains a link which sends the user back to your application. - */ -const { data, error } = await supabase.auth.resetPasswordForEmail( - 'user@email.com' -) - -/** - * Step 2: Once the user is redirected back to your application, - * ask the user to reset their password. - */ -useEffect(() => { - supabase.auth.onAuthStateChange(async (event, session) => { - if (event == 'PASSWORD_RECOVERY') { - const newPassword = prompt('What would you like your new password to be?') - const { data, error } = await supabase.auth.updateUser({ - password: newPassword, - }) - - if (data) alert('Password updated successfully!') - if (error) alert('There was an error updating your password.') - } - }) -}, []) -``` diff --git a/apps/reference/_supabase_js/generated/auth-setsession.mdx b/apps/reference/_supabase_js/generated/auth-setsession.mdx deleted file mode 100644 index 220ded4d77a..00000000000 --- a/apps/reference/_supabase_js/generated/auth-setsession.mdx +++ /dev/null @@ -1,58 +0,0 @@ ---- -id: auth-setsession -title: 'setSession()' -slug: /auth-setsession -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Sets the session data from refresh token and returns current session or an error if the refresh token is invalid. - -```js -const { data, error } = supabase.auth.setSession(refresh_token) -``` - -## Parameters - -
    - -
  • -

    - - refresh_token - - - required - - - string - -

    -
    - -A refresh token returned by supabase auth. - -
    - -
  • - -
- -## Notes - -- `setSession()` takes in a refresh token and uses it to get a new session. -- The refresh token can only be used once to obtain a new session. -- Refresh token rotation (see [`REFRESH_TOKEN_ROTATION_ENABLED`](https://supabase.com/docs/reference/auth/config#refresh_token_rotation_enabled)) is enabled by default on all projects to guard against replay attacks. -- You can configure the [`REFRESH_TOKEN_REUSE_INTERVAL`](https://supabase.com/docs/reference/auth/config#refresh_token_reuse_interval) which provides a short window in which the same refresh token can be used multiple times in the event of concurrency or offline issues. - -## Examples - -### Refresh the session - -Sets the session data from refresh_token and returns current session or an error if the refresh_token is invalid. - -```js -const { data, error } = supabase.auth.setSession(refresh_token) -``` diff --git a/apps/reference/_supabase_js/generated/auth-signinwithoauth.mdx b/apps/reference/_supabase_js/generated/auth-signinwithoauth.mdx deleted file mode 100644 index bcdceac369c..00000000000 --- a/apps/reference/_supabase_js/generated/auth-signinwithoauth.mdx +++ /dev/null @@ -1,197 +0,0 @@ ---- -id: auth-signinwithoauth -title: 'signInWithOAuth()' -slug: /auth-signinwithoauth -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Log in an existing user via a third-party provider. - -```js -const { data, error } = await supabase.auth.signInWithOAuth({ - provider: 'github', -}) -``` - -## Parameters - -
    - -
  • -

    - - SignInWithOAuthCredentials - - - required - - - object - -

    -
    - -No description provided. - -
    - -
      -
      Properties
      - -
    • -

      - - provider - - - required - - - Provider - -

      -
      - -One of the providers supported by GoTrue. - -
      - -
    • - -
    • -

      - - options - - - optional - - - object - -

      -
      - -No description provided. - -
      - -
        -
        Properties
        - -
      • -

        - - queryParams - - - optional - - - object - -

        -
        - -An object of query params - -
        - -
      • - -
      • -

        - - redirectTo - - - optional - - - string - -

        -
        - -A URL to send the user to after they are confirmed. - -
        - -
      • - -
      • -

        - - scopes - - - optional - - - string - -

        -
        - -A space-separated list of scopes granted to the OAuth application. - -
        - -
      • - -
      - -
    • - -
    - -
  • - -
- -## Notes - -- This method is used for signing in using a third-party provider. -- Supabase supports many different [third-party providers](https://supabase.com/docs/guides/auth#providers). - -## Examples - -### Sign in using a third-party provider - -```js -const { data, error } = await supabase.auth.signInWithOAuth({ - provider: 'github', -}) -``` - -### Sign in using a third-party provider with redirect - -When the third-party provider successfully authenticates the user, the provider will redirect the user to the URL specified in the `redirectTo` parameter. This parameter defaults to the [`SITE_URL`](https://supabase.com/docs/reference/auth/config#site_url). It does not redirect the user immediately after invoking this method. -You can modify the `SITE_URL` or add additional redirect urls in [your project](https://app.supabase.com/project/_/auth/settings). - -```js -const { data, error } = await supabase.auth.signInWithOAuth({ - provider: 'github' - options: { - redirectTo: 'https://example.com/welcome' - } -} -``` - -### Sign in with scopes - -If you need additional data from an OAuth provider, you can include a space-separated list of scopes in your request to get back an OAuth provider token. -You may also need to specify the scopes in the provider's OAuth app settings, depending on the provider. The list of scopes will be documented by the third-party provider you are using and specifying scopes will enable you to use the OAuth provider token to call additional APIs supported by the third-party provider to get more information. - -```js -const { data, error } = await supabase.auth.signInWithOAuth({ - provider: 'github' - options: { - scopes: 'repo gist notifications' - } -}) -const oAuthToken = data.session.provider_token // use to access provider API -``` diff --git a/apps/reference/_supabase_js/generated/auth-signinwithotp.mdx b/apps/reference/_supabase_js/generated/auth-signinwithotp.mdx deleted file mode 100644 index bcdfeed047a..00000000000 --- a/apps/reference/_supabase_js/generated/auth-signinwithotp.mdx +++ /dev/null @@ -1,321 +0,0 @@ ---- -id: auth-signinwithotp -title: 'signInWithOtp()' -slug: /auth-signinwithotp -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Log in a user using magiclink or a one-time password (OTP). -If the `{{ .ConfirmationURL }}` variable is specified in the email template, a magiclink will be sent. -If the `{{ .Token }}` variable is specified in the email template, an OTP will be sent. -If 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. - -```js -const { data, error } = await supabase.auth.signInWithOtp({ - email: 'example@email.com', -}) -``` - -## Parameters - -
    - -
  • -

    - - SignInWithPasswordlessCredentials - - - required - - - reflection | reflection - -

    -
    - -No description provided. - -
    - -
      -
      Properties
      - -
    • -

      - - object - - - required - - - object - -

      -
      - -No description provided. - -
      - -
        -
        Properties
        - -
      • -

        - - phone - - - required - - - string - -

        -
        - -The user's phone number. - -
        - -
      • - -
      • -

        - - options - - - optional - - - object - -

        -
        - -No description provided. - -
        - -
          -
          Properties
          - -
        • -

          - - captchaToken - - - optional - - - string - -

          -
          - -Verification token received when the user completes the captcha on the site. - -
          - -
        • - -
        • -

          - - shouldCreateUser - - - optional - - - boolean - -

          -
          - -If set to false, this method will not create a new user. Defaults to true. - -
          - -
        • - -
        - -
      • - -
      - -
    • - -
    • -

      - - object - - - required - - - object - -

      -
      - -No description provided. - -
      - -
        -
        Properties
        - -
      • -

        - - email - - - required - - - string - -

        -
        - -The user's email address. - -
        - -
      • - -
      • -

        - - options - - - optional - - - object - -

        -
        - -No description provided. - -
        - -
          -
          Properties
          - -
        • -

          - - captchaToken - - - optional - - - string - -

          -
          - -Verification token received when the user completes the captcha on the site. - -
          - -
        • - -
        • -

          - - emailRedirectTo - - - optional - - - string - -

          -
          - -The redirect url embedded in the email link - -
          - -
        • - -
        • -

          - - shouldCreateUser - - - optional - - - boolean - -

          -
          - -If set to false, this method will not create a new user. Defaults to true. - -
          - -
        • - -
        - -
      • - -
      - -
    • - -
    - -
  • - -
- -## Notes - -- Requires either an email or phone number. -- This method is used for passwordless sign-ins where a OTP is sent to the user's email or phone number. -- If you're using an email, you can configure whether you want the user to receive a magiclink or a OTP. -- If you're using phone, you can configure whether you want the user to receive a OTP. -- The magic link's destination URL is determined by the [`SITE_URL`](https://supabase.com/docs/reference/auth/config#site_url). You can modify the `SITE_URL` or add additional redirect urls in [your project](https://app.supabase.com/project/_/auth/settings). - -## Examples - -### Sign in with email. - -The user will be sent an email which contains either a magiclink or a OTP or both. By default, a given user can only request a OTP once every 60 seconds. - -```js -const { data, error } = await supabase.auth.signInWithOtp({ - email: 'example@email.com', -}) -``` - -### Sign in with SMS OTP. - -The user will be sent a SMS which contains a OTP. By default, a given user can only request a OTP once every 60 seconds. - -```js -const { data, error } = await supabase.auth.signInWithOtp({ - phone: '+13334445555', -}) -``` diff --git a/apps/reference/_supabase_js/generated/auth-signinwithpassword.mdx b/apps/reference/_supabase_js/generated/auth-signinwithpassword.mdx deleted file mode 100644 index 08546b8140a..00000000000 --- a/apps/reference/_supabase_js/generated/auth-signinwithpassword.mdx +++ /dev/null @@ -1,299 +0,0 @@ ---- -id: auth-signinwithpassword -title: 'signInWithPassword()' -slug: /auth-signinwithpassword -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Log in an existing user with an email and password or phone and password. - -```js -const { data, error } = await supabase.auth.signInWithPassword({ - email: 'example@email.com', - password: 'example-password', -}) -``` - -## Parameters - -
    - -
  • -

    - - SignInWithPasswordCredentials - - - required - - - reflection | reflection - -

    -
    - -No description provided. - -
    - -
      -
      Properties
      - -
    • -

      - - object - - - required - - - object - -

      -
      - -No description provided. - -
      - -
        -
        Properties
        - -
      • -

        - - phone - - - required - - - string - -

        -
        - -The user's phone number. - -
        - -
      • - -
      • -

        - - password - - - required - - - string - -

        -
        - -The user's password. - -
        - -
      • - -
      • -

        - - options - - - optional - - - object - -

        -
        - -No description provided. - -
        - -
          -
          Properties
          - -
        • -

          - - captchaToken - - - optional - - - string - -

          -
          - -Verification token received when the user completes the captcha on the site. - -
          - -
        • - -
        - -
      • - -
      - -
    • - -
    • -

      - - object - - - required - - - object - -

      -
      - -No description provided. - -
      - -
        -
        Properties
        - -
      • -

        - - password - - - required - - - string - -

        -
        - -The user's password. - -
        - -
      • - -
      • -

        - - email - - - required - - - string - -

        -
        - -The user's email address. - -
        - -
      • - -
      • -

        - - options - - - optional - - - object - -

        -
        - -No description provided. - -
        - -
          -
          Properties
          - -
        • -

          - - captchaToken - - - optional - - - string - -

          -
          - -Verification token received when the user completes the captcha on the site. - -
          - -
        • - -
        - -
      • - -
      - -
    • - -
    - -
  • - -
- -## Notes - -- Requires either an email and password or a phone number and password. - -## Examples - -### Sign in with email and password - -```js -const { data, error } = await supabase.auth.signInWithPassword({ - email: 'example@email.com', - password: 'example-password', -}) -``` - -### Sign in with phone and password - -```js -const { data, error } = await supabase.auth.signInWithPassword({ - phone: '+13334445555', - password: 'some-password', -}) - -// After receiving a SMS with a OTP. -const { data, error } = await supabase.auth.verifyOtp({ - phone: '+13334445555', - token: '123456', -}) -``` diff --git a/apps/reference/_supabase_js/generated/auth-signout.mdx b/apps/reference/_supabase_js/generated/auth-signout.mdx deleted file mode 100644 index c8b9f3de082..00000000000 --- a/apps/reference/_supabase_js/generated/auth-signout.mdx +++ /dev/null @@ -1,31 +0,0 @@ ---- -id: auth-signout -title: 'signOut()' -slug: /auth-signout -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Inside a browser context, `signOut()` will remove the logged in user from the browser session -and log them out - removing all items from localstorage and then trigger a `"SIGNED_OUT"` event. - -For server-side management, you can revoke all refresh tokens for a user by passing a user's JWT through to `auth.api.signOut(JWT: string)`. -There is no way to revoke a user's access token jwt until it expires. It is recommended to set a shorter expiry on the jwt for this reason. - -```js -const { error } = await supabase.auth.signOut() -``` - -## Notes - -- In order to use the `signOut()` method, the user needs to be signed in first. - -## Examples - -### Sign out - -```js -const { error } = await supabase.auth.signOut() -``` diff --git a/apps/reference/_supabase_js/generated/auth-signup.mdx b/apps/reference/_supabase_js/generated/auth-signup.mdx deleted file mode 100644 index e2155d6bb28..00000000000 --- a/apps/reference/_supabase_js/generated/auth-signup.mdx +++ /dev/null @@ -1,371 +0,0 @@ ---- -id: auth-signup -title: 'signUp()' -slug: /auth-signup -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Creates a new user. - -```js -const { data, error } = await supabase.auth.signUp({ - email: 'example@email.com', - password: 'example-password', -}) -``` - -## Parameters - -
    - -
  • -

    - - SignUpWithPasswordCredentials - - - required - - - reflection | reflection - -

    -
    - -No description provided. - -
    - -
      -
      Properties
      - -
    • -

      - - object - - - required - - - object - -

      -
      - -No description provided. - -
      - -
        -
        Properties
        - -
      • -

        - - phone - - - required - - - string - -

        -
        - -The user's phone number. - -
        - -
      • - -
      • -

        - - password - - - required - - - string - -

        -
        - -The user's password. - -
        - -
      • - -
      • -

        - - options - - - optional - - - object - -

        -
        - -No description provided. - -
        - -
          -
          Properties
          - -
        • -

          - - captchaToken - - - optional - - - string - -

          -
          - -Verification token received when the user completes the captcha on the site. - -
          - -
        • - -
        • -

          - - data - - - optional - - - object - -

          -
          - -A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column. - -The `data` should be a JSON object that includes user-specific info, such as their first and last name. - -
          - -
        • - -
        - -
      • - -
      - -
    • - -
    • -

      - - object - - - required - - - object - -

      -
      - -No description provided. - -
      - -
        -
        Properties
        - -
      • -

        - - password - - - required - - - string - -

        -
        - -The user's password. - -
        - -
      • - -
      • -

        - - email - - - required - - - string - -

        -
        - -The user's email address. - -
        - -
      • - -
      • -

        - - options - - - optional - - - object - -

        -
        - -No description provided. - -
        - -
          -
          Properties
          - -
        • -

          - - captchaToken - - - optional - - - string - -

          -
          - -Verification token received when the user completes the captcha on the site. - -
          - -
        • - -
        • -

          - - data - - - optional - - - object - -

          -
          - -A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column. - -The `data` should be a JSON object that includes user-specific info, such as their first and last name. - -
          - -
        • - -
        • -

          - - emailRedirectTo - - - optional - - - string - -

          -
          - -The redirect url embedded in the email link - -
          - -
        • - -
        - -
      • - -
      - -
    • - -
    - -
  • - -
- -## Notes - -- By default, the user needs to verify their email address before logging in. To turn this off, disable **Confirm email** in [your project](https://app.supabase.com/project/_/auth/settings). -- **Confirm email** determines if users need to confirm their email address after signing up. - - If **Confirm email** is enabled, a `user` is returned but `session` is null. - - If **Confirm email** is disabled, both a `user` and a `session` are returned. -- When the user confirms their email address, they are redirected to the [`SITE_URL`](https://supabase.com/docs/reference/auth/config#site_url) by default. You can modify your `SITE_URL` or add additional redirect URLs in [your project](https://app.supabase.com/project/_/auth/settings). -- If signUp() is called for an existing confirmed user: - - If **Confirm email** is enabled in [your project](https://app.supabase.com/project/_/auth/settings), an obfuscated/fake user object is returned. - - If **Confirm email** is disabled, the error message, `User already registered` is returned. -- To fetch the currently logged-in user, refer to [`getUser()`](/docs/reference/javascript/next/auth-getuser). - -## Examples - -### Sign up. - -```js -const { data, error } = await supabase.auth.signUp({ - email: 'example@email.com', - password: 'example-password', -}) -``` - -### Sign up with additional user metadata. - -```js -const { data, error } = await supabase.auth.signUp({ - email: 'example@email.com', - password: 'example-password', - options: { - data: { - first_name: 'John', - age: 27, - }, - }, -}) -``` diff --git a/apps/reference/_supabase_js/generated/auth-updateuser.mdx b/apps/reference/_supabase_js/generated/auth-updateuser.mdx deleted file mode 100644 index 449d21f0bda..00000000000 --- a/apps/reference/_supabase_js/generated/auth-updateuser.mdx +++ /dev/null @@ -1,164 +0,0 @@ ---- -id: auth-updateuser -title: 'updateUser()' -slug: /auth-updateuser -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Updates user data, if there is a logged in user. - -```js -const { data, error } = await supabase.auth.updateUser({ - data: { hello: 'world' }, -}) -``` - -## Parameters - -
    - -
  • -

    - - UserAttributes - - - required - - - object - -

    -
    - -No description provided. - -
    - -
      -
      Properties
      - -
    • -

      - - data - - - optional - - - object - -

      -
      - -A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column. - -The `data` should be a JSON object that includes user-specific info, such as their first and last name. - -
      - -
    • - -
    • -

      - - email - - - optional - - - string - -

      -
      - -The user's email. - -
      - -
    • - -
    • -

      - - password - - - optional - - - string - -

      -
      - -The user's password. - -
      - -
    • - -
    • -

      - - phone - - - optional - - - string - -

      -
      - -The user's phone. - -
      - -
    • - -
    - -
  • - -
- -## Notes - -- In order to use the `updateUser()` method, the user needs to be signed in first. -- By Default, email updates sends a confirmation link to both the user's current and new email. - To only send a confirmation link to the user's new email, disable **Secure email change** in your project's [email auth provider settings](https://app.supabase.com/project/_/auth/settings). - -## Examples - -### Update the email for an authenticated user - -Sends a "Confirm Email Change" email to the new email address. - -```js -const { data, error } = await supabase.auth.updateUser({ - email: 'new@email.com', -}) -``` - -### Update the password for an authenticated user - -```js -const { data, error } = await supabase.auth.updateUser({ - password: 'new password', -}) -``` - -### Update the user's metadata - -```js -const { data, error } = await supabase.auth.updateUser({ - data: { hello: 'world' }, -}) -``` diff --git a/apps/reference/_supabase_js/generated/auth-verifyotp.mdx b/apps/reference/_supabase_js/generated/auth-verifyotp.mdx deleted file mode 100644 index 8fde34f03eb..00000000000 --- a/apps/reference/_supabase_js/generated/auth-verifyotp.mdx +++ /dev/null @@ -1,117 +0,0 @@ ---- -id: auth-verifyotp -title: 'verifyOtp()' -slug: /auth-verifyotp -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Log in a user given a User supplied OTP received via mobile. - -```js -const { data, error } = await supabase.auth.verifyOtp({ - phone, - token, - type: 'sms', -}) -``` - -## Parameters - -
    - -
  • -

    - - VerifyOtpParams - - - required - - - VerifyMobileOtpParams | VerifyEmailOtpParams - -

    -
    - -No description provided. - -
    - -
      -
      Properties
      - -
    • -

      - - VerifyMobileOtpParams - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - VerifyEmailOtpParams - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    - -
  • - -
- -## Notes - -- The `verifyOtp` method takes in different verification types. If a phone number is used, the type can either be `sms` or `phone_change`. If an email address is used, the type can be one of the following: `signup`, `magiclink`, `recovery`, `invite` or `email_change`. -- The verification type used should be determined based on the corresponding auth method called before `verifyOtp` to sign up / sign-in a user. - -## Examples - -### Verify Sms One-Time Password (OTP) - -```js -const { data, error } = await supabase.auth.verifyOtp({ - phone, - token, - type: 'sms', -}) -``` - -### Verify Signup One-Time Password (OTP) - -```js -const { data, error } = await supabase.auth.verifyOtp({ - email, - token, - type: 'signup', -}) -``` diff --git a/apps/reference/_supabase_js/generated/containedby.mdx b/apps/reference/_supabase_js/generated/containedby.mdx deleted file mode 100644 index b9b7646c7e6..00000000000 --- a/apps/reference/_supabase_js/generated/containedby.mdx +++ /dev/null @@ -1,179 +0,0 @@ ---- -id: containedby -title: 'containedBy()' -slug: /containedby -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Only relevant for jsonb, array, and range columns. Match only rows where -every element appearing in `column` is contained by `value`. - -```js -const { data, error } = await supabase - .from('countries') - .select('name, id, main_exports') - .containedBy('main_exports', ['cars', 'food', 'machine']) -``` - -## Parameters - -
    - -
  • -

    - - column - - - required - - - ColumnName - -

    -
    - -The jsonb, array, or range column to filter on - -
    - -
  • - -
  • -

    - - value - - - required - - - string | Record | array - -

    -
    - -The jsonb, array, or range value to filter with - -
    - -
      -
      Properties
      - -
    • -

      - - object - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - string - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - Record - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    - -
  • - -
- -## Notes - -- `.containedBy()` can work on array columns or range columns. - - ```js - .containedBy('arraycol',["a","b"]) // You can use a javascript array for an array column - .containedBy('arraycol','{"a","b"}') // You can use a string with Postgres array {} for array column. - .containedBy('rangecol','(1,2]') // Use Postgres range syntax for range column. - .containedBy('rangecol',`(${arr}]`) // You can insert an array into a string. - ``` - -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('countries') - .select('name, id, main_exports') - .containedBy('main_exports', ['cars', 'food', 'machine']) -``` - -### With `update()` - -```js -const { data, error } = await supabase - .from('countries') - .update({ name: 'Mordor' }) - .containedBy('main_exports', ['orks', 'surveillance', 'evil']) -``` - -### With `delete()` - -```js -const { data, error } = await supabase - .from('countries') - .delete() - .containedBy('main_exports', ['cars', 'food', 'machine']) -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase - .rpc('echo_all_countries') - .containedBy('main_exports', ['cars', 'food', 'machine']) -``` diff --git a/apps/reference/_supabase_js/generated/contains.mdx b/apps/reference/_supabase_js/generated/contains.mdx deleted file mode 100644 index 9251b9d4e1e..00000000000 --- a/apps/reference/_supabase_js/generated/contains.mdx +++ /dev/null @@ -1,180 +0,0 @@ ---- -id: contains -title: 'contains()' -slug: /contains -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Only relevant for jsonb, array, and range columns. Match only rows where -`column` contains every element appearing in `value`. - -```js -const { data, error } = await supabase - .from('countries') - .select('name, id, main_exports') - .contains('main_exports', ['oil']) -``` - -## Parameters - -
    - -
  • -

    - - column - - - required - - - ColumnName - -

    -
    - -The jsonb, array, or range column to filter on - -
    - -
  • - -
  • -

    - - value - - - required - - - string | Record | array - -

    -
    - -The jsonb, array, or range value to filter with - -
    - -
      -
      Properties
      - -
    • -

      - - object - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - string - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - Record - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    - -
  • - -
- -## Notes - -- `.contains()` can work on array columns or range columns. - It is very useful for finding rows where a tag array contains all the values in the filter array. - - ```js - .contains('arraycol',["a","b"]) // You can use a javascript array for an array column - .contains('arraycol','{"a","b"}') // You can use a string with Postgres array {} for array column. - .contains('rangecol','(1,2]') // Use Postgres range syntax for range column. - .contains('rangecol',`(${arr}]`) // You can insert an array into a string. - ``` - -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('countries') - .select('name, id, main_exports') - .contains('main_exports', ['oil']) -``` - -### With `update()` - -```js -const { data, error } = await supabase - .from('countries') - .update({ name: 'Mordor' }) - .contains('main_exports', ['oil']) -``` - -### With `delete()` - -```js -const { data, error } = await supabase - .from('countries') - .delete() - .contains('main_exports', ['oil']) -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase - .rpc('echo_all_countries') - .contains('main_exports', ['oil']) -``` diff --git a/apps/reference/_supabase_js/generated/db-abortsignal.mdx b/apps/reference/_supabase_js/generated/db-abortsignal.mdx deleted file mode 100644 index 68c5a6beda0..00000000000 --- a/apps/reference/_supabase_js/generated/db-abortsignal.mdx +++ /dev/null @@ -1,37 +0,0 @@ ---- -id: db-abortsignal -title: 'abortSignal()' -slug: /db-abortsignal -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Set the AbortSignal for the fetch request. - -## Parameters - -
    - -
  • -

    - - signal - - - required - - - AbortSignal - -

    -
    - -The AbortSignal to use for the fetch request - -
    - -
  • - -
diff --git a/apps/reference/_supabase_js/generated/db-csv.mdx b/apps/reference/_supabase_js/generated/db-csv.mdx deleted file mode 100644 index 088f37c669a..00000000000 --- a/apps/reference/_supabase_js/generated/db-csv.mdx +++ /dev/null @@ -1,11 +0,0 @@ ---- -id: db-csv -title: 'csv()' -slug: /db-csv -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Return `data` as a string in CSV format. diff --git a/apps/reference/_supabase_js/generated/db-explain.mdx b/apps/reference/_supabase_js/generated/db-explain.mdx deleted file mode 100644 index fb748b95f28..00000000000 --- a/apps/reference/_supabase_js/generated/db-explain.mdx +++ /dev/null @@ -1,211 +0,0 @@ ---- -id: db-explain -title: 'explain()' -slug: /db-explain -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Return `data` as the EXPLAIN plan for the query. - -## Parameters - -
    - -
  • -

    - - options - - - required - - - object - -

    -
    - -Named parameters - -
    - -
      -
      Properties
      - -
    • -

      - - analyze - - - optional - - - boolean - -

      -
      - -If `true`, the query will be executed and the -actual run time will be returned - -
      - -
    • - -
    • -

      - - buffers - - - optional - - - boolean - -

      -
      - -If `true`, include information on buffer usage - -
      - -
    • - -
    • -

      - - format - - - optional - - - text | json - -

      -
      - -The format of the output, can be `"text"` (default) -or `"json"` - -
      - -
        -
        Properties
        - -
      • -

        - - json - - - required - - - literal - -

        -
        - -No description provided. - -
        - -
      • - -
      • -

        - - text - - - required - - - literal - -

        -
        - -No description provided. - -
        - -
      • - -
      - -
    • - -
    • -

      - - settings - - - optional - - - boolean - -

      -
      - -If `true`, include information on configuration -parameters that affect query planning - -
      - -
    • - -
    • -

      - - verbose - - - optional - - - boolean - -

      -
      - -If `true`, the query identifier will be returned -and `data` will include the output columns of the query - -
      - -
    • - -
    • -

      - - wal - - - optional - - - boolean - -

      -
      - -If `true`, include information on WAL record generation - -
      - -
    • - -
    - -
  • - -
diff --git a/apps/reference/_supabase_js/generated/db-geojson.mdx b/apps/reference/_supabase_js/generated/db-geojson.mdx deleted file mode 100644 index d5b2268d728..00000000000 --- a/apps/reference/_supabase_js/generated/db-geojson.mdx +++ /dev/null @@ -1,11 +0,0 @@ ---- -id: db-geojson -title: 'geojson()' -slug: /db-geojson -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Return `data` as an object in [GeoJSON](https://geojson.org) format. diff --git a/apps/reference/_supabase_js/generated/db-modifiers-select.mdx b/apps/reference/_supabase_js/generated/db-modifiers-select.mdx deleted file mode 100644 index f8f1b003436..00000000000 --- a/apps/reference/_supabase_js/generated/db-modifiers-select.mdx +++ /dev/null @@ -1,41 +0,0 @@ ---- -id: db-modifiers-select -title: 'select()' -slug: /db-modifiers-select -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Perform a SELECT on the query result. - -By default, `.insert()`, `.update()`, `.upsert()`, and `.delete()` do not -return modified rows. By calling this method, modified rows are returned in -`data`. - -## Parameters - -
    - -
  • -

    - - columns - - - optional - - - Query - -

    -
    - -The columns to retrieve, separated by commas - -
    - -
  • - -
diff --git a/apps/reference/_supabase_js/generated/db-rollback.mdx b/apps/reference/_supabase_js/generated/db-rollback.mdx deleted file mode 100644 index 165dc25110f..00000000000 --- a/apps/reference/_supabase_js/generated/db-rollback.mdx +++ /dev/null @@ -1,13 +0,0 @@ ---- -id: db-rollback -title: 'rollback()' -slug: /db-rollback -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Rollback the query. - -`data` will still be returned, but the query is not committed. diff --git a/apps/reference/_supabase_js/generated/delete.mdx b/apps/reference/_supabase_js/generated/delete.mdx deleted file mode 100644 index eb20f02a558..00000000000 --- a/apps/reference/_supabase_js/generated/delete.mdx +++ /dev/null @@ -1,166 +0,0 @@ ---- -id: delete -title: 'Delete data: delete()' -slug: /delete -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Perform a DELETE on the table or view. - -By default, deleted rows are not returned. To return it, chain the call -with `.select()` after filters. - -```js -const { data, error } = await supabase - .from('cities') - .delete() - .match({ id: 666 }) -``` - -## Parameters - -
    - -
  • -

    - - options - - - required - - - object - -

    -
    - -Named parameters - -
    - -
      -
      Properties
      - -
    • -

      - - count - - - optional - - - exact | planned | estimated - -

      -
      - -Count algorithm to use to count deleted rows. - -`"exact"`: Exact but slow count algorithm. Performs a `COUNT(*)` under the -hood. - -`"planned"`: Approximated but fast count algorithm. Uses the Postgres -statistics under the hood. - -`"estimated"`: Uses exact count for low numbers and planned count for high -numbers. - -
      - -
        -
        Properties
        - -
      • -

        - - estimated - - - required - - - literal - -

        -
        - -No description provided. - -
        - -
      • - -
      • -

        - - planned - - - required - - - literal - -

        -
        - -No description provided. - -
        - -
      • - -
      • -

        - - exact - - - required - - - literal - -

        -
        - -No description provided. - -
        - -
      • - -
      - -
    • - -
    - -
  • - -
- -## Notes - -- `delete()` should always be combined with [filters](/docs/reference/javascript/using-filters) to target the item(s) you wish to delete. -- If you use `delete()` with filters and you have - [RLS](/docs/learn/auth-deep-dive/auth-row-level-security) enabled, only - rows visible through `SELECT` policies are deleted. Note that by default - no rows are visible, so you need at least one `SELECT`/`ALL` policy that - makes the rows visible. - -## Examples - -### Delete records - -```js -const { data, error } = await supabase - .from('cities') - .delete() - .match({ id: 666 }) -``` diff --git a/apps/reference/_supabase_js/generated/eq.mdx b/apps/reference/_supabase_js/generated/eq.mdx deleted file mode 100644 index 960d203882c..00000000000 --- a/apps/reference/_supabase_js/generated/eq.mdx +++ /dev/null @@ -1,104 +0,0 @@ ---- -id: eq -title: 'eq()' -slug: /eq -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Match only rows where `column` is equal to `value`. - -To check if the value of `column` is NULL, you should use `.is()` instead. - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .eq('name', 'The shire') -``` - -## Parameters - -
    - -
  • -

    - - column - - - required - - - ColumnName - -

    -
    - -The column to filter on - -
    - -
  • - -
  • -

    - - value - - - required - - - object - -

    -
    - -The value to filter with - -
    - -
  • - -
- -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .eq('name', 'The shire') -``` - -### With `update()` - -```js -const { data, error } = await supabase - .from('cities') - .update({ name: 'Mordor' }) - .eq('name', 'San Francisco') -``` - -### With `delete()` - -```js -const { data, error } = await supabase - .from('cities') - .delete() - .eq('name', 'Mordor') -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase - .rpc('echo_all_cities') - .eq('name', 'San Francisco') -``` diff --git a/apps/reference/_supabase_js/generated/filter.mdx b/apps/reference/_supabase_js/generated/filter.mdx deleted file mode 100644 index 7b781898277..00000000000 --- a/apps/reference/_supabase_js/generated/filter.mdx +++ /dev/null @@ -1,612 +0,0 @@ ---- -id: filter -title: 'filter()' -slug: /filter -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Match only rows which satisfy the filter. This is an escape hatch - you -should use the specific filter methods wherever possible. - -Unlike most filters, `opearator` and `value` are used as-is and need to -follow [PostgREST -syntax](https://postgrest.org/en/stable/api.html#operators). You also need -to make sure they are properly sanitized. - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .filter('name', 'in', '("Paris","Tokyo")') -``` - -## Parameters - -
    - -
  • -

    - - column - - - required - - - ColumnName - -

    -
    - -The column to filter on - -
    - -
  • - -
  • -

    - - operator - - - required - - - FilterOperator | not.eq | not.neq | not.gt | not.gte | not.lt | not.lte | not.like | not.ilike | not.is | not.in | not.cs | not.cd | not.sl | not.sr | not.nxl | not.nxr | not.adj | not.ov | not.fts | not.plfts | not.phfts | not.wfts - -

    -
    - -The operator to filter with, following PostgREST syntax - -
    - -
      -
      Properties
      - -
    • -

      - - not.wfts - - - required - - - literal - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - not.phfts - - - required - - - literal - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - not.plfts - - - required - - - literal - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - not.fts - - - required - - - literal - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - not.ov - - - required - - - literal - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - not.adj - - - required - - - literal - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - not.nxr - - - required - - - literal - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - not.nxl - - - required - - - literal - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - not.sr - - - required - - - literal - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - not.sl - - - required - - - literal - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - not.cd - - - required - - - literal - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - not.cs - - - required - - - literal - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - not.in - - - required - - - literal - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - not.is - - - required - - - literal - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - not.ilike - - - required - - - literal - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - not.like - - - required - - - literal - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - not.lte - - - required - - - literal - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - not.lt - - - required - - - literal - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - not.gte - - - required - - - literal - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - not.gt - - - required - - - literal - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - not.neq - - - required - - - literal - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - not.eq - - - required - - - literal - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - FilterOperator - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    - -
  • - -
  • -

    - - value - - - required - - - unknown - -

    -
    - -The value to filter with, following PostgREST syntax - -
    - -
  • - -
- -## Notes - -- `.filter()` expects you to use the raw [PostgREST syntax](https://postgrest.org/en/stable/api.html#horizontal-filtering-rows) for the filter names and values, so it should only be used as an escape hatch in case other filters don't work. - ```js - .filter('arraycol','cs','{"a","b"}') // Use Postgres array {} for array column and 'cs' for contains. - .filter('rangecol','cs','(1,2]') // Use Postgres range syntax for range column. - .filter('id','in','(6,7)') // Use Postgres list () for in filter. - .filter('id','in',`(${arr})`) // You can insert a javascript array. - ``` - -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .filter('name', 'in', '("Paris","Tokyo")') -``` - -### With `update()` - -```js -const { data, error } = await supabase - .from('cities') - .update({ name: 'Mordor' }) - .filter('name', 'in', '("Paris","Tokyo")') -``` - -### With `delete()` - -```js -const { data, error } = await supabase - .from('cities') - .delete() - .filter('name', 'in', '("Paris","Tokyo")') -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase - .rpc('echo_all_cities') - .filter('name', 'in', '("Paris","Tokyo")') -``` - -### Filter embedded resources - -```js -const { data, error } = await supabase - .from('cities') - .select('name, countries ( name )') - .filter('countries.name', 'in', '("France","Japan")') -``` diff --git a/apps/reference/_supabase_js/generated/getchannels.mdx b/apps/reference/_supabase_js/generated/getchannels.mdx deleted file mode 100644 index 8297655b33e..00000000000 --- a/apps/reference/_supabase_js/generated/getchannels.mdx +++ /dev/null @@ -1,23 +0,0 @@ ---- -id: getchannels -title: 'getChannels()' -slug: /getchannels -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Returns all Realtime channels. - -```js -const channels = supabase.getChannels() -``` - -## Examples - -### Get all channels - -```js -const channels = supabase.getChannels() -``` diff --git a/apps/reference/_supabase_js/generated/gt.mdx b/apps/reference/_supabase_js/generated/gt.mdx deleted file mode 100644 index 86a5640de96..00000000000 --- a/apps/reference/_supabase_js/generated/gt.mdx +++ /dev/null @@ -1,102 +0,0 @@ ---- -id: gt -title: 'gt()' -slug: /gt -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Match only rows where `column` is greater than `value`. - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .gt('country_id', 250) -``` - -## Parameters - -
    - -
  • -

    - - column - - - required - - - ColumnName - -

    -
    - -The column to filter on - -
    - -
  • - -
  • -

    - - value - - - required - - - object - -

    -
    - -The value to filter with - -
    - -
  • - -
- -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .gt('country_id', 250) -``` - -### With `update()` - -```js -const { data, error } = await supabase - .from('cities') - .update({ name: 'Mordor' }) - .gt('country_id', 250) -``` - -### With `delete()` - -```js -const { data, error } = await supabase - .from('cities') - .delete() - .gt('country_id', 250) -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase - .rpc('echo_all_cities') - .gt('country_id', 250) -``` diff --git a/apps/reference/_supabase_js/generated/gte.mdx b/apps/reference/_supabase_js/generated/gte.mdx deleted file mode 100644 index cb4d0488e36..00000000000 --- a/apps/reference/_supabase_js/generated/gte.mdx +++ /dev/null @@ -1,102 +0,0 @@ ---- -id: gte -title: 'gte()' -slug: /gte -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Match only rows where `column` is greater than or equal to `value`. - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .gte('country_id', 250) -``` - -## Parameters - -
    - -
  • -

    - - column - - - required - - - ColumnName - -

    -
    - -The column to filter on - -
    - -
  • - -
  • -

    - - value - - - required - - - object - -

    -
    - -The value to filter with - -
    - -
  • - -
- -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .gte('country_id', 250) -``` - -### With `update()` - -```js -const { data, error } = await supabase - .from('cities') - .update({ name: 'Mordor' }) - .gte('country_id', 250) -``` - -### With `delete()` - -```js -const { data, error } = await supabase - .from('cities') - .delete() - .gte('country_id', 250) -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase - .rpc('echo_all_cities') - .gte('country_id', 250) -``` diff --git a/apps/reference/_supabase_js/generated/ilike.mdx b/apps/reference/_supabase_js/generated/ilike.mdx deleted file mode 100644 index ea6cf4de817..00000000000 --- a/apps/reference/_supabase_js/generated/ilike.mdx +++ /dev/null @@ -1,102 +0,0 @@ ---- -id: ilike -title: 'ilike()' -slug: /ilike -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Match only rows where `column` matches `pattern` case-insensitively. - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .ilike('name', '%la%') -``` - -## Parameters - -
    - -
  • -

    - - column - - - required - - - ColumnName - -

    -
    - -The column to filter on - -
    - -
  • - -
  • -

    - - pattern - - - required - - - string - -

    -
    - -The pattern to match with - -
    - -
  • - -
- -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .ilike('name', '%la%') -``` - -### With `update()` - -```js -const { data, error } = await supabase - .from('cities') - .update({ name: 'Mordor' }) - .ilike('name', '%la%') -``` - -### With `delete()` - -```js -const { data, error } = await supabase - .from('cities') - .delete() - .ilike('name', '%la%') -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase - .rpc('echo_all_cities') - .ilike('name', '%la%') -``` diff --git a/apps/reference/_supabase_js/generated/in.mdx b/apps/reference/_supabase_js/generated/in.mdx deleted file mode 100644 index 8eddb153846..00000000000 --- a/apps/reference/_supabase_js/generated/in.mdx +++ /dev/null @@ -1,102 +0,0 @@ ---- -id: in -title: 'in()' -slug: /in -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Match only rows where `column` is included in the `values` array. - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .in('name', ['Rio de Janeiro', 'San Francisco']) -``` - -## Parameters - -
    - -
  • -

    - - column - - - required - - - ColumnName - -

    -
    - -The column to filter on - -
    - -
  • - -
  • -

    - - values - - - required - - - object - -

    -
    - -The values array to filter with - -
    - -
  • - -
- -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .in('name', ['Rio de Janeiro', 'San Francisco']) -``` - -### With `update()` - -```js -const { data, error } = await supabase - .from('cities') - .update({ name: 'Mordor' }) - .in('name', ['Rio de Janeiro', 'San Francisco']) -``` - -### With `delete()` - -```js -const { data, error } = await supabase - .from('cities') - .delete() - .in('name', ['Rio de Janeiro', 'San Francisco']) -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase - .rpc('echo_all_cities') - .in('name', ['Rio de Janeiro', 'San Francisco']) -``` diff --git a/apps/reference/_supabase_js/generated/index.mdx b/apps/reference/_supabase_js/generated/index.mdx deleted file mode 100644 index c2e0ae69ed0..00000000000 --- a/apps/reference/_supabase_js/generated/index.mdx +++ /dev/null @@ -1,11 +0,0 @@ ---- -id: index -title: 'Supabase Client' -slug: /supabase-client -custom_edit_url: ../supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Supabase JavaScript. diff --git a/apps/reference/_supabase_js/generated/initializing.mdx b/apps/reference/_supabase_js/generated/initializing.mdx deleted file mode 100644 index 0f86781c565..00000000000 --- a/apps/reference/_supabase_js/generated/initializing.mdx +++ /dev/null @@ -1,437 +0,0 @@ ---- -id: initializing -title: 'Initializing' -slug: /initializing -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -You can initialize a new Supabase client using the `createClient()` method. - -The Supabase client is your entrypoint to the rest of the Supabase functionality -and is the easiest way to interact with everything we offer within the Supabase ecosystem. - -## Parameters - -
    - -
  • -

    - - supabaseUrl - - - required - - - string - -

    -
    - -The unique Supabase URL which is supplied when you create a new project in your project dashboard. - -
    - -
  • - -
  • -

    - - supabaseKey - - - required - - - string - -

    -
    - -The unique Supabase Key which is supplied when you create a new project in your project dashboard. - -
    - -
  • - -
  • -

    - - SupabaseClientOptions - - - required - - - object - -

    -
    - -No description provided. - -
    - -
      -
      Properties
      - -
    • -

      - - auth - - - optional - - - object - -

      -
      - -No description provided. - -
      - -
        -
        Properties
        - -
      • -

        - - autoRefreshToken - - - optional - - - boolean - -

        -
        - -Automatically refreshes the token for logged in users. - -
        - -
      • - -
      • -

        - - cookieOptions - - - optional - - - object - -

        -
        - -Options passed to the gotrue-js instance - -
        - -
      • - -
      • -

        - - detectSessionInUrl - - - optional - - - boolean - -

        -
        - -Detect a session from the URL. Used for OAuth login callbacks. - -
        - -
      • - -
      • -

        - - persistSession - - - optional - - - boolean - -

        -
        - -Whether to persist a logged in session to storage. - -
        - -
      • - -
      • -

        - - storage - - - optional - - - object - -

        -
        - -A storage provider. Used to store the logged in session. - -
        - -
      • - -
      • -

        - - storageKey - - - optional - - - string - -

        -
        - -Optional key name used for storing tokens in local storage - -
        - -
      • - -
      - -
    • - -
    • -

      - - db - - - optional - - - object - -

      -
      - -The Postgres schema which your tables belong to. Must be on the list of exposed schemas in Supabase. Defaults to 'public'. - -
      - -
        -
        Properties
        - -
      • -

        - - schema - - - optional - - - SchemaName - -

        -
        - -No description provided. - -
        - -
      • - -
      - -
    • - -
    • -

      - - global - - - optional - - - object - -

      -
      - -No description provided. - -
      - -
        -
        Properties
        - -
      • -

        - - fetch - - - optional - - - Fetch - -

        -
        - -A custom `fetch` implementation. - -
        - -
      • - -
      • -

        - - headers - - - optional - - - Record - -

        -
        - -Optional headers for initializing the client. - -
        - -
      • - -
      - -
    • - -
    • -

      - - realtime - - - optional - - - RealtimeClientOptions - -

      -
      - -Options passed to the realtime-js instance - -
      - -
    • - -
    - -
  • - -
- -## Examples - -### createClient() - -```js -import { createClient } from '@supabase/supabase-js' - -// Create a single supabase client for interacting with your database -const supabase = createClient( - 'https://xyzcompany.supabase.co', - 'public-anon-key' -) -``` - -### With additional parameters - -```js -import { createClient } from '@supabase/supabase-js' - -const options = { - db: { - schema: 'public', - }, - auth: { - autoRefreshToken: true, - persistSession: true, - detectSessionInUrl: true, - }, - global: { - headers: { 'x-my-custom-header': 'my-app-name' }, - }, -} -const supabase = createClient( - 'https://xyzcompany.supabase.co', - 'public-anon-key', - options -) -``` - -### API schemas - -```js -import { createClient } from '@supabase/supabase-js' - -// Provide a custom schema. Defaults to "public". -const supabase = createClient( - 'https://xyzcompany.supabase.co', - 'public-anon-key', - { - db: { schema: 'other_schema' }, - } -) -``` - -By default the API server points to the `public` schema. You can enable other database schemas within the Dashboard. -Go to `Settings > API > Schema` and add the schema which you want to expose to the API. - -Note: each client connection can only access a single schema, so the code above can access the `other_schema` schema but cannot access the `public` schema. - -### Custom `fetch` implementation - -```js -import { createClient } from '@supabase/supabase-js' - -const supabase = createClient( - 'https://xyzcompany.supabase.co', - 'public-anon-key', - { - global: { fetch: fetch.bind(globalThis) }, - } -) -``` - -`supabase-js` uses the [`cross-fetch`](https://www.npmjs.com/package/cross-fetch) library to make HTTP requests, -but an alternative `fetch` implementation can be provided as an option. -This is most useful in environments where `cross-fetch` is not compatible (for instance Cloudflare Workers). diff --git a/apps/reference/_supabase_js/generated/insert.mdx b/apps/reference/_supabase_js/generated/insert.mdx deleted file mode 100644 index 3672b1fc3ba..00000000000 --- a/apps/reference/_supabase_js/generated/insert.mdx +++ /dev/null @@ -1,242 +0,0 @@ ---- -id: insert -title: 'Create data: insert()' -slug: /insert -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Perform an INSERT into the table or view. - -By default, inserted rows are not returned. To return it, chain the call -with `.select()`. - -```js -const { data, error } = await supabase - .from('cities') - .insert([{ name: 'The Shire', country_id: 554 }]) -``` - -## Parameters - -
    - -
  • -

    - - values - - - required - - - Row | array - -

    -
    - -The values to insert. Pass an object to insert a single row -or an array to insert multiple rows. - -
    - -
      -
      Properties
      - -
    • -

      - - object - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - Row - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    - -
  • - -
  • -

    - - options - - - required - - - object - -

    -
    - -Named parameters - -
    - -
      -
      Properties
      - -
    • -

      - - count - - - optional - - - exact | planned | estimated - -

      -
      - -Count algorithm to use to count inserted rows. - -`"exact"`: Exact but slow count algorithm. Performs a `COUNT(*)` under the -hood. - -`"planned"`: Approximated but fast count algorithm. Uses the Postgres -statistics under the hood. - -`"estimated"`: Uses exact count for low numbers and planned count for high -numbers. - -
      - -
        -
        Properties
        - -
      • -

        - - estimated - - - required - - - literal - -

        -
        - -No description provided. - -
        - -
      • - -
      • -

        - - planned - - - required - - - literal - -

        -
        - -No description provided. - -
        - -
      • - -
      • -

        - - exact - - - required - - - literal - -

        -
        - -No description provided. - -
        - -
      • - -
      - -
    • - -
    - -
  • - -
- -## Examples - -### Create a record - -```js -const { data, error } = await supabase - .from('cities') - .insert([{ name: 'The Shire', country_id: 554 }]) -``` - -### Create a record and return it - -```js -const { data, error } = await supabase - .from('cities') - .insert([{ name: 'The Shire', country_id: 554 }]) - .select() -``` - -### Bulk create - -When running a bulk create, the operation is handled in a single transaction. If any of the inserts fail, all other operations are -rolled back. - -```js -const { data, error } = await supabase.from('cities').insert([ - { name: 'The Shire', country_id: 554 }, - { name: 'Rohan', country_id: 555 }, -]) -``` diff --git a/apps/reference/_supabase_js/generated/invoke.mdx b/apps/reference/_supabase_js/generated/invoke.mdx deleted file mode 100644 index 88339ab0d1a..00000000000 --- a/apps/reference/_supabase_js/generated/invoke.mdx +++ /dev/null @@ -1,312 +0,0 @@ ---- -id: invoke -title: 'invoke()' -slug: /invoke -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Invoke a Supabase Function. - -```js -const { data: user, error } = await supabase.functions.invoke('hello', { - body: { foo: 'bar' }, -}) -``` - -## Parameters - -
    - -
  • -

    - - functionName - - - required - - - string - -

    -
    - -the name of the function to invoke - -
    - -
  • - -
  • -

    - - FunctionInvokeOptions - - - required - - - object - -

    -
    - -No description provided. - -
    - -
      -
      Properties
      - -
    • -

      - - body - - - optional - - - File | Blob | ArrayBuffer | FormData | ReadableStream | Record | string - -

      -
      - -the body of the request - -
      - -
        -
        Properties
        - -
      • -

        - - string - - - required - - - object - -

        -
        - -No description provided. - -
        - -
      • - -
      • -

        - - Record - - - required - - - object - -

        -
        - -No description provided. - -
        - -
      • - -
      • -

        - - ReadableStream - - - required - - - object - -

        -
        - -No description provided. - -
        - -
      • - -
      • -

        - - FormData - - - required - - - object - -

        -
        - -No description provided. - -
        - -
      • - -
      • -

        - - File - - - required - - - object - -

        -
        - -No description provided. - -
        - -
      • - -
      • -

        - - Blob - - - required - - - object - -

        -
        - -No description provided. - -
        - -
      • - -
      • -

        - - ArrayBuffer - - - required - - - object - -

        -
        - -No description provided. - -
        - -
      • - -
      - -
    • - -
    • -

      - - headers - - - optional - - - object - -

      -
      - -object representing the headers to send with the request - -
      - -
    • - -
    - -
  • - -
- -## Notes - -- Requires an Authorization header. -- Invoke params generally match the [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) spec. -- When you pass in a body to your function, we automatically attach the Content-Type header for `Blob`, `ArrayBuffer`, `File`, `FormData` and `String`. If it doesn't match any of these types we assume the payload is `json`, serialise it and attach the `Content-Type` header as `application/json`. You can override this behaviour by passing in a `Content-Type` header of your own. -- Responses are automatically parsed as `json`, `blob` and `form-data` depending on the `Content-Type` header sent by your function. Responses are parsed as `text` by default. - -## Examples - -### Basic invocation. - -null - -```js -const { data: user, error } = await supabase.functions.invoke('hello', { - body: { foo: 'bar' }, -}) -``` - -### Error handling. - -A `FunctionsHttpError` error is returned if your function throws an error, `FunctionsRelayError` if the Supabase Relay has an error processing your function and `FunctionsFetchError` if there is a network error in calling your function. - -```js -import { - FunctionsHttpError, - FunctionsRelayError, - FunctionsFetchError, -} from '@supabase/supabase-js' - -const { data: user, error } = await supabase.functions.invoke('hello', { - headers: { - 'my-custom-header': 'my-custom-header-value', - }, - body: { foo: 'bar' }, -}) - -if (error instanceof FunctionsHttpError) { - console.log('Function returned an error', error.message) -} else if (error instanceof FunctionsRelayError) { - console.log('Relay error:', error.message) -} else if (error instanceof FunctionsFetchError) { - console.log('Fetch error:', error.message) -} -``` - -### Passing custom headers. - -You can pass custom headers to your function. Note: supabase-js automatically passes the `Authorization` header with the signed in user's JWT. - -```js -const { data: user, error } = await supabase.functions.invoke('hello', { - headers: { - 'my-custom-header': 'my-custom-header-value', - }, - body: { foo: 'bar' }, -}) -``` diff --git a/apps/reference/_supabase_js/generated/is.mdx b/apps/reference/_supabase_js/generated/is.mdx deleted file mode 100644 index a1323e7565d..00000000000 --- a/apps/reference/_supabase_js/generated/is.mdx +++ /dev/null @@ -1,103 +0,0 @@ ---- -id: is -title: 'is()' -slug: /is -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Match only rows where `column` IS `value`. - -For non-boolean columns, this is only relevant for checking if the value of -`column` is NULL by setting `value` to `null`. - -For boolean columns, you can also set `value` to `true` or `false` and it -will behave the same way as `.eq()`. - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .is('name', null) -``` - -## Parameters - -
    - -
  • -

    - - column - - - required - - - ColumnName - -

    -
    - -The column to filter on - -
    - -
  • - -
  • -

    - - value - - - required - - - object - -

    -
    - -The value to filter with - -
    - -
  • - -
- -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .is('name', null) -``` - -### With `update()` - -```js -const { data, error } = await supabase - .from('cities') - .update({ name: 'Mordor' }) - .is('name', null) -``` - -### With `delete()` - -```js -const { data, error } = await supabase.from('cities').delete().is('name', null) -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase.rpc('echo_all_cities').is('name', null) -``` diff --git a/apps/reference/_supabase_js/generated/like.mdx b/apps/reference/_supabase_js/generated/like.mdx deleted file mode 100644 index 4fd8987a65a..00000000000 --- a/apps/reference/_supabase_js/generated/like.mdx +++ /dev/null @@ -1,102 +0,0 @@ ---- -id: like -title: 'like()' -slug: /like -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Match only rows where `column` matches `pattern` case-sensitively. - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .like('name', '%la%') -``` - -## Parameters - -
    - -
  • -

    - - column - - - required - - - ColumnName - -

    -
    - -The column to filter on - -
    - -
  • - -
  • -

    - - pattern - - - required - - - string - -

    -
    - -The pattern to match with - -
    - -
  • - -
- -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .like('name', '%la%') -``` - -### With `update()` - -```js -const { data, error } = await supabase - .from('cities') - .update({ name: 'Mordor' }) - .like('name', '%la%') -``` - -### With `delete()` - -```js -const { data, error } = await supabase - .from('cities') - .delete() - .like('name', '%la%') -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase - .rpc('echo_all_cities') - .like('name', '%la%') -``` diff --git a/apps/reference/_supabase_js/generated/limit.mdx b/apps/reference/_supabase_js/generated/limit.mdx deleted file mode 100644 index 8c19798a775..00000000000 --- a/apps/reference/_supabase_js/generated/limit.mdx +++ /dev/null @@ -1,111 +0,0 @@ ---- -id: limit -title: 'limit()' -slug: /limit -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Limit the query result by `count`. - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .limit(1) -``` - -## Parameters - -
    - -
  • -

    - - count - - - required - - - number - -

    -
    - -The maximum number of rows to return - -
    - -
  • - -
  • -

    - - options - - - required - - - object - -

    -
    - -Named parameters - -
    - -
      -
      Properties
      - -
    • -

      - - foreignTable - - - optional - - - string - -

      -
      - -Set this to limit rows of foreign tables -instead of the current table - -
      - -
    • - -
    - -
  • - -
- -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .limit(1) -``` - -### With embedded resources - -```js -const { data, error } = await supabase - .from('countries') - .select('name, cities(name)') - .eq('name', 'United States') - .limit(1, { foreignTable: 'cities' }) -``` diff --git a/apps/reference/_supabase_js/generated/lt.mdx b/apps/reference/_supabase_js/generated/lt.mdx deleted file mode 100644 index b3a79165666..00000000000 --- a/apps/reference/_supabase_js/generated/lt.mdx +++ /dev/null @@ -1,102 +0,0 @@ ---- -id: lt -title: 'lt()' -slug: /lt -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Match only rows where `column` is less than `value`. - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .lt('country_id', 250) -``` - -## Parameters - -
    - -
  • -

    - - column - - - required - - - ColumnName - -

    -
    - -The column to filter on - -
    - -
  • - -
  • -

    - - value - - - required - - - object - -

    -
    - -The value to filter with - -
    - -
  • - -
- -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .lt('country_id', 250) -``` - -### With `update()` - -```js -const { data, error } = await supabase - .from('cities') - .update({ name: 'Mordor' }) - .lt('country_id', 250) -``` - -### With `delete()` - -```js -const { data, error } = await supabase - .from('cities') - .delete() - .lt('country_id', 250) -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase - .rpc('echo_all_cities') - .lt('country_id', 250) -``` diff --git a/apps/reference/_supabase_js/generated/lte.mdx b/apps/reference/_supabase_js/generated/lte.mdx deleted file mode 100644 index 0c5fff4336c..00000000000 --- a/apps/reference/_supabase_js/generated/lte.mdx +++ /dev/null @@ -1,102 +0,0 @@ ---- -id: lte -title: 'lte()' -slug: /lte -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Match only rows where `column` is less than or equal to `value`. - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .lte('country_id', 250) -``` - -## Parameters - -
    - -
  • -

    - - column - - - required - - - ColumnName - -

    -
    - -The column to filter on - -
    - -
  • - -
  • -

    - - value - - - required - - - object - -

    -
    - -The value to filter with - -
    - -
  • - -
- -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .lte('country_id', 250) -``` - -### With `update()` - -```js -const { data, error } = await supabase - .from('cities') - .update({ name: 'Mordor' }) - .lte('country_id', 250) -``` - -### With `delete()` - -```js -const { data, error } = await supabase - .from('cities') - .delete() - .lte('country_id', 250) -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase - .rpc('echo_all_cities') - .lte('country_id', 250) -``` diff --git a/apps/reference/_supabase_js/generated/match.mdx b/apps/reference/_supabase_js/generated/match.mdx deleted file mode 100644 index 11fcc31e0a0..00000000000 --- a/apps/reference/_supabase_js/generated/match.mdx +++ /dev/null @@ -1,84 +0,0 @@ ---- -id: match -title: 'match()' -slug: /match -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Match only rows where each column in `query` keys is equal to its -associated value. Shorthand for multiple `.eq()`s. - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .match({ name: 'Beijing', country_id: 156 }) -``` - -## Parameters - -
    - -
  • -

    - - query - - - required - - - Record - -

    -
    - -The object to filter with, with column names as keys mapped -to their filter values - -
    - -
  • - -
- -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .match({ name: 'Beijing', country_id: 156 }) -``` - -### With `update()` - -```js -const { data, error } = await supabase - .from('cities') - .update({ name: 'Mordor' }) - .match({ name: 'Beijing', country_id: 156 }) -``` - -### With `delete()` - -```js -const { data, error } = await supabase - .from('cities') - .delete() - .match({ name: 'Beijing', country_id: 156 }) -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase - .rpc('echo_all_cities') - .match({ name: 'Beijing', country_id: 156 }) -``` diff --git a/apps/reference/_supabase_js/generated/maybesingle.mdx b/apps/reference/_supabase_js/generated/maybesingle.mdx deleted file mode 100644 index 77c7e0af2a1..00000000000 --- a/apps/reference/_supabase_js/generated/maybesingle.mdx +++ /dev/null @@ -1,34 +0,0 @@ ---- -id: maybesingle -title: 'maybeSingle()' -slug: /maybesingle -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Return `data` as a single object instead of an array of objects. - -Query result must be zero or one row (e.g. using `.limit(1)`), otherwise -this returns an error. - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .eq('name', 'Singapore') - .maybeSingle() -``` - -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .eq('name', 'Singapore') - .maybeSingle() -``` diff --git a/apps/reference/_supabase_js/generated/neq.mdx b/apps/reference/_supabase_js/generated/neq.mdx deleted file mode 100644 index 9b65ed8cc39..00000000000 --- a/apps/reference/_supabase_js/generated/neq.mdx +++ /dev/null @@ -1,102 +0,0 @@ ---- -id: neq -title: 'neq()' -slug: /neq -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Match only rows where `column` is not equal to `value`. - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .neq('name', 'The shire') -``` - -## Parameters - -
    - -
  • -

    - - column - - - required - - - ColumnName - -

    -
    - -The column to filter on - -
    - -
  • - -
  • -

    - - value - - - required - - - object - -

    -
    - -The value to filter with - -
    - -
  • - -
- -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .neq('name', 'The shire') -``` - -### With `update()` - -```js -const { data, error } = await supabase - .from('cities') - .update({ name: 'Mordor' }) - .neq('name', 'San Francisco') -``` - -### With `delete()` - -```js -const { data, error } = await supabase - .from('cities') - .delete() - .neq('name', 'Mordor') -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase - .rpc('echo_all_cities') - .neq('name', 'Lagos') -``` diff --git a/apps/reference/_supabase_js/generated/not.mdx b/apps/reference/_supabase_js/generated/not.mdx deleted file mode 100644 index d72667d25c8..00000000000 --- a/apps/reference/_supabase_js/generated/not.mdx +++ /dev/null @@ -1,140 +0,0 @@ ---- -id: not -title: 'not()' -slug: /not -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Match only rows which doesn't satisfy the filter. - -Unlike most filters, `opearator` and `value` are used as-is and need to -follow [PostgREST -syntax](https://postgrest.org/en/stable/api.html#operators). You also need -to make sure they are properly sanitized. - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .not('name', 'eq', 'Paris') -``` - -## Parameters - -
    - -
  • -

    - - column - - - required - - - ColumnName - -

    -
    - -The column to filter on - -
    - -
  • - -
  • -

    - - operator - - - required - - - FilterOperator - -

    -
    - -The operator to be negated to filter with, following -PostgREST syntax - -
    - -
  • - -
  • -

    - - value - - - required - - - object - -

    -
    - -The value to filter with, following PostgREST syntax - -
    - -
  • - -
- -## Notes - -- `.not()` expects you to use the raw [PostgREST syntax](https://postgrest.org/en/stable/api.html#horizontal-filtering-rows) for the filter names and values. - - ```js - .not('name','eq','Paris') - .not('arraycol','cs','{"a","b"}') // Use Postgres array {} for array column and 'cs' for contains. - .not('rangecol','cs','(1,2]') // Use Postgres range syntax for range column. - .not('id','in','(6,7)') // Use Postgres list () for in filter. - .not('id','in',`(${arr})`) // You can insert a javascript array. - ``` - -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .not('name', 'eq', 'Paris') -``` - -### With `update()` - -```js -const { data, error } = await supabase - .from('cities') - .update({ name: 'Mordor' }) - .not('name', 'eq', 'Paris') -``` - -### With `delete()` - -```js -const { data, error } = await supabase - .from('cities') - .delete() - .not('name', 'eq', 'Paris') -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase - .rpc('echo_all_cities') - .not('name', 'eq', 'Paris') -``` diff --git a/apps/reference/_supabase_js/generated/or.mdx b/apps/reference/_supabase_js/generated/or.mdx deleted file mode 100644 index a679144ae54..00000000000 --- a/apps/reference/_supabase_js/generated/or.mdx +++ /dev/null @@ -1,135 +0,0 @@ ---- -id: or -title: 'or()' -slug: /or -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Match only rows which satisfy at least one of the filters. - -Unlike most filters, `filters` is used as-is and needs to follow [PostgREST -syntax](https://postgrest.org/en/stable/api.html#operators). You also need -to make sure it's properly sanitized. - -It's currently not possible to do an `.or()` filter across multiple tables. - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .or('id.eq.20,id.eq.30') -``` - -## Parameters - -
    - -
  • -

    - - filters - - - required - - - string - -

    -
    - -The filters to use, following PostgREST syntax - -
    - -
  • - -
  • -

    - - foreignTable - - - required - - - object - -

    -
    - -Set this to filter on foreign tables instead of the -current table - -
    - -
      -
      Properties
      - -
    • -

      - - foreignTable - - - optional - - - string - -

      -
      - -No description provided. - -
      - -
    • - -
    - -
  • - -
- -## Notes - -- `.or()` expects you to use the raw [PostgREST syntax](https://postgrest.org/en/stable/api.html#horizontal-filtering-rows) for the filter names and values. - - ```js - .or('id.in.(6,7), arraycol.cs.{"a","b"}') // Use Postgres list () for in filter. Array {} for array column and 'cs' for contains. - .or(`id.in.(${arrList}),arraycol.cs.{${arr}}`) // You can insert a javascipt array for list or array on array column. - .or(`id.in.(${arrList}),rangecol.cs.[${arrRange})`) // You can insert a javascipt array for list or range on a range column. - ``` - -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .or('id.eq.20,id.eq.30') -``` - -### Use `or` with `and` - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .or('id.gt.20,and(name.eq.New Zealand,name.eq.France)') -``` - -### Use `or` on foreign tables - -```js -const { data, error } = await supabase - .from('countries') - .select('id, cities(*)') - .or('name.eq.Wellington,name.eq.Paris', { foreignTable: 'cities' }) -``` diff --git a/apps/reference/_supabase_js/generated/order.mdx b/apps/reference/_supabase_js/generated/order.mdx deleted file mode 100644 index acb56ebe027..00000000000 --- a/apps/reference/_supabase_js/generated/order.mdx +++ /dev/null @@ -1,157 +0,0 @@ ---- -id: order -title: 'order()' -slug: /order -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Order the query result by `column`. - -You can call this method multiple times to order by multiple columns. - -You can order foreign tables, but it doesn't affect the ordering of the -current table. - -```js -const { data, error } = await supabase - .from('cities') - .select('name', 'country_id') - .order('id', { ascending: false }) -``` - -## Parameters - -
    - -
  • -

    - - column - - - required - - - ColumnName - -

    -
    - -The column to order by - -
    - -
  • - -
  • -

    - - options - - - optional - - - object - -

    -
    - -Named parameters - -
    - -
      -
      Properties
      - -
    • -

      - - ascending - - - optional - - - boolean - -

      -
      - -If `true`, the result will be in ascending order - -
      - -
    • - -
    • -

      - - foreignTable - - - optional - - - undefined - -

      -
      - -Set this to order a foreign table by foreign -columns - -
      - -
    • - -
    • -

      - - nullsFirst - - - optional - - - boolean - -

      -
      - -If `true`, `null`s appear first. If `false`, -`null`s appear last. - -
      - -
    • - -
    - -
  • - -
- -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('cities') - .select('name', 'country_id') - .order('id', { ascending: false }) -``` - -### With embedded resources - -```js -const { data, error } = await supabase - .from('countries') - .select('name, cities(name)') - .eq('name', 'United States') - .order('name', { foreignTable: 'cities' }) -``` diff --git a/apps/reference/_supabase_js/generated/overlaps.mdx b/apps/reference/_supabase_js/generated/overlaps.mdx deleted file mode 100644 index 1555fd0a48a..00000000000 --- a/apps/reference/_supabase_js/generated/overlaps.mdx +++ /dev/null @@ -1,159 +0,0 @@ ---- -id: overlaps -title: 'overlaps()' -slug: /overlaps -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Only relevant for array and range columns. Match only rows where -`column` and `value` have an element in common. - -```js -const { data, error } = await supabase - .from('countries') - .select('name, id, main_exports') - .overlaps('main_exports', ['computers', 'minerals']) -``` - -## Parameters - -
    - -
  • -

    - - column - - - required - - - ColumnName - -

    -
    - -The array or range column to filter on - -
    - -
  • - -
  • -

    - - value - - - required - - - string | array - -

    -
    - -The array or range value to filter with - -
    - -
      -
      Properties
      - -
    • -

      - - object - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - string - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    - -
  • - -
- -## Notes - -- `.overlaps()` can work on array columns or range columns. - - ```js - .overlaps('arraycol',["a","b"]) // You can use a javascript array for an array column - .overlaps('arraycol','{"a","b"}') // You can use a string with Postgres array {} for array column. - .overlaps('rangecol','(1,2]') // Use Postgres range syntax for range column. - .overlaps('rangecol',`(${arr}]`) // You can insert an array into a string. - ``` - -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('countries') - .select('name, id, main_exports') - .overlaps('main_exports', ['computers', 'minerals']) -``` - -### With `update()` - -```js -let countries = await supabase - .from('countries') - .update({ name: 'Mordor' }) - .overlaps('main_exports', ['computers', 'minerals']) -``` - -### With `delete()` - -```js -const { data, error } = await supabase - .from('countries') - .delete() - .overlaps('main_exports', ['computers', 'minerals']) -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase - .rpc('echo_all_countries') - .overlaps('main_exports', ['computers', 'minerals']) -``` diff --git a/apps/reference/_supabase_js/generated/range.mdx b/apps/reference/_supabase_js/generated/range.mdx deleted file mode 100644 index d993ff88901..00000000000 --- a/apps/reference/_supabase_js/generated/range.mdx +++ /dev/null @@ -1,121 +0,0 @@ ---- -id: range -title: 'range()' -slug: /range -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Limit the query result by `from` and `to` inclusively. - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .range(0, 3) -``` - -## Parameters - -
    - -
  • -

    - - from - - - required - - - number - -

    -
    - -The starting index from which to limit the result - -
    - -
  • - -
  • -

    - - to - - - required - - - number - -

    -
    - -The last index to which to limit the result - -
    - -
  • - -
  • -

    - - options - - - required - - - object - -

    -
    - -Named parameters - -
    - -
      -
      Properties
      - -
    • -

      - - foreignTable - - - optional - - - string - -

      -
      - -Set this to limit rows of foreign tables -instead of the current table - -
      - -
    • - -
    - -
  • - -
- -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .range(0, 3) -``` diff --git a/apps/reference/_supabase_js/generated/rangeadjacent.mdx b/apps/reference/_supabase_js/generated/rangeadjacent.mdx deleted file mode 100644 index b914235562e..00000000000 --- a/apps/reference/_supabase_js/generated/rangeadjacent.mdx +++ /dev/null @@ -1,104 +0,0 @@ ---- -id: rangeadjacent -title: 'rangeAdjacent()' -slug: /rangeadjacent -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Only relevant for range columns. Match only rows where `column` is -mutually exclusive to `range` and there can be no element between the two -ranges. - -```js -const { data, error } = await supabase - .from('countries') - .select('name, id, population_range_millions') - .rangeAdjacent('population_range_millions', '[70, 185]') -``` - -## Parameters - -
    - -
  • -

    - - column - - - required - - - ColumnName - -

    -
    - -The range column to filter on - -
    - -
  • - -
  • -

    - - range - - - required - - - string - -

    -
    - -The range to filter with - -
    - -
  • - -
- -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('countries') - .select('name, id, population_range_millions') - .rangeAdjacent('population_range_millions', '[70, 185]') -``` - -### With `update()` - -```js -const { data, error } = await supabase - .from('countries') - .update({ name: 'Mordor' }) - .rangeAdjacent('population_range_millions', '[70, 185]') -``` - -### With `delete()` - -```js -const { data, error } = await supabase - .from('countries') - .delete() - .rangeAdjacent('population_range_millions', '[70, 185]') -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase - .rpc('echo_all_countries') - .rangeAdjacent('population_range_millions', '[70, 185]') -``` diff --git a/apps/reference/_supabase_js/generated/rangegt.mdx b/apps/reference/_supabase_js/generated/rangegt.mdx deleted file mode 100644 index fec4709eb04..00000000000 --- a/apps/reference/_supabase_js/generated/rangegt.mdx +++ /dev/null @@ -1,103 +0,0 @@ ---- -id: rangegt -title: 'rangeGt()' -slug: /rangegt -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Only relevant for range columns. Match only rows where every element in -`column` is greater than any element in `range`. - -```js -const { data, error } = await supabase - .from('countries') - .select('name, id, population_range_millions') - .rangeGt('population_range_millions', '[150, 250]') -``` - -## Parameters - -
    - -
  • -

    - - column - - - required - - - ColumnName - -

    -
    - -The range column to filter on - -
    - -
  • - -
  • -

    - - range - - - required - - - string - -

    -
    - -The range to filter with - -
    - -
  • - -
- -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('countries') - .select('name, id, population_range_millions') - .rangeGt('population_range_millions', '[150, 250]') -``` - -### With `update()` - -```js -const { data, error } = await supabase - .from('countries') - .update({ name: 'Mordor' }) - .rangeGt('population_range_millions', '[150, 250]') -``` - -### With `delete()` - -```js -const { data, error } = await supabase - .from('countries') - .delete() - .rangeGt('population_range_millions', '[150, 250]') -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase - .rpc('echo_all_countries') - .rangeGt('population_range_millions', '[150, 250]') -``` diff --git a/apps/reference/_supabase_js/generated/rangegte.mdx b/apps/reference/_supabase_js/generated/rangegte.mdx deleted file mode 100644 index d2b34265774..00000000000 --- a/apps/reference/_supabase_js/generated/rangegte.mdx +++ /dev/null @@ -1,104 +0,0 @@ ---- -id: rangegte -title: 'rangeGte()' -slug: /rangegte -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Only relevant for range columns. Match only rows where every element in -`column` is either contained in `range` or greater than any element in -`range`. - -```js -const { data, error } = await supabase - .from('countries') - .select('name, id, population_range_millions') - .rangeGte('population_range_millions', '[150, 250]') -``` - -## Parameters - -
    - -
  • -

    - - column - - - required - - - ColumnName - -

    -
    - -The range column to filter on - -
    - -
  • - -
  • -

    - - range - - - required - - - string - -

    -
    - -The range to filter with - -
    - -
  • - -
- -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('countries') - .select('name, id, population_range_millions') - .rangeGte('population_range_millions', '[150, 250]') -``` - -### With `update()` - -```js -const { data, error } = await supabase - .from('countries') - .update({ name: 'Mordor' }) - .rangeGte('population_range_millions', '[150, 250]') -``` - -### With `delete()` - -```js -const { data, error } = await supabase - .from('countries') - .delete() - .rangeGte('population_range_millions', '[150, 250]') -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase - .rpc('echo_all_countries') - .rangeGte('population_range_millions', '[150, 250]') -``` diff --git a/apps/reference/_supabase_js/generated/rangelt.mdx b/apps/reference/_supabase_js/generated/rangelt.mdx deleted file mode 100644 index 6cc7d3333d8..00000000000 --- a/apps/reference/_supabase_js/generated/rangelt.mdx +++ /dev/null @@ -1,103 +0,0 @@ ---- -id: rangelt -title: 'rangeLt()' -slug: /rangelt -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Only relevant for range columns. Match only rows where every element in -`column` is less than any element in `range`. - -```js -const { data, error } = await supabase - .from('countries') - .select('name, id, population_range_millions') - .rangeLt('population_range_millions', '[150, 250]') -``` - -## Parameters - -
    - -
  • -

    - - column - - - required - - - ColumnName - -

    -
    - -The range column to filter on - -
    - -
  • - -
  • -

    - - range - - - required - - - string - -

    -
    - -The range to filter with - -
    - -
  • - -
- -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('countries') - .select('name, id, population_range_millions') - .rangeLt('population_range_millions', '[150, 250]') -``` - -### With `update()` - -```js -const { data, error } = await supabase - .from('countries') - .update({ name: 'Mordor' }) - .rangeLt('population_range_millions', '[150, 250]') -``` - -### With `delete()` - -```js -const { data, error } = await supabase - .from('countries') - .delete() - .rangeLt('population_range_millions', '[150, 250]') -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase - .rpc('echo_all_countries') - .rangeLt('population_range_millions', '[150, 250]') -``` diff --git a/apps/reference/_supabase_js/generated/rangelte.mdx b/apps/reference/_supabase_js/generated/rangelte.mdx deleted file mode 100644 index 10c1ec3d288..00000000000 --- a/apps/reference/_supabase_js/generated/rangelte.mdx +++ /dev/null @@ -1,104 +0,0 @@ ---- -id: rangelte -title: 'rangeLte()' -slug: /rangelte -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Only relevant for range columns. Match only rows where every element in -`column` is either contained in `range` or less than any element in -`range`. - -```js -const { data, error } = await supabase - .from('countries') - .select('name, id, population_range_millions') - .rangeLte('population_range_millions', '[150, 250]') -``` - -## Parameters - -
    - -
  • -

    - - column - - - required - - - ColumnName - -

    -
    - -The range column to filter on - -
    - -
  • - -
  • -

    - - range - - - required - - - string - -

    -
    - -The range to filter with - -
    - -
  • - -
- -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('countries') - .select('name, id, population_range_millions') - .rangeLte('population_range_millions', '[150, 250]') -``` - -### With `update()` - -```js -const { data, error } = await supabase - .from('countries') - .update({ name: 'Mordor' }) - .rangeLte('population_range_millions', '[150, 250]') -``` - -### With `delete()` - -```js -const { data, error } = await supabase - .from('countries') - .delete() - .rangeLte('population_range_millions', '[150, 250]') -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase - .rpc('echo_all_countries') - .rangeLte('population_range_millions', '[150, 250]') -``` diff --git a/apps/reference/_supabase_js/generated/removeallchannels.mdx b/apps/reference/_supabase_js/generated/removeallchannels.mdx deleted file mode 100644 index b1651609f85..00000000000 --- a/apps/reference/_supabase_js/generated/removeallchannels.mdx +++ /dev/null @@ -1,27 +0,0 @@ ---- -id: removeallchannels -title: 'removeAllChannels()' -slug: /removeallchannels -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Unsubscribes and removes all Realtime channels from Realtime client. - -```js -supabase.removeAllChannels() -``` - -## Notes - -- Removing channels is a great way to maintain the performance of your project's Realtime service as well as your database if you're listening to Postgres changes. Supabase will automatically handle cleanup 30 seconds after a client is disconnected, but unused channels may cause degradation as more clients are simultaneously subscribed. - -## Examples - -### Remove all channels - -```js -supabase.removeAllChannels() -``` diff --git a/apps/reference/_supabase_js/generated/removechannel.mdx b/apps/reference/_supabase_js/generated/removechannel.mdx deleted file mode 100644 index 17d20d2bf69..00000000000 --- a/apps/reference/_supabase_js/generated/removechannel.mdx +++ /dev/null @@ -1,838 +0,0 @@ ---- -id: removechannel -title: 'removeChannel()' -slug: /removechannel -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Unsubscribes and removes Realtime channel from Realtime client. - -```js -supabase.removeChannel(myChannel) -``` - -## Parameters - -
    - -
  • -

    - - RealtimeChannel - - - required - - - object - -

    -
    - -No description provided. - -
    - -
      -
      Properties
      - -
    • -

      - - updateJoinPayload - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - untrack - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - unsubscribe - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - trigger - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - track - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - topic - - - required - - - string - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - timeout - - - required - - - number - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - subscribe - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - state - - - required - - - CHANNEL_STATES - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - socket - - - required - - - default - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - send - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - replyEventName - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - rejoinUntilConnected - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - rejoinTimer - - - required - - - default - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - rejoin - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - pushBuffer - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - push - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - presenceState - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - presence - - - required - - - default - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - params - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - onMessage - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - onError - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - onClose - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - on - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - off - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - joinRef - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - joinPush - - - required - - - default - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - joinedOnce - - - required - - - boolean - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - isMember - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - isLeaving - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - isJoining - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - isJoined - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - isErrored - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - isEqual - - - required - - - any - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - isClosed - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - getPayloadRecords - - - required - - - any - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - constructor - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - canPush - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - bindings - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    - -
  • - -
- -## Notes - -- Removing a channel is a great way to maintain the performance of your project's Realtime service as well as your database if you're listening to Postgres changes. Supabase will automatically handle cleanup 30 seconds after a client is disconnected, but unused channels may cause degradation as more clients are simultaneously subscribed. - -## Examples - -### Removes a channel - -```js -supabase.removeChannel(myChannel) -``` diff --git a/apps/reference/_supabase_js/generated/rpc.mdx b/apps/reference/_supabase_js/generated/rpc.mdx deleted file mode 100644 index d5247808471..00000000000 --- a/apps/reference/_supabase_js/generated/rpc.mdx +++ /dev/null @@ -1,264 +0,0 @@ ---- -id: rpc -title: 'Postgres functions: rpc()' -slug: /rpc -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -You can call Postgres functions as a "Remote Procedure Call". - -That's a fancy way of saying that you can put some logic into your database then call it from anywhere. -It's especially useful when the logic rarely changes - like password resets and updates. - -```sql -create or replace function hello_world() returns text as $$ - select 'Hello world'; -$$ language sql; -``` - -```js -const { data, error } = await supabase.rpc('hello_world') -``` - -## Parameters - -
    - -
  • -

    - - fn - - - required - - - FunctionName - -

    -
    - -The function name to call - -
    - -
  • - -
  • -

    - - args - - - required - - - object - -

    -
    - -The arguments to pass to the function call - -
    - -
  • - -
  • -

    - - options - - - required - - - object - -

    -
    - -Named parameters - -
    - -
      -
      Properties
      - -
    • -

      - - count - - - optional - - - exact | planned | estimated - -

      -
      - -Count algorithm to use to count rows returned by the -function. Only applicable for [set-returning -functions](https://www.postgresql.org/docs/current/functions-srf.html). - -`"exact"`: Exact but slow count algorithm. Performs a `COUNT(*)` under the -hood. - -`"planned"`: Approximated but fast count algorithm. Uses the Postgres -statistics under the hood. - -`"estimated"`: Uses exact count for low numbers and planned count for high -numbers. - -
      - -
        -
        Properties
        - -
      • -

        - - estimated - - - required - - - literal - -

        -
        - -No description provided. - -
        - -
      • - -
      • -

        - - planned - - - required - - - literal - -

        -
        - -No description provided. - -
        - -
      • - -
      • -

        - - exact - - - required - - - literal - -

        -
        - -No description provided. - -
        - -
      • - -
      - -
    • - -
    • -

      - - head - - - optional - - - boolean - -

      -
      - -When set to `true`, `data` will not be returned. -Useful if you only need the count. - -
      - -
    • - -
    - -
  • - -
- -## Examples - -### Call a Postgres function - -This is an example of invoking a Postgres function with no parameters. - -```js -const { data, error } = await supabase.rpc('hello_world') -``` - -### With Parameters - -```js -const { data, error } = await supabase.rpc('echo_city', { name: 'The Shire' }) -``` - -### Bulk processing - -You can process large payloads at once using [array parameters](https://postgrest.org/en/stable/api.html#calling-functions-with-array-parameters). - -```js -const { data, error } = await postgrest.rpc('echo_cities', { - names: ['The Shire', 'Mordor'], -}) -``` - -### With filters - -Postgres functions that return tables can also be combined with -[Modifiers](/docs/reference/javascript/using-modifiers) and -[Filters](/docs/reference/javascript/using-filters). - -```js -const { data, error } = await supabase - .rpc('echo_all_cities') - .select('name, population') - .eq('name', 'The Shire') -``` - -### With count option - -You can specify a count option to get the row count along with your data. -Allowed values for count option are `null`, `exact`, `planned` and `estimated`. - -```js -const { data, error, count } = await supabase.rpc( - 'hello_world', - {}, - { count: 'exact' } -) -``` diff --git a/apps/reference/_supabase_js/generated/select.mdx b/apps/reference/_supabase_js/generated/select.mdx deleted file mode 100644 index 276461f0eb6..00000000000 --- a/apps/reference/_supabase_js/generated/select.mdx +++ /dev/null @@ -1,319 +0,0 @@ ---- -id: select -title: 'Fetch data: select()' -slug: /select -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Perform a SELECT query on the table or view. - -```js -const { data, error } = await supabase.from('cities').select() -``` - -## Parameters - -
    - -
  • -

    - - columns - - - optional - - - Query - -

    -
    - -The columns to retrieve, separated by commas - -
    - -
  • - -
  • -

    - - options - - - required - - - object - -

    -
    - -Named parameters - -
    - -
      -
      Properties
      - -
    • -

      - - count - - - optional - - - exact | planned | estimated - -

      -
      - -Count algorithm to use to count rows in the table or view. - -`"exact"`: Exact but slow count algorithm. Performs a `COUNT(*)` under the -hood. - -`"planned"`: Approximated but fast count algorithm. Uses the Postgres -statistics under the hood. - -`"estimated"`: Uses exact count for low numbers and planned count for high -numbers. - -
      - -
        -
        Properties
        - -
      • -

        - - estimated - - - required - - - literal - -

        -
        - -No description provided. - -
        - -
      • - -
      • -

        - - planned - - - required - - - literal - -

        -
        - -No description provided. - -
        - -
      • - -
      • -

        - - exact - - - required - - - literal - -

        -
        - -No description provided. - -
        - -
      • - -
      - -
    • - -
    • -

      - - head - - - optional - - - boolean - -

      -
      - -When set to `true`, `data` will not be returned. -Useful if you only need the count. - -
      - -
    • - -
    - -
  • - -
- -## Notes - -- By default, Supabase projects will return a maximum of 1,000 rows. This setting can be changed in Project API Settings. It's recommended that you keep it low to limit the payload size of accidental or malicious requests. You can use `range()` queries to paginate through your data. -- `select()` can be combined with [Modifiers](/docs/reference/javascript/using-modifiers) -- `select()` can be combined with [Filters](/docs/reference/javascript/using-filters) -- If using the Supabase hosted platform `apikey` is technically a reserved keyword, since the API gateway will pluck it out for authentication. [It should be avoided as a column name](https://github.com/supabase/supabase/issues/5465). - -## Examples - -### Getting your data - -```js -const { data, error } = await supabase.from('cities').select() -``` - -### Selecting specific columns - -You can select specific fields from your tables. - -```js -const { data, error } = await supabase.from('cities').select('name') -``` - -### Query foreign tables - -If your database has foreign key relationships, you can query related tables too. - -```js -const { data, error } = await supabase.from('countries').select(` - name, - cities ( - name - ) - `) -``` - -:::note What about join tables -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 PostgREST engine detects the relationship automatically. -For more details, [follow the link](https://postgrest.org/en/latest/api.html#embedding-through-join-tables). - -::: - -### Query the same foreign table multiple times - -Sometimes you will need to query the same foreign table twice. -In this case, you can use the name of the joined column to identify -which join you intend to use. For convenience, you can also give an -alias for each column. For example, if we had a shop of products, -and we wanted to get the supplier and the purchaser at the same time -(both in the users) table: - -```js -const { data, error } = await supabase.from('products').select(` - id, - supplier:supplier_id ( name ), - purchaser:purchaser_id ( name ) - `) -``` - -### Filtering with inner joins - -If you want to filter a table based on a child table's values you can use the `!inner()` function. For example, if you wanted -to select all rows in a `message` table which belong to a user with the `username` "Jane": - -```js -const { data, error } = await supabase - .from('messages') - .select('*, users!inner(*)') - .eq('users.username', 'Jane') -``` - -### Querying with count option - -You can get the number of rows by using the count option. -Allowed values for count option are `null`, [exact](https://postgrest.org/en/stable/api.html#exact-count), [planned](https://postgrest.org/en/stable/api.html#planned-count) and [estimated](https://postgrest.org/en/stable/api.html#estimated-count). - -```js -const { data, error, count } = await supabase - .from('cities') - .select('name', { count: 'exact' }) // if you don't want to return any rows, you can use { count: 'exact', head: true } -``` - -### Querying JSON data - -If you have data inside of a JSONB column, you can apply select -and query filters to the data values. Postgres offers a -[number of operators](https://www.postgresql.org/docs/current/functions-json.html) -for querying JSON data. Also see -[PostgREST docs](http://postgrest.org/en/v7.0.0/api.html#json-columns) for more details. - -```js -const { data, error } = await supabase - .from('users') - .select( - ` - id, name, - address->street - ` - ) - .eq('address->postcode', 90210) -``` - -### Return data as CSV - -By default the data is returned in JSON format, however you can also request for it to be returned as Comma Separated Values. - -```js -const { data, error } = await supabase.from('users').select().csv() -``` - -### Aborting requests in-flight - -You can use an [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController) to abort requests. Note that `status` and `statusText` doesn't mean anything for aborted requests, since the request wasn't actually fulfilled. - -```js -const ac = new AbortController() -supabase - .from('very_big_table') - .select() - .abortSignal(ac.signal) - .then(console.log) -ac.abort() -// { -// error: { -// message: 'FetchError: The user aborted a request.', -// details: '', -// hint: '', -// code: '' -// }, -// data: null, -// body: null, -// count: null, -// status: 400, -// statusText: 'Bad Request' -// } -``` diff --git a/apps/reference/_supabase_js/generated/single.mdx b/apps/reference/_supabase_js/generated/single.mdx deleted file mode 100644 index c012196ab58..00000000000 --- a/apps/reference/_supabase_js/generated/single.mdx +++ /dev/null @@ -1,34 +0,0 @@ ---- -id: single -title: 'single()' -slug: /single -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Return `data` as a single object instead of an array of objects. - -Query result must be one row (e.g. using `.limit(1)`), otherwise this -returns an error. - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .limit(1) - .single() -``` - -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .limit(1) - .single() -``` diff --git a/apps/reference/_supabase_js/generated/storage-createbucket.mdx b/apps/reference/_supabase_js/generated/storage-createbucket.mdx deleted file mode 100644 index d82af4997c6..00000000000 --- a/apps/reference/_supabase_js/generated/storage-createbucket.mdx +++ /dev/null @@ -1,105 +0,0 @@ ---- -id: storage-createbucket -title: 'createBucket()' -slug: /storage-createbucket -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Creates a new Storage bucket - -```js -const { data, error } = await supabase.storage.createBucket('avatars', { - public: false, -}) -``` - -## Parameters - -
    - -
  • -

    - - id - - - required - - - string - -

    -
    - -A unique identifier for the bucket you are creating. - -
    - -
  • - -
  • -

    - - options - - - required - - - object - -

    -
    - -No description provided. - -
    - -
      -
      Properties
      - -
    • -

      - - public - - - required - - - boolean - -

      -
      - -The visibility of the bucket. Public buckets don't require an authorization token to download objects, but still require a valid token for all other operations. By default, buckets are private. - -
      - -
    • - -
    - -
  • - -
- -## Notes - -- RLS policy permissions required: - - `buckets` table permissions: `insert` - - `objects` table permissions: none -- Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works - -## Examples - -### Create bucket - -```js -const { data, error } = await supabase.storage.createBucket('avatars', { - public: false, -}) -``` diff --git a/apps/reference/_supabase_js/generated/storage-deletebucket.mdx b/apps/reference/_supabase_js/generated/storage-deletebucket.mdx deleted file mode 100644 index fa15415b793..00000000000 --- a/apps/reference/_supabase_js/generated/storage-deletebucket.mdx +++ /dev/null @@ -1,57 +0,0 @@ ---- -id: storage-deletebucket -title: 'deleteBucket()' -slug: /storage-deletebucket -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Deletes an existing bucket. A bucket can't be deleted with existing objects inside it. -You must first `empty()` the bucket. - -```js -const { data, error } = await supabase.storage.deleteBucket('avatars') -``` - -## Parameters - -
    - -
  • -

    - - id - - - required - - - string - -

    -
    - -The unique identifier of the bucket you would like to delete. - -
    - -
  • - -
- -## Notes - -- RLS policy permissions required: - - `buckets` table permissions: `select` and `delete` - - `objects` table permissions: none -- Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works - -## Examples - -### Delete bucket - -```js -const { data, error } = await supabase.storage.deleteBucket('avatars') -``` diff --git a/apps/reference/_supabase_js/generated/storage-emptybucket.mdx b/apps/reference/_supabase_js/generated/storage-emptybucket.mdx deleted file mode 100644 index 568e5cea01c..00000000000 --- a/apps/reference/_supabase_js/generated/storage-emptybucket.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -id: storage-emptybucket -title: 'emptyBucket()' -slug: /storage-emptybucket -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Removes all objects inside a single bucket. - -```js -const { data, error } = await supabase.storage.emptyBucket('avatars') -``` - -## Parameters - -
    - -
  • -

    - - id - - - required - - - string - -

    -
    - -The unique identifier of the bucket you would like to empty. - -
    - -
  • - -
- -## Notes - -- RLS policy permissions required: - - `buckets` table permissions: `select` - - `objects` table permissions: `select` and `delete` -- Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works - -## Examples - -### Empty bucket - -```js -const { data, error } = await supabase.storage.emptyBucket('avatars') -``` diff --git a/apps/reference/_supabase_js/generated/storage-from-copy.mdx b/apps/reference/_supabase_js/generated/storage-from-copy.mdx deleted file mode 100644 index 14ba7920ae6..00000000000 --- a/apps/reference/_supabase_js/generated/storage-from-copy.mdx +++ /dev/null @@ -1,80 +0,0 @@ ---- -id: storage-from-copy -title: 'from.copy()' -slug: /storage-from-copy -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Copies an existing file to a new path in the same bucket. - -```js -const { data, error } = await supabase.storage - .from('avatars') - .copy('public/avatar1.png', 'private/avatar2.png') -``` - -## Parameters - -
    - -
  • -

    - - fromPath - - - required - - - string - -

    -
    - -The original file path, including the current file name. For example `folder/image.png`. - -
    - -
  • - -
  • -

    - - toPath - - - required - - - string - -

    -
    - -The new file path, including the new file name. For example `folder/image-copy.png`. - -
    - -
  • - -
- -## Notes - -- RLS policy permissions required: - - `buckets` table permissions: none - - `objects` table permissions: `insert` and `select` -- Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works - -## Examples - -### Copy file - -```js -const { data, error } = await supabase.storage - .from('avatars') - .copy('public/avatar1.png', 'private/avatar2.png') -``` diff --git a/apps/reference/_supabase_js/generated/storage-from-createsignedurl.mdx b/apps/reference/_supabase_js/generated/storage-from-createsignedurl.mdx deleted file mode 100644 index 8b9603b008a..00000000000 --- a/apps/reference/_supabase_js/generated/storage-from-createsignedurl.mdx +++ /dev/null @@ -1,80 +0,0 @@ ---- -id: storage-from-createsignedurl -title: 'from.createSignedUrl()' -slug: /storage-from-createsignedurl -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Creates a signed URL. Use a signed URL to share a file for a fixed amount of time. - -```js -const { data, error } = await supabase.storage - .from('avatars') - .createSignedUrl('folder/avatar1.png', 60) -``` - -## Parameters - -
    - -
  • -

    - - path - - - required - - - string - -

    -
    - -The file path, including the current file name. For example `folder/image.png`. - -
    - -
  • - -
  • -

    - - expiresIn - - - required - - - number - -

    -
    - -The number of seconds until the signed URL expires. For example, `60` for a URL which is valid for one minute. - -
    - -
  • - -
- -## Notes - -- RLS policy permissions required: - - `buckets` table permissions: none - - `objects` table permissions: `select` -- Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works - -## Examples - -### Create Signed URL - -```js -const { data, error } = await supabase.storage - .from('avatars') - .createSignedUrl('folder/avatar1.png', 60) -``` diff --git a/apps/reference/_supabase_js/generated/storage-from-createsignedurls.mdx b/apps/reference/_supabase_js/generated/storage-from-createsignedurls.mdx deleted file mode 100644 index 7a2ebb9a98b..00000000000 --- a/apps/reference/_supabase_js/generated/storage-from-createsignedurls.mdx +++ /dev/null @@ -1,80 +0,0 @@ ---- -id: storage-from-createsignedurls -title: 'from.createSignedUrls()' -slug: /storage-from-createsignedurls -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Creates multiple signed URLs. Use a signed URL to share a file for a fixed amount of time. - -```js -const { data, error } = await supabase.storage - .from('avatars') - .createSignedUrls(['folder/avatar1.png', 'folder/avatar2.png'], 60) -``` - -## Parameters - -
    - -
  • -

    - - paths - - - required - - - object - -

    -
    - -The file paths to be downloaded, including the current file names. For example `['folder/image.png', 'folder2/image2.png']`. - -
    - -
  • - -
  • -

    - - expiresIn - - - required - - - number - -

    -
    - -The number of seconds until the signed URLs expire. For example, `60` for URLs which are valid for one minute. - -
    - -
  • - -
- -## Notes - -- RLS policy permissions required: - - `buckets` table permissions: none - - `objects` table permissions: `select` -- Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works - -## Examples - -### Create Signed URLs - -```js -const { data, error } = await supabase.storage - .from('avatars') - .createSignedUrls(['folder/avatar1.png', 'folder/avatar2.png'], 60) -``` diff --git a/apps/reference/_supabase_js/generated/storage-from-download.mdx b/apps/reference/_supabase_js/generated/storage-from-download.mdx deleted file mode 100644 index e30cb64ae5c..00000000000 --- a/apps/reference/_supabase_js/generated/storage-from-download.mdx +++ /dev/null @@ -1,60 +0,0 @@ ---- -id: storage-from-download -title: 'from.download()' -slug: /storage-from-download -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Downloads a file. - -```js -const { data, error } = await supabase.storage - .from('avatars') - .download('folder/avatar1.png') -``` - -## Parameters - -
    - -
  • -

    - - path - - - required - - - string - -

    -
    - -The full path and file name of the file to be downloaded. For example `folder/image.png`. - -
    - -
  • - -
- -## Notes - -- RLS policy permissions required: - - `buckets` table permissions: none - - `objects` table permissions: `select` -- Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works - -## Examples - -### Download file - -```js -const { data, error } = await supabase.storage - .from('avatars') - .download('folder/avatar1.png') -``` diff --git a/apps/reference/_supabase_js/generated/storage-from-getpublicurl.mdx b/apps/reference/_supabase_js/generated/storage-from-getpublicurl.mdx deleted file mode 100644 index 0956a453ff4..00000000000 --- a/apps/reference/_supabase_js/generated/storage-from-getpublicurl.mdx +++ /dev/null @@ -1,62 +0,0 @@ ---- -id: storage-from-getpublicurl -title: 'from.getPublicUrl()' -slug: /storage-from-getpublicurl -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Retrieves the URL for an asset in a public bucket. -This function does not verify if the bucket is public. If a public URL is created for a bucket which is not public, you will not be able to download the asset. - -```js -const { data } = supabase.storage - .from('public-bucket') - .getPublicUrl('folder/avatar1.png') -``` - -## Parameters - -
    - -
  • -

    - - path - - - required - - - string - -

    -
    - -The path and name of the file to generate the public URL for. For example `folder/image.png`. - -
    - -
  • - -
- -## Notes - -- The bucket needs to be set to public, either via [updateBucket()](/docs/reference/javascript/storage-updatebucket) or by going to Storage on [app.supabase.com](https://app.supabase.com), clicking the overflow menu on a bucket and choosing "Make public" -- RLS policy permissions required: - - `buckets` table permissions: none - - `objects` table permissions: none -- Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works - -## Examples - -### Returns the URL for an asset in a public bucket - -```js -const { data } = supabase.storage - .from('public-bucket') - .getPublicUrl('folder/avatar1.png') -``` diff --git a/apps/reference/_supabase_js/generated/storage-from-list.mdx b/apps/reference/_supabase_js/generated/storage-from-list.mdx deleted file mode 100644 index 332933a8b66..00000000000 --- a/apps/reference/_supabase_js/generated/storage-from-list.mdx +++ /dev/null @@ -1,225 +0,0 @@ ---- -id: storage-from-list -title: 'from.list()' -slug: /storage-from-list -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Lists all the files within a bucket. - -```js -const { data, error } = await supabase.storage.from('avatars').list('folder', { - limit: 100, - offset: 0, - sortBy: { column: 'name', order: 'asc' }, -}) -``` - -## Parameters - -
    - -
  • -

    - - path - - - optional - - - string - -

    -
    - -The folder path. - -
    - -
  • - -
  • -

    - - SearchOptions - - - required - - - object - -

    -
    - -No description provided. - -
    - -
      -
      Properties
      - -
    • -

      - - limit - - - optional - - - number - -

      -
      - -The number of files you want to be returned. - -
      - -
    • - -
    • -

      - - offset - - - optional - - - number - -

      -
      - -The starting position. - -
      - -
    • - -
    • -

      - - search - - - optional - - - string - -

      -
      - -The search string to filter files by. - -
      - -
    • - -
    • -

      - - sortBy - - - optional - - - SortBy - -

      -
      - -The column to sort by. Can be any column inside a FileObject. - -
      - -
    • - -
    - -
  • - -
  • -

    - - FetchParameters - - - required - - - object - -

    -
    - -No description provided. - -
    - -
      -
      Properties
      - -
    • -

      - - signal - - - optional - - - AbortSignal - -

      -
      - -Pass in an AbortController's signal to cancel the request. - -
      - -
    • - -
    - -
  • - -
- -## Notes - -- RLS policy permissions required: - - `buckets` table permissions: none - - `objects` table permissions: `select` -- Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works - -## Examples - -### List files in a bucket - -```js -const { data, error } = await supabase.storage.from('avatars').list('folder', { - limit: 100, - offset: 0, - sortBy: { column: 'name', order: 'asc' }, -}) -``` - -### Search files in a bucket - -```js -const { data, error } = await supabase.storage.from('avatars').list('folder', { - limit: 100, - offset: 0, - sortBy: { column: 'name', order: 'asc' }, - search: 'jon', -}) -``` diff --git a/apps/reference/_supabase_js/generated/storage-from-move.mdx b/apps/reference/_supabase_js/generated/storage-from-move.mdx deleted file mode 100644 index 0aca1f66819..00000000000 --- a/apps/reference/_supabase_js/generated/storage-from-move.mdx +++ /dev/null @@ -1,80 +0,0 @@ ---- -id: storage-from-move -title: 'from.move()' -slug: /storage-from-move -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Moves an existing file to a new path in the same bucket. - -```js -const { data, error } = await supabase.storage - .from('avatars') - .move('public/avatar1.png', 'private/avatar2.png') -``` - -## Parameters - -
    - -
  • -

    - - fromPath - - - required - - - string - -

    -
    - -The original file path, including the current file name. For example `folder/image.png`. - -
    - -
  • - -
  • -

    - - toPath - - - required - - - string - -

    -
    - -The new file path, including the new file name. For example `folder/image-new.png`. - -
    - -
  • - -
- -## Notes - -- RLS policy permissions required: - - `buckets` table permissions: none - - `objects` table permissions: `update` and `select` -- Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works - -## Examples - -### Move file - -```js -const { data, error } = await supabase.storage - .from('avatars') - .move('public/avatar1.png', 'private/avatar2.png') -``` diff --git a/apps/reference/_supabase_js/generated/storage-from-remove.mdx b/apps/reference/_supabase_js/generated/storage-from-remove.mdx deleted file mode 100644 index bb23a7a117a..00000000000 --- a/apps/reference/_supabase_js/generated/storage-from-remove.mdx +++ /dev/null @@ -1,60 +0,0 @@ ---- -id: storage-from-remove -title: 'from.remove()' -slug: /storage-from-remove -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Deletes files within the same bucket - -```js -const { data, error } = await supabase.storage - .from('avatars') - .remove(['folder/avatar1.png']) -``` - -## Parameters - -
    - -
  • -

    - - paths - - - required - - - object - -

    -
    - -An array of files to delete, including the path and file name. For example [`'folder/image.png'`]. - -
    - -
  • - -
- -## Notes - -- RLS policy permissions required: - - `buckets` table permissions: none - - `objects` table permissions: `delete` and `select` -- Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works - -## Examples - -### Delete file - -```js -const { data, error } = await supabase.storage - .from('avatars') - .remove(['folder/avatar1.png']) -``` diff --git a/apps/reference/_supabase_js/generated/storage-from-update.mdx b/apps/reference/_supabase_js/generated/storage-from-update.mdx deleted file mode 100644 index 0f88af17c72..00000000000 --- a/apps/reference/_supabase_js/generated/storage-from-update.mdx +++ /dev/null @@ -1,391 +0,0 @@ ---- -id: storage-from-update -title: 'from.update()' -slug: /storage-from-update -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Replaces an existing file at the specified path with a new one. - -```js -const avatarFile = event.target.files[0] -const { data, error } = await supabase.storage - .from('avatars') - .update('public/avatar1.png', avatarFile, { - cacheControl: '3600', - upsert: false, - }) -``` - -## Parameters - -
    - -
  • -

    - - path - - - required - - - string - -

    -
    - -The relative file path. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to update. - -
    - -
  • - -
  • -

    - - fileBody - - - required - - - string | ArrayBuffer | ArrayBufferView | Blob | Buffer | File | FormData | ReadableStream | ReadableStream | URLSearchParams - -

    -
    - -The body of the file to be stored in the bucket. - -
    - -
      -
      Properties
      - -
    • -

      - - URLSearchParams - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - string - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - ReadableStream - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - ReadableStream - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - FormData - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - File - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - Buffer - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - Blob - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - ArrayBufferView - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - ArrayBuffer - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    - -
  • - -
  • -

    - - FileOptions - - - required - - - object - -

    -
    - -No description provided. - -
    - -
      -
      Properties
      - -
    • -

      - - cacheControl - - - optional - - - string - -

      -
      - -The number of seconds the asset is cached in the browser and in the Supabase CDN. This is set in the `Cache-Control: max-age=` header. Defaults to 3600 seconds. - -
      - -
    • - -
    • -

      - - contentType - - - optional - - - string - -

      -
      - -the `Content-Type` header value. Should be specified if using a `fileBody` that is neither `Blob` nor `File` nor `FormData`, otherwise will default to `text/plain;charset=UTF-8`. - -
      - -
    • - -
    • -

      - - upsert - - - optional - - - boolean - -

      -
      - -When upsert is set to true, the file is overwritten if it exists. When set to false, an error is thrown if the object already exists. Defaults to false. - -
      - -
    • - -
    - -
  • - -
- -## Notes - -- RLS policy permissions required: - - `buckets` table permissions: none - - `objects` table permissions: `update` and `select` -- Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works -- For React Native, using either `Blob`, `File` or `FormData` does not work as intended. Update file using `ArrayBuffer` from base64 file data instead, see example below. - -## Examples - -### Update file - -```js -const avatarFile = event.target.files[0] -const { data, error } = await supabase.storage - .from('avatars') - .update('public/avatar1.png', avatarFile, { - cacheControl: '3600', - upsert: false, - }) -``` - -### Update file using `ArrayBuffer` from base64 file data - -```js -import { decode } from 'base64-arraybuffer' - -const { data, error } = await supabase.storage - .from('avatars') - .update('public/avatar1.png', decode('base64FileData'), { - contentType: 'image/png', - }) -``` diff --git a/apps/reference/_supabase_js/generated/storage-from-upload.mdx b/apps/reference/_supabase_js/generated/storage-from-upload.mdx deleted file mode 100644 index 1723775455a..00000000000 --- a/apps/reference/_supabase_js/generated/storage-from-upload.mdx +++ /dev/null @@ -1,391 +0,0 @@ ---- -id: storage-from-upload -title: 'from.upload()' -slug: /storage-from-upload -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Uploads a file to an existing bucket. - -```js -const avatarFile = event.target.files[0] -const { data, error } = await supabase.storage - .from('avatars') - .upload('public/avatar1.png', avatarFile, { - cacheControl: '3600', - upsert: false, - }) -``` - -## Parameters - -
    - -
  • -

    - - path - - - required - - - string - -

    -
    - -The file path, including the file name. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to upload. - -
    - -
  • - -
  • -

    - - fileBody - - - required - - - string | ArrayBuffer | ArrayBufferView | Blob | Buffer | File | FormData | ReadableStream | ReadableStream | URLSearchParams - -

    -
    - -The body of the file to be stored in the bucket. - -
    - -
      -
      Properties
      - -
    • -

      - - URLSearchParams - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - string - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - ReadableStream - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - ReadableStream - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - FormData - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - File - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - Buffer - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - Blob - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - ArrayBufferView - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - ArrayBuffer - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    - -
  • - -
  • -

    - - FileOptions - - - required - - - object - -

    -
    - -No description provided. - -
    - -
      -
      Properties
      - -
    • -

      - - cacheControl - - - optional - - - string - -

      -
      - -The number of seconds the asset is cached in the browser and in the Supabase CDN. This is set in the `Cache-Control: max-age=` header. Defaults to 3600 seconds. - -
      - -
    • - -
    • -

      - - contentType - - - optional - - - string - -

      -
      - -the `Content-Type` header value. Should be specified if using a `fileBody` that is neither `Blob` nor `File` nor `FormData`, otherwise will default to `text/plain;charset=UTF-8`. - -
      - -
    • - -
    • -

      - - upsert - - - optional - - - boolean - -

      -
      - -When upsert is set to true, the file is overwritten if it exists. When set to false, an error is thrown if the object already exists. Defaults to false. - -
      - -
    • - -
    - -
  • - -
- -## Notes - -- RLS policy permissions required: - - `buckets` table permissions: none - - `objects` table permissions: `insert` -- Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works -- For React Native, using either `Blob`, `File` or `FormData` does not work as intended. Upload file using `ArrayBuffer` from base64 file data instead, see example below. - -## Examples - -### Upload file - -```js -const avatarFile = event.target.files[0] -const { data, error } = await supabase.storage - .from('avatars') - .upload('public/avatar1.png', avatarFile, { - cacheControl: '3600', - upsert: false, - }) -``` - -### Upload file using `ArrayBuffer` from base64 file data - -```js -import { decode } from 'base64-arraybuffer' - -const { data, error } = await supabase.storage - .from('avatars') - .upload('public/avatar1.png', decode('base64FileData'), { - contentType: 'image/png', - }) -``` diff --git a/apps/reference/_supabase_js/generated/storage-getbucket.mdx b/apps/reference/_supabase_js/generated/storage-getbucket.mdx deleted file mode 100644 index 13636f5758f..00000000000 --- a/apps/reference/_supabase_js/generated/storage-getbucket.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -id: storage-getbucket -title: 'getBucket()' -slug: /storage-getbucket -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Retrieves the details of an existing Storage bucket. - -```js -const { data, error } = await supabase.storage.getBucket('avatars') -``` - -## Parameters - -
    - -
  • -

    - - id - - - required - - - string - -

    -
    - -The unique identifier of the bucket you would like to retrieve. - -
    - -
  • - -
- -## Notes - -- RLS policy permissions required: - - `buckets` table permissions: `select` - - `objects` table permissions: none -- Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works - -## Examples - -### Get bucket - -```js -const { data, error } = await supabase.storage.getBucket('avatars') -``` diff --git a/apps/reference/_supabase_js/generated/storage-listbuckets.mdx b/apps/reference/_supabase_js/generated/storage-listbuckets.mdx deleted file mode 100644 index a6597d1ec15..00000000000 --- a/apps/reference/_supabase_js/generated/storage-listbuckets.mdx +++ /dev/null @@ -1,30 +0,0 @@ ---- -id: storage-listbuckets -title: 'listBuckets()' -slug: /storage-listbuckets -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Retrieves the details of all Storage buckets within an existing project. - -```js -const { data, error } = await supabase.storage.listBuckets() -``` - -## Notes - -- RLS policy permissions required: - - `buckets` table permissions: `select` - - `objects` table permissions: none -- Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works - -## Examples - -### List buckets - -```js -const { data, error } = await supabase.storage.listBuckets() -``` diff --git a/apps/reference/_supabase_js/generated/storage-updatebucket.mdx b/apps/reference/_supabase_js/generated/storage-updatebucket.mdx deleted file mode 100644 index 5a7eddc95f0..00000000000 --- a/apps/reference/_supabase_js/generated/storage-updatebucket.mdx +++ /dev/null @@ -1,105 +0,0 @@ ---- -id: storage-updatebucket -title: 'updateBucket()' -slug: /storage-updatebucket -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Updates a Storage bucket - -```js -const { data, error } = await supabase.storage.updateBucket('avatars', { - public: false, -}) -``` - -## Parameters - -
    - -
  • -

    - - id - - - required - - - string - -

    -
    - -A unique identifier for the bucket you are updating. - -
    - -
  • - -
  • -

    - - options - - - required - - - object - -

    -
    - -No description provided. - -
    - -
      -
      Properties
      - -
    • -

      - - public - - - required - - - boolean - -

      -
      - -The visibility of the bucket. Public buckets don't require an authorization token to download objects, but still require a valid token for all other operations. - -
      - -
    • - -
    - -
  • - -
- -## Notes - -- RLS policy permissions required: - - `buckets` table permissions: `update` - - `objects` table permissions: none -- Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works - -## Examples - -### Update bucket - -```js -const { data, error } = await supabase.storage.updateBucket('avatars', { - public: false, -}) -``` diff --git a/apps/reference/_supabase_js/generated/subscribe.mdx b/apps/reference/_supabase_js/generated/subscribe.mdx deleted file mode 100644 index c78f6362474..00000000000 --- a/apps/reference/_supabase_js/generated/subscribe.mdx +++ /dev/null @@ -1,219 +0,0 @@ ---- -id: subscribe -title: 'on().subscribe()' -slug: /subscribe -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -```js -supabase - .channel('*') - .on('postgres_changes', { event: '*', schema: '*' }, (payload) => { - console.log('Change received!', payload) - }) - .subscribe() -``` - -## Parameters - -
    - -
  • -

    - - type - - - required - - - string - -

    -
    - -"postgres_changes" is the only type supported at this time - -
    - -
  • - -
  • -

    - - filter - - - required - - - object - -

    -
    - -An object with an event property and a schema property. Event property can be `*`, `insert`, `create`, `update`, or `delete`. - -
    - -
  • - -
  • -

    - - callback - - - required - - - Function - -

    -
    - -A callback function that will be called when the channel receives a message. - -
    - -
  • - -
- -## Notes - -- Realtime is disabled by default for new Projects for better database performance and security. You can turn it on by [managing replication](/docs/guides/api#managing-realtime). -- Row level security is not applied to delete statements. -- If you want to receive the "previous" data for updates and deletes, you will need to set `REPLICA IDENTITY` to `FULL`, like this: `ALTER TABLE your_table REPLICA IDENTITY FULL;` -- When a delete occurs, the contents of old_record will be broadcast to all subscribers to that table so ensure that each table's replica identity only contains information that is safe to expose publicly. -- The channel name must exactly match the schema/table/filter you want to listen to separated by colons. See below examples for additional context. - -## Examples - -### Listen to all database changes - -```js -supabase - .channel('*') - .on('postgres_changes', { event: '*', schema: '*' }, (payload) => { - console.log('Change received!', payload) - }) - .subscribe() -``` - -### Listening to a specific table - -```js -supabase - .channel('public:countries') - .on( - 'postgres_changes', - { event: '*', schema: 'public', table: 'countries' }, - (payload) => { - console.log('Change received!', payload) - } - ) - .subscribe() -``` - -### Listening to inserts - -```js -supabase - .channel('public:countries') - .on( - 'postgres_changes', - { event: 'INSERT', schema: 'public', table: 'countries' }, - (payload) => { - console.log('Change received!', payload) - } - ) - .subscribe() -``` - -### Listening to updates - -By default, Supabase will send only the updated record. If you want to receive the previous values as well you can -enable full replication for the table you are listening to: - -```sql -alter table "your_table" replica identity full; -``` - -```js -supabase - .channel('public:countries') - .on( - 'postgres_changes', - { event: 'UPDATE', schema: 'public', table: 'countries' }, - (payload) => { - console.log('Change received!', payload) - } - ) - .subscribe() -``` - -### Listening to deletes - -By default, Supabase does not send deleted records. If you want to receive the deleted record you can -enable full replication for the table you are listening too: - -```sql -alter table "your_table" replica identity full; -``` - -```js -supabase - .channel('public:countries') - .on( - 'postgres_changes', - { event: 'DELETE', schema: 'public', table: 'countries' }, - (payload) => { - console.log('Change received!', payload) - } - ) - .subscribe() -``` - -### Listening to multiple events - -You can chain listeners if you want to listen to multiple events for each table. - -```js -supabase - .channel('public:countries') - .on( - 'postgres_changes', - { event: 'INSERT', schema: 'public', table: 'countries' }, - handleRecordInserted - ) - .on( - 'postgres_changes', - { event: 'DELETE', schema: 'public', table: 'countries' }, - handleRecordDeleted - ) - .subscribe() -``` - -### Listening to row level changes - -You can listen to individual rows using the format `{table}:{col}=eq.{val}` - where `{col}` is the column name, and `{val}` is the value which you want to match. - -```js -supabase - .channel('public:countries:id=eq.200') - .on( - 'postgres_changes', - { - event: 'UPDATE', - schema: 'public', - table: 'countries', - filter: 'id=eq.200', - }, - handleRecordUpdated - ) - .subscribe() -``` diff --git a/apps/reference/_supabase_js/generated/supabase-auth-admin-api.mdx b/apps/reference/_supabase_js/generated/supabase-auth-admin-api.mdx deleted file mode 100644 index f191296b7db..00000000000 --- a/apps/reference/_supabase_js/generated/supabase-auth-admin-api.mdx +++ /dev/null @@ -1,14 +0,0 @@ ---- -id: supabase-auth-admin-api -title: 'Overview' -slug: /supabase-auth-admin-api -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -## Notes - -- Any method under the `supabase.auth.admin` namespace requires a `service_role` key. -- These methods are considered admin methods and should be called on a trusted server. Never expose your `service_role` key in the browser. diff --git a/apps/reference/_supabase_js/generated/textsearch.mdx b/apps/reference/_supabase_js/generated/textsearch.mdx deleted file mode 100644 index f7facded25a..00000000000 --- a/apps/reference/_supabase_js/generated/textsearch.mdx +++ /dev/null @@ -1,250 +0,0 @@ ---- -id: textsearch -title: 'textSearch()' -slug: /textsearch -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Only relevant for text and tsvector columns. Match only rows where -`column` matches the query string in `query`. - -## Parameters - -
    - -
  • -

    - - column - - - required - - - ColumnName - -

    -
    - -The text or tsvector column to filter on - -
    - -
  • - -
  • -

    - - query - - - required - - - string - -

    -
    - -The query text to match with - -
    - -
  • - -
  • -

    - - options - - - optional - - - object - -

    -
    - -Named parameters - -
    - -
      -
      Properties
      - -
    • -

      - - config - - - optional - - - string - -

      -
      - -The text search configuration to use - -
      - -
    • - -
    • -

      - - type - - - optional - - - plain | phrase | websearch - -

      -
      - -Change how the `query` text is interpreted - -
      - -
        -
        Properties
        - -
      • -

        - - websearch - - - required - - - literal - -

        -
        - -No description provided. - -
        - -
      • - -
      • -

        - - phrase - - - required - - - literal - -

        -
        - -No description provided. - -
        - -
      • - -
      • -

        - - plain - - - required - - - literal - -

        -
        - -No description provided. - -
        - -
      • - -
      - -
    • - -
    - -
  • - -
- -## Examples - -### Text search - -```js -const { data, error } = await supabase - .from('quotes') - .select('catchphrase') - .textSearch('catchphrase', `'fat' & 'cat'`, { - config: 'english', - }) -``` - -### Basic normalization - -Uses PostgreSQL's `plainto_tsquery` function. - -```js -const { data, error } = await supabase - .from('quotes') - .select('catchphrase') - .textSearch('catchphrase', `'fat' & 'cat'`, { - type: 'plain', - config: 'english', - }) -``` - -### Full normalization - -Uses PostgreSQL's `phraseto_tsquery` function. - -```js -const { data, error } = await supabase - .from('quotes') - .select('catchphrase') - .textSearch('catchphrase', `'fat' & 'cat'`, { - type: 'phrase', - config: 'english', - }) -``` - -### Websearch - -Uses PostgreSQL's `websearch_to_tsquery` function. -This function will never raise syntax errors, which makes it possible to use raw user-supplied input for search, and can be used -with advanced operators. - -- `unquoted text`: text not inside quote marks will be converted to terms separated by & operators, as if processed by plainto_tsquery. -- `"quoted text"`: text inside quote marks will be converted to terms separated by <-> operators, as if processed by phraseto_tsquery. -- `OR`: the word “or” will be converted to the | operator. -- `-`: a dash will be converted to the ! operator. - -```js -const { data, error } = await supabase - .from('quotes') - .select('catchphrase') - .textSearch('catchphrase', `'fat or cat'`, { - type: 'websearch', - config: 'english', - }) -``` diff --git a/apps/reference/_supabase_js/generated/update.mdx b/apps/reference/_supabase_js/generated/update.mdx deleted file mode 100644 index c2adbc12f24..00000000000 --- a/apps/reference/_supabase_js/generated/update.mdx +++ /dev/null @@ -1,202 +0,0 @@ ---- -id: update -title: 'Modify data: update()' -slug: /update -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Perform an UPDATE on the table or view. - -By default, updated rows are not returned. To return it, chain the call -with `.select()` after filters. - -```js -const { data, error } = await supabase - .from('cities') - .update({ name: 'Middle Earth' }) - .match({ name: 'Auckland' }) -``` - -## Parameters - -
    - -
  • -

    - - values - - - required - - - Row - -

    -
    - -The values to update with - -
    - -
  • - -
  • -

    - - options - - - required - - - object - -

    -
    - -Named parameters - -
    - -
      -
      Properties
      - -
    • -

      - - count - - - optional - - - exact | planned | estimated - -

      -
      - -Count algorithm to use to count updated rows. - -`"exact"`: Exact but slow count algorithm. Performs a `COUNT(*)` under the -hood. - -`"planned"`: Approximated but fast count algorithm. Uses the Postgres -statistics under the hood. - -`"estimated"`: Uses exact count for low numbers and planned count for high -numbers. - -
      - -
        -
        Properties
        - -
      • -

        - - estimated - - - required - - - literal - -

        -
        - -No description provided. - -
        - -
      • - -
      • -

        - - planned - - - required - - - literal - -

        -
        - -No description provided. - -
        - -
      • - -
      • -

        - - exact - - - required - - - literal - -

        -
        - -No description provided. - -
        - -
      • - -
      - -
    • - -
    - -
  • - -
- -## Notes - -- `update()` should always be combined with [Filters](/docs/reference/javascript/using-filters) to target the item(s) you wish to update. - -## Examples - -### Updating your data - -```js -const { data, error } = await supabase - .from('cities') - .update({ name: 'Middle Earth' }) - .match({ name: 'Auckland' }) -``` - -### Updating JSON data - -Postgres offers a -[number of operators](https://www.postgresql.org/docs/current/functions-json.html) -for working with JSON data. Right now it is only possible to update an entire JSON document, -but we are [working on ideas](https://github.com/PostgREST/postgrest/issues/465) for updating individual keys. For example: - -```js -const { data, error } = await supabase - .from('users') - .update( - ` - address: { - street: 'Melrose Place', - postcode: 90210 - } - ` - ) - .eq('address->postcode', 90210) -``` diff --git a/apps/reference/_supabase_js/generated/upsert.mdx b/apps/reference/_supabase_js/generated/upsert.mdx deleted file mode 100644 index 038d48d1099..00000000000 --- a/apps/reference/_supabase_js/generated/upsert.mdx +++ /dev/null @@ -1,309 +0,0 @@ ---- -id: upsert -title: 'Upsert data: upsert()' -slug: /upsert -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Perform an UPSERT on the table or view. Depending on the column(s) passed -to `onConflict`, `.upsert()` allows you to perform the equivalent of -`.insert()` if a row with the corresponding `onConflict` columns doesn't -exist, or if it does exist, perform an alternative action depending on -`ignoreDuplicates`. - -By default, upserted rows are not returned. To return it, chain the call -with `.select()`. - -```js -const { data, error } = await supabase - .from('messages') - .upsert({ id: 3, message: 'foo', username: 'supabot' }) -``` - -## Parameters - -
    - -
  • -

    - - values - - - required - - - Row | array - -

    -
    - -The values to upsert with. Pass an object to upsert a -single row or an array to upsert multiple rows. - -
    - -
      -
      Properties
      - -
    • -

      - - object - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - Row - - - required - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    - -
  • - -
  • -

    - - options - - - required - - - object - -

    -
    - -Named parameters - -
    - -
      -
      Properties
      - -
    • -

      - - count - - - optional - - - exact | planned | estimated - -

      -
      - -Count algorithm to use to count upserted rows. - -`"exact"`: Exact but slow count algorithm. Performs a `COUNT(*)` under the -hood. - -`"planned"`: Approximated but fast count algorithm. Uses the Postgres -statistics under the hood. - -`"estimated"`: Uses exact count for low numbers and planned count for high -numbers. - -
      - -
        -
        Properties
        - -
      • -

        - - estimated - - - required - - - literal - -

        -
        - -No description provided. - -
        - -
      • - -
      • -

        - - planned - - - required - - - literal - -

        -
        - -No description provided. - -
        - -
      • - -
      • -

        - - exact - - - required - - - literal - -

        -
        - -No description provided. - -
        - -
      • - -
      - -
    • - -
    • -

      - - ignoreDuplicates - - - optional - - - boolean - -

      -
      - -If `true`, duplicate rows are ignored. If -`false`, duplicate rows are merged with existing rows. - -
      - -
    • - -
    • -

      - - onConflict - - - optional - - - string - -

      -
      - -Comma-separated UNIQUE column(s) to specify how -duplicate rows are determined. Two rows are duplicates if all the -`onConflict` columns are equal. - -
      - -
    • - -
    - -
  • - -
- -## Notes - -- Primary keys should be included in the data payload in order for an update to work correctly. -- Primary keys must be natural, not surrogate. There are however, [workarounds](https://github.com/PostgREST/postgrest/issues/1118) for surrogate primary keys. - -## Examples - -### Upsert your data - -```js -const { data, error } = await supabase - .from('messages') - .upsert({ id: 3, message: 'foo', username: 'supabot' }) -``` - -### Bulk Upsert your data - -```js -const { data, error } = await supabase.from('messages').upsert([ - { id: 3, message: 'foo', username: 'supabot' }, - { id: 4, message: 'bar', username: 'supabot' }, -]) -``` - -### Upserting into tables with constraints - -Running the following will cause supabase to upsert data into the `users` table. -If the username 'supabot' already exists, the `onConflict` argument tells supabase to overwrite that row -based on the column passed into `onConflict`. - -```js -const { data, error } = await supabase - .from('users') - .upsert({ username: 'supabot' }, { onConflict: 'username' }) -``` - -### Return the exact number of rows - -```js -const { data, error, count } = await supabase.from('users').upsert( - { - id: 3, - message: 'foo', - username: 'supabot', - }, - { - count: 'exact', - } -) -``` diff --git a/apps/reference/_supabase_js/generated/using-filters.mdx b/apps/reference/_supabase_js/generated/using-filters.mdx deleted file mode 100644 index 6fc5eb2e9a4..00000000000 --- a/apps/reference/_supabase_js/generated/using-filters.mdx +++ /dev/null @@ -1,65 +0,0 @@ ---- -id: using-filters -title: 'Using Filters' -slug: /using-filters -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Filters can be used on `select()`, `update()`, and `delete()` queries. - -If a Postgres function returns a table response, you can also apply filters. - -### Applying Filters - -You must apply your filters to the end of your query. For example: - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .eq('name', 'The Shire') // Correct - -const { data, error } = await supabase - .from('cities') - .eq('name', 'The Shire') // Incorrect - .select('name, country_id') -``` - -### Chaining - -Filters can be chained together to produce advanced queries. For example: - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .gte('population', 1000) - .lt('population', 10000) -``` - -### Conditional Chaining - -Filters can be built up one step at a time and then executed. For example: - -```js -const filterByName = null -const filterPopLow = 1000 -const filterPopHigh = 10000 - -let query = supabase.from('cities').select('name, country_id') - -if (filterByName) { - query = query.eq('name', filterByName) -} -if (filterPopLow) { - query = query.gte('population', filterPopLow) -} -if (filterPopHigh) { - query = query.lt('population', filterPopHigh) -} - -const { data, error } = await query -``` diff --git a/apps/reference/_supabase_js/generated/using-modifiers.mdx b/apps/reference/_supabase_js/generated/using-modifiers.mdx deleted file mode 100644 index 1d6571a967b..00000000000 --- a/apps/reference/_supabase_js/generated/using-modifiers.mdx +++ /dev/null @@ -1,13 +0,0 @@ ---- -id: using-modifiers -title: 'Using Modifiers' -slug: /using-modifiers -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v2_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Modifiers can be used on `select()` queries. - -If a Postgres function returns a table response, you can also apply modifiers to the `rpc()` function. diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/auth-api-createuser.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/auth-api-createuser.mdx deleted file mode 100644 index adc4efa05c4..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/auth-api-createuser.mdx +++ /dev/null @@ -1,83 +0,0 @@ ---- -id: auth-api-createuser -title: 'createUser()' -slug: auth-api-createuser -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Creates a new user. - -This function should only be called on a server. Never expose your `service_role` key in the browser. - -```js -const { data: user, error } = await supabase.auth.api.createUser({ - email: 'user@email.com', - password: 'password', - user_metadata: { name: 'Yoda' }, -}) -``` - -## Parameters - -
    - -
  • -

    - - attributes - - - required - - - AdminUserAttributes - -

    -
    - -The data you want to create the user with. - -
    - -
  • - -
- -## Notes - -- Requires a `service_role` key. -- This function should be called on a server. Never expose your `service_role` key in the browser. -- If you do not provide the `email_confirm` and `phone_confirm` options to this function, both will default to false. - -## Examples - -### Create a new user. - -```js -const { data: user, error } = await supabase.auth.api.createUser({ - email: 'user@email.com', - password: 'password', - user_metadata: { name: 'Yoda' }, -}) -``` - -### Auto-confirm email. - -```js -const { data: user, error } = await supabase.auth.api.createUser({ - email: 'user@email.com', - email_confirm: true, -}) -``` - -### Auto-confirm phone. - -```js -const { data: user, error } = await supabase.auth.api.createUser({ - phone: '1234567890', - phone_confirm: true, -}) -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/auth-api-deleteuser.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/auth-api-deleteuser.mdx deleted file mode 100644 index 5217ed7d109..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/auth-api-deleteuser.mdx +++ /dev/null @@ -1,60 +0,0 @@ ---- -id: auth-api-deleteuser -title: 'deleteUser()' -slug: auth-api-deleteuser -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Delete a user. Requires a `service_role` key. - -This function should only be called on a server. Never expose your `service_role` key in the browser. - -```js -const { data: user, error } = await supabase.auth.api.deleteUser( - '715ed5db-f090-4b8c-a067-640ecee36aa0' -) -``` - -## Parameters - -
    - -
  • -

    - - uid - - - required - - - string - -

    -
    - -The user uid you want to remove. - -
    - -
  • - -
- -## Notes - -- Requires a `service_role` key. -- This function should be called on a server. Never expose your `service_role` key in the browser. - -## Examples - -### Remove a user completely. - -```js -const { data: user, error } = await supabase.auth.api.deleteUser( - '715ed5db-f090-4b8c-a067-640ecee36aa0' -) -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/auth-api-generatelink.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/auth-api-generatelink.mdx deleted file mode 100644 index 290eaebe8de..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/auth-api-generatelink.mdx +++ /dev/null @@ -1,158 +0,0 @@ ---- -id: auth-api-generatelink -title: 'generateLink()' -slug: auth-api-generatelink -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Generates authentication links to send via email. - -## Parameters - -
    - -
  • -

    - - type - - - required - - - signup | magiclink | recovery | invite | email_change_current | email_change_new - -

    -
    - -The link type ("signup" or "magiclink" or "recovery" or "invite"). - -
    - -
  • - -
  • -

    - - email - - - required - - - string - -

    -
    - -The user's email. - -
    - -
  • - -
  • -

    - - options - - - required - - - object - -

    -
    - -No description provided. - -
    - -
      -
      Properties
      - -
    • -

      - - data - - - optional - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - password - - - optional - - - string - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - redirectTo - - - optional - - - string - -

      -
      - -No description provided. - -
      - -
    • - -
    - -
  • - -
- -## Notes - -- Requires a `service_role` key. -- This function should only be called on a server. Never expose your `service_role` key in the browser. - -## Examples - -### Generate an invite link - -```js -const { data: user, error } = await supabase.auth.api.generateLink( - 'invite', - 'email@example.com' -) -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/auth-api-getuser.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/auth-api-getuser.mdx deleted file mode 100644 index 053e6326b90..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/auth-api-getuser.mdx +++ /dev/null @@ -1,59 +0,0 @@ ---- -id: auth-api-getuser -title: 'getUser()' -slug: auth-api-getuser -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Gets the current user details. - -This method is called by the GoTrueClient `update` where -the jwt is set to this.currentSession.access_token -and therefore, acts like getting the currently authenticated user - -```js -const { user, error } = await supabase.auth.api.getUser('ACCESS_TOKEN_JWT') -``` - -## Parameters - -
    - -
  • -

    - - jwt - - - required - - - string - -

    -
    - -A valid, logged-in JWT. Typically, the access_token for the currentSession - -
    - -
  • - -
- -## Notes - -- Fetches the user object from the database instead of local storage. -- Note that user() fetches the user object from local storage which might not be the most updated. -- Requires the user's access_token. - -## Examples - -### Fetch the user object using the access_token jwt. - -```js -const { user, error } = await supabase.auth.api.getUser('ACCESS_TOKEN_JWT') -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/auth-api-inviteuserbyemail.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/auth-api-inviteuserbyemail.mdx deleted file mode 100644 index ac02d608f34..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/auth-api-inviteuserbyemail.mdx +++ /dev/null @@ -1,117 +0,0 @@ ---- -id: auth-api-inviteuserbyemail -title: 'inviteUserByEmail()' -slug: auth-api-inviteuserbyemail -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Sends an invite link to an email address. - -## Parameters - -
    - -
  • -

    - - email - - - required - - - string - -

    -
    - -The email address of the user. - -
    - -
  • - -
  • -

    - - options - - - required - - - object - -

    -
    - -No description provided. - -
    - -
      -
      Properties
      - -
    • -

      - - data - - - optional - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - redirectTo - - - optional - - - string - -

      -
      - -No description provided. - -
      - -
    • - -
    - -
  • - -
- -## Notes - -- Requires a `service_role` key. -- This function should only be called on a server. Never expose your `service_role` key in the browser. - -## Examples - -### Basic example. - -```js -const { data: user, error } = await supabase.auth.api.inviteUserByEmail( - 'email@example.com' -) -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/auth-api-listusers.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/auth-api-listusers.mdx deleted file mode 100644 index 0b14bd4ba43..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/auth-api-listusers.mdx +++ /dev/null @@ -1,30 +0,0 @@ ---- -id: auth-api-listusers -title: 'listUsers()' -slug: auth-api-listusers -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Get a list of users. - -This function should only be called on a server. Never expose your `service_role` key in the browser. - -```js -const { data: user, error } = await supabase.auth.api.listUsers() -``` - -## Notes - -- Requires a `service_role` key. -- This function should be called on a server. Never expose your `service_role` key in the browser. - -## Examples - -### Get a full list of users. - -```js -const { data: user, error } = await supabase.auth.api.listUsers() -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/auth-api-resetpasswordforemail.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/auth-api-resetpasswordforemail.mdx deleted file mode 100644 index 3f43f15a224..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/auth-api-resetpasswordforemail.mdx +++ /dev/null @@ -1,160 +0,0 @@ ---- -id: auth-api-resetpasswordforemail -title: 'resetPasswordForEmail()' -slug: auth-api-resetpasswordforemail -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Sends a password reset request to an email address. - -```js -const { data, error } = await supabase.auth.api.resetPasswordForEmail( - 'user@email.com' -) -``` - -## Parameters - -
    - -
  • -

    - - email - - - required - - - string - -

    -
    - -The email address of the user. - -
    - -
  • - -
  • -

    - - options - - - required - - - object - -

    -
    - -No description provided. - -
    - -
      -
      Properties
      - -
    • -

      - - captchaToken - - - optional - - - string - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - redirectTo - - - optional - - - string - -

      -
      - -No description provided. - -
      - -
    • - -
    - -
  • - -
- -## Notes - -Sends a reset request to an email address. -When the user clicks the reset link in the email they are redirected back to your application. -Prompt the user for a new password and call `auth.update()`: - -```js -const { data, error } = await supabase.auth.update({ - password: new_password, -}) -``` - -## Examples - -### Reset password - -```js -const { data, error } = await supabase.auth.api.resetPasswordForEmail( - 'user@email.com' -) -``` - -### Reset password (React) - -```js -/** - * Step 1: Send the user an email to get a password reset token. - * This email contains a link which sends the user back to your application. - */ -const { data, error } = await supabase.auth.api.resetPasswordForEmail( - 'user@email.com' -) - -/** - * Step 2: Once the user is redirected back to your application, - * ask the user to reset their password. - */ -useEffect(() => { - supabase.auth.onAuthStateChange(async (event, session) => { - if (event == 'PASSWORD_RECOVERY') { - const newPassword = prompt('What would you like your new password to be?') - const { data, error } = await supabase.auth.update({ - password: newPassword, - }) - - if (data) alert('Password updated successfully!') - if (error) alert('There was an error updating your password.') - } - }) -}, []) -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/auth-api-sendmobileotp.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/auth-api-sendmobileotp.mdx deleted file mode 100644 index 08a1a60903c..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/auth-api-sendmobileotp.mdx +++ /dev/null @@ -1,115 +0,0 @@ ---- -id: auth-api-sendmobileotp -title: 'sendMobileOTP()' -slug: auth-api-sendmobileotp -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Sends a mobile OTP via SMS. Will register the account if it doesn't already exist - -## Parameters - -
    - -
  • -

    - - phone - - - required - - - string - -

    -
    - -The user's phone number WITH international prefix - -
    - -
  • - -
  • -

    - - options - - - required - - - object - -

    -
    - -No description provided. - -
    - -
      -
      Properties
      - -
    • -

      - - captchaToken - - - optional - - - string - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - shouldCreateUser - - - optional - - - boolean - -

      -
      - -No description provided. - -
      - -
    • - -
    - -
  • - -
- -## Notes - -- Requires a `service_role` key. -- This function should only be called on a server. Never expose your `service_role` key in the browser. - -## Examples - -### Basic example. - -```js -const { data: user, error } = await supabase.auth.api.sendMobileOTP('12345879') -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/auth-api-updateuserbyid.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/auth-api-updateuserbyid.mdx deleted file mode 100644 index 46a9489f7e8..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/auth-api-updateuserbyid.mdx +++ /dev/null @@ -1,127 +0,0 @@ ---- -id: auth-api-updateuserbyid -title: 'updateUserById()' -slug: auth-api-updateuserbyid -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Updates the user data. - -```js -const { data: user, error } = await supabase.auth.api.updateUserById( - '6aa5d0d4-2a9f-4483-b6c8-0cf4c6c98ac4', - { email: 'new@email.com' } -) -``` - -## Parameters - -
    - -
  • -

    - - uid - - - required - - - string - -

    -
    - -No description provided. - -
    - -
  • - -
  • -

    - - attributes - - - required - - - AdminUserAttributes - -

    -
    - -The data you want to update. - -This function should only be called on a server. Never expose your `service_role` key in the browser. - -
    - -
  • - -
- -## Notes - -- Requires a `service_role` key. -- This function should only be called on a server. Never expose your `service_role` key in the browser. - -## Examples - -### Updates a user's email. - -```js -const { data: user, error } = await supabase.auth.api.updateUserById( - '6aa5d0d4-2a9f-4483-b6c8-0cf4c6c98ac4', - { email: 'new@email.com' } -) -``` - -### Updates a user's password. - -```js -const { data: user, error } = await supabase.auth.api.updateUserById( - '6aa5d0d4-2a9f-4483-b6c8-0cf4c6c98ac4', - { password: 'new_password' } -) -``` - -### Updates a user's metadata. - -```js -const { data: user, error } = await supabase.auth.api.updateUserById( - '6aa5d0d4-2a9f-4483-b6c8-0cf4c6c98ac4', - { user_metadata: { hello: 'world' } } -) -``` - -### Updates a user's app_metadata. - -```js -const { data: user, error } = await supabase.auth.api.updateUserById( - '6aa5d0d4-2a9f-4483-b6c8-0cf4c6c98ac4', - { app_metadata: { plan: 'trial' } } -) -``` - -### Confirms a user's email address. - -```js -const { data: user, error } = await supabase.auth.api.updateUserById( - '6aa5d0d4-2a9f-4483-b6c8-0cf4c6c98ac4', - { email_confirm: true } -) -``` - -### Confirms a user's phone number. - -```js -const { data: user, error } = await supabase.auth.api.updateUserById( - '6aa5d0d4-2a9f-4483-b6c8-0cf4c6c98ac4', - { phone_confirm: true } -) -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/auth-onauthstatechange.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/auth-onauthstatechange.mdx deleted file mode 100644 index e978622e0b8..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/auth-onauthstatechange.mdx +++ /dev/null @@ -1,101 +0,0 @@ ---- -id: auth-onauthstatechange -title: 'onAuthStateChange()' -slug: auth-onauthstatechange -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Receive a notification every time an auth event happens. - -```js -supabase.auth.onAuthStateChange((event, session) => { - console.log(event, session) -}) -``` - -## Parameters - -
    - -
  • -

    - - callback - - - required - - - object - -

    -
    - -No description provided. - -
    - -
  • - -
- -## Examples - -### Listen to auth changes - -```js -supabase.auth.onAuthStateChange((event, session) => { - console.log(event, session) -}) -``` - -### Listen to sign in - -```js -supabase.auth.onAuthStateChange((event, session) => { - if (event == 'SIGNED_IN') console.log('SIGNED_IN', session) -}) -``` - -### Listen to sign out - -```js -supabase.auth.onAuthStateChange((event, session) => { - if (event == 'SIGNED_OUT') console.log('SIGNED_OUT', session) -}) -``` - -### Listen to token refresh - -```js -supabase.auth.onAuthStateChange((event, session) => { - if (event == 'TOKEN_REFRESHED') console.log('TOKEN_REFRESHED', session) -}) -``` - -### Listen to user updates - -```js -supabase.auth.onAuthStateChange((event, session) => { - if (event == 'USER_UPDATED') console.log('USER_UPDATED', session) -}) -``` - -### Listen to user deleted - -```js -supabase.auth.onAuthStateChange((event, session) => { - if (event == 'USER_DELETED') console.log('USER_DELETED', session) -}) -``` - -### Listen to password recovery events - -```js -supabase.auth.onAuthStateChange((event, session) => { - if (event == 'PASSWORD_RECOVERY') console.log('PASSWORD_RECOVERY', session) -}) -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/auth-session.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/auth-session.mdx deleted file mode 100644 index 131cd870799..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/auth-session.mdx +++ /dev/null @@ -1,23 +0,0 @@ ---- -id: auth-session -title: 'session()' -slug: auth-session -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Returns the session data, if there is an active session. - -```js -const session = supabase.auth.session() -``` - -## Examples - -### Get the session data - -```js -const session = supabase.auth.session() -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/auth-setauth.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/auth-setauth.mdx deleted file mode 100644 index f6b3a246965..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/auth-setauth.mdx +++ /dev/null @@ -1,110 +0,0 @@ ---- -id: auth-setauth -title: 'setAuth()' -slug: auth-setauth -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Overrides the JWT on the current client. The JWT will then be sent in all subsequent network requests. - -```js -function apiFunction(req, res) { - // Assuming the access token was sent as a header "X-Supabase-Auth" - const { access_token } = req.get('X-Supabase-Auth') - - // You can now use it within a Supabase Client - const supabase = createClient("https://xyzcompany.supabase.co", "public-anon-key") - const { user, error } = supabase.auth.setAuth(access_token) - - // This client will now send requests as this user - const { data } = await supabase.from('your_table').select() -} -``` - -## Parameters - -
    - -
  • -

    - - access_token - - - required - - - string - -

    -
    - -a jwt access token - -
    - -
  • - -
- -## Examples - -### Basic example. - -This is most useful on server-side functions where you cannot log the user in, but have access to the user's access token. - -```js -function apiFunction(req, res) { - // Assuming the access token was sent as a header "X-Supabase-Auth" - const { access_token } = req.get('X-Supabase-Auth') - - // You can now use it within a Supabase Client - const supabase = createClient("https://xyzcompany.supabase.co", "public-anon-key") - const { user, error } = supabase.auth.setAuth(access_token) - - // This client will now send requests as this user - const { data } = await supabase.from('your_table').select() -} -``` - -### With Express. - -```js -/** - * Make a request from the client to your server function - */ -async function makeApiRequest() { - const token = newClient.session()?.access_token - - await fetch('https://example.com/withAuth', { - method: 'GET', - withCredentials: true, - credentials: 'include', - headers: { - 'Content-Type': 'application/json', - Authorization: bearer, // Your own auth - 'X-Supabase-Auth': token, // Set the Supabase user - }, - }) -} - -/** - * Use the Auth token in your server-side function. - */ -async function apiFunction(req, res) { - const { access_token } = req.get('X-Supabase-Auth') - - // You can now use it within a Supabase Client - const supabase = createClient( - 'https://xyzcompany.supabase.co', - 'public-anon-key' - ) - const { user, error } = supabase.auth.setAuth(access_token) - - // This client will now send requests as this user - const { data } = await supabase.from('your_table').select() -} -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/auth-signin.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/auth-signin.mdx deleted file mode 100644 index c7ff4baf7ff..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/auth-signin.mdx +++ /dev/null @@ -1,275 +0,0 @@ ---- -id: auth-signin -title: 'signIn()' -slug: auth-signin -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Log in an existing user, or login via a third-party provider. - -```js -const { user, session, error } = await supabase.auth.signIn({ - email: 'example@email.com', - password: 'example-password', -}) -``` - -## Parameters - -
    - -
  • -

    - - __namedParameters - - - required - - - UserCredentials - -

    -
    - -No description provided. - -
    - -
  • - -
  • -

    - - options - - - required - - - object - -

    -
    - -No description provided. - -
    - -
      -
      Properties
      - -
    • -

      - - captchaToken - - - optional - - - string - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - queryParams - - - optional - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - redirectTo - - - optional - - - string - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - scopes - - - optional - - - string - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - shouldCreateUser - - - optional - - - boolean - -

      -
      - -No description provided. - -
      - -
    • - -
    - -
  • - -
- -## Notes - -- A user can sign up either via email or OAuth. -- If you provide `email` without a `password`, the user will be sent a magic link. -- The magic link's destination URL is determined by the SITE_URL config variable. To change this, you can go to Authentication -> Settings on [app.supabase.com](https://app.supabase.com) -- Specifying a `provider` will open the browser to the relevant login page. - -## Examples - -### Sign in with email. - -```js -const { user, session, error } = await supabase.auth.signIn({ - email: 'example@email.com', - password: 'example-password', -}) -``` - -### Sign in with magic link. - -If no password is provided, the user will be sent a "magic link" to their email address, which they can click to open your application with a valid session. By default, a given user can only request a Magic Link once every 60 seconds. - -```js -const { user, session, error } = await supabase.auth.signIn({ - email: 'example@email.com', -}) -``` - -### Sign in using third-party providers. - -Supabase supports many different [third-party providers](https://supabase.com/docs/guides/auth#providers). - -```js -const { user, session, error } = await supabase.auth.signIn({ - // provider can be 'github', 'google', 'gitlab', and more - provider: 'github', -}) -``` - -### Sign in with Phone. - -Supabase supports Phone Auth. - -```js -const { user, session, error } = await supabase.auth.signIn({ - phone: '+13334445555', - password: 'some-password', -}) -``` - -### Sign in with redirect. - -Note that the `redirectTo` param is only relevant for OAuth logins, where the login flow is managed by -the Auth server. If you are using email/phone logins you should set up your own redirects (within the email/sms template). - -Sometimes you want to control where the user is redirected to after they are logged in. Supabase supports this for -any URL path on your website (the URL must either be on the same domain as your Site URL [see Auth>Settings in dashboard], or must match one of the Additional Redirect URLs [also in Auth>Settings]). - -```js -const { user, session, error } = await supabase.auth.signIn( - { - provider: 'github', - }, - { - redirectTo: 'https://example.com/welcome', - } -) -``` - -### Sign in with scopes. - -If you need additional data from an OAuth provider, you can include a space-separated list of scopes in your request to get back an OAuth provider token. -You may also need to specify the scopes in the provider's OAuth app settings, depending on the provider. - -```js -const { user, session, error } = await supabase.auth.signIn( - { - provider: 'github', - }, - { - scopes: 'repo gist notifications', - } -) -const oAuthToken = session.provider_token // use to access provider API -``` - -### Sign in using a refresh token (e.g. in React Native). - -If you are completing a sign up or login in a React Native app you can pass the refresh token obtained from the provider to obtain a session. - -```js -// An example using Expo's `AuthSession` -const redirectUri = AuthSession.makeRedirectUri({ useProxy: false }) -const provider = 'google' - -AuthSession.startAsync({ - authUrl: `https://MYSUPABASEAPP.supabase.co/auth/v1/authorize?provider=${provider}&redirect_to=${redirectUri}`, - returnUrl: redirectUri, -}).then(async (response: any) => { - if (!response) return - const { user, session, error } = await supabase.auth.signIn({ - refreshToken: response.params?.refresh_token, - }) -}) -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/auth-signout.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/auth-signout.mdx deleted file mode 100644 index 976cf373065..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/auth-signout.mdx +++ /dev/null @@ -1,26 +0,0 @@ ---- -id: auth-signout -title: 'signOut()' -slug: auth-signout -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Inside a browser context, `signOut()` will remove the logged in user from the browser session -and log them out - removing all items from localstorage and then trigger a "SIGNED_OUT" event. - -For server-side management, you can revoke all refresh tokens for a user by passing a user's JWT through to `auth.api.signOut(JWT: string)`. There is no way to revoke a user's session JWT before it automatically expires - -```js -const { error } = await supabase.auth.signOut() -``` - -## Examples - -### Sign out - -```js -const { error } = await supabase.auth.signOut() -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/auth-signup.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/auth-signup.mdx deleted file mode 100644 index 387e018a814..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/auth-signup.mdx +++ /dev/null @@ -1,189 +0,0 @@ ---- -id: auth-signup -title: 'signUp()' -slug: auth-signup -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Creates a new user. - -```js -const { user, session, error } = await supabase.auth.signUp({ - email: 'example@email.com', - password: 'example-password', -}) -``` - -## Parameters - -
    - -
  • -

    - - __namedParameters - - - required - - - UserCredentials - -

    -
    - -No description provided. - -
    - -
  • - -
  • -

    - - options - - - required - - - object - -

    -
    - -No description provided. - -
    - -
      -
      Properties
      - -
    • -

      - - captchaToken - - - optional - - - string - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - data - - - optional - - - object - -

      -
      - -No description provided. - -
      - -
    • - -
    • -

      - - redirectTo - - - optional - - - string - -

      -
      - -No description provided. - -
      - -
    • - -
    - -
  • - -
- -## Notes - -- By default, the user will need to verify their email address before logging in. If you would like to change this, you can disable "Email Confirmations" by going to Authentication -> Settings on [app.supabase.com](https://app.supabase.com) -- If "Email Confirmations" is turned on, a `user` is returned but `session` will be null -- If "Email Confirmations" is turned off, both a `user` and a `session` will be returned -- When the user confirms their email address, they will be redirected to localhost:3000 by default. To change this, you can go to Authentication -> Settings on [app.supabase.com](https://app.supabase.com) -- If signUp() is called for an existing confirmed user: - - If "Enable email confirmations" is enabled on the "Authentication" -> "Settings" page, an obfuscated / fake user object will be returned. - - If "Enable email confirmations" is disabled, an error with a message "User already registered" will be returned. -- To check if a user already exists, refer to getUser(). - -## Examples - -### Sign up. - -```js -const { user, session, error } = await supabase.auth.signUp({ - email: 'example@email.com', - password: 'example-password', -}) -``` - -### Sign up with additional user meta data. - -```js -const { user, session, error } = await supabase.auth.signUp( - { - email: 'example@email.com', - password: 'example-password', - }, - { - data: { - first_name: 'John', - age: 27, - }, - } -) -``` - -### Sign up with third-party providers. - -You can sign up with OAuth providers using the [`signIn()`](/docs/reference/javascript/auth-signin#sign-in-using-third-party-providers) method. - -### Sign up with Phone. - -Supabase supports Phone Auth. After a user has verified their number, they can use the [`signIn()`](/docs/reference/javascript/auth-signin#sign-in-using-phone) method. - -```js -const { user, session, error } = await supabase.auth.signUp({ - phone: '+13334445555', - password: 'some-password', -}) - -// After receiving an SMS with One Time Password. -let { session, error } = await supabase.auth.verifyOTP({ - phone: '+13334445555', - token: '123456', -}) -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/auth-update.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/auth-update.mdx deleted file mode 100644 index f330fc9600d..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/auth-update.mdx +++ /dev/null @@ -1,73 +0,0 @@ ---- -id: auth-update -title: 'update()' -slug: auth-update -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Updates user data, if there is a logged in user. - -```js -const { user, error } = await supabase.auth.update({ email: 'new@email.com' }) -``` - -## Parameters - -
    - -
  • -

    - - attributes - - - required - - - UserAttributes - -

    -
    - -No description provided. - -
    - -
  • - -
- -## Notes - -User email: By Default, email updates sends a confirmation link to both the user's current and new email. -To only send a confirmation link to the user's new email, disable **Secure email change** in your project's [email auth provider settings](https://app.supabase.com/project/_/auth/settings). - -User metadata: It's generally better to store user data in a table within your public schema (i.e., `public.users`). -Use the `update()` method if you have data which rarely changes or is specific only to the logged in user. - -## Examples - -### Update the email for an authenticated user - -Sends a "Confirm Email Change" email to the new email address. - -```js -const { user, error } = await supabase.auth.update({ email: 'new@email.com' }) -``` - -### Update the password for an authenticated user - -```js -const { user, error } = await supabase.auth.update({ password: 'new password' }) -``` - -### Update the user's metadata - -```js -const { user, error } = await supabase.auth.update({ - data: { hello: 'world' }, -}) -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/auth-user.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/auth-user.mdx deleted file mode 100644 index 242000a148b..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/auth-user.mdx +++ /dev/null @@ -1,29 +0,0 @@ ---- -id: auth-user -title: 'user()' -slug: auth-user -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Inside a browser context, `user()` will return the user data, if there is a logged in user. - -For server-side management, you can get a user through `auth.api.getUserByCookie()` - -```js -const user = supabase.auth.user() -``` - -## Notes - -This method gets the user object from memory. - -## Examples - -### Get the logged in user - -```js -const user = supabase.auth.user() -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/containedby.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/containedby.mdx deleted file mode 100644 index 2c5dcddee2a..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/containedby.mdx +++ /dev/null @@ -1,65 +0,0 @@ ---- -id: containedby -title: '.containedBy()' -slug: containedby -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -```js -const { data, error } = await supabase - .from('countries') - .select('name, id, main_exports') - .containedBy('main_exports', ['cars', 'food', 'machine']) -``` - -## Notes - -- `.containedBy()` can work on array columns or range columns. - - ```js - .containedBy('arraycol',["a","b"]) // You can use a javascript array for an array column - .containedBy('arraycol','{"a","b"}') // You can use a string with Postgres array {} for array column. - .containedBy('rangecol','(1,2]') // Use Postgres range syntax for range column. - .containedBy('rangecol',`(${arr}]`) // You can insert an array into a string. - ``` - -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('countries') - .select('name, id, main_exports') - .containedBy('main_exports', ['cars', 'food', 'machine']) -``` - -### With `update()` - -```js -const { data, error } = await supabase - .from('countries') - .update({ name: 'Mordor' }) - .containedBy('main_exports', ['orks', 'surveillance', 'evil']) -``` - -### With `delete()` - -```js -const { data, error } = await supabase - .from('countries') - .delete() - .containedBy('main_exports', ['cars', 'food', 'machine']) -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase - .rpc('echo_all_countries') - .containedBy('main_exports', ['cars', 'food', 'machine']) -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/contains.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/contains.mdx deleted file mode 100644 index f92e086dc69..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/contains.mdx +++ /dev/null @@ -1,66 +0,0 @@ ---- -id: contains -title: '.contains()' -slug: contains -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -```js -const { data, error } = await supabase - .from('countries') - .select('name, id, main_exports') - .contains('main_exports', ['oil']) -``` - -## Notes - -- `.contains()` can work on array columns or range columns. - It is very useful for finding rows where a tag array contains all the values in the filter array. - - ```js - .contains('arraycol',["a","b"]) // You can use a javascript array for an array column - .contains('arraycol','{"a","b"}') // You can use a string with Postgres array {} for array column. - .contains('rangecol','(1,2]') // Use Postgres range syntax for range column. - .contains('rangecol',`(${arr}]`) // You can insert an array into a string. - ``` - -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('countries') - .select('name, id, main_exports') - .contains('main_exports', ['oil']) -``` - -### With `update()` - -```js -const { data, error } = await supabase - .from('countries') - .update({ name: 'Mordor' }) - .contains('main_exports', ['oil']) -``` - -### With `delete()` - -```js -const { data, error } = await supabase - .from('countries') - .delete() - .contains('main_exports', ['oil']) -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase - .rpc('echo_all_countries') - .contains('main_exports', ['oil']) -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/delete.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/delete.mdx deleted file mode 100644 index 86e08987590..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/delete.mdx +++ /dev/null @@ -1,109 +0,0 @@ ---- -id: delete -title: 'Delete data: delete()' -slug: delete -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Performs a DELETE on the table. - -```js -const { data, error } = await supabase - .from('cities') - .delete() - .match({ id: 666 }) -``` - -## Parameters - -
    - -
  • -

    - - __namedParameters - - - required - - - object - -

    -
    - -No description provided. - -
    - -
      -
      Properties
      - -
    • -

      - - returning - - - required - - - minimal | representation - -

      -
      - -If `true`, return the deleted row(s) in the response. - -
      - -
    • - -
    • -

      - - count - - - required - - - null | exact | planned | estimated - -

      -
      - -Count algorithm to use to count rows in a table. - -
      - -
    • - -
    - -
  • - -
- -## Notes - -- `delete()` should always be combined with [filters](/docs/reference/javascript/using-filters) to target the item(s) you wish to delete. -- If you use `delete()` with filters and you have - [RLS](/docs/learn/auth-deep-dive/auth-row-level-security) enabled, only - rows visible through `SELECT` policies are deleted. Note that by default - no rows are visible, so you need at least one `SELECT`/`ALL` policy that - makes the rows visible. - -## Examples - -### Delete records - -```js -const { data, error } = await supabase - .from('cities') - .delete() - .match({ id: 666 }) -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/eq.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/eq.mdx deleted file mode 100644 index f41a2a305b0..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/eq.mdx +++ /dev/null @@ -1,103 +0,0 @@ ---- -id: eq -title: '.eq()' -slug: eq -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows whose value on the stated `column` exactly matches the -specified `value`. - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .eq('name', 'The shire') -``` - -## Parameters - -
    - -
  • -

    - - column - - - required - - - object - -

    -
    - -The column to filter on. - -
    - -
  • - -
  • -

    - - value - - - required - - - object - -

    -
    - -The value to filter with. - -
    - -
  • - -
- -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .eq('name', 'The shire') -``` - -### With `update()` - -```js -const { data, error } = await supabase - .from('cities') - .update({ name: 'Mordor' }) - .eq('name', 'San Francisco') -``` - -### With `delete()` - -```js -const { data, error } = await supabase - .from('cities') - .delete() - .eq('name', 'Mordor') -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase - .rpc('echo_all_cities') - .eq('name', 'San Francisco') -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/filter.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/filter.mdx deleted file mode 100644 index 80437616d9e..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/filter.mdx +++ /dev/null @@ -1,141 +0,0 @@ ---- -id: filter -title: '.filter()' -slug: filter -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows whose `column` satisfies the filter. - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .filter('name', 'in', '("Paris","Tokyo")') -``` - -## Parameters - -
    - -
  • -

    - - column - - - required - - - object - -

    -
    - -The column to filter on. - -
    - -
  • - -
  • -

    - - operator - - - required - - - FilterOperator - -

    -
    - -The operator to filter with. - -
    - -
  • - -
  • -

    - - value - - - required - - - any - -

    -
    - -The value to filter with. - -
    - -
  • - -
- -## Notes - -- `.filter()` expects you to use the raw [PostgREST syntax](https://postgrest.org/en/stable/api.html#horizontal-filtering-rows) for the filter names and values, so it should only be used as an escape hatch in case other filters don't work. - ```js - .filter('arraycol','cs','{"a","b"}') // Use Postgres array {} for array column and 'cs' for contains. - .filter('rangecol','cs','(1,2]') // Use Postgres range syntax for range column. - .filter('id','in','(6,7)') // Use Postgres list () for in filter. - .filter('id','in',`(${arr})`) // You can insert a javascript array. - ``` - -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .filter('name', 'in', '("Paris","Tokyo")') -``` - -### With `update()` - -```js -const { data, error } = await supabase - .from('cities') - .update({ name: 'Mordor' }) - .filter('name', 'in', '("Paris","Tokyo")') -``` - -### With `delete()` - -```js -const { data, error } = await supabase - .from('cities') - .delete() - .filter('name', 'in', '("Paris","Tokyo")') -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase - .rpc('echo_all_cities') - .filter('name', 'in', '("Paris","Tokyo")') -``` - -### Filter embedded resources - -```js -const { data, error } = await supabase - .from('cities') - .select('name, countries ( name )') - .filter('countries.name', 'in', '("France","Japan")') -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/generated/.gitkeep b/apps/reference/_supabase_js_versioned_docs/version-v1/generated/.gitkeep new file mode 100644 index 00000000000..e69de29bb2d diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/generating-types.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/generating-types.mdx index a95fef1ec9f..a5089800e99 100644 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/generating-types.mdx +++ b/apps/reference/_supabase_js_versioned_docs/version-v1/generating-types.mdx @@ -1,12 +1,12 @@ --- id: generating-types -title: 'Generating Types' +title: "Generating Types" slug: generating-types custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml --- -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; Supabase will soon release native type generators that dump your database types for various languages. For now, we support TypeScript [through third-party tools](/docs/guides/api/generating-types). @@ -19,12 +19,12 @@ If you don't provide a type for the row you need to explicitly pass `from(' ```ts type Message = { - id: number - inserted_at: string - message: string - user_id: string - channel_id: number - author: { username: string } + id: number; + inserted_at: string; + message: string; + user_id: string; + channel_id: number; + author: { username: string }; } const response = await supabase @@ -39,4 +39,4 @@ const response = await supabase .select('*, author:user_id(username)') .match({ channel_id: 2 }) response.data // Response data will be of type Array. -``` +``` \ No newline at end of file diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/getsubscriptions.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/getsubscriptions.mdx deleted file mode 100644 index a4c69999390..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/getsubscriptions.mdx +++ /dev/null @@ -1,23 +0,0 @@ ---- -id: getsubscriptions -title: 'getSubscriptions()' -slug: getsubscriptions -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Returns an array of all your subscriptions. - -```js -const subscriptions = supabase.getSubscriptions() -``` - -## Examples - -### Get all subscriptions - -```js -const subscriptions = supabase.getSubscriptions() -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/gt.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/gt.mdx deleted file mode 100644 index c176de4161f..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/gt.mdx +++ /dev/null @@ -1,103 +0,0 @@ ---- -id: gt -title: '.gt()' -slug: gt -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows whose value on the stated `column` is greater than the -specified `value`. - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .gt('country_id', 250) -``` - -## Parameters - -
    - -
  • -

    - - column - - - required - - - object - -

    -
    - -The column to filter on. - -
    - -
  • - -
  • -

    - - value - - - required - - - object - -

    -
    - -The value to filter with. - -
    - -
  • - -
- -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .gt('country_id', 250) -``` - -### With `update()` - -```js -const { data, error } = await supabase - .from('cities') - .update({ name: 'Mordor' }) - .gt('country_id', 250) -``` - -### With `delete()` - -```js -const { data, error } = await supabase - .from('cities') - .delete() - .gt('country_id', 250) -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase - .rpc('echo_all_cities') - .gt('country_id', 250) -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/gte.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/gte.mdx deleted file mode 100644 index 02a67e876f8..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/gte.mdx +++ /dev/null @@ -1,103 +0,0 @@ ---- -id: gte -title: '.gte()' -slug: gte -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows whose value on the stated `column` is greater than or -equal to the specified `value`. - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .gte('country_id', 250) -``` - -## Parameters - -
    - -
  • -

    - - column - - - required - - - object - -

    -
    - -The column to filter on. - -
    - -
  • - -
  • -

    - - value - - - required - - - object - -

    -
    - -The value to filter with. - -
    - -
  • - -
- -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .gte('country_id', 250) -``` - -### With `update()` - -```js -const { data, error } = await supabase - .from('cities') - .update({ name: 'Mordor' }) - .gte('country_id', 250) -``` - -### With `delete()` - -```js -const { data, error } = await supabase - .from('cities') - .delete() - .gte('country_id', 250) -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase - .rpc('echo_all_cities') - .gte('country_id', 250) -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/ilike.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/ilike.mdx deleted file mode 100644 index ed9d9b80231..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/ilike.mdx +++ /dev/null @@ -1,103 +0,0 @@ ---- -id: ilike -title: '.ilike()' -slug: ilike -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows whose value in the stated `column` matches the supplied -`pattern` (case insensitive). - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .ilike('name', '%la%') -``` - -## Parameters - -
    - -
  • -

    - - column - - - required - - - object - -

    -
    - -The column to filter on. - -
    - -
  • - -
  • -

    - - pattern - - - required - - - string - -

    -
    - -The pattern to filter with. - -
    - -
  • - -
- -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .ilike('name', '%la%') -``` - -### With `update()` - -```js -const { data, error } = await supabase - .from('cities') - .update({ name: 'Mordor' }) - .ilike('name', '%la%') -``` - -### With `delete()` - -```js -const { data, error } = await supabase - .from('cities') - .delete() - .ilike('name', '%la%') -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase - .rpc('echo_all_cities') - .ilike('name', '%la%') -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/in.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/in.mdx deleted file mode 100644 index e52122350c9..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/in.mdx +++ /dev/null @@ -1,103 +0,0 @@ ---- -id: in -title: '.in()' -slug: in -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows whose value on the stated `column` is found on the -specified `values`. - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .in('name', ['Rio de Janeiro', 'San Francisco']) -``` - -## Parameters - -
    - -
  • -

    - - column - - - required - - - object - -

    -
    - -The column to filter on. - -
    - -
  • - -
  • -

    - - values - - - required - - - object - -

    -
    - -The values to filter with. - -
    - -
  • - -
- -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .in('name', ['Rio de Janeiro', 'San Francisco']) -``` - -### With `update()` - -```js -const { data, error } = await supabase - .from('cities') - .update({ name: 'Mordor' }) - .in('name', ['Rio de Janeiro', 'San Francisco']) -``` - -### With `delete()` - -```js -const { data, error } = await supabase - .from('cities') - .delete() - .in('name', ['Rio de Janeiro', 'San Francisco']) -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase - .rpc('echo_all_cities') - .in('name', ['Rio de Janeiro', 'San Francisco']) -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/index.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/index.mdx index 0d0cc97fc5d..d4f3a229100 100644 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/index.mdx +++ b/apps/reference/_supabase_js_versioned_docs/version-v1/index.mdx @@ -1,11 +1,12 @@ --- id: index -title: 'Supabase Client' +title: "Supabase Client" slug: supabase-client custom_edit_url: ../../spec/supabase_js_v1_legacy.yml --- -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; -Supabase JavaScript. + +Supabase JavaScript. \ No newline at end of file diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/initializing.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/initializing.mdx index 3051613f499..5b95cefa7dc 100644 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/initializing.mdx +++ b/apps/reference/_supabase_js_versioned_docs/version-v1/initializing.mdx @@ -1,20 +1,24 @@ --- id: initializing -title: 'Initializing' +title: "Initializing" slug: initializing custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml --- -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; You can initialize a new Supabase client using the `createClient()` method. The Supabase client is your entrypoint to the rest of the Supabase functionality and is the easiest way to interact with everything we offer within the Supabase ecosystem. + + + ## Parameters +
  • @@ -37,6 +41,7 @@ The unique Supabase URL which is supplied when you create a new project in your
  • +
  • @@ -57,6 +62,7 @@ The unique Supabase Key which is supplied when you create a new project in your

  • +
  • @@ -71,7 +77,7 @@ The unique Supabase Key which is supplied when you create a new project in your

    -No description provided. +No description provided.
    @@ -79,22 +85,36 @@ No description provided.
+ + + + + + + + + + + + + ## Examples ### createClient() + + ```js import { createClient } from '@supabase/supabase-js' // Create a single supabase client for interacting with your database -const supabase = createClient( - 'https://xyzcompany.supabase.co', - 'public-anon-key' -) +const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key') ``` ### With additional parameters + + ```js import { createClient } from '@supabase/supabase-js' @@ -103,28 +123,22 @@ const options = { headers: { 'x-my-custom-header': 'my-app-name' }, autoRefreshToken: true, persistSession: true, - detectSessionInUrl: true, + detectSessionInUrl: true } -const supabase = createClient( - 'https://xyzcompany.supabase.co', - 'public-anon-key', - options -) +const supabase = createClient("https://xyzcompany.supabase.co", "public-anon-key", options) ``` ### API schemas + + ```js import { createClient } from '@supabase/supabase-js' // Provide a custom schema. Defaults to "public". -const supabase = createClient( - 'https://xyzcompany.supabase.co', - 'public-anon-key', - { - schema: 'other_schema', - } -) +const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key', { + schema: 'other_schema' +}) ``` By default the API server points to the `public` schema. You can enable other database schemas within the Dashboard. @@ -134,18 +148,16 @@ Note: each client connection can only access a single schema, so the code above ### Custom `fetch` implementation + + ```js import { createClient } from '@supabase/supabase-js' -const supabase = createClient( - 'https://xyzcompany.supabase.co', - 'public-anon-key', - { - fetch: fetch.bind(globalThis), - } -) +const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key', { + fetch: fetch.bind(globalThis) +}) ``` `supabase-js` uses the [`cross-fetch`](https://www.npmjs.com/package/cross-fetch) library to make HTTP requests, but an alternative `fetch` implementation can be provided as an option. -This is most useful in environments where `cross-fetch` is not compatible (for instance Cloudflare Workers). +This is most useful in environments where `cross-fetch` is not compatible (for instance Cloudflare Workers). \ No newline at end of file diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/insert.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/insert.mdx deleted file mode 100644 index 9b33b5019f5..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/insert.mdx +++ /dev/null @@ -1,110 +0,0 @@ ---- -id: insert -title: 'Create data: insert()' -slug: insert -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Performs an INSERT into the table. - -```js -const { data, error } = await supabase - .from('cities') - .insert([{ name: 'The Shire', country_id: 554 }]) -``` - -## Parameters - -
    - -
  • -

    - - values - - - required - - - Partial | array - -

    -
    - -The values to insert. - -
    - -
  • - -
  • -

    - - options - - - optional - - - undefined | reflection - -

    -
    - -No description provided. - -
    - -
  • - -
- -## Notes - -- By default, every time you run `insert()`, the client library will make a `select` to return the full record. - This is convenient, but it can also cause problems if your Policies are not configured to allow the `select` operation. - If you are using Row Level Security and you are encountering problems, try setting the `returning` param to `minimal`. - -## Examples - -### Create a record - -```js -const { data, error } = await supabase - .from('cities') - .insert([{ name: 'The Shire', country_id: 554 }]) -``` - -### Bulk create - -When running a bulk create, the operation is handled in a single transaction. If any of the inserts fail, all other operations are -rolled back. - -```js -const { data, error } = await supabase.from('cities').insert([ - { name: 'The Shire', country_id: 554 }, - { name: 'Rohan', country_id: 555 }, -]) -``` - -### Upsert - -For upsert, if set to true, primary key columns would need to be included -in the data parameter in order for an update to properly happen. Also, primary keys -used must be natural, not surrogate. There are however, -[workarounds](https://github.com/PostgREST/postgrest/issues/1118) -for surrogate primary keys. - -```js -const { data, error } = await supabase.from('cities').insert( - [ - { name: 'The Shire', country_id: 554 }, - { name: 'Rohan', country_id: 555 }, - { name: 'City by the Bay', country_id: 840 }, - ], - { upsert: true } -) -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/installing.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/installing.mdx index 5fe252d4cb0..37dca1ccac5 100644 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/installing.mdx +++ b/apps/reference/_supabase_js_versioned_docs/version-v1/installing.mdx @@ -1,12 +1,12 @@ --- id: installing -title: 'Installing' +title: "Installing" slug: installing custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml --- -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; All JavaScript libraries are built directly by the Supabase team. @@ -15,13 +15,11 @@ Other languages are built by the community and supported by Supabase. ## JavaScript Via NPM - ```bash npm install @supabase/supabase-js ``` Via Yarn - ```bash yarn add @supabase/supabase-js ``` @@ -29,9 +27,8 @@ yarn add @supabase/supabase-js Find the source code on [GitHub](https://github.com/supabase/supabase-js). Or via CDN - ```js //or -``` +``` \ No newline at end of file diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/invoke.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/invoke.mdx deleted file mode 100644 index 4e58484e479..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/invoke.mdx +++ /dev/null @@ -1,105 +0,0 @@ ---- -id: invoke -title: 'invoke()' -slug: invoke -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Invokes a Supabase Function. - -```js -const { data: user, error } = await supabase.functions.invoke('hello', { - body: JSON.stringify({ foo: 'bar' }), -}) -``` - -## Parameters - -
    - -
  • -

    - - functionName - - - required - - - string - -

    -
    - -the name of the function to invoke - -
    - -
  • - -
  • -

    - - invokeOptions - - - optional - - - FunctionInvokeOptions - -

    -
    - -object with the following properties -`headers`: object representing the headers to send with the request -`body`: the body of the request -`responseType`: how the response should be parsed. The default is `json` - -
    - -
  • - -
- -## Notes - -- Requires an Authorization header. -- Invoke params generally match the [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) spec. - -## Examples - -### Basic invocation. - -```js -const { data: user, error } = await supabase.functions.invoke('hello', { - body: JSON.stringify({ foo: 'bar' }), -}) -``` - -### Specifying response type. - -By default, `invoke()` will parse the response as JSON. You can parse the response in the following formats: `json`, `blob`, `text`, and `arrayBuffer`. - -```js -const { data: user, error } = await supabase.functions.invoke('hello', { - responseType: 'text', - body: JSON.stringify({ foo: 'bar' }), -}) -``` - -### Parsing custom headers. - -You can pass custom headers to your function. Note: supabase-js automatically passes the `Authorization` header with the signed in user's JWT. - -```js -const { data: user, error } = await supabase.functions.invoke('hello', { - headers: { - 'my-custom-header': 'my-custom-header-value', - }, - body: JSON.stringify({ foo: 'bar' }), -}) -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/is.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/is.mdx deleted file mode 100644 index c84c1df43dd..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/is.mdx +++ /dev/null @@ -1,98 +0,0 @@ ---- -id: is -title: '.is()' -slug: is -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -A check for exact equality (null, true, false), finds all rows whose -value on the stated `column` exactly match the specified `value`. - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .is('name', null) -``` - -## Parameters - -
    - -
  • -

    - - column - - - required - - - object - -

    -
    - -The column to filter on. - -
    - -
  • - -
  • -

    - - value - - - required - - - boolean | null - -

    -
    - -The value to filter with. - -
    - -
  • - -
- -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .is('name', null) -``` - -### With `update()` - -```js -const { data, error } = await supabase - .from('cities') - .update({ name: 'Mordor' }) - .is('name', null) -``` - -### With `delete()` - -```js -const { data, error } = await supabase.from('cities').delete().is('name', null) -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase.rpc('echo_all_cities').is('name', null) -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/like.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/like.mdx deleted file mode 100644 index 4fb5fea0b39..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/like.mdx +++ /dev/null @@ -1,103 +0,0 @@ ---- -id: like -title: '.like()' -slug: like -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows whose value in the stated `column` matches the supplied -`pattern` (case sensitive). - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .like('name', '%la%') -``` - -## Parameters - -
    - -
  • -

    - - column - - - required - - - object - -

    -
    - -The column to filter on. - -
    - -
  • - -
  • -

    - - pattern - - - required - - - string - -

    -
    - -The pattern to filter with. - -
    - -
  • - -
- -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .like('name', '%la%') -``` - -### With `update()` - -```js -const { data, error } = await supabase - .from('cities') - .update({ name: 'Mordor' }) - .like('name', '%la%') -``` - -### With `delete()` - -```js -const { data, error } = await supabase - .from('cities') - .delete() - .like('name', '%la%') -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase - .rpc('echo_all_cities') - .like('name', '%la%') -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/limit.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/limit.mdx deleted file mode 100644 index 1ae5329fb62..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/limit.mdx +++ /dev/null @@ -1,110 +0,0 @@ ---- -id: limit -title: 'limit()' -slug: limit -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Limits the result with the specified `count`. - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .limit(1) -``` - -## Parameters - -
    - -
  • -

    - - count - - - required - - - number - -

    -
    - -The maximum no. of rows to limit to. - -
    - -
  • - -
  • -

    - - __namedParameters - - - required - - - object - -

    -
    - -No description provided. - -
    - -
      -
      Properties
      - -
    • -

      - - foreignTable - - - required - - - undefined | string - -

      -
      - -The foreign table to use (for foreign columns). - -
      - -
    • - -
    - -
  • - -
- -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .limit(1) -``` - -### With embedded resources - -```js -const { data, error } = await supabase - .from('countries') - .select('name, cities(name)') - .eq('name', 'United States') - .limit(1, { foreignTable: 'cities' }) -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/lt.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/lt.mdx deleted file mode 100644 index f43a76cff4f..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/lt.mdx +++ /dev/null @@ -1,103 +0,0 @@ ---- -id: lt -title: '.lt()' -slug: lt -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows whose value on the stated `column` is less than the -specified `value`. - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .lt('country_id', 250) -``` - -## Parameters - -
    - -
  • -

    - - column - - - required - - - object - -

    -
    - -The column to filter on. - -
    - -
  • - -
  • -

    - - value - - - required - - - object - -

    -
    - -The value to filter with. - -
    - -
  • - -
- -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .lt('country_id', 250) -``` - -### With `update()` - -```js -const { data, error } = await supabase - .from('cities') - .update({ name: 'Mordor' }) - .lt('country_id', 250) -``` - -### With `delete()` - -```js -const { data, error } = await supabase - .from('cities') - .delete() - .lt('country_id', 250) -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase - .rpc('echo_all_cities') - .lt('country_id', 250) -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/lte.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/lte.mdx deleted file mode 100644 index 766815379b5..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/lte.mdx +++ /dev/null @@ -1,103 +0,0 @@ ---- -id: lte -title: '.lte()' -slug: lte -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows whose value on the stated `column` is less than or equal -to the specified `value`. - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .lte('country_id', 250) -``` - -## Parameters - -
    - -
  • -

    - - column - - - required - - - object - -

    -
    - -The column to filter on. - -
    - -
  • - -
  • -

    - - value - - - required - - - object - -

    -
    - -The value to filter with. - -
    - -
  • - -
- -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .lte('country_id', 250) -``` - -### With `update()` - -```js -const { data, error } = await supabase - .from('cities') - .update({ name: 'Mordor' }) - .lte('country_id', 250) -``` - -### With `delete()` - -```js -const { data, error } = await supabase - .from('cities') - .delete() - .lte('country_id', 250) -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase - .rpc('echo_all_cities') - .lte('country_id', 250) -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/match.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/match.mdx deleted file mode 100644 index bdbce2c2815..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/match.mdx +++ /dev/null @@ -1,83 +0,0 @@ ---- -id: match -title: '.match()' -slug: match -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows whose columns match the specified `query` object. - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .match({ name: 'Beijing', country_id: 156 }) -``` - -## Parameters - -
    - -
  • -

    - - query - - - required - - - Record - -

    -
    - -The object to filter with, with column names as keys mapped -to their filter values. - -
    - -
  • - -
- -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .match({ name: 'Beijing', country_id: 156 }) -``` - -### With `update()` - -```js -const { data, error } = await supabase - .from('cities') - .update({ name: 'Mordor' }) - .match({ name: 'Beijing', country_id: 156 }) -``` - -### With `delete()` - -```js -const { data, error } = await supabase - .from('cities') - .delete() - .match({ name: 'Beijing', country_id: 156 }) -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase - .rpc('echo_all_cities') - .match({ name: 'Beijing', country_id: 156 }) -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/maybesingle.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/maybesingle.mdx deleted file mode 100644 index 3c01ac380e3..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/maybesingle.mdx +++ /dev/null @@ -1,33 +0,0 @@ ---- -id: maybesingle -title: 'maybeSingle()' -slug: maybesingle -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Retrieves at most one row from the result. Result must be at most one row -(e.g. using `eq` on a UNIQUE column), otherwise this will result in an -error. - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .eq('name', 'Singapore') - .maybeSingle() -``` - -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .eq('name', 'Singapore') - .maybeSingle() -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/neq.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/neq.mdx deleted file mode 100644 index d6883f2c401..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/neq.mdx +++ /dev/null @@ -1,103 +0,0 @@ ---- -id: neq -title: '.neq()' -slug: neq -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows whose value on the stated `column` doesn't match the -specified `value`. - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .neq('name', 'The shire') -``` - -## Parameters - -
    - -
  • -

    - - column - - - required - - - object - -

    -
    - -The column to filter on. - -
    - -
  • - -
  • -

    - - value - - - required - - - object - -

    -
    - -The value to filter with. - -
    - -
  • - -
- -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .neq('name', 'The shire') -``` - -### With `update()` - -```js -const { data, error } = await supabase - .from('cities') - .update({ name: 'Mordor' }) - .neq('name', 'San Francisco') -``` - -### With `delete()` - -```js -const { data, error } = await supabase - .from('cities') - .delete() - .neq('name', 'Mordor') -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase - .rpc('echo_all_cities') - .neq('name', 'Lagos') -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/not.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/not.mdx deleted file mode 100644 index fc4a371f31d..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/not.mdx +++ /dev/null @@ -1,134 +0,0 @@ ---- -id: not -title: '.not()' -slug: not -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows which doesn't satisfy the filter. - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .not('name', 'eq', 'Paris') -``` - -## Parameters - -
    - -
  • -

    - - column - - - required - - - object - -

    -
    - -The column to filter on. - -
    - -
  • - -
  • -

    - - operator - - - required - - - FilterOperator - -

    -
    - -The operator to filter with. - -
    - -
  • - -
  • -

    - - value - - - required - - - any - -

    -
    - -The value to filter with. - -
    - -
  • - -
- -## Notes - -- `.not()` expects you to use the raw [PostgREST syntax](https://postgrest.org/en/stable/api.html#horizontal-filtering-rows) for the filter names and values. - - ```js - .not('name','eq','Paris') - .not('arraycol','cs','{"a","b"}') // Use Postgres array {} for array column and 'cs' for contains. - .not('rangecol','cs','(1,2]') // Use Postgres range syntax for range column. - .not('id','in','(6,7)') // Use Postgres list () for in filter. - .not('id','in',`(${arr})`) // You can insert a javascript array. - ``` - -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .not('name', 'eq', 'Paris') -``` - -### With `update()` - -```js -const { data, error } = await supabase - .from('cities') - .update({ name: 'Mordor' }) - .not('name', 'eq', 'Paris') -``` - -### With `delete()` - -```js -const { data, error } = await supabase - .from('cities') - .delete() - .not('name', 'eq', 'Paris') -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase - .rpc('echo_all_cities') - .not('name', 'eq', 'Paris') -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/or.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/or.mdx deleted file mode 100644 index daae1074551..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/or.mdx +++ /dev/null @@ -1,128 +0,0 @@ ---- -id: or -title: '.or()' -slug: or -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows satisfying at least one of the filters. - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .or('id.eq.20,id.eq.30') -``` - -## Parameters - -
    - -
  • -

    - - filters - - - required - - - string - -

    -
    - -The filters to use, separated by commas. - -
    - -
  • - -
  • -

    - - __namedParameters - - - required - - - object - -

    -
    - -No description provided. - -
    - -
      -
      Properties
      - -
    • -

      - - foreignTable - - - required - - - undefined | string - -

      -
      - -The foreign table to use (if `column` is a foreign column). - -
      - -
    • - -
    - -
  • - -
- -## Notes - -- `.or()` expects you to use the raw [PostgREST syntax](https://postgrest.org/en/stable/api.html#horizontal-filtering-rows) for the filter names and values. - - ```js - .or('id.in.(6,7), arraycol.cs.{"a","b"}') // Use Postgres list () for in filter. Array {} for array column and 'cs' for contains. - .or(`id.in.(${arrList}),arraycol.cs.{${arr}}`) // You can insert a javascipt array for list or array on array column. - .or(`id.in.(${arrList}),rangecol.cs.[${arrRange})`) // You can insert a javascipt array for list or range on a range column. - ``` - -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .or('id.eq.20,id.eq.30') -``` - -### Use `or` with `and` - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .or('id.gt.20,and(name.eq.New Zealand,name.eq.France)') -``` - -### Use `or` on foreign tables - -```js -const { data, error } = await supabase - .from('countries') - .select('id, cities(*)') - .or('name.eq.Wellington,name.eq.Paris', { foreignTable: 'cities' }) -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/order.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/order.mdx deleted file mode 100644 index e8df0a356e4..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/order.mdx +++ /dev/null @@ -1,160 +0,0 @@ ---- -id: order -title: 'order()' -slug: order -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Orders the result with the specified `column`. - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .order('id', { ascending: false }) -``` - -## Parameters - -
    - -
  • -

    - - column - - - required - - - object - -

    -
    - -The column to order on. - -
    - -
  • - -
  • -

    - - __namedParameters - - - required - - - object - -

    -
    - -No description provided. - -
    - -
      -
      Properties
      - -
    • -

      - - nullsFirst - - - required - - - boolean - -

      -
      - -If `true`, `null`s appear first. - -
      - -
    • - -
    • -

      - - foreignTable - - - required - - - undefined | string - -

      -
      - -The foreign table to use (if `column` is a foreign column). - -
      - -
    • - -
    • -

      - - ascending - - - required - - - boolean - -

      -
      - -If `true`, the result will be in ascending order. - -
      - -
    • - -
    - -
  • - -
- -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .order('id', { ascending: false }) -``` - -### With embedded resources - -```js -const { data, error } = await supabase - .from('countries') - .select('name, cities(name)') - .eq('name', 'United States') - .order('name', { foreignTable: 'cities' }) -``` - -### Ordering multiple columns - -```js -const { data, error } = await supabase - .from('cities') - .select('name', 'country_id') - .order('country_id', { ascending: false }) - .order('name', { ascending: false }) -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/overlaps.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/overlaps.mdx deleted file mode 100644 index 4871bab1949..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/overlaps.mdx +++ /dev/null @@ -1,65 +0,0 @@ ---- -id: overlaps -title: '.overlaps()' -slug: overlaps -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -```js -const { data, error } = await supabase - .from('countries') - .select('name, id, main_exports') - .overlaps('main_exports', ['computers', 'minerals']) -``` - -## Notes - -- `.overlaps()` can work on array columns or range columns. - - ```js - .overlaps('arraycol',["a","b"]) // You can use a javascript array for an array column - .overlaps('arraycol','{"a","b"}') // You can use a string with Postgres array {} for array column. - .overlaps('rangecol','(1,2]') // Use Postgres range syntax for range column. - .overlaps('rangecol',`(${arr}]`) // You can insert an array into a string. - ``` - -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('countries') - .select('name, id, main_exports') - .overlaps('main_exports', ['computers', 'minerals']) -``` - -### With `update()` - -```js -let countries = await supabase - .from('countries') - .update({ name: 'Mordor' }) - .overlaps('main_exports', ['computers', 'minerals']) -``` - -### With `delete()` - -```js -const { data, error } = await supabase - .from('countries') - .delete() - .overlaps('main_exports', ['computers', 'minerals']) -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase - .rpc('echo_all_countries') - .overlaps('main_exports', ['computers', 'minerals']) -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/range.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/range.mdx deleted file mode 100644 index 3a86d479740..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/range.mdx +++ /dev/null @@ -1,120 +0,0 @@ ---- -id: range -title: 'range()' -slug: range -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Limits the result to rows within the specified range, inclusive. - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .range(0, 3) -``` - -## Parameters - -
    - -
  • -

    - - from - - - required - - - number - -

    -
    - -The starting index from which to limit the result, inclusive. - -
    - -
  • - -
  • -

    - - to - - - required - - - number - -

    -
    - -The last index to which to limit the result, inclusive. - -
    - -
  • - -
  • -

    - - __namedParameters - - - required - - - object - -

    -
    - -No description provided. - -
    - -
      -
      Properties
      - -
    • -

      - - foreignTable - - - required - - - undefined | string - -

      -
      - -The foreign table to use (for foreign columns). - -
      - -
    • - -
    - -
  • - -
- -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .range(0, 3) -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/rangeadjacent.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/rangeadjacent.mdx deleted file mode 100644 index 6ae5058e156..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/rangeadjacent.mdx +++ /dev/null @@ -1,54 +0,0 @@ ---- -id: rangeadjacent -title: '.rangeAdjacent()' -slug: rangeadjacent -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -```js -const { data, error } = await supabase - .from('countries') - .select('name, id, population_range_millions') - .rangeAdjacent('population_range_millions', '[70, 185]') -``` - -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('countries') - .select('name, id, population_range_millions') - .rangeAdjacent('population_range_millions', '[70, 185]') -``` - -### With `update()` - -```js -const { data, error } = await supabase - .from('countries') - .update({ name: 'Mordor' }) - .rangeAdjacent('population_range_millions', '[70, 185]') -``` - -### With `delete()` - -```js -const { data, error } = await supabase - .from('countries') - .delete() - .rangeAdjacent('population_range_millions', '[70, 185]') -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase - .rpc('echo_all_countries') - .rangeAdjacent('population_range_millions', '[70, 185]') -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/rangegt.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/rangegt.mdx deleted file mode 100644 index 3ead16ad803..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/rangegt.mdx +++ /dev/null @@ -1,54 +0,0 @@ ---- -id: rangegt -title: '.rangeGt()' -slug: rangegt -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -```js -const { data, error } = await supabase - .from('countries') - .select('name, id, population_range_millions') - .rangeGt('population_range_millions', '[150, 250]') -``` - -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('countries') - .select('name, id, population_range_millions') - .rangeGt('population_range_millions', '[150, 250]') -``` - -### With `update()` - -```js -const { data, error } = await supabase - .from('countries') - .update({ name: 'Mordor' }) - .rangeGt('population_range_millions', '[150, 250]') -``` - -### With `delete()` - -```js -const { data, error } = await supabase - .from('countries') - .delete() - .rangeGt('population_range_millions', '[150, 250]') -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase - .rpc('echo_all_countries') - .rangeGt('population_range_millions', '[150, 250]') -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/rangegte.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/rangegte.mdx deleted file mode 100644 index 0e87160bc6c..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/rangegte.mdx +++ /dev/null @@ -1,54 +0,0 @@ ---- -id: rangegte -title: '.rangeGte()' -slug: rangegte -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -```js -const { data, error } = await supabase - .from('countries') - .select('name, id, population_range_millions') - .rangeGte('population_range_millions', '[150, 250]') -``` - -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('countries') - .select('name, id, population_range_millions') - .rangeGte('population_range_millions', '[150, 250]') -``` - -### With `update()` - -```js -const { data, error } = await supabase - .from('countries') - .update({ name: 'Mordor' }) - .rangeGte('population_range_millions', '[150, 250]') -``` - -### With `delete()` - -```js -const { data, error } = await supabase - .from('countries') - .delete() - .rangeGte('population_range_millions', '[150, 250]') -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase - .rpc('echo_all_countries') - .rangeGte('population_range_millions', '[150, 250]') -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/rangelt.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/rangelt.mdx deleted file mode 100644 index 623b74d1e96..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/rangelt.mdx +++ /dev/null @@ -1,54 +0,0 @@ ---- -id: rangelt -title: '.rangeLt()' -slug: rangelt -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -```js -const { data, error } = await supabase - .from('countries') - .select('name, id, population_range_millions') - .rangeLt('population_range_millions', '[150, 250]') -``` - -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('countries') - .select('name, id, population_range_millions') - .rangeLt('population_range_millions', '[150, 250]') -``` - -### With `update()` - -```js -const { data, error } = await supabase - .from('countries') - .update({ name: 'Mordor' }) - .rangeLt('population_range_millions', '[150, 250]') -``` - -### With `delete()` - -```js -const { data, error } = await supabase - .from('countries') - .delete() - .rangeLt('population_range_millions', '[150, 250]') -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase - .rpc('echo_all_countries') - .rangeLt('population_range_millions', '[150, 250]') -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/rangelte.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/rangelte.mdx deleted file mode 100644 index 4bf89e9ac7a..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/rangelte.mdx +++ /dev/null @@ -1,54 +0,0 @@ ---- -id: rangelte -title: '.rangeLte()' -slug: rangelte -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -```js -const { data, error } = await supabase - .from('countries') - .select('name, id, population_range_millions') - .rangeLte('population_range_millions', '[150, 250]') -``` - -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('countries') - .select('name, id, population_range_millions') - .rangeLte('population_range_millions', '[150, 250]') -``` - -### With `update()` - -```js -const { data, error } = await supabase - .from('countries') - .update({ name: 'Mordor' }) - .rangeLte('population_range_millions', '[150, 250]') -``` - -### With `delete()` - -```js -const { data, error } = await supabase - .from('countries') - .delete() - .rangeLte('population_range_millions', '[150, 250]') -``` - -### With `rpc()` - -```js -// Only valid if the Postgres function returns a table type. -const { data, error } = await supabase - .rpc('echo_all_countries') - .rangeLte('population_range_millions', '[150, 250]') -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/removeallsubscriptions.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/removeallsubscriptions.mdx deleted file mode 100644 index b78bc655139..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/removeallsubscriptions.mdx +++ /dev/null @@ -1,28 +0,0 @@ ---- -id: removeallsubscriptions -title: 'removeAllSubscriptions()' -slug: removeallsubscriptions -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Closes and removes all subscriptions and returns a list of removed -subscriptions and their errors. - -```js -supabase.removeAllSubscriptions() -``` - -## Notes - -- Removing subscriptions is a great way to maintain the performance of your project's database. Supabase will automatically handle cleanup 30 seconds after a user is disconnected, but unused subscriptions may cause degradation as more users are simultaneously subscribed. - -## Examples - -### Removes all subscriptions - -```js -supabase.removeAllSubscriptions() -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/removesubscription.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/removesubscription.mdx deleted file mode 100644 index 23a00f9f6df..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/removesubscription.mdx +++ /dev/null @@ -1,53 +0,0 @@ ---- -id: removesubscription -title: 'removeSubscription()' -slug: removesubscription -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Closes and removes a subscription and returns the number of open subscriptions. - -```js -supabase.removeSubscription(mySubscription) -``` - -## Parameters - -
    - -
  • -

    - - subscription - - - required - - - default - -

    -
    - -The subscription you want to close and remove. - -
    - -
  • - -
- -## Notes - -- Removing subscriptions is a great way to maintain the performance of your project's database. Supabase will automatically handle cleanup 30 seconds after a user is disconnected, but unused subscriptions may cause degradation as more users are simultaneously subscribed. - -## Examples - -### Remove a subscription - -```js -supabase.removeSubscription(mySubscription) -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/rpc.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/rpc.mdx deleted file mode 100644 index ed042c72dd1..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/rpc.mdx +++ /dev/null @@ -1,187 +0,0 @@ ---- -id: rpc -title: 'Postgres functions: rpc()' -slug: rpc -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -You can call Postgres functions as a "Remote Procedure Call". - -That's a fancy way of saying that you can put some logic into your database then call it from anywhere. -It's especially useful when the logic rarely changes - like password resets and updates. - -```sql -create or replace function hello_world() returns text as $$ - select 'Hello world'; -$$ language sql; -``` - -```js -const { data, error } = await supabase.rpc('hello_world') -``` - -## Parameters - -
    - -
  • -

    - - fn - - - required - - - string - -

    -
    - -The function name to call. - -
    - -
  • - -
  • -

    - - params - - - optional - - - undefined | object - -

    -
    - -The parameters to pass to the function call. - -
    - -
  • - -
  • -

    - - __namedParameters - - - required - - - object - -

    -
    - -No description provided. - -
    - -
      -
      Properties
      - -
    • -

      - - head - - - required - - - boolean - -

      -
      - -When set to true, no data will be returned. - -
      - -
    • - -
    • -

      - - count - - - required - - - null | exact | planned | estimated - -

      -
      - -Count algorithm to use to count rows in a table. - -
      - -
    • - -
    - -
  • - -
- -## Examples - -### Call a Postgres function - -This is an example of invoking a Postgres function with no parameters. - -```js -const { data, error } = await supabase.rpc('hello_world') -``` - -### With Parameters - -```js -const { data, error } = await supabase.rpc('echo_city', { name: 'The Shire' }) -``` - -### Bulk processing - -You can process large payloads at once using [array parameters](https://postgrest.org/en/stable/api.html#calling-functions-with-array-parameters). - -```js -const { data, error } = await postgrest.rpc('echo_cities', { - names: ['The Shire', 'Mordor'], -}) -``` - -### With filters - -Postgres functions that return tables can also be combined with -[Modifiers](/docs/reference/javascript/using-modifiers) and -[Filters](/docs/reference/javascript/using-filters). - -```js -const { data, error } = await supabase - .rpc('echo_all_cities') - .select('name, population') - .eq('name', 'The Shire') -``` - -### With count option - -You can specify a count option to get the row count along with your data. -Allowed values for count option are `null`, `exact`, `planned` and `estimated`. - -```js -const { data, error, count } = await supabase.rpc( - 'hello_world', - {}, - { count: 'exact' } -) -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/select.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/select.mdx deleted file mode 100644 index 62395cdab2f..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/select.mdx +++ /dev/null @@ -1,244 +0,0 @@ ---- -id: select -title: 'Fetch data: select()' -slug: select -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Performs vertical filtering with SELECT. - -```js -const { data, error } = await supabase.from('cities').select() -``` - -## Parameters - -
    - -
  • -

    - - columns - - - required - - - string - -

    -
    - -The columns to retrieve, separated by commas. - -
    - -
  • - -
  • -

    - - __namedParameters - - - required - - - object - -

    -
    - -No description provided. - -
    - -
      -
      Properties
      - -
    • -

      - - head - - - required - - - boolean - -

      -
      - -When set to true, select will void data. - -
      - -
    • - -
    • -

      - - count - - - required - - - null | exact | planned | estimated - -

      -
      - -Count algorithm to use to count rows in a table. - -
      - -
    • - -
    - -
  • - -
- -## Notes - -- By default, Supabase projects will return a maximum of 1,000 rows. This setting can be changed in Project API Settings. It's recommended that you keep it low to limit the payload size of accidental or malicious requests. You can use `range()` queries to paginate through your data. -- `select()` can be combined with [Modifiers](/docs/reference/javascript/using-modifiers) -- `select()` can be combined with [Filters](/docs/reference/javascript/using-filters) -- If using the Supabase hosted platform `apikey` is technically a reserved keyword, since the API gateway will pluck it out for authentication. [It should be avoided as a column name](https://github.com/supabase/supabase/issues/5465). - -## Examples - -### Getting your data - -```js -const { data, error } = await supabase.from('cities').select() -``` - -### Selecting specific columns - -You can select specific fields from your tables. - -```js -const { data, error } = await supabase.from('cities').select('name') -``` - -### Query foreign tables - -If your database has foreign key relationships, you can query related tables too. - -```js -const { data, error } = await supabase.from('countries').select(` - name, - cities ( - name - ) - `) -``` - -:::note What about join tables -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 PostgREST engine detects the relationship automatically. -For more details, [follow the link](https://postgrest.org/en/latest/api.html#embedding-through-join-tables). - -::: - -### Query the same foreign table multiple times - -Sometimes you will need to query the same foreign table twice. -In this case, you can use the name of the joined column to identify -which join you intend to use. For convenience, you can also give an -alias for each column. For example, if we had a shop of products, -and we wanted to get the supplier and the purchaser at the same time -(both in the users) table: - -```js -const { data, error } = await supabase.from('products').select(` - id, - supplier:supplier_id ( name ), - purchaser:purchaser_id ( name ) - `) -``` - -### Filtering with inner joins - -If you want to filter a table based on a child table's values you can use the `!inner()` function. For example, if you wanted -to select all rows in a `message` table which belong to a user with the `username` "Jane": - -```js -const { data, error } = await supabase - .from('messages') - .select('*, users!inner(*)') - .eq('users.username', 'Jane') -``` - -### Querying with count option - -You can get the number of rows by using the count option. -Allowed values for count option are `null`, [exact](https://postgrest.org/en/stable/api.html#exact-count), [planned](https://postgrest.org/en/stable/api.html#planned-count) and [estimated](https://postgrest.org/en/stable/api.html#estimated-count). - -```js -const { data, error, count } = await supabase - .from('cities') - .select('name', { count: 'exact' }) // if you don't want to return any rows, you can use { count: 'exact', head: true } -``` - -### Querying JSON data - -If you have data inside of a JSONB column, you can apply select -and query filters to the data values. Postgres offers a -[number of operators](https://www.postgresql.org/docs/current/functions-json.html) -for querying JSON data. Also see -[PostgREST docs](http://postgrest.org/en/v7.0.0/api.html#json-columns) for more details. - -```js -const { data, error } = await supabase - .from('users') - .select( - ` - id, name, - address->street - ` - ) - .eq('address->postcode', 90210) -``` - -### Return data as CSV - -By default the data is returned in JSON format, however you can also request for it to be returned as Comma Separated Values. - -```js -const { data, error } = await supabase.from('users').select().csv() -``` - -### Aborting requests in-flight - -You can use an [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController) to abort requests. Note that `status` and `statusText` doesn't mean anything for aborted requests, since the request wasn't actually fulfilled. - -```js -const ac = new AbortController() -supabase - .from('very_big_table') - .select() - .abortSignal(ac.signal) - .then(console.log) -ac.abort() -// { -// error: { -// message: 'FetchError: The user aborted a request.', -// details: '', -// hint: '', -// code: '' -// }, -// data: null, -// body: null, -// count: null, -// status: 400, -// statusText: 'Bad Request' -// } -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/single.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/single.mdx deleted file mode 100644 index d9599591717..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/single.mdx +++ /dev/null @@ -1,32 +0,0 @@ ---- -id: single -title: 'single()' -slug: single -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Retrieves only one row from the result. Result must be one row (e.g. using -`limit`), otherwise this will result in an error. - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .limit(1) - .single() -``` - -## Examples - -### With `select()` - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .limit(1) - .single() -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/storage-createbucket.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/storage-createbucket.mdx deleted file mode 100644 index 95c1ddd7fb4..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/storage-createbucket.mdx +++ /dev/null @@ -1,104 +0,0 @@ ---- -id: storage-createbucket -title: 'createBucket()' -slug: storage-createbucket -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Creates a new Storage bucket - -```js -const { data, error } = await supabase.storage.createBucket('avatars', { - public: false, -}) -``` - -## Parameters - -
    - -
  • -

    - - id - - - required - - - string - -

    -
    - -A unique identifier for the bucket you are creating. - -
    - -
  • - -
  • -

    - - options - - - required - - - object - -

    -
    - -No description provided. - -
    - -
      -
      Properties
      - -
    • -

      - - public - - - required - - - boolean - -

      -
      - -No description provided. - -
      - -
    • - -
    - -
  • - -
- -## Notes - -- Policy permissions required: - - `buckets` permissions: `insert` - - `objects` permissions: none - -## Examples - -### Create bucket - -```js -const { data, error } = await supabase.storage.createBucket('avatars', { - public: false, -}) -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/storage-deletebucket.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/storage-deletebucket.mdx deleted file mode 100644 index 3db6ad86b34..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/storage-deletebucket.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -id: storage-deletebucket -title: 'deleteBucket()' -slug: storage-deletebucket -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Deletes an existing bucket. A bucket can't be deleted with existing objects inside it. -You must first `empty()` the bucket. - -```js -const { data, error } = await supabase.storage.deleteBucket('avatars') -``` - -## Parameters - -
    - -
  • -

    - - id - - - required - - - string - -

    -
    - -The unique identifier of the bucket you would like to delete. - -
    - -
  • - -
- -## Notes - -- Policy permissions required: - - `buckets` permissions: `select` and `delete` - - `objects` permissions: none - -## Examples - -### Delete bucket - -```js -const { data, error } = await supabase.storage.deleteBucket('avatars') -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/storage-emptybucket.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/storage-emptybucket.mdx deleted file mode 100644 index 328882c22f9..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/storage-emptybucket.mdx +++ /dev/null @@ -1,55 +0,0 @@ ---- -id: storage-emptybucket -title: 'emptyBucket()' -slug: storage-emptybucket -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Removes all objects inside a single bucket. - -```js -const { data, error } = await supabase.storage.emptyBucket('avatars') -``` - -## Parameters - -
    - -
  • -

    - - id - - - required - - - string - -

    -
    - -The unique identifier of the bucket you would like to empty. - -
    - -
  • - -
- -## Notes - -- Policy permissions required: - - `buckets` permissions: `select` - - `objects` permissions: `select` and `delete` - -## Examples - -### Empty bucket - -```js -const { data, error } = await supabase.storage.emptyBucket('avatars') -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/storage-from-copy.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/storage-from-copy.mdx deleted file mode 100644 index ffb320a47da..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/storage-from-copy.mdx +++ /dev/null @@ -1,79 +0,0 @@ ---- -id: storage-from-copy -title: 'from.copy()' -slug: storage-from-copy -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Copies an existing file. - -```js -const { data, error } = await supabase.storage - .from('avatars') - .copy('public/avatar1.png', 'private/avatar2.png') -``` - -## Parameters - -
    - -
  • -

    - - fromPath - - - required - - - string - -

    -
    - -The original file path, including the current file name. For example `folder/image.png`. - -
    - -
  • - -
  • -

    - - toPath - - - required - - - string - -

    -
    - -The new file path, including the new file name. For example `folder/image-copy.png`. - -
    - -
  • - -
- -## Notes - -- Policy permissions required: - - `buckets` permissions: none - - `objects` permissions: `insert` and `select` - -## Examples - -### Copy file - -```js -const { data, error } = await supabase.storage - .from('avatars') - .copy('public/avatar1.png', 'private/avatar2.png') -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/storage-from-createsignedurl.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/storage-from-createsignedurl.mdx deleted file mode 100644 index a3e4b69dc34..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/storage-from-createsignedurl.mdx +++ /dev/null @@ -1,79 +0,0 @@ ---- -id: storage-from-createsignedurl -title: 'from.createSignedUrl()' -slug: storage-from-createsignedurl -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Create signed URL to download file without requiring permissions. This URL can be valid for a set number of seconds. - -```js -const { signedURL, error } = await supabase.storage - .from('avatars') - .createSignedUrl('folder/avatar1.png', 60) -``` - -## Parameters - -
    - -
  • -

    - - path - - - required - - - string - -

    -
    - -The file path to be downloaded, including the current file name. For example `folder/image.png`. - -
    - -
  • - -
  • -

    - - expiresIn - - - required - - - number - -

    -
    - -The number of seconds until the signed URL expires. For example, `60` for a URL which is valid for one minute. - -
    - -
  • - -
- -## Notes - -- Policy permissions required: - - `buckets` permissions: none - - `objects` permissions: `select` - -## Examples - -### Create Signed URL - -```js -const { signedURL, error } = await supabase.storage - .from('avatars') - .createSignedUrl('folder/avatar1.png', 60) -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/storage-from-createsignedurls.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/storage-from-createsignedurls.mdx deleted file mode 100644 index 3f03752bce1..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/storage-from-createsignedurls.mdx +++ /dev/null @@ -1,79 +0,0 @@ ---- -id: storage-from-createsignedurls -title: 'from.createSignedUrls()' -slug: storage-from-createsignedurls -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Create signed URLs to download files without requiring permissions. These URLs can be valid for a set number of seconds. - -```js -const { data, error } = await supabase.storage - .from('avatars') - .createSignedUrls(['folder/avatar1.png', 'folder/avatar2.png'], 60) -``` - -## Parameters - -
    - -
  • -

    - - paths - - - required - - - object - -

    -
    - -The file paths to be downloaded, including the current file names. For example `['folder/image.png', 'folder2/image2.png']`. - -
    - -
  • - -
  • -

    - - expiresIn - - - required - - - number - -

    -
    - -The number of seconds until the signed URLs expire. For example, `60` for URLs which are valid for one minute. - -
    - -
  • - -
- -## Notes - -- Policy permissions required: - - `buckets` permissions: none - - `objects` permissions: `select` - -## Examples - -### Create Signed URLs - -```js -const { data, error } = await supabase.storage - .from('avatars') - .createSignedUrls(['folder/avatar1.png', 'folder/avatar2.png'], 60) -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/storage-from-download.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/storage-from-download.mdx deleted file mode 100644 index 7c02120f8bc..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/storage-from-download.mdx +++ /dev/null @@ -1,59 +0,0 @@ ---- -id: storage-from-download -title: 'from.download()' -slug: storage-from-download -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Downloads a file. - -```js -const { data, error } = await supabase.storage - .from('avatars') - .download('folder/avatar1.png') -``` - -## Parameters - -
    - -
  • -

    - - path - - - required - - - string - -

    -
    - -The file path to be downloaded, including the path and file name. For example `folder/image.png`. - -
    - -
  • - -
- -## Notes - -- Policy permissions required: - - `buckets` permissions: none - - `objects` permissions: `select` - -## Examples - -### Download file - -```js -const { data, error } = await supabase.storage - .from('avatars') - .download('folder/avatar1.png') -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/storage-from-getpublicurl.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/storage-from-getpublicurl.mdx deleted file mode 100644 index 918fdcb9ddb..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/storage-from-getpublicurl.mdx +++ /dev/null @@ -1,60 +0,0 @@ ---- -id: storage-from-getpublicurl -title: 'from.getPublicUrl()' -slug: storage-from-getpublicurl -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Retrieve URLs for assets in public buckets - -```js -const { publicURL, error } = supabase.storage - .from('public-bucket') - .getPublicUrl('folder/avatar1.png') -``` - -## Parameters - -
    - -
  • -

    - - path - - - required - - - string - -

    -
    - -The file path to be downloaded, including the path and file name. For example `folder/image.png`. - -
    - -
  • - -
- -## Notes - -- The bucket needs to be set to public, either via [updateBucket()](/docs/reference/javascript/storage-updatebucket) or by going to Storage on [app.supabase.com](https://app.supabase.com), clicking the overflow menu on a bucket and choosing "Make public" -- Policy permissions required: - - `buckets` permissions: none - - `objects` permissions: none - -## Examples - -### Returns the URL for an asset in a public bucket - -```js -const { publicURL, error } = supabase.storage - .from('public-bucket') - .getPublicUrl('folder/avatar1.png') -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/storage-from-list.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/storage-from-list.mdx deleted file mode 100644 index a9257b5d64e..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/storage-from-list.mdx +++ /dev/null @@ -1,114 +0,0 @@ ---- -id: storage-from-list -title: 'from.list()' -slug: storage-from-list -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Lists all the files within a bucket. - -```js -const { data, error } = await supabase.storage.from('avatars').list('folder', { - limit: 100, - offset: 0, - sortBy: { column: 'name', order: 'asc' }, -}) -``` - -## Parameters - -
    - -
  • -

    - - path - - - optional - - - undefined | string - -

    -
    - -The folder path. - -
    - -
  • - -
  • -

    - - options - - - optional - - - SearchOptions - -

    -
    - -Search options, including `limit`, `offset`, `sortBy`, and `search`. - -
    - -
  • - -
  • -

    - - parameters - - - optional - - - FetchParameters - -

    -
    - -Fetch parameters, currently only supports `signal`, which is an AbortController's signal - -
    - -
  • - -
- -## Notes - -- Policy permissions required: - - `buckets` permissions: none - - `objects` permissions: `select` - -## Examples - -### List files in a bucket - -```js -const { data, error } = await supabase.storage.from('avatars').list('folder', { - limit: 100, - offset: 0, - sortBy: { column: 'name', order: 'asc' }, -}) -``` - -### Search files in a bucket - -```js -const { data, error } = await supabase.storage.from('avatars').list('folder', { - limit: 100, - offset: 0, - sortBy: { column: 'name', order: 'asc' }, - search: 'jon', -}) -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/storage-from-move.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/storage-from-move.mdx deleted file mode 100644 index 19bf572a353..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/storage-from-move.mdx +++ /dev/null @@ -1,79 +0,0 @@ ---- -id: storage-from-move -title: 'from.move()' -slug: storage-from-move -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Moves an existing file. - -```js -const { data, error } = await supabase.storage - .from('avatars') - .move('public/avatar1.png', 'private/avatar2.png') -``` - -## Parameters - -
    - -
  • -

    - - fromPath - - - required - - - string - -

    -
    - -The original file path, including the current file name. For example `folder/image.png`. - -
    - -
  • - -
  • -

    - - toPath - - - required - - - string - -

    -
    - -The new file path, including the new file name. For example `folder/image-new.png`. - -
    - -
  • - -
- -## Notes - -- Policy permissions required: - - `buckets` permissions: none - - `objects` permissions: `update` and `select` - -## Examples - -### Move file - -```js -const { data, error } = await supabase.storage - .from('avatars') - .move('public/avatar1.png', 'private/avatar2.png') -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/storage-from-remove.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/storage-from-remove.mdx deleted file mode 100644 index ccaf7b3aad6..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/storage-from-remove.mdx +++ /dev/null @@ -1,59 +0,0 @@ ---- -id: storage-from-remove -title: 'from.remove()' -slug: storage-from-remove -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Deletes files within the same bucket - -```js -const { data, error } = await supabase.storage - .from('avatars') - .remove(['folder/avatar1.png']) -``` - -## Parameters - -
    - -
  • -

    - - paths - - - required - - - object - -

    -
    - -An array of files to be deleted, including the path and file name. For example [`folder/image.png`]. - -
    - -
  • - -
- -## Notes - -- Policy permissions required: - - `buckets` permissions: none - - `objects` permissions: `delete` and `select` - -## Examples - -### Delete file - -```js -const { data, error } = await supabase.storage - .from('avatars') - .remove(['folder/avatar1.png']) -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/storage-from-update.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/storage-from-update.mdx deleted file mode 100644 index fb5cea0c821..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/storage-from-update.mdx +++ /dev/null @@ -1,123 +0,0 @@ ---- -id: storage-from-update -title: 'from.update()' -slug: storage-from-update -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Replaces an existing file at the specified path with a new one. - -```js -const avatarFile = event.target.files[0] -const { data, error } = await supabase.storage - .from('avatars') - .update('public/avatar1.png', avatarFile, { - cacheControl: '3600', - upsert: false, - }) -``` - -## Parameters - -
    - -
  • -

    - - path - - - required - - - string - -

    -
    - -The relative file path. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to upload. - -
    - -
  • - -
  • -

    - - fileBody - - - required - - - ArrayBuffer | ArrayBufferView | Blob | Buffer | File | FormData | ReadableStream | ReadableStream | URLSearchParams | string - -

    -
    - -The body of the file to be stored in the bucket. - -
    - -
  • - -
  • -

    - - fileOptions - - - optional - - - FileOptions - -

    -
    - -HTTP headers. -`cacheControl`: string, the `Cache-Control: max-age=` seconds value. -`contentType`: string, the `Content-Type` header value. Should be specified if using a `fileBody` that is neither `Blob` nor `File` nor `FormData`, otherwise will default to `text/plain;charset=UTF-8`. -`upsert`: boolean, whether to perform an upsert. - -
    - -
  • - -
- -## Notes - -- Policy permissions required: - - `buckets` permissions: none - - `objects` permissions: `update` and `select` -- For React Native, using either `Blob`, `File` or `FormData` does not work as intended. Update file using `ArrayBuffer` from base64 file data instead, see example below. - -## Examples - -### Update file - -```js -const avatarFile = event.target.files[0] -const { data, error } = await supabase.storage - .from('avatars') - .update('public/avatar1.png', avatarFile, { - cacheControl: '3600', - upsert: false, - }) -``` - -### Update file using `ArrayBuffer` from base64 file data - -```js -import { decode } from 'base64-arraybuffer' - -const { data, error } = await supabase.storage - .from('avatars') - .update('public/avatar1.png', decode('base64FileData'), { - contentType: 'image/png', - }) -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/storage-from-upload.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/storage-from-upload.mdx deleted file mode 100644 index a4861490519..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/storage-from-upload.mdx +++ /dev/null @@ -1,123 +0,0 @@ ---- -id: storage-from-upload -title: 'from.upload()' -slug: storage-from-upload -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Uploads a file to an existing bucket. - -```js -const avatarFile = event.target.files[0] -const { data, error } = await supabase.storage - .from('avatars') - .upload('public/avatar1.png', avatarFile, { - cacheControl: '3600', - upsert: false, - }) -``` - -## Parameters - -
    - -
  • -

    - - path - - - required - - - string - -

    -
    - -The relative file path. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to upload. - -
    - -
  • - -
  • -

    - - fileBody - - - required - - - ArrayBuffer | ArrayBufferView | Blob | Buffer | File | FormData | ReadableStream | ReadableStream | URLSearchParams | string - -

    -
    - -The body of the file to be stored in the bucket. - -
    - -
  • - -
  • -

    - - fileOptions - - - optional - - - FileOptions - -

    -
    - -HTTP headers. -`cacheControl`: string, the `Cache-Control: max-age=` seconds value. -`contentType`: string, the `Content-Type` header value. Should be specified if using a `fileBody` that is neither `Blob` nor `File` nor `FormData`, otherwise will default to `text/plain;charset=UTF-8`. -`upsert`: boolean, whether to perform an upsert. - -
    - -
  • - -
- -## Notes - -- Policy permissions required: - - `buckets` permissions: none - - `objects` permissions: `insert` -- For React Native, using either `Blob`, `File` or `FormData` does not work as intended. Upload file using `ArrayBuffer` from base64 file data instead, see example below. - -## Examples - -### Upload file - -```js -const avatarFile = event.target.files[0] -const { data, error } = await supabase.storage - .from('avatars') - .upload('public/avatar1.png', avatarFile, { - cacheControl: '3600', - upsert: false, - }) -``` - -### Upload file using `ArrayBuffer` from base64 file data - -```js -import { decode } from 'base64-arraybuffer' - -const { data, error } = await supabase.storage - .from('avatars') - .upload('public/avatar1.png', decode('base64FileData'), { - contentType: 'image/png', - }) -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/storage-getbucket.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/storage-getbucket.mdx deleted file mode 100644 index c8df1c3ad4f..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/storage-getbucket.mdx +++ /dev/null @@ -1,55 +0,0 @@ ---- -id: storage-getbucket -title: 'getBucket()' -slug: storage-getbucket -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Retrieves the details of an existing Storage bucket. - -```js -const { data, error } = await supabase.storage.getBucket('avatars') -``` - -## Parameters - -
    - -
  • -

    - - id - - - required - - - string - -

    -
    - -The unique identifier of the bucket you would like to retrieve. - -
    - -
  • - -
- -## Notes - -- Policy permissions required: - - `buckets` permissions: `select` - - `objects` permissions: none - -## Examples - -### Get bucket - -```js -const { data, error } = await supabase.storage.getBucket('avatars') -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/storage-listbuckets.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/storage-listbuckets.mdx deleted file mode 100644 index 866d5834099..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/storage-listbuckets.mdx +++ /dev/null @@ -1,29 +0,0 @@ ---- -id: storage-listbuckets -title: 'listBuckets()' -slug: storage-listbuckets -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Retrieves the details of all Storage buckets within an existing project. - -```js -const { data, error } = await supabase.storage.listBuckets() -``` - -## Notes - -- Policy permissions required: - - `buckets` permissions: `select` - - `objects` permissions: none - -## Examples - -### List buckets - -```js -const { data, error } = await supabase.storage.listBuckets() -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/storage-updatebucket.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/storage-updatebucket.mdx deleted file mode 100644 index c6f28aa3cec..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/storage-updatebucket.mdx +++ /dev/null @@ -1,104 +0,0 @@ ---- -id: storage-updatebucket -title: 'updateBucket()' -slug: storage-updatebucket -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Updates a new Storage bucket - -```js -const { data, error } = await supabase.storage.updateBucket('avatars', { - public: false, -}) -``` - -## Parameters - -
    - -
  • -

    - - id - - - required - - - string - -

    -
    - -A unique identifier for the bucket you are updating. - -
    - -
  • - -
  • -

    - - options - - - required - - - object - -

    -
    - -No description provided. - -
    - -
      -
      Properties
      - -
    • -

      - - public - - - required - - - boolean - -

      -
      - -No description provided. - -
      - -
    • - -
    - -
  • - -
- -## Notes - -- Policy permissions required: - - `buckets` permissions: `update` - - `objects` permissions: none - -## Examples - -### Update bucket - -```js -const { data, error } = await supabase.storage.updateBucket('avatars', { - public: false, -}) -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/subscribe.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/subscribe.mdx deleted file mode 100644 index 6f12cb21aad..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/subscribe.mdx +++ /dev/null @@ -1,165 +0,0 @@ ---- -id: subscribe -title: 'on().subscribe()' -slug: subscribe -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Subscribe to realtime changes in your database. - -```js -const mySubscription = supabase - .from('*') - .on('*', (payload) => { - console.log('Change received!', payload) - }) - .subscribe() -``` - -## Parameters - -
    - -
  • -

    - - event - - - required - - - SupabaseEventTypes - -

    -
    - -The database event which you would like to receive updates for, or you can use the special wildcard `*` to listen to all changes. - -
    - -
  • - -
  • -

    - - callback - - - required - - - object - -

    -
    - -A callback that will handle the payload that is sent whenever your database changes. - -
    - -
  • - -
- -## Notes - -- Realtime is disabled by default for new Projects for better database performance and security. You can turn it on by [managing replication](/docs/guides/api#managing-realtime). -- If you want to receive the "previous" data for updates and deletes, you will need to set `REPLICA IDENTITY` to `FULL`, like this: `ALTER TABLE your_table REPLICA IDENTITY FULL;` - -## Examples - -### Listen to all database changes - -```js -const mySubscription = supabase - .from('*') - .on('*', (payload) => { - console.log('Change received!', payload) - }) - .subscribe() -``` - -### Listening to a specific table - -```js -const mySubscription = supabase - .from('countries') - .on('*', (payload) => { - console.log('Change received!', payload) - }) - .subscribe() -``` - -### Listening to inserts - -```js -const mySubscription = supabase - .from('countries') - .on('INSERT', (payload) => { - console.log('Change received!', payload) - }) - .subscribe() -``` - -### Listening to updates - -By default, Supabase will send only the updated record. If you want to receive the previous values as well you can -enable full replication for the table you are listening too: - -```sql -alter table "your_table" replica identity full; -``` - -```js -const mySubscription = supabase - .from('countries') - .on('UPDATE', (payload) => { - console.log('Change received!', payload) - }) - .subscribe() -``` - -### Listening to deletes - -By default, Supabase does not send deleted records. If you want to receive the deleted record you can -enable full replication for the table you are listening too: - -```sql -alter table "your_table" replica identity full; -``` - -```js -const mySubscription = supabase - .from('countries') - .on('DELETE', (payload) => { - console.log('Change received!', payload) - }) - .subscribe() -``` - -### Listening to multiple events - -You can chain listeners if you want to listen to multiple events for each table. - -```js -const mySubscription = supabase - .from('countries') - .on('INSERT', handleRecordInserted) - .on('DELETE', handleRecordDeleted) - .subscribe() -``` - -### Listening to row level changes - -You can listen to individual rows using the format `{table}:{col}=eq.{val}` - where `{col}` is the column name, and `{val}` is the value which you want to match. - -```js -const mySubscription = supabase - .from('countries:id=eq.200') - .on('UPDATE', handleRecordUpdated) - .subscribe() -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/textsearch.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/textsearch.mdx deleted file mode 100644 index 4403d602741..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/textsearch.mdx +++ /dev/null @@ -1,165 +0,0 @@ ---- -id: textsearch -title: '.textSearch()' -slug: textsearch -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Finds all rows whose tsvector value on the stated `column` matches -to_tsquery(`query`). - -## Parameters - -
    - -
  • -

    - - column - - - required - - - object - -

    -
    - -The column to filter on. - -
    - -
  • - -
  • -

    - - query - - - required - - - string - -

    -
    - -The Postgres tsquery string to filter with. - -
    - -
  • - -
  • -

    - - __namedParameters - - - required - - - object - -

    -
    - -No description provided. - -
    - -
      -
      Properties
      - -
    • -

      - - config - - - required - - - undefined | string - -

      -
      - -The text search configuration to use. - -
      - -
    • - -
    - -
  • - -
- -## Examples - -### Text search - -```js -const { data, error } = await supabase - .from('quotes') - .select('catchphrase') - .textSearch('catchphrase', `'fat' & 'cat'`, { - config: 'english', - }) -``` - -### Basic normalization - -Uses PostgreSQL's `plainto_tsquery` function. - -```js -const { data, error } = await supabase - .from('quotes') - .select('catchphrase') - .textSearch('catchphrase', `'fat' & 'cat'`, { - type: 'plain', - config: 'english', - }) -``` - -### Full normalization - -Uses PostgreSQL's `phraseto_tsquery` function. - -```js -const { data, error } = await supabase - .from('quotes') - .select('catchphrase') - .textSearch('catchphrase', `'fat' & 'cat'`, { - type: 'phrase', - config: 'english', - }) -``` - -### Websearch - -Uses PostgreSQL's `websearch_to_tsquery` function. -This function will never raise syntax errors, which makes it possible to use raw user-supplied input for search, and can be used -with advanced operators. - -- `unquoted text`: text not inside quote marks will be converted to terms separated by & operators, as if processed by plainto_tsquery. -- `"quoted text"`: text inside quote marks will be converted to terms separated by <-> operators, as if processed by phraseto_tsquery. -- `OR`: the word “or” will be converted to the | operator. -- `-`: a dash will be converted to the ! operator. - -```js -const { data, error } = await supabase - .from('quotes') - .select('catchphrase') - .textSearch('catchphrase', `'fat or cat'`, { - type: 'websearch', - config: 'english', - }) -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/update.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/update.mdx deleted file mode 100644 index d14ce2859ef..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/update.mdx +++ /dev/null @@ -1,145 +0,0 @@ ---- -id: update -title: 'Modify data: update()' -slug: update -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Performs an UPDATE on the table. - -```js -const { data, error } = await supabase - .from('cities') - .update({ name: 'Middle Earth' }) - .match({ name: 'Auckland' }) -``` - -## Parameters - -
    - -
  • -

    - - values - - - required - - - Partial - -

    -
    - -The values to update. - -
    - -
  • - -
  • -

    - - __namedParameters - - - required - - - object - -

    -
    - -No description provided. - -
    - -
      -
      Properties
      - -
    • -

      - - returning - - - required - - - minimal | representation - -

      -
      - -By default the updated record is returned. Set this to 'minimal' if you don't need this value. - -
      - -
    • - -
    • -

      - - count - - - required - - - null | exact | planned | estimated - -

      -
      - -Count algorithm to use to count rows in a table. - -
      - -
    • - -
    - -
  • - -
- -## Notes - -- `update()` should always be combined with [Filters](/docs/reference/javascript/using-filters) to target the item(s) you wish to update. - -## Examples - -### Updating your data - -```js -const { data, error } = await supabase - .from('cities') - .update({ name: 'Middle Earth' }) - .match({ name: 'Auckland' }) -``` - -### Updating JSON data - -Postgres offers a -[number of operators](https://www.postgresql.org/docs/current/functions-json.html) -for working with JSON data. Right now it is only possible to update an entire JSON document, -but we are [working on ideas](https://github.com/PostgREST/postgrest/issues/465) for updating individual keys. - -```js -const { data, error } = await supabase - .from('users') - .update( - ` - address: { - street: 'Melrose Place', - postcode: 90210 - } - ` - ) - .eq('address->postcode', 90210) -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/upsert.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/upsert.mdx deleted file mode 100644 index 12bf3d0476f..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/upsert.mdx +++ /dev/null @@ -1,200 +0,0 @@ ---- -id: upsert -title: 'Upsert data: upsert()' -slug: upsert -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Performs an UPSERT into the table. - -```js -const { data, error } = await supabase - .from('messages') - .upsert({ id: 3, message: 'foo', username: 'supabot' }) -``` - -## Parameters - -
    - -
  • -

    - - values - - - required - - - Partial | array - -

    -
    - -The values to insert. - -
    - -
  • - -
  • -

    - - __namedParameters - - - required - - - object - -

    -
    - -No description provided. - -
    - -
      -
      Properties
      - -
    • -

      - - returning - - - required - - - minimal | representation - -

      -
      - -By default the new record is returned. Set this to 'minimal' if you don't need this value. - -
      - -
    • - -
    • -

      - - onConflict - - - required - - - undefined | string - -

      -
      - -By specifying the `on_conflict` query parameter, you can make UPSERT work on a column(s) that has a UNIQUE constraint. - -
      - -
    • - -
    • -

      - - ignoreDuplicates - - - required - - - boolean - -

      -
      - -Specifies if duplicate rows should be ignored and not inserted. - -
      - -
    • - -
    • -

      - - count - - - required - - - null | exact | planned | estimated - -

      -
      - -Count algorithm to use to count rows in a table. - -
      - -
    • - -
    - -
  • - -
- -## Notes - -- Primary keys should be included in the data payload in order for an update to work correctly. -- Primary keys must be natural, not surrogate. There are however, [workarounds](https://github.com/PostgREST/postgrest/issues/1118) for surrogate primary keys. -- If you need to insert new data and update existing data at the same time, use [Postgres triggers](https://github.com/supabase/postgrest-js/issues/173#issuecomment-825124550). - -## Examples - -### Upsert your data - -```js -const { data, error } = await supabase - .from('messages') - .upsert({ id: 3, message: 'foo', username: 'supabot' }) -``` - -### Bulk Upsert your data - -```js -const { data, error } = await supabase.from('messages').upsert([ - { id: 3, message: 'foo', username: 'supabot' }, - { id: 4, message: 'bar', username: 'supabot' }, -]) -``` - -### Upserting into tables with constraints - -Running the following will cause supabase to upsert data into the `users` table. -If the username 'supabot' already exists, the `onConflict` argument tells supabase to overwrite that row -based on the column passed into `onConflict`. - -```js -const { data, error } = await supabase - .from('users') - .upsert({ username: 'supabot' }, { onConflict: 'username' }) -``` - -### Return the exact number of rows - -```js -const { data, error, count } = await supabase.from('users').upsert( - { - id: 3, - message: 'foo', - username: 'supabot', - }, - { - count: 'exact', - } -) -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/using-filters.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/using-filters.mdx deleted file mode 100644 index 3bd2617a45f..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/using-filters.mdx +++ /dev/null @@ -1,65 +0,0 @@ ---- -id: using-filters -title: 'Using Filters' -slug: using-filters -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Filters can be used on `select()`, `update()`, and `delete()` queries. - -If a Postgres function returns a table response, you can also apply filters. - -### Applying Filters - -You must apply your filters to the end of your query. For example: - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .eq('name', 'The Shire') // Correct - -const { data, error } = await supabase - .from('cities') - .eq('name', 'The Shire') // Incorrect - .select('name, country_id') -``` - -### Chaining - -Filters can be chained together to produce advanced queries. For example: - -```js -const { data, error } = await supabase - .from('cities') - .select('name, country_id') - .gte('population', 1000) - .lt('population', 10000) -``` - -### Conditional Chaining - -Filters can be built up one step at a time and then executed. For example: - -```js -const filterByName = null -const filterPopLow = 1000 -const filterPopHigh = 10000 - -let query = supabase.from('cities').select('name, country_id') - -if (filterByName) { - query = query.eq('name', filterByName) -} -if (filterPopLow) { - query = query.gte('population', filterPopLow) -} -if (filterPopHigh) { - query = query.lt('population', filterPopHigh) -} - -const { data, error } = await query -``` diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/using-modifiers.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/using-modifiers.mdx deleted file mode 100644 index 1262fbc7c79..00000000000 --- a/apps/reference/_supabase_js_versioned_docs/version-v1/using-modifiers.mdx +++ /dev/null @@ -1,13 +0,0 @@ ---- -id: using-modifiers -title: 'Using Modifiers' -slug: using-modifiers -custom_edit_url: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -Modifiers can be used on `select()` queries. - -If a Postgres function returns a table response, you can also apply modifiers to the `rpc()` function. diff --git a/apps/reference/_supabase_js_versioned_sidebars/version-v1-sidebars.json b/apps/reference/_supabase_js_versioned_sidebars/version-v1-sidebars.json index 42b51fd7950..8687644761e 100644 --- a/apps/reference/_supabase_js_versioned_sidebars/version-v1-sidebars.json +++ b/apps/reference/_supabase_js_versioned_sidebars/version-v1-sidebars.json @@ -10,16 +10,16 @@ "type": "category", "label": "Auth", "items": [ - "auth-signup", - "auth-signin", - "auth-signout", - "auth-session", - "auth-user", - "auth-update", - "auth-setauth", - "auth-onauthstatechange", - "auth-api-getuser", - "auth-api-resetpasswordforemail" + "generated/auth-signup", + "generated/auth-signin", + "generated/auth-signout", + "generated/auth-session", + "generated/auth-user", + "generated/auth-update", + "generated/auth-setauth", + "generated/auth-onauthstatechange", + "generated/auth-api-getuser", + "generated/auth-api-resetpasswordforemail" ], "collapsed": true }, @@ -27,36 +27,43 @@ "type": "category", "label": "Auth (Server Only)", "items": [ - "auth-api-listusers", - "auth-api-createuser", - "auth-api-deleteuser", - "auth-api-generatelink", - "auth-api-inviteuserbyemail", - "auth-api-sendmobileotp", - "auth-api-updateuserbyid" + "generated/auth-api-listusers", + "generated/auth-api-createuser", + "generated/auth-api-deleteuser", + "generated/auth-api-generatelink", + "generated/auth-api-inviteuserbyemail", + "generated/auth-api-sendmobileotp", + "generated/auth-api-updateuserbyid" ], "collapsed": true }, { "type": "category", "label": "Functions", - "items": ["invoke"], + "items": ["generated/invoke"], "collapsed": true }, { "type": "category", "label": "Database", - "items": ["select", "insert", "update", "upsert", "delete", "rpc"], + "items": [ + "generated/select", + "generated/insert", + "generated/update", + "generated/upsert", + "generated/delete", + "generated/rpc" + ], "collapsed": true }, { "type": "category", "label": "Realtime", "items": [ - "subscribe", - "removesubscription", - "removeallsubscriptions", - "getsubscriptions" + "generated/subscribe", + "generated/removesubscription", + "generated/removeallsubscriptions", + "generated/getsubscriptions" ], "collapsed": true }, @@ -64,22 +71,22 @@ "type": "category", "label": "Storage", "items": [ - "storage-createbucket", - "storage-getbucket", - "storage-listbuckets", - "storage-updatebucket", - "storage-deletebucket", - "storage-emptybucket", - "storage-from-upload", - "storage-from-download", - "storage-from-list", - "storage-from-update", - "storage-from-move", - "storage-from-copy", - "storage-from-remove", - "storage-from-createsignedurl", - "storage-from-createsignedurls", - "storage-from-getpublicurl" + "generated/storage-createbucket", + "generated/storage-getbucket", + "generated/storage-listbuckets", + "generated/storage-updatebucket", + "generated/storage-deletebucket", + "generated/storage-emptybucket", + "generated/storage-from-upload", + "generated/storage-from-download", + "generated/storage-from-list", + "generated/storage-from-update", + "generated/storage-from-move", + "generated/storage-from-copy", + "generated/storage-from-remove", + "generated/storage-from-createsignedurl", + "generated/storage-from-createsignedurls", + "generated/storage-from-getpublicurl" ], "collapsed": true }, @@ -87,12 +94,12 @@ "type": "category", "label": "Modifiers", "items": [ - "using-modifiers", - "limit", - "order", - "range", - "single", - "maybesingle" + "generated/using-modifiers", + "generated/limit", + "generated/order", + "generated/range", + "generated/single", + "generated/maybesingle" ], "collapsed": true }, @@ -100,30 +107,30 @@ "type": "category", "label": "Filters", "items": [ - "using-filters", - "or", - "not", - "match", - "eq", - "neq", - "gt", - "gte", - "lt", - "lte", - "like", - "ilike", - "is", - "in", - "contains", - "containedby", - "rangelt", - "rangegt", - "rangegte", - "rangelte", - "rangeadjacent", - "overlaps", - "textsearch", - "filter" + "generated/using-filters", + "generated/or", + "generated/not", + "generated/match", + "generated/eq", + "generated/neq", + "generated/gt", + "generated/gte", + "generated/lt", + "generated/lte", + "generated/like", + "generated/ilike", + "generated/is", + "generated/in", + "generated/contains", + "generated/containedby", + "generated/rangelt", + "generated/rangegt", + "generated/rangegte", + "generated/rangelte", + "generated/rangeadjacent", + "generated/overlaps", + "generated/textsearch", + "generated/filter" ], "collapsed": true } diff --git a/spec/generator/src/docs/api.ts b/apps/reference/generator/api.ts similarity index 94% rename from spec/generator/src/docs/api.ts rename to apps/reference/generator/api.ts index 9c90f22400c..b15086938e7 100644 --- a/spec/generator/src/docs/api.ts +++ b/apps/reference/generator/api.ts @@ -1,10 +1,8 @@ import template from './templates/ApiTemplate' -import { slugify, toArrayWithKey, toTitle } from './helpers' +import { slugify, toArrayWithKey, toTitle, writeToDisk } from './helpers' import { OpenAPIV3, OpenAPIV2 } from 'openapi-types' -const fs = require('fs') -const ejs = require('ejs') -const Helpers = require('./Helpers') -const { writeToDisk } = Helpers +import * as fs from 'fs' +import * as ejs from 'ejs' export default async function gen( inputFileName: string, diff --git a/spec/generator/src/docs/cli.ts b/apps/reference/generator/cli.ts similarity index 84% rename from spec/generator/src/docs/cli.ts rename to apps/reference/generator/cli.ts index 331747f4d75..d9708f0752d 100644 --- a/spec/generator/src/docs/cli.ts +++ b/apps/reference/generator/cli.ts @@ -1,11 +1,9 @@ +import * as fs from 'fs' +import * as ejs from 'ejs' +import * as yaml from 'js-yaml' +import { writeToDisk } from './helpers' import template from './templates/CliTemplate' -import type { CliSpec } from '../types/CliSpec' - -const yaml = require('js-yaml') -const fs = require('fs') -const ejs = require('ejs') -const Helpers = require('./Helpers') -const { writeToDisk } = Helpers +import type { CliSpec } from './types/CliSpec' export default async function gen(inputFileName: string, outputDir: string) { const spec = yaml.load(fs.readFileSync(inputFileName, 'utf8')) diff --git a/spec/generator/src/docs/config.ts b/apps/reference/generator/config.ts similarity index 76% rename from spec/generator/src/docs/config.ts rename to apps/reference/generator/config.ts index 7b9fc91f262..690a77dc833 100644 --- a/spec/generator/src/docs/config.ts +++ b/apps/reference/generator/config.ts @@ -1,11 +1,10 @@ import template from './templates/ConfigTemplate' -import type { ConfigSpec } from '../types/ConfigSpec' +import type { ConfigSpec } from './types/ConfigSpec' -const yaml = require('js-yaml') -const fs = require('fs') -const ejs = require('ejs') -const Helpers = require('./Helpers') -const { writeToDisk } = Helpers +import * as fs from 'fs' +import * as ejs from 'ejs' +import * as yaml from 'js-yaml' +import { writeToDisk } from './helpers' type Section = { id: string @@ -22,7 +21,7 @@ export default async function gen(inputFileName: string, outputDir: string) { break default: - console.log('Unrecognized specifcation version:', spec.configspec) + console.log('Unrecognized specification version:', spec.configspec) break } } diff --git a/spec/generator/src/docs/helpers.ts b/apps/reference/generator/helpers.ts similarity index 95% rename from spec/generator/src/docs/helpers.ts rename to apps/reference/generator/helpers.ts index 49b8fcd851e..6bb5653e808 100644 --- a/spec/generator/src/docs/helpers.ts +++ b/apps/reference/generator/helpers.ts @@ -1,5 +1,5 @@ -import fs from 'fs' -import _ from 'lodash' +import * as _ from 'lodash' +import * as fs from 'fs' export const slugify = (text: string) => { return text diff --git a/spec/generator/src/docs/index.ts b/apps/reference/generator/index.ts similarity index 54% rename from spec/generator/src/docs/index.ts rename to apps/reference/generator/index.ts index f73c186bbed..2623ffe79d3 100644 --- a/spec/generator/src/docs/index.ts +++ b/apps/reference/generator/index.ts @@ -2,6 +2,27 @@ import ApiGenerator from './api' import CliGenerator from './cli' import ConfigGenerator from './config' import SdkGenerator from './sdk' +import LegacyGenerator from './legacy' + +const main = (command: string[], options: any) => { + handleInput(command[0], options) +} + +// Run everything +const argv = require('minimist')(process.argv.slice(2)) +main(argv['_'], argv) + +function handleInput(command: string, options: any) { + switch (command) { + case 'gen': + DocGenerator(options) + break + + default: + console.log('Unrecognized command:', command) + break + } +} export default async function DocGenerator({ input, @@ -11,7 +32,7 @@ export default async function DocGenerator({ }: { input: string output: string - type: 'cli' | 'config' | 'sdk' | 'api' + type: 'cli' | 'config' | 'sdk' | 'api' | 'legacy' url?: string }) { switch (type) { @@ -31,6 +52,10 @@ export default async function DocGenerator({ await SdkGenerator(input, output) break + case 'legacy': + await LegacyGenerator(input, output) + break + default: await console.log('Unrecognized type: ', type) break diff --git a/spec/generator/LegacyReferenceGenerator.ts b/apps/reference/generator/legacy.ts similarity index 92% rename from spec/generator/LegacyReferenceGenerator.ts rename to apps/reference/generator/legacy.ts index 0e12085b757..bbfce52254f 100644 --- a/spec/generator/LegacyReferenceGenerator.ts +++ b/apps/reference/generator/legacy.ts @@ -8,33 +8,20 @@ * ts-node ReferenceGenerator.ts -o docs/client spec/supabase.yml */ -import Example from './src/legacy/components/Example' -import Page from './src/legacy/components/Page' -import Tab from './src/legacy/components/Tab' +import Example from './legacy/components/Example' +import Page from './legacy/components/Page' +import Tab from './legacy/components/Tab' import { slugify, tsDocCommentToMdComment, writeToDisk, -} from './src/legacy/lib/helpers' -import { TsDoc, OpenRef } from './src/legacy/definitions' +} from './legacy/lib/helpers' +import { TsDoc, OpenRef } from './legacy/definitions' import { uniqBy } from 'lodash' +import * as fs from 'fs' +import * as yaml from 'js-yaml' -const yaml = require('js-yaml') -const fs = require('fs') - -const main = (fileNames: string[], options: any) => { - try { - const outputDir = options.o || options.output || '' - fileNames.forEach((inputFileName) => { - gen(inputFileName, outputDir) - }) - return - } catch (e) { - console.log(e) - } -} - -async function gen(inputFileName: string, outputDir: string) { +export default async function gen(inputFileName: string, outputDir: string) { const docSpec = yaml.load(fs.readFileSync(inputFileName, 'utf8')) const defRef = docSpec.info.definition ? fs.readFileSync(docSpec.info.definition, 'utf8') @@ -350,6 +337,3 @@ function generateDocsIndexPage(docSpec: any, inputFileName: string) { description: docSpec.info.description, }) } -// Run everything -const argv = require('minimist')(process.argv.slice(2)) -main(argv['_'], argv) diff --git a/spec/generator/src/legacy/components/Example.ts b/apps/reference/generator/legacy/components/Example.ts similarity index 100% rename from spec/generator/src/legacy/components/Example.ts rename to apps/reference/generator/legacy/components/Example.ts diff --git a/spec/generator/src/legacy/components/Page.ts b/apps/reference/generator/legacy/components/Page.ts similarity index 100% rename from spec/generator/src/legacy/components/Page.ts rename to apps/reference/generator/legacy/components/Page.ts diff --git a/spec/generator/src/legacy/components/Sidebar.ts b/apps/reference/generator/legacy/components/Sidebar.ts similarity index 100% rename from spec/generator/src/legacy/components/Sidebar.ts rename to apps/reference/generator/legacy/components/Sidebar.ts diff --git a/spec/generator/src/legacy/components/SidebarCategory.ts b/apps/reference/generator/legacy/components/SidebarCategory.ts similarity index 100% rename from spec/generator/src/legacy/components/SidebarCategory.ts rename to apps/reference/generator/legacy/components/SidebarCategory.ts diff --git a/spec/generator/src/legacy/components/Tab.ts b/apps/reference/generator/legacy/components/Tab.ts similarity index 100% rename from spec/generator/src/legacy/components/Tab.ts rename to apps/reference/generator/legacy/components/Tab.ts diff --git a/spec/generator/src/legacy/components/Tabs.ts b/apps/reference/generator/legacy/components/Tabs.ts similarity index 100% rename from spec/generator/src/legacy/components/Tabs.ts rename to apps/reference/generator/legacy/components/Tabs.ts diff --git a/spec/generator/src/legacy/definitions.ts b/apps/reference/generator/legacy/definitions.ts similarity index 100% rename from spec/generator/src/legacy/definitions.ts rename to apps/reference/generator/legacy/definitions.ts diff --git a/spec/generator/src/legacy/lib/helpers.ts b/apps/reference/generator/legacy/lib/helpers.ts similarity index 100% rename from spec/generator/src/legacy/lib/helpers.ts rename to apps/reference/generator/legacy/lib/helpers.ts diff --git a/spec/generator/src/docs/sdk.ts b/apps/reference/generator/sdk.ts similarity index 79% rename from spec/generator/src/docs/sdk.ts rename to apps/reference/generator/sdk.ts index 25d9f8a165c..ee290d16d2f 100644 --- a/spec/generator/src/docs/sdk.ts +++ b/apps/reference/generator/sdk.ts @@ -1,11 +1,9 @@ +import * as fs from 'fs' +import * as ejs from 'ejs' +import * as yaml from 'js-yaml' import template from './templates/SdkTemplate' -import type { SdkSpec } from '../types/SdkSpec' - -const yaml = require('js-yaml') -const fs = require('fs') -const ejs = require('ejs') -const Helpers = require('./Helpers') -const { writeToDisk } = Helpers +import { writeToDisk } from './helpers' +import type { SdkSpec } from './types/SdkSpec' export default async function gen(inputFileName: string, outputDir: string) { const spec = yaml.load(fs.readFileSync(inputFileName, 'utf8')) diff --git a/spec/generator/src/docs/templates/ApiTemplate.ts b/apps/reference/generator/templates/ApiTemplate.ts similarity index 100% rename from spec/generator/src/docs/templates/ApiTemplate.ts rename to apps/reference/generator/templates/ApiTemplate.ts diff --git a/spec/generator/src/docs/templates/CliTemplate.ts b/apps/reference/generator/templates/CliTemplate.ts similarity index 100% rename from spec/generator/src/docs/templates/CliTemplate.ts rename to apps/reference/generator/templates/CliTemplate.ts diff --git a/spec/generator/src/docs/templates/ConfigTemplate.ts b/apps/reference/generator/templates/ConfigTemplate.ts similarity index 100% rename from spec/generator/src/docs/templates/ConfigTemplate.ts rename to apps/reference/generator/templates/ConfigTemplate.ts diff --git a/spec/generator/src/docs/templates/SdkTemplate.ts b/apps/reference/generator/templates/SdkTemplate.ts similarity index 100% rename from spec/generator/src/docs/templates/SdkTemplate.ts rename to apps/reference/generator/templates/SdkTemplate.ts diff --git a/spec/generator/src/types/CliSpec.ts b/apps/reference/generator/types/CliSpec.ts similarity index 100% rename from spec/generator/src/types/CliSpec.ts rename to apps/reference/generator/types/CliSpec.ts diff --git a/spec/generator/src/types/ConfigSpec.ts b/apps/reference/generator/types/ConfigSpec.ts similarity index 100% rename from spec/generator/src/types/ConfigSpec.ts rename to apps/reference/generator/types/ConfigSpec.ts diff --git a/spec/generator/src/types/SdkSpec.ts b/apps/reference/generator/types/SdkSpec.ts similarity index 100% rename from spec/generator/src/types/SdkSpec.ts rename to apps/reference/generator/types/SdkSpec.ts diff --git a/spec/generator/src/types/Spec.ts b/apps/reference/generator/types/Spec.ts similarity index 100% rename from spec/generator/src/types/Spec.ts rename to apps/reference/generator/types/Spec.ts diff --git a/apps/reference/nav/supabase_dart_sidebars.js b/apps/reference/nav/supabase_dart_sidebars.js index 71d742b7984..6d68e2458b0 100644 --- a/apps/reference/nav/supabase_dart_sidebars.js +++ b/apps/reference/nav/supabase_dart_sidebars.js @@ -17,8 +17,6 @@ const sidebars = { 'generated/auth-signin', 'generated/auth-signinwithprovider', 'generated/auth-signout', - 'generated/auth-session', - 'generated/auth-user', 'generated/auth-update', 'generated/auth-onauthstatechange', 'generated/reset-password-email', diff --git a/apps/reference/package-lock.json b/apps/reference/package-lock.json index f96aae903c3..ebfbb99e5e0 100644 --- a/apps/reference/package-lock.json +++ b/apps/reference/package-lock.json @@ -23,7 +23,14 @@ "sass": "^1.54.4" }, "devDependencies": { - "@docusaurus/module-type-aliases": "2.0.0-rc.1" + "@docusaurus/module-type-aliases": "2.0.0-rc.1", + "ejs": "^3.1.8", + "lodash": "^4.17.21", + "minimist": "^1.2.6", + "npm-run-all": "^4.1.5", + "openapi-types": "^12.0.2", + "ts-node": "^10.9.1", + "typescript": "^4.8.3" }, "engines": { "node": ">=16.14" @@ -1967,6 +1974,28 @@ "node": ">=0.1.90" } }, + "node_modules/@cspotcode/source-map-support": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", + "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "0.3.9" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", + "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, "node_modules/@docsearch/css": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/@docsearch/css/-/css-3.2.1.tgz", @@ -3765,6 +3794,30 @@ "node": ">=10.13.0" } }, + "node_modules/@tsconfig/node10": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", + "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==", + "dev": true + }, + "node_modules/@tsconfig/node12": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", + "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", + "dev": true + }, + "node_modules/@tsconfig/node14": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", + "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", + "dev": true + }, + "node_modules/@tsconfig/node16": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.3.tgz", + "integrity": "sha512-yOlFc+7UtL/89t2ZhjPvvB/DeAr3r+Dq58IgzsFkOAvVC6NMJXmCGjbptdXdR9qsX7pKcTL+s87FtYREi2dEEQ==", + "dev": true + }, "node_modules/@types/aws-lambda": { "version": "8.10.102", "resolved": "https://registry.npmjs.org/@types/aws-lambda/-/aws-lambda-8.10.102.tgz", @@ -4444,6 +4497,12 @@ "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==" }, + "node_modules/async": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz", + "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==", + "dev": true + }, "node_modules/at-least-node": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", @@ -5629,6 +5688,12 @@ "node": ">=10" } }, + "node_modules/create-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", + "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", + "dev": true + }, "node_modules/cross-fetch": { "version": "3.1.5", "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.5.tgz", @@ -6137,6 +6202,15 @@ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" }, + "node_modules/diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "dev": true, + "engines": { + "node": ">=0.3.1" + } + }, "node_modules/dir-glob": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", @@ -6321,6 +6395,21 @@ "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" }, + "node_modules/ejs": { + "version": "3.1.8", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.8.tgz", + "integrity": "sha512-/sXZeMlhS0ArkfX2Aw780gJzXSMPnKjtspYZv+f3NiKLlubezAHDU5+9xz6gd3/NhG3txQCo6xlglmTS+oTGEQ==", + "dev": true, + "dependencies": { + "jake": "^10.8.5" + }, + "bin": { + "ejs": "bin/cli.js" + }, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/electron-to-chromium": { "version": "1.4.221", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.221.tgz", @@ -6399,7 +6488,7 @@ "version": "1.20.1", "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.20.1.tgz", "integrity": "sha512-WEm2oBhfoI2sImeM4OF2zE2V3BYdSF+KnSi9Sidz51fQHd7+JuF8Xgcj9/0o+OWeIeIS/MiuNnlruQrJf16GQA==", - "optional": true, + "devOptional": true, "dependencies": { "call-bind": "^1.0.2", "es-to-primitive": "^1.2.1", @@ -6441,7 +6530,7 @@ "version": "1.2.1", "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", - "optional": true, + "devOptional": true, "dependencies": { "is-callable": "^1.1.4", "is-date-object": "^1.0.1", @@ -6867,6 +6956,36 @@ "url": "https://opencollective.com/webpack" } }, + "node_modules/filelist": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", + "integrity": "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==", + "dev": true, + "dependencies": { + "minimatch": "^5.0.1" + } + }, + "node_modules/filelist/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/filelist/node_modules/minimatch": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.0.tgz", + "integrity": "sha512-9TPBGGak4nHfGZsPBohm9AWg6NoT7QTCehS3BIJABslyZbzxfV78QM2Y6+i741OPZIafFAaiiEMh5OyIrJPgtg==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/filesize": { "version": "8.0.7", "resolved": "https://registry.npmjs.org/filesize/-/filesize-8.0.7.tgz", @@ -7168,7 +7287,7 @@ "version": "1.1.5", "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", - "optional": true, + "devOptional": true, "dependencies": { "call-bind": "^1.0.2", "define-properties": "^1.1.3", @@ -7186,7 +7305,7 @@ "version": "1.2.3", "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", - "optional": true, + "devOptional": true, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -7232,7 +7351,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", - "optional": true, + "devOptional": true, "dependencies": { "call-bind": "^1.0.2", "get-intrinsic": "^1.1.1" @@ -7462,7 +7581,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", - "optional": true, + "devOptional": true, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -7501,7 +7620,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", - "optional": true, + "devOptional": true, "dependencies": { "has-symbols": "^1.0.2" }, @@ -7651,6 +7770,12 @@ "react-is": "^16.7.0" } }, + "node_modules/hosted-git-info": { + "version": "2.8.9", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", + "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", + "dev": true + }, "node_modules/hpack.js": { "version": "2.1.6", "resolved": "https://registry.npmjs.org/hpack.js/-/hpack.js-2.1.6.tgz", @@ -8001,7 +8126,7 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.3.tgz", "integrity": "sha512-O0DB1JC/sPyZl7cIo78n5dR7eUSwwpYPiXRhTzNxZVAMUuB8vlnRFyLxdrVToks6XPLVnFfbzaVd5WLjhgg+vA==", - "optional": true, + "devOptional": true, "dependencies": { "get-intrinsic": "^1.1.0", "has": "^1.0.3", @@ -8082,7 +8207,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", - "optional": true, + "devOptional": true, "dependencies": { "has-bigints": "^1.0.1" }, @@ -8105,7 +8230,7 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", - "optional": true, + "devOptional": true, "dependencies": { "call-bind": "^1.0.2", "has-tostringtag": "^1.0.0" @@ -8143,7 +8268,7 @@ "version": "1.2.4", "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.4.tgz", "integrity": "sha512-nsuwtxZfMX67Oryl9LCQ+upnC0Z0BgpwntpS89m1H/TLF0zNfzfLMV/9Wa/6MZsj0acpEjAO0KF1xT6ZdLl95w==", - "optional": true, + "devOptional": true, "engines": { "node": ">= 0.4" }, @@ -8177,7 +8302,7 @@ "version": "1.0.5", "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", - "optional": true, + "devOptional": true, "dependencies": { "has-tostringtag": "^1.0.0" }, @@ -8289,7 +8414,7 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", - "optional": true, + "devOptional": true, "engines": { "node": ">= 0.4" }, @@ -8320,7 +8445,7 @@ "version": "1.0.7", "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", - "optional": true, + "devOptional": true, "dependencies": { "has-tostringtag": "^1.0.0" }, @@ -8375,7 +8500,7 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", - "optional": true, + "devOptional": true, "dependencies": { "call-bind": "^1.0.2", "has-tostringtag": "^1.0.0" @@ -8407,7 +8532,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", - "optional": true, + "devOptional": true, "dependencies": { "call-bind": "^1.0.2" }, @@ -8430,7 +8555,7 @@ "version": "1.0.7", "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", - "optional": true, + "devOptional": true, "dependencies": { "has-tostringtag": "^1.0.0" }, @@ -8445,7 +8570,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", - "optional": true, + "devOptional": true, "dependencies": { "has-symbols": "^1.0.2" }, @@ -8484,7 +8609,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", - "optional": true, + "devOptional": true, "dependencies": { "call-bind": "^1.0.2" }, @@ -8544,6 +8669,24 @@ "node": ">=0.10.0" } }, + "node_modules/jake": { + "version": "10.8.5", + "resolved": "https://registry.npmjs.org/jake/-/jake-10.8.5.tgz", + "integrity": "sha512-sVpxYeuAhWt0OTWITwT98oyV0GsXyMlXCF+3L1SuafBVUIr/uILGRB+NqwkzhgXKvoJpDIpQvqkUALgdmQsQxw==", + "dev": true, + "dependencies": { + "async": "^3.2.3", + "chalk": "^4.0.2", + "filelist": "^1.0.1", + "minimatch": "^3.0.4" + }, + "bin": { + "jake": "bin/cli.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/jest-worker": { "version": "27.5.1", "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", @@ -8624,6 +8767,12 @@ "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz", "integrity": "sha512-CuUqjv0FUZIdXkHPI8MezCnFCdaTAacej1TZYulLoAg1h/PhwkdXFN4V/gzY4g+fMBCOV2xF+rp7t2XD2ns/NQ==" }, + "node_modules/json-parse-better-errors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", + "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", + "dev": true + }, "node_modules/json-parse-even-better-errors": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", @@ -8776,6 +8925,34 @@ "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==" }, + "node_modules/load-json-file": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", + "integrity": "sha512-Kx8hMakjX03tiGTLAIdJ+lL0htKnXjEZN6hk/tozf/WOuYGdZBJrZ+rCJRbVCugsjB3jMLn9746NsQIf5VjBMw==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.1.2", + "parse-json": "^4.0.0", + "pify": "^3.0.0", + "strip-bom": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/load-json-file/node_modules/parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha512-aOIos8bujGN93/8Ox/jPLh7RwVnPEysynVFE+fQZyg6jKELEHwzgKdLRFHUgXJL6kylijVSBC4BvN9OmsB48Rw==", + "dev": true, + "dependencies": { + "error-ex": "^1.3.1", + "json-parse-better-errors": "^1.0.1" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/loader-runner": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", @@ -8945,6 +9122,12 @@ "semver": "bin/semver.js" } }, + "node_modules/make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true + }, "node_modules/markdown-escapes": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/markdown-escapes/-/markdown-escapes-1.0.4.tgz", @@ -9035,6 +9218,15 @@ "node": ">= 4.0.0" } }, + "node_modules/memorystream": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/memorystream/-/memorystream-0.3.1.tgz", + "integrity": "sha512-S3UwM3yj5mtUSEfP41UZmt/0SCoVYUcU1rkXv+BQ5Ig8ndL4sPoJNBUJERafdPb5jjHJGuMgytgKvKIf58XNBw==", + "dev": true, + "engines": { + "node": ">= 0.10.0" + } + }, "node_modules/merge-descriptors": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", @@ -9269,6 +9461,12 @@ "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==" }, + "node_modules/nice-try": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", + "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", + "dev": true + }, "node_modules/no-case": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz", @@ -9318,6 +9516,27 @@ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.6.tgz", "integrity": "sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==" }, + "node_modules/normalize-package-data": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", + "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", + "dev": true, + "dependencies": { + "hosted-git-info": "^2.1.4", + "resolve": "^1.10.0", + "semver": "2 || 3 || 4 || 5", + "validate-npm-package-license": "^3.0.1" + } + }, + "node_modules/normalize-package-data/node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true, + "bin": { + "semver": "bin/semver" + } + }, "node_modules/normalize-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", @@ -9345,6 +9564,169 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/npm-run-all": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/npm-run-all/-/npm-run-all-4.1.5.tgz", + "integrity": "sha512-Oo82gJDAVcaMdi3nuoKFavkIHBRVqQ1qvMb+9LHk/cF4P6B2m8aP04hGf7oL6wZ9BuGwX1onlLhpuoofSyoQDQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "chalk": "^2.4.1", + "cross-spawn": "^6.0.5", + "memorystream": "^0.3.1", + "minimatch": "^3.0.4", + "pidtree": "^0.3.0", + "read-pkg": "^3.0.0", + "shell-quote": "^1.6.1", + "string.prototype.padend": "^3.0.0" + }, + "bin": { + "npm-run-all": "bin/npm-run-all/index.js", + "run-p": "bin/run-p/index.js", + "run-s": "bin/run-s/index.js" + }, + "engines": { + "node": ">= 4" + } + }, + "node_modules/npm-run-all/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/npm-run-all/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/npm-run-all/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/npm-run-all/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, + "node_modules/npm-run-all/node_modules/cross-spawn": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", + "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "dev": true, + "dependencies": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + }, + "engines": { + "node": ">=4.8" + } + }, + "node_modules/npm-run-all/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/npm-run-all/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/npm-run-all/node_modules/path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/npm-run-all/node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true, + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/npm-run-all/node_modules/shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==", + "dev": true, + "dependencies": { + "shebang-regex": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm-run-all/node_modules/shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm-run-all/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/npm-run-all/node_modules/which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "which": "bin/which" + } + }, "node_modules/npm-run-path": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", @@ -9493,6 +9875,12 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/openapi-types": { + "version": "12.0.2", + "resolved": "https://registry.npmjs.org/openapi-types/-/openapi-types-12.0.2.tgz", + "integrity": "sha512-GuTo7FyZjOIWVhIhQSWJVaws6A82sWIGyQogxxYBYKZ0NBdyP2CYSIgOwFfSB+UVoPExk/YzFpyYitHS8KVZtA==", + "dev": true + }, "node_modules/opener": { "version": "1.5.2", "resolved": "https://registry.npmjs.org/opener/-/opener-1.5.2.tgz", @@ -9760,6 +10148,27 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, + "node_modules/pidtree": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/pidtree/-/pidtree-0.3.1.tgz", + "integrity": "sha512-qQbW94hLHEqCg7nhby4yRC7G2+jYHY4Rguc2bjw7Uug4GIJuu1tvf2uHaZv5Q8zdt+WKJ6qK1FOI6amaWUo5FA==", + "dev": true, + "bin": { + "pidtree": "bin/pidtree.js" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==", + "dev": true, + "engines": { + "node": ">=4" + } + }, "node_modules/pkg-dir": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", @@ -10914,6 +11323,32 @@ "react": "^16.8.0 || ^17.0.0 || ^18.0.0" } }, + "node_modules/read-pkg": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", + "integrity": "sha512-BLq/cCO9two+lBgiTYNqD6GdtK8s4NpaWrl6/rCO9w0TUS8oJl7cmToOZfRYllKTISY6nt1U7jQ53brmKqY6BA==", + "dev": true, + "dependencies": { + "load-json-file": "^4.0.0", + "normalize-package-data": "^2.3.2", + "path-type": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/read-pkg/node_modules/path-type": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", + "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", + "dev": true, + "dependencies": { + "pify": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/readable-stream": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", @@ -11009,7 +11444,7 @@ "version": "1.4.3", "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz", "integrity": "sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA==", - "optional": true, + "devOptional": true, "dependencies": { "call-bind": "^1.0.2", "define-properties": "^1.1.3", @@ -12099,6 +12534,38 @@ "url": "https://github.com/sponsors/wooorm" } }, + "node_modules/spdx-correct": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz", + "integrity": "sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==", + "dev": true, + "dependencies": { + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/spdx-exceptions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", + "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", + "dev": true + }, + "node_modules/spdx-expression-parse": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", + "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", + "dev": true, + "dependencies": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/spdx-license-ids": { + "version": "3.0.12", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.12.tgz", + "integrity": "sha512-rr+VVSXtRhO4OHbXUiAF7xW3Bo9DuuF6C5jH+q/x15j2jniycgKbxU09Hr0WqlSLUs4i4ltHGXqTe7VHclYWyA==", + "dev": true + }, "node_modules/spdy": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/spdy/-/spdy-4.0.2.tgz", @@ -12228,11 +12695,28 @@ "url": "https://github.com/chalk/strip-ansi?sponsor=1" } }, + "node_modules/string.prototype.padend": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/string.prototype.padend/-/string.prototype.padend-3.1.3.tgz", + "integrity": "sha512-jNIIeokznm8SD/TZISQsZKYu7RJyheFNt84DUPrh482GC8RVp2MKqm2O5oBRdGxbDQoXrhhWtPIWQOiy20svUg==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/string.prototype.trimend": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.5.tgz", "integrity": "sha512-I7RGvmjV4pJ7O3kdf+LXFpVfdNOxtCW/2C8f6jNiW4+PQchwxkCDzlk1/7p+Wl4bqFIZeF47qAHXLuHHWKAxog==", - "optional": true, + "devOptional": true, "dependencies": { "call-bind": "^1.0.2", "define-properties": "^1.1.4", @@ -12246,7 +12730,7 @@ "version": "1.0.5", "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.5.tgz", "integrity": "sha512-THx16TJCGlsN0o6dl2o6ncWUsdgnLRSA23rRE5pyGBw/mLr3Ej/R2LaqCtgP8VNMGZsvMWnf9ooZPyY2bHvUFg==", - "optional": true, + "devOptional": true, "dependencies": { "call-bind": "^1.0.2", "define-properties": "^1.1.4", @@ -12280,6 +12764,15 @@ "node": ">=8" } }, + "node_modules/strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, "node_modules/strip-bom-string": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/strip-bom-string/-/strip-bom-string-1.0.0.tgz", @@ -12619,6 +13112,55 @@ "url": "https://github.com/sponsors/wooorm" } }, + "node_modules/ts-node": { + "version": "10.9.1", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz", + "integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==", + "dev": true, + "dependencies": { + "@cspotcode/source-map-support": "^0.8.0", + "@tsconfig/node10": "^1.0.7", + "@tsconfig/node12": "^1.0.7", + "@tsconfig/node14": "^1.0.0", + "@tsconfig/node16": "^1.0.2", + "acorn": "^8.4.1", + "acorn-walk": "^8.1.1", + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "v8-compile-cache-lib": "^3.0.1", + "yn": "3.1.1" + }, + "bin": { + "ts-node": "dist/bin.js", + "ts-node-cwd": "dist/bin-cwd.js", + "ts-node-esm": "dist/bin-esm.js", + "ts-node-script": "dist/bin-script.js", + "ts-node-transpile-only": "dist/bin-transpile.js", + "ts-script": "dist/bin-script-deprecated.js" + }, + "peerDependencies": { + "@swc/core": ">=1.2.50", + "@swc/wasm": ">=1.2.50", + "@types/node": "*", + "typescript": ">=2.7" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "@swc/wasm": { + "optional": true + } + } + }, + "node_modules/ts-node/node_modules/arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "dev": true + }, "node_modules/tslib": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", @@ -12675,10 +13217,9 @@ } }, "node_modules/typescript": { - "version": "4.7.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz", - "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==", - "peer": true, + "version": "4.8.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.3.tgz", + "integrity": "sha512-goMHfm00nWPa8UvR/CPSvykqf6dVV8x/dp0c5mFTMTIu0u0FlGWRioyy7Nn0PGAdHxpJZnuO/ut+PpQ8UiHAig==", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -12755,7 +13296,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", - "optional": true, + "devOptional": true, "dependencies": { "call-bind": "^1.0.2", "has-bigints": "^1.0.2", @@ -13303,6 +13844,22 @@ "uuid": "dist/bin/uuid" } }, + "node_modules/v8-compile-cache-lib": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", + "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", + "dev": true + }, + "node_modules/validate-npm-package-license": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", + "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", + "dev": true, + "dependencies": { + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" + } + }, "node_modules/value-equal": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/value-equal/-/value-equal-1.0.1.tgz", @@ -13839,7 +14396,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", - "optional": true, + "devOptional": true, "dependencies": { "is-bigint": "^1.0.1", "is-boolean-object": "^1.1.0", @@ -14042,6 +14599,15 @@ "node": ">= 6" } }, + "node_modules/yn": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", @@ -15420,6 +15986,27 @@ "integrity": "sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==", "optional": true }, + "@cspotcode/source-map-support": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", + "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", + "dev": true, + "requires": { + "@jridgewell/trace-mapping": "0.3.9" + }, + "dependencies": { + "@jridgewell/trace-mapping": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", + "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "dev": true, + "requires": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + } + } + }, "@docsearch/css": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/@docsearch/css/-/css-3.2.1.tgz", @@ -16782,6 +17369,30 @@ "resolved": "https://registry.npmjs.org/@trysound/sax/-/sax-0.2.0.tgz", "integrity": "sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==" }, + "@tsconfig/node10": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", + "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==", + "dev": true + }, + "@tsconfig/node12": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", + "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", + "dev": true + }, + "@tsconfig/node14": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", + "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", + "dev": true + }, + "@tsconfig/node16": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.3.tgz", + "integrity": "sha512-yOlFc+7UtL/89t2ZhjPvvB/DeAr3r+Dq58IgzsFkOAvVC6NMJXmCGjbptdXdR9qsX7pKcTL+s87FtYREi2dEEQ==", + "dev": true + }, "@types/aws-lambda": { "version": "8.10.102", "resolved": "https://registry.npmjs.org/@types/aws-lambda/-/aws-lambda-8.10.102.tgz", @@ -17396,6 +18007,12 @@ "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==" }, + "async": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz", + "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==", + "dev": true + }, "at-least-node": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", @@ -18256,6 +18873,12 @@ "yaml": "^1.10.0" } }, + "create-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", + "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", + "dev": true + }, "cross-fetch": { "version": "3.1.5", "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.5.tgz", @@ -18603,6 +19226,12 @@ } } }, + "diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "dev": true + }, "dir-glob": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", @@ -18746,6 +19375,15 @@ "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" }, + "ejs": { + "version": "3.1.8", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.8.tgz", + "integrity": "sha512-/sXZeMlhS0ArkfX2Aw780gJzXSMPnKjtspYZv+f3NiKLlubezAHDU5+9xz6gd3/NhG3txQCo6xlglmTS+oTGEQ==", + "dev": true, + "requires": { + "jake": "^10.8.5" + } + }, "electron-to-chromium": { "version": "1.4.221", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.221.tgz", @@ -18805,7 +19443,7 @@ "version": "1.20.1", "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.20.1.tgz", "integrity": "sha512-WEm2oBhfoI2sImeM4OF2zE2V3BYdSF+KnSi9Sidz51fQHd7+JuF8Xgcj9/0o+OWeIeIS/MiuNnlruQrJf16GQA==", - "optional": true, + "devOptional": true, "requires": { "call-bind": "^1.0.2", "es-to-primitive": "^1.2.1", @@ -18841,7 +19479,7 @@ "version": "1.2.1", "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", - "optional": true, + "devOptional": true, "requires": { "is-callable": "^1.1.4", "is-date-object": "^1.0.1", @@ -19156,6 +19794,35 @@ } } }, + "filelist": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", + "integrity": "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==", + "dev": true, + "requires": { + "minimatch": "^5.0.1" + }, + "dependencies": { + "brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0" + } + }, + "minimatch": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.0.tgz", + "integrity": "sha512-9TPBGGak4nHfGZsPBohm9AWg6NoT7QTCehS3BIJABslyZbzxfV78QM2Y6+i741OPZIafFAaiiEMh5OyIrJPgtg==", + "dev": true, + "requires": { + "brace-expansion": "^2.0.1" + } + } + } + }, "filesize": { "version": "8.0.7", "resolved": "https://registry.npmjs.org/filesize/-/filesize-8.0.7.tgz", @@ -19355,7 +20022,7 @@ "version": "1.1.5", "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", - "optional": true, + "devOptional": true, "requires": { "call-bind": "^1.0.2", "define-properties": "^1.1.3", @@ -19367,7 +20034,7 @@ "version": "1.2.3", "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", - "optional": true + "devOptional": true }, "gensync": { "version": "1.0.0-beta.2", @@ -19401,7 +20068,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", - "optional": true, + "devOptional": true, "requires": { "call-bind": "^1.0.2", "get-intrinsic": "^1.1.1" @@ -19577,7 +20244,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", - "optional": true + "devOptional": true }, "has-flag": { "version": "4.0.0", @@ -19601,7 +20268,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", - "optional": true, + "devOptional": true, "requires": { "has-symbols": "^1.0.2" } @@ -19717,6 +20384,12 @@ "react-is": "^16.7.0" } }, + "hosted-git-info": { + "version": "2.8.9", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", + "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", + "dev": true + }, "hpack.js": { "version": "2.1.6", "resolved": "https://registry.npmjs.org/hpack.js/-/hpack.js-2.1.6.tgz", @@ -19972,7 +20645,7 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.3.tgz", "integrity": "sha512-O0DB1JC/sPyZl7cIo78n5dR7eUSwwpYPiXRhTzNxZVAMUuB8vlnRFyLxdrVToks6XPLVnFfbzaVd5WLjhgg+vA==", - "optional": true, + "devOptional": true, "requires": { "get-intrinsic": "^1.1.0", "has": "^1.0.3", @@ -20030,7 +20703,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", - "optional": true, + "devOptional": true, "requires": { "has-bigints": "^1.0.1" } @@ -20047,7 +20720,7 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", - "optional": true, + "devOptional": true, "requires": { "call-bind": "^1.0.2", "has-tostringtag": "^1.0.0" @@ -20062,7 +20735,7 @@ "version": "1.2.4", "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.4.tgz", "integrity": "sha512-nsuwtxZfMX67Oryl9LCQ+upnC0Z0BgpwntpS89m1H/TLF0zNfzfLMV/9Wa/6MZsj0acpEjAO0KF1xT6ZdLl95w==", - "optional": true + "devOptional": true }, "is-ci": { "version": "2.0.0", @@ -20084,7 +20757,7 @@ "version": "1.0.5", "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", - "optional": true, + "devOptional": true, "requires": { "has-tostringtag": "^1.0.0" } @@ -20149,7 +20822,7 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", - "optional": true + "devOptional": true }, "is-npm": { "version": "5.0.0", @@ -20165,7 +20838,7 @@ "version": "1.0.7", "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", - "optional": true, + "devOptional": true, "requires": { "has-tostringtag": "^1.0.0" } @@ -20199,7 +20872,7 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", - "optional": true, + "devOptional": true, "requires": { "call-bind": "^1.0.2", "has-tostringtag": "^1.0.0" @@ -20219,7 +20892,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", - "optional": true, + "devOptional": true, "requires": { "call-bind": "^1.0.2" } @@ -20233,7 +20906,7 @@ "version": "1.0.7", "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", - "optional": true, + "devOptional": true, "requires": { "has-tostringtag": "^1.0.0" } @@ -20242,7 +20915,7 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", - "optional": true, + "devOptional": true, "requires": { "has-symbols": "^1.0.2" } @@ -20269,7 +20942,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", - "optional": true, + "devOptional": true, "requires": { "call-bind": "^1.0.2" } @@ -20312,6 +20985,18 @@ "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==" }, + "jake": { + "version": "10.8.5", + "resolved": "https://registry.npmjs.org/jake/-/jake-10.8.5.tgz", + "integrity": "sha512-sVpxYeuAhWt0OTWITwT98oyV0GsXyMlXCF+3L1SuafBVUIr/uILGRB+NqwkzhgXKvoJpDIpQvqkUALgdmQsQxw==", + "dev": true, + "requires": { + "async": "^3.2.3", + "chalk": "^4.0.2", + "filelist": "^1.0.1", + "minimatch": "^3.0.4" + } + }, "jest-worker": { "version": "27.5.1", "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", @@ -20373,6 +21058,12 @@ "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz", "integrity": "sha512-CuUqjv0FUZIdXkHPI8MezCnFCdaTAacej1TZYulLoAg1h/PhwkdXFN4V/gzY4g+fMBCOV2xF+rp7t2XD2ns/NQ==" }, + "json-parse-better-errors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", + "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", + "dev": true + }, "json-parse-even-better-errors": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", @@ -20491,6 +21182,30 @@ "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==" }, + "load-json-file": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", + "integrity": "sha512-Kx8hMakjX03tiGTLAIdJ+lL0htKnXjEZN6hk/tozf/WOuYGdZBJrZ+rCJRbVCugsjB3jMLn9746NsQIf5VjBMw==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "parse-json": "^4.0.0", + "pify": "^3.0.0", + "strip-bom": "^3.0.0" + }, + "dependencies": { + "parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha512-aOIos8bujGN93/8Ox/jPLh7RwVnPEysynVFE+fQZyg6jKELEHwzgKdLRFHUgXJL6kylijVSBC4BvN9OmsB48Rw==", + "dev": true, + "requires": { + "error-ex": "^1.3.1", + "json-parse-better-errors": "^1.0.1" + } + } + } + }, "loader-runner": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", @@ -20628,6 +21343,12 @@ } } }, + "make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true + }, "markdown-escapes": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/markdown-escapes/-/markdown-escapes-1.0.4.tgz", @@ -20692,6 +21413,12 @@ "fs-monkey": "^1.0.3" } }, + "memorystream": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/memorystream/-/memorystream-0.3.1.tgz", + "integrity": "sha512-S3UwM3yj5mtUSEfP41UZmt/0SCoVYUcU1rkXv+BQ5Ig8ndL4sPoJNBUJERafdPb5jjHJGuMgytgKvKIf58XNBw==", + "dev": true + }, "merge-descriptors": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", @@ -20855,6 +21582,12 @@ "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==" }, + "nice-try": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", + "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", + "dev": true + }, "no-case": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz", @@ -20890,6 +21623,26 @@ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.6.tgz", "integrity": "sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==" }, + "normalize-package-data": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", + "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", + "dev": true, + "requires": { + "hosted-git-info": "^2.1.4", + "resolve": "^1.10.0", + "semver": "2 || 3 || 4 || 5", + "validate-npm-package-license": "^3.0.1" + }, + "dependencies": { + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + } + } + }, "normalize-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", @@ -20905,6 +21658,130 @@ "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==" }, + "npm-run-all": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/npm-run-all/-/npm-run-all-4.1.5.tgz", + "integrity": "sha512-Oo82gJDAVcaMdi3nuoKFavkIHBRVqQ1qvMb+9LHk/cF4P6B2m8aP04hGf7oL6wZ9BuGwX1onlLhpuoofSyoQDQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "chalk": "^2.4.1", + "cross-spawn": "^6.0.5", + "memorystream": "^0.3.1", + "minimatch": "^3.0.4", + "pidtree": "^0.3.0", + "read-pkg": "^3.0.0", + "shell-quote": "^1.6.1", + "string.prototype.padend": "^3.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, + "cross-spawn": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", + "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "dev": true, + "requires": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + } + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true + }, + "path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==", + "dev": true + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + }, + "shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==", + "dev": true, + "requires": { + "shebang-regex": "^1.0.0" + } + }, + "shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + }, + "which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } + } + } + }, "npm-run-path": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", @@ -21011,6 +21888,12 @@ "is-wsl": "^2.2.0" } }, + "openapi-types": { + "version": "12.0.2", + "resolved": "https://registry.npmjs.org/openapi-types/-/openapi-types-12.0.2.tgz", + "integrity": "sha512-GuTo7FyZjOIWVhIhQSWJVaws6A82sWIGyQogxxYBYKZ0NBdyP2CYSIgOwFfSB+UVoPExk/YzFpyYitHS8KVZtA==", + "dev": true + }, "opener": { "version": "1.5.2", "resolved": "https://registry.npmjs.org/opener/-/opener-1.5.2.tgz", @@ -21209,6 +22092,18 @@ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==" }, + "pidtree": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/pidtree/-/pidtree-0.3.1.tgz", + "integrity": "sha512-qQbW94hLHEqCg7nhby4yRC7G2+jYHY4Rguc2bjw7Uug4GIJuu1tvf2uHaZv5Q8zdt+WKJ6qK1FOI6amaWUo5FA==", + "dev": true + }, + "pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==", + "dev": true + }, "pkg-dir": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", @@ -21985,6 +22880,28 @@ "use-latest": "^1.2.1" } }, + "read-pkg": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", + "integrity": "sha512-BLq/cCO9two+lBgiTYNqD6GdtK8s4NpaWrl6/rCO9w0TUS8oJl7cmToOZfRYllKTISY6nt1U7jQ53brmKqY6BA==", + "dev": true, + "requires": { + "load-json-file": "^4.0.0", + "normalize-package-data": "^2.3.2", + "path-type": "^3.0.0" + }, + "dependencies": { + "path-type": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", + "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", + "dev": true, + "requires": { + "pify": "^3.0.0" + } + } + } + }, "readable-stream": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", @@ -22064,7 +22981,7 @@ "version": "1.4.3", "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz", "integrity": "sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA==", - "optional": true, + "devOptional": true, "requires": { "call-bind": "^1.0.2", "define-properties": "^1.1.3", @@ -22885,6 +23802,38 @@ "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-1.1.5.tgz", "integrity": "sha512-q/JSVd1Lptzhf5bkYm4ob4iWPjx0KiRe3sRFBNrVqbJkFaBm5vbbowy1mymoPNLRa52+oadOhJ+K49wsSeSjTA==" }, + "spdx-correct": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz", + "integrity": "sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==", + "dev": true, + "requires": { + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" + } + }, + "spdx-exceptions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", + "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", + "dev": true + }, + "spdx-expression-parse": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", + "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", + "dev": true, + "requires": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, + "spdx-license-ids": { + "version": "3.0.12", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.12.tgz", + "integrity": "sha512-rr+VVSXtRhO4OHbXUiAF7xW3Bo9DuuF6C5jH+q/x15j2jniycgKbxU09Hr0WqlSLUs4i4ltHGXqTe7VHclYWyA==", + "dev": true + }, "spdy": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/spdy/-/spdy-4.0.2.tgz", @@ -22975,11 +23924,22 @@ } } }, + "string.prototype.padend": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/string.prototype.padend/-/string.prototype.padend-3.1.3.tgz", + "integrity": "sha512-jNIIeokznm8SD/TZISQsZKYu7RJyheFNt84DUPrh482GC8RVp2MKqm2O5oBRdGxbDQoXrhhWtPIWQOiy20svUg==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.1" + } + }, "string.prototype.trimend": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.5.tgz", "integrity": "sha512-I7RGvmjV4pJ7O3kdf+LXFpVfdNOxtCW/2C8f6jNiW4+PQchwxkCDzlk1/7p+Wl4bqFIZeF47qAHXLuHHWKAxog==", - "optional": true, + "devOptional": true, "requires": { "call-bind": "^1.0.2", "define-properties": "^1.1.4", @@ -22990,7 +23950,7 @@ "version": "1.0.5", "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.5.tgz", "integrity": "sha512-THx16TJCGlsN0o6dl2o6ncWUsdgnLRSA23rRE5pyGBw/mLr3Ej/R2LaqCtgP8VNMGZsvMWnf9ooZPyY2bHvUFg==", - "optional": true, + "devOptional": true, "requires": { "call-bind": "^1.0.2", "define-properties": "^1.1.4", @@ -23015,6 +23975,12 @@ "ansi-regex": "^5.0.1" } }, + "strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "dev": true + }, "strip-bom-string": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/strip-bom-string/-/strip-bom-string-1.0.0.tgz", @@ -23246,6 +24212,35 @@ "resolved": "https://registry.npmjs.org/trough/-/trough-1.0.5.tgz", "integrity": "sha512-rvuRbTarPXmMb79SmzEp8aqXNKcK+y0XaB298IXueQ8I2PsrATcPBCSPyK/dDNa2iWOhKlfNnOjdAOTBU/nkFA==" }, + "ts-node": { + "version": "10.9.1", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz", + "integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==", + "dev": true, + "requires": { + "@cspotcode/source-map-support": "^0.8.0", + "@tsconfig/node10": "^1.0.7", + "@tsconfig/node12": "^1.0.7", + "@tsconfig/node14": "^1.0.0", + "@tsconfig/node16": "^1.0.2", + "acorn": "^8.4.1", + "acorn-walk": "^8.1.1", + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "v8-compile-cache-lib": "^3.0.1", + "yn": "3.1.1" + }, + "dependencies": { + "arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "dev": true + } + } + }, "tslib": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", @@ -23289,10 +24284,9 @@ } }, "typescript": { - "version": "4.7.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz", - "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==", - "peer": true + "version": "4.8.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.3.tgz", + "integrity": "sha512-goMHfm00nWPa8UvR/CPSvykqf6dVV8x/dp0c5mFTMTIu0u0FlGWRioyy7Nn0PGAdHxpJZnuO/ut+PpQ8UiHAig==" }, "typesense": { "version": "1.4.0", @@ -23337,7 +24331,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", - "optional": true, + "devOptional": true, "requires": { "call-bind": "^1.0.2", "has-bigints": "^1.0.2", @@ -23712,6 +24706,22 @@ "integrity": "sha512-jOXGuXZAWdsTH7eZLtyXMqUb9EcWMGZNbL9YcGBJl4MH4nrxHmZJhEHvyLFrkxo+28uLb/NYRcStH48fnD0Vzw==", "optional": true }, + "v8-compile-cache-lib": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", + "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", + "dev": true + }, + "validate-npm-package-license": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", + "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", + "dev": true, + "requires": { + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" + } + }, "value-equal": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/value-equal/-/value-equal-1.0.1.tgz", @@ -24087,7 +25097,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", - "optional": true, + "devOptional": true, "requires": { "is-bigint": "^1.0.1", "is-boolean-object": "^1.1.0", @@ -24226,6 +25236,12 @@ "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==" }, + "yn": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", + "dev": true + }, "yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", diff --git a/apps/reference/package.json b/apps/reference/package.json index ce1e055d7f6..4aad491638d 100644 --- a/apps/reference/package.json +++ b/apps/reference/package.json @@ -3,11 +3,11 @@ "version": "0.0.0", "private": true, "scripts": { - "dev": "npm run docusaurus", + "dev": "npm run generate:all && npm run docusaurus", "start": "npm run docusaurus", "docusaurus": "docusaurus start --port 3010", "swizzle": "docusaurus swizzle", - "build": "docusaurus build", + "build": "npm run generate:all && docusaurus build", "build:vercel": "npm run clear && docusaurus build --out-dir build/docs", "deploy": "docusaurus deploy", "clear": "docusaurus clear", @@ -17,7 +17,26 @@ "gotrue:version": "docusaurus docs:version:_gotrue", "storage:version": "docusaurus docs:version:_storage", "supabase-js:version": "docusaurus docs:version:_supabase_js", - "supabase-dart:version": "docusaurus docs:version:_supabase_dart" + "supabase-dart:version": "docusaurus docs:version:_supabase_dart", + "generate:all": "npm-run-all --parallel gen:api gen:cli gen:gotrue gen:storage gen:supabase-dart:v0 gen:supabase-dart:v1 gen:supabase-js:v1 gen:supabase-js:v2", + "gen:api": "npm-run-all gen:api:usage", + "gen:api:usage": "ts-node ./generator/index.ts gen --type api --url https://api.supabase.com --input ../../spec/transforms/api_v0_openapi_deparsed.json --output ./_api/usage.mdx", + "gen:cli": "npm-run-all gen:cli:commands gen:cli:config", + "gen:cli:commands": "ts-node ./generator/index.ts gen --type cli --input ../../spec/cli_v1_commands.yaml --output ./_cli/generated/usage.mdx ", + "gen:cli:config": "ts-node ./generator/index.ts gen --type config --input ../../spec/cli_v1_config.yaml --output ./_cli/generated/config.mdx", + "gen:gotrue": "npm-run-all gen:gotrue:config", + "gen:gotrue:config": "ts-node ./generator/index.ts gen --type config --input ../../spec/gotrue_v1_config.yaml --output ./_gotrue/config.mdx", + "gen:storage": "npm-run-all gen:storage:api gen:storage:config", + "gen:storage:api": "ts-node ./generator/index.ts gen --type api --input ../../spec/transforms/storage_v0_openapi_deparsed.json --output ./_storage/generated/usage.mdx", + "gen:storage:config": "ts-node ./generator/index.ts gen --type config --input ../../spec/storage_v0_config.yaml --output ./_storage/generated/config.mdx", + "gen:supabase-dart:v0": "npm-run-all gen:supabase-dart:v0:ref", + "gen:supabase-dart:v0:ref": "ts-node ./generator/index.ts gen --type legacy --input ../../spec/supabase_dart_v0_legacy.yml --output ./_supabase_dart_versioned_docs/version-v0/generated", + "gen:supabase-dart:v1": "npm-run-all gen:supabase-dart:v1:ref", + "gen:supabase-dart:v1:ref": "ts-node ./generator/index.ts gen --type legacy --input ../../spec/supabase_dart_v1_legacy.yml --output ./_supabase_dart/generated", + "gen:supabase-js:v1": "npm-run-all gen:supabase-js:v1:ref", + "gen:supabase-js:v1:ref": "ts-node ./generator/index.ts gen --type legacy --input ../../spec/supabase_js_v1_legacy.yml --output ./_supabase_js_versioned_docs/version-v1/generated", + "gen:supabase-js:v2": "npm-run-all gen:supabase-js:v2:ref", + "gen:supabase-js:v2:ref": "ts-node ./generator/index.ts gen --type legacy --input ../../spec/supabase_js_v2_legacy.yml --output ./_supabase_js/generated" }, "dependencies": { "@docusaurus/core": "^2.0.1", @@ -35,7 +54,14 @@ "sass": "^1.54.4" }, "devDependencies": { - "@docusaurus/module-type-aliases": "2.0.0-rc.1" + "@docusaurus/module-type-aliases": "2.0.0-rc.1", + "ejs": "^3.1.8", + "lodash": "^4.17.21", + "minimist": "^1.2.6", + "npm-run-all": "^4.1.5", + "openapi-types": "^12.0.2", + "ts-node": "^10.9.1", + "typescript": "^4.8.3" }, "prettier": { "semi": false, diff --git a/apps/reference/tsconfig.json b/apps/reference/tsconfig.json new file mode 100644 index 00000000000..1f04f90f2ac --- /dev/null +++ b/apps/reference/tsconfig.json @@ -0,0 +1,7 @@ +{ + "compilerOptions": { + "incremental": true, + "noImplicitAny": false + }, + "exclude": ["node_modules"] +} diff --git a/spec/Makefile b/spec/Makefile index 699a3952c37..65d02e57294 100644 --- a/spec/Makefile +++ b/spec/Makefile @@ -8,7 +8,7 @@ run: download transform format ############################################################################### init: - cd $(REPO_DIR)/generator && npm install + cd $(REPO_DIR)/parser && npm install ############################################################################### @@ -23,12 +23,12 @@ download.storage.v1: curl -sS https://supabase.github.io/storage-api/api.json > $(REPO_DIR)/storage_v0_openapi.json download.tsdoc.v1: - curl -sS https://supabase.github.io/supabase-js/spec.json > $(REPO_DIR)/enrichments/tsdoc_v1/supabase.json - curl -sS https://supabase.github.io/gotrue-js/spec.json > $(REPO_DIR)/enrichments/tsdoc_v1/gotrue.json - curl -sS https://supabase.github.io/postgrest-js/spec.json > $(REPO_DIR)/enrichments/tsdoc_v1/postgrest.json - curl -sS https://supabase.github.io/realtime-js/spec.json > $(REPO_DIR)/enrichments/tsdoc_v1/realtime.json - curl -sS https://supabase.github.io/storage-js/spec.json > $(REPO_DIR)/enrichments/tsdoc_v1/storage.json - curl -sS https://supabase.github.io/functions-js/spec.json > $(REPO_DIR)/enrichments/tsdoc_v1/functions.json + curl -sS https://supabase.github.io/supabase-js/v1/spec.json > $(REPO_DIR)/enrichments/tsdoc_v1/supabase.json + curl -sS https://supabase.github.io/gotrue-js/v1/spec.json > $(REPO_DIR)/enrichments/tsdoc_v1/gotrue.json + curl -sS https://supabase.github.io/postgrest-js/v1/spec.json > $(REPO_DIR)/enrichments/tsdoc_v1/postgrest.json + curl -sS https://supabase.github.io/realtime-js/v1/spec.json > $(REPO_DIR)/enrichments/tsdoc_v1/realtime.json + curl -sS https://supabase.github.io/storage-js/v1/spec.json > $(REPO_DIR)/enrichments/tsdoc_v1/storage.json + curl -sS https://supabase.github.io/functions-js/v1/spec.json > $(REPO_DIR)/enrichments/tsdoc_v1/functions.json download.tsdoc.v2: @@ -51,12 +51,12 @@ dereference.storage.v0: npx swagger-cli bundle --dereference --outfile $(REPO_DIR)/transforms/storage_v0_openapi_deparsed.json $(REPO_DIR)/storage_v0_openapi.json dereference.tsdoc.v2: - cd $(REPO_DIR)/generator && npm run tsdoc:dereference:functions - cd $(REPO_DIR)/generator && npm run tsdoc:dereference:gotrue - cd $(REPO_DIR)/generator && npm run tsdoc:dereference:postgrest - cd $(REPO_DIR)/generator && npm run tsdoc:dereference:realtime - cd $(REPO_DIR)/generator && npm run tsdoc:dereference:storage - cd $(REPO_DIR)/generator && npm run tsdoc:dereference:supabase + cd $(REPO_DIR)/parser && npm run tsdoc:dereference:functions + cd $(REPO_DIR)/parser && npm run tsdoc:dereference:gotrue + cd $(REPO_DIR)/parser && npm run tsdoc:dereference:postgrest + cd $(REPO_DIR)/parser && npm run tsdoc:dereference:realtime + cd $(REPO_DIR)/parser && npm run tsdoc:dereference:storage + cd $(REPO_DIR)/parser && npm run tsdoc:dereference:supabase combine.tsdoc.v1: jq -s '{ name: "Combined Specs", children: [.[0], .[1], .[2], .[3], .[4], .[5]] }' \ @@ -84,30 +84,3 @@ combine.tsdoc.v2: format: npx prettier --write . -############################################################################### -# Generate the docs -############################################################################### - -generate: generate.api generate.cli generate.storage generate.dart generate.js.v1 generate.js.v2 - -generate.api: - cd $(REPO_DIR)/generator && npm run api:gen - -generate.cli: - cd $(REPO_DIR)/generator && npm run cli:gen - -generate.gotrue: - cd $(REPO_DIR)/generator && npm run gotrue:gen - -generate.storage: - cd $(REPO_DIR)/generator && npm run storage:gen - -generate.dart: - cd $(REPO_DIR)/generator && npm run supabase-dart:v1 - -generate.js.v1: - cd $(REPO_DIR)/generator && npm run supabase-js:v1 - -generate.js.v2: - cd $(REPO_DIR)/generator && npm run supabase-js:v2 - diff --git a/spec/enrichments/tsdoc_v1/combined.json b/spec/enrichments/tsdoc_v1/combined.json index a39a614c4fa..82a3e21a4cd 100644 --- a/spec/enrichments/tsdoc_v1/combined.json +++ b/spec/enrichments/tsdoc_v1/combined.json @@ -9,22 +9,14 @@ "originalName": "", "children": [ { - "id": 1, + "id": 105, "name": "index", "kind": 2, "kindString": "Module", "flags": {}, "children": [ { - "id": 740, - "name": "Session", - "kind": 16777216, - "kindString": "Reference", - "flags": {}, - "target": 335 - }, - { - "id": 305, + "id": 202, "name": "SupabaseClientOptions", "kind": 16777216, "kindString": "Reference", @@ -36,10 +28,10 @@ "character": 2 } ], - "target": 176 + "target": 79 }, { - "id": 306, + "id": 203, "name": "SupabaseRealtimePayload", "kind": 16777216, "kindString": "Reference", @@ -51,12931 +43,10 @@ "character": 2 } ], - "target": 189 + "target": 92 }, { - "id": 752, - "name": "User", - "kind": 16777216, - "kindString": "Reference", - "flags": {}, - "target": 307 - }, - { - "id": 1014, - "name": "Transformers", - "kind": 4, - "kindString": "Namespace", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 1015, - "name": "PostgresTypes", - "kind": 8, - "kindString": "Enumeration", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Helpers to convert the change Payload into native JS types." - }, - "children": [ - { - "id": 1016, - "name": "abstime", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 5, - "character": 4 - } - ], - "defaultValue": "\"abstime\"" - }, - { - "id": 1017, - "name": "bool", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 6, - "character": 4 - } - ], - "defaultValue": "\"bool\"" - }, - { - "id": 1018, - "name": "date", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 7, - "character": 4 - } - ], - "defaultValue": "\"date\"" - }, - { - "id": 1019, - "name": "daterange", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 8, - "character": 4 - } - ], - "defaultValue": "\"daterange\"" - }, - { - "id": 1020, - "name": "float4", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 9, - "character": 4 - } - ], - "defaultValue": "\"float4\"" - }, - { - "id": 1021, - "name": "float8", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 10, - "character": 4 - } - ], - "defaultValue": "\"float8\"" - }, - { - "id": 1022, - "name": "int2", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 11, - "character": 4 - } - ], - "defaultValue": "\"int2\"" - }, - { - "id": 1023, - "name": "int4", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 12, - "character": 4 - } - ], - "defaultValue": "\"int4\"" - }, - { - "id": 1024, - "name": "int4range", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 13, - "character": 4 - } - ], - "defaultValue": "\"int4range\"" - }, - { - "id": 1025, - "name": "int8", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 14, - "character": 4 - } - ], - "defaultValue": "\"int8\"" - }, - { - "id": 1026, - "name": "int8range", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 15, - "character": 4 - } - ], - "defaultValue": "\"int8range\"" - }, - { - "id": 1027, - "name": "json", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 16, - "character": 4 - } - ], - "defaultValue": "\"json\"" - }, - { - "id": 1028, - "name": "jsonb", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 17, - "character": 4 - } - ], - "defaultValue": "\"jsonb\"" - }, - { - "id": 1029, - "name": "money", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 18, - "character": 4 - } - ], - "defaultValue": "\"money\"" - }, - { - "id": 1030, - "name": "numeric", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 19, - "character": 4 - } - ], - "defaultValue": "\"numeric\"" - }, - { - "id": 1031, - "name": "oid", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 20, - "character": 4 - } - ], - "defaultValue": "\"oid\"" - }, - { - "id": 1032, - "name": "reltime", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 21, - "character": 4 - } - ], - "defaultValue": "\"reltime\"" - }, - { - "id": 1033, - "name": "text", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 22, - "character": 4 - } - ], - "defaultValue": "\"text\"" - }, - { - "id": 1034, - "name": "time", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 23, - "character": 4 - } - ], - "defaultValue": "\"time\"" - }, - { - "id": 1035, - "name": "timestamp", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 24, - "character": 4 - } - ], - "defaultValue": "\"timestamp\"" - }, - { - "id": 1036, - "name": "timestamptz", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 25, - "character": 4 - } - ], - "defaultValue": "\"timestamptz\"" - }, - { - "id": 1037, - "name": "timetz", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 26, - "character": 4 - } - ], - "defaultValue": "\"timetz\"" - }, - { - "id": 1038, - "name": "tsrange", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 27, - "character": 4 - } - ], - "defaultValue": "\"tsrange\"" - }, - { - "id": 1039, - "name": "tstzrange", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 28, - "character": 4 - } - ], - "defaultValue": "\"tstzrange\"" - } - ], - "groups": [ - { - "title": "Enumeration members", - "kind": 16, - "children": [ - 1016, 1017, 1018, 1019, 1020, 1021, 1022, 1023, 1024, 1025, 1026, 1027, - 1028, 1029, 1030, 1031, 1032, 1033, 1034, 1035, 1036, 1037, 1038, 1039 - ] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 4, - "character": 20 - } - ] - }, - { - "id": 1053, - "name": "convertCell", - "kind": 64, - "kindString": "Function", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 84, - "character": 21 - } - ], - "signatures": [ - { - "id": 1054, - "name": "convertCell", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "If the value of the cell is `null`, returns null.\nOtherwise converts the string value to the correct type.", - "tags": [ - { - "tag": "example", - "text": "convertCell('bool', 't')\n//=> true" - }, - { - "tag": "example", - "text": "convertCell('int8', '10')\n//=> 10" - }, - { - "tag": "example", - "text": "convertCell('_int4', '{1,2,3,4}')\n//=> [1,2,3,4]\n" - } - ] - }, - "parameters": [ - { - "id": 1055, - "name": "type", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "A postgres column type" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1056, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "qualifiedName": "RecordValue", - "package": "@supabase/realtime-js", - "name": "RecordValue" - } - } - ], - "type": { - "type": "reference", - "qualifiedName": "RecordValue", - "package": "@supabase/realtime-js", - "name": "RecordValue" - } - } - ] - }, - { - "id": 1040, - "name": "convertChangeData", - "kind": 64, - "kindString": "Function", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 53, - "character": 21 - } - ], - "signatures": [ - { - "id": 1041, - "name": "convertChangeData", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Takes an array of columns and an object of string values then converts each string value\nto its mapped type.", - "tags": [ - { - "tag": "example", - "text": "convertChangeData([{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], {first_name: 'Paul', age:'33'}, {})\n//=>{ first_name: 'Paul', age: 33 }\n" - } - ] - }, - "parameters": [ - { - "id": 1042, - "name": "columns", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "qualifiedName": "Columns", - "package": "@supabase/realtime-js", - "name": "Columns" - } - }, - { - "id": 1043, - "name": "record", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": {}, - "type": { - "type": "reference", - "qualifiedName": "Record", - "package": "@supabase/realtime-js", - "name": "Record" - } - }, - { - "id": 1044, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "The map of various options that can be applied to the mapper" - }, - "type": { - "type": "reflection", - "declaration": { - "id": 1045, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 1046, - "name": "skipTypes", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "The array of types that should not be converted\n" - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 54, - "character": 4 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [1046] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "qualifiedName": "Record", - "package": "@supabase/realtime-js", - "name": "Record" - } - } - ] - }, - { - "id": 1047, - "name": "convertColumn", - "kind": 64, - "kindString": "Function", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 70, - "character": 21 - } - ], - "signatures": [ - { - "id": 1048, - "name": "convertColumn", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Converts the value of an individual column.", - "returns": "Useless information\n", - "tags": [ - { - "tag": "example", - "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], {first_name: 'Paul', age: '33'}, [])\n//=> 33" - }, - { - "tag": "example", - "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], {first_name: 'Paul', age: '33'}, ['int4'])\n//=> \"33\"\n" - } - ] - }, - "parameters": [ - { - "id": 1049, - "name": "columnName", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The column that you want to convert" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1050, - "name": "columns", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "qualifiedName": "Columns", - "package": "@supabase/realtime-js", - "name": "Columns" - } - }, - { - "id": 1051, - "name": "record", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The map of string values" - }, - "type": { - "type": "reference", - "qualifiedName": "Record", - "package": "@supabase/realtime-js", - "name": "Record" - } - }, - { - "id": 1052, - "name": "skipTypes", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "An array of types that should not be converted" - }, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - } - ], - "type": { - "type": "reference", - "qualifiedName": "RecordValue", - "package": "@supabase/realtime-js", - "name": "RecordValue" - } - } - ] - }, - { - "id": 1066, - "name": "toArray", - "kind": 64, - "kindString": "Function", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 98, - "character": 21 - } - ], - "signatures": [ - { - "id": 1067, - "name": "toArray", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Converts a Postgres Array into a native JS array", - "tags": [ - { - "tag": "example", - "text": "toArray('{}', 'int4')\n//=> []" - }, - { - "tag": "example", - "text": "toArray('{\"[2021-01-01,2021-12-31)\",\"(2021-01-01,2021-12-32]\"}', 'daterange')\n//=> ['[2021-01-01,2021-12-31)', '(2021-01-01,2021-12-32]']" - }, - { - "tag": "example", - "text": "toArray([1,2,3,4], 'int4')\n//=> [1,2,3,4]\n" - } - ] - }, - "parameters": [ - { - "id": 1068, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "qualifiedName": "RecordValue", - "package": "@supabase/realtime-js", - "name": "RecordValue" - } - }, - { - "id": 1069, - "name": "type", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "qualifiedName": "RecordValue", - "package": "@supabase/realtime-js", - "name": "RecordValue" - } - } - ] - }, - { - "id": 1057, - "name": "toBoolean", - "kind": 64, - "kindString": "Function", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 85, - "character": 21 - } - ], - "signatures": [ - { - "id": 1058, - "name": "toBoolean", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 1059, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "qualifiedName": "RecordValue", - "package": "@supabase/realtime-js", - "name": "RecordValue" - } - } - ], - "type": { - "type": "reference", - "qualifiedName": "RecordValue", - "package": "@supabase/realtime-js", - "name": "RecordValue" - } - } - ] - }, - { - "id": 1063, - "name": "toJson", - "kind": 64, - "kindString": "Function", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 87, - "character": 21 - } - ], - "signatures": [ - { - "id": 1064, - "name": "toJson", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 1065, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "qualifiedName": "RecordValue", - "package": "@supabase/realtime-js", - "name": "RecordValue" - } - } - ], - "type": { - "type": "reference", - "qualifiedName": "RecordValue", - "package": "@supabase/realtime-js", - "name": "RecordValue" - } - } - ] - }, - { - "id": 1060, - "name": "toNumber", - "kind": 64, - "kindString": "Function", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 86, - "character": 21 - } - ], - "signatures": [ - { - "id": 1061, - "name": "toNumber", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 1062, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "qualifiedName": "RecordValue", - "package": "@supabase/realtime-js", - "name": "RecordValue" - } - } - ], - "type": { - "type": "reference", - "qualifiedName": "RecordValue", - "package": "@supabase/realtime-js", - "name": "RecordValue" - } - } - ] - }, - { - "id": 1070, - "name": "toTimestampString", - "kind": 64, - "kindString": "Function", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 106, - "character": 21 - } - ], - "signatures": [ - { - "id": 1071, - "name": "toTimestampString", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Fixes timestamp to be ISO-8601. Swaps the space between the date and time for a 'T'\nSee https://github.com/supabase/supabase/issues/18", - "tags": [ - { - "tag": "example", - "text": "toTimestampString('2019-09-10 00:00:00')\n//=> '2019-09-10T00:00:00'\n" - } - ] - }, - "parameters": [ - { - "id": 1072, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "qualifiedName": "RecordValue", - "package": "@supabase/realtime-js", - "name": "RecordValue" - } - } - ], - "type": { - "type": "reference", - "qualifiedName": "RecordValue", - "package": "@supabase/realtime-js", - "name": "RecordValue" - } - } - ] - } - ], - "groups": [ - { - "title": "Enumerations", - "kind": 8, - "children": [1015] - }, - { - "title": "Functions", - "kind": 64, - "children": [1053, 1040, 1047, 1066, 1057, 1063, 1060, 1070] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 4, - "character": 0 - } - ] - }, - { - "id": 343, - "name": "GoTrueApi", - "kind": 128, - "kindString": "Class", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 344, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 11, - "character": 4 - } - ], - "signatures": [ - { - "id": 345, - "name": "new GoTrueApi", - "kind": 16384, - "kindString": "Constructor signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 346, - "name": "__namedParameters", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 347, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 353, - "name": "cookieOptions", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 16, - "character": 8 - } - ], - "type": { - "type": "reference", - "id": 777, - "qualifiedName": "CookieOptions", - "package": "@supabase/gotrue-js", - "name": "CookieOptions" - } - }, - { - "id": 354, - "name": "fetch", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 17, - "character": 8 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 355, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "signatures": [ - { - "id": 356, - "name": "__type", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 357, - "name": "input", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "qualifiedName": "RequestInfo", - "package": "typescript", - "name": "RequestInfo" - } - }, - { - "id": 358, - "name": "init", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reference", - "qualifiedName": "RequestInit", - "package": "typescript", - "name": "RequestInit" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "qualifiedName": "Response", - "package": "typescript", - "name": "Response" - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - } - } - }, - { - "id": 349, - "name": "headers", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 13, - "character": 8 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 350, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "indexSignature": { - "id": 351, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 352, - "name": "key", - "kind": 32768, - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - } - } - }, - { - "id": 348, - "name": "url", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 12, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [353, 354, 349, 348] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "id": 343, - "qualifiedName": "GoTrueApi", - "package": "@supabase/gotrue-js", - "name": "default" - } - } - ] - }, - { - "id": 370, - "name": "_createRequestHeaders", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "comment": { - "shortText": "Create a temporary object with all configured headers and\nadds the Authorization token to be used on request methods", - "tags": [ - { - "tag": "param", - "text": "A valid, logged-in JWT.\n", - "param": "jwt" - } - ] - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 24, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 371, - "name": "cookieName", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 25, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 364, - "name": "cookieOptions", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 9, - "character": 14 - } - ], - "type": { - "type": "reference", - "id": 777, - "qualifiedName": "CookieOptions", - "package": "@supabase/gotrue-js", - "name": "CookieOptions" - } - }, - { - "id": 365, - "name": "fetch", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 10, - "character": 14 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 366, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "signatures": [ - { - "id": 367, - "name": "__type", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 368, - "name": "input", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "qualifiedName": "RequestInfo", - "package": "typescript", - "name": "RequestInfo" - } - }, - { - "id": 369, - "name": "init", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reference", - "qualifiedName": "RequestInit", - "package": "typescript", - "name": "RequestInit" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "qualifiedName": "Response", - "package": "typescript", - "name": "Response" - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - } - } - }, - { - "id": 360, - "name": "headers", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 6, - "character": 14 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 361, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "indexSignature": { - "id": 362, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 363, - "name": "key", - "kind": 32768, - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - } - } - }, - { - "id": 359, - "name": "url", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 5, - "character": 14 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 534, - "name": "createUser", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 251, - "character": 4 - } - ], - "signatures": [ - { - "id": 535, - "name": "createUser", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Creates a new user.", - "text": "This function should only be called on a server. Never expose your `service_role` key in the browser.\n" - }, - "parameters": [ - { - "id": 536, - "name": "attributes", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The data you want to create the user with.\n" - }, - "type": { - "type": "reference", - "id": 759, - "qualifiedName": "AdminUserAttributes", - "package": "@supabase/gotrue-js", - "name": "AdminUserAttributes" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 537, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 539, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 253, - "character": 8 - } - ], - "type": { - "type": "literal", - "value": null - } - }, - { - "id": 540, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 254, - "character": 8 - } - ], - "type": { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - }, - { - "id": 538, - "name": "user", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 252, - "character": 8 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [539, 540, 538] - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 541, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 543, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 257, - "character": 8 - } - ], - "type": { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - }, - { - "id": 544, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 258, - "character": 8 - } - ], - "type": { - "type": "literal", - "value": null - } - }, - { - "id": 542, - "name": "user", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 256, - "character": 8 - } - ], - "type": { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [543, 544, 542] - } - ] - } - } - ] - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 511, - "name": "deleteAuthCookie", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 218, - "character": 4 - } - ], - "signatures": [ - { - "id": 512, - "name": "deleteAuthCookie", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Deletes the Auth Cookies and redirects to the" - }, - "parameters": [ - { - "id": 513, - "name": "req", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The request object." - }, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 514, - "name": "res", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The response object." - }, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 515, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Optionally specify a `redirectTo` URL in the options.\n" - }, - "originalName": "__namedParameters", - "type": { - "type": "reflection", - "declaration": { - "id": 516, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 517, - "name": "redirectTo", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 219, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [517] - } - ] - } - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - ] - }, - { - "id": 579, - "name": "deleteUser", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 315, - "character": 4 - } - ], - "signatures": [ - { - "id": 580, - "name": "deleteUser", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Delete a user. Requires a `service_role` key.", - "text": "This function should only be called on a server. Never expose your `service_role` key in the browser.\n" - }, - "parameters": [ - { - "id": 581, - "name": "uid", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The user uid you want to remove.\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 582, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 584, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 317, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - }, - { - "id": 585, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 318, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - }, - { - "id": 583, - "name": "user", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 316, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [584, 585, 583] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 522, - "name": "generateLink", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 236, - "character": 4 - } - ], - "signatures": [ - { - "id": 523, - "name": "generateLink", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Generates links to be sent via email or other." - }, - "parameters": [ - { - "id": 524, - "name": "type", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The link type (\"signup\" or \"magiclink\" or \"recovery\" or \"invite\")." - }, - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "signup" - }, - { - "type": "literal", - "value": "magiclink" - }, - { - "type": "literal", - "value": "recovery" - }, - { - "type": "literal", - "value": "invite" - } - ] - } - }, - { - "id": 525, - "name": "email", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The user's email." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 526, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 527, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 529, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 238, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } - }, - { - "id": 528, - "name": "password", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 237, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 530, - "name": "redirectTo", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 239, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [529, 528, 530] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 531, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 532, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 241, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 335, - "qualifiedName": "Session", - "package": "@supabase/gotrue-js", - "name": "Session" - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - }, - { - "id": 533, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 242, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [532, 533] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 518, - "name": "getAuthCookieString", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 227, - "character": 4 - } - ], - "signatures": [ - { - "id": 519, - "name": "getAuthCookieString", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Helper method to generate the Auth Cookie string for you in case you can't use `setAuthCookie`.", - "returns": "The Cookie string that needs to be set as the value for the `Set-Cookie` header.\n" - }, - "parameters": [ - { - "id": 520, - "name": "req", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The request object." - }, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 521, - "name": "res", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The response object." - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - } - ] - }, - { - "id": 372, - "name": "getUrlForProvider", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 32, - "character": 4 - } - ], - "signatures": [ - { - "id": 373, - "name": "getUrlForProvider", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Generates the relevant login URL for a third-party provider." - }, - "parameters": [ - { - "id": 374, - "name": "provider", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "One of the providers supported by GoTrue." - }, - "type": { - "type": "reference", - "id": 735, - "qualifiedName": "Provider", - "package": "@supabase/gotrue-js", - "name": "Provider" - } - }, - { - "id": 375, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 376, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 379, - "name": "queryParams", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 35, - "character": 8 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 380, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "indexSignature": { - "id": 381, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 382, - "name": "key", - "kind": 32768, - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - } - } - }, - { - "id": 377, - "name": "redirectTo", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 33, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 378, - "name": "scopes", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 34, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [379, 377, 378] - } - ] - } - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ] - }, - { - "id": 586, - "name": "getUser", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 329, - "character": 4 - } - ], - "signatures": [ - { - "id": 587, - "name": "getUser", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Gets the current user details.", - "text": "This method is called by the GoTrueClient `update` where\nthe jwt is set to this.currentSession.access_token\nand therefore, acts like getting the currently authenticated user\n" - }, - "parameters": [ - { - "id": 588, - "name": "jwt", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "A valid, logged-in JWT. Typically, the access_token for the currentSession\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 589, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 591, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 331, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - }, - { - "id": 592, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 332, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - }, - { - "id": 590, - "name": "user", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 330, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [591, 592, 590] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 562, - "name": "getUserByCookie", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 290, - "character": 4 - } - ], - "signatures": [ - { - "id": 563, - "name": "getUserByCookie", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Get user by reading the cookie from the request.\nWorks for Next.js & Express (requires cookie-parser middleware)." - }, - "parameters": [ - { - "id": 564, - "name": "req", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 565, - "name": "res", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 566, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 569, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 293, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - }, - { - "id": 570, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 294, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - }, - { - "id": 567, - "name": "token", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 291, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 568, - "name": "user", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 292, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [569, 570, 567, 568] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 553, - "name": "getUserById", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 279, - "character": 4 - } - ], - "signatures": [ - { - "id": 554, - "name": "getUserById", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Get user by id." - }, - "parameters": [ - { - "id": 555, - "name": "uid", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The user's unique identifier\n\nThis function should only be called on a server. Never expose your `service_role` key in the browser.\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 556, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 557, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 280, - "character": 8 - } - ], - "type": { - "type": "literal", - "value": null - } - }, - { - "id": 558, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 281, - "character": 8 - } - ], - "type": { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [557, 558] - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 559, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 560, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 283, - "character": 8 - } - ], - "type": { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - }, - { - "id": 561, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 284, - "character": 8 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [560, 561] - } - ] - } - } - ] - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 480, - "name": "inviteUserByEmail", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 177, - "character": 4 - } - ], - "signatures": [ - { - "id": 481, - "name": "inviteUserByEmail", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Sends an invite link to an email address." - }, - "parameters": [ - { - "id": 482, - "name": "email", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The email address of the user." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 483, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 484, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 486, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 179, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } - }, - { - "id": 485, - "name": "redirectTo", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 178, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [486, 485] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 487, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 488, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 181, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - }, - { - "id": 489, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 182, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [488, 489] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 545, - "name": "listUsers", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 265, - "character": 4 - } - ], - "signatures": [ - { - "id": 546, - "name": "listUsers", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Get a list of users.", - "text": "This function should only be called on a server. Never expose your `service_role` key in the browser.\n" - }, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 547, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 548, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 266, - "character": 8 - } - ], - "type": { - "type": "literal", - "value": null - } - }, - { - "id": 549, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 267, - "character": 8 - } - ], - "type": { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [548, 549] - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 550, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 551, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 269, - "character": 8 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - } - }, - { - "id": 552, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 270, - "character": 8 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [551, 552] - } - ] - } - } - ] - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 501, - "name": "refreshAccessToken", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 201, - "character": 4 - } - ], - "signatures": [ - { - "id": 502, - "name": "refreshAccessToken", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Generates a new JWT." - }, - "parameters": [ - { - "id": 503, - "name": "refreshToken", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "A valid refresh token that was returned on login.\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 504, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 505, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 202, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 335, - "qualifiedName": "Session", - "package": "@supabase/gotrue-js", - "name": "Session" - } - ] - } - }, - { - "id": 506, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 203, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [505, 506] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 490, - "name": "resetPasswordForEmail", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 190, - "character": 4 - } - ], - "signatures": [ - { - "id": 491, - "name": "resetPasswordForEmail", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Sends a reset request to an email address." - }, - "parameters": [ - { - "id": 492, - "name": "email", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The email address of the user." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 493, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 494, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 496, - "name": "captchaToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 192, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 495, - "name": "redirectTo", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 191, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [496, 495] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 497, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 498, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 194, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reflection", - "declaration": { - "id": 499, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - } - } - } - ] - } - }, - { - "id": 500, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 195, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [498, 500] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 433, - "name": "sendMagicLinkEmail", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 117, - "character": 4 - } - ], - "signatures": [ - { - "id": 434, - "name": "sendMagicLinkEmail", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Sends a magic login link to an email address." - }, - "parameters": [ - { - "id": 435, - "name": "email", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The email address of the user." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 436, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 437, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 440, - "name": "captchaToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 120, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 439, - "name": "redirectTo", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 119, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 438, - "name": "shouldCreateUser", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 118, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [440, 439, 438] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 441, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 442, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 122, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reflection", - "declaration": { - "id": 443, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - } - } - } - ] - } - }, - { - "id": 444, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 123, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [442, 444] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 445, - "name": "sendMobileOTP", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 131, - "character": 4 - } - ], - "signatures": [ - { - "id": 446, - "name": "sendMobileOTP", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Sends a mobile OTP via SMS. Will register the account if it doesn't already exist" - }, - "parameters": [ - { - "id": 447, - "name": "phone", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The user's phone number WITH international prefix" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 448, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 449, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 451, - "name": "captchaToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 133, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 450, - "name": "shouldCreateUser", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 132, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [451, 450] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 452, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 453, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 135, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reflection", - "declaration": { - "id": 454, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - } - } - } - ] - } - }, - { - "id": 455, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 136, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [453, 455] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 507, - "name": "setAuthCookie", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 211, - "character": 4 - } - ], - "signatures": [ - { - "id": 508, - "name": "setAuthCookie", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Set/delete the auth cookie based on the AuthChangeEvent.\nWorks for Next.js & Express (requires cookie-parser middleware)." - }, - "parameters": [ - { - "id": 509, - "name": "req", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The request object." - }, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 510, - "name": "res", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The response object.\n" - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 395, - "name": "signInWithEmail", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 65, - "character": 4 - } - ], - "signatures": [ - { - "id": 396, - "name": "signInWithEmail", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Logs in an existing user using their email address." - }, - "parameters": [ - { - "id": 397, - "name": "email", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The email address of the user." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 398, - "name": "password", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The password of the user." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 399, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 400, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 402, - "name": "captchaToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 67, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 401, - "name": "redirectTo", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 66, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [402, 401] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 403, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 404, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 69, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 335, - "qualifiedName": "Session", - "package": "@supabase/gotrue-js", - "name": "Session" - } - ] - } - }, - { - "id": 405, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 70, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [404, 405] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 427, - "name": "signInWithOpenIDConnect", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 106, - "character": 4 - } - ], - "signatures": [ - { - "id": 428, - "name": "signInWithOpenIDConnect", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Logs in an OpenID Connect user using their id_token." - }, - "parameters": [ - { - "id": 429, - "name": "__namedParameters", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "id": 803, - "qualifiedName": "OpenIDConnectCredentials", - "package": "@supabase/gotrue-js", - "name": "OpenIDConnectCredentials" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 430, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 431, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 107, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 335, - "qualifiedName": "Session", - "package": "@supabase/gotrue-js", - "name": "Session" - } - ] - } - }, - { - "id": 432, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 108, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [431, 432] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 417, - "name": "signInWithPhone", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 92, - "character": 4 - } - ], - "signatures": [ - { - "id": 418, - "name": "signInWithPhone", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Logs in an existing user using their phone number and password." - }, - "parameters": [ - { - "id": 419, - "name": "phone", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The phone number of the user." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 420, - "name": "password", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The password of the user." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 421, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 422, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 423, - "name": "captchaToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 93, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [423] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 424, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 425, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 95, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 335, - "qualifiedName": "Session", - "package": "@supabase/gotrue-js", - "name": "Session" - } - ] - } - }, - { - "id": 426, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 96, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [425, 426] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 456, - "name": "signOut", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 142, - "character": 4 - } - ], - "signatures": [ - { - "id": 457, - "name": "signOut", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Removes a logged-in session." - }, - "parameters": [ - { - "id": 458, - "name": "jwt", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "A valid, logged-in JWT.\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 459, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 460, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 143, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [460] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 383, - "name": "signUpWithEmail", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 50, - "character": 4 - } - ], - "signatures": [ - { - "id": 384, - "name": "signUpWithEmail", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Creates a new user using their email address.", - "returns": "A logged-in session if the server has \"autoconfirm\" ON" - }, - "parameters": [ - { - "id": 385, - "name": "email", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The email address of the user." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 386, - "name": "password", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The password of the user." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 387, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 388, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 391, - "name": "captchaToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 53, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 390, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 52, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } - }, - { - "id": 389, - "name": "redirectTo", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 51, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [391, 390, 389] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 392, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 393, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 55, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 335, - "qualifiedName": "Session", - "package": "@supabase/gotrue-js", - "name": "Session" - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - }, - { - "id": 394, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 56, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [393, 394] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 406, - "name": "signUpWithPhone", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 79, - "character": 4 - } - ], - "signatures": [ - { - "id": 407, - "name": "signUpWithPhone", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Signs up a new user using their phone number and a password." - }, - "parameters": [ - { - "id": 408, - "name": "phone", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The phone number of the user." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 409, - "name": "password", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The password of the user." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 410, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 411, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 413, - "name": "captchaToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 81, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 412, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 80, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [413, 412] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 414, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 415, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 83, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 335, - "qualifiedName": "Session", - "package": "@supabase/gotrue-js", - "name": "Session" - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - }, - { - "id": 416, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 84, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [415, 416] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 593, - "name": "updateUser", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 339, - "character": 4 - } - ], - "signatures": [ - { - "id": 594, - "name": "updateUser", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Updates the user data." - }, - "parameters": [ - { - "id": 595, - "name": "jwt", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "A valid, logged-in JWT." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 596, - "name": "attributes", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The data you want to update.\n" - }, - "type": { - "type": "reference", - "id": 753, - "qualifiedName": "UserAttributes", - "package": "@supabase/gotrue-js", - "name": "UserAttributes" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 597, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 599, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 341, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - }, - { - "id": 600, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 342, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - }, - { - "id": 598, - "name": "user", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 340, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [599, 600, 598] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 571, - "name": "updateUserById", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 303, - "character": 4 - } - ], - "signatures": [ - { - "id": 572, - "name": "updateUserById", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Updates the user data." - }, - "parameters": [ - { - "id": 573, - "name": "uid", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 574, - "name": "attributes", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The data you want to update.\n\nThis function should only be called on a server. Never expose your `service_role` key in the browser.\n" - }, - "type": { - "type": "reference", - "id": 759, - "qualifiedName": "AdminUserAttributes", - "package": "@supabase/gotrue-js", - "name": "AdminUserAttributes" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 575, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 577, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 305, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - }, - { - "id": 578, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 306, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - }, - { - "id": 576, - "name": "user", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 304, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [577, 578, 576] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 461, - "name": "verifyMobileOTP", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 151, - "character": 4 - } - ], - "signatures": [ - { - "id": 462, - "name": "verifyMobileOTP", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "tags": [ - { - "tag": "deprecated", - "text": "Use `verifyOTP` instead!" - } - ] - }, - "parameters": [ - { - "id": 463, - "name": "phone", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The user's phone number WITH international prefix" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 464, - "name": "token", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "token that user was sent to their mobile phone" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 465, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 466, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 467, - "name": "redirectTo", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 152, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [467] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 468, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 469, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 154, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 335, - "qualifiedName": "Session", - "package": "@supabase/gotrue-js", - "name": "Session" - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - }, - { - "id": 470, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 155, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [469, 470] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 471, - "name": "verifyOTP", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 165, - "character": 4 - } - ], - "signatures": [ - { - "id": 472, - "name": "verifyOTP", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Send User supplied Email / Mobile OTP to be verified" - }, - "parameters": [ - { - "id": 473, - "name": "__namedParameters", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "id": 790, - "qualifiedName": "VerifyOTPParams", - "package": "@supabase/gotrue-js", - "name": "VerifyOTPParams" - } - }, - { - "id": 474, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 475, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 476, - "name": "redirectTo", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 166, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [476] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 477, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 478, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 168, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 335, - "qualifiedName": "Session", - "package": "@supabase/gotrue-js", - "name": "Session" - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - }, - { - "id": 479, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 169, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [478, 479] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [344] - }, - { - "title": "Properties", - "kind": 1024, - "children": [370, 371, 364, 365, 360, 359] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 534, 511, 579, 522, 518, 372, 586, 562, 553, 480, 545, 501, 490, 433, 445, 507, - 395, 427, 417, 456, 383, 406, 593, 571, 461, 471 - ] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 4, - "character": 21 - } - ] - }, - { - "id": 601, - "name": "GoTrueClient", - "kind": 128, - "kindString": "Class", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 602, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 37, - "character": 4 - } - ], - "signatures": [ - { - "id": 603, - "name": "new GoTrueClient", - "kind": 16384, - "kindString": "Constructor signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Create a new client for use in the browser." - }, - "parameters": [ - { - "id": 604, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 605, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 612, - "name": "autoRefreshToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "Set to \"true\" if you want to automatically refresh the token before expiring." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 43, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 616, - "name": "cookieOptions", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": {}, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 47, - "character": 8 - } - ], - "type": { - "type": "reference", - "id": 777, - "qualifiedName": "CookieOptions", - "package": "@supabase/gotrue-js", - "name": "CookieOptions" - } - }, - { - "id": 611, - "name": "detectSessionInUrl", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "Set to \"true\" if you want to automatically detects OAuth grants in the URL and signs in the user." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 42, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 617, - "name": "fetch", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 48, - "character": 8 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 618, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "signatures": [ - { - "id": 619, - "name": "__type", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "A custom fetch implementation.\n" - }, - "parameters": [ - { - "id": 620, - "name": "input", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "qualifiedName": "RequestInfo", - "package": "typescript", - "name": "RequestInfo" - } - }, - { - "id": 621, - "name": "init", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reference", - "qualifiedName": "RequestInit", - "package": "typescript", - "name": "RequestInit" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "qualifiedName": "Response", - "package": "typescript", - "name": "Response" - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - } - } - }, - { - "id": 607, - "name": "headers", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "Any additional headers to send to the GoTrue server." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 39, - "character": 8 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 608, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "indexSignature": { - "id": 609, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 610, - "name": "key", - "kind": 32768, - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - } - } - }, - { - "id": 614, - "name": "localStorage", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "Provide your own local storage implementation to use instead of the browser's local storage." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 45, - "character": 8 - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "qualifiedName": "Storage", - "package": "typescript", - "name": "Storage" - }, - { - "type": "union", - "types": [ - { - "type": "literal", - "value": "getItem" - }, - { - "type": "literal", - "value": "setItem" - }, - { - "type": "literal", - "value": "removeItem" - } - ] - } - ], - "qualifiedName": "Pick", - "package": "typescript", - "name": "Pick" - } - ], - "qualifiedName": "PromisifyMethods", - "package": "@supabase/gotrue-js", - "name": "PromisifyMethods" - } - }, - { - "id": 615, - "name": "multiTab", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "Set to \"false\" if you want to disable multi-tab/window events." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 46, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 613, - "name": "persistSession", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "Set to \"true\" if you want to automatically save the user session into local storage." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 44, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 606, - "name": "url", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "The URL of the GoTrue server." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 38, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [612, 616, 611, 617, 607, 614, 615, 613, 606] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "id": 601, - "qualifiedName": "GoTrueClient", - "package": "@supabase/gotrue-js", - "name": "default" - } - } - ] - }, - { - "id": 727, - "name": "_callRefreshToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 190, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 721, - "name": "_handleEmailSignIn", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 176, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 724, - "name": "_handleOpenIDConnectSignIn", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 179, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 722, - "name": "_handlePhoneSignIn", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 177, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 723, - "name": "_handleProviderSignIn", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 178, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 734, - "name": "_handleVisibilityChange", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 208, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 733, - "name": "_listenForMultiTabEvents", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "comment": { - "shortText": "Listens for changes to LocalStorage and updates the current session." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 207, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 728, - "name": "_notifyAllSubscribers", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 191, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 730, - "name": "_persistSession", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 197, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 726, - "name": "_recoverAndRefresh", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "comment": { - "shortText": "Recovers the session from LocalStorage and refreshes\nNote: this method is async to accommodate for AsyncStorage e.g. in React native." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 189, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 725, - "name": "_recoverSession", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "comment": { - "shortText": "Attempts to get the session from LocalStorage\nNote: this should never be async (even for React Native), as we need it to return immediately in the constructor." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 184, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 731, - "name": "_removeSession", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 198, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 729, - "name": "_saveSession", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "comment": { - "shortText": "set currentSession and currentUser\nprocess to _startAutoRefreshToken if possible" - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 196, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 732, - "name": "_startAutoRefreshToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "comment": { - "shortText": "Clear and re-create refresh token timer", - "tags": [ - { - "tag": "param", - "text": "time intervals in milliseconds\n", - "param": "value" - } - ] - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 203, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 622, - "name": "api", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Namespace for the GoTrue API methods.\nThese can be used for example to get a user from a JWT in a server environment or reset a user's password." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 9, - "character": 4 - } - ], - "type": { - "type": "reference", - "id": 343, - "qualifiedName": "GoTrueApi", - "package": "@supabase/gotrue-js", - "name": "default" - } - }, - { - "id": 625, - "name": "autoRefreshToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 18, - "character": 14 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 624, - "name": "currentSession", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true - }, - "comment": { - "shortText": "The session object for the currently logged in user or null." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 17, - "character": 14 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 335, - "qualifiedName": "Session", - "package": "@supabase/gotrue-js", - "name": "Session" - } - ] - } - }, - { - "id": 623, - "name": "currentUser", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true - }, - "comment": { - "shortText": "The currently logged in user or null." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 13, - "character": 14 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - }, - { - "id": 627, - "name": "localStorage", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 20, - "character": 14 - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "qualifiedName": "Storage", - "package": "typescript", - "name": "Storage" - }, - { - "type": "union", - "types": [ - { - "type": "literal", - "value": "getItem" - }, - { - "type": "literal", - "value": "setItem" - }, - { - "type": "literal", - "value": "removeItem" - } - ] - } - ], - "qualifiedName": "Pick", - "package": "typescript", - "name": "Pick" - } - ], - "qualifiedName": "PromisifyMethods", - "package": "@supabase/gotrue-js", - "name": "PromisifyMethods" - } - }, - { - "id": 628, - "name": "multiTab", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 21, - "character": 14 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 631, - "name": "networkRetries", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 24, - "character": 14 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 626, - "name": "persistSession", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 19, - "character": 14 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 630, - "name": "refreshTokenTimer", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 23, - "character": 14 - } - ], - "type": { - "type": "reference", - "qualifiedName": "global.NodeJS.Timeout", - "package": "@types/node", - "name": "Timeout" - } - }, - { - "id": 629, - "name": "stateChangeEmitters", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 22, - "character": 14 - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "reference", - "id": 769, - "qualifiedName": "Subscription", - "package": "@supabase/gotrue-js", - "name": "Subscription" - } - ], - "qualifiedName": "Map", - "package": "typescript", - "name": "Map" - } - }, - { - "id": 699, - "name": "getSessionFromUrl", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 153, - "character": 4 - } - ], - "signatures": [ - { - "id": 700, - "name": "getSessionFromUrl", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Gets the session data from a URL string" - }, - "parameters": [ - { - "id": 701, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 702, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 703, - "name": "storeSession", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "Optionally store the session in the browser\n" - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 154, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [703] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 704, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 705, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 156, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 335, - "qualifiedName": "Session", - "package": "@supabase/gotrue-js", - "name": "Session" - } - ] - } - }, - { - "id": 706, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 157, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [705, 706] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 711, - "name": "onAuthStateChange", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 172, - "character": 4 - } - ], - "signatures": [ - { - "id": 712, - "name": "onAuthStateChange", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Receive a notification every time an auth event happens.", - "returns": "A subscription object which can be used to unsubscribe itself.\n" - }, - "parameters": [ - { - "id": 713, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 714, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "signatures": [ - { - "id": 715, - "name": "__type", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 716, - "name": "event", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "id": 736, - "qualifiedName": "AuthChangeEvent", - "package": "@supabase/gotrue-js", - "name": "AuthChangeEvent" - } - }, - { - "id": 717, - "name": "session", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 335, - "qualifiedName": "Session", - "package": "@supabase/gotrue-js", - "name": "Session" - } - ] - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 718, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 719, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 173, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 769, - "qualifiedName": "Subscription", - "package": "@supabase/gotrue-js", - "name": "Subscription" - } - ] - } - }, - { - "id": 720, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 174, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [719, 720] - } - ] - } - } - } - ] - }, - { - "id": 677, - "name": "refreshSession", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 123, - "character": 4 - } - ], - "signatures": [ - { - "id": 678, - "name": "refreshSession", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Force refreshes the session including the user data in case it was updated in a different session." - }, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 679, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 680, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 124, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 335, - "qualifiedName": "Session", - "package": "@supabase/gotrue-js", - "name": "Session" - } - ] - } - }, - { - "id": 682, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 126, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - }, - { - "id": 681, - "name": "user", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 125, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [680, 682, 681] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 675, - "name": "session", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 119, - "character": 4 - } - ], - "signatures": [ - { - "id": 676, - "name": "session", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Returns the session data, if there is an active session." - }, - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 335, - "qualifiedName": "Session", - "package": "@supabase/gotrue-js", - "name": "Session" - } - ] - } - } - ] - }, - { - "id": 696, - "name": "setAuth", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 148, - "character": 4 - } - ], - "signatures": [ - { - "id": 697, - "name": "setAuth", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Overrides the JWT on the current client. The JWT will then be sent in all subsequent network requests." - }, - "parameters": [ - { - "id": 698, - "name": "access_token", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "a jwt access token\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "id": 335, - "qualifiedName": "Session", - "package": "@supabase/gotrue-js", - "name": "Session" - } - } - ] - }, - { - "id": 690, - "name": "setSession", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 140, - "character": 4 - } - ], - "signatures": [ - { - "id": 691, - "name": "setSession", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Sets the session data from refresh_token and returns current Session and Error" - }, - "parameters": [ - { - "id": 692, - "name": "refresh_token", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "a JWT token\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 693, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 695, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 142, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - }, - { - "id": 694, - "name": "session", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 141, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 335, - "qualifiedName": "Session", - "package": "@supabase/gotrue-js", - "name": "Session" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [695, 694] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 644, - "name": "signIn", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 80, - "character": 4 - } - ], - "signatures": [ - { - "id": 645, - "name": "signIn", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Log in an existing user, or login via a third-party provider." - }, - "parameters": [ - { - "id": 646, - "name": "__namedParameters", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "id": 783, - "qualifiedName": "UserCredentials", - "package": "@supabase/gotrue-js", - "name": "UserCredentials" - } - }, - { - "id": 647, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 648, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 652, - "name": "captchaToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 84, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 653, - "name": "queryParams", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 85, - "character": 8 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 654, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "indexSignature": { - "id": 655, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 656, - "name": "key", - "kind": 32768, - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - } - } - }, - { - "id": 649, - "name": "redirectTo", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 81, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 651, - "name": "scopes", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 83, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 650, - "name": "shouldCreateUser", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 82, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [652, 653, 649, 651, 650] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 657, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 662, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 93, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - }, - { - "id": 660, - "name": "provider", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 91, - "character": 8 - } - ], - "type": { - "type": "reference", - "id": 735, - "qualifiedName": "Provider", - "package": "@supabase/gotrue-js", - "name": "Provider" - } - }, - { - "id": 658, - "name": "session", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 89, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 335, - "qualifiedName": "Session", - "package": "@supabase/gotrue-js", - "name": "Session" - } - ] - } - }, - { - "id": 661, - "name": "url", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 92, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 659, - "name": "user", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 90, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [662, 660, 658, 661, 659] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 707, - "name": "signOut", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 165, - "character": 4 - } - ], - "signatures": [ - { - "id": 708, - "name": "signOut", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Inside a browser context, `signOut()` will remove the logged in user from the browser session\nand log them out - removing all items from localstorage and then trigger a \"SIGNED_OUT\" event.", - "text": "For server-side management, you can revoke all refresh tokens for a user by passing a user's JWT through to `auth.api.signOut(JWT: string)`. There is no way to revoke a user's session JWT before it automatically expires\n" - }, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 709, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 710, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 166, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [710] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 632, - "name": "signUp", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 59, - "character": 4 - } - ], - "signatures": [ - { - "id": 633, - "name": "signUp", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Creates a new user." - }, - "parameters": [ - { - "id": 634, - "name": "__namedParameters", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "id": 783, - "qualifiedName": "UserCredentials", - "package": "@supabase/gotrue-js", - "name": "UserCredentials" - } - }, - { - "id": 635, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 636, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 639, - "name": "captchaToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 62, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 638, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 61, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } - }, - { - "id": 637, - "name": "redirectTo", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 60, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [639, 638, 637] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 640, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 643, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 66, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - }, - { - "id": 642, - "name": "session", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 65, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 335, - "qualifiedName": "Session", - "package": "@supabase/gotrue-js", - "name": "Session" - } - ] - } - }, - { - "id": 641, - "name": "user", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 64, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [643, 642, 641] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 683, - "name": "update", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 131, - "character": 4 - } - ], - "signatures": [ - { - "id": 684, - "name": "update", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Updates user data, if there is a logged in user." - }, - "parameters": [ - { - "id": 685, - "name": "attributes", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "id": 753, - "qualifiedName": "UserAttributes", - "package": "@supabase/gotrue-js", - "name": "UserAttributes" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 686, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 687, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 132, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - }, - { - "id": 689, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 134, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - }, - { - "id": 688, - "name": "user", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 133, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [687, 689, 688] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 673, - "name": "user", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 115, - "character": 4 - } - ], - "signatures": [ - { - "id": 674, - "name": "user", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Inside a browser context, `user()` will return the user data, if there is a logged in user.", - "text": "For server-side management, you can get a user through `auth.api.getUserByCookie()`\n" - }, - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - } - ] - }, - { - "id": 663, - "name": "verifyOTP", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 103, - "character": 4 - } - ], - "signatures": [ - { - "id": 664, - "name": "verifyOTP", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Log in a user given a User supplied OTP received via mobile." - }, - "parameters": [ - { - "id": 665, - "name": "params", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "id": 790, - "qualifiedName": "VerifyOTPParams", - "package": "@supabase/gotrue-js", - "name": "VerifyOTPParams" - } - }, - { - "id": 666, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 667, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 668, - "name": "redirectTo", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 104, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [668] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 669, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 672, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 108, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - }, - { - "id": 671, - "name": "session", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 107, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 335, - "qualifiedName": "Session", - "package": "@supabase/gotrue-js", - "name": "Session" - } - ] - } - }, - { - "id": 670, - "name": "user", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 106, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [672, 671, 670] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [602] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 727, 721, 724, 722, 723, 734, 733, 728, 730, 726, 725, 731, 729, 732, 622, 625, - 624, 623, 627, 628, 631, 626, 630, 629 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [699, 711, 677, 675, 696, 690, 644, 707, 632, 683, 673, 663] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 4, - "character": 21 - } - ] - }, - { - "id": 810, - "name": "RealtimeClient", - "kind": 128, - "kindString": "Class", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 811, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 77, - "character": 4 - } - ], - "signatures": [ - { - "id": 812, - "name": "new RealtimeClient", - "kind": 16384, - "kindString": "Constructor signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Initializes the Socket." - }, - "parameters": [ - { - "id": 813, - "name": "endPoint", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The string WebSocket endpoint, ie, \"ws://example.com/socket\", \"wss://example.com\", \"/socket\" (inherited host & protocol)" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 814, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reference", - "id": 909, - "qualifiedName": "Options", - "package": "@supabase/realtime-js", - "name": "Options" - } - } - ], - "type": { - "type": "reference", - "id": 810, - "qualifiedName": "RealtimeClient", - "package": "@supabase/realtime-js", - "name": "default" - } - } - ] - }, - { - "id": 906, - "name": "_appendParams", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 180, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 907, - "name": "_flushSendBuffer", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 181, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 903, - "name": "_onConnClose", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 177, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 904, - "name": "_onConnError", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 178, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 902, - "name": "_onConnOpen", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 176, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 908, - "name": "_sendHeartbeat", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 182, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 905, - "name": "_triggerChanError", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 179, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 815, - "name": "accessToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 32, - "character": 4 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 816, - "name": "channels", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 33, - "character": 4 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "id": 927, - "qualifiedName": "RealtimeSubscription", - "package": "@supabase/realtime-js", - "name": "default" - } - } - }, - { - "id": 838, - "name": "conn", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 53, - "character": 4 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "qualifiedName": "WebSocket", - "package": "typescript", - "name": "WebSocket" - } - ] - } - }, - { - "id": 836, - "name": "decode", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 51, - "character": 4 - } - ], - "type": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - }, - { - "id": 835, - "name": "encode", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 50, - "character": 4 - } - ], - "type": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - }, - { - "id": 817, - "name": "endPoint", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 34, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 818, - "name": "headers", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 35, - "character": 4 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 819, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "indexSignature": { - "id": 820, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 821, - "name": "key", - "kind": 32768, - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - } - } - }, - { - "id": 828, - "name": "heartbeatIntervalMs", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 43, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 830, - "name": "heartbeatTimer", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 45, - "character": 4 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "reference", - "qualifiedName": "global.NodeJS.Timer", - "package": "@types/node", - "name": "Timer" - } - ] - } - }, - { - "id": 834, - "name": "logger", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 49, - "character": 4 - } - ], - "type": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - }, - { - "id": 829, - "name": "longpollerTimeout", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 44, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 822, - "name": "params", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 38, - "character": 4 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 823, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "indexSignature": { - "id": 824, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 825, - "name": "key", - "kind": 32768, - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - } - } - }, - { - "id": 831, - "name": "pendingHeartbeatRef", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 46, - "character": 4 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 837, - "name": "reconnectAfterMs", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 52, - "character": 4 - } - ], - "type": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - }, - { - "id": 833, - "name": "reconnectTimer", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 48, - "character": 4 - } - ], - "type": { - "type": "reference", - "qualifiedName": "Timer", - "package": "@supabase/realtime-js", - "name": "default" - } - }, - { - "id": 832, - "name": "ref", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 47, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 839, - "name": "sendBuffer", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 54, - "character": 4 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - } - }, - { - "id": 840, - "name": "serializer", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 55, - "character": 4 - } - ], - "type": { - "type": "reference", - "qualifiedName": "Serializer", - "package": "@supabase/realtime-js", - "name": "default" - } - }, - { - "id": 841, - "name": "stateChangeCallbacks", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 56, - "character": 4 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 842, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 844, - "name": "close", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 58, - "character": 8 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - } - }, - { - "id": 845, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 59, - "character": 8 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - } - }, - { - "id": 846, - "name": "message", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 60, - "character": 8 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - } - }, - { - "id": 843, - "name": "open", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 57, - "character": 8 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [844, 845, 846, 843] - } - ] - } - } - }, - { - "id": 826, - "name": "timeout", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 41, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 827, - "name": "transport", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 42, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 880, - "name": "channel", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 148, - "character": 4 - } - ], - "signatures": [ - { - "id": 881, - "name": "channel", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 882, - "name": "topic", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 883, - "name": "chanParams", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reference", - "qualifiedName": "ChannelParams", - "package": "@supabase/realtime-js", - "name": "ChannelParams" - } - } - ], - "type": { - "type": "reference", - "id": 927, - "qualifiedName": "RealtimeSubscription", - "package": "@supabase/realtime-js", - "name": "default" - } - } - ] - }, - { - "id": 847, - "name": "connect", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 81, - "character": 4 - } - ], - "signatures": [ - { - "id": 848, - "name": "connect", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Connects the socket, unless already connected." - }, - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 873, - "name": "connectionState", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 137, - "character": 4 - } - ], - "signatures": [ - { - "id": 874, - "name": "connectionState", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Returns the current state of the socket." - }, - "type": { - "type": "reference", - "qualifiedName": "CONNECTION_STATE", - "package": "@supabase/realtime-js", - "name": "CONNECTION_STATE" - } - } - ] - }, - { - "id": 849, - "name": "disconnect", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 88, - "character": 4 - } - ], - "signatures": [ - { - "id": 850, - "name": "disconnect", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Disconnects the socket." - }, - "parameters": [ - { - "id": 851, - "name": "code", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "A numeric status code to send on disconnect." - }, - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 852, - "name": "reason", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "A custom reason for the disconnect.\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 853, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 855, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 90, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 854, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 89, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "qualifiedName": "Error", - "package": "typescript", - "name": "Error" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [855, 854] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 892, - "name": "endPointURL", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 161, - "character": 4 - } - ], - "signatures": [ - { - "id": 893, - "name": "endPointURL", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Returns the URL of the websocket." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ] - }, - { - "id": 875, - "name": "isConnected", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 141, - "character": 4 - } - ], - "signatures": [ - { - "id": 876, - "name": "isConnected", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Retuns `true` is the connection is open." - }, - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ] - }, - { - "id": 899, - "name": "leaveOpenTopic", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 175, - "character": 4 - } - ], - "signatures": [ - { - "id": 900, - "name": "leaveOpenTopic", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Unsubscribe from channels with the specified topic." - }, - "parameters": [ - { - "id": 901, - "name": "topic", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 856, - "name": "log", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 97, - "character": 4 - } - ], - "signatures": [ - { - "id": 857, - "name": "log", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Logs the message.", - "text": "For customized logging, `this.logger` can be overriden.\n" - }, - "parameters": [ - { - "id": 858, - "name": "kind", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 859, - "name": "msg", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 860, - "name": "data", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 894, - "name": "makeRef", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 165, - "character": 4 - } - ], - "signatures": [ - { - "id": 895, - "name": "makeRef", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Return the next message ref, accounting for overflows" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ] - }, - { - "id": 864, - "name": "onClose", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 115, - "character": 4 - } - ], - "signatures": [ - { - "id": 865, - "name": "onClose", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Registers a callback for connection state change events.", - "tags": [ - { - "tag": "example", - "text": "\n socket.onOpen(() => console.log(\"Socket closed.\"))\n" - } - ] - }, - "parameters": [ - { - "id": 866, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "A function to be called when the event occurs.\n" - }, - "type": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 887, - "name": "onConnMessage", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 155, - "character": 4 - } - ], - "signatures": [ - { - "id": 888, - "name": "onConnMessage", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 889, - "name": "rawMessage", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 890, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 891, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 156, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [891] - } - ] - } - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 867, - "name": "onError", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 124, - "character": 4 - } - ], - "signatures": [ - { - "id": 868, - "name": "onError", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Registers a callback for connection state change events.", - "tags": [ - { - "tag": "example", - "text": "\n socket.onOpen((error) => console.log(\"An error occurred\"))\n" - } - ] - }, - "parameters": [ - { - "id": 869, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "A function to be called when the event occurs.\n" - }, - "type": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 870, - "name": "onMessage", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 133, - "character": 4 - } - ], - "signatures": [ - { - "id": 871, - "name": "onMessage", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Calls a function any time a message is received.", - "tags": [ - { - "tag": "example", - "text": "\n socket.onMessage((message) => console.log(message))\n" - } - ] - }, - "parameters": [ - { - "id": 872, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "A function to be called when the event occurs.\n" - }, - "type": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 861, - "name": "onOpen", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 106, - "character": 4 - } - ], - "signatures": [ - { - "id": 862, - "name": "onOpen", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Registers a callback for connection state change event.", - "tags": [ - { - "tag": "example", - "text": "\n socket.onOpen(() => console.log(\"Socket opened.\"))\n" - } - ] - }, - "parameters": [ - { - "id": 863, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "A function to be called when the event occurs.\n" - }, - "type": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 884, - "name": "push", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 154, - "character": 4 - } - ], - "signatures": [ - { - "id": 885, - "name": "push", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Push out a message if the socket is connected.", - "text": "If the socket is not connected, the message gets enqueued within a local buffer, and sent out when a connection is next established.\n" - }, - "parameters": [ - { - "id": 886, - "name": "data", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "qualifiedName": "Message", - "package": "@supabase/realtime-js", - "name": "Message" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 877, - "name": "remove", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 147, - "character": 4 - } - ], - "signatures": [ - { - "id": 878, - "name": "remove", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Removes a subscription from the socket." - }, - "parameters": [ - { - "id": 879, - "name": "channel", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "An open subscription.\n" - }, - "type": { - "type": "reference", - "id": 927, - "qualifiedName": "RealtimeSubscription", - "package": "@supabase/realtime-js", - "name": "default" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 896, - "name": "setAuth", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 171, - "character": 4 - } - ], - "signatures": [ - { - "id": 897, - "name": "setAuth", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Sets the JWT access token used for channel subscription authorization and Realtime RLS." - }, - "parameters": [ - { - "id": 898, - "name": "token", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "A JWT string.\n" - }, - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [811] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 906, 907, 903, 904, 902, 908, 905, 815, 816, 838, 836, 835, 817, 818, 828, 830, - 834, 829, 822, 831, 837, 833, 832, 839, 840, 841, 826, 827 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 880, 847, 873, 849, 892, 875, 899, 856, 894, 864, 887, 867, 870, 861, 884, 877, - 896 - ] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 31, - "character": 21 - } - ] - }, - { - "id": 927, - "name": "RealtimeSubscription", - "kind": 128, - "kindString": "Class", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 928, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 18, - "character": 4 - } - ], - "signatures": [ - { - "id": 929, - "name": "new RealtimeSubscription", - "kind": 16384, - "kindString": "Constructor signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 930, - "name": "topic", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 931, - "name": "params", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 932, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "indexSignature": { - "id": 933, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 934, - "name": "key", - "kind": 32768, - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - } - } - }, - { - "id": 935, - "name": "socket", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "id": 810, - "qualifiedName": "RealtimeClient", - "package": "@supabase/realtime-js", - "name": "default" - } - } - ], - "type": { - "type": "reference", - "id": 927, - "qualifiedName": "RealtimeSubscription", - "package": "@supabase/realtime-js", - "name": "default" - } - } - ] - }, - { - "id": 942, - "name": "bindings", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 11, - "character": 4 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - } - }, - { - "id": 946, - "name": "joinPush", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 15, - "character": 4 - } - ], - "type": { - "type": "reference", - "qualifiedName": "Push", - "package": "@supabase/realtime-js", - "name": "default" - } - }, - { - "id": 945, - "name": "joinedOnce", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 14, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 937, - "name": "params", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 7, - "character": 4 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 938, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "indexSignature": { - "id": 939, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 940, - "name": "key", - "kind": 32768, - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - } - } - }, - { - "id": 948, - "name": "pushBuffer", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 17, - "character": 4 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "qualifiedName": "Push", - "package": "@supabase/realtime-js", - "name": "default" - } - } - }, - { - "id": 947, - "name": "rejoinTimer", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 16, - "character": 4 - } - ], - "type": { - "type": "reference", - "qualifiedName": "Timer", - "package": "@supabase/realtime-js", - "name": "default" - } - }, - { - "id": 941, - "name": "socket", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 10, - "character": 4 - } - ], - "type": { - "type": "reference", - "id": 810, - "qualifiedName": "RealtimeClient", - "package": "@supabase/realtime-js", - "name": "default" - } - }, - { - "id": 944, - "name": "state", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 13, - "character": 4 - } - ], - "type": { - "type": "reference", - "qualifiedName": "CHANNEL_STATES", - "package": "@supabase/realtime-js", - "name": "CHANNEL_STATES" - } - }, - { - "id": 943, - "name": "timeout", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 12, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 936, - "name": "topic", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 6, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 967, - "name": "canPush", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 27, - "character": 4 - } - ], - "signatures": [ - { - "id": 968, - "name": "canPush", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ] - }, - { - "id": 1004, - "name": "isClosed", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 54, - "character": 4 - } - ], - "signatures": [ - { - "id": 1005, - "name": "isClosed", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ] - }, - { - "id": 1006, - "name": "isErrored", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 55, - "character": 4 - } - ], - "signatures": [ - { - "id": 1007, - "name": "isErrored", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ] - }, - { - "id": 1008, - "name": "isJoined", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 56, - "character": 4 - } - ], - "signatures": [ - { - "id": 1009, - "name": "isJoined", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ] - }, - { - "id": 1010, - "name": "isJoining", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 57, - "character": 4 - } - ], - "signatures": [ - { - "id": 1011, - "name": "isJoining", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ] - }, - { - "id": 1012, - "name": "isLeaving", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 58, - "character": 4 - } - ], - "signatures": [ - { - "id": 1013, - "name": "isLeaving", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ] - }, - { - "id": 988, - "name": "isMember", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 49, - "character": 4 - } - ], - "signatures": [ - { - "id": 989, - "name": "isMember", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 990, - "name": "topic", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ] - }, - { - "id": 991, - "name": "joinRef", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 50, - "character": 4 - } - ], - "signatures": [ - { - "id": 992, - "name": "joinRef", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ] - }, - { - "id": 964, - "name": "off", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 26, - "character": 4 - } - ], - "signatures": [ - { - "id": 965, - "name": "off", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 966, - "name": "event", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 960, - "name": "on", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 25, - "character": 4 - } - ], - "signatures": [ - { - "id": 961, - "name": "on", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 962, - "name": "event", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 963, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 954, - "name": "onClose", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 23, - "character": 4 - } - ], - "signatures": [ - { - "id": 955, - "name": "onClose", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 956, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 957, - "name": "onError", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 24, - "character": 4 - } - ], - "signatures": [ - { - "id": 958, - "name": "onError", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 959, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 983, - "name": "onMessage", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 48, - "character": 4 - } - ], - "signatures": [ - { - "id": 984, - "name": "onMessage", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Overridable message hook", - "text": "Receives all events for specialized message handling before dispatching to the channel callbacks.\nMust return the payload, modified or unmodified.\n" - }, - "parameters": [ - { - "id": 985, - "name": "event", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 986, - "name": "payload", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 987, - "name": "ref", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - ] - }, - { - "id": 969, - "name": "push", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 28, - "character": 4 - } - ], - "signatures": [ - { - "id": 970, - "name": "push", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 971, - "name": "event", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "qualifiedName": "CHANNEL_EVENTS", - "package": "@supabase/realtime-js", - "name": "CHANNEL_EVENTS" - } - }, - { - "id": 972, - "name": "payload", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 973, - "name": "timeout", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "reference", - "qualifiedName": "Push", - "package": "@supabase/realtime-js", - "name": "default" - } - } - ] - }, - { - "id": 993, - "name": "rejoin", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 51, - "character": 4 - } - ], - "signatures": [ - { - "id": 994, - "name": "rejoin", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 995, - "name": "timeout", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 949, - "name": "rejoinUntilConnected", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 21, - "character": 4 - } - ], - "signatures": [ - { - "id": 950, - "name": "rejoinUntilConnected", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 1001, - "name": "replyEventName", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 53, - "character": 4 - } - ], - "signatures": [ - { - "id": 1002, - "name": "replyEventName", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 1003, - "name": "ref", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ] - }, - { - "id": 951, - "name": "subscribe", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 22, - "character": 4 - } - ], - "signatures": [ - { - "id": 952, - "name": "subscribe", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 953, - "name": "timeout", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "reference", - "qualifiedName": "Push", - "package": "@supabase/realtime-js", - "name": "default" - } - } - ] - }, - { - "id": 996, - "name": "trigger", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 52, - "character": 4 - } - ], - "signatures": [ - { - "id": 997, - "name": "trigger", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 998, - "name": "event", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 999, - "name": "payload", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 1000, - "name": "ref", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 980, - "name": "unsubscribe", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 41, - "character": 4 - } - ], - "signatures": [ - { - "id": 981, - "name": "unsubscribe", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Leaves the channel", - "text": "Unsubscribes from server events, and instructs channel to terminate on server.\nTriggers onClose() hooks.\n\nTo receive leave acknowledgements, use the a `receive` hook to bind to the server ack, ie:\nchannel.unsubscribe().receive(\"ok\", () => alert(\"left!\") )\n" - }, - "parameters": [ - { - "id": 982, - "name": "timeout", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "reference", - "qualifiedName": "Push", - "package": "@supabase/realtime-js", - "name": "default" - } - } - ] - }, - { - "id": 974, - "name": "updateJoinPayload", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 29, - "character": 4 - } - ], - "signatures": [ - { - "id": 975, - "name": "updateJoinPayload", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 976, - "name": "payload", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 977, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "indexSignature": { - "id": 978, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 979, - "name": "key", - "kind": 32768, - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - } - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [928] - }, - { - "title": "Properties", - "kind": 1024, - "children": [942, 946, 945, 937, 948, 947, 941, 944, 943, 936] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 967, 1004, 1006, 1008, 1010, 1012, 988, 991, 964, 960, 954, 957, 983, 969, 993, - 949, 1001, 951, 996, 980, 974 - ] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 5, - "character": 21 - } - ] - }, - { - "id": 214, + "id": 111, "name": "SupabaseClient", "kind": 128, "kindString": "Class", @@ -12986,7 +57,7 @@ }, "children": [ { - "id": 215, + "id": 112, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -13000,7 +71,7 @@ ], "signatures": [ { - "id": 216, + "id": 113, "name": "new SupabaseClient", "kind": 16384, "kindString": "Constructor signature", @@ -13010,7 +81,7 @@ }, "parameters": [ { - "id": 217, + "id": 114, "name": "supabaseUrl", "kind": 32768, "kindString": "Parameter", @@ -13024,7 +95,7 @@ } }, { - "id": 218, + "id": 115, "name": "supabaseKey", "kind": 32768, "kindString": "Parameter", @@ -13038,7 +109,7 @@ } }, { - "id": 219, + "id": 116, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -13047,21 +118,21 @@ }, "type": { "type": "reference", - "id": 176, + "id": 79, "name": "SupabaseClientOptions" } } ], "type": { "type": "reference", - "id": 214, + "id": 111, "name": "default" } } ] }, { - "id": 220, + "id": 117, "name": "auth", "kind": 1024, "kindString": "Property", @@ -13082,7 +153,7 @@ } }, { - "id": 224, + "id": 121, "name": "authUrl", "kind": 1024, "kindString": "Property", @@ -13102,7 +173,7 @@ } }, { - "id": 234, + "id": 131, "name": "changedAccessToken", "kind": 1024, "kindString": "Property", @@ -13131,7 +202,7 @@ } }, { - "id": 229, + "id": 126, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -13149,34 +220,45 @@ "type": { "type": "reflection", "declaration": { - "id": 230, + "id": 127, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 231, + "id": 128, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 232, + "id": 129, "name": "input", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "reference", - "qualifiedName": "RequestInfo", - "package": "typescript", - "name": "RequestInfo" + "type": "union", + "types": [ + { + "type": "reference", + "qualifiedName": "RequestInfo", + "package": "typescript", + "name": "RequestInfo" + }, + { + "type": "reference", + "qualifiedName": "URL", + "package": "typescript", + "name": "URL" + } + ] } }, { - "id": 233, + "id": 130, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -13211,7 +293,7 @@ } }, { - "id": 226, + "id": 123, "name": "functionsUrl", "kind": 1024, "kindString": "Property", @@ -13231,7 +313,7 @@ } }, { - "id": 236, + "id": 133, "name": "headers", "kind": 1024, "kindString": "Property", @@ -13248,20 +330,20 @@ "type": { "type": "reflection", "declaration": { - "id": 237, + "id": 134, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 238, + "id": 135, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 239, + "id": 136, "name": "key", "kind": 32768, "flags": {}, @@ -13280,7 +362,7 @@ } }, { - "id": 228, + "id": 125, "name": "multiTab", "kind": 1024, "kindString": "Property", @@ -13300,7 +382,7 @@ } }, { - "id": 227, + "id": 124, "name": "realtime", "kind": 1024, "kindString": "Property", @@ -13316,14 +398,13 @@ ], "type": { "type": "reference", - "id": 810, "qualifiedName": "RealtimeClient", "package": "@supabase/realtime-js", "name": "default" } }, { - "id": 223, + "id": 120, "name": "realtimeUrl", "kind": 1024, "kindString": "Property", @@ -13343,7 +424,7 @@ } }, { - "id": 222, + "id": 119, "name": "restUrl", "kind": 1024, "kindString": "Property", @@ -13363,7 +444,7 @@ } }, { - "id": 221, + "id": 118, "name": "schema", "kind": 1024, "kindString": "Property", @@ -13383,7 +464,7 @@ } }, { - "id": 235, + "id": 132, "name": "shouldThrowOnError", "kind": 1024, "kindString": "Property", @@ -13403,7 +484,7 @@ } }, { - "id": 225, + "id": 122, "name": "storageUrl", "kind": 1024, "kindString": "Property", @@ -13423,7 +504,7 @@ } }, { - "id": 241, + "id": 138, "name": "supabaseKey", "kind": 1024, "kindString": "Property", @@ -13436,7 +517,7 @@ } }, { - "id": 240, + "id": 137, "name": "supabaseUrl", "kind": 1024, "kindString": "Property", @@ -13449,7 +530,7 @@ } }, { - "id": 242, + "id": 139, "name": "functions", "kind": 262144, "kindString": "Accessor", @@ -13463,7 +544,7 @@ ], "getSignature": [ { - "id": 243, + "id": 140, "name": "functions", "kind": 524288, "kindString": "Get signature", @@ -13481,7 +562,7 @@ ] }, { - "id": 244, + "id": 141, "name": "storage", "kind": 262144, "kindString": "Accessor", @@ -13495,7 +576,7 @@ ], "getSignature": [ { - "id": 245, + "id": 142, "name": "storage", "kind": 524288, "kindString": "Get signature", @@ -13513,7 +594,7 @@ ] }, { - "id": 274, + "id": 171, "name": "_closeSubscription", "kind": 2048, "kindString": "Method", @@ -13529,21 +610,20 @@ ], "signatures": [ { - "id": 275, + "id": 172, "name": "_closeSubscription", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 276, + "id": 173, "name": "subscription", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 927, "qualifiedName": "RealtimeSubscription", "package": "@supabase/realtime-js", "name": "default" @@ -13556,14 +636,14 @@ { "type": "reflection", "declaration": { - "id": 277, + "id": 174, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 278, + "id": 175, "name": "error", "kind": 1024, "kindString": "Property", @@ -13596,7 +676,7 @@ { "title": "Properties", "kind": 1024, - "children": [278] + "children": [175] } ] } @@ -13610,7 +690,7 @@ ] }, { - "id": 294, + "id": 191, "name": "_getAuthHeaders", "kind": 2048, "kindString": "Method", @@ -13626,21 +706,21 @@ ], "signatures": [ { - "id": 295, + "id": 192, "name": "_getAuthHeaders", "kind": 4096, "kindString": "Call signature", "flags": {}, "type": { "type": "reference", - "id": 171, + "id": 74, "name": "GenericObject" } } ] }, { - "id": 300, + "id": 197, "name": "_handleTokenChanged", "kind": 2048, "kindString": "Method", @@ -13656,28 +736,27 @@ ], "signatures": [ { - "id": 301, + "id": 198, "name": "_handleTokenChanged", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 302, + "id": 199, "name": "event", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 736, "qualifiedName": "AuthChangeEvent", "package": "@supabase/gotrue-js", "name": "AuthChangeEvent" } }, { - "id": 303, + "id": 200, "name": "token", "kind": 32768, "kindString": "Parameter", @@ -13697,7 +776,7 @@ } }, { - "id": 304, + "id": 201, "name": "source", "kind": 32768, "kindString": "Parameter", @@ -13725,7 +804,7 @@ ] }, { - "id": 292, + "id": 189, "name": "_initPostgRESTClient", "kind": 2048, "kindString": "Method", @@ -13741,7 +820,7 @@ ], "signatures": [ { - "id": 293, + "id": 190, "name": "_initPostgRESTClient", "kind": 4096, "kindString": "Call signature", @@ -13756,7 +835,7 @@ ] }, { - "id": 289, + "id": 186, "name": "_initRealtimeClient", "kind": 2048, "kindString": "Method", @@ -13772,14 +851,14 @@ ], "signatures": [ { - "id": 290, + "id": 187, "name": "_initRealtimeClient", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 291, + "id": 188, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -13788,7 +867,6 @@ }, "type": { "type": "reference", - "id": 909, "qualifiedName": "Options", "package": "@supabase/realtime-js", "name": "Options" @@ -13797,7 +875,6 @@ ], "type": { "type": "reference", - "id": 810, "qualifiedName": "RealtimeClient", "package": "@supabase/realtime-js", "name": "default" @@ -13806,7 +883,7 @@ ] }, { - "id": 286, + "id": 183, "name": "_initSupabaseAuthClient", "kind": 2048, "kindString": "Method", @@ -13822,21 +899,21 @@ ], "signatures": [ { - "id": 287, + "id": 184, "name": "_initSupabaseAuthClient", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 288, + "id": 185, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 176, + "id": 79, "name": "SupabaseClientOptions" } } @@ -13849,7 +926,7 @@ ] }, { - "id": 298, + "id": 195, "name": "_listenForAuthEvents", "kind": 2048, "kindString": "Method", @@ -13865,7 +942,7 @@ ], "signatures": [ { - "id": 299, + "id": 196, "name": "_listenForAuthEvents", "kind": 4096, "kindString": "Call signature", @@ -13879,7 +956,6 @@ }, { "type": "reference", - "id": 769, "qualifiedName": "Subscription", "package": "@supabase/gotrue-js", "name": "Subscription" @@ -13890,7 +966,7 @@ ] }, { - "id": 296, + "id": 193, "name": "_listenForMultiTabEvents", "kind": 2048, "kindString": "Method", @@ -13906,7 +982,7 @@ ], "signatures": [ { - "id": 297, + "id": 194, "name": "_listenForMultiTabEvents", "kind": 4096, "kindString": "Call signature", @@ -13928,7 +1004,7 @@ ] }, { - "id": 279, + "id": 176, "name": "_unsubscribeSubscription", "kind": 2048, "kindString": "Method", @@ -13944,21 +1020,20 @@ ], "signatures": [ { - "id": 280, + "id": 177, "name": "_unsubscribeSubscription", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 281, + "id": 178, "name": "subscription", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 927, "qualifiedName": "RealtimeSubscription", "package": "@supabase/realtime-js", "name": "default" @@ -13971,14 +1046,14 @@ { "type": "reflection", "declaration": { - "id": 282, + "id": 179, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 283, + "id": 180, "name": "error", "kind": 1024, "kindString": "Property", @@ -14011,7 +1086,7 @@ { "title": "Properties", "kind": 1024, - "children": [283] + "children": [180] } ] } @@ -14025,7 +1100,7 @@ ] }, { - "id": 246, + "id": 143, "name": "from", "kind": 2048, "kindString": "Method", @@ -14039,7 +1114,7 @@ ], "signatures": [ { - "id": 247, + "id": 144, "name": "from", "kind": 4096, "kindString": "Call signature", @@ -14049,7 +1124,7 @@ }, "typeParameter": [ { - "id": 248, + "id": 145, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -14062,7 +1137,7 @@ ], "parameters": [ { - "id": 249, + "id": 146, "name": "table", "kind": 32768, "kindString": "Parameter", @@ -14078,11 +1153,11 @@ ], "type": { "type": "reference", - "id": 8, + "id": 2, "typeArguments": [ { "type": "reference", - "id": 248, + "id": 145, "name": "T" } ], @@ -14092,7 +1167,7 @@ ] }, { - "id": 284, + "id": 181, "name": "getSubscriptions", "kind": 2048, "kindString": "Method", @@ -14106,7 +1181,7 @@ ], "signatures": [ { - "id": 285, + "id": 182, "name": "getSubscriptions", "kind": 4096, "kindString": "Call signature", @@ -14118,7 +1193,6 @@ "type": "array", "elementType": { "type": "reference", - "id": 927, "qualifiedName": "RealtimeSubscription", "package": "@supabase/realtime-js", "name": "default" @@ -14128,7 +1202,7 @@ ] }, { - "id": 259, + "id": 156, "name": "removeAllSubscriptions", "kind": 2048, "kindString": "Method", @@ -14142,7 +1216,7 @@ ], "signatures": [ { - "id": 260, + "id": 157, "name": "removeAllSubscriptions", "kind": 4096, "kindString": "Call signature", @@ -14158,14 +1232,14 @@ "elementType": { "type": "reflection", "declaration": { - "id": 261, + "id": 158, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 262, + "id": 159, "name": "data", "kind": 1024, "kindString": "Property", @@ -14180,14 +1254,14 @@ "type": { "type": "reflection", "declaration": { - "id": 263, + "id": 160, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 264, + "id": 161, "name": "subscription", "kind": 1024, "kindString": "Property", @@ -14201,7 +1275,6 @@ ], "type": { "type": "reference", - "id": 927, "qualifiedName": "RealtimeSubscription", "package": "@supabase/realtime-js", "name": "default" @@ -14212,14 +1285,14 @@ { "title": "Properties", "kind": 1024, - "children": [264] + "children": [161] } ] } } }, { - "id": 265, + "id": 162, "name": "error", "kind": 1024, "kindString": "Property", @@ -14252,7 +1325,7 @@ { "title": "Properties", "kind": 1024, - "children": [262, 265] + "children": [159, 162] } ] } @@ -14267,7 +1340,7 @@ ] }, { - "id": 266, + "id": 163, "name": "removeSubscription", "kind": 2048, "kindString": "Method", @@ -14281,7 +1354,7 @@ ], "signatures": [ { - "id": 267, + "id": 164, "name": "removeSubscription", "kind": 4096, "kindString": "Call signature", @@ -14291,7 +1364,7 @@ }, "parameters": [ { - "id": 268, + "id": 165, "name": "subscription", "kind": 32768, "kindString": "Parameter", @@ -14301,7 +1374,6 @@ }, "type": { "type": "reference", - "id": 927, "qualifiedName": "RealtimeSubscription", "package": "@supabase/realtime-js", "name": "default" @@ -14314,14 +1386,14 @@ { "type": "reflection", "declaration": { - "id": 269, + "id": 166, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 270, + "id": 167, "name": "data", "kind": 1024, "kindString": "Property", @@ -14336,14 +1408,14 @@ "type": { "type": "reflection", "declaration": { - "id": 271, + "id": 168, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 272, + "id": 169, "name": "openSubscriptions", "kind": 1024, "kindString": "Property", @@ -14365,14 +1437,14 @@ { "title": "Properties", "kind": 1024, - "children": [272] + "children": [169] } ] } } }, { - "id": 273, + "id": 170, "name": "error", "kind": 1024, "kindString": "Property", @@ -14405,7 +1477,7 @@ { "title": "Properties", "kind": 1024, - "children": [270, 273] + "children": [167, 170] } ] } @@ -14419,7 +1491,7 @@ ] }, { - "id": 250, + "id": 147, "name": "rpc", "kind": 2048, "kindString": "Method", @@ -14433,7 +1505,7 @@ ], "signatures": [ { - "id": 251, + "id": 148, "name": "rpc", "kind": 4096, "kindString": "Call signature", @@ -14443,7 +1515,7 @@ }, "typeParameter": [ { - "id": 252, + "id": 149, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -14456,7 +1528,7 @@ ], "parameters": [ { - "id": 253, + "id": 150, "name": "fn", "kind": 32768, "kindString": "Parameter", @@ -14470,7 +1542,7 @@ } }, { - "id": 254, + "id": 151, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -14486,7 +1558,7 @@ } }, { - "id": 255, + "id": 152, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -14494,14 +1566,14 @@ "type": { "type": "reflection", "declaration": { - "id": 256, + "id": 153, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 258, + "id": 155, "name": "count", "kind": 1024, "kindString": "Property", @@ -14538,7 +1610,7 @@ } }, { - "id": 257, + "id": 154, "name": "head", "kind": 1024, "kindString": "Property", @@ -14562,7 +1634,7 @@ { "title": "Properties", "kind": 1024, - "children": [258, 257] + "children": [155, 154] } ] } @@ -14575,7 +1647,7 @@ "typeArguments": [ { "type": "reference", - "id": 252, + "id": 149, "name": "T" } ], @@ -14591,24 +1663,24 @@ { "title": "Constructors", "kind": 512, - "children": [215] + "children": [112] }, { "title": "Properties", "kind": 1024, "children": [ - 220, 224, 234, 229, 226, 236, 228, 227, 223, 222, 221, 235, 225, 241, 240 + 117, 121, 131, 126, 123, 133, 125, 124, 120, 119, 118, 132, 122, 138, 137 ] }, { "title": "Accessors", "kind": 262144, - "children": [242, 244] + "children": [139, 141] }, { "title": "Methods", "kind": 2048, - "children": [274, 294, 300, 292, 289, 286, 298, 296, 279, 246, 284, 259, 266, 250] + "children": [171, 191, 197, 189, 186, 183, 195, 193, 176, 143, 181, 156, 163, 147] } ], "sources": [ @@ -14620,3174 +1692,7 @@ ] }, { - "id": 759, - "name": "AdminUserAttributes", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 761, - "name": "app_metadata", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "A custom data object for app_metadata that.", - "text": "Only a service role can modify.\n\nCan be any JSON that includes app-specific info, such as identity providers, roles, and other\naccess control information.\n" - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 103, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } - }, - { - "id": 768, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "A custom data object for user_metadata that a user can modify. Can be any JSON." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 80, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - }, - "inheritedFrom": { - "type": "reference", - "id": 758, - "name": "UserAttributes.data" - } - }, - { - "id": 764, - "name": "email", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "The user's email." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 64, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "id": 754, - "name": "UserAttributes.email" - } - }, - { - "id": 767, - "name": "email_change_token", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "An email change token." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 76, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "id": 757, - "name": "UserAttributes.email_change_token" - } - }, - { - "id": 762, - "name": "email_confirm", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "Sets if a user has confirmed their email address.", - "text": "Only a service role can modify.\n" - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 109, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 766, - "name": "password", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "The user's password." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 72, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "id": 756, - "name": "UserAttributes.password" - } - }, - { - "id": 765, - "name": "phone", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "The user's phone." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 68, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "id": 755, - "name": "UserAttributes.phone" - } - }, - { - "id": 763, - "name": "phone_confirm", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "Sets if a user has confirmed their phone number.", - "text": "Only a service role can modify.\n" - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 115, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 760, - "name": "user_metadata", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "A custom data object for user_metadata.", - "text": "Can be any JSON.\n\nOnly a service role can modify.\n\nNote: When using the GoTrueAdminApi and wanting to modify a user's user_metadata,\nthis attribute is used instead of UserAttributes data.\n\n" - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 94, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [761, 768, 764, 767, 762, 766, 765, 763, 760] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 82, - "character": 17 - } - ], - "extendedTypes": [ - { - "type": "reference", - "id": 753, - "qualifiedName": "UserAttributes", - "package": "@supabase/gotrue-js", - "name": "UserAttributes" - } - ] - }, - { - "id": 737, - "name": "ApiError", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 738, - "name": "message", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 4, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 739, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 5, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [738, 739] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 3, - "character": 17 - } - ] - }, - { - "id": 335, - "name": "AuthSession", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 337, - "name": "access_token", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 9, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 339, - "name": "expires_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "A timestamp of when the token will expire. Returned when a login is confirmed." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 17, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 338, - "name": "expires_in", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "The number of seconds until the token expires (since it was issued). Returned when a login is confirmed." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 13, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 336, - "name": "provider_token", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 8, - "character": 4 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 340, - "name": "refresh_token", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 18, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 341, - "name": "token_type", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 19, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 342, - "name": "user", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 20, - "character": 4 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [337, 339, 338, 336, 340, 341, 342] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 7, - "character": 17 - } - ] - }, - { - "id": 307, - "name": "AuthUser", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 324, - "name": "action_link", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 48, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 309, - "name": "app_metadata", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 35, - "character": 4 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 310, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 311, - "name": "provider", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 36, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [311] - } - ], - "indexSignature": { - "id": 312, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 313, - "name": "key", - "kind": 32768, - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - } - } - }, - { - "id": 318, - "name": "aud", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 42, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 319, - "name": "confirmation_sent_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 43, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 328, - "name": "confirmed_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 52, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 327, - "name": "created_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 51, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 325, - "name": "email", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 49, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 321, - "name": "email_change_sent_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 45, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 329, - "name": "email_confirmed_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 53, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 308, - "name": "id", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 34, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 334, - "name": "identities", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 58, - "character": 4 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "id": 741, - "qualifiedName": "UserIdentity", - "package": "@supabase/gotrue-js", - "name": "UserIdentity" - } - } - }, - { - "id": 323, - "name": "invited_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 47, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 331, - "name": "last_sign_in_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 55, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 322, - "name": "new_email", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 46, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 326, - "name": "phone", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 50, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 330, - "name": "phone_confirmed_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 54, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 320, - "name": "recovery_sent_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 44, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 332, - "name": "role", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 56, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 333, - "name": "updated_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 57, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 314, - "name": "user_metadata", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 39, - "character": 4 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 315, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "indexSignature": { - "id": 316, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 317, - "name": "key", - "kind": 32768, - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - } - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 324, 309, 318, 319, 328, 327, 325, 321, 329, 308, 334, 323, 331, 322, 326, 330, - 320, 332, 333, 314 - ] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 33, - "character": 17 - } - ] - }, - { - "id": 777, - "name": "CookieOptions", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 780, - "name": "domain", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 134, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 779, - "name": "lifetime", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 133, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 778, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 132, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 781, - "name": "path", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 135, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 782, - "name": "sameSite", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 136, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [780, 779, 778, 781, 782] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 131, - "character": 17 - } - ] - }, - { - "id": 803, - "name": "OpenIDConnectCredentials", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 807, - "name": "client_id", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 165, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 804, - "name": "id_token", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 162, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 808, - "name": "issuer", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 166, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 805, - "name": "nonce", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 163, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 806, - "name": "provider", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 164, - "character": 4 - } - ], - "type": { - "type": "reference", - "id": 735, - "qualifiedName": "Provider", - "package": "@supabase/gotrue-js", - "name": "Provider" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [807, 804, 808, 805, 806] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 161, - "character": 17 - } - ] - }, - { - "id": 769, - "name": "Subscription", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 770, - "name": "id", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The subscriber UUID. This will be set by the client." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 121, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 771, - "name": "callback", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 125, - "character": 4 - } - ], - "signatures": [ - { - "id": 772, - "name": "callback", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The function to call every time there is an event. eg: (eventName) => {}" - }, - "parameters": [ - { - "id": 773, - "name": "event", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "id": 736, - "qualifiedName": "AuthChangeEvent", - "package": "@supabase/gotrue-js", - "name": "AuthChangeEvent" - } - }, - { - "id": 774, - "name": "session", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 335, - "qualifiedName": "Session", - "package": "@supabase/gotrue-js", - "name": "Session" - } - ] - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 775, - "name": "unsubscribe", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 129, - "character": 4 - } - ], - "signatures": [ - { - "id": 776, - "name": "unsubscribe", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Call this to remove the listener." - }, - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [770] - }, - { - "title": "Methods", - "kind": 2048, - "children": [771, 775] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 117, - "character": 17 - } - ] - }, - { - "id": 753, - "name": "UserAttributes", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 758, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "A custom data object for user_metadata that a user can modify. Can be any JSON." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 80, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } - }, - { - "id": 754, - "name": "email", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "The user's email." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 64, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 757, - "name": "email_change_token", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "An email change token." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 76, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 756, - "name": "password", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "The user's password." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 72, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 755, - "name": "phone", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "The user's phone." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 68, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [758, 754, 757, 756, 755] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 60, - "character": 17 - } - ], - "extendedBy": [ - { - "type": "reference", - "id": 759, - "name": "AdminUserAttributes" - } - ] - }, - { - "id": 783, - "name": "UserCredentials", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 784, - "name": "email", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 139, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 789, - "name": "oidc", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 144, - "character": 4 - } - ], - "type": { - "type": "reference", - "id": 803, - "qualifiedName": "OpenIDConnectCredentials", - "package": "@supabase/gotrue-js", - "name": "OpenIDConnectCredentials" - } - }, - { - "id": 786, - "name": "password", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 141, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 785, - "name": "phone", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 140, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 788, - "name": "provider", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 143, - "character": 4 - } - ], - "type": { - "type": "reference", - "id": 735, - "qualifiedName": "Provider", - "package": "@supabase/gotrue-js", - "name": "Provider" - } - }, - { - "id": 787, - "name": "refreshToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 142, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [784, 789, 786, 785, 788, 787] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 138, - "character": 17 - } - ] - }, - { - "id": 741, - "name": "UserIdentity", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 749, - "name": "created_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 29, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 742, - "name": "id", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 23, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 744, - "name": "identity_data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 25, - "character": 4 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 745, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "indexSignature": { - "id": 746, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 747, - "name": "key", - "kind": 32768, - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - } - } - }, - { - "id": 750, - "name": "last_sign_in_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 30, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 748, - "name": "provider", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 28, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 751, - "name": "updated_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 31, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 743, - "name": "user_id", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 24, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [749, 742, 744, 750, 748, 751, 743] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 22, - "character": 17 - } - ] - }, - { - "id": 796, - "name": "VerifyEmailOTPParams", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 797, - "name": "email", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 154, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 798, - "name": "phone", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 155, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "undefined" - } - }, - { - "id": 799, - "name": "token", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 156, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 800, - "name": "type", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 157, - "character": 4 - } - ], - "type": { - "type": "reference", - "id": 802, - "qualifiedName": "EmailOTPType", - "package": "@supabase/gotrue-js", - "name": "EmailOTPType" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [797, 798, 799, 800] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 153, - "character": 17 - } - ] - }, - { - "id": 791, - "name": "VerifyMobileOTPParams", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 792, - "name": "email", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 148, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "undefined" - } - }, - { - "id": 793, - "name": "phone", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 149, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 794, - "name": "token", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 150, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 795, - "name": "type", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 151, - "character": 4 - } - ], - "type": { - "type": "reference", - "id": 801, - "qualifiedName": "MobileOTPType", - "package": "@supabase/gotrue-js", - "name": "MobileOTPType" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [792, 793, 794, 795] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 147, - "character": 17 - } - ] - }, - { - "id": 736, - "name": "AuthChangeEvent", - "kind": 4194304, - "kindString": "Type alias", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 2, - "character": 20 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "PASSWORD_RECOVERY" - }, - { - "type": "literal", - "value": "SIGNED_IN" - }, - { - "type": "literal", - "value": "SIGNED_OUT" - }, - { - "type": "literal", - "value": "TOKEN_REFRESHED" - }, - { - "type": "literal", - "value": "USER_UPDATED" - }, - { - "type": "literal", - "value": "USER_DELETED" - } - ] - } - }, - { - "id": 802, - "name": "EmailOTPType", - "kind": 4194304, - "kindString": "Type alias", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 160, - "character": 20 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "signup" - }, - { - "type": "literal", - "value": "invite" - }, - { - "type": "literal", - "value": "magiclink" - }, - { - "type": "literal", - "value": "recovery" - }, - { - "type": "literal", - "value": "email_change" - } - ] - } - }, - { - "id": 801, - "name": "MobileOTPType", - "kind": 4194304, - "kindString": "Type alias", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 159, - "character": 20 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "sms" - }, - { - "type": "literal", - "value": "phone_change" - } - ] - } - }, - { - "id": 208, - "name": "PostgrestError", - "kind": 4194304, - "kindString": "Type alias", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Error format", - "text": "{@link https://postgrest.org/en/stable/api.html?highlight=options#errors-and-http-status-codes}\n" - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts", - "line": 7, - "character": 20 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 209, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 213, - "name": "code", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts", - "line": 11, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 211, - "name": "details", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts", - "line": 9, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 212, - "name": "hint", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts", - "line": 10, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 210, - "name": "message", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts", - "line": 8, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [213, 211, 212, 210] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts", - "line": 7, - "character": 37 - } - ] - } - } - }, - { - "id": 206, - "name": "PostgrestMaybeSingleResponse", - "kind": 4194304, - "kindString": "Type alias", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts", - "line": 41, - "character": 20 - } - ], - "typeParameter": [ - { - "id": 207, - "name": "T", - "kind": 131072, - "kindString": "Type parameter", - "flags": { - "isExternal": true - } - } - ], - "type": { - "type": "reference", - "id": 204, - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "reference", - "id": 207, - "qualifiedName": "T", - "package": "@supabase/postgrest-js", - "name": "T" - }, - { - "type": "literal", - "value": null - } - ] - } - ], - "qualifiedName": "PostgrestSingleResponse", - "package": "@supabase/postgrest-js", - "name": "PostgrestSingleResponse" - } - }, - { - "id": 202, - "name": "PostgrestResponse", - "kind": 4194304, - "kindString": "Type alias", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts", - "line": 34, - "character": 20 - } - ], - "typeParameter": [ - { - "id": 203, - "name": "T", - "kind": 131072, - "kindString": "Type parameter", - "flags": { - "isExternal": true - } - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 203, - "qualifiedName": "T", - "package": "@supabase/postgrest-js", - "name": "T" - } - ], - "qualifiedName": "PostgrestResponseSuccess", - "package": "@supabase/postgrest-js", - "name": "PostgrestResponseSuccess" - }, - { - "type": "reference", - "qualifiedName": "PostgrestResponseFailure", - "package": "@supabase/postgrest-js", - "name": "PostgrestResponseFailure" - } - ] - } - }, - { - "id": 204, - "name": "PostgrestSingleResponse", - "kind": 4194304, - "kindString": "Type alias", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts", - "line": 40, - "character": 20 - } - ], - "typeParameter": [ - { - "id": 205, - "name": "T", - "kind": 131072, - "kindString": "Type parameter", - "flags": { - "isExternal": true - } - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 205, - "qualifiedName": "T", - "package": "@supabase/postgrest-js", - "name": "T" - } - ], - "qualifiedName": "PostgrestSingleResponseSuccess", - "package": "@supabase/postgrest-js", - "name": "PostgrestSingleResponseSuccess" - }, - { - "type": "reference", - "qualifiedName": "PostgrestResponseFailure", - "package": "@supabase/postgrest-js", - "name": "PostgrestResponseFailure" - } - ] - } - }, - { - "id": 735, - "name": "Provider", - "kind": 4194304, - "kindString": "Type alias", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 1, - "character": 20 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "apple" - }, - { - "type": "literal", - "value": "azure" - }, - { - "type": "literal", - "value": "bitbucket" - }, - { - "type": "literal", - "value": "discord" - }, - { - "type": "literal", - "value": "facebook" - }, - { - "type": "literal", - "value": "github" - }, - { - "type": "literal", - "value": "gitlab" - }, - { - "type": "literal", - "value": "google" - }, - { - "type": "literal", - "value": "keycloak" - }, - { - "type": "literal", - "value": "linkedin" - }, - { - "type": "literal", - "value": "notion" - }, - { - "type": "literal", - "value": "slack" - }, - { - "type": "literal", - "value": "spotify" - }, - { - "type": "literal", - "value": "twitch" - }, - { - "type": "literal", - "value": "twitter" - }, - { - "type": "literal", - "value": "workos" - } - ] - } - }, - { - "id": 909, - "name": "RealtimeClientOptions", - "kind": 4194304, - "kindString": "Type alias", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 5, - "character": 20 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 910, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 917, - "name": "decode", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 12, - "character": 4 - } - ], - "type": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - }, - { - "id": 916, - "name": "encode", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 11, - "character": 4 - } - ], - "type": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - }, - { - "id": 919, - "name": "headers", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 14, - "character": 4 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 920, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 14, - "character": 14 - } - ], - "indexSignature": { - "id": 921, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 922, - "name": "key", - "kind": 32768, - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - } - } - }, - { - "id": 913, - "name": "heartbeatIntervalMs", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 8, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 915, - "name": "logger", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 10, - "character": 4 - } - ], - "type": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - }, - { - "id": 914, - "name": "longpollerTimeout", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 9, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 923, - "name": "params", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 17, - "character": 4 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 924, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 17, - "character": 13 - } - ], - "indexSignature": { - "id": 925, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 926, - "name": "key", - "kind": 32768, - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - } - } - }, - { - "id": 918, - "name": "reconnectAfterMs", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 13, - "character": 4 - } - ], - "type": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - }, - { - "id": 912, - "name": "timeout", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 7, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 911, - "name": "transport", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 6, - "character": 4 - } - ], - "type": { - "type": "reference", - "qualifiedName": "WebSocket", - "package": "typescript", - "name": "WebSocket" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [917, 916, 919, 913, 915, 914, 923, 918, 912, 911] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 5, - "character": 30 - } - ] - } - } - }, - { - "id": 809, - "name": "SupportedStorage", - "kind": 4194304, - "kindString": "Type alias", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 173, - "character": 20 - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "qualifiedName": "Storage", - "package": "typescript", - "name": "Storage" - }, - { - "type": "union", - "types": [ - { - "type": "literal", - "value": "getItem" - }, - { - "type": "literal", - "value": "setItem" - }, - { - "type": "literal", - "value": "removeItem" - } - ] - } - ], - "qualifiedName": "Pick", - "package": "typescript", - "name": "Pick" - } - ], - "qualifiedName": "PromisifyMethods", - "package": "@supabase/gotrue-js", - "name": "PromisifyMethods" - } - }, - { - "id": 790, - "name": "VerifyOTPParams", - "kind": 4194304, - "kindString": "Type alias", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 146, - "character": 20 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 791, - "qualifiedName": "VerifyMobileOTPParams", - "package": "@supabase/gotrue-js", - "name": "VerifyMobileOTPParams" - }, - { - "type": "reference", - "id": 796, - "qualifiedName": "VerifyEmailOTPParams", - "package": "@supabase/gotrue-js", - "name": "VerifyEmailOTPParams" - } - ] - } - }, - { - "id": 2, + "id": 106, "name": "createClient", "kind": 64, "kindString": "Function", @@ -17801,7 +1706,7 @@ ], "signatures": [ { - "id": 3, + "id": 107, "name": "createClient", "kind": 4096, "kindString": "Call signature", @@ -17811,7 +1716,7 @@ }, "parameters": [ { - "id": 4, + "id": 108, "name": "supabaseUrl", "kind": 32768, "kindString": "Parameter", @@ -17822,7 +1727,7 @@ } }, { - "id": 5, + "id": 109, "name": "supabaseKey", "kind": 32768, "kindString": "Parameter", @@ -17833,7 +1738,7 @@ } }, { - "id": 6, + "id": 110, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -17842,14 +1747,14 @@ }, "type": { "type": "reference", - "id": 176, + "id": 79, "name": "SupabaseClientOptions" } } ], "type": { "type": "reference", - "id": 214, + "id": 111, "name": "default" } } @@ -17860,32 +1765,17 @@ { "title": "References", "kind": 16777216, - "children": [740, 305, 306, 752] - }, - { - "title": "Namespaces", - "kind": 4, - "children": [1014] + "children": [202, 203] }, { "title": "Classes", "kind": 128, - "children": [343, 601, 810, 927, 214] - }, - { - "title": "Interfaces", - "kind": 256, - "children": [759, 737, 335, 307, 777, 803, 769, 753, 783, 741, 796, 791] - }, - { - "title": "Type aliases", - "kind": 4194304, - "children": [736, 802, 801, 208, 206, 202, 204, 735, 909, 809, 790] + "children": [111] }, { "title": "Functions", "kind": 64, - "children": [2] + "children": [106] } ], "sources": [ @@ -17897,21 +1787,21 @@ ] }, { - "id": 7, + "id": 1, "name": "lib/SupabaseQueryBuilder", "kind": 2, "kindString": "Module", "flags": {}, "children": [ { - "id": 8, + "id": 2, "name": "SupabaseQueryBuilder", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 9, + "id": 3, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -17925,14 +1815,14 @@ ], "signatures": [ { - "id": 10, + "id": 4, "name": "new SupabaseQueryBuilder", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "typeParameter": [ { - "id": 11, + "id": 5, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -17941,7 +1831,7 @@ ], "parameters": [ { - "id": 12, + "id": 6, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -17952,7 +1842,7 @@ } }, { - "id": 13, + "id": 7, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -17960,14 +1850,14 @@ "type": { "type": "reflection", "declaration": { - "id": 14, + "id": 8, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 19, + "id": 13, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -17984,34 +1874,45 @@ "type": { "type": "reflection", "declaration": { - "id": 20, + "id": 14, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 21, + "id": 15, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 22, + "id": 16, "name": "input", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "reference", - "qualifiedName": "RequestInfo", - "package": "typescript", - "name": "RequestInfo" + "type": "union", + "types": [ + { + "type": "reference", + "qualifiedName": "RequestInfo", + "package": "typescript", + "name": "RequestInfo" + }, + { + "type": "reference", + "qualifiedName": "URL", + "package": "typescript", + "name": "URL" + } + ] } }, { - "id": 23, + "id": 17, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -18046,7 +1947,7 @@ } }, { - "id": 15, + "id": 9, "name": "headers", "kind": 1024, "kindString": "Property", @@ -18062,12 +1963,12 @@ ], "type": { "type": "reference", - "id": 171, + "id": 74, "name": "GenericObject" } }, { - "id": 17, + "id": 11, "name": "realtime", "kind": 1024, "kindString": "Property", @@ -18081,14 +1982,13 @@ ], "type": { "type": "reference", - "id": 810, "qualifiedName": "RealtimeClient", "package": "@supabase/realtime-js", "name": "default" } }, { - "id": 16, + "id": 10, "name": "schema", "kind": 1024, "kindString": "Property", @@ -18106,7 +2006,7 @@ } }, { - "id": 24, + "id": 18, "name": "shouldThrowOnError", "kind": 1024, "kindString": "Property", @@ -18126,7 +2026,7 @@ } }, { - "id": 18, + "id": 12, "name": "table", "kind": 1024, "kindString": "Property", @@ -18148,7 +2048,7 @@ { "title": "Properties", "kind": 1024, - "children": [19, 15, 17, 16, 24, 18] + "children": [13, 9, 11, 10, 18, 12] } ] } @@ -18157,11 +2057,11 @@ ], "type": { "type": "reference", - "id": 8, + "id": 2, "typeArguments": [ { "type": "reference", - "id": 11, + "id": 5, "name": "T" } ], @@ -18179,7 +2079,7 @@ } }, { - "id": 27, + "id": 21, "name": "_headers", "kind": 1024, "kindString": "Property", @@ -18195,12 +2095,12 @@ ], "type": { "type": "reference", - "id": 171, + "id": 74, "name": "GenericObject" } }, { - "id": 26, + "id": 20, "name": "_realtime", "kind": 1024, "kindString": "Property", @@ -18216,14 +2116,13 @@ ], "type": { "type": "reference", - "id": 810, "qualifiedName": "RealtimeClient", "package": "@supabase/realtime-js", "name": "default" } }, { - "id": 28, + "id": 22, "name": "_schema", "kind": 1024, "kindString": "Property", @@ -18243,7 +2142,7 @@ } }, { - "id": 25, + "id": 19, "name": "_subscription", "kind": 1024, "kindString": "Property", @@ -18266,7 +2165,7 @@ }, { "type": "reference", - "id": 114, + "id": 33, "name": "SupabaseRealtimeClient" } ] @@ -18274,7 +2173,7 @@ "defaultValue": "null" }, { - "id": 29, + "id": 23, "name": "_table", "kind": 1024, "kindString": "Property", @@ -18294,948 +2193,7 @@ } }, { - "id": 96, - "name": "allowEmpty", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts", - "line": 53, - "character": 14 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.allowEmpty" - } - }, - { - "id": 88, - "name": "body", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts", - "line": 49, - "character": 14 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 11, - "name": "T" - } - ], - "qualifiedName": "Partial", - "package": "typescript", - "name": "Partial" - }, - { - "type": "array", - "elementType": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 11, - "name": "T" - } - ], - "qualifiedName": "Partial", - "package": "typescript", - "name": "Partial" - } - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.body" - } - }, - { - "id": 91, - "name": "fetch", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts", - "line": 52, - "character": 14 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 92, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "signatures": [ - { - "id": 93, - "name": "__type", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 94, - "name": "input", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "qualifiedName": "RequestInfo", - "package": "typescript", - "name": "RequestInfo" - } - }, - { - "id": 95, - "name": "init", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "reference", - "qualifiedName": "RequestInit", - "package": "typescript", - "name": "RequestInit" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "qualifiedName": "Response", - "package": "typescript", - "name": "Response" - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - } - }, - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.fetch" - } - }, - { - "id": 83, - "name": "headers", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts", - "line": 45, - "character": 14 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 84, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "indexSignature": { - "id": 85, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": {}, - "parameters": [ - { - "id": 86, - "name": "key", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - } - }, - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.headers" - } - }, - { - "id": 81, - "name": "method", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts", - "line": 43, - "character": 14 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "DELETE" - }, - { - "type": "literal", - "value": "GET" - }, - { - "type": "literal", - "value": "HEAD" - }, - { - "type": "literal", - "value": "POST" - }, - { - "type": "literal", - "value": "PATCH" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.method" - } - }, - { - "id": 87, - "name": "schema", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts", - "line": 48, - "character": 14 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.schema" - } - }, - { - "id": 89, - "name": "shouldThrowOnError", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts", - "line": 50, - "character": 14 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.shouldThrowOnError" - } - }, - { - "id": 90, - "name": "signal", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts", - "line": 51, - "character": 14 - } - ], - "type": { - "type": "reference", - "qualifiedName": "AbortSignal", - "package": "typescript", - "name": "AbortSignal" - }, - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.signal" - } - }, - { - "id": 82, - "name": "url", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts", - "line": 44, - "character": 14 - } - ], - "type": { - "type": "reference", - "qualifiedName": "URL", - "package": "typescript", - "name": "URL" - }, - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.url" - } - }, - { - "id": 75, - "name": "delete", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 75, - "character": 4 - } - ], - "signatures": [ - { - "id": 76, - "name": "delete", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Performs a DELETE on the table." - }, - "parameters": [ - { - "id": 77, - "name": "__namedParameters", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 78, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 80, - "name": "count", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 77, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "literal", - "value": "exact" - }, - { - "type": "literal", - "value": "planned" - }, - { - "type": "literal", - "value": "estimated" - } - ] - } - }, - { - "id": 79, - "name": "returning", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 76, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "minimal" - }, - { - "type": "literal", - "value": "representation" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [80, 79] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 11, - "name": "T" - } - ], - "qualifiedName": "PostgrestFilterBuilder", - "package": "@supabase/postgrest-js", - "name": "default" - }, - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.delete" - } - } - ], - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.delete" - } - }, - { - "id": 44, - "name": "insert", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 30, - "character": 4 - } - ], - "signatures": [ - { - "id": 45, - "name": "insert", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Performs an INSERT into the table." - }, - "parameters": [ - { - "id": 46, - "name": "values", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The values to insert." - }, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 11, - "name": "T" - } - ], - "qualifiedName": "Partial", - "package": "typescript", - "name": "Partial" - }, - { - "type": "array", - "elementType": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 11, - "name": "T" - } - ], - "qualifiedName": "Partial", - "package": "typescript", - "name": "Partial" - } - } - ] - } - }, - { - "id": 47, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 48, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 50, - "name": "count", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 32, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "literal", - "value": "exact" - }, - { - "type": "literal", - "value": "planned" - }, - { - "type": "literal", - "value": "estimated" - } - ] - } - }, - { - "id": 49, - "name": "returning", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 31, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "minimal" - }, - { - "type": "literal", - "value": "representation" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [50, 49] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 11, - "name": "T" - } - ], - "qualifiedName": "PostgrestFilterBuilder", - "package": "@supabase/postgrest-js", - "name": "default" - }, - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.insert" - } - }, - { - "id": 51, - "name": "insert", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "tags": [ - { - "tag": "deprecated", - "text": "Use `upsert()` instead.\n" - } - ] - }, - "parameters": [ - { - "id": 52, - "name": "values", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 11, - "name": "T" - } - ], - "qualifiedName": "Partial", - "package": "typescript", - "name": "Partial" - }, - { - "type": "array", - "elementType": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 11, - "name": "T" - } - ], - "qualifiedName": "Partial", - "package": "typescript", - "name": "Partial" - } - } - ] - } - }, - { - "id": 53, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 54, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 58, - "name": "count", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 41, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "literal", - "value": "exact" - }, - { - "type": "literal", - "value": "planned" - }, - { - "type": "literal", - "value": "estimated" - } - ] - } - }, - { - "id": 56, - "name": "onConflict", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 39, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 57, - "name": "returning", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 40, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "minimal" - }, - { - "type": "literal", - "value": "representation" - } - ] - } - }, - { - "id": 55, - "name": "upsert", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 38, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [58, 56, 57, 55] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 11, - "name": "T" - } - ], - "qualifiedName": "PostgrestFilterBuilder", - "package": "@supabase/postgrest-js", - "name": "default" - }, - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.insert" - } - } - ], - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.insert" - } - }, - { - "id": 30, + "id": 24, "name": "on", "kind": 2048, "kindString": "Method", @@ -19249,7 +2207,7 @@ ], "signatures": [ { - "id": 31, + "id": 25, "name": "on", "kind": 4096, "kindString": "Call signature", @@ -19259,7 +2217,7 @@ }, "parameters": [ { - "id": 32, + "id": 26, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -19269,12 +2227,12 @@ }, "type": { "type": "reference", - "id": 199, + "id": 102, "name": "SupabaseEventTypes" } }, { - "id": 33, + "id": 27, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -19285,32 +2243,32 @@ "type": { "type": "reflection", "declaration": { - "id": 34, + "id": 28, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 35, + "id": 29, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 36, + "id": 30, "name": "payload", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 189, + "id": 92, "typeArguments": [ { "type": "reference", - "id": 11, + "id": 5, "name": "T" } ], @@ -19330,952 +2288,28 @@ ], "type": { "type": "reference", - "id": 114, + "id": 33, "name": "SupabaseRealtimeClient" } } ] - }, - { - "id": 37, - "name": "select", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 19, - "character": 4 - } - ], - "signatures": [ - { - "id": 38, - "name": "select", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Performs vertical filtering with SELECT." - }, - "parameters": [ - { - "id": 39, - "name": "columns", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "The columns to retrieve, separated by commas." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 40, - "name": "__namedParameters", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 41, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 43, - "name": "count", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 21, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "literal", - "value": "exact" - }, - { - "type": "literal", - "value": "planned" - }, - { - "type": "literal", - "value": "estimated" - } - ] - } - }, - { - "id": 42, - "name": "head", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 20, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [43, 42] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 11, - "name": "T" - } - ], - "qualifiedName": "PostgrestFilterBuilder", - "package": "@supabase/postgrest-js", - "name": "default" - }, - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.select" - } - } - ], - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.select" - } - }, - { - "id": 100, - "name": "then", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts", - "line": 62, - "character": 4 - } - ], - "signatures": [ - { - "id": 101, - "name": "then", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "typeParameter": [ - { - "id": 102, - "name": "TResult1", - "kind": 131072, - "kindString": "Type parameter", - "flags": { - "isExternal": true - }, - "default": { - "type": "reference", - "id": 202, - "typeArguments": [ - { - "type": "reference", - "id": 11, - "name": "T" - } - ], - "qualifiedName": "PostgrestResponse", - "package": "@supabase/postgrest-js", - "name": "PostgrestResponse" - } - }, - { - "id": 103, - "name": "TResult2", - "kind": 131072, - "kindString": "Type parameter", - "flags": { - "isExternal": true - }, - "default": { - "type": "intrinsic", - "name": "never" - } - } - ], - "parameters": [ - { - "id": 104, - "name": "onfulfilled", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reflection", - "declaration": { - "id": 105, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "signatures": [ - { - "id": 106, - "name": "__type", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 107, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "id": 202, - "typeArguments": [ - { - "type": "reference", - "id": 11, - "name": "T" - } - ], - "qualifiedName": "PostgrestResponse", - "package": "@supabase/postgrest-js", - "name": "PostgrestResponse" - } - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 102, - "qualifiedName": "TResult1", - "package": "@supabase/postgrest-js", - "name": "TResult1" - }, - { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 102, - "qualifiedName": "TResult1", - "package": "@supabase/postgrest-js", - "name": "TResult1" - } - ], - "qualifiedName": "PromiseLike", - "package": "typescript", - "name": "PromiseLike" - } - ] - } - } - ] - } - } - ] - } - }, - { - "id": 108, - "name": "onrejected", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reflection", - "declaration": { - "id": 109, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "signatures": [ - { - "id": 110, - "name": "__type", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 111, - "name": "reason", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 103, - "qualifiedName": "TResult2", - "package": "@supabase/postgrest-js", - "name": "TResult2" - }, - { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 103, - "qualifiedName": "TResult2", - "package": "@supabase/postgrest-js", - "name": "TResult2" - } - ], - "qualifiedName": "PromiseLike", - "package": "typescript", - "name": "PromiseLike" - } - ] - } - } - ] - } - } - ] - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "reference", - "id": 102, - "qualifiedName": "TResult1", - "package": "@supabase/postgrest-js", - "name": "TResult1" - }, - { - "type": "reference", - "id": 103, - "qualifiedName": "TResult2", - "package": "@supabase/postgrest-js", - "name": "TResult2" - } - ] - } - ], - "qualifiedName": "PromiseLike", - "package": "typescript", - "name": "PromiseLike" - }, - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.then" - } - } - ], - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.then" - } - }, - { - "id": 97, - "name": "throwOnError", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts", - "line": 61, - "character": 4 - } - ], - "signatures": [ - { - "id": 98, - "name": "throwOnError", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "If there's an error with the query, throwOnError will reject the promise by\nthrowing the error instead of returning it as part of a successful response.", - "text": "{@link https://github.com/supabase/supabase-js/issues/92}\n" - }, - "parameters": [ - { - "id": 99, - "name": "throwOnError", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "type": { - "type": "reference", - "id": 8, - "typeArguments": [ - { - "type": "reference", - "id": 11, - "name": "T" - } - ], - "name": "SupabaseQueryBuilder" - }, - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.throwOnError" - } - } - ], - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.throwOnError" - } - }, - { - "id": 68, - "name": "update", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 65, - "character": 4 - } - ], - "signatures": [ - { - "id": 69, - "name": "update", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Performs an UPDATE on the table." - }, - "parameters": [ - { - "id": 70, - "name": "values", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The values to update." - }, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 11, - "name": "T" - } - ], - "qualifiedName": "Partial", - "package": "typescript", - "name": "Partial" - } - }, - { - "id": 71, - "name": "__namedParameters", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 72, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 74, - "name": "count", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 67, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "literal", - "value": "exact" - }, - { - "type": "literal", - "value": "planned" - }, - { - "type": "literal", - "value": "estimated" - } - ] - } - }, - { - "id": 73, - "name": "returning", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 66, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "minimal" - }, - { - "type": "literal", - "value": "representation" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [74, 73] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 11, - "name": "T" - } - ], - "qualifiedName": "PostgrestFilterBuilder", - "package": "@supabase/postgrest-js", - "name": "default" - }, - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.update" - } - } - ], - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.update" - } - }, - { - "id": 59, - "name": "upsert", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 52, - "character": 4 - } - ], - "signatures": [ - { - "id": 60, - "name": "upsert", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Performs an UPSERT into the table." - }, - "parameters": [ - { - "id": 61, - "name": "values", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The values to insert." - }, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 11, - "name": "T" - } - ], - "qualifiedName": "Partial", - "package": "typescript", - "name": "Partial" - }, - { - "type": "array", - "elementType": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 11, - "name": "T" - } - ], - "qualifiedName": "Partial", - "package": "typescript", - "name": "Partial" - } - } - ] - } - }, - { - "id": 62, - "name": "__namedParameters", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 63, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 66, - "name": "count", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 55, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "literal", - "value": "exact" - }, - { - "type": "literal", - "value": "planned" - }, - { - "type": "literal", - "value": "estimated" - } - ] - } - }, - { - "id": 67, - "name": "ignoreDuplicates", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 56, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 64, - "name": "onConflict", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 53, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 65, - "name": "returning", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 54, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "minimal" - }, - { - "type": "literal", - "value": "representation" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [66, 67, 64, 65] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 11, - "name": "T" - } - ], - "qualifiedName": "PostgrestFilterBuilder", - "package": "@supabase/postgrest-js", - "name": "default" - }, - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.upsert" - } - } - ], - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.upsert" - } } ], "groups": [ { "title": "Constructors", "kind": 512, - "children": [9] + "children": [3] }, { "title": "Properties", "kind": 1024, - "children": [27, 26, 28, 25, 29, 96, 88, 91, 83, 81, 87, 89, 90, 82] + "children": [21, 20, 22, 19, 23] }, { "title": "Methods", "kind": 2048, - "children": [75, 44, 30, 37, 100, 97, 68, 59] + "children": [24] } ], "sources": [ @@ -20287,7 +2321,7 @@ ], "typeParameter": [ { - "id": 112, + "id": 31, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -20300,7 +2334,7 @@ "typeArguments": [ { "type": "reference", - "id": 11, + "id": 5, "name": "T" } ], @@ -20315,7 +2349,7 @@ { "title": "Classes", "kind": 128, - "children": [8] + "children": [2] } ], "sources": [ @@ -20327,21 +2361,21 @@ ] }, { - "id": 113, + "id": 32, "name": "lib/SupabaseRealtimeClient", "kind": 2, "kindString": "Module", "flags": {}, "children": [ { - "id": 114, + "id": 33, "name": "SupabaseRealtimeClient", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 115, + "id": 34, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -20355,40 +2389,39 @@ ], "signatures": [ { - "id": 116, + "id": 35, "name": "new SupabaseRealtimeClient", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 117, + "id": 36, "name": "socket", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 810, "qualifiedName": "RealtimeClient", "package": "@supabase/realtime-js", "name": "default" } }, { - "id": 118, + "id": 37, "name": "headers", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 171, + "id": 74, "name": "GenericObject" } }, { - "id": 119, + "id": 38, "name": "schema", "kind": 32768, "kindString": "Parameter", @@ -20399,7 +2432,7 @@ } }, { - "id": 120, + "id": 39, "name": "tableName", "kind": 32768, "kindString": "Parameter", @@ -20412,14 +2445,14 @@ ], "type": { "type": "reference", - "id": 114, + "id": 33, "name": "SupabaseRealtimeClient" } } ] }, { - "id": 121, + "id": 40, "name": "subscription", "kind": 1024, "kindString": "Property", @@ -20433,14 +2466,13 @@ ], "type": { "type": "reference", - "id": 927, "qualifiedName": "RealtimeSubscription", "package": "@supabase/realtime-js", "name": "default" } }, { - "id": 122, + "id": 41, "name": "getPayloadRecords", "kind": 2048, "kindString": "Method", @@ -20456,14 +2488,14 @@ ], "signatures": [ { - "id": 123, + "id": 42, "name": "getPayloadRecords", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 124, + "id": 43, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -20477,22 +2509,29 @@ "type": { "type": "reflection", "declaration": { - "id": 125, + "id": 44, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 126, + "id": 45, "name": "new", "kind": 1024, "kindString": "Property", "flags": {}, + "sources": [ + { + "fileName": "src/lib/SupabaseRealtimeClient.ts", + "line": 21, + "character": 6 + } + ], "type": { "type": "reflection", "declaration": { - "id": 127, + "id": 46, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -20502,15 +2541,22 @@ "defaultValue": "{}" }, { - "id": 128, + "id": 47, "name": "old", "kind": 1024, "kindString": "Property", "flags": {}, + "sources": [ + { + "fileName": "src/lib/SupabaseRealtimeClient.ts", + "line": 22, + "character": 6 + } + ], "type": { "type": "reflection", "declaration": { - "id": 129, + "id": 48, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -20524,7 +2570,7 @@ { "title": "Properties", "kind": 1024, - "children": [126, 128] + "children": [45, 47] } ] } @@ -20533,7 +2579,7 @@ ] }, { - "id": 130, + "id": 49, "name": "on", "kind": 2048, "kindString": "Method", @@ -20547,7 +2593,7 @@ ], "signatures": [ { - "id": 131, + "id": 50, "name": "on", "kind": 4096, "kindString": "Call signature", @@ -20557,7 +2603,7 @@ }, "parameters": [ { - "id": 132, + "id": 51, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -20567,12 +2613,12 @@ }, "type": { "type": "reference", - "id": 199, + "id": 102, "name": "SupabaseEventTypes" } }, { - "id": 133, + "id": 52, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -20583,28 +2629,28 @@ "type": { "type": "reflection", "declaration": { - "id": 134, + "id": 53, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 135, + "id": 54, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 136, + "id": 55, "name": "payload", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 189, + "id": 92, "typeArguments": [ { "type": "intrinsic", @@ -20627,14 +2673,14 @@ ], "type": { "type": "reference", - "id": 114, + "id": 33, "name": "SupabaseRealtimeClient" } } ] }, { - "id": 137, + "id": 56, "name": "subscribe", "kind": 2048, "kindString": "Method", @@ -20648,7 +2694,7 @@ ], "signatures": [ { - "id": 138, + "id": 57, "name": "subscribe", "kind": 4096, "kindString": "Call signature", @@ -20658,7 +2704,7 @@ }, "parameters": [ { - "id": 139, + "id": 58, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -20674,7 +2720,6 @@ ], "type": { "type": "reference", - "id": 927, "qualifiedName": "RealtimeSubscription", "package": "@supabase/realtime-js", "name": "default" @@ -20687,17 +2732,17 @@ { "title": "Constructors", "kind": 512, - "children": [115] + "children": [34] }, { "title": "Properties", "kind": 1024, - "children": [121] + "children": [40] }, { "title": "Methods", "kind": 2048, - "children": [122, 130, 137] + "children": [41, 49, 56] } ], "sources": [ @@ -20713,7 +2758,7 @@ { "title": "Classes", "kind": 128, - "children": [114] + "children": [33] } ], "sources": [ @@ -20725,14 +2770,14 @@ ] }, { - "id": 140, + "id": 59, "name": "lib/constants", "kind": 2, "kindString": "Module", "flags": {}, "children": [ { - "id": 141, + "id": 60, "name": "DEFAULT_HEADERS", "kind": 32, "kindString": "Variable", @@ -20749,18 +2794,25 @@ "type": { "type": "reflection", "declaration": { - "id": 142, + "id": 61, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 143, + "id": 62, "name": "X-Client-Info", "kind": 1024, "kindString": "Property", "flags": {}, + "sources": [ + { + "fileName": "src/lib/constants.ts", + "line": 3, + "character": 33 + } + ], "type": { "type": "intrinsic", "name": "string" @@ -20772,7 +2824,7 @@ { "title": "Properties", "kind": 1024, - "children": [143] + "children": [62] } ] } @@ -20780,7 +2832,7 @@ "defaultValue": "..." }, { - "id": 144, + "id": 63, "name": "STORAGE_KEY", "kind": 32, "kindString": "Variable", @@ -20805,7 +2857,7 @@ { "title": "Variables", "kind": 32, - "children": [141, 144] + "children": [60, 63] } ], "sources": [ @@ -20817,14 +2869,14 @@ ] }, { - "id": 145, + "id": 64, "name": "lib/helpers", "kind": 2, "kindString": "Module", "flags": {}, "children": [ { - "id": 151, + "id": 70, "name": "isBrowser", "kind": 64, "kindString": "Function", @@ -20838,7 +2890,7 @@ ], "signatures": [ { - "id": 152, + "id": 71, "name": "isBrowser", "kind": 4096, "kindString": "Call signature", @@ -20851,7 +2903,7 @@ ] }, { - "id": 148, + "id": 67, "name": "stripTrailingSlash", "kind": 64, "kindString": "Function", @@ -20865,14 +2917,14 @@ ], "signatures": [ { - "id": 149, + "id": 68, "name": "stripTrailingSlash", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 150, + "id": 69, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -20891,7 +2943,7 @@ ] }, { - "id": 146, + "id": 65, "name": "uuid", "kind": 64, "kindString": "Function", @@ -20905,7 +2957,7 @@ ], "signatures": [ { - "id": 147, + "id": 66, "name": "uuid", "kind": 4096, "kindString": "Call signature", @@ -20922,7 +2974,7 @@ { "title": "Functions", "kind": 64, - "children": [151, 148, 146] + "children": [70, 67, 65] } ], "sources": [ @@ -20934,378 +2986,18 @@ ] }, { - "id": 153, + "id": 72, "name": "lib/types", "kind": 2, "kindString": "Module", "flags": {}, "children": [ { - "id": 154, + "id": 73, "name": "SupabaseAuthClientOptions", "kind": 256, "kindString": "Interface", "flags": {}, - "children": [ - { - "id": 161, - "name": "autoRefreshToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 43, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "inheritedFrom": { - "type": "reference", - "name": "GoTrueClientOptions.autoRefreshToken" - } - }, - { - "id": 165, - "name": "cookieOptions", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 47, - "character": 8 - } - ], - "type": { - "type": "reference", - "id": 777, - "qualifiedName": "CookieOptions", - "package": "@supabase/gotrue-js", - "name": "CookieOptions" - }, - "inheritedFrom": { - "type": "reference", - "name": "GoTrueClientOptions.cookieOptions" - } - }, - { - "id": 160, - "name": "detectSessionInUrl", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 42, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "inheritedFrom": { - "type": "reference", - "name": "GoTrueClientOptions.detectSessionInUrl" - } - }, - { - "id": 166, - "name": "fetch", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 48, - "character": 8 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 167, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "signatures": [ - { - "id": 168, - "name": "__type", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 169, - "name": "input", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "qualifiedName": "RequestInfo", - "package": "typescript", - "name": "RequestInfo" - } - }, - { - "id": 170, - "name": "init", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "reference", - "qualifiedName": "RequestInit", - "package": "typescript", - "name": "RequestInit" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "qualifiedName": "Response", - "package": "typescript", - "name": "Response" - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - } - }, - "inheritedFrom": { - "type": "reference", - "name": "GoTrueClientOptions.fetch" - } - }, - { - "id": 156, - "name": "headers", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 39, - "character": 8 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 157, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "indexSignature": { - "id": 158, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": {}, - "parameters": [ - { - "id": 159, - "name": "key", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - } - }, - "inheritedFrom": { - "type": "reference", - "name": "GoTrueClientOptions.headers" - } - }, - { - "id": 163, - "name": "localStorage", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 45, - "character": 8 - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "qualifiedName": "Storage", - "package": "typescript", - "name": "Storage" - }, - { - "type": "union", - "types": [ - { - "type": "literal", - "value": "getItem" - }, - { - "type": "literal", - "value": "setItem" - }, - { - "type": "literal", - "value": "removeItem" - } - ] - } - ], - "qualifiedName": "Pick", - "package": "typescript", - "name": "Pick" - } - ], - "qualifiedName": "PromisifyMethods", - "package": "@supabase/gotrue-js", - "name": "PromisifyMethods" - }, - "inheritedFrom": { - "type": "reference", - "name": "GoTrueClientOptions.localStorage" - } - }, - { - "id": 164, - "name": "multiTab", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 46, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "inheritedFrom": { - "type": "reference", - "name": "GoTrueClientOptions.multiTab" - } - }, - { - "id": 162, - "name": "persistSession", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 44, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "inheritedFrom": { - "type": "reference", - "name": "GoTrueClientOptions.persistSession" - } - }, - { - "id": 155, - "name": "url", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 38, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "name": "GoTrueClientOptions.url" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [161, 165, 160, 166, 156, 163, 164, 162, 155] - } - ], "sources": [ { "fileName": "src/lib/types.ts", @@ -21321,7 +3013,7 @@ ] }, { - "id": 175, + "id": 78, "name": "Fetch", "kind": 4194304, "kindString": "Type alias", @@ -21337,7 +3029,7 @@ "type": "query", "queryType": { "type": "reference", - "id": 20, + "id": 14, "qualifiedName": "fetch", "package": "typescript", "name": "fetch" @@ -21345,7 +3037,7 @@ } }, { - "id": 171, + "id": 74, "name": "GenericObject", "kind": 4194304, "kindString": "Type alias", @@ -21360,7 +3052,7 @@ "type": { "type": "reflection", "declaration": { - "id": 172, + "id": 75, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -21373,14 +3065,14 @@ } ], "indexSignature": { - "id": 173, + "id": 76, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 174, + "id": 77, "name": "key", "kind": 32768, "flags": {}, @@ -21399,7 +3091,7 @@ } }, { - "id": 176, + "id": 79, "name": "SupabaseClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -21414,14 +3106,14 @@ "type": { "type": "reflection", "declaration": { - "id": 177, + "id": 80, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 180, + "id": 83, "name": "autoRefreshToken", "kind": 1024, "kindString": "Property", @@ -21444,7 +3136,7 @@ } }, { - "id": 188, + "id": 91, "name": "cookieOptions", "kind": 1024, "kindString": "Property", @@ -21469,13 +3161,13 @@ }, "objectType": { "type": "reference", - "id": 154, + "id": 73, "name": "SupabaseAuthClientOptions" } } }, { - "id": 183, + "id": 86, "name": "detectSessionInUrl", "kind": 1024, "kindString": "Property", @@ -21498,7 +3190,7 @@ } }, { - "id": 186, + "id": 89, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -21517,12 +3209,12 @@ ], "type": { "type": "reference", - "id": 175, + "id": 78, "name": "Fetch" } }, { - "id": 179, + "id": 82, "name": "headers", "kind": 1024, "kindString": "Property", @@ -21541,12 +3233,12 @@ ], "type": { "type": "reference", - "id": 171, + "id": 74, "name": "GenericObject" } }, { - "id": 184, + "id": 87, "name": "localStorage", "kind": 1024, "kindString": "Property", @@ -21571,13 +3263,13 @@ }, "objectType": { "type": "reference", - "id": 154, + "id": 73, "name": "SupabaseAuthClientOptions" } } }, { - "id": 181, + "id": 84, "name": "multiTab", "kind": 1024, "kindString": "Property", @@ -21600,7 +3292,7 @@ } }, { - "id": 182, + "id": 85, "name": "persistSession", "kind": 1024, "kindString": "Property", @@ -21623,7 +3315,7 @@ } }, { - "id": 185, + "id": 88, "name": "realtime", "kind": 1024, "kindString": "Property", @@ -21642,14 +3334,13 @@ ], "type": { "type": "reference", - "id": 909, "qualifiedName": "Options", "package": "@supabase/realtime-js", "name": "RealtimeClientOptions" } }, { - "id": 178, + "id": 81, "name": "schema", "kind": 1024, "kindString": "Property", @@ -21672,7 +3363,7 @@ } }, { - "id": 187, + "id": 90, "name": "shouldThrowOnError", "kind": 1024, "kindString": "Property", @@ -21699,7 +3390,7 @@ { "title": "Properties", "kind": 1024, - "children": [180, 188, 183, 186, 179, 184, 181, 182, 185, 178, 187] + "children": [83, 91, 86, 89, 82, 87, 84, 85, 88, 81, 90] } ], "sources": [ @@ -21713,7 +3404,7 @@ } }, { - "id": 199, + "id": 102, "name": "SupabaseEventTypes", "kind": 4194304, "kindString": "Type alias", @@ -21748,7 +3439,7 @@ } }, { - "id": 189, + "id": 92, "name": "SupabaseRealtimePayload", "kind": 4194304, "kindString": "Type alias", @@ -21762,7 +3453,7 @@ ], "typeParameter": [ { - "id": 198, + "id": 101, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -21772,14 +3463,14 @@ "type": { "type": "reflection", "declaration": { - "id": 190, + "id": 93, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 191, + "id": 94, "name": "commit_timestamp", "kind": 1024, "kindString": "Property", @@ -21797,7 +3488,7 @@ } }, { - "id": 197, + "id": 100, "name": "errors", "kind": 1024, "kindString": "Property", @@ -21827,7 +3518,7 @@ } }, { - "id": 192, + "id": 95, "name": "eventType", "kind": 1024, "kindString": "Property", @@ -21858,7 +3549,7 @@ } }, { - "id": 195, + "id": 98, "name": "new", "kind": 1024, "kindString": "Property", @@ -21875,12 +3566,12 @@ ], "type": { "type": "reference", - "id": 198, + "id": 101, "name": "T" } }, { - "id": 196, + "id": 99, "name": "old", "kind": 1024, "kindString": "Property", @@ -21897,12 +3588,12 @@ ], "type": { "type": "reference", - "id": 198, + "id": 101, "name": "T" } }, { - "id": 193, + "id": 96, "name": "schema", "kind": 1024, "kindString": "Property", @@ -21920,7 +3611,7 @@ } }, { - "id": 194, + "id": 97, "name": "table", "kind": 1024, "kindString": "Property", @@ -21942,7 +3633,7 @@ { "title": "Properties", "kind": 1024, - "children": [191, 197, 192, 195, 196, 193, 194] + "children": [94, 100, 95, 98, 99, 96, 97] } ], "sources": [ @@ -21960,12 +3651,12 @@ { "title": "Interfaces", "kind": 256, - "children": [154] + "children": [73] }, { - "title": "Type aliases", + "title": "Type Aliases", "kind": 4194304, - "children": [175, 171, 176, 199, 189] + "children": [78, 74, 79, 102, 92] } ], "sources": [ @@ -21977,14 +3668,14 @@ ] }, { - "id": 200, + "id": 103, "name": "lib/version", "kind": 2, "kindString": "Module", "flags": {}, "children": [ { - "id": 201, + "id": 104, "name": "version", "kind": 32, "kindString": "Variable", @@ -22009,7 +3700,7 @@ { "title": "Variables", "kind": 32, - "children": [201] + "children": [104] } ], "sources": [ @@ -22025,7 +3716,7 @@ { "title": "Modules", "kind": 2, - "children": [1, 7, 113, 140, 145, 153, 200] + "children": [105, 1, 32, 59, 64, 72, 103] } ] }, @@ -22037,1926 +3728,9 @@ "flags": {}, "originalName": "", "children": [ - { - "id": 499, - "name": "AuthApiError", - "kind": 128, - "kindString": "Class", - "flags": {}, - "children": [ - { - "id": 500, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 17, - "character": 2 - } - ], - "signatures": [ - { - "id": 501, - "name": "new AuthApiError", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 502, - "name": "message", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 503, - "name": "status", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "reference", - "id": 499, - "name": "AuthApiError" - }, - "overwrites": { - "type": "reference", - "id": 496, - "name": "AuthError.constructor" - } - } - ], - "overwrites": { - "type": "reference", - "id": 495, - "name": "AuthError.constructor" - } - }, - { - "id": 504, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 15, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 505, - "name": "toJSON", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 23, - "character": 2 - } - ], - "signatures": [ - { - "id": 506, - "name": "toJSON", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 507, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 509, - "name": "message", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 26, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 508, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 25, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 510, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 27, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "..." - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [509, 508, 510] - } - ] - } - } - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [500] - }, - { - "title": "Properties", - "kind": 1024, - "children": [504] - }, - { - "title": "Methods", - "kind": 2048, - "children": [505] - } - ], - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 14, - "character": 13 - } - ], - "extendedTypes": [ - { - "type": "reference", - "id": 494, - "name": "AuthError" - } - ] - }, - { - "id": 494, - "name": "AuthError", - "kind": 128, - "kindString": "Class", - "flags": {}, - "children": [ - { - "id": 495, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 4, - "character": 2 - } - ], - "signatures": [ - { - "id": 496, - "name": "new AuthError", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 497, - "name": "message", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "id": 494, - "name": "AuthError" - }, - "overwrites": { - "type": "reference", - "name": "Error.constructor" - } - } - ], - "overwrites": { - "type": "reference", - "name": "Error.constructor" - } - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [495] - } - ], - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 1, - "character": 13 - } - ], - "extendedTypes": [ - { - "type": "reference", - "qualifiedName": "Error", - "package": "typescript", - "name": "Error" - } - ], - "extendedBy": [ - { - "type": "reference", - "id": 499, - "name": "AuthApiError" - }, - { - "type": "reference", - "id": 512, - "name": "AuthUnknownError" - }, - { - "type": "reference", - "id": 519, - "name": "CustomAuthError" - } - ] - }, - { - "id": 559, - "name": "AuthImplicitGrantRedirectError", - "kind": 128, - "kindString": "Class", - "flags": {}, - "children": [ - { - "id": 560, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 74, - "character": 2 - } - ], - "signatures": [ - { - "id": 561, - "name": "new AuthImplicitGrantRedirectError", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 562, - "name": "message", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 563, - "name": "details", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reflection", - "declaration": { - "id": 564, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 566, - "name": "code", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 74, - "character": 57 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 565, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 74, - "character": 42 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [566, 565] - } - ] - } - } - ] - }, - "defaultValue": "null" - } - ], - "type": { - "type": "reference", - "id": 559, - "name": "AuthImplicitGrantRedirectError" - }, - "overwrites": { - "type": "reference", - "id": 521, - "name": "CustomAuthError.constructor" - } - } - ], - "overwrites": { - "type": "reference", - "id": 520, - "name": "CustomAuthError.constructor" - } - }, - { - "id": 567, - "name": "details", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 73, - "character": 2 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reflection", - "declaration": { - "id": 568, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 570, - "name": "code", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 73, - "character": 28 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 569, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 73, - "character": 13 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [570, 569] - } - ] - } - } - ] - }, - "defaultValue": "null" - }, - { - "id": 581, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 43, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "id": 525, - "name": "CustomAuthError.name" - } - }, - { - "id": 582, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 44, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "inheritedFrom": { - "type": "reference", - "id": 526, - "name": "CustomAuthError.status" - } - }, - { - "id": 571, - "name": "toJSON", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 79, - "character": 2 - } - ], - "signatures": [ - { - "id": 572, - "name": "toJSON", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 573, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 577, - "name": "details", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 84, - "character": 6 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reflection", - "declaration": { - "id": 578, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 580, - "name": "code", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 73, - "character": 28 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 579, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 73, - "character": 13 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [580, 579] - } - ] - } - } - ] - }, - "defaultValue": "..." - }, - { - "id": 575, - "name": "message", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 82, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 574, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 81, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 576, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 83, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "..." - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [577, 575, 574, 576] - } - ] - } - }, - "overwrites": { - "type": "reference", - "id": 528, - "name": "CustomAuthError.toJSON" - } - } - ], - "overwrites": { - "type": "reference", - "id": 527, - "name": "CustomAuthError.toJSON" - } - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [560] - }, - { - "title": "Properties", - "kind": 1024, - "children": [567, 581, 582] - }, - { - "title": "Methods", - "kind": 2048, - "children": [571] - } - ], - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 72, - "character": 13 - } - ], - "extendedTypes": [ - { - "type": "reference", - "id": 519, - "name": "CustomAuthError" - } - ] - }, - { - "id": 546, - "name": "AuthInvalidCredentialsError", - "kind": 128, - "kindString": "Class", - "flags": {}, - "children": [ - { - "id": 547, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 67, - "character": 2 - } - ], - "signatures": [ - { - "id": 548, - "name": "new AuthInvalidCredentialsError", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 549, - "name": "message", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "id": 546, - "name": "AuthInvalidCredentialsError" - }, - "overwrites": { - "type": "reference", - "id": 521, - "name": "CustomAuthError.constructor" - } - } - ], - "overwrites": { - "type": "reference", - "id": 520, - "name": "CustomAuthError.constructor" - } - }, - { - "id": 550, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 43, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "id": 525, - "name": "CustomAuthError.name" - } - }, - { - "id": 551, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 44, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "inheritedFrom": { - "type": "reference", - "id": 526, - "name": "CustomAuthError.status" - } - }, - { - "id": 552, - "name": "toJSON", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 51, - "character": 2 - } - ], - "signatures": [ - { - "id": 553, - "name": "toJSON", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 554, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 556, - "name": "message", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 54, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 555, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 53, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 557, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 55, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "..." - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [556, 555, 557] - } - ] - } - }, - "inheritedFrom": { - "type": "reference", - "id": 528, - "name": "CustomAuthError.toJSON" - } - } - ], - "inheritedFrom": { - "type": "reference", - "id": 527, - "name": "CustomAuthError.toJSON" - } - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [547] - }, - { - "title": "Properties", - "kind": 1024, - "children": [550, 551] - }, - { - "title": "Methods", - "kind": 2048, - "children": [552] - } - ], - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 66, - "character": 13 - } - ], - "extendedTypes": [ - { - "type": "reference", - "id": 519, - "name": "CustomAuthError" - } - ] - }, - { - "id": 584, - "name": "AuthRetryableFetchError", - "kind": 128, - "kindString": "Class", - "flags": {}, - "children": [ - { - "id": 585, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 90, - "character": 2 - } - ], - "signatures": [ - { - "id": 586, - "name": "new AuthRetryableFetchError", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 587, - "name": "message", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 588, - "name": "status", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "reference", - "id": 584, - "name": "AuthRetryableFetchError" - }, - "overwrites": { - "type": "reference", - "id": 521, - "name": "CustomAuthError.constructor" - } - } - ], - "overwrites": { - "type": "reference", - "id": 520, - "name": "CustomAuthError.constructor" - } - }, - { - "id": 589, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 43, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "id": 525, - "name": "CustomAuthError.name" - } - }, - { - "id": 590, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 44, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "inheritedFrom": { - "type": "reference", - "id": 526, - "name": "CustomAuthError.status" - } - }, - { - "id": 591, - "name": "toJSON", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 51, - "character": 2 - } - ], - "signatures": [ - { - "id": 592, - "name": "toJSON", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 593, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 595, - "name": "message", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 54, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 594, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 53, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 596, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 55, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "..." - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [595, 594, 596] - } - ] - } - }, - "inheritedFrom": { - "type": "reference", - "id": 528, - "name": "CustomAuthError.toJSON" - } - } - ], - "inheritedFrom": { - "type": "reference", - "id": 527, - "name": "CustomAuthError.toJSON" - } - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [585] - }, - { - "title": "Properties", - "kind": 1024, - "children": [589, 590] - }, - { - "title": "Methods", - "kind": 2048, - "children": [591] - } - ], - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 89, - "character": 13 - } - ], - "extendedTypes": [ - { - "type": "reference", - "id": 519, - "name": "CustomAuthError" - } - ] - }, - { - "id": 534, - "name": "AuthSessionMissingError", - "kind": 128, - "kindString": "Class", - "flags": {}, - "children": [ - { - "id": 535, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 61, - "character": 2 - } - ], - "signatures": [ - { - "id": 536, - "name": "new AuthSessionMissingError", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "type": { - "type": "reference", - "id": 534, - "name": "AuthSessionMissingError" - }, - "overwrites": { - "type": "reference", - "id": 521, - "name": "CustomAuthError.constructor" - } - } - ], - "overwrites": { - "type": "reference", - "id": 520, - "name": "CustomAuthError.constructor" - } - }, - { - "id": 537, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 43, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "id": 525, - "name": "CustomAuthError.name" - } - }, - { - "id": 538, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 44, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "inheritedFrom": { - "type": "reference", - "id": 526, - "name": "CustomAuthError.status" - } - }, - { - "id": 539, - "name": "toJSON", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 51, - "character": 2 - } - ], - "signatures": [ - { - "id": 540, - "name": "toJSON", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 541, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 543, - "name": "message", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 54, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 542, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 53, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 544, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 55, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "..." - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [543, 542, 544] - } - ] - } - }, - "inheritedFrom": { - "type": "reference", - "id": 528, - "name": "CustomAuthError.toJSON" - } - } - ], - "inheritedFrom": { - "type": "reference", - "id": 527, - "name": "CustomAuthError.toJSON" - } - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [535] - }, - { - "title": "Properties", - "kind": 1024, - "children": [537, 538] - }, - { - "title": "Methods", - "kind": 2048, - "children": [539] - } - ], - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 60, - "character": 13 - } - ], - "extendedTypes": [ - { - "type": "reference", - "id": 519, - "name": "CustomAuthError" - } - ] - }, - { - "id": 512, - "name": "AuthUnknownError", - "kind": 128, - "kindString": "Class", - "flags": {}, - "children": [ - { - "id": 513, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 35, - "character": 2 - } - ], - "signatures": [ - { - "id": 514, - "name": "new AuthUnknownError", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 515, - "name": "message", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 516, - "name": "originalError", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "type": { - "type": "reference", - "id": 512, - "name": "AuthUnknownError" - }, - "overwrites": { - "type": "reference", - "id": 496, - "name": "AuthError.constructor" - } - } - ], - "overwrites": { - "type": "reference", - "id": 495, - "name": "AuthError.constructor" - } - }, - { - "id": 517, - "name": "originalError", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 33, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [513] - }, - { - "title": "Properties", - "kind": 1024, - "children": [517] - } - ], - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 32, - "character": 13 - } - ], - "extendedTypes": [ - { - "type": "reference", - "id": 494, - "name": "AuthError" - } - ] - }, - { - "id": 519, - "name": "CustomAuthError", - "kind": 128, - "kindString": "Class", - "flags": {}, - "children": [ - { - "id": 520, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 45, - "character": 2 - } - ], - "signatures": [ - { - "id": 521, - "name": "new CustomAuthError", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 522, - "name": "message", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 523, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 524, - "name": "status", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "reference", - "id": 519, - "name": "CustomAuthError" - }, - "overwrites": { - "type": "reference", - "id": 496, - "name": "AuthError.constructor" - } - } - ], - "overwrites": { - "type": "reference", - "id": 495, - "name": "AuthError.constructor" - } - }, - { - "id": 525, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 43, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "overwrites": { - "type": "reference", - "name": "AuthError.name" - } - }, - { - "id": 526, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 44, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 527, - "name": "toJSON", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 51, - "character": 2 - } - ], - "signatures": [ - { - "id": 528, - "name": "toJSON", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 529, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 531, - "name": "message", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 54, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 530, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 53, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 532, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 55, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "..." - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [531, 530, 532] - } - ] - } - } - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [520] - }, - { - "title": "Properties", - "kind": 1024, - "children": [525, 526] - }, - { - "title": "Methods", - "kind": 2048, - "children": [527] - } - ], - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 42, - "character": 13 - } - ], - "extendedTypes": [ - { - "type": "reference", - "id": 494, - "name": "AuthError" - } - ], - "extendedBy": [ - { - "type": "reference", - "id": 534, - "name": "AuthSessionMissingError" - }, - { - "type": "reference", - "id": 546, - "name": "AuthInvalidCredentialsError" - }, - { - "type": "reference", - "id": 559, - "name": "AuthImplicitGrantRedirectError" - }, - { - "type": "reference", - "id": 584, - "name": "AuthRetryableFetchError" - } - ] - }, { "id": 1, - "name": "GoTrueAdminApi", + "name": "GoTrueApi", "kind": 128, "kindString": "Class", "flags": {}, @@ -23969,15 +3743,15 @@ "flags": {}, "sources": [ { - "fileName": "src/GoTrueAdminApi.ts", - "line": 19, + "fileName": "src/GoTrueApi.ts", + "line": 25, "character": 2 } ], "signatures": [ { "id": 3, - "name": "new GoTrueAdminApi", + "name": "new GoTrueApi", "kind": 16384, "kindString": "Constructor signature", "flags": {}, @@ -23999,6 +3773,27 @@ "children": [ { "id": 11, + "name": "cookieOptions", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 35, + "character": 4 + } + ], + "type": { + "type": "reference", + "id": 557, + "name": "CookieOptions" + } + }, + { + "id": 12, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -24007,53 +3802,42 @@ }, "sources": [ { - "fileName": "src/GoTrueAdminApi.ts", - "line": 28, + "fileName": "src/GoTrueApi.ts", + "line": 36, "character": 4 } ], "type": { "type": "reflection", "declaration": { - "id": 12, + "id": 13, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 13, + "id": 14, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 14, + "id": 15, "name": "input", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "union", - "types": [ - { - "type": "reference", - "qualifiedName": "RequestInfo", - "package": "typescript", - "name": "RequestInfo" - }, - { - "type": "reference", - "qualifiedName": "URL", - "package": "typescript", - "name": "URL" - } - ] + "type": "reference", + "qualifiedName": "RequestInfo", + "package": "typescript", + "name": "RequestInfo" } }, { - "id": 15, + "id": 16, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -24097,8 +3881,8 @@ }, "sources": [ { - "fileName": "src/GoTrueAdminApi.ts", - "line": 25, + "fileName": "src/GoTrueApi.ts", + "line": 32, "character": 4 } ], @@ -24144,8 +3928,8 @@ "flags": {}, "sources": [ { - "fileName": "src/GoTrueAdminApi.ts", - "line": 24, + "fileName": "src/GoTrueApi.ts", + "line": 31, "character": 4 } ], @@ -24159,7 +3943,7 @@ { "title": "Properties", "kind": 1024, - "children": [11, 7, 6] + "children": [11, 12, 7, 6] } ] } @@ -24175,38 +3959,294 @@ ] }, { - "id": 41, + "id": 22, + "name": "cookieOptions", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 22, + "character": 12 + } + ], + "type": { + "type": "reference", + "id": 557, + "name": "CookieOptions" + } + }, + { + "id": 23, + "name": "fetch", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 23, + "character": 12 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 24, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "signatures": [ + { + "id": 25, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 26, + "name": "input", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "qualifiedName": "RequestInfo", + "package": "typescript", + "name": "RequestInfo" + } + }, + { + "id": 27, + "name": "init", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "qualifiedName": "RequestInit", + "package": "typescript", + "name": "RequestInit" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "qualifiedName": "Response", + "package": "typescript", + "name": "Response" + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + } + } + }, + { + "id": 18, + "name": "headers", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 19, + "character": 12 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 19, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "indexSignature": { + "id": 20, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 21, + "name": "key", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + } + } + }, + { + "id": 17, + "name": "url", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 18, + "character": 12 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 28, + "name": "_createRequestHeaders", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 49, + "character": 10 + } + ], + "signatures": [ + { + "id": 29, + "name": "_createRequestHeaders", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Create a temporary object with all configured headers and\nadds the Authorization token to be used on request methods" + }, + "parameters": [ + { + "id": 30, + "name": "jwt", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "A valid, logged-in JWT.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 31, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {} + } + } + } + ] + }, + { + "id": 32, + "name": "cookieName", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 55, + "character": 10 + } + ], + "signatures": [ + { + "id": 33, + "name": "cookieName", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 196, "name": "createUser", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/GoTrueAdminApi.ts", - "line": 126, + "fileName": "src/GoTrueApi.ts", + "line": 659, "character": 8 } ], "signatures": [ { - "id": 42, + "id": 197, "name": "createUser", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Creates a new user.\nThis function should only be called on a server. Never expose your `service_role` key in the browser." + "shortText": "Creates a new user.", + "text": "This function should only be called on a server. Never expose your `service_role` key in the browser.\n" }, "parameters": [ { - "id": 43, + "id": 198, "name": "attributes", "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "The data you want to create the user with.\n" + }, "type": { "type": "reference", - "id": 343, + "id": 539, "name": "AdminUserAttributes" } } @@ -24215,9 +4255,158 @@ "type": "reference", "typeArguments": [ { - "type": "reference", - "id": 280, - "name": "UserResponse" + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 199, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 201, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 662, + "character": 18 + } + ], + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 202, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 662, + "character": 30 + } + ], + "type": { + "type": "reference", + "id": 483, + "name": "ApiError" + } + }, + { + "id": 200, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 662, + "character": 6 + } + ], + "type": { + "type": "literal", + "value": null + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [201, 202, 200] + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 203, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 205, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 662, + "character": 64 + } + ], + "type": { + "type": "reference", + "id": 505, + "name": "User" + } + }, + { + "id": 206, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 662, + "character": 76 + } + ], + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 204, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 662, + "character": 52 + } + ], + "type": { + "type": "reference", + "id": 505, + "name": "User" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [205, 206, 204] + } + ] + } + } + ] } ], "qualifiedName": "Promise", @@ -24228,37 +4417,148 @@ ] }, { - "id": 63, + "id": 173, + "name": "deleteAuthCookie", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 549, + "character": 2 + } + ], + "signatures": [ + { + "id": 174, + "name": "deleteAuthCookie", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Deletes the Auth Cookies and redirects to the" + }, + "parameters": [ + { + "id": 175, + "name": "req", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The request object." + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 176, + "name": "res", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The response object." + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 177, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "Optionally specify a `redirectTo` URL in the options.\n" + }, + "originalName": "__namedParameters", + "type": { + "type": "reflection", + "declaration": { + "id": 178, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 179, + "name": "redirectTo", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 549, + "character": 63 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [179] + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + }, + { + "id": 241, "name": "deleteUser", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/GoTrueAdminApi.ts", - "line": 216, + "fileName": "src/GoTrueApi.ts", + "line": 799, "character": 8 } ], "signatures": [ { - "id": 64, + "id": 242, "name": "deleteUser", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Delete a user. Requires a `service_role` key." + "shortText": "Delete a user. Requires a `service_role` key.", + "text": "This function should only be called on a server. Never expose your `service_role` key in the browser.\n" }, "parameters": [ { - "id": 65, - "name": "id", + "id": 243, + "name": "uid", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The user id you want to remove.\n\nThis function should only be called on a server. Never expose your `service_role` key in the browser.\n" + "shortText": "The user uid you want to remove.\n" }, "type": { "type": "intrinsic", @@ -24270,9 +4570,107 @@ "type": "reference", "typeArguments": [ { - "type": "reference", - "id": 280, - "name": "UserResponse" + "type": "reflection", + "declaration": { + "id": 244, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 246, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 801, + "character": 34 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + }, + { + "id": 247, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 801, + "character": 53 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + }, + { + "id": 245, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 801, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [246, 247, 245] + } + ] + } } ], "qualifiedName": "Promise", @@ -24283,39 +4681,524 @@ ] }, { - "id": 38, + "id": 184, "name": "generateLink", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/GoTrueAdminApi.ts", - "line": 92, + "fileName": "src/GoTrueApi.ts", + "line": 616, "character": 8 } ], "signatures": [ { - "id": 39, + "id": 185, "name": "generateLink", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Generates email links and OTPs to be sent via a custom email provider." + "shortText": "Generates links to be sent via email or other." }, "parameters": [ { - "id": 40, - "name": "params", + "id": 186, + "name": "type", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The link type (\"signup\" or \"magiclink\" or \"recovery\" or \"invite\")." + }, + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "signup" + }, + { + "type": "literal", + "value": "magiclink" + }, + { + "type": "literal", + "value": "recovery" + }, + { + "type": "literal", + "value": "invite" + }, + { + "type": "literal", + "value": "email_change_current" + }, + { + "type": "literal", + "value": "email_change_new" + } + ] + } + }, + { + "id": 187, + "name": "email", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The user's email." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 188, + "name": "options", "kind": 32768, "kindString": "Parameter", "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 189, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 191, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 627, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "object" + } + }, + { + "id": 190, + "name": "password", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 626, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 192, + "name": "redirectTo", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 628, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [191, 190, 192] + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 193, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 194, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 630, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 486, + "name": "Session" + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + }, + { + "id": 195, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 630, + "character": 44 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [194, 195] + } + ] + } + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 180, + "name": "getAuthCookieString", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 568, + "character": 2 + } + ], + "signatures": [ + { + "id": 181, + "name": "getAuthCookieString", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Helper method to generate the Auth Cookie string for you in case you can't use `setAuthCookie`.", + "returns": "The Cookie string that needs to be set as the value for the `Set-Cookie` header.\n" + }, + "parameters": [ + { + "id": 182, + "name": "req", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The request object." + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 183, + "name": "res", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The response object." + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + ] + }, + { + "id": 34, + "name": "getUrlForProvider", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 65, + "character": 2 + } + ], + "signatures": [ + { + "id": 35, + "name": "getUrlForProvider", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Generates the relevant login URL for a third-party provider." + }, + "parameters": [ + { + "id": 36, + "name": "provider", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "One of the providers supported by GoTrue." + }, "type": { "type": "reference", - "id": 458, - "name": "GenerateLinkParams" + "id": 481, + "name": "Provider" + } + }, + { + "id": 37, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 38, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 41, + "name": "queryParams", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 70, + "character": 6 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 42, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "indexSignature": { + "id": 43, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 44, + "name": "key", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + } + } + }, + { + "id": 39, + "name": "redirectTo", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 68, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 40, + "name": "scopes", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 69, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [41, 39, 40] + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 248, + "name": "getUser", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 826, + "character": 8 + } + ], + "signatures": [ + { + "id": 249, + "name": "getUser", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets the current user details.", + "text": "This method is called by the GoTrueClient `update` where\nthe jwt is set to this.currentSession.access_token\nand therefore, acts like getting the currently authenticated user\n" + }, + "parameters": [ + { + "id": 250, + "name": "jwt", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "A valid, logged-in JWT. Typically, the access_token for the currentSession\n" + }, + "type": { + "type": "intrinsic", + "name": "string" } } ], @@ -24323,9 +5206,107 @@ "type": "reference", "typeArguments": [ { - "type": "reference", - "id": 459, - "name": "GenerateLinkResponse" + "type": "reflection", + "declaration": { + "id": 251, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 253, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 828, + "character": 34 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + }, + { + "id": 254, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 828, + "character": 53 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + }, + { + "id": 252, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 828, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [253, 254, 252] + } + ] + } } ], "qualifiedName": "Promise", @@ -24336,21 +5317,211 @@ ] }, { - "id": 56, + "id": 224, + "name": "getUserByCookie", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 714, + "character": 8 + } + ], + "signatures": [ + { + "id": 225, + "name": "getUserByCookie", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Get user by reading the cookie from the request.\nWorks for Next.js & Express (requires cookie-parser middleware)." + }, + "parameters": [ + { + "id": 226, + "name": "req", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 227, + "name": "res", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 228, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 231, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 720, + "character": 4 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + }, + { + "id": 232, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 721, + "character": 4 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + }, + { + "id": 229, + "name": "token", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 718, + "character": 4 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 230, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 719, + "character": 4 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [231, 232, 229, 230] + } + ] + } + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 215, "name": "getUserById", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/GoTrueAdminApi.ts", - "line": 171, + "fileName": "src/GoTrueApi.ts", + "line": 697, "character": 8 } ], "signatures": [ { - "id": 57, + "id": 216, "name": "getUserById", "kind": 4096, "kindString": "Call signature", @@ -24360,7 +5531,7 @@ }, "parameters": [ { - "id": 58, + "id": 217, "name": "uid", "kind": 32768, "kindString": "Parameter", @@ -24378,9 +5549,121 @@ "type": "reference", "typeArguments": [ { - "type": "reference", - "id": 280, - "name": "UserResponse" + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 218, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 219, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 699, + "character": 15 + } + ], + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 220, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 699, + "character": 27 + } + ], + "type": { + "type": "reference", + "id": 483, + "name": "ApiError" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [219, 220] + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 221, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 222, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 699, + "character": 49 + } + ], + "type": { + "type": "reference", + "id": 505, + "name": "User" + } + }, + { + "id": 223, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 699, + "character": 61 + } + ], + "type": { + "type": "literal", + "value": null + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [222, 223] + } + ] + } + } + ] } ], "qualifiedName": "Promise", @@ -24391,21 +5674,21 @@ ] }, { - "id": 31, + "id": 142, "name": "inviteUserByEmail", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/GoTrueAdminApi.ts", - "line": 62, + "fileName": "src/GoTrueApi.ts", + "line": 419, "character": 8 } ], "signatures": [ { - "id": 32, + "id": 143, "name": "inviteUserByEmail", "kind": 4096, "kindString": "Call signature", @@ -24415,7 +5698,7 @@ }, "parameters": [ { - "id": 33, + "id": 144, "name": "email", "kind": 32768, "kindString": "Parameter", @@ -24429,7 +5712,7 @@ } }, { - "id": 34, + "id": 145, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -24437,27 +5720,24 @@ "type": { "type": "reflection", "declaration": { - "id": 35, + "id": 146, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 37, + "id": 148, "name": "data", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "Optional user metadata\n" - }, "sources": [ { - "fileName": "src/GoTrueAdminApi.ts", - "line": 66, + "fileName": "src/GoTrueApi.ts", + "line": 423, "character": 6 } ], @@ -24467,20 +5747,17 @@ } }, { - "id": 36, + "id": 147, "name": "redirectTo", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "A URL or mobile deeplink to send the user to after they are confirmed." - }, "sources": [ { - "fileName": "src/GoTrueAdminApi.ts", - "line": 65, + "fileName": "src/GoTrueApi.ts", + "line": 422, "character": 6 } ], @@ -24494,7 +5771,7 @@ { "title": "Properties", "kind": 1024, - "children": [37, 36] + "children": [148, 147] } ] } @@ -24506,9 +5783,79 @@ "type": "reference", "typeArguments": [ { - "type": "reference", - "id": 280, - "name": "UserResponse" + "type": "reflection", + "declaration": { + "id": 149, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 150, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 425, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + }, + { + "id": 151, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 425, + "character": 34 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [150, 151] + } + ] + } } ], "qualifiedName": "Promise", @@ -24519,21 +5866,21 @@ ] }, { - "id": 44, + "id": 207, "name": "listUsers", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/GoTrueAdminApi.ts", - "line": 147, + "fileName": "src/GoTrueApi.ts", + "line": 679, "character": 8 } ], "signatures": [ { - "id": 45, + "id": 208, "name": "listUsers", "kind": 4096, "kindString": "Call signature", @@ -24551,78 +5898,101 @@ { "type": "reflection", "declaration": { - "id": 46, + "id": 209, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 47, + "id": 210, "name": "data", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { - "fileName": "src/GoTrueAdminApi.ts", - "line": 148, - "character": 6 + "fileName": "src/GoTrueApi.ts", + "line": 679, + "character": 31 } ], "type": { - "type": "reflection", - "declaration": { - "id": 48, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 49, - "name": "users", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueAdminApi.ts", - "line": 148, - "character": 14 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "id": 310, - "name": "User" - } - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [49] - } - ] - } + "type": "literal", + "value": null } }, { - "id": 50, + "id": 211, "name": "error", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { - "fileName": "src/GoTrueAdminApi.ts", - "line": 148, - "character": 31 + "fileName": "src/GoTrueApi.ts", + "line": 679, + "character": 43 + } + ], + "type": { + "type": "reference", + "id": 483, + "name": "ApiError" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [210, 211] + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 212, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 213, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 679, + "character": 65 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "id": 505, + "name": "User" + } + } + }, + { + "id": 214, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 679, + "character": 79 } ], "type": { @@ -24635,95 +6005,7 @@ { "title": "Properties", "kind": 1024, - "children": [47, 50] - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 51, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 52, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueAdminApi.ts", - "line": 148, - "character": 49 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 53, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 54, - "name": "users", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueAdminApi.ts", - "line": 148, - "character": 57 - } - ], - "type": { - "type": "tuple" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [54] - } - ] - } - } - }, - { - "id": 55, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueAdminApi.ts", - "line": 148, - "character": 70 - } - ], - "type": { - "type": "reference", - "id": 494, - "name": "AuthError" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [52, 55] + "children": [213, 214] } ] } @@ -24739,21 +6021,1332 @@ ] }, { - "id": 26, + "id": 163, + "name": "refreshAccessToken", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 479, + "character": 8 + } + ], + "signatures": [ + { + "id": 164, + "name": "refreshAccessToken", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Generates a new JWT." + }, + "parameters": [ + { + "id": 165, + "name": "refreshToken", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "A valid refresh token that was returned on login.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 166, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 167, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 481, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 486, + "name": "Session" + } + ] + } + }, + { + "id": 168, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 481, + "character": 37 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [167, 168] + } + ] + } + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 152, + "name": "resetPasswordForEmail", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 450, + "character": 8 + } + ], + "signatures": [ + { + "id": 153, + "name": "resetPasswordForEmail", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Sends a reset request to an email address." + }, + "parameters": [ + { + "id": 154, + "name": "email", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The email address of the user." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 155, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 156, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 158, + "name": "captchaToken", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 454, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 157, + "name": "redirectTo", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 453, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [158, 157] + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 159, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 160, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 456, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reflection", + "declaration": { + "id": 161, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {} + } + } + ] + } + }, + { + "id": 162, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 456, + "character": 32 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [160, 162] + } + ] + } + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 95, + "name": "sendMagicLinkEmail", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 272, + "character": 8 + } + ], + "signatures": [ + { + "id": 96, + "name": "sendMagicLinkEmail", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Sends a magic login link to an email address." + }, + "parameters": [ + { + "id": 97, + "name": "email", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The email address of the user." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 98, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 99, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 102, + "name": "captchaToken", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 277, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 101, + "name": "redirectTo", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 276, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 100, + "name": "shouldCreateUser", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 275, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [102, 101, 100] + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 103, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 104, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 279, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reflection", + "declaration": { + "id": 105, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {} + } + } + ] + } + }, + { + "id": 106, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 279, + "character": 32 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [104, 106] + } + ] + } + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 107, + "name": "sendMobileOTP", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 310, + "character": 8 + } + ], + "signatures": [ + { + "id": 108, + "name": "sendMobileOTP", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Sends a mobile OTP via SMS. Will register the account if it doesn't already exist" + }, + "parameters": [ + { + "id": 109, + "name": "phone", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The user's phone number WITH international prefix" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 110, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 111, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 113, + "name": "captchaToken", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 314, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 112, + "name": "shouldCreateUser", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 313, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [113, 112] + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 114, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 115, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 316, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reflection", + "declaration": { + "id": 116, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {} + } + } + ] + } + }, + { + "id": 117, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 316, + "character": 32 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [115, 117] + } + ] + } + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 169, + "name": "setAuthCookie", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 503, + "character": 2 + } + ], + "signatures": [ + { + "id": 170, + "name": "setAuthCookie", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Set/delete the auth cookie based on the AuthChangeEvent.\nWorks for Next.js & Express (requires cookie-parser middleware)." + }, + "parameters": [ + { + "id": 171, + "name": "req", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The request object." + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 172, + "name": "res", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The response object.\n" + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 57, + "name": "signInWithEmail", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 139, + "character": 8 + } + ], + "signatures": [ + { + "id": 58, + "name": "signInWithEmail", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Logs in an existing user using their email address." + }, + "parameters": [ + { + "id": 59, + "name": "email", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The email address of the user." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 60, + "name": "password", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The password of the user." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 61, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 62, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 64, + "name": "captchaToken", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 144, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 63, + "name": "redirectTo", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 143, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [64, 63] + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 65, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 66, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 146, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 486, + "name": "Session" + } + ] + } + }, + { + "id": 67, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 146, + "character": 37 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [66, 67] + } + ] + } + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 89, + "name": "signInWithOpenIDConnect", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 241, + "character": 8 + } + ], + "signatures": [ + { + "id": 90, + "name": "signInWithOpenIDConnect", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Logs in an OpenID Connect user using their id_token." + }, + "parameters": [ + { + "id": 91, + "name": "__namedParameters", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "id": 583, + "name": "OpenIDConnectCredentials" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 92, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 93, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 247, + "character": 42 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 486, + "name": "Session" + } + ] + } + }, + { + "id": 94, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 247, + "character": 64 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [93, 94] + } + ] + } + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 79, + "name": "signInWithPhone", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 209, + "character": 8 + } + ], + "signatures": [ + { + "id": 80, + "name": "signInWithPhone", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Logs in an existing user using their phone number and password." + }, + "parameters": [ + { + "id": 81, + "name": "phone", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The phone number of the user." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 82, + "name": "password", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The password of the user." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 83, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 84, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 85, + "name": "captchaToken", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 213, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [85] + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 86, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 87, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 215, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 486, + "name": "Session" + } + ] + } + }, + { + "id": 88, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 215, + "character": 37 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [87, 88] + } + ] + } + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 118, "name": "signOut", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/GoTrueAdminApi.ts", - "line": 39, + "fileName": "src/GoTrueApi.ts", + "line": 340, "character": 8 } ], "signatures": [ { - "id": 27, + "id": 119, "name": "signOut", "kind": 4096, "kindString": "Call signature", @@ -24763,7 +7356,7 @@ }, "parameters": [ { - "id": 28, + "id": 120, "name": "jwt", "kind": 32768, "kindString": "Parameter", @@ -24783,22 +7376,22 @@ { "type": "reflection", "declaration": { - "id": 29, + "id": 121, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 30, + "id": 122, "name": "error", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { - "fileName": "src/GoTrueAdminApi.ts", - "line": 39, + "fileName": "src/GoTrueApi.ts", + "line": 340, "character": 40 } ], @@ -24811,8 +7404,8 @@ }, { "type": "reference", - "id": 494, - "name": "AuthError" + "id": 483, + "name": "ApiError" } ] } @@ -24822,7 +7415,7 @@ { "title": "Properties", "kind": 1024, - "children": [30] + "children": [122] } ] } @@ -24836,21 +7429,632 @@ ] }, { - "id": 59, + "id": 45, + "name": "signUpWithEmail", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 98, + "character": 8 + } + ], + "signatures": [ + { + "id": 46, + "name": "signUpWithEmail", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Creates a new user using their email address.", + "returns": "A logged-in session if the server has \"autoconfirm\" ON" + }, + "parameters": [ + { + "id": 47, + "name": "email", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The email address of the user." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 48, + "name": "password", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The password of the user." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 49, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 50, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 53, + "name": "captchaToken", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 104, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 52, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 103, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "object" + } + }, + { + "id": 51, + "name": "redirectTo", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 102, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [53, 52, 51] + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 54, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 55, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 106, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 486, + "name": "Session" + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + }, + { + "id": 56, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 106, + "character": 44 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [55, 56] + } + ] + } + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 68, + "name": "signUpWithPhone", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 174, + "character": 8 + } + ], + "signatures": [ + { + "id": 69, + "name": "signUpWithPhone", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Signs up a new user using their phone number and a password." + }, + "parameters": [ + { + "id": 70, + "name": "phone", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The phone number of the user." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 71, + "name": "password", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The password of the user." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 72, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 73, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 75, + "name": "captchaToken", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 179, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 74, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 178, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "object" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [75, 74] + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 76, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 77, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 181, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 486, + "name": "Session" + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + }, + { + "id": 78, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 181, + "character": 44 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [77, 78] + } + ] + } + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 255, + "name": "updateUser", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 844, + "character": 8 + } + ], + "signatures": [ + { + "id": 256, + "name": "updateUser", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Updates the user data." + }, + "parameters": [ + { + "id": 257, + "name": "jwt", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "A valid, logged-in JWT." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 258, + "name": "attributes", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The data you want to update.\n" + }, + "type": { + "type": "reference", + "id": 533, + "name": "UserAttributes" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 259, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 261, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 847, + "character": 34 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + }, + { + "id": 262, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 847, + "character": 53 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + }, + { + "id": 260, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 847, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [261, 262, 260] + } + ] + } + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 233, "name": "updateUserById", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/GoTrueAdminApi.ts", - "line": 193, + "fileName": "src/GoTrueApi.ts", + "line": 777, "character": 8 } ], "signatures": [ { - "id": 60, + "id": 234, "name": "updateUserById", "kind": 4096, "kindString": "Call signature", @@ -24860,7 +8064,7 @@ }, "parameters": [ { - "id": 61, + "id": 235, "name": "uid", "kind": 32768, "kindString": "Parameter", @@ -24871,7 +8075,7 @@ } }, { - "id": 62, + "id": 236, "name": "attributes", "kind": 32768, "kindString": "Parameter", @@ -24881,7 +8085,7 @@ }, "type": { "type": "reference", - "id": 343, + "id": 539, "name": "AdminUserAttributes" } } @@ -24890,9 +8094,478 @@ "type": "reference", "typeArguments": [ { + "type": "reflection", + "declaration": { + "id": 237, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 239, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 780, + "character": 34 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + }, + { + "id": 240, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 780, + "character": 53 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + }, + { + "id": 238, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 780, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [239, 240, 238] + } + ] + } + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 123, + "name": "verifyMobileOTP", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 360, + "character": 8 + } + ], + "signatures": [ + { + "id": 124, + "name": "verifyMobileOTP", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "tags": [ + { + "tag": "deprecated", + "text": "Use `verifyOTP` instead!" + } + ] + }, + "parameters": [ + { + "id": 125, + "name": "phone", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The user's phone number WITH international prefix" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 126, + "name": "token", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "token that user was sent to their mobile phone" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 127, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 128, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 129, + "name": "redirectTo", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 364, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [129] + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 130, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 131, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 366, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 486, + "name": "Session" + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + }, + { + "id": 132, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 366, + "character": 44 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [131, 132] + } + ] + } + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 133, + "name": "verifyOTP", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 391, + "character": 8 + } + ], + "signatures": [ + { + "id": 134, + "name": "verifyOTP", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Send User supplied Email / Mobile OTP to be verified" + }, + "parameters": [ + { + "id": 135, + "name": "__namedParameters", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { "type": "reference", - "id": 280, - "name": "UserResponse" + "id": 570, + "name": "VerifyOTPParams" + } + }, + { + "id": 136, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 137, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 138, + "name": "redirectTo", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 394, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [138] + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 139, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 140, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 396, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 486, + "name": "Session" + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + }, + { + "id": 141, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 396, + "character": 44 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [140, 141] + } + ] + } } ], "qualifiedName": "Promise", @@ -24909,29 +8582,37 @@ "kind": 512, "children": [2] }, + { + "title": "Properties", + "kind": 1024, + "children": [22, 23, 18, 17] + }, { "title": "Methods", "kind": 2048, - "children": [41, 63, 38, 56, 31, 44, 26, 59] + "children": [ + 28, 32, 196, 173, 241, 184, 180, 34, 248, 224, 215, 142, 207, 163, 152, 95, 107, + 169, 57, 89, 79, 118, 45, 68, 255, 233, 123, 133 + ] } ], "sources": [ { - "fileName": "src/GoTrueAdminApi.ts", - "line": 12, + "fileName": "src/GoTrueApi.ts", + "line": 17, "character": 21 } ] }, { - "id": 66, + "id": 263, "name": "GoTrueClient", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 67, + "id": 264, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -24939,13 +8620,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 104, + "line": 82, "character": 2 } ], "signatures": [ { - "id": 68, + "id": 265, "name": "new GoTrueClient", "kind": 16384, "kindString": "Constructor signature", @@ -24955,39 +8636,380 @@ }, "parameters": [ { - "id": 69, + "id": 266, "name": "options", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "reference", - "id": 241, - "name": "GoTrueClientOptions" + "type": "reflection", + "declaration": { + "id": 267, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 274, + "name": "autoRefreshToken", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "Set to \"true\" if you want to automatically refresh the token before expiring." + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 86, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 278, + "name": "cookieOptions", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 90, + "character": 4 + } + ], + "type": { + "type": "reference", + "id": 557, + "name": "CookieOptions" + } + }, + { + "id": 273, + "name": "detectSessionInUrl", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "Set to \"true\" if you want to automatically detects OAuth grants in the URL and signs in the user." + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 85, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 279, + "name": "fetch", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 91, + "character": 4 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 280, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "signatures": [ + { + "id": 281, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "A custom fetch implementation.\n" + }, + "parameters": [ + { + "id": 282, + "name": "input", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "qualifiedName": "RequestInfo", + "package": "typescript", + "name": "RequestInfo" + } + }, + { + "id": 283, + "name": "init", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "qualifiedName": "RequestInit", + "package": "typescript", + "name": "RequestInit" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "qualifiedName": "Response", + "package": "typescript", + "name": "Response" + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + } + } + }, + { + "id": 269, + "name": "headers", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "Any additional headers to send to the GoTrue server." + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 84, + "character": 4 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 270, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "indexSignature": { + "id": 271, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 272, + "name": "key", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + } + } + }, + { + "id": 276, + "name": "localStorage", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "Provide your own local storage implementation to use instead of the browser's local storage." + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 88, + "character": 4 + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "qualifiedName": "Storage", + "package": "typescript", + "name": "Storage" + }, + { + "type": "union", + "types": [ + { + "type": "literal", + "value": "getItem" + }, + { + "type": "literal", + "value": "setItem" + }, + { + "type": "literal", + "value": "removeItem" + } + ] + } + ], + "qualifiedName": "Pick", + "package": "typescript", + "name": "Pick" + } + ], + "name": "PromisifyMethods" + } + }, + { + "id": 277, + "name": "multiTab", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "Set to \"false\" if you want to disable multi-tab/window events." + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 89, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 275, + "name": "persistSession", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "Set to \"true\" if you want to automatically save the user session into local storage." + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 87, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 268, + "name": "url", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "The URL of the GoTrue server." + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 83, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [274, 278, 273, 279, 269, 276, 277, 275, 268] + } + ] + } } } ], "type": { "type": "reference", - "id": 66, + "id": 263, "name": "default" } } ] }, { - "id": 70, - "name": "admin", + "id": 284, + "name": "api", "kind": 1024, "kindString": "Property", "flags": {}, "comment": { - "shortText": "Namespace for the GoTrue admin methods.\nThese methods should only be used in a trusted server-side environment." + "shortText": "Namespace for the GoTrue API methods.\nThese can be used for example to get a user from a JWT in a server environment or reset a user's password." }, "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 68, + "line": 52, "character": 2 } ], @@ -24998,28 +9020,307 @@ } }, { - "id": 111, - "name": "getSession", - "kind": 2048, - "kindString": "Method", - "flags": {}, + "id": 287, + "name": "autoRefreshToken", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true + }, "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 407, - "character": 8 + "line": 62, + "character": 12 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 286, + "name": "currentSession", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true + }, + "comment": { + "shortText": "The session object for the currently logged in user or null." + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 60, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 486, + "name": "Session" + } + ] + } + }, + { + "id": 285, + "name": "currentUser", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true + }, + "comment": { + "shortText": "The currently logged in user or null." + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 56, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + }, + { + "id": 289, + "name": "localStorage", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 64, + "character": 12 + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "qualifiedName": "Storage", + "package": "typescript", + "name": "Storage" + }, + { + "type": "union", + "types": [ + { + "type": "literal", + "value": "getItem" + }, + { + "type": "literal", + "value": "setItem" + }, + { + "type": "literal", + "value": "removeItem" + } + ] + } + ], + "qualifiedName": "Pick", + "package": "typescript", + "name": "Pick" + } + ], + "name": "PromisifyMethods" + } + }, + { + "id": 290, + "name": "multiTab", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 65, + "character": 12 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 293, + "name": "networkRetries", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 68, + "character": 12 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "0" + }, + { + "id": 288, + "name": "persistSession", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 63, + "character": 12 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 292, + "name": "refreshTokenTimer", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 67, + "character": 12 + } + ], + "type": { + "type": "reference", + "qualifiedName": "NodeJS.Timeout", + "package": "@types/node", + "name": "Timeout" + } + }, + { + "id": 291, + "name": "stateChangeEmitters", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 66, + "character": 12 + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "id": 549, + "name": "Subscription" + } + ], + "qualifiedName": "Map", + "package": "typescript", + "name": "Map" + }, + "defaultValue": "..." + }, + { + "id": 454, + "name": "_callRefreshToken", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 695, + "character": 16 } ], "signatures": [ { - "id": 112, - "name": "getSession", + "id": 455, + "name": "_callRefreshToken", "kind": 4096, "kindString": "Call signature", "flags": {}, - "comment": { - "shortText": "Returns the session, refreshing it if necessary.\nThe session returned can be null if the session is not detected which can happen in the event a user is not signed-in or has logged out." - }, + "parameters": [ + { + "id": 456, + "name": "refresh_token", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + }, + "defaultValue": "..." + } + ], "type": { "type": "reference", "typeArguments": [ @@ -25029,177 +9330,42 @@ { "type": "reflection", "declaration": { - "id": 113, + "id": 457, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 114, + "id": 458, "name": "data", "kind": 1024, "kindString": "Property", "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 409, - "character": 8 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 115, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 116, - "name": "session", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 410, - "character": 10 - } - ], - "type": { - "type": "reference", - "id": 291, - "name": "Session" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [116] - } - ] - } - } - }, - { - "id": 117, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 412, - "character": 8 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [114, 117] - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 118, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 119, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 415, - "character": 8 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 120, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 121, - "name": "session", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 416, - "character": 10 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [121] - } - ] - } - } - }, - { - "id": 122, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 418, - "character": 8 - } - ], "type": { "type": "reference", - "id": 494, - "name": "AuthError" + "id": 486, + "name": "Session" } + }, + { + "id": 459, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "literal", + "value": null + }, + "defaultValue": "null" } ], "groups": [ { "title": "Properties", "kind": 1024, - "children": [119, 122] + "children": [458, 459] } ] } @@ -25207,87 +9373,43 @@ { "type": "reflection", "declaration": { - "id": 123, + "id": 460, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 124, + "id": 461, "name": "data", "kind": 1024, "kindString": "Property", "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 421, - "character": 8 - } - ], "type": { - "type": "reflection", - "declaration": { - "id": 125, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 126, - "name": "session", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 422, - "character": 10 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [126] - } - ] - } - } + "type": "literal", + "value": null + }, + "defaultValue": "null" }, { - "id": 127, + "id": 462, "name": "error", "kind": 1024, "kindString": "Property", "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 424, - "character": 8 - } - ], "type": { - "type": "literal", - "value": null - } + "type": "reference", + "id": 483, + "name": "ApiError" + }, + "defaultValue": "..." } ], "groups": [ { "title": "Properties", "kind": 1024, - "children": [124, 127] + "children": [461, 462] } ] } @@ -25303,53 +9425,429 @@ ] }, { - "id": 128, - "name": "getUser", + "id": 383, + "name": "_handleEmailSignIn", "kind": 2048, "kindString": "Method", - "flags": {}, + "flags": { + "isPrivate": true + }, "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 470, - "character": 8 + "line": 520, + "character": 16 } ], "signatures": [ { - "id": 129, - "name": "getUser", + "id": 384, + "name": "_handleEmailSignIn", "kind": 4096, "kindString": "Call signature", "flags": {}, - "comment": { - "shortText": "Gets the current user details if there is an existing session." - }, "parameters": [ { - "id": 130, - "name": "jwt", + "id": 385, + "name": "email", "kind": 32768, "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "Takes in an optional access token jwt. If no jwt is provided, getUser() will attempt to get the jwt from the current session.\n" - }, + "flags": {}, "type": { "type": "intrinsic", "name": "string" } + }, + { + "id": 386, + "name": "password", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 387, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 388, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 390, + "name": "captchaToken", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 525, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 389, + "name": "redirectTo", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 524, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [390, 389] + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 391, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 392, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "literal", + "value": null + }, + "defaultValue": "null" + }, + { + "id": 395, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + }, + { + "id": 394, + "name": "session", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "literal", + "value": null + }, + "defaultValue": "null" + }, + { + "id": 393, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "literal", + "value": null + }, + "defaultValue": "null" + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [392, 395, 394, 393] + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 396, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 397, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "reference", + "id": 486, + "name": "Session" + } + }, + { + "id": 400, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "literal", + "value": null + }, + "defaultValue": "null" + }, + { + "id": 399, + "name": "session", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "reference", + "id": 486, + "name": "Session" + }, + "defaultValue": "data" + }, + { + "id": 398, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + }, + "defaultValue": "data.user" + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [397, 400, 399, 398] + } + ] + } + } + ] + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 443, + "name": "_handleOpenIDConnectSignIn", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 595, + "character": 16 + } + ], + "signatures": [ + { + "id": 444, + "name": "_handleOpenIDConnectSignIn", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 445, + "name": "__namedParameters", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "id": 583, + "name": "OpenIDConnectCredentials" + } } ], "type": { "type": "reference", "typeArguments": [ { - "type": "reference", - "id": 280, - "name": "UserResponse" + "type": "reflection", + "declaration": { + "id": 446, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 449, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 604, + "character": 4 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + }, + { + "id": 447, + "name": "session", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 602, + "character": 4 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 486, + "name": "Session" + } + ] + } + }, + { + "id": 448, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 603, + "character": 4 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [449, 447, 448] + } + ] + } } ], "qualifiedName": "Promise", @@ -25360,35 +9858,1147 @@ ] }, { - "id": 92, - "name": "initialize", + "id": 401, + "name": "_handlePhoneSignIn", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 546, + "character": 16 + } + ], + "signatures": [ + { + "id": 402, + "name": "_handlePhoneSignIn", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 403, + "name": "phone", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 404, + "name": "password", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 405, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 406, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 407, + "name": "captchaToken", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 550, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [407] + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 408, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 409, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "literal", + "value": null + }, + "defaultValue": "null" + }, + { + "id": 412, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + }, + { + "id": 411, + "name": "session", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "literal", + "value": null + }, + "defaultValue": "null" + }, + { + "id": 410, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "literal", + "value": null + }, + "defaultValue": "null" + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [409, 412, 411, 410] + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 413, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 414, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "reference", + "id": 486, + "name": "Session" + } + }, + { + "id": 417, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "literal", + "value": null + }, + "defaultValue": "null" + }, + { + "id": 416, + "name": "session", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "reference", + "id": 486, + "name": "Session" + }, + "defaultValue": "data" + }, + { + "id": 415, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + }, + "defaultValue": "data.user" + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [414, 417, 416, 415] + } + ] + } + } + ] + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 418, + "name": "_handleProviderSignIn", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 568, + "character": 10 + } + ], + "signatures": [ + { + "id": 419, + "name": "_handleProviderSignIn", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 420, + "name": "provider", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "id": 481, + "name": "Provider" + } + }, + { + "id": 421, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 422, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 425, + "name": "queryParams", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 573, + "character": 6 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 426, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "indexSignature": { + "id": 427, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 428, + "name": "key", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + } + } + }, + { + "id": 423, + "name": "redirectTo", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 571, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 424, + "name": "scopes", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 572, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [425, 423, 424] + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 429, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 432, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "literal", + "value": null + }, + "defaultValue": "null" + }, + { + "id": 435, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "literal", + "value": null + }, + "defaultValue": "null" + }, + { + "id": 430, + "name": "provider", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "reference", + "id": 481, + "name": "Provider" + } + }, + { + "id": 433, + "name": "session", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "literal", + "value": null + }, + "defaultValue": "null" + }, + { + "id": 431, + "name": "url", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 434, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "literal", + "value": null + }, + "defaultValue": "null" + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [432, 435, 430, 433, 431, 434] + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 436, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 437, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "literal", + "value": null + }, + "defaultValue": "null" + }, + { + "id": 440, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "reference", + "id": 483, + "name": "ApiError" + }, + "defaultValue": "..." + }, + { + "id": 441, + "name": "provider", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "undefined" + } + }, + { + "id": 439, + "name": "session", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "literal", + "value": null + }, + "defaultValue": "null" + }, + { + "id": 442, + "name": "url", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "undefined" + } + }, + { + "id": 438, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "literal", + "value": null + }, + "defaultValue": "null" + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [437, 440, 441, 439, 442, 438] + } + ] + } + } + ] + } + } + ] + }, + { + "id": 479, + "name": "_handleVisibilityChange", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 800, + "character": 10 + } + ], + "signatures": [ + { + "id": 480, + "name": "_handleVisibilityChange", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "literal", + "value": false + } + ] + } + } + ] + }, + { + "id": 477, + "name": "_listenForMultiTabEvents", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 777, + "character": 10 + } + ], + "signatures": [ + { + "id": 478, + "name": "_listenForMultiTabEvents", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Listens for changes to LocalStorage and updates the current session." + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "literal", + "value": false + } + ] + } + } + ] + }, + { + "id": 463, + "name": "_notifyAllSubscribers", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 714, + "character": 10 + } + ], + "signatures": [ + { + "id": 464, + "name": "_notifyAllSubscribers", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 465, + "name": "event", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "id": 482, + "name": "AuthChangeEvent" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 469, + "name": "_persistSession", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 741, + "character": 10 + } + ], + "signatures": [ + { + "id": 470, + "name": "_persistSession", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 471, + "name": "currentSession", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "id": 486, + "name": "Session" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 452, + "name": "_recoverAndRefresh", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 650, + "character": 16 + } + ], + "signatures": [ + { + "id": 453, + "name": "_recoverAndRefresh", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Recovers the session from LocalStorage and refreshes\nNote: this method is async to accommodate for AsyncStorage e.g. in React native." + }, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "literal", + "value": null + } + ] + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 450, + "name": "_recoverSession", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 630, + "character": 10 + } + ], + "signatures": [ + { + "id": 451, + "name": "_recoverSession", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Attempts to get the session from LocalStorage\nNote: this should never be async (even for React Native), as we need it to return immediately in the constructor." + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ] + }, + { + "id": 472, + "name": "_removeSession", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 746, + "character": 16 + } + ], + "signatures": [ + { + "id": 473, + "name": "_removeSession", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 466, + "name": "_saveSession", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 722, + "character": 10 + } + ], + "signatures": [ + { + "id": 467, + "name": "_saveSession", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "set currentSession and currentUser\nprocess to _startAutoRefreshToken if possible" + }, + "parameters": [ + { + "id": 468, + "name": "session", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "id": 486, + "name": "Session" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 474, + "name": "_startAutoRefreshToken", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 757, + "character": 10 + } + ], + "signatures": [ + { + "id": 475, + "name": "_startAutoRefreshToken", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Clear and re-create refresh token timer" + }, + "parameters": [ + { + "id": 476, + "name": "value", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "time intervals in milliseconds\n" + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 361, + "name": "getSessionFromUrl", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 130, - "character": 2 + "line": 428, + "character": 8 } ], "signatures": [ { - "id": 93, - "name": "initialize", + "id": 362, + "name": "getSessionFromUrl", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Initializes the client session either from the url or from storage.\nThis method is automatically called when instantiating the client, but should also be called\nmanually when checking for an error from an auth redirect (oauth, magiclink, password recovery, etc)." + "shortText": "Gets the session data from a URL string" }, + "parameters": [ + { + "id": 363, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 364, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 365, + "name": "storeSession", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "Optionally store the session in the browser\n" + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 429, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [365] + } + ] + } + } + } + ], "type": { "type": "reference", "typeArguments": [ { - "type": "reference", - "id": 481, - "name": "InitializeResult" + "type": "reflection", + "declaration": { + "id": 366, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 367, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 430, + "character": 16 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 486, + "name": "Session" + } + ] + } + }, + { + "id": 368, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 430, + "character": 38 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [367, 368] + } + ] + } } ], "qualifiedName": "Promise", @@ -25399,7 +11009,7 @@ ] }, { - "id": 157, + "id": 373, "name": "onAuthStateChange", "kind": 2048, "kindString": "Method", @@ -25407,60 +11017,58 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 665, + "line": 500, "character": 2 } ], "signatures": [ { - "id": 158, + "id": 374, "name": "onAuthStateChange", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Receive a notification every time an auth event happens." + "shortText": "Receive a notification every time an auth event happens.", + "returns": "A subscription object which can be used to unsubscribe itself.\n" }, "parameters": [ { - "id": 159, + "id": 375, "name": "callback", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "shortText": "A callback function to be invoked when an auth event happens.\n" - }, "type": { "type": "reflection", "declaration": { - "id": 160, + "id": 376, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 161, + "id": 377, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 162, + "id": 378, "name": "event", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 240, + "id": 482, "name": "AuthChangeEvent" } }, { - "id": 163, + "id": 379, "name": "session", "kind": 32768, "kindString": "Parameter", @@ -25474,7 +11082,7 @@ }, { "type": "reference", - "id": 291, + "id": 486, "name": "Session" } ] @@ -25494,14 +11102,14 @@ "type": { "type": "reflection", "declaration": { - "id": 164, + "id": 380, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 165, + "id": 381, "name": "data", "kind": 1024, "kindString": "Property", @@ -25509,47 +11117,51 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 666, + "line": 501, "character": 4 } ], "type": { - "type": "reflection", - "declaration": { - "id": 166, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 167, - "name": "subscription", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 666, - "character": 12 - } - ], - "type": { - "type": "reference", - "id": 352, - "name": "Subscription" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [167] - } - ] + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 549, + "name": "Subscription" + } + ] + } + }, + { + "id": 382, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 502, + "character": 4 } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] } } ], @@ -25557,7 +11169,7 @@ { "title": "Properties", "kind": 1024, - "children": [165] + "children": [381, 382] } ] } @@ -25566,45 +11178,392 @@ ] }, { - "id": 168, - "name": "resetPasswordForEmail", + "id": 339, + "name": "refreshSession", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 688, + "line": 339, "character": 8 } ], "signatures": [ { - "id": 169, - "name": "resetPasswordForEmail", + "id": 340, + "name": "refreshSession", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Sends a password reset request to an email address." + "shortText": "Force refreshes the session including the user data in case it was updated in a different session." + }, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 341, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 342, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 340, + "character": 4 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 486, + "name": "Session" + } + ] + } + }, + { + "id": 344, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 342, + "character": 4 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + }, + { + "id": 343, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 341, + "character": 4 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [342, 344, 343] + } + ] + } + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 337, + "name": "session", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 332, + "character": 2 + } + ], + "signatures": [ + { + "id": 338, + "name": "session", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Returns the session data, if there is an active session." + }, + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 486, + "name": "Session" + } + ] + } + } + ] + }, + { + "id": 358, + "name": "setAuth", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 411, + "character": 2 + } + ], + "signatures": [ + { + "id": 359, + "name": "setAuth", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Overrides the JWT on the current client. The JWT will then be sent in all subsequent network requests." }, "parameters": [ { - "id": 170, - "name": "email", + "id": 360, + "name": "access_token", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The email address of the user." + "shortText": "a jwt access token\n" }, "type": { "type": "intrinsic", "name": "string" } + } + ], + "type": { + "type": "reference", + "id": 486, + "name": "Session" + } + } + ] + }, + { + "id": 352, + "name": "setSession", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 387, + "character": 8 + } + ], + "signatures": [ + { + "id": 353, + "name": "setSession", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Sets the session data from refresh_token and returns current Session and Error" + }, + "parameters": [ + { + "id": 354, + "name": "refresh_token", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "a JWT token\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 355, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 357, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 389, + "character": 40 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + }, + { + "id": 356, + "name": "session", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 389, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 486, + "name": "Session" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [357, 356] + } + ] + } + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 306, + "name": "signIn", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 197, + "character": 8 + } + ], + "signatures": [ + { + "id": 307, + "name": "signIn", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Log in an existing user, or login via a third-party provider." + }, + "parameters": [ + { + "id": 308, + "name": "__namedParameters", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "id": 563, + "name": "UserCredentials" + } }, { - "id": 171, + "id": 309, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -25612,27 +11571,24 @@ "type": { "type": "reflection", "declaration": { - "id": 172, + "id": 310, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 174, + "id": 314, "name": "captchaToken", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "Verification token received when the user completes the captcha on the site.\n" - }, "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 692, + "line": 203, "character": 6 } ], @@ -25642,20 +11598,66 @@ } }, { - "id": 173, + "id": 315, + "name": "queryParams", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 204, + "character": 6 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 316, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "indexSignature": { + "id": 317, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 318, + "name": "key", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + } + } + }, + { + "id": 311, "name": "redirectTo", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "The URL to send the user to after they click the password reset link." - }, "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 691, + "line": 200, "character": 6 } ], @@ -25663,13 +11665,53 @@ "type": "intrinsic", "name": "string" } + }, + { + "id": 313, + "name": "scopes", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 202, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 312, + "name": "shouldCreateUser", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 201, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } } ], "groups": [ { "title": "Properties", "kind": 1024, - "children": [174, 173] + "children": [314, 315, 311, 313, 312] } ] } @@ -25677,391 +11719,20 @@ "defaultValue": "{}" } ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 175, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 176, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 696, - "character": 8 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 177, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {} - } - } - }, - { - "id": 178, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 697, - "character": 8 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [176, 178] - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 179, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 180, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 699, - "character": 8 - } - ], - "type": { - "type": "literal", - "value": null - } - }, - { - "id": 181, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 699, - "character": 20 - } - ], - "type": { - "type": "reference", - "id": 494, - "name": "AuthError" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [180, 181] - } - ] - } - } - ] - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 134, - "name": "setSession", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 534, - "character": 8 - } - ], - "signatures": [ - { - "id": 135, - "name": "setSession", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Sets the session data from refresh token and returns current session or an error if the refresh token is invalid." - }, - "parameters": [ - { - "id": 136, - "name": "refresh_token", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "shortText": "A refresh token returned by supabase auth.\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 254, - "name": "AuthResponse" - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 102, - "name": "signInWithOAuth", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 306, - "character": 8 - } - ], - "signatures": [ - { - "id": 103, - "name": "signInWithOAuth", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Log in an existing user via a third-party provider." - }, - "parameters": [ - { - "id": 104, - "name": "credentials", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "id": 403, - "name": "SignInWithOAuthCredentials" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 267, - "name": "OAuthResponse" - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 105, - "name": "signInWithOtp", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 321, - "character": 8 - } - ], - "signatures": [ - { - "id": 106, - "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." - }, - "parameters": [ - { - "id": 107, - "name": "credentials", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "id": 389, - "name": "SignInWithPasswordlessCredentials" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 254, - "name": "AuthResponse" - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 99, - "name": "signInWithPassword", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 256, - "character": 8 - } - ], - "signatures": [ - { - "id": 100, - "name": "signInWithPassword", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Log in an existing user with an email and password or phone and password." - }, - "parameters": [ - { - "id": 101, - "name": "credentials", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "id": 376, - "name": "SignInWithPasswordCredentials" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 254, - "name": "AuthResponse" - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 153, - "name": "signOut", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 646, - "character": 8 - } - ], - "signatures": [ - { - "id": 154, - "name": "signOut", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Inside a browser context, `signOut()` will remove the logged in user from the browser session\nand log them out - removing all items from localstorage and then trigger a `\"SIGNED_OUT\"` event.", - "text": "For server-side management, you can revoke all refresh tokens for a user by passing a user's JWT through to `auth.api.signOut(JWT: string)`.\nThere is no way to revoke a user's access token jwt until it expires. It is recommended to set a shorter expiry on the jwt for this reason.\n" - }, "type": { "type": "reference", "typeArguments": [ { "type": "reflection", "declaration": { - "id": 155, + "id": 319, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 156, + "id": 324, "name": "error", "kind": 1024, "kindString": "Property", @@ -26069,7 +11740,195 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 646, + "line": 211, + "character": 4 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + }, + { + "id": 322, + "name": "provider", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 209, + "character": 4 + } + ], + "type": { + "type": "reference", + "id": 481, + "name": "Provider" + } + }, + { + "id": 320, + "name": "session", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 207, + "character": 4 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 486, + "name": "Session" + } + ] + } + }, + { + "id": 323, + "name": "url", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 210, + "character": 4 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 321, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 208, + "character": 4 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [324, 322, 320, 323, 321] + } + ] + } + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 369, + "name": "signOut", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 485, + "character": 8 + } + ], + "signatures": [ + { + "id": 370, + "name": "signOut", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Inside a browser context, `signOut()` will remove the logged in user from the browser session\nand log them out - removing all items from localstorage and then trigger a \"SIGNED_OUT\" event.", + "text": "For server-side management, you can revoke all refresh tokens for a user by passing a user's JWT through to `auth.api.signOut(JWT: string)`. There is no way to revoke a user's session JWT before it automatically expires\n" + }, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 371, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 372, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 485, "character": 29 } ], @@ -26082,8 +11941,8 @@ }, { "type": "reference", - "id": 494, - "name": "AuthError" + "id": 483, + "name": "ApiError" } ] } @@ -26093,7 +11952,7 @@ { "title": "Properties", "kind": 1024, - "children": [156] + "children": [372] } ] } @@ -26107,7 +11966,7 @@ ] }, { - "id": 96, + "id": 294, "name": "signUp", "kind": 2048, "kindString": "Method", @@ -26115,42 +11974,226 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 193, + "line": 130, "character": 8 } ], "signatures": [ { - "id": 97, + "id": 295, "name": "signUp", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Creates a new user.", - "returns": "A logged-in session if the server has \"autoconfirm\" ON" + "shortText": "Creates a new user." }, "parameters": [ { - "id": 98, - "name": "credentials", + "id": 296, + "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 360, - "name": "SignUpWithPasswordCredentials" + "id": 563, + "name": "UserCredentials" } + }, + { + "id": 297, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 298, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 301, + "name": "captchaToken", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 135, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 300, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 134, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "object" + } + }, + { + "id": 299, + "name": "redirectTo", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 133, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [301, 300, 299] + } + ] + } + }, + "defaultValue": "{}" } ], "type": { "type": "reference", "typeArguments": [ { - "type": "reference", - "id": 254, - "name": "AuthResponse" + "type": "reflection", + "declaration": { + "id": 302, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 305, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 140, + "character": 4 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + }, + { + "id": 304, + "name": "session", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 139, + "character": 4 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 486, + "name": "Session" + } + ] + } + }, + { + "id": 303, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 138, + "character": 4 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [305, 304, 303] + } + ] + } } ], "qualifiedName": "Promise", @@ -26161,22 +12204,22 @@ ] }, { - "id": 131, - "name": "updateUser", + "id": 345, + "name": "update", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 499, + "line": 360, "character": 8 } ], "signatures": [ { - "id": 132, - "name": "updateUser", + "id": 346, + "name": "update", "kind": 4096, "kindString": "Call signature", "flags": {}, @@ -26185,14 +12228,14 @@ }, "parameters": [ { - "id": 133, + "id": 347, "name": "attributes", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 338, + "id": 533, "name": "UserAttributes" } } @@ -26201,9 +12244,107 @@ "type": "reference", "typeArguments": [ { - "type": "reference", - "id": 280, - "name": "UserResponse" + "type": "reflection", + "declaration": { + "id": 348, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 349, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 362, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + }, + { + "id": 351, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 362, + "character": 53 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + }, + { + "id": 350, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 362, + "character": 34 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [349, 351, 350] + } + ] + } } ], "qualifiedName": "Promise", @@ -26214,22 +12355,63 @@ ] }, { - "id": 108, - "name": "verifyOtp", + "id": 335, + "name": "user", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 363, + "line": 325, + "character": 2 + } + ], + "signatures": [ + { + "id": 336, + "name": "user", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Inside a browser context, `user()` will return the user data, if there is a logged in user.", + "text": "For server-side management, you can get a user through `auth.api.getUserByCookie()`\n" + }, + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + } + ] + }, + { + "id": 325, + "name": "verifyOTP", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 277, "character": 8 } ], "signatures": [ { - "id": 109, - "name": "verifyOtp", + "id": 326, + "name": "verifyOTP", "kind": 4096, "kindString": "Call signature", "flags": {}, @@ -26238,25 +12420,170 @@ }, "parameters": [ { - "id": 110, + "id": 327, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 414, - "name": "VerifyOtpParams" + "id": 570, + "name": "VerifyOTPParams" } + }, + { + "id": 328, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 329, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 330, + "name": "redirectTo", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 280, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [330] + } + ] + } + }, + "defaultValue": "{}" } ], "type": { "type": "reference", "typeArguments": [ { - "type": "reference", - "id": 254, - "name": "AuthResponse" + "type": "reflection", + "declaration": { + "id": 331, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 334, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 285, + "character": 4 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + }, + { + "id": 333, + "name": "session", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 284, + "character": 4 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 486, + "name": "Session" + } + ] + } + }, + { + "id": 332, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 283, + "character": 4 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [334, 333, 332] + } + ] + } } ], "qualifiedName": "Promise", @@ -26271,36 +12598,39 @@ { "title": "Constructors", "kind": 512, - "children": [67] + "children": [264] }, { "title": "Properties", "kind": 1024, - "children": [70] + "children": [284, 287, 286, 285, 289, 290, 293, 288, 292, 291] }, { "title": "Methods", "kind": 2048, - "children": [111, 128, 92, 157, 168, 134, 102, 105, 99, 153, 96, 131, 108] + "children": [ + 454, 383, 443, 401, 418, 479, 477, 463, 469, 452, 450, 472, 466, 474, 361, 373, 339, + 337, 358, 352, 306, 369, 294, 345, 335, 325 + ] } ], "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 63, + "line": 47, "character": 21 } ] }, { - "id": 343, + "id": 539, "name": "AdminUserAttributes", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 345, + "id": 541, "name": "app_metadata", "kind": 1024, "kindString": "Property", @@ -26308,13 +12638,13 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's application specific metadata. This maps to the `auth.users.app_metadata` column.", - "text": "Only a service role can modify.\n\nThe `app_metadata` should be a JSON object that includes app-specific info, such as identity providers, roles, and other\naccess control information.\n" + "shortText": "A custom data object for app_metadata that.", + "text": "Only a service role can modify.\n\nCan be any JSON that includes app-specific info, such as identity providers, roles, and other\naccess control information.\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 205, + "line": 137, "character": 2 } ], @@ -26324,7 +12654,7 @@ } }, { - "id": 351, + "id": 548, "name": "data", "kind": 1024, "kindString": "Property", @@ -26332,13 +12662,12 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", - "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n\n" + "shortText": "A custom data object for user_metadata that a user can modify. Can be any JSON." }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 180, + "line": 112, "character": 2 } ], @@ -26348,12 +12677,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 342, + "id": 538, "name": "UserAttributes.data" } }, { - "id": 348, + "id": 544, "name": "email", "kind": 1024, "kindString": "Property", @@ -26366,7 +12695,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 162, + "line": 92, "character": 2 } ], @@ -26376,12 +12705,40 @@ }, "inheritedFrom": { "type": "reference", - "id": 339, + "id": 534, "name": "UserAttributes.email" } }, { - "id": 346, + "id": 547, + "name": "email_change_token", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "An email change token." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 107, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "id": 537, + "name": "UserAttributes.email_change_token" + } + }, + { + "id": 542, "name": "email_confirm", "kind": 1024, "kindString": "Property", @@ -26389,13 +12746,13 @@ "isOptional": true }, "comment": { - "shortText": "Confirms the user's email address if set to true.", + "shortText": "Sets if a user has confirmed their email address.", "text": "Only a service role can modify.\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 212, + "line": 144, "character": 2 } ], @@ -26405,7 +12762,7 @@ } }, { - "id": 350, + "id": 546, "name": "password", "kind": 1024, "kindString": "Property", @@ -26418,7 +12775,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 172, + "line": 102, "character": 2 } ], @@ -26428,12 +12785,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 341, + "id": 536, "name": "UserAttributes.password" } }, { - "id": 349, + "id": 545, "name": "phone", "kind": 1024, "kindString": "Property", @@ -26446,7 +12803,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 167, + "line": 97, "character": 2 } ], @@ -26456,12 +12813,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 340, + "id": 535, "name": "UserAttributes.phone" } }, { - "id": 347, + "id": 543, "name": "phone_confirm", "kind": 1024, "kindString": "Property", @@ -26469,13 +12826,13 @@ "isOptional": true }, "comment": { - "shortText": "Confirms the user's phone number if set to true.", + "shortText": "Sets if a user has confirmed their phone number.", "text": "Only a service role can modify.\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 219, + "line": 151, "character": 2 } ], @@ -26485,7 +12842,7 @@ } }, { - "id": 344, + "id": 540, "name": "user_metadata", "kind": 1024, "kindString": "Property", @@ -26493,13 +12850,13 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", - "text": "Only a service role can modify.\n\nThe `user_metadata` should be a JSON object that includes user-specific info, such as their first and last name.\n\nNote: When using the GoTrueAdminApi and wanting to modify a user's metadata,\nthis attribute is used instead of UserAttributes data.\n\n" + "shortText": "A custom data object for user_metadata.", + "text": "Can be any JSON.\n\nOnly a service role can modify.\n\nNote: When using the GoTrueAdminApi and wanting to modify a user's user_metadata,\nthis attribute is used instead of UserAttributes data.\n\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 195, + "line": 127, "character": 2 } ], @@ -26513,70 +12870,182 @@ { "title": "Properties", "kind": 1024, - "children": [345, 351, 348, 346, 350, 349, 347, 344] + "children": [541, 548, 544, 547, 542, 546, 545, 543, 540] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 183, + "line": 115, "character": 17 } ], "extendedTypes": [ { "type": "reference", - "id": 338, + "id": 533, "name": "UserAttributes" } ] }, { - "id": 455, - "name": "GenerateLinkOptions", + "id": 483, + "name": "ApiError", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 456, - "name": "data", + "id": 484, + "name": "message", "kind": 1024, "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", - "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n" - }, + "flags": {}, "sources": [ { "fileName": "src/lib/types.ts", - "line": 402, + "line": 28, "character": 2 } ], "type": { "type": "intrinsic", - "name": "object" + "name": "string" } }, { - "id": 457, - "name": "redirectTo", + "id": 485, + "name": "status", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 29, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [484, 485] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 27, + "character": 17 + } + ] + }, + { + "id": 557, + "name": "CookieOptions", + "kind": 256, + "kindString": "Interface", + "flags": {}, + "children": [ + { + "id": 560, + "name": "domain", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "The URL which will be appended to the email link generated." + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 175, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 559, + "name": "lifetime", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 404, + "line": 173, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 558, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 171, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 561, + "name": "path", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 176, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 562, + "name": "sameSite", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 178, "character": 2 } ], @@ -26590,37 +13059,36 @@ { "title": "Properties", "kind": 1024, - "children": [456, 457] + "children": [560, 559, 558, 561, 562] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 396, + "line": 169, "character": 17 } ] }, { - "id": 291, - "name": "Session", + "id": 583, + "name": "OpenIDConnectCredentials", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 293, - "name": "access_token", + "id": 587, + "name": "client_id", "kind": 1024, "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The access token jwt. It is recommended to set the JWT_EXPIRY to a shorter expiry value." + "flags": { + "isOptional": true }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 101, + "line": 211, "character": 2 } ], @@ -26630,7 +13098,125 @@ } }, { - "id": 296, + "id": 584, + "name": "id_token", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 208, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 588, + "name": "issuer", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 212, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 585, + "name": "nonce", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 209, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 586, + "name": "provider", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 210, + "character": 2 + } + ], + "type": { + "type": "reference", + "id": 481, + "name": "Provider" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [587, 584, 588, 585, 586] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 207, + "character": 17 + } + ] + }, + { + "id": 486, + "name": "Session", + "kind": 256, + "kindString": "Interface", + "flags": {}, + "children": [ + { + "id": 488, + "name": "access_token", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 34, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 490, "name": "expires_at", "kind": 1024, "kindString": "Property", @@ -26643,7 +13229,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 113, + "line": 42, "character": 2 } ], @@ -26653,18 +13239,20 @@ } }, { - "id": 295, + "id": 489, "name": "expires_in", "kind": 1024, "kindString": "Property", - "flags": {}, + "flags": { + "isOptional": true + }, "comment": { "shortText": "The number of seconds until the token expires (since it was issued). Returned when a login is confirmed." }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 109, + "line": 38, "character": 2 } ], @@ -26674,7 +13262,7 @@ } }, { - "id": 292, + "id": 487, "name": "provider_token", "kind": 1024, "kindString": "Property", @@ -26684,7 +13272,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 97, + "line": 33, "character": 2 } ], @@ -26703,18 +13291,17 @@ } }, { - "id": 294, + "id": 491, "name": "refresh_token", "kind": 1024, "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "A one-time used refresh token that never expires." + "flags": { + "isOptional": true }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 105, + "line": 43, "character": 2 } ], @@ -26724,7 +13311,7 @@ } }, { - "id": 297, + "id": 492, "name": "token_type", "kind": 1024, "kindString": "Property", @@ -26732,7 +13319,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 114, + "line": 44, "character": 2 } ], @@ -26742,7 +13329,7 @@ } }, { - "id": 298, + "id": 493, "name": "user", "kind": 1024, "kindString": "Property", @@ -26750,14 +13337,23 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 115, + "line": 45, "character": 2 } ], "type": { - "type": "reference", - "id": 310, - "name": "User" + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] } } ], @@ -26765,26 +13361,26 @@ { "title": "Properties", "kind": 1024, - "children": [293, 296, 295, 292, 294, 297, 298] + "children": [488, 490, 489, 487, 491, 492, 493] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 96, + "line": 32, "character": 17 } ] }, { - "id": 352, + "id": 549, "name": "Subscription", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 353, + "id": 550, "name": "id", "kind": 1024, "kindString": "Property", @@ -26795,7 +13391,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 226, + "line": 158, "character": 2 } ], @@ -26805,7 +13401,7 @@ } }, { - "id": 354, + "id": 551, "name": "callback", "kind": 2048, "kindString": "Method", @@ -26813,13 +13409,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 230, + "line": 162, "character": 2 } ], "signatures": [ { - "id": 355, + "id": 552, "name": "callback", "kind": 4096, "kindString": "Call signature", @@ -26829,19 +13425,19 @@ }, "parameters": [ { - "id": 356, + "id": 553, "name": "event", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 240, + "id": 482, "name": "AuthChangeEvent" } }, { - "id": 357, + "id": 554, "name": "session", "kind": 32768, "kindString": "Parameter", @@ -26855,7 +13451,7 @@ }, { "type": "reference", - "id": 291, + "id": 486, "name": "Session" } ] @@ -26870,7 +13466,7 @@ ] }, { - "id": 358, + "id": 555, "name": "unsubscribe", "kind": 2048, "kindString": "Method", @@ -26878,13 +13474,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 234, + "line": 166, "character": 2 } ], "signatures": [ { - "id": 359, + "id": 556, "name": "unsubscribe", "kind": 4096, "kindString": "Call signature", @@ -26904,31 +13500,31 @@ { "title": "Properties", "kind": 1024, - "children": [353] + "children": [550] }, { "title": "Methods", "kind": 2048, - "children": [354, 358] + "children": [551, 555] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 222, + "line": 154, "character": 17 } ] }, { - "id": 310, + "id": 505, "name": "User", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 327, + "id": 522, "name": "action_link", "kind": 1024, "kindString": "Property", @@ -26938,7 +13534,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 145, + "line": 75, "character": 2 } ], @@ -26948,7 +13544,7 @@ } }, { - "id": 312, + "id": 507, "name": "app_metadata", "kind": 1024, "kindString": "Property", @@ -26956,21 +13552,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 132, + "line": 62, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 313, + "id": 508, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 314, + "id": 509, "name": "provider", "kind": 1024, "kindString": "Property", @@ -26980,7 +13576,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 133, + "line": 63, "character": 4 } ], @@ -26994,18 +13590,18 @@ { "title": "Properties", "kind": 1024, - "children": [314] + "children": [509] } ], "indexSignature": { - "id": 315, + "id": 510, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 316, + "id": 511, "name": "key", "kind": 32768, "flags": {}, @@ -27024,7 +13620,7 @@ } }, { - "id": 321, + "id": 516, "name": "aud", "kind": 1024, "kindString": "Property", @@ -27032,7 +13628,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 139, + "line": 69, "character": 2 } ], @@ -27042,7 +13638,7 @@ } }, { - "id": 322, + "id": 517, "name": "confirmation_sent_at", "kind": 1024, "kindString": "Property", @@ -27052,7 +13648,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 140, + "line": 70, "character": 2 } ], @@ -27062,7 +13658,7 @@ } }, { - "id": 331, + "id": 526, "name": "confirmed_at", "kind": 1024, "kindString": "Property", @@ -27072,7 +13668,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 149, + "line": 79, "character": 2 } ], @@ -27082,7 +13678,7 @@ } }, { - "id": 330, + "id": 525, "name": "created_at", "kind": 1024, "kindString": "Property", @@ -27090,7 +13686,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 148, + "line": 78, "character": 2 } ], @@ -27100,7 +13696,7 @@ } }, { - "id": 328, + "id": 523, "name": "email", "kind": 1024, "kindString": "Property", @@ -27110,7 +13706,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 146, + "line": 76, "character": 2 } ], @@ -27120,7 +13716,7 @@ } }, { - "id": 324, + "id": 519, "name": "email_change_sent_at", "kind": 1024, "kindString": "Property", @@ -27130,7 +13726,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 142, + "line": 72, "character": 2 } ], @@ -27140,7 +13736,7 @@ } }, { - "id": 332, + "id": 527, "name": "email_confirmed_at", "kind": 1024, "kindString": "Property", @@ -27150,7 +13746,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 150, + "line": 80, "character": 2 } ], @@ -27160,7 +13756,7 @@ } }, { - "id": 311, + "id": 506, "name": "id", "kind": 1024, "kindString": "Property", @@ -27168,7 +13764,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 131, + "line": 61, "character": 2 } ], @@ -27178,7 +13774,7 @@ } }, { - "id": 337, + "id": 532, "name": "identities", "kind": 1024, "kindString": "Property", @@ -27188,7 +13784,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 155, + "line": 85, "character": 2 } ], @@ -27196,13 +13792,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 299, + "id": 494, "name": "UserIdentity" } } }, { - "id": 326, + "id": 521, "name": "invited_at", "kind": 1024, "kindString": "Property", @@ -27212,7 +13808,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 144, + "line": 74, "character": 2 } ], @@ -27222,7 +13818,7 @@ } }, { - "id": 334, + "id": 529, "name": "last_sign_in_at", "kind": 1024, "kindString": "Property", @@ -27232,7 +13828,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 152, + "line": 82, "character": 2 } ], @@ -27242,7 +13838,7 @@ } }, { - "id": 325, + "id": 520, "name": "new_email", "kind": 1024, "kindString": "Property", @@ -27252,7 +13848,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 143, + "line": 73, "character": 2 } ], @@ -27262,7 +13858,7 @@ } }, { - "id": 329, + "id": 524, "name": "phone", "kind": 1024, "kindString": "Property", @@ -27272,7 +13868,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 147, + "line": 77, "character": 2 } ], @@ -27282,7 +13878,7 @@ } }, { - "id": 333, + "id": 528, "name": "phone_confirmed_at", "kind": 1024, "kindString": "Property", @@ -27292,7 +13888,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 151, + "line": 81, "character": 2 } ], @@ -27302,7 +13898,7 @@ } }, { - "id": 323, + "id": 518, "name": "recovery_sent_at", "kind": 1024, "kindString": "Property", @@ -27312,7 +13908,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 141, + "line": 71, "character": 2 } ], @@ -27322,7 +13918,7 @@ } }, { - "id": 335, + "id": 530, "name": "role", "kind": 1024, "kindString": "Property", @@ -27332,7 +13928,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 153, + "line": 83, "character": 2 } ], @@ -27342,7 +13938,7 @@ } }, { - "id": 336, + "id": 531, "name": "updated_at", "kind": 1024, "kindString": "Property", @@ -27352,7 +13948,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 154, + "line": 84, "character": 2 } ], @@ -27362,7 +13958,7 @@ } }, { - "id": 317, + "id": 512, "name": "user_metadata", "kind": 1024, "kindString": "Property", @@ -27370,27 +13966,27 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 136, + "line": 66, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 318, + "id": 513, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 319, + "id": 514, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 320, + "id": 515, "name": "key", "kind": 32768, "flags": {}, @@ -27414,28 +14010,28 @@ "title": "Properties", "kind": 1024, "children": [ - 327, 312, 321, 322, 331, 330, 328, 324, 332, 311, 337, 326, 334, 325, 329, 333, 323, - 335, 336, 317 + 522, 507, 516, 517, 526, 525, 523, 519, 527, 506, 532, 521, 529, 520, 524, 528, 518, + 530, 531, 512 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 130, + "line": 60, "character": 17 } ] }, { - "id": 338, + "id": 533, "name": "UserAttributes", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 342, + "id": 538, "name": "data", "kind": 1024, "kindString": "Property", @@ -27443,13 +14039,12 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", - "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n\n" + "shortText": "A custom data object for user_metadata that a user can modify. Can be any JSON." }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 180, + "line": 112, "character": 2 } ], @@ -27459,7 +14054,7 @@ } }, { - "id": 339, + "id": 534, "name": "email", "kind": 1024, "kindString": "Property", @@ -27472,7 +14067,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 162, + "line": 92, "character": 2 } ], @@ -27482,7 +14077,30 @@ } }, { - "id": 341, + "id": 537, + "name": "email_change_token", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "An email change token." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 107, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 536, "name": "password", "kind": 1024, "kindString": "Property", @@ -27495,7 +14113,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 172, + "line": 102, "character": 2 } ], @@ -27505,7 +14123,7 @@ } }, { - "id": 340, + "id": 535, "name": "phone", "kind": 1024, "kindString": "Property", @@ -27518,7 +14136,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 167, + "line": 97, "character": 2 } ], @@ -27532,33 +14150,178 @@ { "title": "Properties", "kind": 1024, - "children": [342, 339, 341, 340] + "children": [538, 534, 537, 536, 535] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 158, + "line": 88, "character": 17 } ], "extendedBy": [ { "type": "reference", - "id": 343, + "id": 539, "name": "AdminUserAttributes" } ] }, { - "id": 299, + "id": 563, + "name": "UserCredentials", + "kind": 256, + "kindString": "Interface", + "flags": {}, + "children": [ + { + "id": 564, + "name": "email", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 182, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 569, + "name": "oidc", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 188, + "character": 2 + } + ], + "type": { + "type": "reference", + "id": 583, + "name": "OpenIDConnectCredentials" + } + }, + { + "id": 566, + "name": "password", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 184, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 565, + "name": "phone", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 183, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 568, + "name": "provider", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 187, + "character": 2 + } + ], + "type": { + "type": "reference", + "id": 481, + "name": "Provider" + } + }, + { + "id": 567, + "name": "refreshToken", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 185, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [564, 569, 566, 565, 568, 567] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 181, + "character": 17 + } + ] + }, + { + "id": 494, "name": "UserIdentity", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 307, + "id": 502, "name": "created_at", "kind": 1024, "kindString": "Property", @@ -27566,7 +14329,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 125, + "line": 55, "character": 2 } ], @@ -27576,7 +14339,7 @@ } }, { - "id": 300, + "id": 495, "name": "id", "kind": 1024, "kindString": "Property", @@ -27584,7 +14347,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 119, + "line": 49, "character": 2 } ], @@ -27594,7 +14357,7 @@ } }, { - "id": 302, + "id": 497, "name": "identity_data", "kind": 1024, "kindString": "Property", @@ -27602,27 +14365,27 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 121, + "line": 51, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 303, + "id": 498, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 304, + "id": 499, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 305, + "id": 500, "name": "key", "kind": 32768, "flags": {}, @@ -27641,7 +14404,7 @@ } }, { - "id": 308, + "id": 503, "name": "last_sign_in_at", "kind": 1024, "kindString": "Property", @@ -27649,7 +14412,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 126, + "line": 56, "character": 2 } ], @@ -27659,7 +14422,7 @@ } }, { - "id": 306, + "id": 501, "name": "provider", "kind": 1024, "kindString": "Property", @@ -27667,7 +14430,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 124, + "line": 54, "character": 2 } ], @@ -27677,7 +14440,7 @@ } }, { - "id": 309, + "id": 504, "name": "updated_at", "kind": 1024, "kindString": "Property", @@ -27687,7 +14450,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 127, + "line": 57, "character": 2 } ], @@ -27697,7 +14460,7 @@ } }, { - "id": 301, + "id": 496, "name": "user_id", "kind": 1024, "kindString": "Property", @@ -27705,7 +14468,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 120, + "line": 50, "character": 2 } ], @@ -27719,37 +14482,34 @@ { "title": "Properties", "kind": 1024, - "children": [307, 300, 302, 308, 306, 309, 301] + "children": [502, 495, 497, 503, 501, 504, 496] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 118, + "line": 48, "character": 17 } ] }, { - "id": 423, - "name": "VerifyEmailOtpParams", + "id": 576, + "name": "VerifyEmailOTPParams", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 424, + "id": 577, "name": "email", "kind": 1024, "kindString": "Property", "flags": {}, - "comment": { - "shortText": "The user's email address." - }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 348, + "line": 199, "character": 2 } ], @@ -27759,8 +14519,8 @@ } }, { - "id": 427, - "name": "options", + "id": 578, + "name": "phone", "kind": 1024, "kindString": "Property", "flags": { @@ -27769,89 +14529,25 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 353, + "line": 200, "character": 2 } ], "type": { - "type": "reflection", - "declaration": { - "id": 428, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 430, - "name": "captchaToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "Verification token received when the user completes the captcha on the site." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 357, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 429, - "name": "redirectTo", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "A URL to send the user to after they are confirmed." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 355, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [430, 429] - } - ] - } + "type": "intrinsic", + "name": "undefined" } }, { - "id": 425, + "id": 579, "name": "token", "kind": 1024, "kindString": "Property", "flags": {}, - "comment": { - "shortText": "The otp sent to the user's email address." - }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 350, + "line": 201, "character": 2 } ], @@ -27861,25 +14557,22 @@ } }, { - "id": 426, + "id": 580, "name": "type", "kind": 1024, "kindString": "Property", "flags": {}, - "comment": { - "shortText": "The user's verification type." - }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 352, + "line": 202, "character": 2 } ], "type": { "type": "reference", - "id": 432, - "name": "EmailOtpType" + "id": 582, + "name": "EmailOTPType" } } ], @@ -27887,27 +14580,27 @@ { "title": "Properties", "kind": 1024, - "children": [424, 427, 425, 426] + "children": [577, 578, 579, 580] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 346, + "line": 198, "character": 17 } ] }, { - "id": 415, - "name": "VerifyMobileOtpParams", + "id": 571, + "name": "VerifyMobileOTPParams", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 419, - "name": "options", + "id": 572, + "name": "email", "kind": 1024, "kindString": "Property", "flags": { @@ -27916,89 +14609,25 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 339, + "line": 193, "character": 2 } ], "type": { - "type": "reflection", - "declaration": { - "id": 420, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 422, - "name": "captchaToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "Verification token received when the user completes the captcha on the site." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 343, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 421, - "name": "redirectTo", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "A URL to send the user to after they are confirmed." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 341, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [422, 421] - } - ] - } + "type": "intrinsic", + "name": "undefined" } }, { - "id": 416, + "id": 573, "name": "phone", "kind": 1024, "kindString": "Property", "flags": {}, - "comment": { - "shortText": "The user's phone number." - }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 334, + "line": 194, "character": 2 } ], @@ -28008,18 +14637,15 @@ } }, { - "id": 417, + "id": 574, "name": "token", "kind": 1024, "kindString": "Property", "flags": {}, - "comment": { - "shortText": "The otp sent to the user's phone number." - }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 336, + "line": 195, "character": 2 } ], @@ -28029,25 +14655,24 @@ } }, { - "id": 418, + "id": 575, "name": "type", "kind": 1024, "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The user's verification type." + "flags": { + "isOptional": true }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 338, + "line": 196, "character": 2 } ], "type": { "type": "reference", - "id": 431, - "name": "MobileOtpType" + "id": 581, + "name": "MobileOTPType" } } ], @@ -28055,19 +14680,19 @@ { "title": "Properties", "kind": 1024, - "children": [419, 416, 417, 418] + "children": [572, 573, 574, 575] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 332, + "line": 192, "character": 17 } ] }, { - "id": 240, + "id": 482, "name": "AuthChangeEvent", "kind": 4194304, "kindString": "Type alias", @@ -28075,7 +14700,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 23, + "line": 19, "character": 12 } ], @@ -28110,440 +14735,15 @@ } }, { - "id": 254, - "name": "AuthResponse", + "id": 582, + "name": "EmailOTPType", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/lib/types.ts", - "line": 50, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 255, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 256, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 52, - "character": 6 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 257, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 259, - "name": "session", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 54, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 291, - "name": "Session" - }, - { - "type": "literal", - "value": null - } - ] - } - }, - { - "id": 258, - "name": "user", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 53, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 310, - "name": "User" - }, - { - "type": "literal", - "value": null - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [259, 258] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 52, - "character": 12 - } - ] - } - } - }, - { - "id": 260, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 56, - "character": 6 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [256, 260] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 51, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 261, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 262, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 59, - "character": 6 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 263, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 265, - "name": "session", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 61, - "character": 8 - } - ], - "type": { - "type": "literal", - "value": null - } - }, - { - "id": 264, - "name": "user", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 60, - "character": 8 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [265, 264] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 59, - "character": 12 - } - ] - } - } - }, - { - "id": 266, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 63, - "character": 6 - } - ], - "type": { - "type": "reference", - "id": 494, - "name": "AuthError" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [262, 266] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 58, - "character": 4 - } - ] - } - } - ] - } - }, - { - "id": 484, - "name": "CallRefreshTokenResult", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 472, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 485, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 487, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 475, - "character": 6 - } - ], - "type": { - "type": "literal", - "value": null - } - }, - { - "id": 486, - "name": "session", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 474, - "character": 6 - } - ], - "type": { - "type": "reference", - "id": 291, - "name": "Session" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [487, 486] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 473, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 488, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 490, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 479, - "character": 6 - } - ], - "type": { - "type": "reference", - "id": 494, - "name": "AuthError" - } - }, - { - "id": 489, - "name": "session", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 478, - "character": 6 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [490, 489] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 477, - "character": 4 - } - ] - } - } - ] - } - }, - { - "id": 432, - "name": "EmailOtpType", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 362, + "line": 205, "character": 12 } ], @@ -28574,1333 +14774,15 @@ } }, { - "id": 449, - "name": "GenerateEmailChangeLinkParams", + "id": 581, + "name": "MobileOTPType", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/lib/types.ts", - "line": 385, - "character": 12 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 450, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 452, - "name": "email", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The user's email" - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 388, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 453, - "name": "newEmail", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The user's new email. Only required if type is 'email_change_current' or 'email_change_new'." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 392, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 454, - "name": "options", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 393, - "character": 2 - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 455, - "name": "GenerateLinkOptions" - }, - { - "type": "literal", - "value": "redirectTo" - } - ], - "qualifiedName": "Pick", - "package": "typescript", - "name": "Pick" - } - }, - { - "id": 451, - "name": "type", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 386, - "character": 2 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "email_change_current" - }, - { - "type": "literal", - "value": "email_change_new" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [452, 453, 454, 451] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 385, - "character": 44 - } - ] - } - } - }, - { - "id": 439, - "name": "GenerateInviteOrMagiclinkParams", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 371, - "character": 12 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 440, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 442, - "name": "email", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The user's email" - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 374, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 443, - "name": "options", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 375, - "character": 2 - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 455, - "name": "GenerateLinkOptions" - }, - { - "type": "union", - "types": [ - { - "type": "literal", - "value": "data" - }, - { - "type": "literal", - "value": "redirectTo" - } - ] - } - ], - "qualifiedName": "Pick", - "package": "typescript", - "name": "Pick" - } - }, - { - "id": 441, - "name": "type", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 372, - "character": 2 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "invite" - }, - { - "type": "literal", - "value": "magiclink" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [442, 443, 441] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 371, - "character": 46 - } - ] - } - } - }, - { - "id": 458, - "name": "GenerateLinkParams", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 407, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 433, - "name": "GenerateSignupLinkParams" - }, - { - "type": "reference", - "id": 439, - "name": "GenerateInviteOrMagiclinkParams" - }, - { - "type": "reference", - "id": 444, - "name": "GenerateRecoveryLinkParams" - }, - { - "type": "reference", - "id": 449, - "name": "GenerateEmailChangeLinkParams" - } - ] - } - }, - { - "id": 472, - "name": "GenerateLinkProperties", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "comment": { - "shortText": "The properties related to the email link generated" - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 430, - "character": 12 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 473, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 474, - "name": "action_link", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The email link to send to the user.\nThe action_link follows the following format: auth/v1/verify?type={verification_type}&token={hashed_token}&redirect_to={redirect_to}" - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 435, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 475, - "name": "email_otp", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The raw email OTP.\nYou should send this in the email if you want your users to verify using an OTP instead of the action link." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 440, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 476, - "name": "hashed_token", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The hashed token appended to the action link." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 444, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 477, - "name": "redirect_to", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The URL appended to the action link." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 446, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 478, - "name": "verification_type", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The verification type that the email link is associated to." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 448, - "character": 2 - } - ], - "type": { - "type": "reference", - "id": 479, - "name": "GenerateLinkType" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [474, 475, 476, 477, 478] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 430, - "character": 37 - } - ] - } - } - }, - { - "id": 459, - "name": "GenerateLinkResponse", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 413, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 460, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 461, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 415, - "character": 6 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 462, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 463, - "name": "properties", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 416, - "character": 8 - } - ], - "type": { - "type": "reference", - "id": 472, - "name": "GenerateLinkProperties" - } - }, - { - "id": 464, - "name": "user", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 417, - "character": 8 - } - ], - "type": { - "type": "reference", - "id": 310, - "name": "User" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [463, 464] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 415, - "character": 12 - } - ] - } - } - }, - { - "id": 465, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 419, - "character": 6 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [461, 465] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 414, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 466, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 467, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 422, - "character": 6 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 468, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 469, - "name": "properties", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 423, - "character": 8 - } - ], - "type": { - "type": "literal", - "value": null - } - }, - { - "id": 470, - "name": "user", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 424, - "character": 8 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [469, 470] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 422, - "character": 12 - } - ] - } - } - }, - { - "id": 471, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 426, - "character": 6 - } - ], - "type": { - "type": "reference", - "id": 494, - "name": "AuthError" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [467, 471] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 421, - "character": 4 - } - ] - } - } - ] - } - }, - { - "id": 479, - "name": "GenerateLinkType", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 451, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "signup" - }, - { - "type": "literal", - "value": "invite" - }, - { - "type": "literal", - "value": "magiclink" - }, - { - "type": "literal", - "value": "recovery" - }, - { - "type": "literal", - "value": "email_change_current" - }, - { - "type": "literal", - "value": "email_change_new" - } - ] - } - }, - { - "id": 444, - "name": "GenerateRecoveryLinkParams", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 378, - "character": 12 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 445, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 447, - "name": "email", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The user's email" - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 381, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 448, - "name": "options", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 382, - "character": 2 - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 455, - "name": "GenerateLinkOptions" - }, - { - "type": "literal", - "value": "redirectTo" - } - ], - "qualifiedName": "Pick", - "package": "typescript", - "name": "Pick" - } - }, - { - "id": 446, - "name": "type", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 379, - "character": 2 - } - ], - "type": { - "type": "literal", - "value": "recovery" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [447, 448, 446] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 378, - "character": 41 - } - ] - } - } - }, - { - "id": 433, - "name": "GenerateSignupLinkParams", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 364, - "character": 12 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 434, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 436, - "name": "email", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 366, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 438, - "name": "options", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 368, - "character": 2 - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 455, - "name": "GenerateLinkOptions" - }, - { - "type": "union", - "types": [ - { - "type": "literal", - "value": "data" - }, - { - "type": "literal", - "value": "redirectTo" - } - ] - } - ], - "qualifiedName": "Pick", - "package": "typescript", - "name": "Pick" - } - }, - { - "id": 437, - "name": "password", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 367, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 435, - "name": "type", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 365, - "character": 2 - } - ], - "type": { - "type": "literal", - "value": "signup" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [436, 438, 437, 435] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 364, - "character": 39 - } - ] - } - } - }, - { - "id": 241, - "name": "GoTrueClientOptions", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 31, - "character": 12 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 242, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 250, - "name": "autoRefreshToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 41, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 249, - "name": "detectSessionInUrl", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 39, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 253, - "name": "fetch", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 47, - "character": 2 - } - ], - "type": { - "type": "reference", - "name": "Fetch" - } - }, - { - "id": 244, - "name": "headers", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 35, - "character": 2 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 245, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 35, - "character": 12 - } - ], - "indexSignature": { - "id": 246, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": {}, - "parameters": [ - { - "id": 247, - "name": "key", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - } - } - }, - { - "id": 251, - "name": "persistSession", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 43, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 252, - "name": "storage", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 45, - "character": 2 - } - ], - "type": { - "type": "reference", - "id": 480, - "name": "SupportedStorage" - } - }, - { - "id": 248, - "name": "storageKey", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 37, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 243, - "name": "url", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 33, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [250, 249, 253, 244, 251, 252, 248, 243] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 31, - "character": 34 - } - ] - } - } - }, - { - "id": 481, - "name": "InitializeResult", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 470, - "character": 12 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 482, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 483, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 470, - "character": 33 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 494, - "name": "AuthError" - }, - { - "type": "literal", - "value": null - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [483] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 470, - "character": 31 - } - ] - } - } - }, - { - "id": 431, - "name": "MobileOtpType", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 361, + "line": 204, "character": 12 } ], @@ -29919,280 +14801,15 @@ } }, { - "id": 267, - "name": "OAuthResponse", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 66, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 268, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 269, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 68, - "character": 6 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 270, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 271, - "name": "provider", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 69, - "character": 8 - } - ], - "type": { - "type": "reference", - "id": 239, - "name": "Provider" - } - }, - { - "id": 272, - "name": "url", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 70, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [271, 272] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 68, - "character": 12 - } - ] - } - } - }, - { - "id": 273, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 72, - "character": 6 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [269, 273] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 67, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 274, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 275, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 75, - "character": 6 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 276, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 277, - "name": "provider", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 76, - "character": 8 - } - ], - "type": { - "type": "reference", - "id": 239, - "name": "Provider" - } - }, - { - "id": 278, - "name": "url", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 77, - "character": 8 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [277, 278] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 75, - "character": 12 - } - ] - } - } - }, - { - "id": 279, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 79, - "character": 6 - } - ], - "type": { - "type": "reference", - "id": 494, - "name": "AuthError" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [275, 279] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 74, - "character": 4 - } - ] - } - } - ] - } - }, - { - "id": 239, + "id": 481, "name": "Provider", "kind": 4194304, "kindString": "Type alias", "flags": {}, - "comment": { - "shortText": "One of the providers supported by GoTrue." - }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 5, + "line": 1, "character": 12 } ], @@ -30267,1169 +14884,7 @@ } }, { - "id": 403, - "name": "SignInWithOAuthCredentials", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 318, - "character": 12 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 404, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 406, - "name": "options", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 321, - "character": 2 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 407, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 410, - "name": "queryParams", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "An object of query params" - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 327, - "character": 4 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 411, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 327, - "character": 18 - } - ], - "indexSignature": { - "id": 412, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": {}, - "parameters": [ - { - "id": 413, - "name": "key", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - } - } - }, - { - "id": 408, - "name": "redirectTo", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "A URL to send the user to after they are confirmed." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 323, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 409, - "name": "scopes", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "A space-separated list of scopes granted to the OAuth application." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 325, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [410, 408, 409] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 321, - "character": 12 - } - ] - } - } - }, - { - "id": 405, - "name": "provider", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "One of the providers supported by GoTrue." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 320, - "character": 2 - } - ], - "type": { - "type": "reference", - "id": 239, - "name": "Provider" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [406, 405] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 318, - "character": 41 - } - ] - } - } - }, - { - "id": 376, - "name": "SignInWithPasswordCredentials", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 272, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 377, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 378, - "name": "email", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The user's email address." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 275, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 380, - "name": "options", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 278, - "character": 6 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 381, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 382, - "name": "captchaToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "Verification token received when the user completes the captcha on the site." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 280, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [382] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 278, - "character": 16 - } - ] - } - } - }, - { - "id": 379, - "name": "password", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The user's password." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 277, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [378, 380, 379] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 273, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 383, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 386, - "name": "options", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 288, - "character": 6 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 387, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 388, - "name": "captchaToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "Verification token received when the user completes the captcha on the site." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 290, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [388] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 288, - "character": 16 - } - ] - } - } - }, - { - "id": 385, - "name": "password", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The user's password." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 287, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 384, - "name": "phone", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The user's phone number." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 285, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [386, 385, 384] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 283, - "character": 4 - } - ] - } - } - ] - } - }, - { - "id": 389, - "name": "SignInWithPasswordlessCredentials", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 294, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 390, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 391, - "name": "email", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The user's email address." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 297, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 392, - "name": "options", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 298, - "character": 6 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 393, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 396, - "name": "captchaToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "Verification token received when the user completes the captcha on the site." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 304, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 394, - "name": "emailRedirectTo", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "The redirect url embedded in the email link" - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 300, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 395, - "name": "shouldCreateUser", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "If set to false, this method will not create a new user. Defaults to true." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 302, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [396, 394, 395] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 298, - "character": 16 - } - ] - } - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [391, 392] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 295, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 397, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 399, - "name": "options", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 310, - "character": 6 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 400, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 402, - "name": "captchaToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "Verification token received when the user completes the captcha on the site." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 314, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 401, - "name": "shouldCreateUser", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "If set to false, this method will not create a new user. Defaults to true." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 312, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [402, 401] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 310, - "character": 16 - } - ] - } - } - }, - { - "id": 398, - "name": "phone", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The user's phone number." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 309, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [399, 398] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 307, - "character": 4 - } - ] - } - } - ] - } - }, - { - "id": 360, - "name": "SignUpWithPasswordCredentials", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 237, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 361, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 362, - "name": "email", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The user's email address." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 240, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 364, - "name": "options", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 243, - "character": 6 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 365, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 368, - "name": "captchaToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "Verification token received when the user completes the captcha on the site." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 253, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 367, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", - "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n" - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 251, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } - }, - { - "id": 366, - "name": "emailRedirectTo", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "The redirect url embedded in the email link" - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 245, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [368, 367, 366] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 243, - "character": 16 - } - ] - } - } - }, - { - "id": 363, - "name": "password", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The user's password." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 242, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [362, 364, 363] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 238, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 369, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 372, - "name": "options", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 261, - "character": 6 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 373, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 375, - "name": "captchaToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "Verification token received when the user completes the captcha on the site." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 269, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 374, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", - "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n" - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 267, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [375, 374] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 261, - "character": 16 - } - ] - } - } - }, - { - "id": 371, - "name": "password", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The user's password." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 260, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 370, - "name": "phone", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The user's phone number." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 258, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [372, 371, 370] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 256, - "character": 4 - } - ] - } - } - ] - } - }, - { - "id": 480, + "id": 589, "name": "SupportedStorage", "kind": 4194304, "kindString": "Type alias", @@ -31437,7 +14892,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 468, + "line": 224, "character": 12 } ], @@ -31480,240 +14935,15 @@ } }, { - "id": 280, - "name": "UserResponse", + "id": 570, + "name": "VerifyOTPParams", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/lib/types.ts", - "line": 82, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 281, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 282, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 84, - "character": 6 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 283, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 284, - "name": "user", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 85, - "character": 8 - } - ], - "type": { - "type": "reference", - "id": 310, - "name": "User" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [284] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 84, - "character": 12 - } - ] - } - } - }, - { - "id": 285, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 87, - "character": 6 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [282, 285] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 83, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 286, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 287, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 90, - "character": 6 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 288, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 289, - "name": "user", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 91, - "character": 8 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [289] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 90, - "character": 12 - } - ] - } - } - }, - { - "id": 290, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 93, - "character": 6 - } - ], - "type": { - "type": "reference", - "id": 494, - "name": "AuthError" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [287, 290] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 89, - "character": 4 - } - ] - } - } - ] - } - }, - { - "id": 414, - "name": "VerifyOtpParams", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 331, + "line": 191, "character": 12 } ], @@ -31722,87 +14952,33 @@ "types": [ { "type": "reference", - "id": 415, - "name": "VerifyMobileOtpParams" + "id": 571, + "name": "VerifyMobileOTPParams" }, { "type": "reference", - "id": 423, - "name": "VerifyEmailOtpParams" + "id": 576, + "name": "VerifyEmailOTPParams" } ] } - }, - { - "id": 491, - "name": "isAuthError", - "kind": 64, - "kindString": "Function", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 10, - "character": 16 - } - ], - "signatures": [ - { - "id": 492, - "name": "isAuthError", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 493, - "name": "error", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "type": { - "type": "predicate", - "name": "error", - "asserts": false, - "targetType": { - "type": "reference", - "id": 494, - "name": "AuthError" - } - } - } - ] } ], "groups": [ { "title": "Classes", "kind": 128, - "children": [499, 494, 559, 546, 584, 534, 512, 519, 1, 66] + "children": [1, 263] }, { "title": "Interfaces", "kind": 256, - "children": [343, 455, 291, 352, 310, 338, 299, 423, 415] + "children": [539, 483, 557, 583, 486, 549, 505, 533, 563, 494, 576, 571] }, { - "title": "Type Aliases", + "title": "Type aliases", "kind": 4194304, - "children": [ - 240, 254, 484, 432, 449, 439, 458, 472, 459, 479, 444, 433, 241, 481, 431, 267, 239, - 403, 376, 389, 360, 480, 280, 414 - ] - }, - { - "title": "Functions", - "kind": 64, - "children": [491] + "children": [482, 582, 581, 481, 589, 570] } ], "sources": [ @@ -31822,7 +14998,7 @@ "originalName": "", "children": [ { - "id": 486, + "id": 46, "name": "PostgrestBuilder", "kind": 128, "kindString": "Class", @@ -31831,29 +15007,29 @@ }, "children": [ { - "id": 487, + "id": 47, "name": "constructor", "kind": 512, "kindString": "Constructor", "flags": {}, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 18, + "fileName": "src/lib/types.ts", + "line": 62, "character": 2 } ], "signatures": [ { - "id": 488, + "id": 48, "name": "new PostgrestBuilder", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "typeParameter": [ { - "id": 489, - "name": "Result", + "id": 49, + "name": "T", "kind": 131072, "kindString": "Type parameter", "flags": {} @@ -31861,42 +15037,42 @@ ], "parameters": [ { - "id": 490, + "id": 50, "name": "builder", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 486, + "id": 46, "typeArguments": [ { "type": "reference", - "id": 489, - "name": "Result" + "id": 49, + "name": "T" } ], - "name": "default" + "name": "PostgrestBuilder" } } ], "type": { "type": "reference", - "id": 486, + "id": 46, "typeArguments": [ { "type": "reference", - "id": 489, - "name": "Result" + "id": 49, + "name": "T" } ], - "name": "default" + "name": "PostgrestBuilder" } } ] }, { - "id": 503, + "id": 66, "name": "allowEmpty", "kind": 1024, "kindString": "Property", @@ -31905,8 +15081,8 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 16, + "fileName": "src/lib/types.ts", + "line": 60, "character": 12 } ], @@ -31916,7 +15092,7 @@ } }, { - "id": 495, + "id": 58, "name": "body", "kind": 1024, "kindString": "Property", @@ -31926,18 +15102,48 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 12, + "fileName": "src/lib/types.ts", + "line": 56, "character": 12 } ], "type": { - "type": "intrinsic", - "name": "unknown" + "type": "union", + "types": [ + { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 49, + "name": "T" + } + ], + "qualifiedName": "Partial", + "package": "typescript", + "name": "Partial" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 49, + "name": "T" + } + ], + "qualifiedName": "Partial", + "package": "typescript", + "name": "Partial" + } + } + ] } }, { - "id": 498, + "id": 61, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -31946,53 +15152,42 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 15, + "fileName": "src/lib/types.ts", + "line": 59, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 499, + "id": 62, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 500, + "id": 63, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 501, + "id": 64, "name": "input", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "union", - "types": [ - { - "type": "reference", - "qualifiedName": "RequestInfo", - "package": "typescript", - "name": "RequestInfo" - }, - { - "type": "reference", - "qualifiedName": "URL", - "package": "typescript", - "name": "URL" - } - ] + "type": "reference", + "qualifiedName": "RequestInfo", + "package": "typescript", + "name": "RequestInfo" } }, { - "id": 502, + "id": 65, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -32027,7 +15222,7 @@ } }, { - "id": 493, + "id": 53, "name": "headers", "kind": 1024, "kindString": "Property", @@ -32036,30 +15231,47 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 10, + "fileName": "src/lib/types.ts", + "line": 54, "character": 12 } ], "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "string" + "type": "reflection", + "declaration": { + "id": 54, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "indexSignature": { + "id": 55, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 56, + "name": "key", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" + } } }, { - "id": 491, + "id": 51, "name": "method", "kind": 1024, "kindString": "Property", @@ -32068,8 +15280,8 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 8, + "fileName": "src/lib/types.ts", + "line": 52, "character": 12 } ], @@ -32100,7 +15312,7 @@ } }, { - "id": 494, + "id": 57, "name": "schema", "kind": 1024, "kindString": "Property", @@ -32110,8 +15322,8 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 11, + "fileName": "src/lib/types.ts", + "line": 55, "character": 12 } ], @@ -32121,7 +15333,7 @@ } }, { - "id": 496, + "id": 59, "name": "shouldThrowOnError", "kind": 1024, "kindString": "Property", @@ -32130,19 +15342,18 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 13, + "fileName": "src/lib/types.ts", + "line": 57, "character": 12 } ], "type": { "type": "intrinsic", "name": "boolean" - }, - "defaultValue": "false" + } }, { - "id": 497, + "id": 60, "name": "signal", "kind": 1024, "kindString": "Property", @@ -32152,8 +15363,8 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 14, + "fileName": "src/lib/types.ts", + "line": 58, "character": 12 } ], @@ -32165,7 +15376,7 @@ } }, { - "id": 492, + "id": 52, "name": "url", "kind": 1024, "kindString": "Property", @@ -32174,8 +15385,8 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 9, + "fileName": "src/lib/types.ts", + "line": 53, "character": 12 } ], @@ -32187,47 +15398,47 @@ } }, { - "id": 506, + "id": 70, "name": "then", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 48, + "fileName": "src/lib/types.ts", + "line": 91, "character": 2 } ], "signatures": [ { - "id": 507, + "id": 71, "name": "then", "kind": 4096, "kindString": "Call signature", "flags": {}, "typeParameter": [ { - "id": 508, + "id": 72, "name": "TResult1", "kind": 131072, "kindString": "Type parameter", "flags": {}, "default": { "type": "reference", - "id": 519, + "id": 425, "typeArguments": [ { "type": "reference", - "id": 489, - "name": "Result" + "id": 49, + "name": "T" } ], "name": "PostgrestResponse" } }, { - "id": 509, + "id": 73, "name": "TResult2", "kind": 131072, "kindString": "Type parameter", @@ -32240,7 +15451,7 @@ ], "parameters": [ { - "id": 510, + "id": 74, "name": "onfulfilled", "kind": 32768, "kindString": "Parameter", @@ -32257,33 +15468,33 @@ { "type": "reflection", "declaration": { - "id": 511, + "id": 75, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 512, + "id": 76, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 513, + "id": 77, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 519, + "id": 425, "typeArguments": [ { "type": "reference", - "id": 489, - "name": "Result" + "id": 49, + "name": "T" } ], "name": "PostgrestResponse" @@ -32295,7 +15506,7 @@ "types": [ { "type": "reference", - "id": 382, + "id": 72, "name": "TResult1" }, { @@ -32303,7 +15514,7 @@ "typeArguments": [ { "type": "reference", - "id": 382, + "id": 72, "name": "TResult1" } ], @@ -32321,7 +15532,7 @@ } }, { - "id": 514, + "id": 78, "name": "onrejected", "kind": 32768, "kindString": "Parameter", @@ -32338,21 +15549,21 @@ { "type": "reflection", "declaration": { - "id": 515, + "id": 79, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 516, + "id": 80, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 517, + "id": 81, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -32368,7 +15579,7 @@ "types": [ { "type": "reference", - "id": 383, + "id": 73, "name": "TResult2" }, { @@ -32376,7 +15587,7 @@ "typeArguments": [ { "type": "reference", - "id": 383, + "id": 73, "name": "TResult2" } ], @@ -32402,12 +15613,12 @@ "types": [ { "type": "reference", - "id": 382, + "id": 72, "name": "TResult1" }, { "type": "reference", - "id": 383, + "id": 73, "name": "TResult2" } ] @@ -32429,21 +15640,21 @@ } }, { - "id": 504, + "id": 67, "name": "throwOnError", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 43, + "fileName": "src/lib/types.ts", + "line": 83, "character": 2 } ], "signatures": [ { - "id": 505, + "id": 68, "name": "throwOnError", "kind": 4096, "kindString": "Call signature", @@ -32452,17 +15663,32 @@ "shortText": "If there's an error with the query, throwOnError will reject the promise by\nthrowing the error instead of returning it as part of a successful response.", "text": "{@link https://github.com/supabase/supabase-js/issues/92}\n" }, + "parameters": [ + { + "id": 69, + "name": "throwOnError", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], "type": { "type": "reference", - "id": 486, + "id": 46, "typeArguments": [ { "type": "reference", - "id": 489, - "name": "Result" + "id": 49, + "name": "T" } ], - "name": "default" + "name": "PostgrestBuilder" } } ] @@ -32472,30 +15698,30 @@ { "title": "Constructors", "kind": 512, - "children": [487] + "children": [47] }, { "title": "Properties", "kind": 1024, - "children": [503, 495, 498, 493, 491, 494, 496, 497, 492] + "children": [66, 58, 61, 53, 51, 57, 59, 60, 52] }, { "title": "Methods", "kind": 2048, - "children": [506, 504] + "children": [70, 67] } ], "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 5, - "character": 30 + "fileName": "src/lib/types.ts", + "line": 51, + "character": 22 } ], "typeParameter": [ { - "id": 518, - "name": "Result", + "id": 82, + "name": "T", "kind": 131072, "kindString": "Type parameter", "flags": {} @@ -32504,8 +15730,8 @@ "extendedBy": [ { "type": "reference", - "id": 394, - "name": "PostgrestTransformBuilder" + "id": 83, + "name": "PostgrestQueryBuilder" } ], "implementedTypes": [ @@ -32514,12 +15740,12 @@ "typeArguments": [ { "type": "reference", - "id": 519, + "id": 425, "typeArguments": [ { "type": "reference", - "id": 489, - "name": "Result" + "id": 49, + "name": "T" } ], "name": "PostgrestResponse" @@ -32537,9 +15763,6 @@ "kind": 128, "kindString": "Class", "flags": {}, - "comment": { - "shortText": "PostgREST client." - }, "children": [ { "id": 2, @@ -32550,7 +15773,7 @@ "sources": [ { "fileName": "src/PostgrestClient.ts", - "line": 41, + "line": 21, "character": 2 } ], @@ -32564,123 +15787,15 @@ "comment": { "shortText": "Creates a PostgREST client." }, - "typeParameter": [ - { - "id": 4, - "name": "Database", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "default": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 5, - "name": "SchemaName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - }, - "default": { - "type": "conditional", - "checkType": { - "type": "literal", - "value": "public" - }, - "extendsType": { - "type": "typeOperator", - "operator": "keyof", - "target": { - "type": "reference", - "id": 4, - "name": "Database" - } - }, - "trueType": { - "type": "literal", - "value": "public" - }, - "falseType": { - "type": "intersection", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "typeOperator", - "operator": "keyof", - "target": { - "type": "reference", - "id": 4, - "name": "Database" - } - } - ] - } - } - }, - { - "id": 6, - "name": "Schema", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "GenericSchema" - }, - "default": { - "type": "conditional", - "checkType": { - "type": "indexedAccess", - "indexType": { - "type": "reference", - "id": 5, - "name": "SchemaName" - }, - "objectType": { - "type": "reference", - "id": 4, - "name": "Database" - } - }, - "extendsType": { - "type": "reference", - "name": "GenericSchema" - }, - "trueType": { - "type": "indexedAccess", - "indexType": { - "type": "intrinsic", - "name": "any" - }, - "objectType": { - "type": "intrinsic", - "name": "any" - } - }, - "falseType": { - "type": "intrinsic", - "name": "any" - } - } - } - ], "parameters": [ { - "id": 7, + "id": 4, "name": "url", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "URL of the PostgREST endpoint" + "shortText": "URL of the PostgREST endpoint." }, "type": { "type": "intrinsic", @@ -32688,19 +15803,15 @@ } }, { - "id": 8, - "name": "options", + "id": 5, + "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "shortText": "Named parameters" - }, - "originalName": "__namedParameters", "type": { "type": "reflection", "declaration": { - "id": 9, + "id": 6, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -32717,7 +15828,7 @@ "sources": [ { "fileName": "src/PostgrestClient.ts", - "line": 50, + "line": 31, "character": 6 } ], @@ -32736,9 +15847,6 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, - "comment": { - "shortText": "Custom fetch\n" - }, "parameters": [ { "id": 15, @@ -32747,21 +15855,10 @@ "kindString": "Parameter", "flags": {}, "type": { - "type": "union", - "types": [ - { - "type": "reference", - "qualifiedName": "RequestInfo", - "package": "typescript", - "name": "RequestInfo" - }, - { - "type": "reference", - "qualifiedName": "URL", - "package": "typescript", - "name": "URL" - } - ] + "type": "reference", + "qualifiedName": "RequestInfo", + "package": "typescript", + "name": "RequestInfo" } }, { @@ -32800,38 +15897,52 @@ } }, { - "id": 10, + "id": 7, "name": "headers", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "Custom headers" - }, "sources": [ { "fileName": "src/PostgrestClient.ts", - "line": 48, + "line": 29, "character": 6 } ], "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "string" + "type": "reflection", + "declaration": { + "id": 8, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "indexSignature": { + "id": 9, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 10, + "name": "key", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" + } } }, { @@ -32842,20 +15953,36 @@ "flags": { "isOptional": true }, - "comment": { - "shortText": "Postgres schema to switch to" - }, "sources": [ { "fileName": "src/PostgrestClient.ts", - "line": 49, + "line": 30, "character": 6 } ], "type": { - "type": "reference", - "id": 5, - "name": "SchemaName" + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 17, + "name": "throwOnError", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/PostgrestClient.ts", + "line": 32, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" } } ], @@ -32863,7 +15990,7 @@ { "title": "Properties", "kind": 1024, - "children": [12, 10, 11] + "children": [12, 7, 11, 17] } ] } @@ -32874,30 +16001,13 @@ "type": { "type": "reference", "id": 1, - "typeArguments": [ - { - "type": "reference", - "id": 4, - "name": "Database" - }, - { - "type": "reference", - "id": 5, - "name": "SchemaName" - }, - { - "type": "reference", - "id": 6, - "name": "Schema" - } - ], "name": "default" } } ] }, { - "id": 20, + "id": 24, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -32907,52 +16017,41 @@ "sources": [ { "fileName": "src/PostgrestClient.ts", - "line": 29, + "line": 11, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 21, + "id": 25, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 22, + "id": 26, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 23, + "id": 27, "name": "input", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "union", - "types": [ - { - "type": "reference", - "qualifiedName": "RequestInfo", - "package": "typescript", - "name": "RequestInfo" - }, - { - "type": "reference", - "qualifiedName": "URL", - "package": "typescript", - "name": "URL" - } - ] + "type": "reference", + "qualifiedName": "RequestInfo", + "package": "typescript", + "name": "RequestInfo" } }, { - "id": 24, + "id": 28, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -32987,7 +16086,7 @@ } }, { - "id": 18, + "id": 19, "name": "headers", "kind": 1024, "kindString": "Property", @@ -32995,29 +16094,46 @@ "sources": [ { "fileName": "src/PostgrestClient.ts", - "line": 27, + "line": 9, "character": 2 } ], "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "string" + "type": "reflection", + "declaration": { + "id": 20, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "indexSignature": { + "id": 21, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 22, + "name": "key", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" + } } }, { - "id": 19, + "id": 23, "name": "schema", "kind": 1024, "kindString": "Property", @@ -33027,26 +16143,7 @@ "sources": [ { "fileName": "src/PostgrestClient.ts", - "line": 28, - "character": 2 - } - ], - "type": { - "type": "reference", - "id": 5, - "name": "SchemaName" - } - }, - { - "id": 17, - "name": "url", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/PostgrestClient.ts", - "line": 26, + "line": 10, "character": 2 } ], @@ -33056,7 +16153,92 @@ } }, { - "id": 25, + "id": 29, + "name": "shouldThrowOnError", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/PostgrestClient.ts", + "line": 12, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 18, + "name": "url", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/PostgrestClient.ts", + "line": 8, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 30, + "name": "auth", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/PostgrestClient.ts", + "line": 47, + "character": 2 + } + ], + "signatures": [ + { + "id": 31, + "name": "auth", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Authenticates the request with JWT." + }, + "parameters": [ + { + "id": 32, + "name": "token", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The JWT token to use.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "id": 1, + "name": "default" + } + } + ] + }, + { + "id": 33, "name": "from", "kind": 2048, "kindString": "Method", @@ -33064,144 +16246,43 @@ "sources": [ { "fileName": "src/PostgrestClient.ts", - "line": 64, + "line": 57, "character": 2 } ], "signatures": [ - { - "id": 26, - "name": "from", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Perform a query on a table or a view." - }, - "typeParameter": [ - { - "id": 27, - "name": "TableName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 28, - "name": "Table", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "GenericTable" - } - } - ], - "parameters": [ - { - "id": 29, - "name": "relation", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "shortText": "The table or view name to query\n" - }, - "type": { - "type": "reference", - "id": 27, - "name": "TableName" - } - } - ], - "type": { - "type": "reference", - "id": 49, - "typeArguments": [ - { - "type": "reference", - "id": 28, - "name": "Table" - } - ], - "name": "default" - } - }, - { - "id": 30, - "name": "from", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "typeParameter": [ - { - "id": 31, - "name": "ViewName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 32, - "name": "View", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "GenericView" - } - } - ], - "parameters": [ - { - "id": 33, - "name": "relation", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "id": 31, - "name": "ViewName" - } - } - ], - "type": { - "type": "reference", - "id": 49, - "typeArguments": [ - { - "type": "reference", - "id": 32, - "name": "View" - } - ], - "name": "default" - } - }, { "id": 34, "name": "from", "kind": 4096, "kindString": "Call signature", "flags": {}, - "parameters": [ + "comment": { + "shortText": "Perform a table operation." + }, + "typeParameter": [ { "id": 35, - "name": "relation", + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "parameters": [ + { + "id": 36, + "name": "table", "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "The table name to operate on.\n" + }, "type": { "type": "intrinsic", "name": "string" @@ -33210,11 +16291,12 @@ ], "type": { "type": "reference", - "id": 49, + "id": 83, "typeArguments": [ { - "type": "intrinsic", - "name": "any" + "type": "reference", + "id": 35, + "name": "T" } ], "name": "default" @@ -33223,7 +16305,7 @@ ] }, { - "id": 36, + "id": 37, "name": "rpc", "kind": 2048, "kindString": "Method", @@ -33231,13 +16313,13 @@ "sources": [ { "fileName": "src/PostgrestClient.ts", - "line": 102, + "line": 75, "character": 2 } ], "signatures": [ { - "id": 37, + "id": 38, "name": "rpc", "kind": 4096, "kindString": "Call signature", @@ -33246,26 +16328,15 @@ "shortText": "Perform a function call." }, "typeParameter": [ - { - "id": 38, - "name": "FunctionName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, { "id": 39, - "name": "Function_", + "name": "T", "kind": 131072, "kindString": "Type parameter", "flags": {}, - "type": { - "type": "reference", - "name": "GenericFunction" + "default": { + "type": "intrinsic", + "name": "any" } } ], @@ -33277,47 +16348,35 @@ "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The function name to call" + "shortText": "The function name to call." }, "type": { - "type": "reference", - "id": 38, - "name": "FunctionName" + "type": "intrinsic", + "name": "string" } }, { "id": 41, - "name": "args", + "name": "params", "kind": 32768, "kindString": "Parameter", - "flags": {}, + "flags": { + "isOptional": true + }, "comment": { - "shortText": "The arguments to pass to the function call" + "shortText": "The parameters to pass to the function call." }, "type": { - "type": "indexedAccess", - "indexType": { - "type": "literal", - "value": "Args" - }, - "objectType": { - "type": "reference", - "id": 39, - "name": "Function_" - } - }, - "defaultValue": "{}" + "type": "intrinsic", + "name": "object" + } }, { "id": 42, - "name": "options", + "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "shortText": "Named parameters" - }, - "originalName": "__namedParameters", "type": { "type": "reflection", "declaration": { @@ -33335,19 +16394,20 @@ "flags": { "isOptional": true }, - "comment": { - "shortText": "Count algorithm to use to count rows returned by the\nfunction. Only applicable for [set-returning\nfunctions](https://www.postgresql.org/docs/current/functions-srf.html).\n\n`\"exact\"`: Exact but slow count algorithm. Performs a `COUNT(*)` under the\nhood.\n\n`\"planned\"`: Approximated but fast count algorithm. Uses the Postgres\nstatistics under the hood.\n\n`\"estimated\"`: Uses exact count for low numbers and planned count for high\nnumbers.\n" - }, "sources": [ { "fileName": "src/PostgrestClient.ts", - "line": 113, + "line": 83, "character": 6 } ], "type": { "type": "union", "types": [ + { + "type": "literal", + "value": null + }, { "type": "literal", "value": "exact" @@ -33371,13 +16431,10 @@ "flags": { "isOptional": true }, - "comment": { - "shortText": "When set to `true`, `data` will not be returned.\nUseful if you only need the count." - }, "sources": [ { "fileName": "src/PostgrestClient.ts", - "line": 112, + "line": 82, "character": 6 } ], @@ -33401,97 +16458,12 @@ ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { - "type": "conditional", - "checkType": { - "type": "indexedAccess", - "indexType": { - "type": "literal", - "value": "Returns" - }, - "objectType": { - "type": "reference", - "id": 39, - "name": "Function_" - } - }, - "extendsType": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - }, - "trueType": { - "type": "conditional", - "checkType": { - "type": "indexedAccess", - "indexType": { - "type": "intrinsic", - "name": "number" - }, - "objectType": { - "type": "indexedAccess", - "indexType": { - "type": "intrinsic", - "name": "any" - }, - "objectType": { - "type": "intrinsic", - "name": "any" - } - } - }, - "extendsType": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - }, - "trueType": { - "type": "indexedAccess", - "indexType": { - "type": "intrinsic", - "name": "any" - }, - "objectType": { - "type": "intrinsic", - "name": "any" - } - }, - "falseType": { - "type": "intrinsic", - "name": "never" - } - }, - "falseType": { - "type": "intrinsic", - "name": "never" - } - }, - { - "type": "indexedAccess", - "indexType": { - "type": "literal", - "value": "Returns" - }, - "objectType": { - "type": "reference", - "id": 39, - "name": "Function_" - } + "type": "reference", + "id": 39, + "name": "T" } ], "name": "default" @@ -33509,199 +16481,46 @@ { "title": "Properties", "kind": 1024, - "children": [20, 18, 19, 17] + "children": [24, 19, 23, 29, 18] }, { "title": "Methods", "kind": 2048, - "children": [25, 36] + "children": [30, 33, 37] } ], "sources": [ { "fileName": "src/PostgrestClient.ts", - "line": 17, + "line": 7, "character": 21 } - ], - "typeParameter": [ - { - "id": 46, - "name": "Database", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "comment": { - "shortText": "Types for the schema from the [type\ngenerator](https://supabase.com/docs/reference/javascript/next/typescript-support)\n" - }, - "default": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 47, - "name": "SchemaName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "comment": { - "shortText": "Postgres schema to switch to. Must be a string\nliteral, the same one passed to the constructor. If the schema is not\n`\"public\"`, this must be supplied manually.\n" - }, - "type": { - "type": "intersection", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "typeOperator", - "operator": "keyof", - "target": { - "type": "reference", - "id": 4, - "name": "Database" - } - } - ] - }, - "default": { - "type": "conditional", - "checkType": { - "type": "literal", - "value": "public" - }, - "extendsType": { - "type": "typeOperator", - "operator": "keyof", - "target": { - "type": "reference", - "id": 4, - "name": "Database" - } - }, - "trueType": { - "type": "literal", - "value": "public" - }, - "falseType": { - "type": "intersection", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "typeOperator", - "operator": "keyof", - "target": { - "type": "reference", - "id": 4, - "name": "Database" - } - } - ] - } - } - }, - { - "id": 48, - "name": "Schema", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "GenericSchema" - }, - "default": { - "type": "conditional", - "checkType": { - "type": "indexedAccess", - "indexType": { - "type": "reference", - "id": 5, - "name": "SchemaName" - }, - "objectType": { - "type": "reference", - "id": 4, - "name": "Database" - } - }, - "extendsType": { - "type": "reference", - "name": "GenericSchema" - }, - "trueType": { - "type": "indexedAccess", - "indexType": { - "type": "reference", - "id": 5, - "name": "SchemaName" - }, - "objectType": { - "type": "reference", - "id": 4, - "name": "Database" - } - }, - "falseType": { - "type": "intrinsic", - "name": "any" - } - } - } ] }, { - "id": 110, + "id": 177, "name": "PostgrestFilterBuilder", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 111, + "id": 178, "name": "constructor", "kind": 512, "kindString": "Constructor", "flags": {}, "signatures": [ { - "id": 112, + "id": 179, "name": "new PostgrestFilterBuilder", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "typeParameter": [ { - "id": 113, - "name": "Row", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - } - }, - { - "id": 114, - "name": "Result", + "id": 180, + "name": "T", "kind": 131072, "kindString": "Type parameter", "flags": {} @@ -33709,57 +16528,134 @@ ], "parameters": [ { - "id": 115, + "id": 181, "name": "builder", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 486, + "id": 46, "typeArguments": [ { "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], - "name": "default" + "name": "PostgrestBuilder" } } ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" }, "inheritedFrom": { "type": "reference", - "id": 396, - "name": "default.constructor" + "name": "PostgrestTransformBuilder.constructor" } } ], "inheritedFrom": { "type": "reference", - "id": 395, - "name": "default.constructor" + "name": "PostgrestTransformBuilder.constructor" } }, { - "id": 377, + "id": 291, + "name": "adj", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 328, + "character": 2 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 292, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "signatures": [ + { + "id": 293, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Finds all rows whose range value on the stated `column` is adjacent to\nthe specified `range`." + }, + "parameters": [ + { + "id": 294, + "name": "column", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The column to filter on." + }, + "type": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } + } + }, + { + "id": 295, + "name": "range", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The range to filter with.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "id": 177, + "typeArguments": [ + { + "type": "reference", + "id": 180, + "name": "T" + } + ], + "name": "default" + } + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 408, "name": "allowEmpty", "kind": 1024, "kindString": "Property", @@ -33768,8 +16664,8 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 16, + "fileName": "src/lib/types.ts", + "line": 60, "character": 12 } ], @@ -33779,12 +16675,11 @@ }, "inheritedFrom": { "type": "reference", - "id": 469, - "name": "default.allowEmpty" + "name": "PostgrestTransformBuilder.allowEmpty" } }, { - "id": 369, + "id": 400, "name": "body", "kind": 1024, "kindString": "Property", @@ -33794,23 +16689,278 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 12, + "fileName": "src/lib/types.ts", + "line": 56, "character": 12 } ], "type": { - "type": "intrinsic", - "name": "unknown" + "type": "union", + "types": [ + { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 180, + "name": "T" + } + ], + "qualifiedName": "Partial", + "package": "typescript", + "name": "Partial" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 180, + "name": "T" + } + ], + "qualifiedName": "Partial", + "package": "typescript", + "name": "Partial" + } + } + ] }, "inheritedFrom": { "type": "reference", - "id": 461, - "name": "default.body" + "name": "PostgrestTransformBuilder.body" } }, { - "id": 372, + "id": 246, + "name": "cd", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 253, + "character": 2 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 247, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "signatures": [ + { + "id": 248, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Finds all rows whose json, array, or range value on the stated `column` is\ncontained by the specified `value`." + }, + "parameters": [ + { + "id": 249, + "name": "column", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The column to filter on." + }, + "type": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } + } + }, + { + "id": 250, + "name": "value", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The value to filter with.\n" + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "object" + }, + { + "type": "array", + "elementType": { + "type": "indexedAccess", + "indexType": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } + }, + "objectType": { + "type": "reference", + "id": 180, + "name": "T" + } + } + } + ] + } + } + ], + "type": { + "type": "reference", + "id": 177, + "typeArguments": [ + { + "type": "reference", + "id": 180, + "name": "T" + } + ], + "name": "default" + } + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 237, + "name": "cs", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 229, + "character": 2 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 238, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "signatures": [ + { + "id": 239, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Finds all rows whose json, array, or range value on the stated `column`\ncontains the values specified in `value`." + }, + "parameters": [ + { + "id": 240, + "name": "column", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The column to filter on." + }, + "type": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } + } + }, + { + "id": 241, + "name": "value", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The value to filter with.\n" + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "object" + }, + { + "type": "array", + "elementType": { + "type": "indexedAccess", + "indexType": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } + }, + "objectType": { + "type": "reference", + "id": 180, + "name": "T" + } + } + } + ] + } + } + ], + "type": { + "type": "reference", + "id": 177, + "typeArguments": [ + { + "type": "reference", + "id": 180, + "name": "T" + } + ], + "name": "default" + } + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 403, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -33819,53 +16969,42 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 15, + "fileName": "src/lib/types.ts", + "line": 59, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 373, + "id": 404, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 374, + "id": 405, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 375, + "id": 406, "name": "input", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "union", - "types": [ - { - "type": "reference", - "qualifiedName": "RequestInfo", - "package": "typescript", - "name": "RequestInfo" - }, - { - "type": "reference", - "qualifiedName": "URL", - "package": "typescript", - "name": "URL" - } - ] + "type": "reference", + "qualifiedName": "RequestInfo", + "package": "typescript", + "name": "RequestInfo" } }, { - "id": 376, + "id": 407, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -33900,12 +17039,11 @@ }, "inheritedFrom": { "type": "reference", - "id": 464, - "name": "default.fetch" + "name": "PostgrestTransformBuilder.fetch" } }, { - "id": 367, + "id": 395, "name": "headers", "kind": 1024, "kindString": "Property", @@ -33914,35 +17052,51 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 10, + "fileName": "src/lib/types.ts", + "line": 54, "character": 12 } ], "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "string" + "type": "reflection", + "declaration": { + "id": 396, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "indexSignature": { + "id": 397, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 398, + "name": "key", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" + } }, "inheritedFrom": { "type": "reference", - "id": 459, - "name": "default.headers" + "name": "PostgrestTransformBuilder.headers" } }, { - "id": 365, + "id": 393, "name": "method", "kind": 1024, "kindString": "Property", @@ -33951,8 +17105,8 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 8, + "fileName": "src/lib/types.ts", + "line": 52, "character": 12 } ], @@ -33983,12 +17137,288 @@ }, "inheritedFrom": { "type": "reference", - "id": 457, - "name": "default.method" + "name": "PostgrestTransformBuilder.method" } }, { - "id": 368, + "id": 273, + "name": "nxl", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 298, + "character": 2 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 274, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "signatures": [ + { + "id": 275, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Finds all rows whose range value on the stated `column` does not extend\nto the left of the specified `range`." + }, + "parameters": [ + { + "id": 276, + "name": "column", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The column to filter on." + }, + "type": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } + } + }, + { + "id": 277, + "name": "range", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The range to filter with.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "id": 177, + "typeArguments": [ + { + "type": "reference", + "id": 180, + "name": "T" + } + ], + "name": "default" + } + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 282, + "name": "nxr", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 313, + "character": 2 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 283, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "signatures": [ + { + "id": 284, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Finds all rows whose range value on the stated `column` does not extend\nto the right of the specified `range`." + }, + "parameters": [ + { + "id": 285, + "name": "column", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The column to filter on." + }, + "type": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } + } + }, + { + "id": 286, + "name": "range", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The range to filter with.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "id": 177, + "typeArguments": [ + { + "type": "reference", + "id": 180, + "name": "T" + } + ], + "name": "default" + } + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 300, + "name": "ov", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 349, + "character": 2 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 301, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "signatures": [ + { + "id": 302, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Finds all rows whose array or range value on the stated `column` overlaps\n(has a value in common) with the specified `value`." + }, + "parameters": [ + { + "id": 303, + "name": "column", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The column to filter on." + }, + "type": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } + } + }, + { + "id": 304, + "name": "value", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The value to filter with.\n" + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "indexedAccess", + "indexType": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } + }, + "objectType": { + "type": "reference", + "id": 180, + "name": "T" + } + } + } + ] + } + } + ], + "type": { + "type": "reference", + "id": 177, + "typeArguments": [ + { + "type": "reference", + "id": 180, + "name": "T" + } + ], + "name": "default" + } + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 399, "name": "schema", "kind": 1024, "kindString": "Property", @@ -33998,8 +17428,8 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 11, + "fileName": "src/lib/types.ts", + "line": 55, "character": 12 } ], @@ -34009,12 +17439,11 @@ }, "inheritedFrom": { "type": "reference", - "id": 460, - "name": "default.schema" + "name": "PostgrestTransformBuilder.schema" } }, { - "id": 370, + "id": 401, "name": "shouldThrowOnError", "kind": 1024, "kindString": "Property", @@ -34023,8 +17452,8 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 13, + "fileName": "src/lib/types.ts", + "line": 57, "character": 12 } ], @@ -34032,15 +17461,13 @@ "type": "intrinsic", "name": "boolean" }, - "defaultValue": "false", "inheritedFrom": { "type": "reference", - "id": 462, - "name": "default.shouldThrowOnError" + "name": "PostgrestTransformBuilder.shouldThrowOnError" } }, { - "id": 371, + "id": 402, "name": "signal", "kind": 1024, "kindString": "Property", @@ -34050,8 +17477,8 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 14, + "fileName": "src/lib/types.ts", + "line": 58, "character": 12 } ], @@ -34063,12 +17490,179 @@ }, "inheritedFrom": { "type": "reference", - "id": 463, - "name": "default.signal" + "name": "PostgrestTransformBuilder.signal" } }, { - "id": 366, + "id": 255, + "name": "sl", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 268, + "character": 2 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 256, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "signatures": [ + { + "id": 257, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Finds all rows whose range value on the stated `column` is strictly to the\nleft of the specified `range`." + }, + "parameters": [ + { + "id": 258, + "name": "column", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The column to filter on." + }, + "type": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } + } + }, + { + "id": 259, + "name": "range", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The range to filter with.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "id": 177, + "typeArguments": [ + { + "type": "reference", + "id": 180, + "name": "T" + } + ], + "name": "default" + } + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 264, + "name": "sr", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 283, + "character": 2 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 265, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "signatures": [ + { + "id": 266, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Finds all rows whose range value on the stated `column` is strictly to\nthe right of the specified `range`." + }, + "parameters": [ + { + "id": 267, + "name": "column", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The column to filter on." + }, + "type": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } + } + }, + { + "id": 268, + "name": "range", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The range to filter with.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "id": 177, + "typeArguments": [ + { + "type": "reference", + "id": 180, + "name": "T" + } + ], + "name": "default" + } + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 394, "name": "url", "kind": 1024, "kindString": "Property", @@ -34077,8 +17671,8 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 9, + "fileName": "src/lib/types.ts", + "line": 53, "character": 12 } ], @@ -34090,43 +17684,39 @@ }, "inheritedFrom": { "type": "reference", - "id": 458, - "name": "default.url" + "name": "PostgrestTransformBuilder.url" } }, { - "id": 342, + "id": 373, "name": "abortSignal", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 124, + "fileName": "src/lib/PostgrestTransformBuilder.ts", + "line": 91, "character": 2 } ], "signatures": [ { - "id": 343, + "id": 374, "name": "abortSignal", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Set the AbortSignal for the fetch request." + "shortText": "Sets the AbortSignal for the fetch request." }, "parameters": [ { - "id": 344, + "id": 375, "name": "signal", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "shortText": "The AbortSignal to use for the fetch request\n" - }, "type": { "type": "reference", "qualifiedName": "AbortSignal", @@ -34137,94 +17727,78 @@ ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" }, "inheritedFrom": { "type": "reference", - "id": 435, - "name": "default.abortSignal" + "name": "PostgrestTransformBuilder.abortSignal" } } ], "inheritedFrom": { "type": "reference", - "id": 434, - "name": "default.abortSignal" + "name": "PostgrestTransformBuilder.abortSignal" } }, { - "id": 204, + "id": 242, "name": "containedBy", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 214, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 238, "character": 2 } ], "signatures": [ { - "id": 205, + "id": 243, "name": "containedBy", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Only relevant for jsonb, array, and range columns. Match only rows where\nevery element appearing in `column` is contained by `value`." + "shortText": "Finds all rows whose json, array, or range value on the stated `column` is\ncontained by the specified `value`." }, - "typeParameter": [ - { - "id": 206, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 207, + "id": 244, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The jsonb, array, or range column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 206, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 208, + "id": 245, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The jsonb, array, or range value to filter with\n" + "shortText": "The value to filter with.\n" }, "type": { "type": "union", @@ -34234,34 +17808,26 @@ "name": "string" }, { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" + "type": "intrinsic", + "name": "object" }, { "type": "array", "elementType": { "type": "indexedAccess", "indexType": { - "type": "reference", - "id": 206, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } }, "objectType": { "type": "reference", - "id": 113, - "name": "Row" + "id": 180, + "name": "T" } } } @@ -34271,93 +17837,12 @@ ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 209, - "name": "containedBy", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 210, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 211, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "unknown" - } - }, - { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - } - ] - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -34366,65 +17851,56 @@ ] }, { - "id": 196, + "id": 233, "name": "contains", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 187, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 213, "character": 2 } ], "signatures": [ { - "id": 197, + "id": 234, "name": "contains", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Only relevant for jsonb, array, and range columns. Match only rows where\n`column` contains every element appearing in `value`." + "shortText": "Finds all rows whose json, array, or range value on the stated `column`\ncontains the values specified in `value`." }, - "typeParameter": [ - { - "id": 198, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 199, + "id": 235, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The jsonb, array, or range column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 198, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 200, + "id": 236, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The jsonb, array, or range value to filter with\n" + "shortText": "The value to filter with.\n" }, "type": { "type": "union", @@ -34434,34 +17910,26 @@ "name": "string" }, { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" + "type": "intrinsic", + "name": "object" }, { "type": "array", "elementType": { "type": "indexedAccess", "indexType": { - "type": "reference", - "id": 198, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } }, "objectType": { "type": "reference", - "id": 113, - "name": "Row" + "id": 180, + "name": "T" } } } @@ -34471,93 +17939,12 @@ ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 201, - "name": "contains", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 202, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 203, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "unknown" - } - }, - { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - } - ] - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -34566,34 +17953,34 @@ ] }, { - "id": 349, + "id": 380, "name": "csv", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 155, + "fileName": "src/lib/PostgrestTransformBuilder.ts", + "line": 119, "character": 2 } ], "signatures": [ { - "id": 350, + "id": 381, "name": "csv", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Return `data` as a string in CSV format." + "shortText": "Set the response type to CSV." }, "type": { "type": "reference", "typeArguments": [ { "type": "reference", - "id": 521, + "id": 427, "typeArguments": [ { "type": "intrinsic", @@ -34609,155 +17996,94 @@ }, "inheritedFrom": { "type": "reference", - "id": 442, - "name": "default.csv" + "name": "PostgrestTransformBuilder.csv" } } ], "inheritedFrom": { "type": "reference", - "id": 441, - "name": "default.csv" + "name": "PostgrestTransformBuilder.csv" } }, { - "id": 116, + "id": 193, "name": "eq", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 39, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 85, "character": 2 } ], "signatures": [ { - "id": 117, + "id": 194, "name": "eq", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Match only rows where `column` is equal to `value`.", - "text": "To check if the value of `column` is NULL, you should use `.is()` instead.\n" + "shortText": "Finds all rows whose value on the stated `column` exactly matches the\nspecified `value`." }, - "typeParameter": [ - { - "id": 118, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 119, + "id": 195, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 118, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 120, + "id": 196, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The value to filter with\n" + "shortText": "The value to filter with.\n" }, "type": { "type": "indexedAccess", "indexType": { - "type": "reference", - "id": 118, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } }, "objectType": { "type": "reference", - "id": 113, - "name": "Row" + "id": 180, + "name": "T" } } } ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 121, - "name": "eq", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 122, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 123, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -34766,63 +18092,56 @@ ] }, { - "id": 353, + "id": 384, "name": "explain", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 189, + "fileName": "src/lib/PostgrestTransformBuilder.ts", + "line": 141, "character": 2 } ], "signatures": [ { - "id": 354, + "id": 385, "name": "explain", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Return `data` as the EXPLAIN plan for the query." + "shortText": "Obtains the EXPLAIN plan for this request." }, "parameters": [ { - "id": 355, - "name": "options", + "id": 386, + "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "shortText": "Named parameters\n" - }, - "originalName": "__namedParameters", "type": { "type": "reflection", "declaration": { - "id": 356, + "id": 387, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 357, + "id": 388, "name": "analyze", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "If `true`, the query will be executed and the\nactual run time will be returned\n" - }, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 197, + "fileName": "src/lib/PostgrestTransformBuilder.ts", + "line": 148, "character": 4 } ], @@ -34832,20 +18151,17 @@ } }, { - "id": 360, + "id": 391, "name": "buffers", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "If `true`, include information on buffer usage\n" - }, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 200, + "fileName": "src/lib/PostgrestTransformBuilder.ts", + "line": 151, "character": 4 } ], @@ -34855,52 +18171,17 @@ } }, { - "id": 362, - "name": "format", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "The format of the output, can be `\"text\"` (default)\nor `\"json\"`\n" - }, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 202, - "character": 4 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "text" - }, - { - "type": "literal", - "value": "json" - } - ] - } - }, - { - "id": 359, + "id": 390, "name": "settings", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "If `true`, include information on configuration\nparameters that affect query planning\n" - }, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 199, + "fileName": "src/lib/PostgrestTransformBuilder.ts", + "line": 150, "character": 4 } ], @@ -34910,20 +18191,17 @@ } }, { - "id": 358, + "id": 389, "name": "verbose", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "If `true`, the query identifier will be returned\nand `data` will include the output columns of the query\n" - }, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 198, + "fileName": "src/lib/PostgrestTransformBuilder.ts", + "line": 149, "character": 4 } ], @@ -34933,20 +18211,17 @@ } }, { - "id": 361, + "id": 392, "name": "wal", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "If `true`, include information on WAL record generation\n" - }, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 201, + "fileName": "src/lib/PostgrestTransformBuilder.ts", + "line": 152, "character": 4 } ], @@ -34960,7 +18235,7 @@ { "title": "Properties", "kind": 1024, - "children": [357, 360, 362, 359, 358, 361] + "children": [388, 391, 390, 389, 392] } ] } @@ -34969,320 +18244,127 @@ } ], "type": { - "type": "union", - "types": [ + "type": "reference", + "typeArguments": [ { "type": "reference", + "id": 425, "typeArguments": [ { "type": "reference", - "id": 521, "typeArguments": [ { "type": "intrinsic", "name": "string" - } - ], - "name": "PostgrestSingleResponse" - } - ], - "qualifiedName": "PromiseLike", - "package": "typescript", - "name": "PromiseLike" - }, - { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 519, - "typeArguments": [ + }, { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" + "type": "intrinsic", + "name": "unknown" } ], - "name": "PostgrestResponse" + "qualifiedName": "Record", + "package": "typescript", + "name": "Record" } ], - "qualifiedName": "PromiseLike", - "package": "typescript", - "name": "PromiseLike" + "name": "PostgrestResponse" } - ] + ], + "qualifiedName": "PromiseLike", + "package": "typescript", + "name": "PromiseLike" }, "inheritedFrom": { "type": "reference", - "id": 446, - "name": "default.explain" + "name": "PostgrestTransformBuilder.explain" } } ], "inheritedFrom": { "type": "reference", - "id": 445, - "name": "default.explain" + "name": "PostgrestTransformBuilder.explain" } }, { - "id": 298, + "id": 341, "name": "filter", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 439, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 452, "character": 2 } ], "signatures": [ { - "id": 299, + "id": 342, "name": "filter", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Match only rows which satisfy the filter. This is an escape hatch - you\nshould use the specific filter methods wherever possible.", - "text": "Unlike most filters, `opearator` and `value` are used as-is and need to\nfollow [PostgREST\nsyntax](https://postgrest.org/en/stable/api.html#operators). You also need\nto make sure they are properly sanitized.\n" + "shortText": "Finds all rows whose `column` satisfies the filter." }, - "typeParameter": [ - { - "id": 300, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 301, + "id": 343, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 300, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 302, + "id": 344, "name": "operator", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The operator to filter with, following PostgREST syntax" + "shortText": "The operator to filter with." }, "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "FilterOperator" - }, - { - "type": "literal", - "value": "not.eq" - }, - { - "type": "literal", - "value": "not.neq" - }, - { - "type": "literal", - "value": "not.gt" - }, - { - "type": "literal", - "value": "not.gte" - }, - { - "type": "literal", - "value": "not.lt" - }, - { - "type": "literal", - "value": "not.lte" - }, - { - "type": "literal", - "value": "not.like" - }, - { - "type": "literal", - "value": "not.ilike" - }, - { - "type": "literal", - "value": "not.is" - }, - { - "type": "literal", - "value": "not.in" - }, - { - "type": "literal", - "value": "not.cs" - }, - { - "type": "literal", - "value": "not.cd" - }, - { - "type": "literal", - "value": "not.sl" - }, - { - "type": "literal", - "value": "not.sr" - }, - { - "type": "literal", - "value": "not.nxl" - }, - { - "type": "literal", - "value": "not.nxr" - }, - { - "type": "literal", - "value": "not.adj" - }, - { - "type": "literal", - "value": "not.ov" - }, - { - "type": "literal", - "value": "not.fts" - }, - { - "type": "literal", - "value": "not.plfts" - }, - { - "type": "literal", - "value": "not.phfts" - }, - { - "type": "literal", - "value": "not.wfts" - } - ] + "type": "reference", + "name": "FilterOperator" } }, { - "id": 303, + "id": 345, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The value to filter with, following PostgREST syntax\n" + "shortText": "The value to filter with.\n" }, "type": { "type": "intrinsic", - "name": "unknown" + "name": "any" } } ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 304, - "name": "filter", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 305, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 306, - "name": "operator", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 307, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -35291,34 +18373,164 @@ ] }, { - "id": 351, + "id": 313, + "name": "fts", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 391, + "character": 2 + } + ], + "signatures": [ + { + "id": 314, + "name": "fts", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Finds all rows whose tsvector value on the stated `column` matches\nto_tsquery(`query`).", + "tags": [ + { + "tag": "deprecated", + "text": "Use `textSearch()` instead.\n" + } + ] + }, + "parameters": [ + { + "id": 315, + "name": "column", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The column to filter on." + }, + "type": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } + } + }, + { + "id": 316, + "name": "query", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The Postgres tsquery string to filter with." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 317, + "name": "config", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The text search configuration to use.\n" + }, + "originalName": "__namedParameters", + "type": { + "type": "reflection", + "declaration": { + "id": 318, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 319, + "name": "config", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 391, + "character": 52 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [319] + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "id": 177, + "typeArguments": [ + { + "type": "reference", + "id": 180, + "name": "T" + } + ], + "name": "default" + } + } + ] + }, + { + "id": 382, "name": "geojson", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 163, + "fileName": "src/lib/PostgrestTransformBuilder.ts", + "line": 127, "character": 2 } ], "signatures": [ { - "id": 352, + "id": 383, "name": "geojson", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Return `data` as an object in [GeoJSON](https://geojson.org) format." + "shortText": "Set the response type to GeoJSON." }, "type": { "type": "reference", "typeArguments": [ { "type": "reference", - "id": 521, + "id": 427, "typeArguments": [ { "type": "reference", @@ -35346,154 +18558,94 @@ }, "inheritedFrom": { "type": "reference", - "id": 444, - "name": "default.geojson" + "name": "PostgrestTransformBuilder.geojson" } } ], "inheritedFrom": { "type": "reference", - "id": 443, - "name": "default.geojson" + "name": "PostgrestTransformBuilder.geojson" } }, { - "id": 132, + "id": 201, "name": "gt", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 65, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 109, "character": 2 } ], "signatures": [ { - "id": 133, + "id": 202, "name": "gt", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Match only rows where `column` is greater than `value`." + "shortText": "Finds all rows whose value on the stated `column` is greater than the\nspecified `value`." }, - "typeParameter": [ - { - "id": 134, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 135, + "id": 203, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 134, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 136, + "id": 204, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The value to filter with\n" + "shortText": "The value to filter with.\n" }, "type": { "type": "indexedAccess", "indexType": { - "type": "reference", - "id": 134, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } }, "objectType": { "type": "reference", - "id": 113, - "name": "Row" + "id": 180, + "name": "T" } } } ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 137, - "name": "gt", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 138, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 139, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -35502,142 +18654,84 @@ ] }, { - "id": 140, + "id": 205, "name": "gte", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 78, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 121, "character": 2 } ], "signatures": [ { - "id": 141, + "id": 206, "name": "gte", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Match only rows where `column` is greater than or equal to `value`." + "shortText": "Finds all rows whose value on the stated `column` is greater than or\nequal to the specified `value`." }, - "typeParameter": [ - { - "id": 142, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 143, + "id": 207, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 142, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 144, + "id": 208, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The value to filter with\n" + "shortText": "The value to filter with.\n" }, "type": { "type": "indexedAccess", "indexType": { - "type": "reference", - "id": 142, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } }, "objectType": { "type": "reference", - "id": 113, - "name": "Row" + "id": 180, + "name": "T" } } } ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 145, - "name": "gte", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 146, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 147, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -35646,65 +18740,56 @@ ] }, { - "id": 172, + "id": 221, "name": "ilike", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 130, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 169, "character": 2 } ], "signatures": [ { - "id": 173, + "id": 222, "name": "ilike", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Match only rows where `column` matches `pattern` case-insensitively." + "shortText": "Finds all rows whose value in the stated `column` matches the supplied\n`pattern` (case insensitive)." }, - "typeParameter": [ - { - "id": 174, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 175, + "id": 223, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 174, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 176, + "id": 224, "name": "pattern", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The pattern to match with\n" + "shortText": "The pattern to filter with.\n" }, "type": { "type": "intrinsic", @@ -35714,65 +18799,12 @@ ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 177, - "name": "ilike", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 178, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 179, - "name": "pattern", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -35781,79 +18813,74 @@ ] }, { - "id": 188, + "id": 229, "name": "in", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 165, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 193, "character": 2 } ], "signatures": [ { - "id": 189, + "id": 230, "name": "in", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Match only rows where `column` is included in the `values` array." + "shortText": "Finds all rows whose value on the stated `column` is found on the\nspecified `values`." }, - "typeParameter": [ - { - "id": 190, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 191, + "id": 231, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 190, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 192, + "id": 232, "name": "values", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The values array to filter with\n" + "shortText": "The values to filter with.\n" }, "type": { "type": "array", "elementType": { "type": "indexedAccess", "indexType": { - "type": "reference", - "id": 190, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } }, "objectType": { "type": "reference", - "id": 113, - "name": "Row" + "id": 180, + "name": "T" } } } @@ -35861,68 +18888,12 @@ ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 193, - "name": "in", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 194, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 195, - "name": "values", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "unknown" - } - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -35931,182 +18902,57 @@ ] }, { - "id": 180, + "id": 225, "name": "is", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 149, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 181, "character": 2 } ], "signatures": [ { - "id": 181, + "id": 226, "name": "is", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Match only rows where `column` IS `value`.", - "text": "For non-boolean columns, this is only relevant for checking if the value of\n`column` is NULL by setting `value` to `null`.\n\nFor boolean columns, you can also set `value` to `true` or `false` and it\nwill behave the same way as `.eq()`.\n" + "shortText": "A check for exact equality (null, true, false), finds all rows whose\nvalue on the stated `column` exactly match the specified `value`." }, - "typeParameter": [ - { - "id": 182, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 183, + "id": 227, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 182, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 184, + "id": 228, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The value to filter with\n" + "shortText": "The value to filter with.\n" }, - "type": { - "type": "intersection", - "types": [ - { - "type": "intersection", - "types": [ - { - "type": "indexedAccess", - "indexType": { - "type": "reference", - "id": 182, - "name": "ColumnName" - }, - "objectType": { - "type": "reference", - "id": 113, - "name": "Row" - } - }, - { - "type": "literal", - "value": null - } - ] - }, - { - "type": "intersection", - "types": [ - { - "type": "indexedAccess", - "indexType": { - "type": "reference", - "id": 182, - "name": "ColumnName" - }, - "objectType": { - "type": "reference", - "id": 113, - "name": "Row" - } - }, - { - "type": "literal", - "value": false - } - ] - }, - { - "type": "intersection", - "types": [ - { - "type": "indexedAccess", - "indexType": { - "type": "reference", - "id": 182, - "name": "ColumnName" - }, - "objectType": { - "type": "reference", - "id": 113, - "name": "Row" - } - }, - { - "type": "literal", - "value": true - } - ] - } - ] - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 185, - "name": "is", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 186, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 187, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, "type": { "type": "union", "types": [ @@ -36124,17 +18970,12 @@ ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -36143,65 +18984,56 @@ ] }, { - "id": 164, + "id": 217, "name": "like", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 117, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 157, "character": 2 } ], "signatures": [ { - "id": 165, + "id": 218, "name": "like", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Match only rows where `column` matches `pattern` case-sensitively." + "shortText": "Finds all rows whose value in the stated `column` matches the supplied\n`pattern` (case sensitive)." }, - "typeParameter": [ - { - "id": 166, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 167, + "id": 219, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 166, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 168, + "id": 220, "name": "pattern", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The pattern to match with\n" + "shortText": "The pattern to filter with.\n" }, "type": { "type": "intrinsic", @@ -36211,65 +19043,12 @@ ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 169, - "name": "like", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 170, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 171, - "name": "pattern", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -36278,37 +19057,37 @@ ] }, { - "id": 329, + "id": 360, "name": "limit", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 95, + "fileName": "src/lib/PostgrestTransformBuilder.ts", + "line": 66, "character": 2 } ], "signatures": [ { - "id": 330, + "id": 361, "name": "limit", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Limit the query result by `count`." + "shortText": "Limits the result with the specified `count`." }, "parameters": [ { - "id": 331, + "id": 362, "name": "count", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The maximum number of rows to return" + "shortText": "The maximum no. of rows to limit to." }, "type": { "type": "intrinsic", @@ -36316,39 +19095,36 @@ } }, { - "id": 332, - "name": "options", + "id": 363, + "name": "foreignTable", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "Named parameters" + "shortText": "The foreign table to use (for foreign columns).\n" }, "originalName": "__namedParameters", "type": { "type": "reflection", "declaration": { - "id": 333, + "id": 364, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 334, + "id": 365, "name": "foreignTable", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "Set this to limit rows of foreign tables\ninstead of the current table\n" - }, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 95, + "fileName": "src/lib/PostgrestTransformBuilder.ts", + "line": 66, "character": 43 } ], @@ -36362,7 +19138,7 @@ { "title": "Properties", "kind": 1024, - "children": [334] + "children": [365] } ] } @@ -36372,171 +19148,106 @@ ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" }, "inheritedFrom": { "type": "reference", - "id": 422, - "name": "default.limit" + "name": "PostgrestTransformBuilder.limit" } } ], "inheritedFrom": { "type": "reference", - "id": 421, - "name": "default.limit" + "name": "PostgrestTransformBuilder.limit" } }, { - "id": 148, + "id": 209, "name": "lt", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 91, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 133, "character": 2 } ], "signatures": [ { - "id": 149, + "id": 210, "name": "lt", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Match only rows where `column` is less than `value`." + "shortText": "Finds all rows whose value on the stated `column` is less than the\nspecified `value`." }, - "typeParameter": [ - { - "id": 150, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 151, + "id": 211, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 150, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 152, + "id": 212, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The value to filter with\n" + "shortText": "The value to filter with.\n" }, "type": { "type": "indexedAccess", "indexType": { - "type": "reference", - "id": 150, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } }, "objectType": { "type": "reference", - "id": 113, - "name": "Row" + "id": 180, + "name": "T" } } } ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 153, - "name": "lt", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 154, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 155, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -36545,142 +19256,84 @@ ] }, { - "id": 156, + "id": 213, "name": "lte", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 104, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 145, "character": 2 } ], "signatures": [ { - "id": 157, + "id": 214, "name": "lte", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Match only rows where `column` is less than or equal to `value`." + "shortText": "Finds all rows whose value on the stated `column` is less than or equal\nto the specified `value`." }, - "typeParameter": [ - { - "id": 158, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 159, + "id": 215, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 158, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 160, + "id": 216, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The value to filter with\n" + "shortText": "The value to filter with.\n" }, "type": { "type": "indexedAccess", "indexType": { - "type": "reference", - "id": 158, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } }, "objectType": { "type": "reference", - "id": 113, - "name": "Row" + "id": 180, + "name": "T" } } } ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 161, - "name": "lte", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 162, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 163, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -36689,110 +19342,38 @@ ] }, { - "id": 276, + "id": 346, "name": "match", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 374, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 463, "character": 2 } ], "signatures": [ { - "id": 277, + "id": 347, "name": "match", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Match only rows where each column in `query` keys is equal to its\nassociated value. Shorthand for multiple `.eq()`s." + "shortText": "Finds all rows whose columns match the specified `query` object." }, - "typeParameter": [ - { - "id": 278, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 279, + "id": 348, "name": "query", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The object to filter with, with column names as keys mapped\nto their filter values\n" + "shortText": "The object to filter with, with column names as keys mapped\n to their filter values.\n" }, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 278, - "name": "ColumnName" - }, - { - "type": "indexedAccess", - "indexType": { - "type": "reference", - "id": 278, - "name": "ColumnName" - }, - "objectType": { - "type": "reference", - "id": 113, - "name": "Row" - } - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 280, - "name": "match", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 281, - "name": "query", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, "type": { "type": "reference", "typeArguments": [ @@ -36813,17 +19394,12 @@ ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -36832,43 +19408,51 @@ ] }, { - "id": 347, + "id": 378, "name": "maybeSingle", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 146, + "fileName": "src/lib/PostgrestTransformBuilder.ts", + "line": 110, "character": 2 } ], "signatures": [ { - "id": 348, + "id": 379, "name": "maybeSingle", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Return `data` as a single object instead of an array of objects.", - "text": "Query result must be zero or one row (e.g. using `.limit(1)`), otherwise\nthis returns an error.\n" + "shortText": "Retrieves at most one row from the result. Result must be at most one row\n(e.g. using `eq` on a UNIQUE column), otherwise this will result in an\nerror." }, "type": { "type": "reference", "typeArguments": [ { "type": "reference", - "id": 523, + "id": 427, "typeArguments": [ { - "type": "reference", - "id": 114, - "name": "Result" + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 180, + "name": "T" + } + ] } ], - "name": "PostgrestMaybeSingleResponse" + "name": "PostgrestSingleResponse" } ], "qualifiedName": "PromiseLike", @@ -36877,154 +19461,94 @@ }, "inheritedFrom": { "type": "reference", - "id": 440, - "name": "default.maybeSingle" + "name": "PostgrestTransformBuilder.maybeSingle" } } ], "inheritedFrom": { "type": "reference", - "id": 439, - "name": "default.maybeSingle" + "name": "PostgrestTransformBuilder.maybeSingle" } }, { - "id": 124, + "id": 197, "name": "neq", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 52, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 97, "character": 2 } ], "signatures": [ { - "id": 125, + "id": 198, "name": "neq", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Match only rows where `column` is not equal to `value`." + "shortText": "Finds all rows whose value on the stated `column` doesn't match the\nspecified `value`." }, - "typeParameter": [ - { - "id": 126, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 127, + "id": 199, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 126, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 128, + "id": 200, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The value to filter with\n" + "shortText": "The value to filter with.\n" }, "type": { "type": "indexedAccess", "indexType": { - "type": "reference", - "id": 126, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } }, "objectType": { "type": "reference", - "id": 113, - "name": "Row" + "id": 180, + "name": "T" } } } ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 129, - "name": "neq", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 130, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 131, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -37033,66 +19557,56 @@ ] }, { - "id": 282, + "id": 182, "name": "not", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 396, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 61, "character": 2 } ], "signatures": [ { - "id": 283, + "id": 183, "name": "not", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Match only rows which doesn't satisfy the filter.", - "text": "Unlike most filters, `opearator` and `value` are used as-is and need to\nfollow [PostgREST\nsyntax](https://postgrest.org/en/stable/api.html#operators). You also need\nto make sure they are properly sanitized.\n" + "shortText": "Finds all rows which doesn't satisfy the filter." }, - "typeParameter": [ - { - "id": 284, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 285, + "id": 184, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 284, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 286, + "id": 185, "name": "operator", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The operator to be negated to filter with, following\nPostgREST syntax" + "shortText": "The operator to filter with." }, "type": { "type": "reference", @@ -37100,101 +19614,28 @@ } }, { - "id": 287, + "id": 186, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The value to filter with, following PostgREST syntax\n" + "shortText": "The value to filter with.\n" }, "type": { - "type": "indexedAccess", - "indexType": { - "type": "reference", - "id": 284, - "name": "ColumnName" - }, - "objectType": { - "type": "reference", - "id": 113, - "name": "Row" - } + "type": "intrinsic", + "name": "any" } } ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 288, - "name": "not", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 289, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 290, - "name": "operator", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 291, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -37203,38 +19644,37 @@ ] }, { - "id": 292, + "id": 187, "name": "or", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 420, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 72, "character": 2 } ], "signatures": [ { - "id": 293, + "id": 188, "name": "or", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Match only rows which satisfy at least one of the filters.", - "text": "Unlike most filters, `filters` is used as-is and needs to follow [PostgREST\nsyntax](https://postgrest.org/en/stable/api.html#operators). You also need\nto make sure it's properly sanitized.\n\nIt's currently not possible to do an `.or()` filter across multiple tables.\n" + "shortText": "Finds all rows satisfying at least one of the filters." }, "parameters": [ { - "id": 294, + "id": 189, "name": "filters", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The filters to use, following PostgREST syntax" + "shortText": "The filters to use, separated by commas." }, "type": { "type": "intrinsic", @@ -37242,26 +19682,26 @@ } }, { - "id": 295, + "id": 190, "name": "foreignTable", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "Set this to filter on foreign tables instead of the\ncurrent table\n" + "shortText": "The foreign table to use (if `column` is a foreign column).\n" }, "originalName": "__namedParameters", "type": { "type": "reflection", "declaration": { - "id": 296, + "id": 191, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 297, + "id": 192, "name": "foreignTable", "kind": 1024, "kindString": "Property", @@ -37270,8 +19710,8 @@ }, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 420, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 72, "character": 42 } ], @@ -37285,7 +19725,7 @@ { "title": "Properties", "kind": 1024, - "children": [297] + "children": [192] } ] } @@ -37295,17 +19735,12 @@ ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -37314,219 +19749,65 @@ ] }, { - "id": 313, + "id": 352, "name": "order", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 59, + "fileName": "src/lib/PostgrestTransformBuilder.ts", + "line": 40, "character": 2 } ], "signatures": [ { - "id": 314, + "id": 353, "name": "order", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Order the query result by `column`.", - "text": "You can call this method multiple times to order by multiple columns.\n\nYou can order foreign tables, but it doesn't affect the ordering of the\ncurrent table.\n" + "shortText": "Orders the result with the specified `column`." }, - "typeParameter": [ - { - "id": 315, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 316, + "id": 354, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The column to order by" + "shortText": "The column to order on." }, "type": { - "type": "reference", - "id": 315, - "name": "ColumnName" - } - }, - { - "id": 317, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "Named parameters" - }, - "type": { - "type": "reflection", - "declaration": { - "id": 318, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 319, - "name": "ascending", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "If `true`, the result will be in ascending order" - }, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 61, - "character": 16 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 321, - "name": "foreignTable", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "Set this to order a foreign table by foreign\ncolumns\n" - }, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 61, - "character": 59 - } - ], - "type": { - "type": "intrinsic", - "name": "undefined" - } - }, - { - "id": 320, - "name": "nullsFirst", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "If `true`, `null`s appear first. If `false`,\n`null`s appear last." - }, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 61, - "character": 37 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [319, 321, 320] - } - ] + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" } } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - }, - "inheritedFrom": { - "type": "reference", - "id": 406, - "name": "default.order" - } - }, - { - "id": 322, - "name": "order", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + }, { - "id": 323, - "name": "column", + "id": 355, + "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 324, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, "type": { "type": "reflection", "declaration": { - "id": 325, + "id": 356, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 326, + "id": 357, "name": "ascending", "kind": 1024, "kindString": "Property", @@ -37535,9 +19816,9 @@ }, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 65, - "character": 16 + "fileName": "src/lib/PostgrestTransformBuilder.ts", + "line": 46, + "character": 9 } ], "type": { @@ -37546,16 +19827,18 @@ } }, { - "id": 328, + "id": 359, "name": "foreignTable", "kind": 1024, "kindString": "Property", - "flags": {}, + "flags": { + "isOptional": true + }, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 65, - "character": 59 + "fileName": "src/lib/PostgrestTransformBuilder.ts", + "line": 46, + "character": 52 } ], "type": { @@ -37564,7 +19847,7 @@ } }, { - "id": 327, + "id": 358, "name": "nullsFirst", "kind": 1024, "kindString": "Property", @@ -37573,9 +19856,9 @@ }, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 65, - "character": 37 + "fileName": "src/lib/PostgrestTransformBuilder.ts", + "line": 46, + "character": 30 } ], "type": { @@ -37588,103 +19871,88 @@ { "title": "Properties", "kind": 1024, - "children": [326, 328, 327] + "children": [357, 359, 358] } ] } - } + }, + "defaultValue": "{}" } ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" }, "inheritedFrom": { "type": "reference", - "id": 414, - "name": "default.order" + "name": "PostgrestTransformBuilder.order" } } ], "inheritedFrom": { "type": "reference", - "id": 405, - "name": "default.order" + "name": "PostgrestTransformBuilder.order" } }, { - "id": 252, + "id": 296, "name": "overlaps", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 313, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 337, "character": 2 } ], "signatures": [ { - "id": 253, + "id": 297, "name": "overlaps", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Only relevant for array and range columns. Match only rows where\n`column` and `value` have an element in common." + "shortText": "Finds all rows whose array or range value on the stated `column` overlaps\n(has a value in common) with the specified `value`." }, - "typeParameter": [ - { - "id": 254, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 255, + "id": 298, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The array or range column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 254, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 256, + "id": 299, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The array or range value to filter with\n" + "shortText": "The value to filter with.\n" }, "type": { "type": "union", @@ -37698,14 +19966,18 @@ "elementType": { "type": "indexedAccess", "indexType": { - "type": "reference", - "id": 254, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } }, "objectType": { "type": "reference", - "id": 113, - "name": "Row" + "id": 180, + "name": "T" } } } @@ -37715,77 +19987,12 @@ ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 257, - "name": "overlaps", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 258, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 259, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "unknown" - } - } - ] - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -37794,91 +20001,99 @@ ] }, { - "id": 335, - "name": "range", + "id": 327, + "name": "phfts", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 110, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 423, "character": 2 } ], "signatures": [ { - "id": 336, - "name": "range", + "id": 328, + "name": "phfts", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Limit the query result by `from` and `to` inclusively." + "shortText": "Finds all rows whose tsvector value on the stated `column` matches\nphraseto_tsquery(`query`).", + "tags": [ + { + "tag": "deprecated", + "text": "Use `textSearch()` with `type: 'phrase'` instead.\n" + } + ] }, "parameters": [ { - "id": 337, - "name": "from", + "id": 329, + "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The starting index from which to limit the result" + "shortText": "The column to filter on." }, "type": { - "type": "intrinsic", - "name": "number" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 338, - "name": "to", + "id": 330, + "name": "query", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The last index to which to limit the result" + "shortText": "The Postgres tsquery string to filter with." }, "type": { "type": "intrinsic", - "name": "number" + "name": "string" } }, { - "id": 339, - "name": "options", + "id": 331, + "name": "config", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "Named parameters" + "shortText": "The text search configuration to use.\n" }, "originalName": "__namedParameters", "type": { "type": "reflection", "declaration": { - "id": 340, + "id": 332, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 341, - "name": "foreignTable", + "id": 333, + "name": "config", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "Set this to limit rows of foreign tables\ninstead of the current table\n" - }, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 110, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 423, "character": 54 } ], @@ -37892,7 +20107,7 @@ { "title": "Properties", "kind": 1024, - "children": [341] + "children": [333] } ] } @@ -37902,94 +20117,327 @@ ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" + "id": 180, + "name": "T" + } + ], + "name": "default" + } + } + ] + }, + { + "id": 320, + "name": "plfts", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 407, + "character": 2 + } + ], + "signatures": [ + { + "id": 321, + "name": "plfts", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Finds all rows whose tsvector value on the stated `column` matches\nplainto_tsquery(`query`).", + "tags": [ + { + "tag": "deprecated", + "text": "Use `textSearch()` with `type: 'plain'` instead.\n" + } + ] + }, + "parameters": [ + { + "id": 322, + "name": "column", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The column to filter on." }, + "type": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } + } + }, + { + "id": 323, + "name": "query", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The Postgres tsquery string to filter with." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 324, + "name": "config", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The text search configuration to use.\n" + }, + "originalName": "__namedParameters", + "type": { + "type": "reflection", + "declaration": { + "id": 325, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 326, + "name": "config", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 407, + "character": 54 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [326] + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "id": 177, + "typeArguments": [ { "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" + } + ], + "name": "default" + } + } + ] + }, + { + "id": 366, + "name": "range", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/PostgrestTransformBuilder.ts", + "line": 79, + "character": 2 + } + ], + "signatures": [ + { + "id": 367, + "name": "range", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Limits the result to rows within the specified range, inclusive." + }, + "parameters": [ + { + "id": 368, + "name": "from", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The starting index from which to limit the result, inclusive." + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 369, + "name": "to", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The last index to which to limit the result, inclusive." + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 370, + "name": "foreignTable", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The foreign table to use (for foreign columns).\n" + }, + "originalName": "__namedParameters", + "type": { + "type": "reflection", + "declaration": { + "id": 371, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 372, + "name": "foreignTable", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/PostgrestTransformBuilder.ts", + "line": 79, + "character": 54 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [372] + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "id": 177, + "typeArguments": [ + { + "type": "reference", + "id": 180, + "name": "T" } ], "name": "default" }, "inheritedFrom": { "type": "reference", - "id": 428, - "name": "default.range" + "name": "PostgrestTransformBuilder.range" } } ], "inheritedFrom": { "type": "reference", - "id": 427, - "name": "default.range" + "name": "PostgrestTransformBuilder.range" } }, { - "id": 244, + "id": 287, "name": "rangeAdjacent", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 299, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 322, "character": 2 } ], "signatures": [ { - "id": 245, + "id": 288, "name": "rangeAdjacent", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Only relevant for range columns. Match only rows where `column` is\nmutually exclusive to `range` and there can be no element between the two\nranges." + "shortText": "Finds all rows whose range value on the stated `column` is adjacent to\nthe specified `range`." }, - "typeParameter": [ - { - "id": 246, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 247, + "id": 289, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The range column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 246, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 248, + "id": 290, "name": "range", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The range to filter with\n" + "shortText": "The range to filter with.\n" }, "type": { "type": "intrinsic", @@ -37999,65 +20447,12 @@ ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 249, - "name": "rangeAdjacent", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 250, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 251, - "name": "range", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -38066,65 +20461,56 @@ ] }, { - "id": 212, + "id": 260, "name": "rangeGt", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 240, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 277, "character": 2 } ], "signatures": [ { - "id": 213, + "id": 261, "name": "rangeGt", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Only relevant for range columns. Match only rows where every element in\n`column` is greater than any element in `range`." + "shortText": "Finds all rows whose range value on the stated `column` is strictly to\nthe right of the specified `range`." }, - "typeParameter": [ - { - "id": 214, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 215, + "id": 262, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The range column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 214, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 216, + "id": 263, "name": "range", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The range to filter with\n" + "shortText": "The range to filter with.\n" }, "type": { "type": "intrinsic", @@ -38134,65 +20520,12 @@ ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 217, - "name": "rangeGt", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 218, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 219, - "name": "range", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -38201,65 +20534,56 @@ ] }, { - "id": 220, + "id": 269, "name": "rangeGte", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 255, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 292, "character": 2 } ], "signatures": [ { - "id": 221, + "id": 270, "name": "rangeGte", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Only relevant for range columns. Match only rows where every element in\n`column` is either contained in `range` or greater than any element in\n`range`." + "shortText": "Finds all rows whose range value on the stated `column` does not extend\nto the left of the specified `range`." }, - "typeParameter": [ - { - "id": 222, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 223, + "id": 271, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The range column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 222, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 224, + "id": 272, "name": "range", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The range to filter with\n" + "shortText": "The range to filter with.\n" }, "type": { "type": "intrinsic", @@ -38269,65 +20593,12 @@ ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 225, - "name": "rangeGte", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 226, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 227, - "name": "range", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -38336,65 +20607,56 @@ ] }, { - "id": 228, + "id": 251, "name": "rangeLt", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 269, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 262, "character": 2 } ], "signatures": [ { - "id": 229, + "id": 252, "name": "rangeLt", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Only relevant for range columns. Match only rows where every element in\n`column` is less than any element in `range`." + "shortText": "Finds all rows whose range value on the stated `column` is strictly to the\nleft of the specified `range`." }, - "typeParameter": [ - { - "id": 230, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 231, + "id": 253, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The range column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 230, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 232, + "id": 254, "name": "range", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The range to filter with\n" + "shortText": "The range to filter with.\n" }, "type": { "type": "intrinsic", @@ -38404,65 +20666,12 @@ ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 233, - "name": "rangeLt", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 234, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 235, - "name": "range", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -38471,65 +20680,56 @@ ] }, { - "id": 236, + "id": 278, "name": "rangeLte", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 284, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 307, "character": 2 } ], "signatures": [ { - "id": 237, + "id": 279, "name": "rangeLte", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Only relevant for range columns. Match only rows where every element in\n`column` is either contained in `range` or less than any element in\n`range`." + "shortText": "Finds all rows whose range value on the stated `column` does not extend\nto the right of the specified `range`." }, - "typeParameter": [ - { - "id": 238, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 239, + "id": 280, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The range column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 238, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 240, + "id": 281, "name": "range", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The range to filter with\n" + "shortText": "The range to filter with.\n" }, "type": { "type": "intrinsic", @@ -38539,65 +20739,12 @@ ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 241, - "name": "rangeLte", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 242, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 243, - "name": "range", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -38606,223 +20753,102 @@ ] }, { - "id": 363, - "name": "rollback", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 229, - "character": 2 - } - ], - "signatures": [ - { - "id": 364, - "name": "rollback", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Rollback the query.", - "text": "`data` will still be returned, but the query is not committed.\n" - }, - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - }, - "inheritedFrom": { - "type": "reference", - "id": 456, - "name": "default.rollback" - } - } - ], - "inheritedFrom": { - "type": "reference", - "id": 455, - "name": "default.rollback" - } - }, - { - "id": 308, + "id": 349, "name": "select", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 18, + "fileName": "src/lib/PostgrestTransformBuilder.ts", + "line": 13, "character": 2 } ], "signatures": [ { - "id": 309, + "id": 350, "name": "select", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Perform a SELECT on the query result.", - "text": "By default, `.insert()`, `.update()`, `.upsert()`, and `.delete()` do not\nreturn modified rows. By calling this method, modified rows are returned in\n`data`.\n" + "shortText": "Performs vertical filtering with SELECT." }, - "typeParameter": [ + "parameters": [ { - "id": 310, - "name": "Query", - "kind": 131072, - "kindString": "Type parameter", + "id": 351, + "name": "columns", + "kind": 32768, + "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "The columns to retrieve, separated by commas.\n" + }, "type": { "type": "intrinsic", "name": "string" }, - "default": { - "type": "literal", - "value": "*" - } - }, - { - "id": 311, - "name": "NewResult", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "default": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "conditional", - "checkType": { - "type": "reference", - "id": 310, - "name": "Query" - }, - "extendsType": { - "type": "literal", - "value": "*" - }, - "trueType": { - "type": "literal", - "value": "*" - }, - "falseType": { - "type": "reference", - "id": 310, - "name": "Query" - } - } - ], - "name": "GetResult" - } - } - ], - "parameters": [ - { - "id": 312, - "name": "columns", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "The columns to retrieve, separated by commas\n" - }, - "type": { - "type": "reference", - "id": 310, - "name": "Query" - } + "defaultValue": "'*'" } ], "type": { "type": "reference", - "id": 394, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 311, - "name": "NewResult" + "id": 180, + "name": "T" } ], "name": "default" }, "inheritedFrom": { "type": "reference", - "id": 401, - "name": "default.select" + "name": "PostgrestTransformBuilder.select" } } ], "inheritedFrom": { "type": "reference", - "id": 400, - "name": "default.select" + "name": "PostgrestTransformBuilder.select" } }, { - "id": 345, + "id": 376, "name": "single", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 135, + "fileName": "src/lib/PostgrestTransformBuilder.ts", + "line": 100, "character": 2 } ], "signatures": [ { - "id": 346, + "id": 377, "name": "single", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Return `data` as a single object instead of an array of objects.", - "text": "Query result must be one row (e.g. using `.limit(1)`), otherwise this\nreturns an error.\n" + "shortText": "Retrieves only one row from the result. Result must be one row (e.g. using\n`limit`), otherwise this will result in an error." }, "type": { "type": "reference", "typeArguments": [ { "type": "reference", - "id": 521, + "id": 427, "typeArguments": [ { "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "PostgrestSingleResponse" @@ -38834,77 +20860,66 @@ }, "inheritedFrom": { "type": "reference", - "id": 438, - "name": "default.single" + "name": "PostgrestTransformBuilder.single" } } ], "inheritedFrom": { "type": "reference", - "id": 437, - "name": "default.single" + "name": "PostgrestTransformBuilder.single" } }, { - "id": 260, + "id": 305, "name": "textSearch", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 339, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 360, "character": 2 } ], "signatures": [ { - "id": 261, + "id": 306, "name": "textSearch", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Only relevant for text and tsvector columns. Match only rows where\n`column` matches the query string in `query`." + "shortText": "Finds all rows whose text or tsvector value on the stated `column` matches\nthe tsquery in `query`." }, - "typeParameter": [ - { - "id": 262, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 263, + "id": 307, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The text or tsvector column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 262, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 264, + "id": 308, "name": "query", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The query text to match with" + "shortText": "The Postgres tsquery string to filter with." }, "type": { "type": "intrinsic", @@ -38912,41 +20927,33 @@ } }, { - "id": 265, - "name": "options", + "id": 309, + "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "Named parameters" - }, + "flags": {}, "type": { "type": "reflection", "declaration": { - "id": 266, + "id": 310, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 267, + "id": 311, "name": "config", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "The text search configuration to use" - }, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 342, - "character": 16 + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 366, + "character": 9 } ], "type": { @@ -38955,26 +20962,27 @@ } }, { - "id": 268, + "id": 312, "name": "type", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "Change how the `query` text is interpreted\n" - }, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 342, - "character": 33 + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 366, + "character": 26 } ], "type": { "type": "union", "types": [ + { + "type": "literal", + "value": null + }, { "type": "literal", "value": "plain" @@ -38995,155 +21003,22 @@ { "title": "Properties", "kind": 1024, - "children": [267, 268] + "children": [311, 312] } ] } - } + }, + "defaultValue": "{}" } ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 269, - "name": "textSearch", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 270, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 271, - "name": "query", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 272, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 273, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 274, - "name": "config", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 347, - "character": 16 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 275, - "name": "type", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 347, - "character": 33 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "plain" - }, - { - "type": "literal", - "value": "phrase" - }, - { - "type": "literal", - "value": "websearch" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [274, 275] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -39152,47 +21027,47 @@ ] }, { - "id": 380, + "id": 412, "name": "then", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 48, + "fileName": "src/lib/types.ts", + "line": 91, "character": 2 } ], "signatures": [ { - "id": 381, + "id": 413, "name": "then", "kind": 4096, "kindString": "Call signature", "flags": {}, "typeParameter": [ { - "id": 382, + "id": 414, "name": "TResult1", "kind": 131072, "kindString": "Type parameter", "flags": {}, "default": { "type": "reference", - "id": 519, + "id": 425, "typeArguments": [ { "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "PostgrestResponse" } }, { - "id": 383, + "id": 415, "name": "TResult2", "kind": 131072, "kindString": "Type parameter", @@ -39205,7 +21080,7 @@ ], "parameters": [ { - "id": 384, + "id": 416, "name": "onfulfilled", "kind": 32768, "kindString": "Parameter", @@ -39222,33 +21097,33 @@ { "type": "reflection", "declaration": { - "id": 385, + "id": 417, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 386, + "id": 418, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 387, + "id": 419, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 519, + "id": 425, "typeArguments": [ { "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "PostgrestResponse" @@ -39260,7 +21135,7 @@ "types": [ { "type": "reference", - "id": 382, + "id": 72, "name": "TResult1" }, { @@ -39268,7 +21143,7 @@ "typeArguments": [ { "type": "reference", - "id": 382, + "id": 72, "name": "TResult1" } ], @@ -39286,7 +21161,7 @@ } }, { - "id": 388, + "id": 420, "name": "onrejected", "kind": 32768, "kindString": "Parameter", @@ -39303,21 +21178,21 @@ { "type": "reflection", "declaration": { - "id": 389, + "id": 421, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 390, + "id": 422, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 391, + "id": 423, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -39333,7 +21208,7 @@ "types": [ { "type": "reference", - "id": 383, + "id": 73, "name": "TResult2" }, { @@ -39341,7 +21216,7 @@ "typeArguments": [ { "type": "reference", - "id": 383, + "id": 73, "name": "TResult2" } ], @@ -39367,12 +21242,12 @@ "types": [ { "type": "reference", - "id": 382, + "id": 72, "name": "TResult1" }, { "type": "reference", - "id": 383, + "id": 73, "name": "TResult2" } ] @@ -39384,33 +21259,31 @@ }, "inheritedFrom": { "type": "reference", - "id": 473, - "name": "default.then" + "name": "PostgrestTransformBuilder.then" } } ], "inheritedFrom": { "type": "reference", - "id": 472, - "name": "default.then" + "name": "PostgrestTransformBuilder.then" } }, { - "id": 378, + "id": 409, "name": "throwOnError", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 43, + "fileName": "src/lib/types.ts", + "line": 83, "character": 2 } ], "signatures": [ { - "id": 379, + "id": 410, "name": "throwOnError", "kind": 4096, "kindString": "Call signature", @@ -39419,92 +21292,209 @@ "shortText": "If there's an error with the query, throwOnError will reject the promise by\nthrowing the error instead of returning it as part of a successful response.", "text": "{@link https://github.com/supabase/supabase-js/issues/92}\n" }, + "parameters": [ + { + "id": 411, + "name": "throwOnError", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" }, "inheritedFrom": { "type": "reference", - "id": 471, - "name": "default.throwOnError" + "name": "PostgrestTransformBuilder.throwOnError" } } ], "inheritedFrom": { "type": "reference", - "id": 470, - "name": "default.throwOnError" + "name": "PostgrestTransformBuilder.throwOnError" } + }, + { + "id": 334, + "name": "wfts", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 439, + "character": 2 + } + ], + "signatures": [ + { + "id": 335, + "name": "wfts", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Finds all rows whose tsvector value on the stated `column` matches\nwebsearch_to_tsquery(`query`).", + "tags": [ + { + "tag": "deprecated", + "text": "Use `textSearch()` with `type: 'websearch'` instead.\n" + } + ] + }, + "parameters": [ + { + "id": 336, + "name": "column", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The column to filter on." + }, + "type": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } + } + }, + { + "id": 337, + "name": "query", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The Postgres tsquery string to filter with." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 338, + "name": "config", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The text search configuration to use.\n" + }, + "originalName": "__namedParameters", + "type": { + "type": "reflection", + "declaration": { + "id": 339, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 340, + "name": "config", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 439, + "character": 53 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [340] + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "id": 177, + "typeArguments": [ + { + "type": "reference", + "id": 180, + "name": "T" + } + ], + "name": "default" + } + } + ] } ], "groups": [ { "title": "Constructors", "kind": 512, - "children": [111] + "children": [178] }, { "title": "Properties", "kind": 1024, - "children": [377, 369, 372, 367, 365, 368, 370, 371, 366] + "children": [ + 291, 408, 400, 246, 237, 403, 395, 393, 273, 282, 300, 399, 401, 402, 255, 264, 394 + ] }, { "title": "Methods", "kind": 2048, "children": [ - 342, 204, 196, 349, 116, 353, 298, 351, 132, 140, 172, 188, 180, 164, 329, 148, 156, - 276, 347, 124, 282, 292, 313, 252, 335, 244, 212, 220, 228, 236, 363, 308, 345, 260, - 380, 378 + 373, 242, 233, 380, 193, 384, 341, 313, 382, 201, 205, 221, 229, 225, 217, 360, 209, + 213, 346, 378, 197, 182, 187, 352, 296, 327, 320, 366, 287, 260, 269, 251, 278, 349, + 376, 305, 412, 409, 334 ] } ], "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 27, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 53, "character": 21 } ], "typeParameter": [ { - "id": 392, - "name": "Row", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - } - }, - { - "id": 393, - "name": "Result", + "id": 424, + "name": "T", "kind": 131072, "kindString": "Type parameter", "flags": {} @@ -39513,17 +21503,11 @@ "extendedTypes": [ { "type": "reference", - "id": 394, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -39531,70 +21515,55 @@ ] }, { - "id": 49, + "id": 83, "name": "PostgrestQueryBuilder", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 50, + "id": 84, "name": "constructor", "kind": 512, "kindString": "Constructor", "flags": {}, "sources": [ { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 13, + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 5, "character": 2 } ], "signatures": [ { - "id": 51, + "id": 85, "name": "new PostgrestQueryBuilder", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "typeParameter": [ { - "id": 52, - "name": "Relation", + "id": 86, + "name": "T", "kind": 131072, "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "GenericTable" - }, - { - "type": "reference", - "name": "GenericView" - } - ] - } + "flags": {} } ], "parameters": [ { - "id": 53, + "id": 87, "name": "url", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "reference", - "qualifiedName": "URL", - "package": "typescript", - "name": "URL" + "type": "intrinsic", + "name": "string" } }, { - "id": 54, + "id": 88, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -39602,14 +21571,14 @@ "type": { "type": "reflection", "declaration": { - "id": 55, + "id": 89, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 58, + "id": 95, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -39618,53 +21587,42 @@ }, "sources": [ { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 22, + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 15, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 59, + "id": 96, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 60, + "id": 97, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 61, + "id": 98, "name": "input", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "union", - "types": [ - { - "type": "reference", - "qualifiedName": "RequestInfo", - "package": "typescript", - "name": "RequestInfo" - }, - { - "type": "reference", - "qualifiedName": "URL", - "package": "typescript", - "name": "URL" - } - ] + "type": "reference", + "qualifiedName": "RequestInfo", + "package": "typescript", + "name": "RequestInfo" } }, { - "id": 62, + "id": 99, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -39699,7 +21657,7 @@ } }, { - "id": 56, + "id": 90, "name": "headers", "kind": 1024, "kindString": "Property", @@ -39708,30 +21666,47 @@ }, "sources": [ { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 20, + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 13, "character": 6 } ], "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "string" + "type": "reflection", + "declaration": { + "id": 91, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "indexSignature": { + "id": 92, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 93, + "name": "key", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" + } } }, { - "id": 57, + "id": 94, "name": "schema", "kind": 1024, "kindString": "Property", @@ -39740,8 +21715,8 @@ }, "sources": [ { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 21, + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 14, "character": 6 } ], @@ -39749,681 +21724,19 @@ "type": "intrinsic", "name": "string" } - } - ], - "groups": [ + }, { - "title": "Properties", - "kind": 1024, - "children": [58, 56, 57] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "id": 49, - "typeArguments": [ - { - "type": "reference", - "id": 52, - "name": "Relation" - } - ], - "name": "default" - } - } - ] - }, - { - "id": 67, - "name": "fetch", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 11, - "character": 2 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 68, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "signatures": [ - { - "id": 69, - "name": "__type", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 70, - "name": "input", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "qualifiedName": "RequestInfo", - "package": "typescript", - "name": "RequestInfo" - }, - { - "type": "reference", - "qualifiedName": "URL", - "package": "typescript", - "name": "URL" - } - ] - } - }, - { - "id": 71, - "name": "init", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "reference", - "qualifiedName": "RequestInit", - "package": "typescript", - "name": "RequestInit" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "qualifiedName": "Response", - "package": "typescript", - "name": "Response" - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - } - } - }, - { - "id": 64, - "name": "headers", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 8, - "character": 2 - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "string" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - } - }, - { - "id": 65, - "name": "schema", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 9, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 66, - "name": "signal", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 10, - "character": 2 - } - ], - "type": { - "type": "reference", - "qualifiedName": "AbortSignal", - "package": "typescript", - "name": "AbortSignal" - } - }, - { - "id": 63, - "name": "url", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 7, - "character": 2 - } - ], - "type": { - "type": "reference", - "qualifiedName": "URL", - "package": "typescript", - "name": "URL" - } - }, - { - "id": 104, - "name": "delete", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 296, - "character": 2 - } - ], - "signatures": [ - { - "id": 105, - "name": "delete", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Perform a DELETE on the table or view.", - "text": "By default, deleted rows are not returned. To return it, chain the call\nwith `.select()` after filters.\n" - }, - "parameters": [ - { - "id": 106, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "shortText": "Named parameters\n" - }, - "originalName": "__namedParameters", - "type": { - "type": "reflection", - "declaration": { - "id": 107, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 108, - "name": "count", + "id": 100, + "name": "shouldThrowOnError", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "Count algorithm to use to count deleted rows.\n\n`\"exact\"`: Exact but slow count algorithm. Performs a `COUNT(*)` under the\nhood.\n\n`\"planned\"`: Approximated but fast count algorithm. Uses the Postgres\nstatistics under the hood.\n\n`\"estimated\"`: Uses exact count for low numbers and planned count for high\nnumbers.\n" - }, "sources": [ { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 299, - "character": 4 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "exact" - }, - { - "type": "literal", - "value": "planned" - }, - { - "type": "literal", - "value": "estimated" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [108] - } - ] - } - }, - "defaultValue": "{}" - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "indexedAccess", - "indexType": { - "type": "literal", - "value": "Row" - }, - "objectType": { - "type": "reference", - "id": 52, - "name": "Relation" - } - }, - { - "type": "intrinsic", - "name": "undefined" - } - ], - "name": "default" - } - } - ] - }, - { - "id": 81, - "name": "insert", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 117, - "character": 2 - } - ], - "signatures": [ - { - "id": 82, - "name": "insert", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Perform an INSERT into the table or view.", - "text": "By default, inserted rows are not returned. To return it, chain the call\nwith `.select()`.\n" - }, - "typeParameter": [ - { - "id": 83, - "name": "Row", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - } - } - ], - "parameters": [ - { - "id": 84, - "name": "values", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "shortText": "The values to insert. Pass an object to insert a single row\nor an array to insert multiple rows.\n" - }, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 83, - "name": "Row" - }, - { - "type": "array", - "elementType": { - "type": "reference", - "id": 83, - "name": "Row" - } - } - ] - } - }, - { - "id": 85, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "shortText": "Named parameters\n" - }, - "originalName": "__namedParameters", - "type": { - "type": "reflection", - "declaration": { - "id": 86, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 87, - "name": "count", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "Count algorithm to use to count inserted rows.\n\n`\"exact\"`: Exact but slow count algorithm. Performs a `COUNT(*)` under the\nhood.\n\n`\"planned\"`: Approximated but fast count algorithm. Uses the Postgres\nstatistics under the hood.\n\n`\"estimated\"`: Uses exact count for low numbers and planned count for high\nnumbers.\n" - }, - "sources": [ - { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 122, - "character": 6 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "exact" - }, - { - "type": "literal", - "value": "planned" - }, - { - "type": "literal", - "value": "estimated" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [87] - } - ] - } - }, - "defaultValue": "{}" - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "indexedAccess", - "indexType": { - "type": "literal", - "value": "Row" - }, - "objectType": { - "type": "reference", - "id": 52, - "name": "Relation" - } - }, - { - "type": "intrinsic", - "name": "undefined" - } - ], - "name": "default" - } - } - ] - }, - { - "id": 72, - "name": "select", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 52, - "character": 2 - } - ], - "signatures": [ - { - "id": 73, - "name": "select", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Perform a SELECT query on the table or view." - }, - "typeParameter": [ - { - "id": 74, - "name": "Query", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - }, - "default": { - "type": "literal", - "value": "*" - } - }, - { - "id": 75, - "name": "Result", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "default": { - "type": "reference", - "typeArguments": [ - { - "type": "indexedAccess", - "indexType": { - "type": "literal", - "value": "Row" - }, - "objectType": { - "type": "reference", - "id": 52, - "name": "Relation" - } - }, - { - "type": "conditional", - "checkType": { - "type": "reference", - "id": 74, - "name": "Query" - }, - "extendsType": { - "type": "literal", - "value": "*" - }, - "trueType": { - "type": "literal", - "value": "*" - }, - "falseType": { - "type": "reference", - "id": 74, - "name": "Query" - } - } - ], - "name": "GetResult" - } - } - ], - "parameters": [ - { - "id": 76, - "name": "columns", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "The columns to retrieve, separated by commas\n" - }, - "type": { - "type": "reference", - "id": 74, - "name": "Query" - } - }, - { - "id": 77, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "shortText": "Named parameters\n" - }, - "originalName": "__namedParameters", - "type": { - "type": "reflection", - "declaration": { - "id": 78, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 80, - "name": "count", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "Count algorithm to use to count rows in the table or view.\n\n`\"exact\"`: Exact but slow count algorithm. Performs a `COUNT(*)` under the\nhood.\n\n`\"planned\"`: Approximated but fast count algorithm. Uses the Postgres\nstatistics under the hood.\n\n`\"estimated\"`: Uses exact count for low numbers and planned count for high\nnumbers.\n" - }, - "sources": [ - { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 62, - "character": 6 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "exact" - }, - { - "type": "literal", - "value": "planned" - }, - { - "type": "literal", - "value": "estimated" - } - ] - } - }, - { - "id": 79, - "name": "head", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "When set to `true`, `data` will not be returned.\nUseful if you only need the count.\n" - }, - "sources": [ - { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 61, + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 16, "character": 6 } ], @@ -40437,7 +21750,7 @@ { "title": "Properties", "kind": 1024, - "children": [80, 79] + "children": [95, 90, 94, 100] } ] } @@ -40447,561 +21760,31 @@ ], "type": { "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "indexedAccess", - "indexType": { - "type": "literal", - "value": "Row" - }, - "objectType": { - "type": "reference", - "id": 52, - "name": "Relation" - } - }, - { - "type": "reference", - "id": 75, - "name": "Result" - } - ], - "name": "default" - } - } - ] - }, - { - "id": 97, - "name": "update", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 247, - "character": 2 - } - ], - "signatures": [ - { - "id": 98, - "name": "update", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Perform an UPDATE on the table or view.", - "text": "By default, updated rows are not returned. To return it, chain the call\nwith `.select()` after filters.\n" - }, - "typeParameter": [ - { - "id": 99, - "name": "Row", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - } - } - ], - "parameters": [ - { - "id": 100, - "name": "values", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "shortText": "The values to update with\n" - }, - "type": { - "type": "reference", - "id": 99, - "name": "Row" - } - }, - { - "id": 101, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "shortText": "Named parameters\n" - }, - "originalName": "__namedParameters", - "type": { - "type": "reflection", - "declaration": { - "id": 102, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 103, - "name": "count", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "Count algorithm to use to count updated rows.\n\n`\"exact\"`: Exact but slow count algorithm. Performs a `COUNT(*)` under the\nhood.\n\n`\"planned\"`: Approximated but fast count algorithm. Uses the Postgres\nstatistics under the hood.\n\n`\"estimated\"`: Uses exact count for low numbers and planned count for high\nnumbers.\n" - }, - "sources": [ - { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 252, - "character": 6 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "exact" - }, - { - "type": "literal", - "value": "planned" - }, - { - "type": "literal", - "value": "estimated" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [103] - } - ] - } - }, - "defaultValue": "{}" - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "indexedAccess", - "indexType": { - "type": "literal", - "value": "Row" - }, - "objectType": { - "type": "reference", - "id": 52, - "name": "Relation" - } - }, - { - "type": "intrinsic", - "name": "undefined" - } - ], - "name": "default" - } - } - ] - }, - { - "id": 88, - "name": "upsert", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 189, - "character": 2 - } - ], - "signatures": [ - { - "id": 89, - "name": "upsert", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Perform an UPSERT on the table or view. Depending on the column(s) passed\nto `onConflict`, `.upsert()` allows you to perform the equivalent of\n`.insert()` if a row with the corresponding `onConflict` columns doesn't\nexist, or if it does exist, perform an alternative action depending on\n`ignoreDuplicates`.", - "text": "By default, upserted rows are not returned. To return it, chain the call\nwith `.select()`.\n" - }, - "typeParameter": [ - { - "id": 90, - "name": "Row", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - } - } - ], - "parameters": [ - { - "id": 91, - "name": "values", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "shortText": "The values to upsert with. Pass an object to upsert a\nsingle row or an array to upsert multiple rows.\n" - }, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 90, - "name": "Row" - }, - { - "type": "array", - "elementType": { - "type": "reference", - "id": 90, - "name": "Row" - } - } - ] - } - }, - { - "id": 92, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "shortText": "Named parameters\n" - }, - "originalName": "__namedParameters", - "type": { - "type": "reflection", - "declaration": { - "id": 93, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 96, - "name": "count", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "Count algorithm to use to count upserted rows.\n\n`\"exact\"`: Exact but slow count algorithm. Performs a `COUNT(*)` under the\nhood.\n\n`\"planned\"`: Approximated but fast count algorithm. Uses the Postgres\nstatistics under the hood.\n\n`\"estimated\"`: Uses exact count for low numbers and planned count for high\nnumbers.\n" - }, - "sources": [ - { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 198, - "character": 6 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "exact" - }, - { - "type": "literal", - "value": "planned" - }, - { - "type": "literal", - "value": "estimated" - } - ] - } - }, - { - "id": 95, - "name": "ignoreDuplicates", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "If `true`, duplicate rows are ignored. If\n`false`, duplicate rows are merged with existing rows.\n" - }, - "sources": [ - { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 197, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 94, - "name": "onConflict", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "Comma-separated UNIQUE column(s) to specify how\nduplicate rows are determined. Two rows are duplicates if all the\n`onConflict` columns are equal.\n" - }, - "sources": [ - { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 196, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [96, 95, 94] - } - ] - } - }, - "defaultValue": "{}" - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "indexedAccess", - "indexType": { - "type": "literal", - "value": "Row" - }, - "objectType": { - "type": "reference", - "id": 52, - "name": "Relation" - } - }, - { - "type": "intrinsic", - "name": "undefined" - } - ], - "name": "default" - } - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [50] - }, - { - "title": "Properties", - "kind": 1024, - "children": [67, 64, 65, 66, 63] - }, - { - "title": "Methods", - "kind": 2048, - "children": [104, 81, 72, 97, 88] - } - ], - "sources": [ - { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 6, - "character": 21 - } - ], - "typeParameter": [ - { - "id": 109, - "name": "Relation", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "GenericTable" - }, - { - "type": "reference", - "name": "GenericView" - } - ] - } - } - ] - }, - { - "id": 394, - "name": "PostgrestTransformBuilder", - "kind": 128, - "kindString": "Class", - "flags": {}, - "children": [ - { - "id": 395, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": {}, - "signatures": [ - { - "id": 396, - "name": "new PostgrestTransformBuilder", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "typeParameter": [ - { - "id": 397, - "name": "Row", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - } - }, - { - "id": 398, - "name": "Result", - "kind": 131072, - "kindString": "Type parameter", - "flags": {} - } - ], - "parameters": [ - { - "id": 399, - "name": "builder", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "id": 486, - "typeArguments": [ - { - "type": "reference", - "id": 398, - "name": "Result" - } - ], - "name": "default" - } - } - ], - "type": { - "type": "reference", - "id": 394, + "id": 83, "typeArguments": [ { "type": "reference", - "id": 397, - "name": "Row" - }, - { - "type": "reference", - "id": 398, - "name": "Result" + "id": 86, + "name": "T" } ], "name": "default" }, - "inheritedFrom": { + "overwrites": { "type": "reference", - "id": 488, - "name": "default.constructor" + "id": 48, + "name": "PostgrestBuilder.constructor" } } ], - "inheritedFrom": { + "overwrites": { "type": "reference", - "id": 487, - "name": "default.constructor" + "id": 47, + "name": "PostgrestBuilder.constructor" } }, { - "id": 469, + "id": 160, "name": "allowEmpty", "kind": 1024, "kindString": "Property", @@ -41010,8 +21793,8 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 16, + "fileName": "src/lib/types.ts", + "line": 60, "character": 12 } ], @@ -41021,12 +21804,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 503, - "name": "default.allowEmpty" + "id": 66, + "name": "PostgrestBuilder.allowEmpty" } }, { - "id": 461, + "id": 152, "name": "body", "kind": 1024, "kindString": "Property", @@ -41036,23 +21819,53 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 12, + "fileName": "src/lib/types.ts", + "line": 56, "character": 12 } ], "type": { - "type": "intrinsic", - "name": "unknown" + "type": "union", + "types": [ + { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 86, + "name": "T" + } + ], + "qualifiedName": "Partial", + "package": "typescript", + "name": "Partial" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 86, + "name": "T" + } + ], + "qualifiedName": "Partial", + "package": "typescript", + "name": "Partial" + } + } + ] }, "inheritedFrom": { "type": "reference", - "id": 495, - "name": "default.body" + "id": 58, + "name": "PostgrestBuilder.body" } }, { - "id": 464, + "id": 155, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -41061,53 +21874,42 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 15, + "fileName": "src/lib/types.ts", + "line": 59, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 465, + "id": 156, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 466, + "id": 157, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 467, + "id": 158, "name": "input", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "union", - "types": [ - { - "type": "reference", - "qualifiedName": "RequestInfo", - "package": "typescript", - "name": "RequestInfo" - }, - { - "type": "reference", - "qualifiedName": "URL", - "package": "typescript", - "name": "URL" - } - ] + "type": "reference", + "qualifiedName": "RequestInfo", + "package": "typescript", + "name": "RequestInfo" } }, { - "id": 468, + "id": 159, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -41142,12 +21944,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 498, - "name": "default.fetch" + "id": 61, + "name": "PostgrestBuilder.fetch" } }, { - "id": 459, + "id": 147, "name": "headers", "kind": 1024, "kindString": "Property", @@ -41156,35 +21958,52 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 10, + "fileName": "src/lib/types.ts", + "line": 54, "character": 12 } ], "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "string" + "type": "reflection", + "declaration": { + "id": 148, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "indexSignature": { + "id": 149, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 150, + "name": "key", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" + } }, "inheritedFrom": { "type": "reference", - "id": 493, - "name": "default.headers" + "id": 53, + "name": "PostgrestBuilder.headers" } }, { - "id": 457, + "id": 145, "name": "method", "kind": 1024, "kindString": "Property", @@ -41193,8 +22012,8 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 8, + "fileName": "src/lib/types.ts", + "line": 52, "character": 12 } ], @@ -41225,12 +22044,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 491, - "name": "default.method" + "id": 51, + "name": "PostgrestBuilder.method" } }, { - "id": 460, + "id": 151, "name": "schema", "kind": 1024, "kindString": "Property", @@ -41240,8 +22059,8 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 11, + "fileName": "src/lib/types.ts", + "line": 55, "character": 12 } ], @@ -41251,12 +22070,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 494, - "name": "default.schema" + "id": 57, + "name": "PostgrestBuilder.schema" } }, { - "id": 462, + "id": 153, "name": "shouldThrowOnError", "kind": 1024, "kindString": "Property", @@ -41265,8 +22084,8 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 13, + "fileName": "src/lib/types.ts", + "line": 57, "character": 12 } ], @@ -41274,15 +22093,14 @@ "type": "intrinsic", "name": "boolean" }, - "defaultValue": "false", "inheritedFrom": { "type": "reference", - "id": 496, - "name": "default.shouldThrowOnError" + "id": 59, + "name": "PostgrestBuilder.shouldThrowOnError" } }, { - "id": 463, + "id": 154, "name": "signal", "kind": 1024, "kindString": "Property", @@ -41292,8 +22110,8 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 14, + "fileName": "src/lib/types.ts", + "line": 58, "character": 12 } ], @@ -41305,12 +22123,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 497, - "name": "default.signal" + "id": 60, + "name": "PostgrestBuilder.signal" } }, { - "id": 458, + "id": 146, "name": "url", "kind": 1024, "kindString": "Property", @@ -41319,8 +22137,8 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 9, + "fileName": "src/lib/types.ts", + "line": 53, "character": 12 } ], @@ -41332,220 +22150,61 @@ }, "inheritedFrom": { "type": "reference", - "id": 492, - "name": "default.url" + "id": 52, + "name": "PostgrestBuilder.url" } }, { - "id": 434, - "name": "abortSignal", + "id": 139, + "name": "delete", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 124, + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 212, "character": 2 } ], "signatures": [ { - "id": 435, - "name": "abortSignal", + "id": 140, + "name": "delete", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Set the AbortSignal for the fetch request." + "shortText": "Performs a DELETE on the table." }, "parameters": [ { - "id": 436, - "name": "signal", + "id": 141, + "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "shortText": "The AbortSignal to use for the fetch request\n" - }, - "type": { - "type": "reference", - "qualifiedName": "AbortSignal", - "package": "typescript", - "name": "AbortSignal" - } - } - ], - "type": { - "type": "reference", - "id": 394, - "typeArguments": [ - { - "type": "reference", - "id": 397, - "name": "Row" - }, - { - "type": "reference", - "id": 398, - "name": "Result" - } - ], - "name": "default" - } - } - ] - }, - { - "id": 441, - "name": "csv", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 155, - "character": 2 - } - ], - "signatures": [ - { - "id": 442, - "name": "csv", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Return `data` as a string in CSV format." - }, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 521, - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - } - ], - "name": "PostgrestSingleResponse" - } - ], - "qualifiedName": "PromiseLike", - "package": "typescript", - "name": "PromiseLike" - } - } - ] - }, - { - "id": 445, - "name": "explain", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 189, - "character": 2 - } - ], - "signatures": [ - { - "id": 446, - "name": "explain", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Return `data` as the EXPLAIN plan for the query." - }, - "parameters": [ - { - "id": 447, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "shortText": "Named parameters\n" - }, - "originalName": "__namedParameters", "type": { "type": "reflection", "declaration": { - "id": 448, + "id": 142, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 449, - "name": "analyze", + "id": 144, + "name": "count", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "If `true`, the query will be executed and the\nactual run time will be returned\n" - }, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 197, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 452, - "name": "buffers", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "If `true`, include information on buffer usage\n" - }, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 200, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 454, - "name": "format", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "The format of the output, can be `\"text\"` (default)\nor `\"json\"`\n" - }, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 202, + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 217, "character": 4 } ], @@ -41554,290 +22213,50 @@ "types": [ { "type": "literal", - "value": "text" + "value": null }, { "type": "literal", - "value": "json" + "value": "exact" + }, + { + "type": "literal", + "value": "planned" + }, + { + "type": "literal", + "value": "estimated" } ] } }, { - "id": 451, - "name": "settings", + "id": 143, + "name": "returning", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "If `true`, include information on configuration\nparameters that affect query planning\n" - }, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 199, + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 216, "character": 4 } ], "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 450, - "name": "verbose", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "If `true`, the query identifier will be returned\nand `data` will include the output columns of the query\n" - }, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 198, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 453, - "name": "wal", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "If `true`, include information on WAL record generation\n" - }, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 201, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [449, 452, 454, 451, 450, 453] - } - ] - } - }, - "defaultValue": "{}" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 521, - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - } - ], - "name": "PostgrestSingleResponse" - } - ], - "qualifiedName": "PromiseLike", - "package": "typescript", - "name": "PromiseLike" - }, - { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 519, - "typeArguments": [ - { - "type": "reference", - "typeArguments": [ + "type": "union", + "types": [ { - "type": "intrinsic", - "name": "string" + "type": "literal", + "value": "minimal" }, { - "type": "intrinsic", - "name": "unknown" + "type": "literal", + "value": "representation" } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - } - ], - "name": "PostgrestResponse" - } - ], - "qualifiedName": "PromiseLike", - "package": "typescript", - "name": "PromiseLike" - } - ] - } - } - ] - }, - { - "id": 443, - "name": "geojson", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 163, - "character": 2 - } - ], - "signatures": [ - { - "id": 444, - "name": "geojson", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Return `data` as an object in [GeoJSON](https://geojson.org) format." - }, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 521, - "typeArguments": [ - { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - } - ], - "name": "PostgrestSingleResponse" - } - ], - "qualifiedName": "PromiseLike", - "package": "typescript", - "name": "PromiseLike" - } - } - ] - }, - { - "id": 421, - "name": "limit", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 95, - "character": 2 - } - ], - "signatures": [ - { - "id": 422, - "name": "limit", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Limit the query result by `count`." - }, - "parameters": [ - { - "id": 423, - "name": "count", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "shortText": "The maximum number of rows to return" - }, - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 424, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "shortText": "Named parameters" - }, - "originalName": "__namedParameters", - "type": { - "type": "reflection", - "declaration": { - "id": 425, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 426, - "name": "foreignTable", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "Set this to limit rows of foreign tables\ninstead of the current table\n" - }, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 95, - "character": 43 - } - ], - "type": { - "type": "intrinsic", - "name": "string" + ] } } ], @@ -41845,7 +22264,7 @@ { "title": "Properties", "kind": 1024, - "children": [426] + "children": [144, 143] } ] } @@ -41855,17 +22274,12 @@ ], "type": { "type": "reference", - "id": 394, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 397, - "name": "Row" - }, - { - "type": "reference", - "id": 398, - "name": "Result" + "id": 86, + "name": "T" } ], "name": "default" @@ -41874,192 +22288,154 @@ ] }, { - "id": 439, - "name": "maybeSingle", + "id": 108, + "name": "insert", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 146, + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 74, "character": 2 } ], "signatures": [ { - "id": 440, - "name": "maybeSingle", + "id": 109, + "name": "insert", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Return `data` as a single object instead of an array of objects.", - "text": "Query result must be zero or one row (e.g. using `.limit(1)`), otherwise\nthis returns an error.\n" + "shortText": "Performs an INSERT into the table." }, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 523, - "typeArguments": [ - { - "type": "reference", - "id": 398, - "name": "Result" - } - ], - "name": "PostgrestMaybeSingleResponse" - } - ], - "qualifiedName": "PromiseLike", - "package": "typescript", - "name": "PromiseLike" - } - } - ] - }, - { - "id": 405, - "name": "order", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 59, - "character": 2 - } - ], - "signatures": [ - { - "id": 406, - "name": "order", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Order the query result by `column`.", - "text": "You can call this method multiple times to order by multiple columns.\n\nYou can order foreign tables, but it doesn't affect the ordering of the\ncurrent table.\n" - }, - "typeParameter": [ - { - "id": 407, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 408, - "name": "column", + "id": 110, + "name": "values", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The column to order by" + "shortText": "The values to insert." }, "type": { - "type": "reference", - "id": 315, - "name": "ColumnName" + "type": "union", + "types": [ + { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 86, + "name": "T" + } + ], + "qualifiedName": "Partial", + "package": "typescript", + "name": "Partial" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 86, + "name": "T" + } + ], + "qualifiedName": "Partial", + "package": "typescript", + "name": "Partial" + } + } + ] } }, { - "id": 409, + "id": 111, "name": "options", "kind": 32768, "kindString": "Parameter", "flags": { "isOptional": true }, - "comment": { - "shortText": "Named parameters" - }, "type": { "type": "reflection", "declaration": { - "id": 410, + "id": 112, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 411, - "name": "ascending", + "id": 114, + "name": "count", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "If `true`, the result will be in ascending order" - }, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 61, - "character": 16 + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 78, + "character": 6 } ], "type": { - "type": "intrinsic", - "name": "boolean" + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "literal", + "value": "exact" + }, + { + "type": "literal", + "value": "planned" + }, + { + "type": "literal", + "value": "estimated" + } + ] } }, { - "id": 413, - "name": "foreignTable", + "id": 113, + "name": "returning", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "Set this to order a foreign table by foreign\ncolumns\n" - }, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 61, - "character": 59 + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 77, + "character": 6 } ], "type": { - "type": "intrinsic", - "name": "undefined" - } - }, - { - "id": 412, - "name": "nullsFirst", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "If `true`, `null`s appear first. If `false`,\n`null`s appear last." - }, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 61, - "character": 37 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" + "type": "union", + "types": [ + { + "type": "literal", + "value": "minimal" + }, + { + "type": "literal", + "value": "representation" + } + ] } } ], @@ -42067,7 +22443,7 @@ { "title": "Properties", "kind": 1024, - "children": [411, 413, 412] + "children": [114, 113] } ] } @@ -42076,42 +22452,75 @@ ], "type": { "type": "reference", - "id": 394, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 397, - "name": "Row" - }, - { - "type": "reference", - "id": 398, - "name": "Result" + "id": 86, + "name": "T" } ], "name": "default" } }, { - "id": 414, - "name": "order", + "id": 115, + "name": "insert", "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "tags": [ + { + "tag": "deprecated", + "text": "Use `upsert()` instead.\n" + } + ] + }, "parameters": [ { - "id": 415, - "name": "column", + "id": 116, + "name": "values", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "intrinsic", - "name": "string" + "type": "union", + "types": [ + { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 86, + "name": "T" + } + ], + "qualifiedName": "Partial", + "package": "typescript", + "name": "Partial" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 86, + "name": "T" + } + ], + "qualifiedName": "Partial", + "package": "typescript", + "name": "Partial" + } + } + ] } }, { - "id": 416, + "id": 117, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -42121,15 +22530,15 @@ "type": { "type": "reflection", "declaration": { - "id": 417, + "id": 118, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 418, - "name": "ascending", + "id": 122, + "name": "count", "kind": 1024, "kindString": "Property", "flags": { @@ -42137,27 +22546,46 @@ }, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 65, - "character": 16 + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 90, + "character": 6 } ], "type": { - "type": "intrinsic", - "name": "boolean" + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "literal", + "value": "exact" + }, + { + "type": "literal", + "value": "planned" + }, + { + "type": "literal", + "value": "estimated" + } + ] } }, { - "id": 420, - "name": "foreignTable", + "id": 120, + "name": "onConflict", "kind": 1024, "kindString": "Property", - "flags": {}, + "flags": { + "isOptional": true + }, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 65, - "character": 59 + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 88, + "character": 6 } ], "type": { @@ -42166,8 +22594,8 @@ } }, { - "id": 419, - "name": "nullsFirst", + "id": 121, + "name": "returning", "kind": 1024, "kindString": "Property", "flags": { @@ -42175,9 +22603,38 @@ }, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 65, - "character": 37 + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 89, + "character": 6 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "minimal" + }, + { + "type": "literal", + "value": "representation" + } + ] + } + }, + { + "id": 119, + "name": "upsert", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 87, + "character": 6 } ], "type": { @@ -42190,7 +22647,7 @@ { "title": "Properties", "kind": 1024, - "children": [418, 420, 419] + "children": [122, 120, 121, 119] } ] } @@ -42199,17 +22656,12 @@ ], "type": { "type": "reference", - "id": 394, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 397, - "name": "Row" - }, - { - "type": "reference", - "id": 398, - "name": "Result" + "id": 86, + "name": "T" } ], "name": "default" @@ -42218,97 +22670,114 @@ ] }, { - "id": 427, - "name": "range", + "id": 101, + "name": "select", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 110, + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 32, "character": 2 } ], "signatures": [ { - "id": 428, - "name": "range", + "id": 102, + "name": "select", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Limit the query result by `from` and `to` inclusively." + "shortText": "Performs vertical filtering with SELECT." }, "parameters": [ { - "id": 429, - "name": "from", + "id": 103, + "name": "columns", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The starting index from which to limit the result" + "shortText": "The columns to retrieve, separated by commas." }, "type": { "type": "intrinsic", - "name": "number" - } + "name": "string" + }, + "defaultValue": "'*'" }, { - "id": 430, - "name": "to", + "id": 104, + "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "shortText": "The last index to which to limit the result" - }, - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 431, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "shortText": "Named parameters" - }, - "originalName": "__namedParameters", "type": { "type": "reflection", "declaration": { - "id": 432, + "id": 105, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 433, - "name": "foreignTable", + "id": 107, + "name": "count", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "Set this to limit rows of foreign tables\ninstead of the current table\n" + "sources": [ + { + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 39, + "character": 6 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "literal", + "value": "exact" + }, + { + "type": "literal", + "value": "planned" + }, + { + "type": "literal", + "value": "estimated" + } + ] + } + }, + { + "id": 106, + "name": "head", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true }, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 110, - "character": 54 + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 38, + "character": 6 } ], "type": { "type": "intrinsic", - "name": "string" + "name": "boolean" } } ], @@ -42316,7 +22785,7 @@ { "title": "Properties", "kind": 1024, - "children": [433] + "children": [107, 106] } ] } @@ -42326,17 +22795,12 @@ ], "type": { "type": "reference", - "id": 394, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 397, - "name": "Row" - }, - { - "type": "reference", - "id": 398, - "name": "Result" + "id": 86, + "name": "T" } ], "name": "default" @@ -42345,257 +22809,47 @@ ] }, { - "id": 455, - "name": "rollback", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 229, - "character": 2 - } - ], - "signatures": [ - { - "id": 456, - "name": "rollback", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Rollback the query.", - "text": "`data` will still be returned, but the query is not committed.\n" - }, - "type": { - "type": "reference", - "id": 394, - "typeArguments": [ - { - "type": "reference", - "id": 397, - "name": "Row" - }, - { - "type": "reference", - "id": 398, - "name": "Result" - } - ], - "name": "default" - } - } - ] - }, - { - "id": 400, - "name": "select", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 18, - "character": 2 - } - ], - "signatures": [ - { - "id": 401, - "name": "select", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Perform a SELECT on the query result.", - "text": "By default, `.insert()`, `.update()`, `.upsert()`, and `.delete()` do not\nreturn modified rows. By calling this method, modified rows are returned in\n`data`.\n" - }, - "typeParameter": [ - { - "id": 402, - "name": "Query", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - }, - "default": { - "type": "literal", - "value": "*" - } - }, - { - "id": 403, - "name": "NewResult", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "default": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 397, - "name": "Row" - }, - { - "type": "conditional", - "checkType": { - "type": "reference", - "id": 310, - "name": "Query" - }, - "extendsType": { - "type": "literal", - "value": "*" - }, - "trueType": { - "type": "literal", - "value": "*" - }, - "falseType": { - "type": "reference", - "id": 310, - "name": "Query" - } - } - ], - "name": "GetResult" - } - } - ], - "parameters": [ - { - "id": 404, - "name": "columns", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "The columns to retrieve, separated by commas\n" - }, - "type": { - "type": "reference", - "id": 310, - "name": "Query" - } - } - ], - "type": { - "type": "reference", - "id": 394, - "typeArguments": [ - { - "type": "reference", - "id": 397, - "name": "Row" - }, - { - "type": "reference", - "id": 311, - "name": "NewResult" - } - ], - "name": "default" - } - } - ] - }, - { - "id": 437, - "name": "single", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 135, - "character": 2 - } - ], - "signatures": [ - { - "id": 438, - "name": "single", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Return `data` as a single object instead of an array of objects.", - "text": "Query result must be one row (e.g. using `.limit(1)`), otherwise this\nreturns an error.\n" - }, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 521, - "typeArguments": [ - { - "type": "reference", - "id": 398, - "name": "Result" - } - ], - "name": "PostgrestSingleResponse" - } - ], - "qualifiedName": "PromiseLike", - "package": "typescript", - "name": "PromiseLike" - } - } - ] - }, - { - "id": 472, + "id": 164, "name": "then", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 48, + "fileName": "src/lib/types.ts", + "line": 91, "character": 2 } ], "signatures": [ { - "id": 473, + "id": 165, "name": "then", "kind": 4096, "kindString": "Call signature", "flags": {}, "typeParameter": [ { - "id": 474, + "id": 166, "name": "TResult1", "kind": 131072, "kindString": "Type parameter", "flags": {}, "default": { "type": "reference", - "id": 519, + "id": 425, "typeArguments": [ { "type": "reference", - "id": 398, - "name": "Result" + "id": 86, + "name": "T" } ], "name": "PostgrestResponse" } }, { - "id": 475, + "id": 167, "name": "TResult2", "kind": 131072, "kindString": "Type parameter", @@ -42608,7 +22862,7 @@ ], "parameters": [ { - "id": 476, + "id": 168, "name": "onfulfilled", "kind": 32768, "kindString": "Parameter", @@ -42625,33 +22879,33 @@ { "type": "reflection", "declaration": { - "id": 477, + "id": 169, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 478, + "id": 170, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 479, + "id": 171, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 519, + "id": 425, "typeArguments": [ { "type": "reference", - "id": 398, - "name": "Result" + "id": 86, + "name": "T" } ], "name": "PostgrestResponse" @@ -42663,7 +22917,7 @@ "types": [ { "type": "reference", - "id": 382, + "id": 72, "name": "TResult1" }, { @@ -42671,7 +22925,7 @@ "typeArguments": [ { "type": "reference", - "id": 382, + "id": 72, "name": "TResult1" } ], @@ -42689,7 +22943,7 @@ } }, { - "id": 480, + "id": 172, "name": "onrejected", "kind": 32768, "kindString": "Parameter", @@ -42706,21 +22960,21 @@ { "type": "reflection", "declaration": { - "id": 481, + "id": 173, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 482, + "id": 174, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 483, + "id": 175, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -42736,7 +22990,7 @@ "types": [ { "type": "reference", - "id": 383, + "id": 73, "name": "TResult2" }, { @@ -42744,7 +22998,7 @@ "typeArguments": [ { "type": "reference", - "id": 383, + "id": 73, "name": "TResult2" } ], @@ -42770,12 +23024,12 @@ "types": [ { "type": "reference", - "id": 382, + "id": 72, "name": "TResult1" }, { "type": "reference", - "id": 383, + "id": 73, "name": "TResult2" } ] @@ -42787,33 +23041,33 @@ }, "inheritedFrom": { "type": "reference", - "id": 507, - "name": "default.then" + "id": 71, + "name": "PostgrestBuilder.then" } } ], "inheritedFrom": { "type": "reference", - "id": 506, - "name": "default.then" + "id": 70, + "name": "PostgrestBuilder.then" } }, { - "id": 470, + "id": 161, "name": "throwOnError", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 43, + "fileName": "src/lib/types.ts", + "line": 83, "character": 2 } ], "signatures": [ { - "id": 471, + "id": 162, "name": "throwOnError", "kind": 4096, "kindString": "Call signature", @@ -42822,88 +23076,448 @@ "shortText": "If there's an error with the query, throwOnError will reject the promise by\nthrowing the error instead of returning it as part of a successful response.", "text": "{@link https://github.com/supabase/supabase-js/issues/92}\n" }, + "parameters": [ + { + "id": 163, + "name": "throwOnError", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], "type": { "type": "reference", - "id": 394, + "id": 83, "typeArguments": [ { "type": "reference", - "id": 397, - "name": "Row" - }, - { - "type": "reference", - "id": 398, - "name": "Result" + "id": 86, + "name": "T" } ], "name": "default" }, "inheritedFrom": { "type": "reference", - "id": 505, - "name": "default.throwOnError" + "id": 68, + "name": "PostgrestBuilder.throwOnError" } } ], "inheritedFrom": { "type": "reference", - "id": 504, - "name": "default.throwOnError" + "id": 67, + "name": "PostgrestBuilder.throwOnError" } + }, + { + "id": 132, + "name": "update", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 183, + "character": 2 + } + ], + "signatures": [ + { + "id": 133, + "name": "update", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Performs an UPDATE on the table." + }, + "parameters": [ + { + "id": 134, + "name": "values", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The values to update." + }, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 86, + "name": "T" + } + ], + "qualifiedName": "Partial", + "package": "typescript", + "name": "Partial" + } + }, + { + "id": 135, + "name": "__namedParameters", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 136, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 138, + "name": "count", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 190, + "character": 6 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "literal", + "value": "exact" + }, + { + "type": "literal", + "value": "planned" + }, + { + "type": "literal", + "value": "estimated" + } + ] + } + }, + { + "id": 137, + "name": "returning", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 189, + "character": 6 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "minimal" + }, + { + "type": "literal", + "value": "representation" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [138, 137] + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "id": 177, + "typeArguments": [ + { + "type": "reference", + "id": 86, + "name": "T" + } + ], + "name": "default" + } + } + ] + }, + { + "id": 123, + "name": "upsert", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 142, + "character": 2 + } + ], + "signatures": [ + { + "id": 124, + "name": "upsert", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Performs an UPSERT into the table." + }, + "parameters": [ + { + "id": 125, + "name": "values", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The values to insert." + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 86, + "name": "T" + } + ], + "qualifiedName": "Partial", + "package": "typescript", + "name": "Partial" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 86, + "name": "T" + } + ], + "qualifiedName": "Partial", + "package": "typescript", + "name": "Partial" + } + } + ] + } + }, + { + "id": 126, + "name": "__namedParameters", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 127, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 130, + "name": "count", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 152, + "character": 6 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "literal", + "value": "exact" + }, + { + "type": "literal", + "value": "planned" + }, + { + "type": "literal", + "value": "estimated" + } + ] + } + }, + { + "id": 131, + "name": "ignoreDuplicates", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 153, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 128, + "name": "onConflict", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 150, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 129, + "name": "returning", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 151, + "character": 6 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "minimal" + }, + { + "type": "literal", + "value": "representation" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [130, 131, 128, 129] + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "id": 177, + "typeArguments": [ + { + "type": "reference", + "id": 86, + "name": "T" + } + ], + "name": "default" + } + } + ] } ], "groups": [ { "title": "Constructors", "kind": 512, - "children": [395] + "children": [84] }, { "title": "Properties", "kind": 1024, - "children": [469, 461, 464, 459, 457, 460, 462, 463, 458] + "children": [160, 152, 155, 147, 145, 151, 153, 154, 146] }, { "title": "Methods", "kind": 2048, - "children": [434, 441, 445, 443, 421, 439, 405, 427, 455, 400, 437, 472, 470] + "children": [139, 108, 101, 164, 161, 132, 123] } ], "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 5, + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 4, "character": 21 } ], "typeParameter": [ { - "id": 484, - "name": "Row", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - } - }, - { - "id": 485, - "name": "Result", + "id": 176, + "name": "T", "kind": 131072, "kindString": "Type parameter", "flags": {} @@ -42912,27 +23526,20 @@ "extendedTypes": [ { "type": "reference", - "id": 486, + "id": 46, "typeArguments": [ { "type": "reference", - "id": 398, - "name": "Result" + "id": 86, + "name": "T" } ], - "name": "default" - } - ], - "extendedBy": [ - { - "type": "reference", - "id": 110, - "name": "PostgrestFilterBuilder" + "name": "PostgrestBuilder" } ] }, { - "id": 525, + "id": 431, "name": "PostgrestError", "kind": 4194304, "kindString": "Type alias", @@ -42943,7 +23550,7 @@ }, "sources": [ { - "fileName": "src/types.ts", + "fileName": "src/lib/types.ts", "line": 8, "character": 12 } @@ -42951,21 +23558,21 @@ "type": { "type": "reflection", "declaration": { - "id": 526, + "id": 432, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 530, + "id": 436, "name": "code", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { - "fileName": "src/types.ts", + "fileName": "src/lib/types.ts", "line": 12, "character": 2 } @@ -42976,14 +23583,14 @@ } }, { - "id": 528, + "id": 434, "name": "details", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { - "fileName": "src/types.ts", + "fileName": "src/lib/types.ts", "line": 10, "character": 2 } @@ -42994,14 +23601,14 @@ } }, { - "id": 529, + "id": 435, "name": "hint", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { - "fileName": "src/types.ts", + "fileName": "src/lib/types.ts", "line": 11, "character": 2 } @@ -43012,14 +23619,14 @@ } }, { - "id": 527, + "id": 433, "name": "message", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { - "fileName": "src/types.ts", + "fileName": "src/lib/types.ts", "line": 9, "character": 2 } @@ -43034,12 +23641,12 @@ { "title": "Properties", "kind": 1024, - "children": [530, 528, 529, 527] + "children": [436, 434, 435, 433] } ], "sources": [ { - "fileName": "src/types.ts", + "fileName": "src/lib/types.ts", "line": 8, "character": 29 } @@ -43048,21 +23655,21 @@ } }, { - "id": 523, + "id": 429, "name": "PostgrestMaybeSingleResponse", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { - "fileName": "src/types.ts", - "line": 45, + "fileName": "src/lib/types.ts", + "line": 49, "character": 12 } ], "typeParameter": [ { - "id": 524, + "id": 430, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -43071,19 +23678,19 @@ ], "type": { "type": "reference", - "id": 521, + "id": 427, "typeArguments": [ { "type": "union", "types": [ { "type": "reference", - "id": 524, + "id": 430, "name": "T" }, { - "type": "intrinsic", - "name": "undefined" + "type": "literal", + "value": null } ] } @@ -43092,21 +23699,21 @@ } }, { - "id": 519, + "id": 425, "name": "PostgrestResponse", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { - "fileName": "src/types.ts", - "line": 35, + "fileName": "src/lib/types.ts", + "line": 38, "character": 12 } ], "typeParameter": [ { - "id": 520, + "id": 426, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -43121,7 +23728,7 @@ "typeArguments": [ { "type": "reference", - "id": 520, + "id": 426, "name": "T" } ], @@ -43135,21 +23742,21 @@ } }, { - "id": 521, + "id": 427, "name": "PostgrestSingleResponse", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { - "fileName": "src/types.ts", - "line": 42, + "fileName": "src/lib/types.ts", + "line": 46, "character": 12 } ], "typeParameter": [ { - "id": 522, + "id": 428, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -43164,7 +23771,7 @@ "typeArguments": [ { "type": "reference", - "id": 522, + "id": 428, "name": "T" } ], @@ -43182,12 +23789,12 @@ { "title": "Classes", "kind": 128, - "children": [486, 1, 110, 49, 394] + "children": [46, 1, 177, 83] }, { - "title": "Type Aliases", + "title": "Type aliases", "kind": 4194304, - "children": [525, 523, 519, 521] + "children": [431, 429, 425, 427] } ], "sources": [ diff --git a/spec/enrichments/tsdoc_v1/gotrue.json b/spec/enrichments/tsdoc_v1/gotrue.json index 271a15c6288..778105f9092 100644 --- a/spec/enrichments/tsdoc_v1/gotrue.json +++ b/spec/enrichments/tsdoc_v1/gotrue.json @@ -6,1926 +6,9 @@ "flags": {}, "originalName": "", "children": [ - { - "id": 499, - "name": "AuthApiError", - "kind": 128, - "kindString": "Class", - "flags": {}, - "children": [ - { - "id": 500, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 17, - "character": 2 - } - ], - "signatures": [ - { - "id": 501, - "name": "new AuthApiError", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 502, - "name": "message", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 503, - "name": "status", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "reference", - "id": 499, - "name": "AuthApiError" - }, - "overwrites": { - "type": "reference", - "id": 496, - "name": "AuthError.constructor" - } - } - ], - "overwrites": { - "type": "reference", - "id": 495, - "name": "AuthError.constructor" - } - }, - { - "id": 504, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 15, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 505, - "name": "toJSON", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 23, - "character": 2 - } - ], - "signatures": [ - { - "id": 506, - "name": "toJSON", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 507, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 509, - "name": "message", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 26, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 508, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 25, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 510, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 27, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "..." - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [509, 508, 510] - } - ] - } - } - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [500] - }, - { - "title": "Properties", - "kind": 1024, - "children": [504] - }, - { - "title": "Methods", - "kind": 2048, - "children": [505] - } - ], - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 14, - "character": 13 - } - ], - "extendedTypes": [ - { - "type": "reference", - "id": 494, - "name": "AuthError" - } - ] - }, - { - "id": 494, - "name": "AuthError", - "kind": 128, - "kindString": "Class", - "flags": {}, - "children": [ - { - "id": 495, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 4, - "character": 2 - } - ], - "signatures": [ - { - "id": 496, - "name": "new AuthError", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 497, - "name": "message", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "id": 494, - "name": "AuthError" - }, - "overwrites": { - "type": "reference", - "name": "Error.constructor" - } - } - ], - "overwrites": { - "type": "reference", - "name": "Error.constructor" - } - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [495] - } - ], - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 1, - "character": 13 - } - ], - "extendedTypes": [ - { - "type": "reference", - "qualifiedName": "Error", - "package": "typescript", - "name": "Error" - } - ], - "extendedBy": [ - { - "type": "reference", - "id": 499, - "name": "AuthApiError" - }, - { - "type": "reference", - "id": 512, - "name": "AuthUnknownError" - }, - { - "type": "reference", - "id": 519, - "name": "CustomAuthError" - } - ] - }, - { - "id": 559, - "name": "AuthImplicitGrantRedirectError", - "kind": 128, - "kindString": "Class", - "flags": {}, - "children": [ - { - "id": 560, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 74, - "character": 2 - } - ], - "signatures": [ - { - "id": 561, - "name": "new AuthImplicitGrantRedirectError", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 562, - "name": "message", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 563, - "name": "details", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reflection", - "declaration": { - "id": 564, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 566, - "name": "code", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 74, - "character": 57 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 565, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 74, - "character": 42 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [566, 565] - } - ] - } - } - ] - }, - "defaultValue": "null" - } - ], - "type": { - "type": "reference", - "id": 559, - "name": "AuthImplicitGrantRedirectError" - }, - "overwrites": { - "type": "reference", - "id": 521, - "name": "CustomAuthError.constructor" - } - } - ], - "overwrites": { - "type": "reference", - "id": 520, - "name": "CustomAuthError.constructor" - } - }, - { - "id": 567, - "name": "details", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 73, - "character": 2 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reflection", - "declaration": { - "id": 568, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 570, - "name": "code", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 73, - "character": 28 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 569, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 73, - "character": 13 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [570, 569] - } - ] - } - } - ] - }, - "defaultValue": "null" - }, - { - "id": 581, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 43, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "id": 525, - "name": "CustomAuthError.name" - } - }, - { - "id": 582, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 44, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "inheritedFrom": { - "type": "reference", - "id": 526, - "name": "CustomAuthError.status" - } - }, - { - "id": 571, - "name": "toJSON", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 79, - "character": 2 - } - ], - "signatures": [ - { - "id": 572, - "name": "toJSON", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 573, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 577, - "name": "details", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 84, - "character": 6 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reflection", - "declaration": { - "id": 578, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 580, - "name": "code", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 73, - "character": 28 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 579, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 73, - "character": 13 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [580, 579] - } - ] - } - } - ] - }, - "defaultValue": "..." - }, - { - "id": 575, - "name": "message", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 82, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 574, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 81, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 576, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 83, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "..." - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [577, 575, 574, 576] - } - ] - } - }, - "overwrites": { - "type": "reference", - "id": 528, - "name": "CustomAuthError.toJSON" - } - } - ], - "overwrites": { - "type": "reference", - "id": 527, - "name": "CustomAuthError.toJSON" - } - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [560] - }, - { - "title": "Properties", - "kind": 1024, - "children": [567, 581, 582] - }, - { - "title": "Methods", - "kind": 2048, - "children": [571] - } - ], - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 72, - "character": 13 - } - ], - "extendedTypes": [ - { - "type": "reference", - "id": 519, - "name": "CustomAuthError" - } - ] - }, - { - "id": 546, - "name": "AuthInvalidCredentialsError", - "kind": 128, - "kindString": "Class", - "flags": {}, - "children": [ - { - "id": 547, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 67, - "character": 2 - } - ], - "signatures": [ - { - "id": 548, - "name": "new AuthInvalidCredentialsError", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 549, - "name": "message", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "id": 546, - "name": "AuthInvalidCredentialsError" - }, - "overwrites": { - "type": "reference", - "id": 521, - "name": "CustomAuthError.constructor" - } - } - ], - "overwrites": { - "type": "reference", - "id": 520, - "name": "CustomAuthError.constructor" - } - }, - { - "id": 550, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 43, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "id": 525, - "name": "CustomAuthError.name" - } - }, - { - "id": 551, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 44, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "inheritedFrom": { - "type": "reference", - "id": 526, - "name": "CustomAuthError.status" - } - }, - { - "id": 552, - "name": "toJSON", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 51, - "character": 2 - } - ], - "signatures": [ - { - "id": 553, - "name": "toJSON", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 554, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 556, - "name": "message", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 54, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 555, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 53, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 557, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 55, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "..." - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [556, 555, 557] - } - ] - } - }, - "inheritedFrom": { - "type": "reference", - "id": 528, - "name": "CustomAuthError.toJSON" - } - } - ], - "inheritedFrom": { - "type": "reference", - "id": 527, - "name": "CustomAuthError.toJSON" - } - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [547] - }, - { - "title": "Properties", - "kind": 1024, - "children": [550, 551] - }, - { - "title": "Methods", - "kind": 2048, - "children": [552] - } - ], - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 66, - "character": 13 - } - ], - "extendedTypes": [ - { - "type": "reference", - "id": 519, - "name": "CustomAuthError" - } - ] - }, - { - "id": 584, - "name": "AuthRetryableFetchError", - "kind": 128, - "kindString": "Class", - "flags": {}, - "children": [ - { - "id": 585, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 90, - "character": 2 - } - ], - "signatures": [ - { - "id": 586, - "name": "new AuthRetryableFetchError", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 587, - "name": "message", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 588, - "name": "status", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "reference", - "id": 584, - "name": "AuthRetryableFetchError" - }, - "overwrites": { - "type": "reference", - "id": 521, - "name": "CustomAuthError.constructor" - } - } - ], - "overwrites": { - "type": "reference", - "id": 520, - "name": "CustomAuthError.constructor" - } - }, - { - "id": 589, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 43, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "id": 525, - "name": "CustomAuthError.name" - } - }, - { - "id": 590, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 44, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "inheritedFrom": { - "type": "reference", - "id": 526, - "name": "CustomAuthError.status" - } - }, - { - "id": 591, - "name": "toJSON", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 51, - "character": 2 - } - ], - "signatures": [ - { - "id": 592, - "name": "toJSON", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 593, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 595, - "name": "message", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 54, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 594, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 53, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 596, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 55, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "..." - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [595, 594, 596] - } - ] - } - }, - "inheritedFrom": { - "type": "reference", - "id": 528, - "name": "CustomAuthError.toJSON" - } - } - ], - "inheritedFrom": { - "type": "reference", - "id": 527, - "name": "CustomAuthError.toJSON" - } - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [585] - }, - { - "title": "Properties", - "kind": 1024, - "children": [589, 590] - }, - { - "title": "Methods", - "kind": 2048, - "children": [591] - } - ], - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 89, - "character": 13 - } - ], - "extendedTypes": [ - { - "type": "reference", - "id": 519, - "name": "CustomAuthError" - } - ] - }, - { - "id": 534, - "name": "AuthSessionMissingError", - "kind": 128, - "kindString": "Class", - "flags": {}, - "children": [ - { - "id": 535, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 61, - "character": 2 - } - ], - "signatures": [ - { - "id": 536, - "name": "new AuthSessionMissingError", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "type": { - "type": "reference", - "id": 534, - "name": "AuthSessionMissingError" - }, - "overwrites": { - "type": "reference", - "id": 521, - "name": "CustomAuthError.constructor" - } - } - ], - "overwrites": { - "type": "reference", - "id": 520, - "name": "CustomAuthError.constructor" - } - }, - { - "id": 537, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 43, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "id": 525, - "name": "CustomAuthError.name" - } - }, - { - "id": 538, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 44, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "inheritedFrom": { - "type": "reference", - "id": 526, - "name": "CustomAuthError.status" - } - }, - { - "id": 539, - "name": "toJSON", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 51, - "character": 2 - } - ], - "signatures": [ - { - "id": 540, - "name": "toJSON", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 541, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 543, - "name": "message", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 54, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 542, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 53, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 544, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 55, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "..." - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [543, 542, 544] - } - ] - } - }, - "inheritedFrom": { - "type": "reference", - "id": 528, - "name": "CustomAuthError.toJSON" - } - } - ], - "inheritedFrom": { - "type": "reference", - "id": 527, - "name": "CustomAuthError.toJSON" - } - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [535] - }, - { - "title": "Properties", - "kind": 1024, - "children": [537, 538] - }, - { - "title": "Methods", - "kind": 2048, - "children": [539] - } - ], - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 60, - "character": 13 - } - ], - "extendedTypes": [ - { - "type": "reference", - "id": 519, - "name": "CustomAuthError" - } - ] - }, - { - "id": 512, - "name": "AuthUnknownError", - "kind": 128, - "kindString": "Class", - "flags": {}, - "children": [ - { - "id": 513, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 35, - "character": 2 - } - ], - "signatures": [ - { - "id": 514, - "name": "new AuthUnknownError", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 515, - "name": "message", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 516, - "name": "originalError", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "type": { - "type": "reference", - "id": 512, - "name": "AuthUnknownError" - }, - "overwrites": { - "type": "reference", - "id": 496, - "name": "AuthError.constructor" - } - } - ], - "overwrites": { - "type": "reference", - "id": 495, - "name": "AuthError.constructor" - } - }, - { - "id": 517, - "name": "originalError", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 33, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [513] - }, - { - "title": "Properties", - "kind": 1024, - "children": [517] - } - ], - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 32, - "character": 13 - } - ], - "extendedTypes": [ - { - "type": "reference", - "id": 494, - "name": "AuthError" - } - ] - }, - { - "id": 519, - "name": "CustomAuthError", - "kind": 128, - "kindString": "Class", - "flags": {}, - "children": [ - { - "id": 520, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 45, - "character": 2 - } - ], - "signatures": [ - { - "id": 521, - "name": "new CustomAuthError", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 522, - "name": "message", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 523, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 524, - "name": "status", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "reference", - "id": 519, - "name": "CustomAuthError" - }, - "overwrites": { - "type": "reference", - "id": 496, - "name": "AuthError.constructor" - } - } - ], - "overwrites": { - "type": "reference", - "id": 495, - "name": "AuthError.constructor" - } - }, - { - "id": 525, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 43, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "overwrites": { - "type": "reference", - "name": "AuthError.name" - } - }, - { - "id": 526, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 44, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 527, - "name": "toJSON", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 51, - "character": 2 - } - ], - "signatures": [ - { - "id": 528, - "name": "toJSON", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 529, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 531, - "name": "message", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 54, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 530, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 53, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "..." - }, - { - "id": 532, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 55, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "..." - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [531, 530, 532] - } - ] - } - } - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [520] - }, - { - "title": "Properties", - "kind": 1024, - "children": [525, 526] - }, - { - "title": "Methods", - "kind": 2048, - "children": [527] - } - ], - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 42, - "character": 13 - } - ], - "extendedTypes": [ - { - "type": "reference", - "id": 494, - "name": "AuthError" - } - ], - "extendedBy": [ - { - "type": "reference", - "id": 534, - "name": "AuthSessionMissingError" - }, - { - "type": "reference", - "id": 546, - "name": "AuthInvalidCredentialsError" - }, - { - "type": "reference", - "id": 559, - "name": "AuthImplicitGrantRedirectError" - }, - { - "type": "reference", - "id": 584, - "name": "AuthRetryableFetchError" - } - ] - }, { "id": 1, - "name": "GoTrueAdminApi", + "name": "GoTrueApi", "kind": 128, "kindString": "Class", "flags": {}, @@ -1938,15 +21,15 @@ "flags": {}, "sources": [ { - "fileName": "src/GoTrueAdminApi.ts", - "line": 19, + "fileName": "src/GoTrueApi.ts", + "line": 25, "character": 2 } ], "signatures": [ { "id": 3, - "name": "new GoTrueAdminApi", + "name": "new GoTrueApi", "kind": 16384, "kindString": "Constructor signature", "flags": {}, @@ -1968,6 +51,27 @@ "children": [ { "id": 11, + "name": "cookieOptions", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 35, + "character": 4 + } + ], + "type": { + "type": "reference", + "id": 557, + "name": "CookieOptions" + } + }, + { + "id": 12, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -1976,53 +80,42 @@ }, "sources": [ { - "fileName": "src/GoTrueAdminApi.ts", - "line": 28, + "fileName": "src/GoTrueApi.ts", + "line": 36, "character": 4 } ], "type": { "type": "reflection", "declaration": { - "id": 12, + "id": 13, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 13, + "id": 14, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 14, + "id": 15, "name": "input", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "union", - "types": [ - { - "type": "reference", - "qualifiedName": "RequestInfo", - "package": "typescript", - "name": "RequestInfo" - }, - { - "type": "reference", - "qualifiedName": "URL", - "package": "typescript", - "name": "URL" - } - ] + "type": "reference", + "qualifiedName": "RequestInfo", + "package": "typescript", + "name": "RequestInfo" } }, { - "id": 15, + "id": 16, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -2066,8 +159,8 @@ }, "sources": [ { - "fileName": "src/GoTrueAdminApi.ts", - "line": 25, + "fileName": "src/GoTrueApi.ts", + "line": 32, "character": 4 } ], @@ -2113,8 +206,8 @@ "flags": {}, "sources": [ { - "fileName": "src/GoTrueAdminApi.ts", - "line": 24, + "fileName": "src/GoTrueApi.ts", + "line": 31, "character": 4 } ], @@ -2128,7 +221,7 @@ { "title": "Properties", "kind": 1024, - "children": [11, 7, 6] + "children": [11, 12, 7, 6] } ] } @@ -2144,38 +237,294 @@ ] }, { - "id": 41, + "id": 22, + "name": "cookieOptions", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 22, + "character": 12 + } + ], + "type": { + "type": "reference", + "id": 557, + "name": "CookieOptions" + } + }, + { + "id": 23, + "name": "fetch", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 23, + "character": 12 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 24, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "signatures": [ + { + "id": 25, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 26, + "name": "input", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "qualifiedName": "RequestInfo", + "package": "typescript", + "name": "RequestInfo" + } + }, + { + "id": 27, + "name": "init", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "qualifiedName": "RequestInit", + "package": "typescript", + "name": "RequestInit" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "qualifiedName": "Response", + "package": "typescript", + "name": "Response" + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + } + } + }, + { + "id": 18, + "name": "headers", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 19, + "character": 12 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 19, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "indexSignature": { + "id": 20, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 21, + "name": "key", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + } + } + }, + { + "id": 17, + "name": "url", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 18, + "character": 12 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 28, + "name": "_createRequestHeaders", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 49, + "character": 10 + } + ], + "signatures": [ + { + "id": 29, + "name": "_createRequestHeaders", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Create a temporary object with all configured headers and\nadds the Authorization token to be used on request methods" + }, + "parameters": [ + { + "id": 30, + "name": "jwt", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "A valid, logged-in JWT.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 31, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {} + } + } + } + ] + }, + { + "id": 32, + "name": "cookieName", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 55, + "character": 10 + } + ], + "signatures": [ + { + "id": 33, + "name": "cookieName", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 196, "name": "createUser", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/GoTrueAdminApi.ts", - "line": 126, + "fileName": "src/GoTrueApi.ts", + "line": 659, "character": 8 } ], "signatures": [ { - "id": 42, + "id": 197, "name": "createUser", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Creates a new user.\nThis function should only be called on a server. Never expose your `service_role` key in the browser." + "shortText": "Creates a new user.", + "text": "This function should only be called on a server. Never expose your `service_role` key in the browser.\n" }, "parameters": [ { - "id": 43, + "id": 198, "name": "attributes", "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "The data you want to create the user with.\n" + }, "type": { "type": "reference", - "id": 343, + "id": 539, "name": "AdminUserAttributes" } } @@ -2184,9 +533,158 @@ "type": "reference", "typeArguments": [ { - "type": "reference", - "id": 280, - "name": "UserResponse" + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 199, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 201, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 662, + "character": 18 + } + ], + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 202, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 662, + "character": 30 + } + ], + "type": { + "type": "reference", + "id": 483, + "name": "ApiError" + } + }, + { + "id": 200, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 662, + "character": 6 + } + ], + "type": { + "type": "literal", + "value": null + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [201, 202, 200] + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 203, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 205, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 662, + "character": 64 + } + ], + "type": { + "type": "reference", + "id": 505, + "name": "User" + } + }, + { + "id": 206, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 662, + "character": 76 + } + ], + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 204, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 662, + "character": 52 + } + ], + "type": { + "type": "reference", + "id": 505, + "name": "User" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [205, 206, 204] + } + ] + } + } + ] } ], "qualifiedName": "Promise", @@ -2197,37 +695,148 @@ ] }, { - "id": 63, + "id": 173, + "name": "deleteAuthCookie", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 549, + "character": 2 + } + ], + "signatures": [ + { + "id": 174, + "name": "deleteAuthCookie", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Deletes the Auth Cookies and redirects to the" + }, + "parameters": [ + { + "id": 175, + "name": "req", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The request object." + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 176, + "name": "res", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The response object." + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 177, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "Optionally specify a `redirectTo` URL in the options.\n" + }, + "originalName": "__namedParameters", + "type": { + "type": "reflection", + "declaration": { + "id": 178, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 179, + "name": "redirectTo", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 549, + "character": 63 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [179] + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + }, + { + "id": 241, "name": "deleteUser", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/GoTrueAdminApi.ts", - "line": 216, + "fileName": "src/GoTrueApi.ts", + "line": 799, "character": 8 } ], "signatures": [ { - "id": 64, + "id": 242, "name": "deleteUser", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Delete a user. Requires a `service_role` key." + "shortText": "Delete a user. Requires a `service_role` key.", + "text": "This function should only be called on a server. Never expose your `service_role` key in the browser.\n" }, "parameters": [ { - "id": 65, - "name": "id", + "id": 243, + "name": "uid", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The user id you want to remove.\n\nThis function should only be called on a server. Never expose your `service_role` key in the browser.\n" + "shortText": "The user uid you want to remove.\n" }, "type": { "type": "intrinsic", @@ -2239,9 +848,107 @@ "type": "reference", "typeArguments": [ { - "type": "reference", - "id": 280, - "name": "UserResponse" + "type": "reflection", + "declaration": { + "id": 244, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 246, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 801, + "character": 34 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + }, + { + "id": 247, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 801, + "character": 53 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + }, + { + "id": 245, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 801, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [246, 247, 245] + } + ] + } } ], "qualifiedName": "Promise", @@ -2252,39 +959,524 @@ ] }, { - "id": 38, + "id": 184, "name": "generateLink", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/GoTrueAdminApi.ts", - "line": 92, + "fileName": "src/GoTrueApi.ts", + "line": 616, "character": 8 } ], "signatures": [ { - "id": 39, + "id": 185, "name": "generateLink", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Generates email links and OTPs to be sent via a custom email provider." + "shortText": "Generates links to be sent via email or other." }, "parameters": [ { - "id": 40, - "name": "params", + "id": 186, + "name": "type", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The link type (\"signup\" or \"magiclink\" or \"recovery\" or \"invite\")." + }, + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "signup" + }, + { + "type": "literal", + "value": "magiclink" + }, + { + "type": "literal", + "value": "recovery" + }, + { + "type": "literal", + "value": "invite" + }, + { + "type": "literal", + "value": "email_change_current" + }, + { + "type": "literal", + "value": "email_change_new" + } + ] + } + }, + { + "id": 187, + "name": "email", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The user's email." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 188, + "name": "options", "kind": 32768, "kindString": "Parameter", "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 189, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 191, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 627, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "object" + } + }, + { + "id": 190, + "name": "password", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 626, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 192, + "name": "redirectTo", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 628, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [191, 190, 192] + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 193, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 194, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 630, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 486, + "name": "Session" + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + }, + { + "id": 195, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 630, + "character": 44 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [194, 195] + } + ] + } + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 180, + "name": "getAuthCookieString", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 568, + "character": 2 + } + ], + "signatures": [ + { + "id": 181, + "name": "getAuthCookieString", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Helper method to generate the Auth Cookie string for you in case you can't use `setAuthCookie`.", + "returns": "The Cookie string that needs to be set as the value for the `Set-Cookie` header.\n" + }, + "parameters": [ + { + "id": 182, + "name": "req", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The request object." + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 183, + "name": "res", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The response object." + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + ] + }, + { + "id": 34, + "name": "getUrlForProvider", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 65, + "character": 2 + } + ], + "signatures": [ + { + "id": 35, + "name": "getUrlForProvider", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Generates the relevant login URL for a third-party provider." + }, + "parameters": [ + { + "id": 36, + "name": "provider", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "One of the providers supported by GoTrue." + }, "type": { "type": "reference", - "id": 458, - "name": "GenerateLinkParams" + "id": 481, + "name": "Provider" + } + }, + { + "id": 37, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 38, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 41, + "name": "queryParams", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 70, + "character": 6 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 42, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "indexSignature": { + "id": 43, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 44, + "name": "key", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + } + } + }, + { + "id": 39, + "name": "redirectTo", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 68, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 40, + "name": "scopes", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 69, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [41, 39, 40] + } + ] + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 248, + "name": "getUser", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 826, + "character": 8 + } + ], + "signatures": [ + { + "id": 249, + "name": "getUser", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Gets the current user details.", + "text": "This method is called by the GoTrueClient `update` where\nthe jwt is set to this.currentSession.access_token\nand therefore, acts like getting the currently authenticated user\n" + }, + "parameters": [ + { + "id": 250, + "name": "jwt", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "A valid, logged-in JWT. Typically, the access_token for the currentSession\n" + }, + "type": { + "type": "intrinsic", + "name": "string" } } ], @@ -2292,9 +1484,107 @@ "type": "reference", "typeArguments": [ { - "type": "reference", - "id": 459, - "name": "GenerateLinkResponse" + "type": "reflection", + "declaration": { + "id": 251, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 253, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 828, + "character": 34 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + }, + { + "id": 254, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 828, + "character": 53 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + }, + { + "id": 252, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 828, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [253, 254, 252] + } + ] + } } ], "qualifiedName": "Promise", @@ -2305,21 +1595,211 @@ ] }, { - "id": 56, + "id": 224, + "name": "getUserByCookie", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 714, + "character": 8 + } + ], + "signatures": [ + { + "id": 225, + "name": "getUserByCookie", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Get user by reading the cookie from the request.\nWorks for Next.js & Express (requires cookie-parser middleware)." + }, + "parameters": [ + { + "id": 226, + "name": "req", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 227, + "name": "res", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 228, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 231, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 720, + "character": 4 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + }, + { + "id": 232, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 721, + "character": 4 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + }, + { + "id": 229, + "name": "token", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 718, + "character": 4 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 230, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 719, + "character": 4 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [231, 232, 229, 230] + } + ] + } + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 215, "name": "getUserById", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/GoTrueAdminApi.ts", - "line": 171, + "fileName": "src/GoTrueApi.ts", + "line": 697, "character": 8 } ], "signatures": [ { - "id": 57, + "id": 216, "name": "getUserById", "kind": 4096, "kindString": "Call signature", @@ -2329,7 +1809,7 @@ }, "parameters": [ { - "id": 58, + "id": 217, "name": "uid", "kind": 32768, "kindString": "Parameter", @@ -2347,9 +1827,121 @@ "type": "reference", "typeArguments": [ { - "type": "reference", - "id": 280, - "name": "UserResponse" + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 218, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 219, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 699, + "character": 15 + } + ], + "type": { + "type": "literal", + "value": null + } + }, + { + "id": 220, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 699, + "character": 27 + } + ], + "type": { + "type": "reference", + "id": 483, + "name": "ApiError" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [219, 220] + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 221, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 222, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 699, + "character": 49 + } + ], + "type": { + "type": "reference", + "id": 505, + "name": "User" + } + }, + { + "id": 223, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 699, + "character": 61 + } + ], + "type": { + "type": "literal", + "value": null + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [222, 223] + } + ] + } + } + ] } ], "qualifiedName": "Promise", @@ -2360,21 +1952,21 @@ ] }, { - "id": 31, + "id": 142, "name": "inviteUserByEmail", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/GoTrueAdminApi.ts", - "line": 62, + "fileName": "src/GoTrueApi.ts", + "line": 419, "character": 8 } ], "signatures": [ { - "id": 32, + "id": 143, "name": "inviteUserByEmail", "kind": 4096, "kindString": "Call signature", @@ -2384,7 +1976,7 @@ }, "parameters": [ { - "id": 33, + "id": 144, "name": "email", "kind": 32768, "kindString": "Parameter", @@ -2398,7 +1990,7 @@ } }, { - "id": 34, + "id": 145, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -2406,27 +1998,24 @@ "type": { "type": "reflection", "declaration": { - "id": 35, + "id": 146, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 37, + "id": 148, "name": "data", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "Optional user metadata\n" - }, "sources": [ { - "fileName": "src/GoTrueAdminApi.ts", - "line": 66, + "fileName": "src/GoTrueApi.ts", + "line": 423, "character": 6 } ], @@ -2436,20 +2025,17 @@ } }, { - "id": 36, + "id": 147, "name": "redirectTo", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "A URL or mobile deeplink to send the user to after they are confirmed." - }, "sources": [ { - "fileName": "src/GoTrueAdminApi.ts", - "line": 65, + "fileName": "src/GoTrueApi.ts", + "line": 422, "character": 6 } ], @@ -2463,7 +2049,7 @@ { "title": "Properties", "kind": 1024, - "children": [37, 36] + "children": [148, 147] } ] } @@ -2475,9 +2061,79 @@ "type": "reference", "typeArguments": [ { - "type": "reference", - "id": 280, - "name": "UserResponse" + "type": "reflection", + "declaration": { + "id": 149, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 150, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 425, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + }, + { + "id": 151, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 425, + "character": 34 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [150, 151] + } + ] + } } ], "qualifiedName": "Promise", @@ -2488,21 +2144,21 @@ ] }, { - "id": 44, + "id": 207, "name": "listUsers", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/GoTrueAdminApi.ts", - "line": 147, + "fileName": "src/GoTrueApi.ts", + "line": 679, "character": 8 } ], "signatures": [ { - "id": 45, + "id": 208, "name": "listUsers", "kind": 4096, "kindString": "Call signature", @@ -2520,78 +2176,101 @@ { "type": "reflection", "declaration": { - "id": 46, + "id": 209, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 47, + "id": 210, "name": "data", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { - "fileName": "src/GoTrueAdminApi.ts", - "line": 148, - "character": 6 + "fileName": "src/GoTrueApi.ts", + "line": 679, + "character": 31 } ], "type": { - "type": "reflection", - "declaration": { - "id": 48, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 49, - "name": "users", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueAdminApi.ts", - "line": 148, - "character": 14 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "id": 310, - "name": "User" - } - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [49] - } - ] - } + "type": "literal", + "value": null } }, { - "id": 50, + "id": 211, "name": "error", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { - "fileName": "src/GoTrueAdminApi.ts", - "line": 148, - "character": 31 + "fileName": "src/GoTrueApi.ts", + "line": 679, + "character": 43 + } + ], + "type": { + "type": "reference", + "id": 483, + "name": "ApiError" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [210, 211] + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 212, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 213, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 679, + "character": 65 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "id": 505, + "name": "User" + } + } + }, + { + "id": 214, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 679, + "character": 79 } ], "type": { @@ -2604,95 +2283,7 @@ { "title": "Properties", "kind": 1024, - "children": [47, 50] - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 51, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 52, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueAdminApi.ts", - "line": 148, - "character": 49 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 53, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 54, - "name": "users", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueAdminApi.ts", - "line": 148, - "character": 57 - } - ], - "type": { - "type": "tuple" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [54] - } - ] - } - } - }, - { - "id": 55, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueAdminApi.ts", - "line": 148, - "character": 70 - } - ], - "type": { - "type": "reference", - "id": 494, - "name": "AuthError" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [52, 55] + "children": [213, 214] } ] } @@ -2708,21 +2299,1332 @@ ] }, { - "id": 26, + "id": 163, + "name": "refreshAccessToken", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 479, + "character": 8 + } + ], + "signatures": [ + { + "id": 164, + "name": "refreshAccessToken", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Generates a new JWT." + }, + "parameters": [ + { + "id": 165, + "name": "refreshToken", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "A valid refresh token that was returned on login.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 166, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 167, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 481, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 486, + "name": "Session" + } + ] + } + }, + { + "id": 168, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 481, + "character": 37 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [167, 168] + } + ] + } + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 152, + "name": "resetPasswordForEmail", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 450, + "character": 8 + } + ], + "signatures": [ + { + "id": 153, + "name": "resetPasswordForEmail", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Sends a reset request to an email address." + }, + "parameters": [ + { + "id": 154, + "name": "email", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The email address of the user." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 155, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 156, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 158, + "name": "captchaToken", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 454, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 157, + "name": "redirectTo", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 453, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [158, 157] + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 159, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 160, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 456, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reflection", + "declaration": { + "id": 161, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {} + } + } + ] + } + }, + { + "id": 162, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 456, + "character": 32 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [160, 162] + } + ] + } + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 95, + "name": "sendMagicLinkEmail", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 272, + "character": 8 + } + ], + "signatures": [ + { + "id": 96, + "name": "sendMagicLinkEmail", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Sends a magic login link to an email address." + }, + "parameters": [ + { + "id": 97, + "name": "email", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The email address of the user." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 98, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 99, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 102, + "name": "captchaToken", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 277, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 101, + "name": "redirectTo", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 276, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 100, + "name": "shouldCreateUser", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 275, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [102, 101, 100] + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 103, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 104, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 279, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reflection", + "declaration": { + "id": 105, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {} + } + } + ] + } + }, + { + "id": 106, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 279, + "character": 32 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [104, 106] + } + ] + } + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 107, + "name": "sendMobileOTP", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 310, + "character": 8 + } + ], + "signatures": [ + { + "id": 108, + "name": "sendMobileOTP", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Sends a mobile OTP via SMS. Will register the account if it doesn't already exist" + }, + "parameters": [ + { + "id": 109, + "name": "phone", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The user's phone number WITH international prefix" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 110, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 111, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 113, + "name": "captchaToken", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 314, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 112, + "name": "shouldCreateUser", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 313, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [113, 112] + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 114, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 115, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 316, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reflection", + "declaration": { + "id": 116, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {} + } + } + ] + } + }, + { + "id": 117, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 316, + "character": 32 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [115, 117] + } + ] + } + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 169, + "name": "setAuthCookie", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 503, + "character": 2 + } + ], + "signatures": [ + { + "id": 170, + "name": "setAuthCookie", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Set/delete the auth cookie based on the AuthChangeEvent.\nWorks for Next.js & Express (requires cookie-parser middleware)." + }, + "parameters": [ + { + "id": 171, + "name": "req", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The request object." + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 172, + "name": "res", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The response object.\n" + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 57, + "name": "signInWithEmail", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 139, + "character": 8 + } + ], + "signatures": [ + { + "id": 58, + "name": "signInWithEmail", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Logs in an existing user using their email address." + }, + "parameters": [ + { + "id": 59, + "name": "email", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The email address of the user." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 60, + "name": "password", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The password of the user." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 61, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 62, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 64, + "name": "captchaToken", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 144, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 63, + "name": "redirectTo", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 143, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [64, 63] + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 65, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 66, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 146, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 486, + "name": "Session" + } + ] + } + }, + { + "id": 67, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 146, + "character": 37 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [66, 67] + } + ] + } + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 89, + "name": "signInWithOpenIDConnect", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 241, + "character": 8 + } + ], + "signatures": [ + { + "id": 90, + "name": "signInWithOpenIDConnect", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Logs in an OpenID Connect user using their id_token." + }, + "parameters": [ + { + "id": 91, + "name": "__namedParameters", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "id": 583, + "name": "OpenIDConnectCredentials" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 92, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 93, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 247, + "character": 42 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 486, + "name": "Session" + } + ] + } + }, + { + "id": 94, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 247, + "character": 64 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [93, 94] + } + ] + } + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 79, + "name": "signInWithPhone", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 209, + "character": 8 + } + ], + "signatures": [ + { + "id": 80, + "name": "signInWithPhone", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Logs in an existing user using their phone number and password." + }, + "parameters": [ + { + "id": 81, + "name": "phone", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The phone number of the user." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 82, + "name": "password", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The password of the user." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 83, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 84, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 85, + "name": "captchaToken", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 213, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [85] + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 86, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 87, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 215, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 486, + "name": "Session" + } + ] + } + }, + { + "id": 88, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 215, + "character": 37 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [87, 88] + } + ] + } + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 118, "name": "signOut", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/GoTrueAdminApi.ts", - "line": 39, + "fileName": "src/GoTrueApi.ts", + "line": 340, "character": 8 } ], "signatures": [ { - "id": 27, + "id": 119, "name": "signOut", "kind": 4096, "kindString": "Call signature", @@ -2732,7 +3634,7 @@ }, "parameters": [ { - "id": 28, + "id": 120, "name": "jwt", "kind": 32768, "kindString": "Parameter", @@ -2752,22 +3654,22 @@ { "type": "reflection", "declaration": { - "id": 29, + "id": 121, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 30, + "id": 122, "name": "error", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { - "fileName": "src/GoTrueAdminApi.ts", - "line": 39, + "fileName": "src/GoTrueApi.ts", + "line": 340, "character": 40 } ], @@ -2780,8 +3682,8 @@ }, { "type": "reference", - "id": 494, - "name": "AuthError" + "id": 483, + "name": "ApiError" } ] } @@ -2791,7 +3693,7 @@ { "title": "Properties", "kind": 1024, - "children": [30] + "children": [122] } ] } @@ -2805,21 +3707,632 @@ ] }, { - "id": 59, + "id": 45, + "name": "signUpWithEmail", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 98, + "character": 8 + } + ], + "signatures": [ + { + "id": 46, + "name": "signUpWithEmail", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Creates a new user using their email address.", + "returns": "A logged-in session if the server has \"autoconfirm\" ON" + }, + "parameters": [ + { + "id": 47, + "name": "email", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The email address of the user." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 48, + "name": "password", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The password of the user." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 49, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 50, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 53, + "name": "captchaToken", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 104, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 52, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 103, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "object" + } + }, + { + "id": 51, + "name": "redirectTo", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 102, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [53, 52, 51] + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 54, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 55, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 106, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 486, + "name": "Session" + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + }, + { + "id": 56, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 106, + "character": 44 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [55, 56] + } + ] + } + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 68, + "name": "signUpWithPhone", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 174, + "character": 8 + } + ], + "signatures": [ + { + "id": 69, + "name": "signUpWithPhone", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Signs up a new user using their phone number and a password." + }, + "parameters": [ + { + "id": 70, + "name": "phone", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The phone number of the user." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 71, + "name": "password", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The password of the user." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 72, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 73, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 75, + "name": "captchaToken", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 179, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 74, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 178, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "object" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [75, 74] + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 76, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 77, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 181, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 486, + "name": "Session" + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + }, + { + "id": 78, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 181, + "character": 44 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [77, 78] + } + ] + } + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 255, + "name": "updateUser", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 844, + "character": 8 + } + ], + "signatures": [ + { + "id": 256, + "name": "updateUser", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Updates the user data." + }, + "parameters": [ + { + "id": 257, + "name": "jwt", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "A valid, logged-in JWT." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 258, + "name": "attributes", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The data you want to update.\n" + }, + "type": { + "type": "reference", + "id": 533, + "name": "UserAttributes" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 259, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 261, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 847, + "character": 34 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + }, + { + "id": 262, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 847, + "character": 53 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + }, + { + "id": 260, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 847, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [261, 262, 260] + } + ] + } + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 233, "name": "updateUserById", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/GoTrueAdminApi.ts", - "line": 193, + "fileName": "src/GoTrueApi.ts", + "line": 777, "character": 8 } ], "signatures": [ { - "id": 60, + "id": 234, "name": "updateUserById", "kind": 4096, "kindString": "Call signature", @@ -2829,7 +4342,7 @@ }, "parameters": [ { - "id": 61, + "id": 235, "name": "uid", "kind": 32768, "kindString": "Parameter", @@ -2840,7 +4353,7 @@ } }, { - "id": 62, + "id": 236, "name": "attributes", "kind": 32768, "kindString": "Parameter", @@ -2850,7 +4363,7 @@ }, "type": { "type": "reference", - "id": 343, + "id": 539, "name": "AdminUserAttributes" } } @@ -2859,9 +4372,478 @@ "type": "reference", "typeArguments": [ { + "type": "reflection", + "declaration": { + "id": 237, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 239, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 780, + "character": 34 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + }, + { + "id": 240, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 780, + "character": 53 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + }, + { + "id": 238, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 780, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [239, 240, 238] + } + ] + } + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 123, + "name": "verifyMobileOTP", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 360, + "character": 8 + } + ], + "signatures": [ + { + "id": 124, + "name": "verifyMobileOTP", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "tags": [ + { + "tag": "deprecated", + "text": "Use `verifyOTP` instead!" + } + ] + }, + "parameters": [ + { + "id": 125, + "name": "phone", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The user's phone number WITH international prefix" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 126, + "name": "token", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "token that user was sent to their mobile phone" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 127, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 128, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 129, + "name": "redirectTo", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 364, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [129] + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 130, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 131, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 366, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 486, + "name": "Session" + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + }, + { + "id": 132, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 366, + "character": 44 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [131, 132] + } + ] + } + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 133, + "name": "verifyOTP", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 391, + "character": 8 + } + ], + "signatures": [ + { + "id": 134, + "name": "verifyOTP", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Send User supplied Email / Mobile OTP to be verified" + }, + "parameters": [ + { + "id": 135, + "name": "__namedParameters", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { "type": "reference", - "id": 280, - "name": "UserResponse" + "id": 570, + "name": "VerifyOTPParams" + } + }, + { + "id": 136, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 137, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 138, + "name": "redirectTo", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 394, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [138] + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 139, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 140, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 396, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 486, + "name": "Session" + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + }, + { + "id": 141, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueApi.ts", + "line": 396, + "character": 44 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [140, 141] + } + ] + } } ], "qualifiedName": "Promise", @@ -2878,29 +4860,37 @@ "kind": 512, "children": [2] }, + { + "title": "Properties", + "kind": 1024, + "children": [22, 23, 18, 17] + }, { "title": "Methods", "kind": 2048, - "children": [41, 63, 38, 56, 31, 44, 26, 59] + "children": [ + 28, 32, 196, 173, 241, 184, 180, 34, 248, 224, 215, 142, 207, 163, 152, 95, 107, 169, + 57, 89, 79, 118, 45, 68, 255, 233, 123, 133 + ] } ], "sources": [ { - "fileName": "src/GoTrueAdminApi.ts", - "line": 12, + "fileName": "src/GoTrueApi.ts", + "line": 17, "character": 21 } ] }, { - "id": 66, + "id": 263, "name": "GoTrueClient", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 67, + "id": 264, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -2908,13 +4898,13 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 104, + "line": 82, "character": 2 } ], "signatures": [ { - "id": 68, + "id": 265, "name": "new GoTrueClient", "kind": 16384, "kindString": "Constructor signature", @@ -2924,39 +4914,380 @@ }, "parameters": [ { - "id": 69, + "id": 266, "name": "options", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "reference", - "id": 241, - "name": "GoTrueClientOptions" + "type": "reflection", + "declaration": { + "id": 267, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 274, + "name": "autoRefreshToken", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "Set to \"true\" if you want to automatically refresh the token before expiring." + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 86, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 278, + "name": "cookieOptions", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 90, + "character": 4 + } + ], + "type": { + "type": "reference", + "id": 557, + "name": "CookieOptions" + } + }, + { + "id": 273, + "name": "detectSessionInUrl", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "Set to \"true\" if you want to automatically detects OAuth grants in the URL and signs in the user." + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 85, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 279, + "name": "fetch", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 91, + "character": 4 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 280, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "signatures": [ + { + "id": 281, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "A custom fetch implementation.\n" + }, + "parameters": [ + { + "id": 282, + "name": "input", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "qualifiedName": "RequestInfo", + "package": "typescript", + "name": "RequestInfo" + } + }, + { + "id": 283, + "name": "init", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "qualifiedName": "RequestInit", + "package": "typescript", + "name": "RequestInit" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "qualifiedName": "Response", + "package": "typescript", + "name": "Response" + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + } + } + }, + { + "id": 269, + "name": "headers", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "Any additional headers to send to the GoTrue server." + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 84, + "character": 4 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 270, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "indexSignature": { + "id": 271, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 272, + "name": "key", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + } + } + }, + { + "id": 276, + "name": "localStorage", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "Provide your own local storage implementation to use instead of the browser's local storage." + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 88, + "character": 4 + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "qualifiedName": "Storage", + "package": "typescript", + "name": "Storage" + }, + { + "type": "union", + "types": [ + { + "type": "literal", + "value": "getItem" + }, + { + "type": "literal", + "value": "setItem" + }, + { + "type": "literal", + "value": "removeItem" + } + ] + } + ], + "qualifiedName": "Pick", + "package": "typescript", + "name": "Pick" + } + ], + "name": "PromisifyMethods" + } + }, + { + "id": 277, + "name": "multiTab", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "Set to \"false\" if you want to disable multi-tab/window events." + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 89, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 275, + "name": "persistSession", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "Set to \"true\" if you want to automatically save the user session into local storage." + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 87, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 268, + "name": "url", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "The URL of the GoTrue server." + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 83, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [274, 278, 273, 279, 269, 276, 277, 275, 268] + } + ] + } } } ], "type": { "type": "reference", - "id": 66, + "id": 263, "name": "default" } } ] }, { - "id": 70, - "name": "admin", + "id": 284, + "name": "api", "kind": 1024, "kindString": "Property", "flags": {}, "comment": { - "shortText": "Namespace for the GoTrue admin methods.\nThese methods should only be used in a trusted server-side environment." + "shortText": "Namespace for the GoTrue API methods.\nThese can be used for example to get a user from a JWT in a server environment or reset a user's password." }, "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 68, + "line": 52, "character": 2 } ], @@ -2967,28 +5298,307 @@ } }, { - "id": 111, - "name": "getSession", - "kind": 2048, - "kindString": "Method", - "flags": {}, + "id": 287, + "name": "autoRefreshToken", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true + }, "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 407, - "character": 8 + "line": 62, + "character": 12 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 286, + "name": "currentSession", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true + }, + "comment": { + "shortText": "The session object for the currently logged in user or null." + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 60, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 486, + "name": "Session" + } + ] + } + }, + { + "id": 285, + "name": "currentUser", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true + }, + "comment": { + "shortText": "The currently logged in user or null." + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 56, + "character": 12 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + }, + { + "id": 289, + "name": "localStorage", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 64, + "character": 12 + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "qualifiedName": "Storage", + "package": "typescript", + "name": "Storage" + }, + { + "type": "union", + "types": [ + { + "type": "literal", + "value": "getItem" + }, + { + "type": "literal", + "value": "setItem" + }, + { + "type": "literal", + "value": "removeItem" + } + ] + } + ], + "qualifiedName": "Pick", + "package": "typescript", + "name": "Pick" + } + ], + "name": "PromisifyMethods" + } + }, + { + "id": 290, + "name": "multiTab", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 65, + "character": 12 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 293, + "name": "networkRetries", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 68, + "character": 12 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "0" + }, + { + "id": 288, + "name": "persistSession", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 63, + "character": 12 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 292, + "name": "refreshTokenTimer", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 67, + "character": 12 + } + ], + "type": { + "type": "reference", + "qualifiedName": "NodeJS.Timeout", + "package": "@types/node", + "name": "Timeout" + } + }, + { + "id": 291, + "name": "stateChangeEmitters", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 66, + "character": 12 + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "id": 549, + "name": "Subscription" + } + ], + "qualifiedName": "Map", + "package": "typescript", + "name": "Map" + }, + "defaultValue": "..." + }, + { + "id": 454, + "name": "_callRefreshToken", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 695, + "character": 16 } ], "signatures": [ { - "id": 112, - "name": "getSession", + "id": 455, + "name": "_callRefreshToken", "kind": 4096, "kindString": "Call signature", "flags": {}, - "comment": { - "shortText": "Returns the session, refreshing it if necessary.\nThe session returned can be null if the session is not detected which can happen in the event a user is not signed-in or has logged out." - }, + "parameters": [ + { + "id": 456, + "name": "refresh_token", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + }, + "defaultValue": "..." + } + ], "type": { "type": "reference", "typeArguments": [ @@ -2998,177 +5608,42 @@ { "type": "reflection", "declaration": { - "id": 113, + "id": 457, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 114, + "id": 458, "name": "data", "kind": 1024, "kindString": "Property", "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 409, - "character": 8 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 115, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 116, - "name": "session", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 410, - "character": 10 - } - ], - "type": { - "type": "reference", - "id": 291, - "name": "Session" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [116] - } - ] - } - } - }, - { - "id": 117, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 412, - "character": 8 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [114, 117] - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 118, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 119, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 415, - "character": 8 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 120, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 121, - "name": "session", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 416, - "character": 10 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [121] - } - ] - } - } - }, - { - "id": 122, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 418, - "character": 8 - } - ], "type": { "type": "reference", - "id": 494, - "name": "AuthError" + "id": 486, + "name": "Session" } + }, + { + "id": 459, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "literal", + "value": null + }, + "defaultValue": "null" } ], "groups": [ { "title": "Properties", "kind": 1024, - "children": [119, 122] + "children": [458, 459] } ] } @@ -3176,87 +5651,43 @@ { "type": "reflection", "declaration": { - "id": 123, + "id": 460, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 124, + "id": 461, "name": "data", "kind": 1024, "kindString": "Property", "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 421, - "character": 8 - } - ], "type": { - "type": "reflection", - "declaration": { - "id": 125, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 126, - "name": "session", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 422, - "character": 10 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [126] - } - ] - } - } + "type": "literal", + "value": null + }, + "defaultValue": "null" }, { - "id": 127, + "id": 462, "name": "error", "kind": 1024, "kindString": "Property", "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 424, - "character": 8 - } - ], "type": { - "type": "literal", - "value": null - } + "type": "reference", + "id": 483, + "name": "ApiError" + }, + "defaultValue": "..." } ], "groups": [ { "title": "Properties", "kind": 1024, - "children": [124, 127] + "children": [461, 462] } ] } @@ -3272,53 +5703,429 @@ ] }, { - "id": 128, - "name": "getUser", + "id": 383, + "name": "_handleEmailSignIn", "kind": 2048, "kindString": "Method", - "flags": {}, + "flags": { + "isPrivate": true + }, "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 470, - "character": 8 + "line": 520, + "character": 16 } ], "signatures": [ { - "id": 129, - "name": "getUser", + "id": 384, + "name": "_handleEmailSignIn", "kind": 4096, "kindString": "Call signature", "flags": {}, - "comment": { - "shortText": "Gets the current user details if there is an existing session." - }, "parameters": [ { - "id": 130, - "name": "jwt", + "id": 385, + "name": "email", "kind": 32768, "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "Takes in an optional access token jwt. If no jwt is provided, getUser() will attempt to get the jwt from the current session.\n" - }, + "flags": {}, "type": { "type": "intrinsic", "name": "string" } + }, + { + "id": 386, + "name": "password", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 387, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 388, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 390, + "name": "captchaToken", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 525, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 389, + "name": "redirectTo", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 524, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [390, 389] + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 391, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 392, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "literal", + "value": null + }, + "defaultValue": "null" + }, + { + "id": 395, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + }, + { + "id": 394, + "name": "session", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "literal", + "value": null + }, + "defaultValue": "null" + }, + { + "id": 393, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "literal", + "value": null + }, + "defaultValue": "null" + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [392, 395, 394, 393] + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 396, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 397, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "reference", + "id": 486, + "name": "Session" + } + }, + { + "id": 400, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "literal", + "value": null + }, + "defaultValue": "null" + }, + { + "id": 399, + "name": "session", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "reference", + "id": 486, + "name": "Session" + }, + "defaultValue": "data" + }, + { + "id": 398, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + }, + "defaultValue": "data.user" + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [397, 400, 399, 398] + } + ] + } + } + ] + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 443, + "name": "_handleOpenIDConnectSignIn", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 595, + "character": 16 + } + ], + "signatures": [ + { + "id": 444, + "name": "_handleOpenIDConnectSignIn", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 445, + "name": "__namedParameters", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "id": 583, + "name": "OpenIDConnectCredentials" + } } ], "type": { "type": "reference", "typeArguments": [ { - "type": "reference", - "id": 280, - "name": "UserResponse" + "type": "reflection", + "declaration": { + "id": 446, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 449, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 604, + "character": 4 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + }, + { + "id": 447, + "name": "session", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 602, + "character": 4 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 486, + "name": "Session" + } + ] + } + }, + { + "id": 448, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 603, + "character": 4 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [449, 447, 448] + } + ] + } } ], "qualifiedName": "Promise", @@ -3329,35 +6136,1147 @@ ] }, { - "id": 92, - "name": "initialize", + "id": 401, + "name": "_handlePhoneSignIn", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 546, + "character": 16 + } + ], + "signatures": [ + { + "id": 402, + "name": "_handlePhoneSignIn", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 403, + "name": "phone", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 404, + "name": "password", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 405, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 406, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 407, + "name": "captchaToken", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 550, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [407] + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 408, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 409, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "literal", + "value": null + }, + "defaultValue": "null" + }, + { + "id": 412, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + }, + { + "id": 411, + "name": "session", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "literal", + "value": null + }, + "defaultValue": "null" + }, + { + "id": 410, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "literal", + "value": null + }, + "defaultValue": "null" + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [409, 412, 411, 410] + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 413, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 414, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "reference", + "id": 486, + "name": "Session" + } + }, + { + "id": 417, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "literal", + "value": null + }, + "defaultValue": "null" + }, + { + "id": 416, + "name": "session", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "reference", + "id": 486, + "name": "Session" + }, + "defaultValue": "data" + }, + { + "id": 415, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + }, + "defaultValue": "data.user" + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [414, 417, 416, 415] + } + ] + } + } + ] + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 418, + "name": "_handleProviderSignIn", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 568, + "character": 10 + } + ], + "signatures": [ + { + "id": 419, + "name": "_handleProviderSignIn", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 420, + "name": "provider", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "id": 481, + "name": "Provider" + } + }, + { + "id": 421, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 422, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 425, + "name": "queryParams", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 573, + "character": 6 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 426, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "indexSignature": { + "id": 427, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 428, + "name": "key", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + } + } + }, + { + "id": 423, + "name": "redirectTo", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 571, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 424, + "name": "scopes", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 572, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [425, 423, 424] + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 429, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 432, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "literal", + "value": null + }, + "defaultValue": "null" + }, + { + "id": 435, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "literal", + "value": null + }, + "defaultValue": "null" + }, + { + "id": 430, + "name": "provider", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "reference", + "id": 481, + "name": "Provider" + } + }, + { + "id": 433, + "name": "session", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "literal", + "value": null + }, + "defaultValue": "null" + }, + { + "id": 431, + "name": "url", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 434, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "literal", + "value": null + }, + "defaultValue": "null" + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [432, 435, 430, 433, 431, 434] + } + ] + } + }, + { + "type": "reflection", + "declaration": { + "id": 436, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 437, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "literal", + "value": null + }, + "defaultValue": "null" + }, + { + "id": 440, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "reference", + "id": 483, + "name": "ApiError" + }, + "defaultValue": "..." + }, + { + "id": 441, + "name": "provider", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "undefined" + } + }, + { + "id": 439, + "name": "session", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "literal", + "value": null + }, + "defaultValue": "null" + }, + { + "id": 442, + "name": "url", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "undefined" + } + }, + { + "id": 438, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "type": { + "type": "literal", + "value": null + }, + "defaultValue": "null" + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [437, 440, 441, 439, 442, 438] + } + ] + } + } + ] + } + } + ] + }, + { + "id": 479, + "name": "_handleVisibilityChange", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 800, + "character": 10 + } + ], + "signatures": [ + { + "id": 480, + "name": "_handleVisibilityChange", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "literal", + "value": false + } + ] + } + } + ] + }, + { + "id": 477, + "name": "_listenForMultiTabEvents", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 777, + "character": 10 + } + ], + "signatures": [ + { + "id": 478, + "name": "_listenForMultiTabEvents", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Listens for changes to LocalStorage and updates the current session." + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "literal", + "value": false + } + ] + } + } + ] + }, + { + "id": 463, + "name": "_notifyAllSubscribers", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 714, + "character": 10 + } + ], + "signatures": [ + { + "id": 464, + "name": "_notifyAllSubscribers", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 465, + "name": "event", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "id": 482, + "name": "AuthChangeEvent" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 469, + "name": "_persistSession", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 741, + "character": 10 + } + ], + "signatures": [ + { + "id": 470, + "name": "_persistSession", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 471, + "name": "currentSession", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "id": 486, + "name": "Session" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 452, + "name": "_recoverAndRefresh", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 650, + "character": 16 + } + ], + "signatures": [ + { + "id": 453, + "name": "_recoverAndRefresh", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Recovers the session from LocalStorage and refreshes\nNote: this method is async to accommodate for AsyncStorage e.g. in React native." + }, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "literal", + "value": null + } + ] + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 450, + "name": "_recoverSession", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 630, + "character": 10 + } + ], + "signatures": [ + { + "id": 451, + "name": "_recoverSession", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Attempts to get the session from LocalStorage\nNote: this should never be async (even for React Native), as we need it to return immediately in the constructor." + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ] + }, + { + "id": 472, + "name": "_removeSession", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 746, + "character": 16 + } + ], + "signatures": [ + { + "id": 473, + "name": "_removeSession", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 466, + "name": "_saveSession", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 722, + "character": 10 + } + ], + "signatures": [ + { + "id": 467, + "name": "_saveSession", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "set currentSession and currentUser\nprocess to _startAutoRefreshToken if possible" + }, + "parameters": [ + { + "id": 468, + "name": "session", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "id": 486, + "name": "Session" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 474, + "name": "_startAutoRefreshToken", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 757, + "character": 10 + } + ], + "signatures": [ + { + "id": 475, + "name": "_startAutoRefreshToken", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Clear and re-create refresh token timer" + }, + "parameters": [ + { + "id": 476, + "name": "value", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "time intervals in milliseconds\n" + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 361, + "name": "getSessionFromUrl", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 130, - "character": 2 + "line": 428, + "character": 8 } ], "signatures": [ { - "id": 93, - "name": "initialize", + "id": 362, + "name": "getSessionFromUrl", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Initializes the client session either from the url or from storage.\nThis method is automatically called when instantiating the client, but should also be called\nmanually when checking for an error from an auth redirect (oauth, magiclink, password recovery, etc)." + "shortText": "Gets the session data from a URL string" }, + "parameters": [ + { + "id": 363, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 364, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 365, + "name": "storeSession", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "Optionally store the session in the browser\n" + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 429, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [365] + } + ] + } + } + } + ], "type": { "type": "reference", "typeArguments": [ { - "type": "reference", - "id": 481, - "name": "InitializeResult" + "type": "reflection", + "declaration": { + "id": 366, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 367, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 430, + "character": 16 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 486, + "name": "Session" + } + ] + } + }, + { + "id": 368, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 430, + "character": 38 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [367, 368] + } + ] + } } ], "qualifiedName": "Promise", @@ -3368,7 +7287,7 @@ ] }, { - "id": 157, + "id": 373, "name": "onAuthStateChange", "kind": 2048, "kindString": "Method", @@ -3376,60 +7295,58 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 665, + "line": 500, "character": 2 } ], "signatures": [ { - "id": 158, + "id": 374, "name": "onAuthStateChange", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Receive a notification every time an auth event happens." + "shortText": "Receive a notification every time an auth event happens.", + "returns": "A subscription object which can be used to unsubscribe itself.\n" }, "parameters": [ { - "id": 159, + "id": 375, "name": "callback", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "shortText": "A callback function to be invoked when an auth event happens.\n" - }, "type": { "type": "reflection", "declaration": { - "id": 160, + "id": 376, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 161, + "id": 377, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 162, + "id": 378, "name": "event", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 240, + "id": 482, "name": "AuthChangeEvent" } }, { - "id": 163, + "id": 379, "name": "session", "kind": 32768, "kindString": "Parameter", @@ -3443,7 +7360,7 @@ }, { "type": "reference", - "id": 291, + "id": 486, "name": "Session" } ] @@ -3463,14 +7380,14 @@ "type": { "type": "reflection", "declaration": { - "id": 164, + "id": 380, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 165, + "id": 381, "name": "data", "kind": 1024, "kindString": "Property", @@ -3478,47 +7395,51 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 666, + "line": 501, "character": 4 } ], "type": { - "type": "reflection", - "declaration": { - "id": 166, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 167, - "name": "subscription", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 666, - "character": 12 - } - ], - "type": { - "type": "reference", - "id": 352, - "name": "Subscription" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [167] - } - ] + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 549, + "name": "Subscription" + } + ] + } + }, + { + "id": 382, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 502, + "character": 4 } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] } } ], @@ -3526,7 +7447,7 @@ { "title": "Properties", "kind": 1024, - "children": [165] + "children": [381, 382] } ] } @@ -3535,45 +7456,392 @@ ] }, { - "id": 168, - "name": "resetPasswordForEmail", + "id": 339, + "name": "refreshSession", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 688, + "line": 339, "character": 8 } ], "signatures": [ { - "id": 169, - "name": "resetPasswordForEmail", + "id": 340, + "name": "refreshSession", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Sends a password reset request to an email address." + "shortText": "Force refreshes the session including the user data in case it was updated in a different session." + }, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 341, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 342, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 340, + "character": 4 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 486, + "name": "Session" + } + ] + } + }, + { + "id": 344, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 342, + "character": 4 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + }, + { + "id": 343, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 341, + "character": 4 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [342, 344, 343] + } + ] + } + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 337, + "name": "session", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 332, + "character": 2 + } + ], + "signatures": [ + { + "id": 338, + "name": "session", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Returns the session data, if there is an active session." + }, + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 486, + "name": "Session" + } + ] + } + } + ] + }, + { + "id": 358, + "name": "setAuth", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 411, + "character": 2 + } + ], + "signatures": [ + { + "id": 359, + "name": "setAuth", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Overrides the JWT on the current client. The JWT will then be sent in all subsequent network requests." }, "parameters": [ { - "id": 170, - "name": "email", + "id": 360, + "name": "access_token", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The email address of the user." + "shortText": "a jwt access token\n" }, "type": { "type": "intrinsic", "name": "string" } + } + ], + "type": { + "type": "reference", + "id": 486, + "name": "Session" + } + } + ] + }, + { + "id": 352, + "name": "setSession", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 387, + "character": 8 + } + ], + "signatures": [ + { + "id": 353, + "name": "setSession", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Sets the session data from refresh_token and returns current Session and Error" + }, + "parameters": [ + { + "id": 354, + "name": "refresh_token", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "a JWT token\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 355, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 357, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 389, + "character": 40 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + }, + { + "id": 356, + "name": "session", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 389, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 486, + "name": "Session" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [357, 356] + } + ] + } + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 306, + "name": "signIn", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 197, + "character": 8 + } + ], + "signatures": [ + { + "id": 307, + "name": "signIn", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Log in an existing user, or login via a third-party provider." + }, + "parameters": [ + { + "id": 308, + "name": "__namedParameters", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "id": 563, + "name": "UserCredentials" + } }, { - "id": 171, + "id": 309, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -3581,27 +7849,24 @@ "type": { "type": "reflection", "declaration": { - "id": 172, + "id": 310, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 174, + "id": 314, "name": "captchaToken", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "Verification token received when the user completes the captcha on the site.\n" - }, "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 692, + "line": 203, "character": 6 } ], @@ -3611,20 +7876,66 @@ } }, { - "id": 173, + "id": 315, + "name": "queryParams", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 204, + "character": 6 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 316, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "indexSignature": { + "id": 317, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 318, + "name": "key", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + } + } + }, + { + "id": 311, "name": "redirectTo", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "The URL to send the user to after they click the password reset link." - }, "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 691, + "line": 200, "character": 6 } ], @@ -3632,13 +7943,53 @@ "type": "intrinsic", "name": "string" } + }, + { + "id": 313, + "name": "scopes", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 202, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 312, + "name": "shouldCreateUser", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 201, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } } ], "groups": [ { "title": "Properties", "kind": 1024, - "children": [174, 173] + "children": [314, 315, 311, 313, 312] } ] } @@ -3646,391 +7997,20 @@ "defaultValue": "{}" } ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 175, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 176, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 696, - "character": 8 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 177, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {} - } - } - }, - { - "id": 178, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 697, - "character": 8 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [176, 178] - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 179, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 180, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 699, - "character": 8 - } - ], - "type": { - "type": "literal", - "value": null - } - }, - { - "id": 181, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 699, - "character": 20 - } - ], - "type": { - "type": "reference", - "id": 494, - "name": "AuthError" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [180, 181] - } - ] - } - } - ] - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 134, - "name": "setSession", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 534, - "character": 8 - } - ], - "signatures": [ - { - "id": 135, - "name": "setSession", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Sets the session data from refresh token and returns current session or an error if the refresh token is invalid." - }, - "parameters": [ - { - "id": 136, - "name": "refresh_token", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "shortText": "A refresh token returned by supabase auth.\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 254, - "name": "AuthResponse" - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 102, - "name": "signInWithOAuth", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 306, - "character": 8 - } - ], - "signatures": [ - { - "id": 103, - "name": "signInWithOAuth", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Log in an existing user via a third-party provider." - }, - "parameters": [ - { - "id": 104, - "name": "credentials", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "id": 403, - "name": "SignInWithOAuthCredentials" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 267, - "name": "OAuthResponse" - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 105, - "name": "signInWithOtp", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 321, - "character": 8 - } - ], - "signatures": [ - { - "id": 106, - "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." - }, - "parameters": [ - { - "id": 107, - "name": "credentials", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "id": 389, - "name": "SignInWithPasswordlessCredentials" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 254, - "name": "AuthResponse" - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 99, - "name": "signInWithPassword", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 256, - "character": 8 - } - ], - "signatures": [ - { - "id": 100, - "name": "signInWithPassword", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Log in an existing user with an email and password or phone and password." - }, - "parameters": [ - { - "id": 101, - "name": "credentials", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "id": 376, - "name": "SignInWithPasswordCredentials" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 254, - "name": "AuthResponse" - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 153, - "name": "signOut", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/GoTrueClient.ts", - "line": 646, - "character": 8 - } - ], - "signatures": [ - { - "id": 154, - "name": "signOut", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Inside a browser context, `signOut()` will remove the logged in user from the browser session\nand log them out - removing all items from localstorage and then trigger a `\"SIGNED_OUT\"` event.", - "text": "For server-side management, you can revoke all refresh tokens for a user by passing a user's JWT through to `auth.api.signOut(JWT: string)`.\nThere is no way to revoke a user's access token jwt until it expires. It is recommended to set a shorter expiry on the jwt for this reason.\n" - }, "type": { "type": "reference", "typeArguments": [ { "type": "reflection", "declaration": { - "id": 155, + "id": 319, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 156, + "id": 324, "name": "error", "kind": 1024, "kindString": "Property", @@ -4038,7 +8018,195 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 646, + "line": 211, + "character": 4 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + }, + { + "id": 322, + "name": "provider", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 209, + "character": 4 + } + ], + "type": { + "type": "reference", + "id": 481, + "name": "Provider" + } + }, + { + "id": 320, + "name": "session", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 207, + "character": 4 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 486, + "name": "Session" + } + ] + } + }, + { + "id": 323, + "name": "url", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 210, + "character": 4 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + }, + { + "id": 321, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 208, + "character": 4 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [324, 322, 320, 323, 321] + } + ] + } + } + ], + "qualifiedName": "Promise", + "package": "typescript", + "name": "Promise" + } + } + ] + }, + { + "id": 369, + "name": "signOut", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 485, + "character": 8 + } + ], + "signatures": [ + { + "id": 370, + "name": "signOut", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Inside a browser context, `signOut()` will remove the logged in user from the browser session\nand log them out - removing all items from localstorage and then trigger a \"SIGNED_OUT\" event.", + "text": "For server-side management, you can revoke all refresh tokens for a user by passing a user's JWT through to `auth.api.signOut(JWT: string)`. There is no way to revoke a user's session JWT before it automatically expires\n" + }, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reflection", + "declaration": { + "id": 371, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 372, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 485, "character": 29 } ], @@ -4051,8 +8219,8 @@ }, { "type": "reference", - "id": 494, - "name": "AuthError" + "id": 483, + "name": "ApiError" } ] } @@ -4062,7 +8230,7 @@ { "title": "Properties", "kind": 1024, - "children": [156] + "children": [372] } ] } @@ -4076,7 +8244,7 @@ ] }, { - "id": 96, + "id": 294, "name": "signUp", "kind": 2048, "kindString": "Method", @@ -4084,42 +8252,226 @@ "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 193, + "line": 130, "character": 8 } ], "signatures": [ { - "id": 97, + "id": 295, "name": "signUp", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Creates a new user.", - "returns": "A logged-in session if the server has \"autoconfirm\" ON" + "shortText": "Creates a new user." }, "parameters": [ { - "id": 98, - "name": "credentials", + "id": 296, + "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 360, - "name": "SignUpWithPasswordCredentials" + "id": 563, + "name": "UserCredentials" } + }, + { + "id": 297, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 298, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 301, + "name": "captchaToken", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 135, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 300, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 134, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "object" + } + }, + { + "id": 299, + "name": "redirectTo", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 133, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [301, 300, 299] + } + ] + } + }, + "defaultValue": "{}" } ], "type": { "type": "reference", "typeArguments": [ { - "type": "reference", - "id": 254, - "name": "AuthResponse" + "type": "reflection", + "declaration": { + "id": 302, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 305, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 140, + "character": 4 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + }, + { + "id": 304, + "name": "session", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 139, + "character": 4 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 486, + "name": "Session" + } + ] + } + }, + { + "id": 303, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 138, + "character": 4 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [305, 304, 303] + } + ] + } } ], "qualifiedName": "Promise", @@ -4130,22 +8482,22 @@ ] }, { - "id": 131, - "name": "updateUser", + "id": 345, + "name": "update", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 499, + "line": 360, "character": 8 } ], "signatures": [ { - "id": 132, - "name": "updateUser", + "id": 346, + "name": "update", "kind": 4096, "kindString": "Call signature", "flags": {}, @@ -4154,14 +8506,14 @@ }, "parameters": [ { - "id": 133, + "id": 347, "name": "attributes", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 338, + "id": 533, "name": "UserAttributes" } } @@ -4170,9 +8522,107 @@ "type": "reference", "typeArguments": [ { - "type": "reference", - "id": 280, - "name": "UserResponse" + "type": "reflection", + "declaration": { + "id": 348, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 349, + "name": "data", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 362, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + }, + { + "id": 351, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 362, + "character": 53 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + }, + { + "id": 350, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 362, + "character": 34 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [349, 351, 350] + } + ] + } } ], "qualifiedName": "Promise", @@ -4183,22 +8633,63 @@ ] }, { - "id": 108, - "name": "verifyOtp", + "id": 335, + "name": "user", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 363, + "line": 325, + "character": 2 + } + ], + "signatures": [ + { + "id": 336, + "name": "user", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Inside a browser context, `user()` will return the user data, if there is a logged in user.", + "text": "For server-side management, you can get a user through `auth.api.getUserByCookie()`\n" + }, + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + } + ] + }, + { + "id": 325, + "name": "verifyOTP", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 277, "character": 8 } ], "signatures": [ { - "id": 109, - "name": "verifyOtp", + "id": 326, + "name": "verifyOTP", "kind": 4096, "kindString": "Call signature", "flags": {}, @@ -4207,25 +8698,170 @@ }, "parameters": [ { - "id": 110, + "id": 327, "name": "params", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 414, - "name": "VerifyOtpParams" + "id": 570, + "name": "VerifyOTPParams" } + }, + { + "id": 328, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 329, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 330, + "name": "redirectTo", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 280, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [330] + } + ] + } + }, + "defaultValue": "{}" } ], "type": { "type": "reference", "typeArguments": [ { - "type": "reference", - "id": 254, - "name": "AuthResponse" + "type": "reflection", + "declaration": { + "id": 331, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 334, + "name": "error", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 285, + "character": 4 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 483, + "name": "ApiError" + } + ] + } + }, + { + "id": 333, + "name": "session", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 284, + "character": 4 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 486, + "name": "Session" + } + ] + } + }, + { + "id": 332, + "name": "user", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/GoTrueClient.ts", + "line": 283, + "character": 4 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [334, 333, 332] + } + ] + } } ], "qualifiedName": "Promise", @@ -4240,36 +8876,39 @@ { "title": "Constructors", "kind": 512, - "children": [67] + "children": [264] }, { "title": "Properties", "kind": 1024, - "children": [70] + "children": [284, 287, 286, 285, 289, 290, 293, 288, 292, 291] }, { "title": "Methods", "kind": 2048, - "children": [111, 128, 92, 157, 168, 134, 102, 105, 99, 153, 96, 131, 108] + "children": [ + 454, 383, 443, 401, 418, 479, 477, 463, 469, 452, 450, 472, 466, 474, 361, 373, 339, + 337, 358, 352, 306, 369, 294, 345, 335, 325 + ] } ], "sources": [ { "fileName": "src/GoTrueClient.ts", - "line": 63, + "line": 47, "character": 21 } ] }, { - "id": 343, + "id": 539, "name": "AdminUserAttributes", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 345, + "id": 541, "name": "app_metadata", "kind": 1024, "kindString": "Property", @@ -4277,13 +8916,13 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's application specific metadata. This maps to the `auth.users.app_metadata` column.", - "text": "Only a service role can modify.\n\nThe `app_metadata` should be a JSON object that includes app-specific info, such as identity providers, roles, and other\naccess control information.\n" + "shortText": "A custom data object for app_metadata that.", + "text": "Only a service role can modify.\n\nCan be any JSON that includes app-specific info, such as identity providers, roles, and other\naccess control information.\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 205, + "line": 137, "character": 2 } ], @@ -4293,7 +8932,7 @@ } }, { - "id": 351, + "id": 548, "name": "data", "kind": 1024, "kindString": "Property", @@ -4301,13 +8940,12 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", - "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n\n" + "shortText": "A custom data object for user_metadata that a user can modify. Can be any JSON." }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 180, + "line": 112, "character": 2 } ], @@ -4317,12 +8955,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 342, + "id": 538, "name": "UserAttributes.data" } }, { - "id": 348, + "id": 544, "name": "email", "kind": 1024, "kindString": "Property", @@ -4335,7 +8973,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 162, + "line": 92, "character": 2 } ], @@ -4345,12 +8983,40 @@ }, "inheritedFrom": { "type": "reference", - "id": 339, + "id": 534, "name": "UserAttributes.email" } }, { - "id": 346, + "id": 547, + "name": "email_change_token", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "An email change token." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 107, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "id": 537, + "name": "UserAttributes.email_change_token" + } + }, + { + "id": 542, "name": "email_confirm", "kind": 1024, "kindString": "Property", @@ -4358,13 +9024,13 @@ "isOptional": true }, "comment": { - "shortText": "Confirms the user's email address if set to true.", + "shortText": "Sets if a user has confirmed their email address.", "text": "Only a service role can modify.\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 212, + "line": 144, "character": 2 } ], @@ -4374,7 +9040,7 @@ } }, { - "id": 350, + "id": 546, "name": "password", "kind": 1024, "kindString": "Property", @@ -4387,7 +9053,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 172, + "line": 102, "character": 2 } ], @@ -4397,12 +9063,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 341, + "id": 536, "name": "UserAttributes.password" } }, { - "id": 349, + "id": 545, "name": "phone", "kind": 1024, "kindString": "Property", @@ -4415,7 +9081,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 167, + "line": 97, "character": 2 } ], @@ -4425,12 +9091,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 340, + "id": 535, "name": "UserAttributes.phone" } }, { - "id": 347, + "id": 543, "name": "phone_confirm", "kind": 1024, "kindString": "Property", @@ -4438,13 +9104,13 @@ "isOptional": true }, "comment": { - "shortText": "Confirms the user's phone number if set to true.", + "shortText": "Sets if a user has confirmed their phone number.", "text": "Only a service role can modify.\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 219, + "line": 151, "character": 2 } ], @@ -4454,7 +9120,7 @@ } }, { - "id": 344, + "id": 540, "name": "user_metadata", "kind": 1024, "kindString": "Property", @@ -4462,13 +9128,13 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", - "text": "Only a service role can modify.\n\nThe `user_metadata` should be a JSON object that includes user-specific info, such as their first and last name.\n\nNote: When using the GoTrueAdminApi and wanting to modify a user's metadata,\nthis attribute is used instead of UserAttributes data.\n\n" + "shortText": "A custom data object for user_metadata.", + "text": "Can be any JSON.\n\nOnly a service role can modify.\n\nNote: When using the GoTrueAdminApi and wanting to modify a user's user_metadata,\nthis attribute is used instead of UserAttributes data.\n\n" }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 195, + "line": 127, "character": 2 } ], @@ -4482,70 +9148,182 @@ { "title": "Properties", "kind": 1024, - "children": [345, 351, 348, 346, 350, 349, 347, 344] + "children": [541, 548, 544, 547, 542, 546, 545, 543, 540] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 183, + "line": 115, "character": 17 } ], "extendedTypes": [ { "type": "reference", - "id": 338, + "id": 533, "name": "UserAttributes" } ] }, { - "id": 455, - "name": "GenerateLinkOptions", + "id": 483, + "name": "ApiError", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 456, - "name": "data", + "id": 484, + "name": "message", "kind": 1024, "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", - "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n" - }, + "flags": {}, "sources": [ { "fileName": "src/lib/types.ts", - "line": 402, + "line": 28, "character": 2 } ], "type": { "type": "intrinsic", - "name": "object" + "name": "string" } }, { - "id": 457, - "name": "redirectTo", + "id": 485, + "name": "status", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 29, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [484, 485] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 27, + "character": 17 + } + ] + }, + { + "id": 557, + "name": "CookieOptions", + "kind": 256, + "kindString": "Interface", + "flags": {}, + "children": [ + { + "id": 560, + "name": "domain", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "The URL which will be appended to the email link generated." + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 175, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 559, + "name": "lifetime", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 404, + "line": 173, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 558, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 171, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 561, + "name": "path", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 176, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 562, + "name": "sameSite", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 178, "character": 2 } ], @@ -4559,37 +9337,36 @@ { "title": "Properties", "kind": 1024, - "children": [456, 457] + "children": [560, 559, 558, 561, 562] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 396, + "line": 169, "character": 17 } ] }, { - "id": 291, - "name": "Session", + "id": 583, + "name": "OpenIDConnectCredentials", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 293, - "name": "access_token", + "id": 587, + "name": "client_id", "kind": 1024, "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The access token jwt. It is recommended to set the JWT_EXPIRY to a shorter expiry value." + "flags": { + "isOptional": true }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 101, + "line": 211, "character": 2 } ], @@ -4599,7 +9376,125 @@ } }, { - "id": 296, + "id": 584, + "name": "id_token", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 208, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 588, + "name": "issuer", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 212, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 585, + "name": "nonce", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 209, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 586, + "name": "provider", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 210, + "character": 2 + } + ], + "type": { + "type": "reference", + "id": 481, + "name": "Provider" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [587, 584, 588, 585, 586] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 207, + "character": 17 + } + ] + }, + { + "id": 486, + "name": "Session", + "kind": 256, + "kindString": "Interface", + "flags": {}, + "children": [ + { + "id": 488, + "name": "access_token", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 34, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 490, "name": "expires_at", "kind": 1024, "kindString": "Property", @@ -4612,7 +9507,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 113, + "line": 42, "character": 2 } ], @@ -4622,18 +9517,20 @@ } }, { - "id": 295, + "id": 489, "name": "expires_in", "kind": 1024, "kindString": "Property", - "flags": {}, + "flags": { + "isOptional": true + }, "comment": { "shortText": "The number of seconds until the token expires (since it was issued). Returned when a login is confirmed." }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 109, + "line": 38, "character": 2 } ], @@ -4643,7 +9540,7 @@ } }, { - "id": 292, + "id": 487, "name": "provider_token", "kind": 1024, "kindString": "Property", @@ -4653,7 +9550,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 97, + "line": 33, "character": 2 } ], @@ -4672,18 +9569,17 @@ } }, { - "id": 294, + "id": 491, "name": "refresh_token", "kind": 1024, "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "A one-time used refresh token that never expires." + "flags": { + "isOptional": true }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 105, + "line": 43, "character": 2 } ], @@ -4693,7 +9589,7 @@ } }, { - "id": 297, + "id": 492, "name": "token_type", "kind": 1024, "kindString": "Property", @@ -4701,7 +9597,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 114, + "line": 44, "character": 2 } ], @@ -4711,7 +9607,7 @@ } }, { - "id": 298, + "id": 493, "name": "user", "kind": 1024, "kindString": "Property", @@ -4719,14 +9615,23 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 115, + "line": 45, "character": 2 } ], "type": { - "type": "reference", - "id": 310, - "name": "User" + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 505, + "name": "User" + } + ] } } ], @@ -4734,26 +9639,26 @@ { "title": "Properties", "kind": 1024, - "children": [293, 296, 295, 292, 294, 297, 298] + "children": [488, 490, 489, 487, 491, 492, 493] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 96, + "line": 32, "character": 17 } ] }, { - "id": 352, + "id": 549, "name": "Subscription", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 353, + "id": 550, "name": "id", "kind": 1024, "kindString": "Property", @@ -4764,7 +9669,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 226, + "line": 158, "character": 2 } ], @@ -4774,7 +9679,7 @@ } }, { - "id": 354, + "id": 551, "name": "callback", "kind": 2048, "kindString": "Method", @@ -4782,13 +9687,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 230, + "line": 162, "character": 2 } ], "signatures": [ { - "id": 355, + "id": 552, "name": "callback", "kind": 4096, "kindString": "Call signature", @@ -4798,19 +9703,19 @@ }, "parameters": [ { - "id": 356, + "id": 553, "name": "event", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 240, + "id": 482, "name": "AuthChangeEvent" } }, { - "id": 357, + "id": 554, "name": "session", "kind": 32768, "kindString": "Parameter", @@ -4824,7 +9729,7 @@ }, { "type": "reference", - "id": 291, + "id": 486, "name": "Session" } ] @@ -4839,7 +9744,7 @@ ] }, { - "id": 358, + "id": 555, "name": "unsubscribe", "kind": 2048, "kindString": "Method", @@ -4847,13 +9752,13 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 234, + "line": 166, "character": 2 } ], "signatures": [ { - "id": 359, + "id": 556, "name": "unsubscribe", "kind": 4096, "kindString": "Call signature", @@ -4873,31 +9778,31 @@ { "title": "Properties", "kind": 1024, - "children": [353] + "children": [550] }, { "title": "Methods", "kind": 2048, - "children": [354, 358] + "children": [551, 555] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 222, + "line": 154, "character": 17 } ] }, { - "id": 310, + "id": 505, "name": "User", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 327, + "id": 522, "name": "action_link", "kind": 1024, "kindString": "Property", @@ -4907,7 +9812,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 145, + "line": 75, "character": 2 } ], @@ -4917,7 +9822,7 @@ } }, { - "id": 312, + "id": 507, "name": "app_metadata", "kind": 1024, "kindString": "Property", @@ -4925,21 +9830,21 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 132, + "line": 62, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 313, + "id": 508, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 314, + "id": 509, "name": "provider", "kind": 1024, "kindString": "Property", @@ -4949,7 +9854,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 133, + "line": 63, "character": 4 } ], @@ -4963,18 +9868,18 @@ { "title": "Properties", "kind": 1024, - "children": [314] + "children": [509] } ], "indexSignature": { - "id": 315, + "id": 510, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 316, + "id": 511, "name": "key", "kind": 32768, "flags": {}, @@ -4993,7 +9898,7 @@ } }, { - "id": 321, + "id": 516, "name": "aud", "kind": 1024, "kindString": "Property", @@ -5001,7 +9906,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 139, + "line": 69, "character": 2 } ], @@ -5011,7 +9916,7 @@ } }, { - "id": 322, + "id": 517, "name": "confirmation_sent_at", "kind": 1024, "kindString": "Property", @@ -5021,7 +9926,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 140, + "line": 70, "character": 2 } ], @@ -5031,7 +9936,7 @@ } }, { - "id": 331, + "id": 526, "name": "confirmed_at", "kind": 1024, "kindString": "Property", @@ -5041,7 +9946,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 149, + "line": 79, "character": 2 } ], @@ -5051,7 +9956,7 @@ } }, { - "id": 330, + "id": 525, "name": "created_at", "kind": 1024, "kindString": "Property", @@ -5059,7 +9964,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 148, + "line": 78, "character": 2 } ], @@ -5069,7 +9974,7 @@ } }, { - "id": 328, + "id": 523, "name": "email", "kind": 1024, "kindString": "Property", @@ -5079,7 +9984,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 146, + "line": 76, "character": 2 } ], @@ -5089,7 +9994,7 @@ } }, { - "id": 324, + "id": 519, "name": "email_change_sent_at", "kind": 1024, "kindString": "Property", @@ -5099,7 +10004,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 142, + "line": 72, "character": 2 } ], @@ -5109,7 +10014,7 @@ } }, { - "id": 332, + "id": 527, "name": "email_confirmed_at", "kind": 1024, "kindString": "Property", @@ -5119,7 +10024,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 150, + "line": 80, "character": 2 } ], @@ -5129,7 +10034,7 @@ } }, { - "id": 311, + "id": 506, "name": "id", "kind": 1024, "kindString": "Property", @@ -5137,7 +10042,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 131, + "line": 61, "character": 2 } ], @@ -5147,7 +10052,7 @@ } }, { - "id": 337, + "id": 532, "name": "identities", "kind": 1024, "kindString": "Property", @@ -5157,7 +10062,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 155, + "line": 85, "character": 2 } ], @@ -5165,13 +10070,13 @@ "type": "array", "elementType": { "type": "reference", - "id": 299, + "id": 494, "name": "UserIdentity" } } }, { - "id": 326, + "id": 521, "name": "invited_at", "kind": 1024, "kindString": "Property", @@ -5181,7 +10086,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 144, + "line": 74, "character": 2 } ], @@ -5191,7 +10096,7 @@ } }, { - "id": 334, + "id": 529, "name": "last_sign_in_at", "kind": 1024, "kindString": "Property", @@ -5201,7 +10106,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 152, + "line": 82, "character": 2 } ], @@ -5211,7 +10116,7 @@ } }, { - "id": 325, + "id": 520, "name": "new_email", "kind": 1024, "kindString": "Property", @@ -5221,7 +10126,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 143, + "line": 73, "character": 2 } ], @@ -5231,7 +10136,7 @@ } }, { - "id": 329, + "id": 524, "name": "phone", "kind": 1024, "kindString": "Property", @@ -5241,7 +10146,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 147, + "line": 77, "character": 2 } ], @@ -5251,7 +10156,7 @@ } }, { - "id": 333, + "id": 528, "name": "phone_confirmed_at", "kind": 1024, "kindString": "Property", @@ -5261,7 +10166,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 151, + "line": 81, "character": 2 } ], @@ -5271,7 +10176,7 @@ } }, { - "id": 323, + "id": 518, "name": "recovery_sent_at", "kind": 1024, "kindString": "Property", @@ -5281,7 +10186,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 141, + "line": 71, "character": 2 } ], @@ -5291,7 +10196,7 @@ } }, { - "id": 335, + "id": 530, "name": "role", "kind": 1024, "kindString": "Property", @@ -5301,7 +10206,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 153, + "line": 83, "character": 2 } ], @@ -5311,7 +10216,7 @@ } }, { - "id": 336, + "id": 531, "name": "updated_at", "kind": 1024, "kindString": "Property", @@ -5321,7 +10226,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 154, + "line": 84, "character": 2 } ], @@ -5331,7 +10236,7 @@ } }, { - "id": 317, + "id": 512, "name": "user_metadata", "kind": 1024, "kindString": "Property", @@ -5339,27 +10244,27 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 136, + "line": 66, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 318, + "id": 513, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 319, + "id": 514, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 320, + "id": 515, "name": "key", "kind": 32768, "flags": {}, @@ -5383,28 +10288,28 @@ "title": "Properties", "kind": 1024, "children": [ - 327, 312, 321, 322, 331, 330, 328, 324, 332, 311, 337, 326, 334, 325, 329, 333, 323, - 335, 336, 317 + 522, 507, 516, 517, 526, 525, 523, 519, 527, 506, 532, 521, 529, 520, 524, 528, 518, + 530, 531, 512 ] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 130, + "line": 60, "character": 17 } ] }, { - "id": 338, + "id": 533, "name": "UserAttributes", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 342, + "id": 538, "name": "data", "kind": 1024, "kindString": "Property", @@ -5412,13 +10317,12 @@ "isOptional": true }, "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", - "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n\n" + "shortText": "A custom data object for user_metadata that a user can modify. Can be any JSON." }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 180, + "line": 112, "character": 2 } ], @@ -5428,7 +10332,7 @@ } }, { - "id": 339, + "id": 534, "name": "email", "kind": 1024, "kindString": "Property", @@ -5441,7 +10345,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 162, + "line": 92, "character": 2 } ], @@ -5451,7 +10355,30 @@ } }, { - "id": 341, + "id": 537, + "name": "email_change_token", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "comment": { + "shortText": "An email change token." + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 107, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 536, "name": "password", "kind": 1024, "kindString": "Property", @@ -5464,7 +10391,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 172, + "line": 102, "character": 2 } ], @@ -5474,7 +10401,7 @@ } }, { - "id": 340, + "id": 535, "name": "phone", "kind": 1024, "kindString": "Property", @@ -5487,7 +10414,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 167, + "line": 97, "character": 2 } ], @@ -5501,33 +10428,178 @@ { "title": "Properties", "kind": 1024, - "children": [342, 339, 341, 340] + "children": [538, 534, 537, 536, 535] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 158, + "line": 88, "character": 17 } ], "extendedBy": [ { "type": "reference", - "id": 343, + "id": 539, "name": "AdminUserAttributes" } ] }, { - "id": 299, + "id": 563, + "name": "UserCredentials", + "kind": 256, + "kindString": "Interface", + "flags": {}, + "children": [ + { + "id": 564, + "name": "email", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 182, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 569, + "name": "oidc", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 188, + "character": 2 + } + ], + "type": { + "type": "reference", + "id": 583, + "name": "OpenIDConnectCredentials" + } + }, + { + "id": 566, + "name": "password", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 184, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 565, + "name": "phone", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 183, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 568, + "name": "provider", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 187, + "character": 2 + } + ], + "type": { + "type": "reference", + "id": 481, + "name": "Provider" + } + }, + { + "id": 567, + "name": "refreshToken", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 185, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [564, 569, 566, 565, 568, 567] + } + ], + "sources": [ + { + "fileName": "src/lib/types.ts", + "line": 181, + "character": 17 + } + ] + }, + { + "id": 494, "name": "UserIdentity", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 307, + "id": 502, "name": "created_at", "kind": 1024, "kindString": "Property", @@ -5535,7 +10607,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 125, + "line": 55, "character": 2 } ], @@ -5545,7 +10617,7 @@ } }, { - "id": 300, + "id": 495, "name": "id", "kind": 1024, "kindString": "Property", @@ -5553,7 +10625,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 119, + "line": 49, "character": 2 } ], @@ -5563,7 +10635,7 @@ } }, { - "id": 302, + "id": 497, "name": "identity_data", "kind": 1024, "kindString": "Property", @@ -5571,27 +10643,27 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 121, + "line": 51, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 303, + "id": 498, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 304, + "id": 499, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 305, + "id": 500, "name": "key", "kind": 32768, "flags": {}, @@ -5610,7 +10682,7 @@ } }, { - "id": 308, + "id": 503, "name": "last_sign_in_at", "kind": 1024, "kindString": "Property", @@ -5618,7 +10690,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 126, + "line": 56, "character": 2 } ], @@ -5628,7 +10700,7 @@ } }, { - "id": 306, + "id": 501, "name": "provider", "kind": 1024, "kindString": "Property", @@ -5636,7 +10708,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 124, + "line": 54, "character": 2 } ], @@ -5646,7 +10718,7 @@ } }, { - "id": 309, + "id": 504, "name": "updated_at", "kind": 1024, "kindString": "Property", @@ -5656,7 +10728,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 127, + "line": 57, "character": 2 } ], @@ -5666,7 +10738,7 @@ } }, { - "id": 301, + "id": 496, "name": "user_id", "kind": 1024, "kindString": "Property", @@ -5674,7 +10746,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 120, + "line": 50, "character": 2 } ], @@ -5688,37 +10760,34 @@ { "title": "Properties", "kind": 1024, - "children": [307, 300, 302, 308, 306, 309, 301] + "children": [502, 495, 497, 503, 501, 504, 496] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 118, + "line": 48, "character": 17 } ] }, { - "id": 423, - "name": "VerifyEmailOtpParams", + "id": 576, + "name": "VerifyEmailOTPParams", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 424, + "id": 577, "name": "email", "kind": 1024, "kindString": "Property", "flags": {}, - "comment": { - "shortText": "The user's email address." - }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 348, + "line": 199, "character": 2 } ], @@ -5728,8 +10797,8 @@ } }, { - "id": 427, - "name": "options", + "id": 578, + "name": "phone", "kind": 1024, "kindString": "Property", "flags": { @@ -5738,89 +10807,25 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 353, + "line": 200, "character": 2 } ], "type": { - "type": "reflection", - "declaration": { - "id": 428, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 430, - "name": "captchaToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "Verification token received when the user completes the captcha on the site." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 357, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 429, - "name": "redirectTo", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "A URL to send the user to after they are confirmed." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 355, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [430, 429] - } - ] - } + "type": "intrinsic", + "name": "undefined" } }, { - "id": 425, + "id": 579, "name": "token", "kind": 1024, "kindString": "Property", "flags": {}, - "comment": { - "shortText": "The otp sent to the user's email address." - }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 350, + "line": 201, "character": 2 } ], @@ -5830,25 +10835,22 @@ } }, { - "id": 426, + "id": 580, "name": "type", "kind": 1024, "kindString": "Property", "flags": {}, - "comment": { - "shortText": "The user's verification type." - }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 352, + "line": 202, "character": 2 } ], "type": { "type": "reference", - "id": 432, - "name": "EmailOtpType" + "id": 582, + "name": "EmailOTPType" } } ], @@ -5856,27 +10858,27 @@ { "title": "Properties", "kind": 1024, - "children": [424, 427, 425, 426] + "children": [577, 578, 579, 580] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 346, + "line": 198, "character": 17 } ] }, { - "id": 415, - "name": "VerifyMobileOtpParams", + "id": 571, + "name": "VerifyMobileOTPParams", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { - "id": 419, - "name": "options", + "id": 572, + "name": "email", "kind": 1024, "kindString": "Property", "flags": { @@ -5885,89 +10887,25 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 339, + "line": 193, "character": 2 } ], "type": { - "type": "reflection", - "declaration": { - "id": 420, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 422, - "name": "captchaToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "Verification token received when the user completes the captcha on the site." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 343, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 421, - "name": "redirectTo", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "A URL to send the user to after they are confirmed." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 341, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [422, 421] - } - ] - } + "type": "intrinsic", + "name": "undefined" } }, { - "id": 416, + "id": 573, "name": "phone", "kind": 1024, "kindString": "Property", "flags": {}, - "comment": { - "shortText": "The user's phone number." - }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 334, + "line": 194, "character": 2 } ], @@ -5977,18 +10915,15 @@ } }, { - "id": 417, + "id": 574, "name": "token", "kind": 1024, "kindString": "Property", "flags": {}, - "comment": { - "shortText": "The otp sent to the user's phone number." - }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 336, + "line": 195, "character": 2 } ], @@ -5998,25 +10933,24 @@ } }, { - "id": 418, + "id": 575, "name": "type", "kind": 1024, "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The user's verification type." + "flags": { + "isOptional": true }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 338, + "line": 196, "character": 2 } ], "type": { "type": "reference", - "id": 431, - "name": "MobileOtpType" + "id": 581, + "name": "MobileOTPType" } } ], @@ -6024,19 +10958,19 @@ { "title": "Properties", "kind": 1024, - "children": [419, 416, 417, 418] + "children": [572, 573, 574, 575] } ], "sources": [ { "fileName": "src/lib/types.ts", - "line": 332, + "line": 192, "character": 17 } ] }, { - "id": 240, + "id": 482, "name": "AuthChangeEvent", "kind": 4194304, "kindString": "Type alias", @@ -6044,7 +10978,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 23, + "line": 19, "character": 12 } ], @@ -6079,440 +11013,15 @@ } }, { - "id": 254, - "name": "AuthResponse", + "id": 582, + "name": "EmailOTPType", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/lib/types.ts", - "line": 50, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 255, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 256, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 52, - "character": 6 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 257, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 259, - "name": "session", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 54, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 291, - "name": "Session" - }, - { - "type": "literal", - "value": null - } - ] - } - }, - { - "id": 258, - "name": "user", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 53, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 310, - "name": "User" - }, - { - "type": "literal", - "value": null - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [259, 258] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 52, - "character": 12 - } - ] - } - } - }, - { - "id": 260, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 56, - "character": 6 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [256, 260] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 51, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 261, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 262, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 59, - "character": 6 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 263, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 265, - "name": "session", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 61, - "character": 8 - } - ], - "type": { - "type": "literal", - "value": null - } - }, - { - "id": 264, - "name": "user", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 60, - "character": 8 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [265, 264] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 59, - "character": 12 - } - ] - } - } - }, - { - "id": 266, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 63, - "character": 6 - } - ], - "type": { - "type": "reference", - "id": 494, - "name": "AuthError" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [262, 266] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 58, - "character": 4 - } - ] - } - } - ] - } - }, - { - "id": 484, - "name": "CallRefreshTokenResult", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 472, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 485, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 487, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 475, - "character": 6 - } - ], - "type": { - "type": "literal", - "value": null - } - }, - { - "id": 486, - "name": "session", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 474, - "character": 6 - } - ], - "type": { - "type": "reference", - "id": 291, - "name": "Session" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [487, 486] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 473, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 488, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 490, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 479, - "character": 6 - } - ], - "type": { - "type": "reference", - "id": 494, - "name": "AuthError" - } - }, - { - "id": 489, - "name": "session", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 478, - "character": 6 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [490, 489] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 477, - "character": 4 - } - ] - } - } - ] - } - }, - { - "id": 432, - "name": "EmailOtpType", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 362, + "line": 205, "character": 12 } ], @@ -6543,1333 +11052,15 @@ } }, { - "id": 449, - "name": "GenerateEmailChangeLinkParams", + "id": 581, + "name": "MobileOTPType", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/lib/types.ts", - "line": 385, - "character": 12 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 450, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 452, - "name": "email", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The user's email" - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 388, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 453, - "name": "newEmail", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The user's new email. Only required if type is 'email_change_current' or 'email_change_new'." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 392, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 454, - "name": "options", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 393, - "character": 2 - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 455, - "name": "GenerateLinkOptions" - }, - { - "type": "literal", - "value": "redirectTo" - } - ], - "qualifiedName": "Pick", - "package": "typescript", - "name": "Pick" - } - }, - { - "id": 451, - "name": "type", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 386, - "character": 2 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "email_change_current" - }, - { - "type": "literal", - "value": "email_change_new" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [452, 453, 454, 451] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 385, - "character": 44 - } - ] - } - } - }, - { - "id": 439, - "name": "GenerateInviteOrMagiclinkParams", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 371, - "character": 12 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 440, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 442, - "name": "email", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The user's email" - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 374, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 443, - "name": "options", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 375, - "character": 2 - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 455, - "name": "GenerateLinkOptions" - }, - { - "type": "union", - "types": [ - { - "type": "literal", - "value": "data" - }, - { - "type": "literal", - "value": "redirectTo" - } - ] - } - ], - "qualifiedName": "Pick", - "package": "typescript", - "name": "Pick" - } - }, - { - "id": 441, - "name": "type", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 372, - "character": 2 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "invite" - }, - { - "type": "literal", - "value": "magiclink" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [442, 443, 441] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 371, - "character": 46 - } - ] - } - } - }, - { - "id": 458, - "name": "GenerateLinkParams", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 407, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 433, - "name": "GenerateSignupLinkParams" - }, - { - "type": "reference", - "id": 439, - "name": "GenerateInviteOrMagiclinkParams" - }, - { - "type": "reference", - "id": 444, - "name": "GenerateRecoveryLinkParams" - }, - { - "type": "reference", - "id": 449, - "name": "GenerateEmailChangeLinkParams" - } - ] - } - }, - { - "id": 472, - "name": "GenerateLinkProperties", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "comment": { - "shortText": "The properties related to the email link generated" - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 430, - "character": 12 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 473, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 474, - "name": "action_link", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The email link to send to the user.\nThe action_link follows the following format: auth/v1/verify?type={verification_type}&token={hashed_token}&redirect_to={redirect_to}" - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 435, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 475, - "name": "email_otp", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The raw email OTP.\nYou should send this in the email if you want your users to verify using an OTP instead of the action link." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 440, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 476, - "name": "hashed_token", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The hashed token appended to the action link." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 444, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 477, - "name": "redirect_to", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The URL appended to the action link." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 446, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 478, - "name": "verification_type", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The verification type that the email link is associated to." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 448, - "character": 2 - } - ], - "type": { - "type": "reference", - "id": 479, - "name": "GenerateLinkType" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [474, 475, 476, 477, 478] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 430, - "character": 37 - } - ] - } - } - }, - { - "id": 459, - "name": "GenerateLinkResponse", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 413, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 460, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 461, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 415, - "character": 6 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 462, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 463, - "name": "properties", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 416, - "character": 8 - } - ], - "type": { - "type": "reference", - "id": 472, - "name": "GenerateLinkProperties" - } - }, - { - "id": 464, - "name": "user", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 417, - "character": 8 - } - ], - "type": { - "type": "reference", - "id": 310, - "name": "User" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [463, 464] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 415, - "character": 12 - } - ] - } - } - }, - { - "id": 465, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 419, - "character": 6 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [461, 465] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 414, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 466, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 467, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 422, - "character": 6 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 468, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 469, - "name": "properties", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 423, - "character": 8 - } - ], - "type": { - "type": "literal", - "value": null - } - }, - { - "id": 470, - "name": "user", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 424, - "character": 8 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [469, 470] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 422, - "character": 12 - } - ] - } - } - }, - { - "id": 471, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 426, - "character": 6 - } - ], - "type": { - "type": "reference", - "id": 494, - "name": "AuthError" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [467, 471] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 421, - "character": 4 - } - ] - } - } - ] - } - }, - { - "id": 479, - "name": "GenerateLinkType", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 451, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "signup" - }, - { - "type": "literal", - "value": "invite" - }, - { - "type": "literal", - "value": "magiclink" - }, - { - "type": "literal", - "value": "recovery" - }, - { - "type": "literal", - "value": "email_change_current" - }, - { - "type": "literal", - "value": "email_change_new" - } - ] - } - }, - { - "id": 444, - "name": "GenerateRecoveryLinkParams", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 378, - "character": 12 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 445, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 447, - "name": "email", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The user's email" - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 381, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 448, - "name": "options", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 382, - "character": 2 - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 455, - "name": "GenerateLinkOptions" - }, - { - "type": "literal", - "value": "redirectTo" - } - ], - "qualifiedName": "Pick", - "package": "typescript", - "name": "Pick" - } - }, - { - "id": 446, - "name": "type", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 379, - "character": 2 - } - ], - "type": { - "type": "literal", - "value": "recovery" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [447, 448, 446] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 378, - "character": 41 - } - ] - } - } - }, - { - "id": 433, - "name": "GenerateSignupLinkParams", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 364, - "character": 12 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 434, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 436, - "name": "email", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 366, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 438, - "name": "options", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 368, - "character": 2 - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 455, - "name": "GenerateLinkOptions" - }, - { - "type": "union", - "types": [ - { - "type": "literal", - "value": "data" - }, - { - "type": "literal", - "value": "redirectTo" - } - ] - } - ], - "qualifiedName": "Pick", - "package": "typescript", - "name": "Pick" - } - }, - { - "id": 437, - "name": "password", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 367, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 435, - "name": "type", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 365, - "character": 2 - } - ], - "type": { - "type": "literal", - "value": "signup" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [436, 438, 437, 435] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 364, - "character": 39 - } - ] - } - } - }, - { - "id": 241, - "name": "GoTrueClientOptions", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 31, - "character": 12 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 242, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 250, - "name": "autoRefreshToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 41, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 249, - "name": "detectSessionInUrl", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 39, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 253, - "name": "fetch", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 47, - "character": 2 - } - ], - "type": { - "type": "reference", - "name": "Fetch" - } - }, - { - "id": 244, - "name": "headers", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 35, - "character": 2 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 245, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 35, - "character": 12 - } - ], - "indexSignature": { - "id": 246, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": {}, - "parameters": [ - { - "id": 247, - "name": "key", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - } - } - }, - { - "id": 251, - "name": "persistSession", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 43, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 252, - "name": "storage", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 45, - "character": 2 - } - ], - "type": { - "type": "reference", - "id": 480, - "name": "SupportedStorage" - } - }, - { - "id": 248, - "name": "storageKey", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 37, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 243, - "name": "url", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 33, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [250, 249, 253, 244, 251, 252, 248, 243] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 31, - "character": 34 - } - ] - } - } - }, - { - "id": 481, - "name": "InitializeResult", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 470, - "character": 12 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 482, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 483, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 470, - "character": 33 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 494, - "name": "AuthError" - }, - { - "type": "literal", - "value": null - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [483] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 470, - "character": 31 - } - ] - } - } - }, - { - "id": 431, - "name": "MobileOtpType", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 361, + "line": 204, "character": 12 } ], @@ -7888,280 +11079,15 @@ } }, { - "id": 267, - "name": "OAuthResponse", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 66, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 268, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 269, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 68, - "character": 6 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 270, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 271, - "name": "provider", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 69, - "character": 8 - } - ], - "type": { - "type": "reference", - "id": 239, - "name": "Provider" - } - }, - { - "id": 272, - "name": "url", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 70, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [271, 272] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 68, - "character": 12 - } - ] - } - } - }, - { - "id": 273, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 72, - "character": 6 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [269, 273] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 67, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 274, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 275, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 75, - "character": 6 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 276, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 277, - "name": "provider", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 76, - "character": 8 - } - ], - "type": { - "type": "reference", - "id": 239, - "name": "Provider" - } - }, - { - "id": 278, - "name": "url", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 77, - "character": 8 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [277, 278] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 75, - "character": 12 - } - ] - } - } - }, - { - "id": 279, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 79, - "character": 6 - } - ], - "type": { - "type": "reference", - "id": 494, - "name": "AuthError" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [275, 279] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 74, - "character": 4 - } - ] - } - } - ] - } - }, - { - "id": 239, + "id": 481, "name": "Provider", "kind": 4194304, "kindString": "Type alias", "flags": {}, - "comment": { - "shortText": "One of the providers supported by GoTrue." - }, "sources": [ { "fileName": "src/lib/types.ts", - "line": 5, + "line": 1, "character": 12 } ], @@ -8236,1169 +11162,7 @@ } }, { - "id": 403, - "name": "SignInWithOAuthCredentials", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 318, - "character": 12 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 404, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 406, - "name": "options", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 321, - "character": 2 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 407, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 410, - "name": "queryParams", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "An object of query params" - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 327, - "character": 4 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 411, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 327, - "character": 18 - } - ], - "indexSignature": { - "id": 412, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": {}, - "parameters": [ - { - "id": 413, - "name": "key", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - } - } - }, - { - "id": 408, - "name": "redirectTo", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "A URL to send the user to after they are confirmed." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 323, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 409, - "name": "scopes", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "A space-separated list of scopes granted to the OAuth application." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 325, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [410, 408, 409] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 321, - "character": 12 - } - ] - } - } - }, - { - "id": 405, - "name": "provider", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "One of the providers supported by GoTrue." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 320, - "character": 2 - } - ], - "type": { - "type": "reference", - "id": 239, - "name": "Provider" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [406, 405] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 318, - "character": 41 - } - ] - } - } - }, - { - "id": 376, - "name": "SignInWithPasswordCredentials", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 272, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 377, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 378, - "name": "email", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The user's email address." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 275, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 380, - "name": "options", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 278, - "character": 6 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 381, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 382, - "name": "captchaToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "Verification token received when the user completes the captcha on the site." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 280, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [382] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 278, - "character": 16 - } - ] - } - } - }, - { - "id": 379, - "name": "password", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The user's password." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 277, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [378, 380, 379] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 273, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 383, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 386, - "name": "options", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 288, - "character": 6 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 387, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 388, - "name": "captchaToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "Verification token received when the user completes the captcha on the site." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 290, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [388] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 288, - "character": 16 - } - ] - } - } - }, - { - "id": 385, - "name": "password", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The user's password." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 287, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 384, - "name": "phone", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The user's phone number." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 285, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [386, 385, 384] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 283, - "character": 4 - } - ] - } - } - ] - } - }, - { - "id": 389, - "name": "SignInWithPasswordlessCredentials", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 294, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 390, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 391, - "name": "email", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The user's email address." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 297, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 392, - "name": "options", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 298, - "character": 6 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 393, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 396, - "name": "captchaToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "Verification token received when the user completes the captcha on the site." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 304, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 394, - "name": "emailRedirectTo", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "The redirect url embedded in the email link" - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 300, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 395, - "name": "shouldCreateUser", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "If set to false, this method will not create a new user. Defaults to true." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 302, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [396, 394, 395] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 298, - "character": 16 - } - ] - } - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [391, 392] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 295, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 397, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 399, - "name": "options", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 310, - "character": 6 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 400, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 402, - "name": "captchaToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "Verification token received when the user completes the captcha on the site." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 314, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 401, - "name": "shouldCreateUser", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "If set to false, this method will not create a new user. Defaults to true." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 312, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [402, 401] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 310, - "character": 16 - } - ] - } - } - }, - { - "id": 398, - "name": "phone", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The user's phone number." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 309, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [399, 398] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 307, - "character": 4 - } - ] - } - } - ] - } - }, - { - "id": 360, - "name": "SignUpWithPasswordCredentials", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 237, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 361, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 362, - "name": "email", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The user's email address." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 240, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 364, - "name": "options", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 243, - "character": 6 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 365, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 368, - "name": "captchaToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "Verification token received when the user completes the captcha on the site." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 253, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 367, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", - "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n" - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 251, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } - }, - { - "id": 366, - "name": "emailRedirectTo", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "The redirect url embedded in the email link" - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 245, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [368, 367, 366] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 243, - "character": 16 - } - ] - } - } - }, - { - "id": 363, - "name": "password", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The user's password." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 242, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [362, 364, 363] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 238, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 369, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 372, - "name": "options", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 261, - "character": 6 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 373, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 375, - "name": "captchaToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "Verification token received when the user completes the captcha on the site." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 269, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 374, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "A custom data object to store the user's metadata. This maps to the `auth.users.user_metadata` column.", - "text": "The `data` should be a JSON object that includes user-specific info, such as their first and last name.\n" - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 267, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [375, 374] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 261, - "character": 16 - } - ] - } - } - }, - { - "id": 371, - "name": "password", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The user's password." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 260, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 370, - "name": "phone", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "comment": { - "shortText": "The user's phone number." - }, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 258, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [372, 371, 370] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 256, - "character": 4 - } - ] - } - } - ] - } - }, - { - "id": 480, + "id": 589, "name": "SupportedStorage", "kind": 4194304, "kindString": "Type alias", @@ -9406,7 +11170,7 @@ "sources": [ { "fileName": "src/lib/types.ts", - "line": 468, + "line": 224, "character": 12 } ], @@ -9449,240 +11213,15 @@ } }, { - "id": 280, - "name": "UserResponse", + "id": 570, + "name": "VerifyOTPParams", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/lib/types.ts", - "line": 82, - "character": 12 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 281, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 282, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 84, - "character": 6 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 283, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 284, - "name": "user", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 85, - "character": 8 - } - ], - "type": { - "type": "reference", - "id": 310, - "name": "User" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [284] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 84, - "character": 12 - } - ] - } - } - }, - { - "id": 285, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 87, - "character": 6 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [282, 285] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 83, - "character": 4 - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 286, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 287, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 90, - "character": 6 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 288, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 289, - "name": "user", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 91, - "character": 8 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [289] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 90, - "character": 12 - } - ] - } - } - }, - { - "id": 290, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 93, - "character": 6 - } - ], - "type": { - "type": "reference", - "id": 494, - "name": "AuthError" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [287, 290] - } - ], - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 89, - "character": 4 - } - ] - } - } - ] - } - }, - { - "id": 414, - "name": "VerifyOtpParams", - "kind": 4194304, - "kindString": "Type alias", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/types.ts", - "line": 331, + "line": 191, "character": 12 } ], @@ -9691,87 +11230,33 @@ "types": [ { "type": "reference", - "id": 415, - "name": "VerifyMobileOtpParams" + "id": 571, + "name": "VerifyMobileOTPParams" }, { "type": "reference", - "id": 423, - "name": "VerifyEmailOtpParams" + "id": 576, + "name": "VerifyEmailOTPParams" } ] } - }, - { - "id": 491, - "name": "isAuthError", - "kind": 64, - "kindString": "Function", - "flags": {}, - "sources": [ - { - "fileName": "src/lib/errors.ts", - "line": 10, - "character": 16 - } - ], - "signatures": [ - { - "id": 492, - "name": "isAuthError", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 493, - "name": "error", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "type": { - "type": "predicate", - "name": "error", - "asserts": false, - "targetType": { - "type": "reference", - "id": 494, - "name": "AuthError" - } - } - } - ] } ], "groups": [ { "title": "Classes", "kind": 128, - "children": [499, 494, 559, 546, 584, 534, 512, 519, 1, 66] + "children": [1, 263] }, { "title": "Interfaces", "kind": 256, - "children": [343, 455, 291, 352, 310, 338, 299, 423, 415] + "children": [539, 483, 557, 583, 486, 549, 505, 533, 563, 494, 576, 571] }, { - "title": "Type Aliases", + "title": "Type aliases", "kind": 4194304, - "children": [ - 240, 254, 484, 432, 449, 439, 458, 472, 459, 479, 444, 433, 241, 481, 431, 267, 239, 403, - 376, 389, 360, 480, 280, 414 - ] - }, - { - "title": "Functions", - "kind": 64, - "children": [491] + "children": [482, 582, 581, 481, 589, 570] } ], "sources": [ diff --git a/spec/enrichments/tsdoc_v1/postgrest.json b/spec/enrichments/tsdoc_v1/postgrest.json index 7be98a509dd..94f09ece191 100644 --- a/spec/enrichments/tsdoc_v1/postgrest.json +++ b/spec/enrichments/tsdoc_v1/postgrest.json @@ -7,7 +7,7 @@ "originalName": "", "children": [ { - "id": 486, + "id": 46, "name": "PostgrestBuilder", "kind": 128, "kindString": "Class", @@ -16,29 +16,29 @@ }, "children": [ { - "id": 487, + "id": 47, "name": "constructor", "kind": 512, "kindString": "Constructor", "flags": {}, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 18, + "fileName": "src/lib/types.ts", + "line": 62, "character": 2 } ], "signatures": [ { - "id": 488, + "id": 48, "name": "new PostgrestBuilder", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "typeParameter": [ { - "id": 489, - "name": "Result", + "id": 49, + "name": "T", "kind": 131072, "kindString": "Type parameter", "flags": {} @@ -46,42 +46,42 @@ ], "parameters": [ { - "id": 490, + "id": 50, "name": "builder", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 486, + "id": 46, "typeArguments": [ { "type": "reference", - "id": 489, - "name": "Result" + "id": 49, + "name": "T" } ], - "name": "default" + "name": "PostgrestBuilder" } } ], "type": { "type": "reference", - "id": 486, + "id": 46, "typeArguments": [ { "type": "reference", - "id": 489, - "name": "Result" + "id": 49, + "name": "T" } ], - "name": "default" + "name": "PostgrestBuilder" } } ] }, { - "id": 503, + "id": 66, "name": "allowEmpty", "kind": 1024, "kindString": "Property", @@ -90,8 +90,8 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 16, + "fileName": "src/lib/types.ts", + "line": 60, "character": 12 } ], @@ -101,7 +101,7 @@ } }, { - "id": 495, + "id": 58, "name": "body", "kind": 1024, "kindString": "Property", @@ -111,18 +111,48 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 12, + "fileName": "src/lib/types.ts", + "line": 56, "character": 12 } ], "type": { - "type": "intrinsic", - "name": "unknown" + "type": "union", + "types": [ + { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 49, + "name": "T" + } + ], + "qualifiedName": "Partial", + "package": "typescript", + "name": "Partial" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 49, + "name": "T" + } + ], + "qualifiedName": "Partial", + "package": "typescript", + "name": "Partial" + } + } + ] } }, { - "id": 498, + "id": 61, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -131,53 +161,42 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 15, + "fileName": "src/lib/types.ts", + "line": 59, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 499, + "id": 62, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 500, + "id": 63, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 501, + "id": 64, "name": "input", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "union", - "types": [ - { - "type": "reference", - "qualifiedName": "RequestInfo", - "package": "typescript", - "name": "RequestInfo" - }, - { - "type": "reference", - "qualifiedName": "URL", - "package": "typescript", - "name": "URL" - } - ] + "type": "reference", + "qualifiedName": "RequestInfo", + "package": "typescript", + "name": "RequestInfo" } }, { - "id": 502, + "id": 65, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -212,7 +231,7 @@ } }, { - "id": 493, + "id": 53, "name": "headers", "kind": 1024, "kindString": "Property", @@ -221,30 +240,47 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 10, + "fileName": "src/lib/types.ts", + "line": 54, "character": 12 } ], "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "string" + "type": "reflection", + "declaration": { + "id": 54, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "indexSignature": { + "id": 55, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 56, + "name": "key", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" + } } }, { - "id": 491, + "id": 51, "name": "method", "kind": 1024, "kindString": "Property", @@ -253,8 +289,8 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 8, + "fileName": "src/lib/types.ts", + "line": 52, "character": 12 } ], @@ -285,7 +321,7 @@ } }, { - "id": 494, + "id": 57, "name": "schema", "kind": 1024, "kindString": "Property", @@ -295,8 +331,8 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 11, + "fileName": "src/lib/types.ts", + "line": 55, "character": 12 } ], @@ -306,7 +342,7 @@ } }, { - "id": 496, + "id": 59, "name": "shouldThrowOnError", "kind": 1024, "kindString": "Property", @@ -315,19 +351,18 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 13, + "fileName": "src/lib/types.ts", + "line": 57, "character": 12 } ], "type": { "type": "intrinsic", "name": "boolean" - }, - "defaultValue": "false" + } }, { - "id": 497, + "id": 60, "name": "signal", "kind": 1024, "kindString": "Property", @@ -337,8 +372,8 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 14, + "fileName": "src/lib/types.ts", + "line": 58, "character": 12 } ], @@ -350,7 +385,7 @@ } }, { - "id": 492, + "id": 52, "name": "url", "kind": 1024, "kindString": "Property", @@ -359,8 +394,8 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 9, + "fileName": "src/lib/types.ts", + "line": 53, "character": 12 } ], @@ -372,47 +407,47 @@ } }, { - "id": 506, + "id": 70, "name": "then", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 48, + "fileName": "src/lib/types.ts", + "line": 91, "character": 2 } ], "signatures": [ { - "id": 507, + "id": 71, "name": "then", "kind": 4096, "kindString": "Call signature", "flags": {}, "typeParameter": [ { - "id": 508, + "id": 72, "name": "TResult1", "kind": 131072, "kindString": "Type parameter", "flags": {}, "default": { "type": "reference", - "id": 519, + "id": 425, "typeArguments": [ { "type": "reference", - "id": 489, - "name": "Result" + "id": 49, + "name": "T" } ], "name": "PostgrestResponse" } }, { - "id": 509, + "id": 73, "name": "TResult2", "kind": 131072, "kindString": "Type parameter", @@ -425,7 +460,7 @@ ], "parameters": [ { - "id": 510, + "id": 74, "name": "onfulfilled", "kind": 32768, "kindString": "Parameter", @@ -442,33 +477,33 @@ { "type": "reflection", "declaration": { - "id": 511, + "id": 75, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 512, + "id": 76, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 513, + "id": 77, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 519, + "id": 425, "typeArguments": [ { "type": "reference", - "id": 489, - "name": "Result" + "id": 49, + "name": "T" } ], "name": "PostgrestResponse" @@ -480,7 +515,7 @@ "types": [ { "type": "reference", - "id": 382, + "id": 72, "name": "TResult1" }, { @@ -488,7 +523,7 @@ "typeArguments": [ { "type": "reference", - "id": 382, + "id": 72, "name": "TResult1" } ], @@ -506,7 +541,7 @@ } }, { - "id": 514, + "id": 78, "name": "onrejected", "kind": 32768, "kindString": "Parameter", @@ -523,21 +558,21 @@ { "type": "reflection", "declaration": { - "id": 515, + "id": 79, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 516, + "id": 80, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 517, + "id": 81, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -553,7 +588,7 @@ "types": [ { "type": "reference", - "id": 383, + "id": 73, "name": "TResult2" }, { @@ -561,7 +596,7 @@ "typeArguments": [ { "type": "reference", - "id": 383, + "id": 73, "name": "TResult2" } ], @@ -587,12 +622,12 @@ "types": [ { "type": "reference", - "id": 382, + "id": 72, "name": "TResult1" }, { "type": "reference", - "id": 383, + "id": 73, "name": "TResult2" } ] @@ -614,21 +649,21 @@ } }, { - "id": 504, + "id": 67, "name": "throwOnError", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 43, + "fileName": "src/lib/types.ts", + "line": 83, "character": 2 } ], "signatures": [ { - "id": 505, + "id": 68, "name": "throwOnError", "kind": 4096, "kindString": "Call signature", @@ -637,17 +672,32 @@ "shortText": "If there's an error with the query, throwOnError will reject the promise by\nthrowing the error instead of returning it as part of a successful response.", "text": "{@link https://github.com/supabase/supabase-js/issues/92}\n" }, + "parameters": [ + { + "id": 69, + "name": "throwOnError", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], "type": { "type": "reference", - "id": 486, + "id": 46, "typeArguments": [ { "type": "reference", - "id": 489, - "name": "Result" + "id": 49, + "name": "T" } ], - "name": "default" + "name": "PostgrestBuilder" } } ] @@ -657,30 +707,30 @@ { "title": "Constructors", "kind": 512, - "children": [487] + "children": [47] }, { "title": "Properties", "kind": 1024, - "children": [503, 495, 498, 493, 491, 494, 496, 497, 492] + "children": [66, 58, 61, 53, 51, 57, 59, 60, 52] }, { "title": "Methods", "kind": 2048, - "children": [506, 504] + "children": [70, 67] } ], "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 5, - "character": 30 + "fileName": "src/lib/types.ts", + "line": 51, + "character": 22 } ], "typeParameter": [ { - "id": 518, - "name": "Result", + "id": 82, + "name": "T", "kind": 131072, "kindString": "Type parameter", "flags": {} @@ -689,8 +739,8 @@ "extendedBy": [ { "type": "reference", - "id": 394, - "name": "PostgrestTransformBuilder" + "id": 83, + "name": "PostgrestQueryBuilder" } ], "implementedTypes": [ @@ -699,12 +749,12 @@ "typeArguments": [ { "type": "reference", - "id": 519, + "id": 425, "typeArguments": [ { "type": "reference", - "id": 489, - "name": "Result" + "id": 49, + "name": "T" } ], "name": "PostgrestResponse" @@ -722,9 +772,6 @@ "kind": 128, "kindString": "Class", "flags": {}, - "comment": { - "shortText": "PostgREST client." - }, "children": [ { "id": 2, @@ -735,7 +782,7 @@ "sources": [ { "fileName": "src/PostgrestClient.ts", - "line": 41, + "line": 21, "character": 2 } ], @@ -749,123 +796,15 @@ "comment": { "shortText": "Creates a PostgREST client." }, - "typeParameter": [ - { - "id": 4, - "name": "Database", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "default": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 5, - "name": "SchemaName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - }, - "default": { - "type": "conditional", - "checkType": { - "type": "literal", - "value": "public" - }, - "extendsType": { - "type": "typeOperator", - "operator": "keyof", - "target": { - "type": "reference", - "id": 4, - "name": "Database" - } - }, - "trueType": { - "type": "literal", - "value": "public" - }, - "falseType": { - "type": "intersection", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "typeOperator", - "operator": "keyof", - "target": { - "type": "reference", - "id": 4, - "name": "Database" - } - } - ] - } - } - }, - { - "id": 6, - "name": "Schema", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "GenericSchema" - }, - "default": { - "type": "conditional", - "checkType": { - "type": "indexedAccess", - "indexType": { - "type": "reference", - "id": 5, - "name": "SchemaName" - }, - "objectType": { - "type": "reference", - "id": 4, - "name": "Database" - } - }, - "extendsType": { - "type": "reference", - "name": "GenericSchema" - }, - "trueType": { - "type": "indexedAccess", - "indexType": { - "type": "intrinsic", - "name": "any" - }, - "objectType": { - "type": "intrinsic", - "name": "any" - } - }, - "falseType": { - "type": "intrinsic", - "name": "any" - } - } - } - ], "parameters": [ { - "id": 7, + "id": 4, "name": "url", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "URL of the PostgREST endpoint" + "shortText": "URL of the PostgREST endpoint." }, "type": { "type": "intrinsic", @@ -873,19 +812,15 @@ } }, { - "id": 8, - "name": "options", + "id": 5, + "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "shortText": "Named parameters" - }, - "originalName": "__namedParameters", "type": { "type": "reflection", "declaration": { - "id": 9, + "id": 6, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -902,7 +837,7 @@ "sources": [ { "fileName": "src/PostgrestClient.ts", - "line": 50, + "line": 31, "character": 6 } ], @@ -921,9 +856,6 @@ "kind": 4096, "kindString": "Call signature", "flags": {}, - "comment": { - "shortText": "Custom fetch\n" - }, "parameters": [ { "id": 15, @@ -932,21 +864,10 @@ "kindString": "Parameter", "flags": {}, "type": { - "type": "union", - "types": [ - { - "type": "reference", - "qualifiedName": "RequestInfo", - "package": "typescript", - "name": "RequestInfo" - }, - { - "type": "reference", - "qualifiedName": "URL", - "package": "typescript", - "name": "URL" - } - ] + "type": "reference", + "qualifiedName": "RequestInfo", + "package": "typescript", + "name": "RequestInfo" } }, { @@ -985,38 +906,52 @@ } }, { - "id": 10, + "id": 7, "name": "headers", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "Custom headers" - }, "sources": [ { "fileName": "src/PostgrestClient.ts", - "line": 48, + "line": 29, "character": 6 } ], "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "string" + "type": "reflection", + "declaration": { + "id": 8, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "indexSignature": { + "id": 9, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 10, + "name": "key", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" + } } }, { @@ -1027,20 +962,36 @@ "flags": { "isOptional": true }, - "comment": { - "shortText": "Postgres schema to switch to" - }, "sources": [ { "fileName": "src/PostgrestClient.ts", - "line": 49, + "line": 30, "character": 6 } ], "type": { - "type": "reference", - "id": 5, - "name": "SchemaName" + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 17, + "name": "throwOnError", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/PostgrestClient.ts", + "line": 32, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" } } ], @@ -1048,7 +999,7 @@ { "title": "Properties", "kind": 1024, - "children": [12, 10, 11] + "children": [12, 7, 11, 17] } ] } @@ -1059,30 +1010,13 @@ "type": { "type": "reference", "id": 1, - "typeArguments": [ - { - "type": "reference", - "id": 4, - "name": "Database" - }, - { - "type": "reference", - "id": 5, - "name": "SchemaName" - }, - { - "type": "reference", - "id": 6, - "name": "Schema" - } - ], "name": "default" } } ] }, { - "id": 20, + "id": 24, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -1092,52 +1026,41 @@ "sources": [ { "fileName": "src/PostgrestClient.ts", - "line": 29, + "line": 11, "character": 2 } ], "type": { "type": "reflection", "declaration": { - "id": 21, + "id": 25, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 22, + "id": 26, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 23, + "id": 27, "name": "input", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "union", - "types": [ - { - "type": "reference", - "qualifiedName": "RequestInfo", - "package": "typescript", - "name": "RequestInfo" - }, - { - "type": "reference", - "qualifiedName": "URL", - "package": "typescript", - "name": "URL" - } - ] + "type": "reference", + "qualifiedName": "RequestInfo", + "package": "typescript", + "name": "RequestInfo" } }, { - "id": 24, + "id": 28, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -1172,7 +1095,7 @@ } }, { - "id": 18, + "id": 19, "name": "headers", "kind": 1024, "kindString": "Property", @@ -1180,29 +1103,46 @@ "sources": [ { "fileName": "src/PostgrestClient.ts", - "line": 27, + "line": 9, "character": 2 } ], "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "string" + "type": "reflection", + "declaration": { + "id": 20, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "indexSignature": { + "id": 21, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 22, + "name": "key", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" + } } }, { - "id": 19, + "id": 23, "name": "schema", "kind": 1024, "kindString": "Property", @@ -1212,26 +1152,7 @@ "sources": [ { "fileName": "src/PostgrestClient.ts", - "line": 28, - "character": 2 - } - ], - "type": { - "type": "reference", - "id": 5, - "name": "SchemaName" - } - }, - { - "id": 17, - "name": "url", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/PostgrestClient.ts", - "line": 26, + "line": 10, "character": 2 } ], @@ -1241,7 +1162,92 @@ } }, { - "id": 25, + "id": 29, + "name": "shouldThrowOnError", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/PostgrestClient.ts", + "line": 12, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 18, + "name": "url", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/PostgrestClient.ts", + "line": 8, + "character": 2 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 30, + "name": "auth", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/PostgrestClient.ts", + "line": 47, + "character": 2 + } + ], + "signatures": [ + { + "id": 31, + "name": "auth", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Authenticates the request with JWT." + }, + "parameters": [ + { + "id": 32, + "name": "token", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The JWT token to use.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "id": 1, + "name": "default" + } + } + ] + }, + { + "id": 33, "name": "from", "kind": 2048, "kindString": "Method", @@ -1249,144 +1255,43 @@ "sources": [ { "fileName": "src/PostgrestClient.ts", - "line": 64, + "line": 57, "character": 2 } ], "signatures": [ - { - "id": 26, - "name": "from", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Perform a query on a table or a view." - }, - "typeParameter": [ - { - "id": 27, - "name": "TableName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 28, - "name": "Table", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "GenericTable" - } - } - ], - "parameters": [ - { - "id": 29, - "name": "relation", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "shortText": "The table or view name to query\n" - }, - "type": { - "type": "reference", - "id": 27, - "name": "TableName" - } - } - ], - "type": { - "type": "reference", - "id": 49, - "typeArguments": [ - { - "type": "reference", - "id": 28, - "name": "Table" - } - ], - "name": "default" - } - }, - { - "id": 30, - "name": "from", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "typeParameter": [ - { - "id": 31, - "name": "ViewName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 32, - "name": "View", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "GenericView" - } - } - ], - "parameters": [ - { - "id": 33, - "name": "relation", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "id": 31, - "name": "ViewName" - } - } - ], - "type": { - "type": "reference", - "id": 49, - "typeArguments": [ - { - "type": "reference", - "id": 32, - "name": "View" - } - ], - "name": "default" - } - }, { "id": 34, "name": "from", "kind": 4096, "kindString": "Call signature", "flags": {}, - "parameters": [ + "comment": { + "shortText": "Perform a table operation." + }, + "typeParameter": [ { "id": 35, - "name": "relation", + "name": "T", + "kind": 131072, + "kindString": "Type parameter", + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "parameters": [ + { + "id": 36, + "name": "table", "kind": 32768, "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "The table name to operate on.\n" + }, "type": { "type": "intrinsic", "name": "string" @@ -1395,11 +1300,12 @@ ], "type": { "type": "reference", - "id": 49, + "id": 83, "typeArguments": [ { - "type": "intrinsic", - "name": "any" + "type": "reference", + "id": 35, + "name": "T" } ], "name": "default" @@ -1408,7 +1314,7 @@ ] }, { - "id": 36, + "id": 37, "name": "rpc", "kind": 2048, "kindString": "Method", @@ -1416,13 +1322,13 @@ "sources": [ { "fileName": "src/PostgrestClient.ts", - "line": 102, + "line": 75, "character": 2 } ], "signatures": [ { - "id": 37, + "id": 38, "name": "rpc", "kind": 4096, "kindString": "Call signature", @@ -1431,26 +1337,15 @@ "shortText": "Perform a function call." }, "typeParameter": [ - { - "id": 38, - "name": "FunctionName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, { "id": 39, - "name": "Function_", + "name": "T", "kind": 131072, "kindString": "Type parameter", "flags": {}, - "type": { - "type": "reference", - "name": "GenericFunction" + "default": { + "type": "intrinsic", + "name": "any" } } ], @@ -1462,47 +1357,35 @@ "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The function name to call" + "shortText": "The function name to call." }, "type": { - "type": "reference", - "id": 38, - "name": "FunctionName" + "type": "intrinsic", + "name": "string" } }, { "id": 41, - "name": "args", + "name": "params", "kind": 32768, "kindString": "Parameter", - "flags": {}, + "flags": { + "isOptional": true + }, "comment": { - "shortText": "The arguments to pass to the function call" + "shortText": "The parameters to pass to the function call." }, "type": { - "type": "indexedAccess", - "indexType": { - "type": "literal", - "value": "Args" - }, - "objectType": { - "type": "reference", - "id": 39, - "name": "Function_" - } - }, - "defaultValue": "{}" + "type": "intrinsic", + "name": "object" + } }, { "id": 42, - "name": "options", + "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "shortText": "Named parameters" - }, - "originalName": "__namedParameters", "type": { "type": "reflection", "declaration": { @@ -1520,19 +1403,20 @@ "flags": { "isOptional": true }, - "comment": { - "shortText": "Count algorithm to use to count rows returned by the\nfunction. Only applicable for [set-returning\nfunctions](https://www.postgresql.org/docs/current/functions-srf.html).\n\n`\"exact\"`: Exact but slow count algorithm. Performs a `COUNT(*)` under the\nhood.\n\n`\"planned\"`: Approximated but fast count algorithm. Uses the Postgres\nstatistics under the hood.\n\n`\"estimated\"`: Uses exact count for low numbers and planned count for high\nnumbers.\n" - }, "sources": [ { "fileName": "src/PostgrestClient.ts", - "line": 113, + "line": 83, "character": 6 } ], "type": { "type": "union", "types": [ + { + "type": "literal", + "value": null + }, { "type": "literal", "value": "exact" @@ -1556,13 +1440,10 @@ "flags": { "isOptional": true }, - "comment": { - "shortText": "When set to `true`, `data` will not be returned.\nUseful if you only need the count." - }, "sources": [ { "fileName": "src/PostgrestClient.ts", - "line": 112, + "line": 82, "character": 6 } ], @@ -1586,97 +1467,12 @@ ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { - "type": "conditional", - "checkType": { - "type": "indexedAccess", - "indexType": { - "type": "literal", - "value": "Returns" - }, - "objectType": { - "type": "reference", - "id": 39, - "name": "Function_" - } - }, - "extendsType": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - }, - "trueType": { - "type": "conditional", - "checkType": { - "type": "indexedAccess", - "indexType": { - "type": "intrinsic", - "name": "number" - }, - "objectType": { - "type": "indexedAccess", - "indexType": { - "type": "intrinsic", - "name": "any" - }, - "objectType": { - "type": "intrinsic", - "name": "any" - } - } - }, - "extendsType": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - }, - "trueType": { - "type": "indexedAccess", - "indexType": { - "type": "intrinsic", - "name": "any" - }, - "objectType": { - "type": "intrinsic", - "name": "any" - } - }, - "falseType": { - "type": "intrinsic", - "name": "never" - } - }, - "falseType": { - "type": "intrinsic", - "name": "never" - } - }, - { - "type": "indexedAccess", - "indexType": { - "type": "literal", - "value": "Returns" - }, - "objectType": { - "type": "reference", - "id": 39, - "name": "Function_" - } + "type": "reference", + "id": 39, + "name": "T" } ], "name": "default" @@ -1694,199 +1490,46 @@ { "title": "Properties", "kind": 1024, - "children": [20, 18, 19, 17] + "children": [24, 19, 23, 29, 18] }, { "title": "Methods", "kind": 2048, - "children": [25, 36] + "children": [30, 33, 37] } ], "sources": [ { "fileName": "src/PostgrestClient.ts", - "line": 17, + "line": 7, "character": 21 } - ], - "typeParameter": [ - { - "id": 46, - "name": "Database", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "comment": { - "shortText": "Types for the schema from the [type\ngenerator](https://supabase.com/docs/reference/javascript/next/typescript-support)\n" - }, - "default": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 47, - "name": "SchemaName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "comment": { - "shortText": "Postgres schema to switch to. Must be a string\nliteral, the same one passed to the constructor. If the schema is not\n`\"public\"`, this must be supplied manually.\n" - }, - "type": { - "type": "intersection", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "typeOperator", - "operator": "keyof", - "target": { - "type": "reference", - "id": 4, - "name": "Database" - } - } - ] - }, - "default": { - "type": "conditional", - "checkType": { - "type": "literal", - "value": "public" - }, - "extendsType": { - "type": "typeOperator", - "operator": "keyof", - "target": { - "type": "reference", - "id": 4, - "name": "Database" - } - }, - "trueType": { - "type": "literal", - "value": "public" - }, - "falseType": { - "type": "intersection", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "typeOperator", - "operator": "keyof", - "target": { - "type": "reference", - "id": 4, - "name": "Database" - } - } - ] - } - } - }, - { - "id": 48, - "name": "Schema", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "GenericSchema" - }, - "default": { - "type": "conditional", - "checkType": { - "type": "indexedAccess", - "indexType": { - "type": "reference", - "id": 5, - "name": "SchemaName" - }, - "objectType": { - "type": "reference", - "id": 4, - "name": "Database" - } - }, - "extendsType": { - "type": "reference", - "name": "GenericSchema" - }, - "trueType": { - "type": "indexedAccess", - "indexType": { - "type": "reference", - "id": 5, - "name": "SchemaName" - }, - "objectType": { - "type": "reference", - "id": 4, - "name": "Database" - } - }, - "falseType": { - "type": "intrinsic", - "name": "any" - } - } - } ] }, { - "id": 110, + "id": 177, "name": "PostgrestFilterBuilder", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 111, + "id": 178, "name": "constructor", "kind": 512, "kindString": "Constructor", "flags": {}, "signatures": [ { - "id": 112, + "id": 179, "name": "new PostgrestFilterBuilder", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "typeParameter": [ { - "id": 113, - "name": "Row", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - } - }, - { - "id": 114, - "name": "Result", + "id": 180, + "name": "T", "kind": 131072, "kindString": "Type parameter", "flags": {} @@ -1894,57 +1537,134 @@ ], "parameters": [ { - "id": 115, + "id": 181, "name": "builder", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 486, + "id": 46, "typeArguments": [ { "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], - "name": "default" + "name": "PostgrestBuilder" } } ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" }, "inheritedFrom": { "type": "reference", - "id": 396, - "name": "default.constructor" + "name": "PostgrestTransformBuilder.constructor" } } ], "inheritedFrom": { "type": "reference", - "id": 395, - "name": "default.constructor" + "name": "PostgrestTransformBuilder.constructor" } }, { - "id": 377, + "id": 291, + "name": "adj", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 328, + "character": 2 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 292, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "signatures": [ + { + "id": 293, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Finds all rows whose range value on the stated `column` is adjacent to\nthe specified `range`." + }, + "parameters": [ + { + "id": 294, + "name": "column", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The column to filter on." + }, + "type": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } + } + }, + { + "id": 295, + "name": "range", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The range to filter with.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "id": 177, + "typeArguments": [ + { + "type": "reference", + "id": 180, + "name": "T" + } + ], + "name": "default" + } + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 408, "name": "allowEmpty", "kind": 1024, "kindString": "Property", @@ -1953,8 +1673,8 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 16, + "fileName": "src/lib/types.ts", + "line": 60, "character": 12 } ], @@ -1964,12 +1684,11 @@ }, "inheritedFrom": { "type": "reference", - "id": 469, - "name": "default.allowEmpty" + "name": "PostgrestTransformBuilder.allowEmpty" } }, { - "id": 369, + "id": 400, "name": "body", "kind": 1024, "kindString": "Property", @@ -1979,23 +1698,278 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 12, + "fileName": "src/lib/types.ts", + "line": 56, "character": 12 } ], "type": { - "type": "intrinsic", - "name": "unknown" + "type": "union", + "types": [ + { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 180, + "name": "T" + } + ], + "qualifiedName": "Partial", + "package": "typescript", + "name": "Partial" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 180, + "name": "T" + } + ], + "qualifiedName": "Partial", + "package": "typescript", + "name": "Partial" + } + } + ] }, "inheritedFrom": { "type": "reference", - "id": 461, - "name": "default.body" + "name": "PostgrestTransformBuilder.body" } }, { - "id": 372, + "id": 246, + "name": "cd", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 253, + "character": 2 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 247, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "signatures": [ + { + "id": 248, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Finds all rows whose json, array, or range value on the stated `column` is\ncontained by the specified `value`." + }, + "parameters": [ + { + "id": 249, + "name": "column", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The column to filter on." + }, + "type": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } + } + }, + { + "id": 250, + "name": "value", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The value to filter with.\n" + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "object" + }, + { + "type": "array", + "elementType": { + "type": "indexedAccess", + "indexType": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } + }, + "objectType": { + "type": "reference", + "id": 180, + "name": "T" + } + } + } + ] + } + } + ], + "type": { + "type": "reference", + "id": 177, + "typeArguments": [ + { + "type": "reference", + "id": 180, + "name": "T" + } + ], + "name": "default" + } + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 237, + "name": "cs", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 229, + "character": 2 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 238, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "signatures": [ + { + "id": 239, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Finds all rows whose json, array, or range value on the stated `column`\ncontains the values specified in `value`." + }, + "parameters": [ + { + "id": 240, + "name": "column", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The column to filter on." + }, + "type": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } + } + }, + { + "id": 241, + "name": "value", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The value to filter with.\n" + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "object" + }, + { + "type": "array", + "elementType": { + "type": "indexedAccess", + "indexType": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } + }, + "objectType": { + "type": "reference", + "id": 180, + "name": "T" + } + } + } + ] + } + } + ], + "type": { + "type": "reference", + "id": 177, + "typeArguments": [ + { + "type": "reference", + "id": 180, + "name": "T" + } + ], + "name": "default" + } + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 403, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -2004,53 +1978,42 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 15, + "fileName": "src/lib/types.ts", + "line": 59, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 373, + "id": 404, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 374, + "id": 405, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 375, + "id": 406, "name": "input", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "union", - "types": [ - { - "type": "reference", - "qualifiedName": "RequestInfo", - "package": "typescript", - "name": "RequestInfo" - }, - { - "type": "reference", - "qualifiedName": "URL", - "package": "typescript", - "name": "URL" - } - ] + "type": "reference", + "qualifiedName": "RequestInfo", + "package": "typescript", + "name": "RequestInfo" } }, { - "id": 376, + "id": 407, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -2085,12 +2048,11 @@ }, "inheritedFrom": { "type": "reference", - "id": 464, - "name": "default.fetch" + "name": "PostgrestTransformBuilder.fetch" } }, { - "id": 367, + "id": 395, "name": "headers", "kind": 1024, "kindString": "Property", @@ -2099,35 +2061,51 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 10, + "fileName": "src/lib/types.ts", + "line": 54, "character": 12 } ], "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "string" + "type": "reflection", + "declaration": { + "id": 396, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "indexSignature": { + "id": 397, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 398, + "name": "key", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" + } }, "inheritedFrom": { "type": "reference", - "id": 459, - "name": "default.headers" + "name": "PostgrestTransformBuilder.headers" } }, { - "id": 365, + "id": 393, "name": "method", "kind": 1024, "kindString": "Property", @@ -2136,8 +2114,8 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 8, + "fileName": "src/lib/types.ts", + "line": 52, "character": 12 } ], @@ -2168,12 +2146,288 @@ }, "inheritedFrom": { "type": "reference", - "id": 457, - "name": "default.method" + "name": "PostgrestTransformBuilder.method" } }, { - "id": 368, + "id": 273, + "name": "nxl", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 298, + "character": 2 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 274, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "signatures": [ + { + "id": 275, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Finds all rows whose range value on the stated `column` does not extend\nto the left of the specified `range`." + }, + "parameters": [ + { + "id": 276, + "name": "column", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The column to filter on." + }, + "type": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } + } + }, + { + "id": 277, + "name": "range", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The range to filter with.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "id": 177, + "typeArguments": [ + { + "type": "reference", + "id": 180, + "name": "T" + } + ], + "name": "default" + } + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 282, + "name": "nxr", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 313, + "character": 2 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 283, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "signatures": [ + { + "id": 284, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Finds all rows whose range value on the stated `column` does not extend\nto the right of the specified `range`." + }, + "parameters": [ + { + "id": 285, + "name": "column", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The column to filter on." + }, + "type": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } + } + }, + { + "id": 286, + "name": "range", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The range to filter with.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "id": 177, + "typeArguments": [ + { + "type": "reference", + "id": 180, + "name": "T" + } + ], + "name": "default" + } + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 300, + "name": "ov", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 349, + "character": 2 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 301, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "signatures": [ + { + "id": 302, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Finds all rows whose array or range value on the stated `column` overlaps\n(has a value in common) with the specified `value`." + }, + "parameters": [ + { + "id": 303, + "name": "column", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The column to filter on." + }, + "type": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } + } + }, + { + "id": 304, + "name": "value", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The value to filter with.\n" + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "indexedAccess", + "indexType": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } + }, + "objectType": { + "type": "reference", + "id": 180, + "name": "T" + } + } + } + ] + } + } + ], + "type": { + "type": "reference", + "id": 177, + "typeArguments": [ + { + "type": "reference", + "id": 180, + "name": "T" + } + ], + "name": "default" + } + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 399, "name": "schema", "kind": 1024, "kindString": "Property", @@ -2183,8 +2437,8 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 11, + "fileName": "src/lib/types.ts", + "line": 55, "character": 12 } ], @@ -2194,12 +2448,11 @@ }, "inheritedFrom": { "type": "reference", - "id": 460, - "name": "default.schema" + "name": "PostgrestTransformBuilder.schema" } }, { - "id": 370, + "id": 401, "name": "shouldThrowOnError", "kind": 1024, "kindString": "Property", @@ -2208,8 +2461,8 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 13, + "fileName": "src/lib/types.ts", + "line": 57, "character": 12 } ], @@ -2217,15 +2470,13 @@ "type": "intrinsic", "name": "boolean" }, - "defaultValue": "false", "inheritedFrom": { "type": "reference", - "id": 462, - "name": "default.shouldThrowOnError" + "name": "PostgrestTransformBuilder.shouldThrowOnError" } }, { - "id": 371, + "id": 402, "name": "signal", "kind": 1024, "kindString": "Property", @@ -2235,8 +2486,8 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 14, + "fileName": "src/lib/types.ts", + "line": 58, "character": 12 } ], @@ -2248,12 +2499,179 @@ }, "inheritedFrom": { "type": "reference", - "id": 463, - "name": "default.signal" + "name": "PostgrestTransformBuilder.signal" } }, { - "id": 366, + "id": 255, + "name": "sl", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 268, + "character": 2 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 256, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "signatures": [ + { + "id": 257, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Finds all rows whose range value on the stated `column` is strictly to the\nleft of the specified `range`." + }, + "parameters": [ + { + "id": 258, + "name": "column", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The column to filter on." + }, + "type": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } + } + }, + { + "id": 259, + "name": "range", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The range to filter with.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "id": 177, + "typeArguments": [ + { + "type": "reference", + "id": 180, + "name": "T" + } + ], + "name": "default" + } + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 264, + "name": "sr", + "kind": 1024, + "kindString": "Property", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 283, + "character": 2 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 265, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "signatures": [ + { + "id": 266, + "name": "__type", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Finds all rows whose range value on the stated `column` is strictly to\nthe right of the specified `range`." + }, + "parameters": [ + { + "id": 267, + "name": "column", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The column to filter on." + }, + "type": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } + } + }, + { + "id": 268, + "name": "range", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The range to filter with.\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "id": 177, + "typeArguments": [ + { + "type": "reference", + "id": 180, + "name": "T" + } + ], + "name": "default" + } + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 394, "name": "url", "kind": 1024, "kindString": "Property", @@ -2262,8 +2680,8 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 9, + "fileName": "src/lib/types.ts", + "line": 53, "character": 12 } ], @@ -2275,43 +2693,39 @@ }, "inheritedFrom": { "type": "reference", - "id": 458, - "name": "default.url" + "name": "PostgrestTransformBuilder.url" } }, { - "id": 342, + "id": 373, "name": "abortSignal", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 124, + "fileName": "src/lib/PostgrestTransformBuilder.ts", + "line": 91, "character": 2 } ], "signatures": [ { - "id": 343, + "id": 374, "name": "abortSignal", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Set the AbortSignal for the fetch request." + "shortText": "Sets the AbortSignal for the fetch request." }, "parameters": [ { - "id": 344, + "id": 375, "name": "signal", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "shortText": "The AbortSignal to use for the fetch request\n" - }, "type": { "type": "reference", "qualifiedName": "AbortSignal", @@ -2322,94 +2736,78 @@ ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" }, "inheritedFrom": { "type": "reference", - "id": 435, - "name": "default.abortSignal" + "name": "PostgrestTransformBuilder.abortSignal" } } ], "inheritedFrom": { "type": "reference", - "id": 434, - "name": "default.abortSignal" + "name": "PostgrestTransformBuilder.abortSignal" } }, { - "id": 204, + "id": 242, "name": "containedBy", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 214, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 238, "character": 2 } ], "signatures": [ { - "id": 205, + "id": 243, "name": "containedBy", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Only relevant for jsonb, array, and range columns. Match only rows where\nevery element appearing in `column` is contained by `value`." + "shortText": "Finds all rows whose json, array, or range value on the stated `column` is\ncontained by the specified `value`." }, - "typeParameter": [ - { - "id": 206, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 207, + "id": 244, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The jsonb, array, or range column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 206, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 208, + "id": 245, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The jsonb, array, or range value to filter with\n" + "shortText": "The value to filter with.\n" }, "type": { "type": "union", @@ -2419,34 +2817,26 @@ "name": "string" }, { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" + "type": "intrinsic", + "name": "object" }, { "type": "array", "elementType": { "type": "indexedAccess", "indexType": { - "type": "reference", - "id": 206, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } }, "objectType": { "type": "reference", - "id": 113, - "name": "Row" + "id": 180, + "name": "T" } } } @@ -2456,93 +2846,12 @@ ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 209, - "name": "containedBy", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 210, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 211, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "unknown" - } - }, - { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - } - ] - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -2551,65 +2860,56 @@ ] }, { - "id": 196, + "id": 233, "name": "contains", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 187, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 213, "character": 2 } ], "signatures": [ { - "id": 197, + "id": 234, "name": "contains", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Only relevant for jsonb, array, and range columns. Match only rows where\n`column` contains every element appearing in `value`." + "shortText": "Finds all rows whose json, array, or range value on the stated `column`\ncontains the values specified in `value`." }, - "typeParameter": [ - { - "id": 198, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 199, + "id": 235, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The jsonb, array, or range column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 198, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 200, + "id": 236, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The jsonb, array, or range value to filter with\n" + "shortText": "The value to filter with.\n" }, "type": { "type": "union", @@ -2619,34 +2919,26 @@ "name": "string" }, { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" + "type": "intrinsic", + "name": "object" }, { "type": "array", "elementType": { "type": "indexedAccess", "indexType": { - "type": "reference", - "id": 198, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } }, "objectType": { "type": "reference", - "id": 113, - "name": "Row" + "id": 180, + "name": "T" } } } @@ -2656,93 +2948,12 @@ ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 201, - "name": "contains", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 202, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 203, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "unknown" - } - }, - { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - } - ] - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -2751,34 +2962,34 @@ ] }, { - "id": 349, + "id": 380, "name": "csv", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 155, + "fileName": "src/lib/PostgrestTransformBuilder.ts", + "line": 119, "character": 2 } ], "signatures": [ { - "id": 350, + "id": 381, "name": "csv", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Return `data` as a string in CSV format." + "shortText": "Set the response type to CSV." }, "type": { "type": "reference", "typeArguments": [ { "type": "reference", - "id": 521, + "id": 427, "typeArguments": [ { "type": "intrinsic", @@ -2794,155 +3005,94 @@ }, "inheritedFrom": { "type": "reference", - "id": 442, - "name": "default.csv" + "name": "PostgrestTransformBuilder.csv" } } ], "inheritedFrom": { "type": "reference", - "id": 441, - "name": "default.csv" + "name": "PostgrestTransformBuilder.csv" } }, { - "id": 116, + "id": 193, "name": "eq", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 39, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 85, "character": 2 } ], "signatures": [ { - "id": 117, + "id": 194, "name": "eq", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Match only rows where `column` is equal to `value`.", - "text": "To check if the value of `column` is NULL, you should use `.is()` instead.\n" + "shortText": "Finds all rows whose value on the stated `column` exactly matches the\nspecified `value`." }, - "typeParameter": [ - { - "id": 118, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 119, + "id": 195, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 118, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 120, + "id": 196, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The value to filter with\n" + "shortText": "The value to filter with.\n" }, "type": { "type": "indexedAccess", "indexType": { - "type": "reference", - "id": 118, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } }, "objectType": { "type": "reference", - "id": 113, - "name": "Row" + "id": 180, + "name": "T" } } } ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 121, - "name": "eq", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 122, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 123, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -2951,63 +3101,56 @@ ] }, { - "id": 353, + "id": 384, "name": "explain", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 189, + "fileName": "src/lib/PostgrestTransformBuilder.ts", + "line": 141, "character": 2 } ], "signatures": [ { - "id": 354, + "id": 385, "name": "explain", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Return `data` as the EXPLAIN plan for the query." + "shortText": "Obtains the EXPLAIN plan for this request." }, "parameters": [ { - "id": 355, - "name": "options", + "id": 386, + "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "shortText": "Named parameters\n" - }, - "originalName": "__namedParameters", "type": { "type": "reflection", "declaration": { - "id": 356, + "id": 387, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 357, + "id": 388, "name": "analyze", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "If `true`, the query will be executed and the\nactual run time will be returned\n" - }, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 197, + "fileName": "src/lib/PostgrestTransformBuilder.ts", + "line": 148, "character": 4 } ], @@ -3017,20 +3160,17 @@ } }, { - "id": 360, + "id": 391, "name": "buffers", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "If `true`, include information on buffer usage\n" - }, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 200, + "fileName": "src/lib/PostgrestTransformBuilder.ts", + "line": 151, "character": 4 } ], @@ -3040,52 +3180,17 @@ } }, { - "id": 362, - "name": "format", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "The format of the output, can be `\"text\"` (default)\nor `\"json\"`\n" - }, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 202, - "character": 4 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "text" - }, - { - "type": "literal", - "value": "json" - } - ] - } - }, - { - "id": 359, + "id": 390, "name": "settings", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "If `true`, include information on configuration\nparameters that affect query planning\n" - }, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 199, + "fileName": "src/lib/PostgrestTransformBuilder.ts", + "line": 150, "character": 4 } ], @@ -3095,20 +3200,17 @@ } }, { - "id": 358, + "id": 389, "name": "verbose", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "If `true`, the query identifier will be returned\nand `data` will include the output columns of the query\n" - }, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 198, + "fileName": "src/lib/PostgrestTransformBuilder.ts", + "line": 149, "character": 4 } ], @@ -3118,20 +3220,17 @@ } }, { - "id": 361, + "id": 392, "name": "wal", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "If `true`, include information on WAL record generation\n" - }, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 201, + "fileName": "src/lib/PostgrestTransformBuilder.ts", + "line": 152, "character": 4 } ], @@ -3145,7 +3244,7 @@ { "title": "Properties", "kind": 1024, - "children": [357, 360, 362, 359, 358, 361] + "children": [388, 391, 390, 389, 392] } ] } @@ -3154,320 +3253,127 @@ } ], "type": { - "type": "union", - "types": [ + "type": "reference", + "typeArguments": [ { "type": "reference", + "id": 425, "typeArguments": [ { "type": "reference", - "id": 521, "typeArguments": [ { "type": "intrinsic", "name": "string" - } - ], - "name": "PostgrestSingleResponse" - } - ], - "qualifiedName": "PromiseLike", - "package": "typescript", - "name": "PromiseLike" - }, - { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 519, - "typeArguments": [ + }, { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" + "type": "intrinsic", + "name": "unknown" } ], - "name": "PostgrestResponse" + "qualifiedName": "Record", + "package": "typescript", + "name": "Record" } ], - "qualifiedName": "PromiseLike", - "package": "typescript", - "name": "PromiseLike" + "name": "PostgrestResponse" } - ] + ], + "qualifiedName": "PromiseLike", + "package": "typescript", + "name": "PromiseLike" }, "inheritedFrom": { "type": "reference", - "id": 446, - "name": "default.explain" + "name": "PostgrestTransformBuilder.explain" } } ], "inheritedFrom": { "type": "reference", - "id": 445, - "name": "default.explain" + "name": "PostgrestTransformBuilder.explain" } }, { - "id": 298, + "id": 341, "name": "filter", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 439, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 452, "character": 2 } ], "signatures": [ { - "id": 299, + "id": 342, "name": "filter", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Match only rows which satisfy the filter. This is an escape hatch - you\nshould use the specific filter methods wherever possible.", - "text": "Unlike most filters, `opearator` and `value` are used as-is and need to\nfollow [PostgREST\nsyntax](https://postgrest.org/en/stable/api.html#operators). You also need\nto make sure they are properly sanitized.\n" + "shortText": "Finds all rows whose `column` satisfies the filter." }, - "typeParameter": [ - { - "id": 300, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 301, + "id": 343, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 300, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 302, + "id": 344, "name": "operator", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The operator to filter with, following PostgREST syntax" + "shortText": "The operator to filter with." }, "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "FilterOperator" - }, - { - "type": "literal", - "value": "not.eq" - }, - { - "type": "literal", - "value": "not.neq" - }, - { - "type": "literal", - "value": "not.gt" - }, - { - "type": "literal", - "value": "not.gte" - }, - { - "type": "literal", - "value": "not.lt" - }, - { - "type": "literal", - "value": "not.lte" - }, - { - "type": "literal", - "value": "not.like" - }, - { - "type": "literal", - "value": "not.ilike" - }, - { - "type": "literal", - "value": "not.is" - }, - { - "type": "literal", - "value": "not.in" - }, - { - "type": "literal", - "value": "not.cs" - }, - { - "type": "literal", - "value": "not.cd" - }, - { - "type": "literal", - "value": "not.sl" - }, - { - "type": "literal", - "value": "not.sr" - }, - { - "type": "literal", - "value": "not.nxl" - }, - { - "type": "literal", - "value": "not.nxr" - }, - { - "type": "literal", - "value": "not.adj" - }, - { - "type": "literal", - "value": "not.ov" - }, - { - "type": "literal", - "value": "not.fts" - }, - { - "type": "literal", - "value": "not.plfts" - }, - { - "type": "literal", - "value": "not.phfts" - }, - { - "type": "literal", - "value": "not.wfts" - } - ] + "type": "reference", + "name": "FilterOperator" } }, { - "id": 303, + "id": 345, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The value to filter with, following PostgREST syntax\n" + "shortText": "The value to filter with.\n" }, "type": { "type": "intrinsic", - "name": "unknown" + "name": "any" } } ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 304, - "name": "filter", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 305, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 306, - "name": "operator", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 307, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -3476,34 +3382,164 @@ ] }, { - "id": 351, + "id": 313, + "name": "fts", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 391, + "character": 2 + } + ], + "signatures": [ + { + "id": 314, + "name": "fts", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Finds all rows whose tsvector value on the stated `column` matches\nto_tsquery(`query`).", + "tags": [ + { + "tag": "deprecated", + "text": "Use `textSearch()` instead.\n" + } + ] + }, + "parameters": [ + { + "id": 315, + "name": "column", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The column to filter on." + }, + "type": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } + } + }, + { + "id": 316, + "name": "query", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The Postgres tsquery string to filter with." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 317, + "name": "config", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The text search configuration to use.\n" + }, + "originalName": "__namedParameters", + "type": { + "type": "reflection", + "declaration": { + "id": 318, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 319, + "name": "config", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 391, + "character": 52 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [319] + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "id": 177, + "typeArguments": [ + { + "type": "reference", + "id": 180, + "name": "T" + } + ], + "name": "default" + } + } + ] + }, + { + "id": 382, "name": "geojson", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 163, + "fileName": "src/lib/PostgrestTransformBuilder.ts", + "line": 127, "character": 2 } ], "signatures": [ { - "id": 352, + "id": 383, "name": "geojson", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Return `data` as an object in [GeoJSON](https://geojson.org) format." + "shortText": "Set the response type to GeoJSON." }, "type": { "type": "reference", "typeArguments": [ { "type": "reference", - "id": 521, + "id": 427, "typeArguments": [ { "type": "reference", @@ -3531,154 +3567,94 @@ }, "inheritedFrom": { "type": "reference", - "id": 444, - "name": "default.geojson" + "name": "PostgrestTransformBuilder.geojson" } } ], "inheritedFrom": { "type": "reference", - "id": 443, - "name": "default.geojson" + "name": "PostgrestTransformBuilder.geojson" } }, { - "id": 132, + "id": 201, "name": "gt", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 65, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 109, "character": 2 } ], "signatures": [ { - "id": 133, + "id": 202, "name": "gt", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Match only rows where `column` is greater than `value`." + "shortText": "Finds all rows whose value on the stated `column` is greater than the\nspecified `value`." }, - "typeParameter": [ - { - "id": 134, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 135, + "id": 203, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 134, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 136, + "id": 204, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The value to filter with\n" + "shortText": "The value to filter with.\n" }, "type": { "type": "indexedAccess", "indexType": { - "type": "reference", - "id": 134, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } }, "objectType": { "type": "reference", - "id": 113, - "name": "Row" + "id": 180, + "name": "T" } } } ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 137, - "name": "gt", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 138, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 139, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -3687,142 +3663,84 @@ ] }, { - "id": 140, + "id": 205, "name": "gte", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 78, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 121, "character": 2 } ], "signatures": [ { - "id": 141, + "id": 206, "name": "gte", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Match only rows where `column` is greater than or equal to `value`." + "shortText": "Finds all rows whose value on the stated `column` is greater than or\nequal to the specified `value`." }, - "typeParameter": [ - { - "id": 142, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 143, + "id": 207, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 142, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 144, + "id": 208, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The value to filter with\n" + "shortText": "The value to filter with.\n" }, "type": { "type": "indexedAccess", "indexType": { - "type": "reference", - "id": 142, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } }, "objectType": { "type": "reference", - "id": 113, - "name": "Row" + "id": 180, + "name": "T" } } } ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 145, - "name": "gte", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 146, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 147, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -3831,65 +3749,56 @@ ] }, { - "id": 172, + "id": 221, "name": "ilike", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 130, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 169, "character": 2 } ], "signatures": [ { - "id": 173, + "id": 222, "name": "ilike", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Match only rows where `column` matches `pattern` case-insensitively." + "shortText": "Finds all rows whose value in the stated `column` matches the supplied\n`pattern` (case insensitive)." }, - "typeParameter": [ - { - "id": 174, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 175, + "id": 223, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 174, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 176, + "id": 224, "name": "pattern", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The pattern to match with\n" + "shortText": "The pattern to filter with.\n" }, "type": { "type": "intrinsic", @@ -3899,65 +3808,12 @@ ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 177, - "name": "ilike", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 178, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 179, - "name": "pattern", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -3966,79 +3822,74 @@ ] }, { - "id": 188, + "id": 229, "name": "in", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 165, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 193, "character": 2 } ], "signatures": [ { - "id": 189, + "id": 230, "name": "in", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Match only rows where `column` is included in the `values` array." + "shortText": "Finds all rows whose value on the stated `column` is found on the\nspecified `values`." }, - "typeParameter": [ - { - "id": 190, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 191, + "id": 231, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 190, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 192, + "id": 232, "name": "values", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The values array to filter with\n" + "shortText": "The values to filter with.\n" }, "type": { "type": "array", "elementType": { "type": "indexedAccess", "indexType": { - "type": "reference", - "id": 190, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } }, "objectType": { "type": "reference", - "id": 113, - "name": "Row" + "id": 180, + "name": "T" } } } @@ -4046,68 +3897,12 @@ ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 193, - "name": "in", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 194, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 195, - "name": "values", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "unknown" - } - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -4116,182 +3911,57 @@ ] }, { - "id": 180, + "id": 225, "name": "is", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 149, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 181, "character": 2 } ], "signatures": [ { - "id": 181, + "id": 226, "name": "is", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Match only rows where `column` IS `value`.", - "text": "For non-boolean columns, this is only relevant for checking if the value of\n`column` is NULL by setting `value` to `null`.\n\nFor boolean columns, you can also set `value` to `true` or `false` and it\nwill behave the same way as `.eq()`.\n" + "shortText": "A check for exact equality (null, true, false), finds all rows whose\nvalue on the stated `column` exactly match the specified `value`." }, - "typeParameter": [ - { - "id": 182, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 183, + "id": 227, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 182, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 184, + "id": 228, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The value to filter with\n" + "shortText": "The value to filter with.\n" }, - "type": { - "type": "intersection", - "types": [ - { - "type": "intersection", - "types": [ - { - "type": "indexedAccess", - "indexType": { - "type": "reference", - "id": 182, - "name": "ColumnName" - }, - "objectType": { - "type": "reference", - "id": 113, - "name": "Row" - } - }, - { - "type": "literal", - "value": null - } - ] - }, - { - "type": "intersection", - "types": [ - { - "type": "indexedAccess", - "indexType": { - "type": "reference", - "id": 182, - "name": "ColumnName" - }, - "objectType": { - "type": "reference", - "id": 113, - "name": "Row" - } - }, - { - "type": "literal", - "value": false - } - ] - }, - { - "type": "intersection", - "types": [ - { - "type": "indexedAccess", - "indexType": { - "type": "reference", - "id": 182, - "name": "ColumnName" - }, - "objectType": { - "type": "reference", - "id": 113, - "name": "Row" - } - }, - { - "type": "literal", - "value": true - } - ] - } - ] - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 185, - "name": "is", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 186, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 187, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, "type": { "type": "union", "types": [ @@ -4309,17 +3979,12 @@ ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -4328,65 +3993,56 @@ ] }, { - "id": 164, + "id": 217, "name": "like", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 117, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 157, "character": 2 } ], "signatures": [ { - "id": 165, + "id": 218, "name": "like", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Match only rows where `column` matches `pattern` case-sensitively." + "shortText": "Finds all rows whose value in the stated `column` matches the supplied\n`pattern` (case sensitive)." }, - "typeParameter": [ - { - "id": 166, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 167, + "id": 219, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 166, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 168, + "id": 220, "name": "pattern", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The pattern to match with\n" + "shortText": "The pattern to filter with.\n" }, "type": { "type": "intrinsic", @@ -4396,65 +4052,12 @@ ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 169, - "name": "like", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 170, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 171, - "name": "pattern", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -4463,37 +4066,37 @@ ] }, { - "id": 329, + "id": 360, "name": "limit", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 95, + "fileName": "src/lib/PostgrestTransformBuilder.ts", + "line": 66, "character": 2 } ], "signatures": [ { - "id": 330, + "id": 361, "name": "limit", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Limit the query result by `count`." + "shortText": "Limits the result with the specified `count`." }, "parameters": [ { - "id": 331, + "id": 362, "name": "count", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The maximum number of rows to return" + "shortText": "The maximum no. of rows to limit to." }, "type": { "type": "intrinsic", @@ -4501,39 +4104,36 @@ } }, { - "id": 332, - "name": "options", + "id": 363, + "name": "foreignTable", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "Named parameters" + "shortText": "The foreign table to use (for foreign columns).\n" }, "originalName": "__namedParameters", "type": { "type": "reflection", "declaration": { - "id": 333, + "id": 364, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 334, + "id": 365, "name": "foreignTable", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "Set this to limit rows of foreign tables\ninstead of the current table\n" - }, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 95, + "fileName": "src/lib/PostgrestTransformBuilder.ts", + "line": 66, "character": 43 } ], @@ -4547,7 +4147,7 @@ { "title": "Properties", "kind": 1024, - "children": [334] + "children": [365] } ] } @@ -4557,171 +4157,106 @@ ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" }, "inheritedFrom": { "type": "reference", - "id": 422, - "name": "default.limit" + "name": "PostgrestTransformBuilder.limit" } } ], "inheritedFrom": { "type": "reference", - "id": 421, - "name": "default.limit" + "name": "PostgrestTransformBuilder.limit" } }, { - "id": 148, + "id": 209, "name": "lt", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 91, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 133, "character": 2 } ], "signatures": [ { - "id": 149, + "id": 210, "name": "lt", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Match only rows where `column` is less than `value`." + "shortText": "Finds all rows whose value on the stated `column` is less than the\nspecified `value`." }, - "typeParameter": [ - { - "id": 150, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 151, + "id": 211, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 150, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 152, + "id": 212, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The value to filter with\n" + "shortText": "The value to filter with.\n" }, "type": { "type": "indexedAccess", "indexType": { - "type": "reference", - "id": 150, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } }, "objectType": { "type": "reference", - "id": 113, - "name": "Row" + "id": 180, + "name": "T" } } } ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 153, - "name": "lt", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 154, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 155, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -4730,142 +4265,84 @@ ] }, { - "id": 156, + "id": 213, "name": "lte", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 104, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 145, "character": 2 } ], "signatures": [ { - "id": 157, + "id": 214, "name": "lte", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Match only rows where `column` is less than or equal to `value`." + "shortText": "Finds all rows whose value on the stated `column` is less than or equal\nto the specified `value`." }, - "typeParameter": [ - { - "id": 158, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 159, + "id": 215, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 158, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 160, + "id": 216, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The value to filter with\n" + "shortText": "The value to filter with.\n" }, "type": { "type": "indexedAccess", "indexType": { - "type": "reference", - "id": 158, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } }, "objectType": { "type": "reference", - "id": 113, - "name": "Row" + "id": 180, + "name": "T" } } } ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 161, - "name": "lte", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 162, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 163, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -4874,110 +4351,38 @@ ] }, { - "id": 276, + "id": 346, "name": "match", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 374, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 463, "character": 2 } ], "signatures": [ { - "id": 277, + "id": 347, "name": "match", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Match only rows where each column in `query` keys is equal to its\nassociated value. Shorthand for multiple `.eq()`s." + "shortText": "Finds all rows whose columns match the specified `query` object." }, - "typeParameter": [ - { - "id": 278, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 279, + "id": 348, "name": "query", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The object to filter with, with column names as keys mapped\nto their filter values\n" + "shortText": "The object to filter with, with column names as keys mapped\n to their filter values.\n" }, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 278, - "name": "ColumnName" - }, - { - "type": "indexedAccess", - "indexType": { - "type": "reference", - "id": 278, - "name": "ColumnName" - }, - "objectType": { - "type": "reference", - "id": 113, - "name": "Row" - } - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 280, - "name": "match", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 281, - "name": "query", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, "type": { "type": "reference", "typeArguments": [ @@ -4998,17 +4403,12 @@ ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -5017,43 +4417,51 @@ ] }, { - "id": 347, + "id": 378, "name": "maybeSingle", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 146, + "fileName": "src/lib/PostgrestTransformBuilder.ts", + "line": 110, "character": 2 } ], "signatures": [ { - "id": 348, + "id": 379, "name": "maybeSingle", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Return `data` as a single object instead of an array of objects.", - "text": "Query result must be zero or one row (e.g. using `.limit(1)`), otherwise\nthis returns an error.\n" + "shortText": "Retrieves at most one row from the result. Result must be at most one row\n(e.g. using `eq` on a UNIQUE column), otherwise this will result in an\nerror." }, "type": { "type": "reference", "typeArguments": [ { "type": "reference", - "id": 523, + "id": 427, "typeArguments": [ { - "type": "reference", - "id": 114, - "name": "Result" + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "id": 180, + "name": "T" + } + ] } ], - "name": "PostgrestMaybeSingleResponse" + "name": "PostgrestSingleResponse" } ], "qualifiedName": "PromiseLike", @@ -5062,154 +4470,94 @@ }, "inheritedFrom": { "type": "reference", - "id": 440, - "name": "default.maybeSingle" + "name": "PostgrestTransformBuilder.maybeSingle" } } ], "inheritedFrom": { "type": "reference", - "id": 439, - "name": "default.maybeSingle" + "name": "PostgrestTransformBuilder.maybeSingle" } }, { - "id": 124, + "id": 197, "name": "neq", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 52, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 97, "character": 2 } ], "signatures": [ { - "id": 125, + "id": 198, "name": "neq", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Match only rows where `column` is not equal to `value`." + "shortText": "Finds all rows whose value on the stated `column` doesn't match the\nspecified `value`." }, - "typeParameter": [ - { - "id": 126, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 127, + "id": 199, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 126, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 128, + "id": 200, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The value to filter with\n" + "shortText": "The value to filter with.\n" }, "type": { "type": "indexedAccess", "indexType": { - "type": "reference", - "id": 126, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } }, "objectType": { "type": "reference", - "id": 113, - "name": "Row" + "id": 180, + "name": "T" } } } ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 129, - "name": "neq", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 130, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 131, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -5218,66 +4566,56 @@ ] }, { - "id": 282, + "id": 182, "name": "not", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 396, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 61, "character": 2 } ], "signatures": [ { - "id": 283, + "id": 183, "name": "not", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Match only rows which doesn't satisfy the filter.", - "text": "Unlike most filters, `opearator` and `value` are used as-is and need to\nfollow [PostgREST\nsyntax](https://postgrest.org/en/stable/api.html#operators). You also need\nto make sure they are properly sanitized.\n" + "shortText": "Finds all rows which doesn't satisfy the filter." }, - "typeParameter": [ - { - "id": 284, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 285, + "id": 184, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 284, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 286, + "id": 185, "name": "operator", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The operator to be negated to filter with, following\nPostgREST syntax" + "shortText": "The operator to filter with." }, "type": { "type": "reference", @@ -5285,101 +4623,28 @@ } }, { - "id": 287, + "id": 186, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The value to filter with, following PostgREST syntax\n" + "shortText": "The value to filter with.\n" }, "type": { - "type": "indexedAccess", - "indexType": { - "type": "reference", - "id": 284, - "name": "ColumnName" - }, - "objectType": { - "type": "reference", - "id": 113, - "name": "Row" - } + "type": "intrinsic", + "name": "any" } } ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 288, - "name": "not", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 289, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 290, - "name": "operator", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 291, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -5388,38 +4653,37 @@ ] }, { - "id": 292, + "id": 187, "name": "or", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 420, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 72, "character": 2 } ], "signatures": [ { - "id": 293, + "id": 188, "name": "or", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Match only rows which satisfy at least one of the filters.", - "text": "Unlike most filters, `filters` is used as-is and needs to follow [PostgREST\nsyntax](https://postgrest.org/en/stable/api.html#operators). You also need\nto make sure it's properly sanitized.\n\nIt's currently not possible to do an `.or()` filter across multiple tables.\n" + "shortText": "Finds all rows satisfying at least one of the filters." }, "parameters": [ { - "id": 294, + "id": 189, "name": "filters", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The filters to use, following PostgREST syntax" + "shortText": "The filters to use, separated by commas." }, "type": { "type": "intrinsic", @@ -5427,26 +4691,26 @@ } }, { - "id": 295, + "id": 190, "name": "foreignTable", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "Set this to filter on foreign tables instead of the\ncurrent table\n" + "shortText": "The foreign table to use (if `column` is a foreign column).\n" }, "originalName": "__namedParameters", "type": { "type": "reflection", "declaration": { - "id": 296, + "id": 191, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 297, + "id": 192, "name": "foreignTable", "kind": 1024, "kindString": "Property", @@ -5455,8 +4719,8 @@ }, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 420, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 72, "character": 42 } ], @@ -5470,7 +4734,7 @@ { "title": "Properties", "kind": 1024, - "children": [297] + "children": [192] } ] } @@ -5480,17 +4744,12 @@ ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -5499,219 +4758,65 @@ ] }, { - "id": 313, + "id": 352, "name": "order", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 59, + "fileName": "src/lib/PostgrestTransformBuilder.ts", + "line": 40, "character": 2 } ], "signatures": [ { - "id": 314, + "id": 353, "name": "order", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Order the query result by `column`.", - "text": "You can call this method multiple times to order by multiple columns.\n\nYou can order foreign tables, but it doesn't affect the ordering of the\ncurrent table.\n" + "shortText": "Orders the result with the specified `column`." }, - "typeParameter": [ - { - "id": 315, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 316, + "id": 354, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The column to order by" + "shortText": "The column to order on." }, "type": { - "type": "reference", - "id": 315, - "name": "ColumnName" - } - }, - { - "id": 317, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "Named parameters" - }, - "type": { - "type": "reflection", - "declaration": { - "id": 318, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 319, - "name": "ascending", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "If `true`, the result will be in ascending order" - }, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 61, - "character": 16 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 321, - "name": "foreignTable", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "Set this to order a foreign table by foreign\ncolumns\n" - }, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 61, - "character": 59 - } - ], - "type": { - "type": "intrinsic", - "name": "undefined" - } - }, - { - "id": 320, - "name": "nullsFirst", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "If `true`, `null`s appear first. If `false`,\n`null`s appear last." - }, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 61, - "character": 37 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [319, 321, 320] - } - ] + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" } } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - }, - "inheritedFrom": { - "type": "reference", - "id": 406, - "name": "default.order" - } - }, - { - "id": 322, - "name": "order", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ + }, { - "id": 323, - "name": "column", + "id": 355, + "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 324, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, "type": { "type": "reflection", "declaration": { - "id": 325, + "id": 356, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 326, + "id": 357, "name": "ascending", "kind": 1024, "kindString": "Property", @@ -5720,9 +4825,9 @@ }, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 65, - "character": 16 + "fileName": "src/lib/PostgrestTransformBuilder.ts", + "line": 46, + "character": 9 } ], "type": { @@ -5731,16 +4836,18 @@ } }, { - "id": 328, + "id": 359, "name": "foreignTable", "kind": 1024, "kindString": "Property", - "flags": {}, + "flags": { + "isOptional": true + }, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 65, - "character": 59 + "fileName": "src/lib/PostgrestTransformBuilder.ts", + "line": 46, + "character": 52 } ], "type": { @@ -5749,7 +4856,7 @@ } }, { - "id": 327, + "id": 358, "name": "nullsFirst", "kind": 1024, "kindString": "Property", @@ -5758,9 +4865,9 @@ }, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 65, - "character": 37 + "fileName": "src/lib/PostgrestTransformBuilder.ts", + "line": 46, + "character": 30 } ], "type": { @@ -5773,103 +4880,88 @@ { "title": "Properties", "kind": 1024, - "children": [326, 328, 327] + "children": [357, 359, 358] } ] } - } + }, + "defaultValue": "{}" } ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" }, "inheritedFrom": { "type": "reference", - "id": 414, - "name": "default.order" + "name": "PostgrestTransformBuilder.order" } } ], "inheritedFrom": { "type": "reference", - "id": 405, - "name": "default.order" + "name": "PostgrestTransformBuilder.order" } }, { - "id": 252, + "id": 296, "name": "overlaps", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 313, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 337, "character": 2 } ], "signatures": [ { - "id": 253, + "id": 297, "name": "overlaps", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Only relevant for array and range columns. Match only rows where\n`column` and `value` have an element in common." + "shortText": "Finds all rows whose array or range value on the stated `column` overlaps\n(has a value in common) with the specified `value`." }, - "typeParameter": [ - { - "id": 254, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 255, + "id": 298, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The array or range column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 254, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 256, + "id": 299, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The array or range value to filter with\n" + "shortText": "The value to filter with.\n" }, "type": { "type": "union", @@ -5883,14 +4975,18 @@ "elementType": { "type": "indexedAccess", "indexType": { - "type": "reference", - "id": 254, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } }, "objectType": { "type": "reference", - "id": 113, - "name": "Row" + "id": 180, + "name": "T" } } } @@ -5900,77 +4996,12 @@ ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 257, - "name": "overlaps", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 258, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 259, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "unknown" - } - } - ] - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -5979,91 +5010,99 @@ ] }, { - "id": 335, - "name": "range", + "id": 327, + "name": "phfts", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 110, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 423, "character": 2 } ], "signatures": [ { - "id": 336, - "name": "range", + "id": 328, + "name": "phfts", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Limit the query result by `from` and `to` inclusively." + "shortText": "Finds all rows whose tsvector value on the stated `column` matches\nphraseto_tsquery(`query`).", + "tags": [ + { + "tag": "deprecated", + "text": "Use `textSearch()` with `type: 'phrase'` instead.\n" + } + ] }, "parameters": [ { - "id": 337, - "name": "from", + "id": 329, + "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The starting index from which to limit the result" + "shortText": "The column to filter on." }, "type": { - "type": "intrinsic", - "name": "number" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 338, - "name": "to", + "id": 330, + "name": "query", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The last index to which to limit the result" + "shortText": "The Postgres tsquery string to filter with." }, "type": { "type": "intrinsic", - "name": "number" + "name": "string" } }, { - "id": 339, - "name": "options", + "id": 331, + "name": "config", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "Named parameters" + "shortText": "The text search configuration to use.\n" }, "originalName": "__namedParameters", "type": { "type": "reflection", "declaration": { - "id": 340, + "id": 332, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 341, - "name": "foreignTable", + "id": 333, + "name": "config", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "Set this to limit rows of foreign tables\ninstead of the current table\n" - }, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 110, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 423, "character": 54 } ], @@ -6077,7 +5116,7 @@ { "title": "Properties", "kind": 1024, - "children": [341] + "children": [333] } ] } @@ -6087,94 +5126,327 @@ ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" + "id": 180, + "name": "T" + } + ], + "name": "default" + } + } + ] + }, + { + "id": 320, + "name": "plfts", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 407, + "character": 2 + } + ], + "signatures": [ + { + "id": 321, + "name": "plfts", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Finds all rows whose tsvector value on the stated `column` matches\nplainto_tsquery(`query`).", + "tags": [ + { + "tag": "deprecated", + "text": "Use `textSearch()` with `type: 'plain'` instead.\n" + } + ] + }, + "parameters": [ + { + "id": 322, + "name": "column", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The column to filter on." }, + "type": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } + } + }, + { + "id": 323, + "name": "query", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The Postgres tsquery string to filter with." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 324, + "name": "config", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The text search configuration to use.\n" + }, + "originalName": "__namedParameters", + "type": { + "type": "reflection", + "declaration": { + "id": 325, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 326, + "name": "config", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 407, + "character": 54 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [326] + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "id": 177, + "typeArguments": [ { "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" + } + ], + "name": "default" + } + } + ] + }, + { + "id": 366, + "name": "range", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/PostgrestTransformBuilder.ts", + "line": 79, + "character": 2 + } + ], + "signatures": [ + { + "id": 367, + "name": "range", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Limits the result to rows within the specified range, inclusive." + }, + "parameters": [ + { + "id": 368, + "name": "from", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The starting index from which to limit the result, inclusive." + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 369, + "name": "to", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The last index to which to limit the result, inclusive." + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 370, + "name": "foreignTable", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The foreign table to use (for foreign columns).\n" + }, + "originalName": "__namedParameters", + "type": { + "type": "reflection", + "declaration": { + "id": 371, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 372, + "name": "foreignTable", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/PostgrestTransformBuilder.ts", + "line": 79, + "character": 54 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [372] + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "id": 177, + "typeArguments": [ + { + "type": "reference", + "id": 180, + "name": "T" } ], "name": "default" }, "inheritedFrom": { "type": "reference", - "id": 428, - "name": "default.range" + "name": "PostgrestTransformBuilder.range" } } ], "inheritedFrom": { "type": "reference", - "id": 427, - "name": "default.range" + "name": "PostgrestTransformBuilder.range" } }, { - "id": 244, + "id": 287, "name": "rangeAdjacent", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 299, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 322, "character": 2 } ], "signatures": [ { - "id": 245, + "id": 288, "name": "rangeAdjacent", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Only relevant for range columns. Match only rows where `column` is\nmutually exclusive to `range` and there can be no element between the two\nranges." + "shortText": "Finds all rows whose range value on the stated `column` is adjacent to\nthe specified `range`." }, - "typeParameter": [ - { - "id": 246, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 247, + "id": 289, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The range column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 246, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 248, + "id": 290, "name": "range", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The range to filter with\n" + "shortText": "The range to filter with.\n" }, "type": { "type": "intrinsic", @@ -6184,65 +5456,12 @@ ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 249, - "name": "rangeAdjacent", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 250, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 251, - "name": "range", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -6251,65 +5470,56 @@ ] }, { - "id": 212, + "id": 260, "name": "rangeGt", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 240, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 277, "character": 2 } ], "signatures": [ { - "id": 213, + "id": 261, "name": "rangeGt", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Only relevant for range columns. Match only rows where every element in\n`column` is greater than any element in `range`." + "shortText": "Finds all rows whose range value on the stated `column` is strictly to\nthe right of the specified `range`." }, - "typeParameter": [ - { - "id": 214, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 215, + "id": 262, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The range column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 214, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 216, + "id": 263, "name": "range", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The range to filter with\n" + "shortText": "The range to filter with.\n" }, "type": { "type": "intrinsic", @@ -6319,65 +5529,12 @@ ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 217, - "name": "rangeGt", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 218, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 219, - "name": "range", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -6386,65 +5543,56 @@ ] }, { - "id": 220, + "id": 269, "name": "rangeGte", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 255, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 292, "character": 2 } ], "signatures": [ { - "id": 221, + "id": 270, "name": "rangeGte", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Only relevant for range columns. Match only rows where every element in\n`column` is either contained in `range` or greater than any element in\n`range`." + "shortText": "Finds all rows whose range value on the stated `column` does not extend\nto the left of the specified `range`." }, - "typeParameter": [ - { - "id": 222, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 223, + "id": 271, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The range column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 222, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 224, + "id": 272, "name": "range", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The range to filter with\n" + "shortText": "The range to filter with.\n" }, "type": { "type": "intrinsic", @@ -6454,65 +5602,12 @@ ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 225, - "name": "rangeGte", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 226, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 227, - "name": "range", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -6521,65 +5616,56 @@ ] }, { - "id": 228, + "id": 251, "name": "rangeLt", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 269, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 262, "character": 2 } ], "signatures": [ { - "id": 229, + "id": 252, "name": "rangeLt", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Only relevant for range columns. Match only rows where every element in\n`column` is less than any element in `range`." + "shortText": "Finds all rows whose range value on the stated `column` is strictly to the\nleft of the specified `range`." }, - "typeParameter": [ - { - "id": 230, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 231, + "id": 253, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The range column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 230, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 232, + "id": 254, "name": "range", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The range to filter with\n" + "shortText": "The range to filter with.\n" }, "type": { "type": "intrinsic", @@ -6589,65 +5675,12 @@ ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 233, - "name": "rangeLt", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 234, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 235, - "name": "range", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -6656,65 +5689,56 @@ ] }, { - "id": 236, + "id": 278, "name": "rangeLte", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 284, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 307, "character": 2 } ], "signatures": [ { - "id": 237, + "id": 279, "name": "rangeLte", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Only relevant for range columns. Match only rows where every element in\n`column` is either contained in `range` or less than any element in\n`range`." + "shortText": "Finds all rows whose range value on the stated `column` does not extend\nto the right of the specified `range`." }, - "typeParameter": [ - { - "id": 238, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 239, + "id": 280, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The range column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 238, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 240, + "id": 281, "name": "range", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The range to filter with\n" + "shortText": "The range to filter with.\n" }, "type": { "type": "intrinsic", @@ -6724,65 +5748,12 @@ ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 241, - "name": "rangeLte", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 242, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 243, - "name": "range", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -6791,223 +5762,102 @@ ] }, { - "id": 363, - "name": "rollback", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 229, - "character": 2 - } - ], - "signatures": [ - { - "id": 364, - "name": "rollback", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Rollback the query.", - "text": "`data` will still be returned, but the query is not committed.\n" - }, - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - }, - "inheritedFrom": { - "type": "reference", - "id": 456, - "name": "default.rollback" - } - } - ], - "inheritedFrom": { - "type": "reference", - "id": 455, - "name": "default.rollback" - } - }, - { - "id": 308, + "id": 349, "name": "select", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 18, + "fileName": "src/lib/PostgrestTransformBuilder.ts", + "line": 13, "character": 2 } ], "signatures": [ { - "id": 309, + "id": 350, "name": "select", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Perform a SELECT on the query result.", - "text": "By default, `.insert()`, `.update()`, `.upsert()`, and `.delete()` do not\nreturn modified rows. By calling this method, modified rows are returned in\n`data`.\n" + "shortText": "Performs vertical filtering with SELECT." }, - "typeParameter": [ + "parameters": [ { - "id": 310, - "name": "Query", - "kind": 131072, - "kindString": "Type parameter", + "id": 351, + "name": "columns", + "kind": 32768, + "kindString": "Parameter", "flags": {}, + "comment": { + "shortText": "The columns to retrieve, separated by commas.\n" + }, "type": { "type": "intrinsic", "name": "string" }, - "default": { - "type": "literal", - "value": "*" - } - }, - { - "id": 311, - "name": "NewResult", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "default": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "conditional", - "checkType": { - "type": "reference", - "id": 310, - "name": "Query" - }, - "extendsType": { - "type": "literal", - "value": "*" - }, - "trueType": { - "type": "literal", - "value": "*" - }, - "falseType": { - "type": "reference", - "id": 310, - "name": "Query" - } - } - ], - "name": "GetResult" - } - } - ], - "parameters": [ - { - "id": 312, - "name": "columns", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "The columns to retrieve, separated by commas\n" - }, - "type": { - "type": "reference", - "id": 310, - "name": "Query" - } + "defaultValue": "'*'" } ], "type": { "type": "reference", - "id": 394, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 311, - "name": "NewResult" + "id": 180, + "name": "T" } ], "name": "default" }, "inheritedFrom": { "type": "reference", - "id": 401, - "name": "default.select" + "name": "PostgrestTransformBuilder.select" } } ], "inheritedFrom": { "type": "reference", - "id": 400, - "name": "default.select" + "name": "PostgrestTransformBuilder.select" } }, { - "id": 345, + "id": 376, "name": "single", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 135, + "fileName": "src/lib/PostgrestTransformBuilder.ts", + "line": 100, "character": 2 } ], "signatures": [ { - "id": 346, + "id": 377, "name": "single", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Return `data` as a single object instead of an array of objects.", - "text": "Query result must be one row (e.g. using `.limit(1)`), otherwise this\nreturns an error.\n" + "shortText": "Retrieves only one row from the result. Result must be one row (e.g. using\n`limit`), otherwise this will result in an error." }, "type": { "type": "reference", "typeArguments": [ { "type": "reference", - "id": 521, + "id": 427, "typeArguments": [ { "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "PostgrestSingleResponse" @@ -7019,77 +5869,66 @@ }, "inheritedFrom": { "type": "reference", - "id": 438, - "name": "default.single" + "name": "PostgrestTransformBuilder.single" } } ], "inheritedFrom": { "type": "reference", - "id": 437, - "name": "default.single" + "name": "PostgrestTransformBuilder.single" } }, { - "id": 260, + "id": 305, "name": "textSearch", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 339, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 360, "character": 2 } ], "signatures": [ { - "id": 261, + "id": 306, "name": "textSearch", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Only relevant for text and tsvector columns. Match only rows where\n`column` matches the query string in `query`." + "shortText": "Finds all rows whose text or tsvector value on the stated `column` matches\nthe tsquery in `query`." }, - "typeParameter": [ - { - "id": 262, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 263, + "id": 307, "name": "column", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The text or tsvector column to filter on" + "shortText": "The column to filter on." }, "type": { - "type": "reference", - "id": 262, - "name": "ColumnName" + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } } }, { - "id": 264, + "id": 308, "name": "query", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The query text to match with" + "shortText": "The Postgres tsquery string to filter with." }, "type": { "type": "intrinsic", @@ -7097,41 +5936,33 @@ } }, { - "id": 265, - "name": "options", + "id": 309, + "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "Named parameters" - }, + "flags": {}, "type": { "type": "reflection", "declaration": { - "id": 266, + "id": 310, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 267, + "id": 311, "name": "config", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "The text search configuration to use" - }, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 342, - "character": 16 + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 366, + "character": 9 } ], "type": { @@ -7140,26 +5971,27 @@ } }, { - "id": 268, + "id": 312, "name": "type", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "Change how the `query` text is interpreted\n" - }, "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 342, - "character": 33 + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 366, + "character": 26 } ], "type": { "type": "union", "types": [ + { + "type": "literal", + "value": null + }, { "type": "literal", "value": "plain" @@ -7180,155 +6012,22 @@ { "title": "Properties", "kind": 1024, - "children": [267, 268] + "children": [311, 312] } ] } - } + }, + "defaultValue": "{}" } ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" - } - ], - "name": "default" - } - }, - { - "id": 269, - "name": "textSearch", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 270, - "name": "column", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 271, - "name": "query", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 272, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 273, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 274, - "name": "config", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 347, - "character": 16 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 275, - "name": "type", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 347, - "character": 33 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "plain" - }, - { - "type": "literal", - "value": "phrase" - }, - { - "type": "literal", - "value": "websearch" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [274, 275] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -7337,47 +6036,47 @@ ] }, { - "id": 380, + "id": 412, "name": "then", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 48, + "fileName": "src/lib/types.ts", + "line": 91, "character": 2 } ], "signatures": [ { - "id": 381, + "id": 413, "name": "then", "kind": 4096, "kindString": "Call signature", "flags": {}, "typeParameter": [ { - "id": 382, + "id": 414, "name": "TResult1", "kind": 131072, "kindString": "Type parameter", "flags": {}, "default": { "type": "reference", - "id": 519, + "id": 425, "typeArguments": [ { "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "PostgrestResponse" } }, { - "id": 383, + "id": 415, "name": "TResult2", "kind": 131072, "kindString": "Type parameter", @@ -7390,7 +6089,7 @@ ], "parameters": [ { - "id": 384, + "id": 416, "name": "onfulfilled", "kind": 32768, "kindString": "Parameter", @@ -7407,33 +6106,33 @@ { "type": "reflection", "declaration": { - "id": 385, + "id": 417, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 386, + "id": 418, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 387, + "id": 419, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 519, + "id": 425, "typeArguments": [ { "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "PostgrestResponse" @@ -7445,7 +6144,7 @@ "types": [ { "type": "reference", - "id": 382, + "id": 72, "name": "TResult1" }, { @@ -7453,7 +6152,7 @@ "typeArguments": [ { "type": "reference", - "id": 382, + "id": 72, "name": "TResult1" } ], @@ -7471,7 +6170,7 @@ } }, { - "id": 388, + "id": 420, "name": "onrejected", "kind": 32768, "kindString": "Parameter", @@ -7488,21 +6187,21 @@ { "type": "reflection", "declaration": { - "id": 389, + "id": 421, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 390, + "id": 422, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 391, + "id": 423, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -7518,7 +6217,7 @@ "types": [ { "type": "reference", - "id": 383, + "id": 73, "name": "TResult2" }, { @@ -7526,7 +6225,7 @@ "typeArguments": [ { "type": "reference", - "id": 383, + "id": 73, "name": "TResult2" } ], @@ -7552,12 +6251,12 @@ "types": [ { "type": "reference", - "id": 382, + "id": 72, "name": "TResult1" }, { "type": "reference", - "id": 383, + "id": 73, "name": "TResult2" } ] @@ -7569,33 +6268,31 @@ }, "inheritedFrom": { "type": "reference", - "id": 473, - "name": "default.then" + "name": "PostgrestTransformBuilder.then" } } ], "inheritedFrom": { "type": "reference", - "id": 472, - "name": "default.then" + "name": "PostgrestTransformBuilder.then" } }, { - "id": 378, + "id": 409, "name": "throwOnError", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 43, + "fileName": "src/lib/types.ts", + "line": 83, "character": 2 } ], "signatures": [ { - "id": 379, + "id": 410, "name": "throwOnError", "kind": 4096, "kindString": "Call signature", @@ -7604,92 +6301,209 @@ "shortText": "If there's an error with the query, throwOnError will reject the promise by\nthrowing the error instead of returning it as part of a successful response.", "text": "{@link https://github.com/supabase/supabase-js/issues/92}\n" }, + "parameters": [ + { + "id": 411, + "name": "throwOnError", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], "type": { "type": "reference", - "id": 110, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" }, "inheritedFrom": { "type": "reference", - "id": 471, - "name": "default.throwOnError" + "name": "PostgrestTransformBuilder.throwOnError" } } ], "inheritedFrom": { "type": "reference", - "id": 470, - "name": "default.throwOnError" + "name": "PostgrestTransformBuilder.throwOnError" } + }, + { + "id": 334, + "name": "wfts", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 439, + "character": 2 + } + ], + "signatures": [ + { + "id": 335, + "name": "wfts", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Finds all rows whose tsvector value on the stated `column` matches\nwebsearch_to_tsquery(`query`).", + "tags": [ + { + "tag": "deprecated", + "text": "Use `textSearch()` with `type: 'websearch'` instead.\n" + } + ] + }, + "parameters": [ + { + "id": 336, + "name": "column", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The column to filter on." + }, + "type": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "id": 180, + "name": "T" + } + } + }, + { + "id": 337, + "name": "query", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The Postgres tsquery string to filter with." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 338, + "name": "config", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The text search configuration to use.\n" + }, + "originalName": "__namedParameters", + "type": { + "type": "reflection", + "declaration": { + "id": 339, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 340, + "name": "config", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 439, + "character": 53 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [340] + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "id": 177, + "typeArguments": [ + { + "type": "reference", + "id": 180, + "name": "T" + } + ], + "name": "default" + } + } + ] } ], "groups": [ { "title": "Constructors", "kind": 512, - "children": [111] + "children": [178] }, { "title": "Properties", "kind": 1024, - "children": [377, 369, 372, 367, 365, 368, 370, 371, 366] + "children": [ + 291, 408, 400, 246, 237, 403, 395, 393, 273, 282, 300, 399, 401, 402, 255, 264, 394 + ] }, { "title": "Methods", "kind": 2048, "children": [ - 342, 204, 196, 349, 116, 353, 298, 351, 132, 140, 172, 188, 180, 164, 329, 148, 156, - 276, 347, 124, 282, 292, 313, 252, 335, 244, 212, 220, 228, 236, 363, 308, 345, 260, - 380, 378 + 373, 242, 233, 380, 193, 384, 341, 313, 382, 201, 205, 221, 229, 225, 217, 360, 209, + 213, 346, 378, 197, 182, 187, 352, 296, 327, 320, 366, 287, 260, 269, 251, 278, 349, + 376, 305, 412, 409, 334 ] } ], "sources": [ { - "fileName": "src/PostgrestFilterBuilder.ts", - "line": 27, + "fileName": "src/lib/PostgrestFilterBuilder.ts", + "line": 53, "character": 21 } ], "typeParameter": [ { - "id": 392, - "name": "Row", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - } - }, - { - "id": 393, - "name": "Result", + "id": 424, + "name": "T", "kind": 131072, "kindString": "Type parameter", "flags": {} @@ -7698,17 +6512,11 @@ "extendedTypes": [ { "type": "reference", - "id": 394, "typeArguments": [ { "type": "reference", - "id": 113, - "name": "Row" - }, - { - "type": "reference", - "id": 114, - "name": "Result" + "id": 180, + "name": "T" } ], "name": "default" @@ -7716,70 +6524,55 @@ ] }, { - "id": 49, + "id": 83, "name": "PostgrestQueryBuilder", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 50, + "id": 84, "name": "constructor", "kind": 512, "kindString": "Constructor", "flags": {}, "sources": [ { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 13, + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 5, "character": 2 } ], "signatures": [ { - "id": 51, + "id": 85, "name": "new PostgrestQueryBuilder", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "typeParameter": [ { - "id": 52, - "name": "Relation", + "id": 86, + "name": "T", "kind": 131072, "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "GenericTable" - }, - { - "type": "reference", - "name": "GenericView" - } - ] - } + "flags": {} } ], "parameters": [ { - "id": 53, + "id": 87, "name": "url", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "reference", - "qualifiedName": "URL", - "package": "typescript", - "name": "URL" + "type": "intrinsic", + "name": "string" } }, { - "id": 54, + "id": 88, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -7787,14 +6580,14 @@ "type": { "type": "reflection", "declaration": { - "id": 55, + "id": 89, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 58, + "id": 95, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -7803,53 +6596,42 @@ }, "sources": [ { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 22, + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 15, "character": 6 } ], "type": { "type": "reflection", "declaration": { - "id": 59, + "id": 96, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 60, + "id": 97, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 61, + "id": 98, "name": "input", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "union", - "types": [ - { - "type": "reference", - "qualifiedName": "RequestInfo", - "package": "typescript", - "name": "RequestInfo" - }, - { - "type": "reference", - "qualifiedName": "URL", - "package": "typescript", - "name": "URL" - } - ] + "type": "reference", + "qualifiedName": "RequestInfo", + "package": "typescript", + "name": "RequestInfo" } }, { - "id": 62, + "id": 99, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -7884,7 +6666,7 @@ } }, { - "id": 56, + "id": 90, "name": "headers", "kind": 1024, "kindString": "Property", @@ -7893,30 +6675,47 @@ }, "sources": [ { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 20, + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 13, "character": 6 } ], "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "string" + "type": "reflection", + "declaration": { + "id": 91, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "indexSignature": { + "id": 92, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 93, + "name": "key", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" + } } }, { - "id": 57, + "id": 94, "name": "schema", "kind": 1024, "kindString": "Property", @@ -7925,8 +6724,8 @@ }, "sources": [ { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 21, + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 14, "character": 6 } ], @@ -7934,681 +6733,19 @@ "type": "intrinsic", "name": "string" } - } - ], - "groups": [ + }, { - "title": "Properties", - "kind": 1024, - "children": [58, 56, 57] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "id": 49, - "typeArguments": [ - { - "type": "reference", - "id": 52, - "name": "Relation" - } - ], - "name": "default" - } - } - ] - }, - { - "id": 67, - "name": "fetch", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 11, - "character": 2 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 68, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "signatures": [ - { - "id": 69, - "name": "__type", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 70, - "name": "input", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "qualifiedName": "RequestInfo", - "package": "typescript", - "name": "RequestInfo" - }, - { - "type": "reference", - "qualifiedName": "URL", - "package": "typescript", - "name": "URL" - } - ] - } - }, - { - "id": 71, - "name": "init", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "reference", - "qualifiedName": "RequestInit", - "package": "typescript", - "name": "RequestInit" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "qualifiedName": "Response", - "package": "typescript", - "name": "Response" - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - } - } - }, - { - "id": 64, - "name": "headers", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 8, - "character": 2 - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "string" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - } - }, - { - "id": 65, - "name": "schema", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 9, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 66, - "name": "signal", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 10, - "character": 2 - } - ], - "type": { - "type": "reference", - "qualifiedName": "AbortSignal", - "package": "typescript", - "name": "AbortSignal" - } - }, - { - "id": 63, - "name": "url", - "kind": 1024, - "kindString": "Property", - "flags": {}, - "sources": [ - { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 7, - "character": 2 - } - ], - "type": { - "type": "reference", - "qualifiedName": "URL", - "package": "typescript", - "name": "URL" - } - }, - { - "id": 104, - "name": "delete", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 296, - "character": 2 - } - ], - "signatures": [ - { - "id": 105, - "name": "delete", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Perform a DELETE on the table or view.", - "text": "By default, deleted rows are not returned. To return it, chain the call\nwith `.select()` after filters.\n" - }, - "parameters": [ - { - "id": 106, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "shortText": "Named parameters\n" - }, - "originalName": "__namedParameters", - "type": { - "type": "reflection", - "declaration": { - "id": 107, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 108, - "name": "count", + "id": 100, + "name": "shouldThrowOnError", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "Count algorithm to use to count deleted rows.\n\n`\"exact\"`: Exact but slow count algorithm. Performs a `COUNT(*)` under the\nhood.\n\n`\"planned\"`: Approximated but fast count algorithm. Uses the Postgres\nstatistics under the hood.\n\n`\"estimated\"`: Uses exact count for low numbers and planned count for high\nnumbers.\n" - }, "sources": [ { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 299, - "character": 4 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "exact" - }, - { - "type": "literal", - "value": "planned" - }, - { - "type": "literal", - "value": "estimated" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [108] - } - ] - } - }, - "defaultValue": "{}" - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "indexedAccess", - "indexType": { - "type": "literal", - "value": "Row" - }, - "objectType": { - "type": "reference", - "id": 52, - "name": "Relation" - } - }, - { - "type": "intrinsic", - "name": "undefined" - } - ], - "name": "default" - } - } - ] - }, - { - "id": 81, - "name": "insert", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 117, - "character": 2 - } - ], - "signatures": [ - { - "id": 82, - "name": "insert", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Perform an INSERT into the table or view.", - "text": "By default, inserted rows are not returned. To return it, chain the call\nwith `.select()`.\n" - }, - "typeParameter": [ - { - "id": 83, - "name": "Row", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - } - } - ], - "parameters": [ - { - "id": 84, - "name": "values", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "shortText": "The values to insert. Pass an object to insert a single row\nor an array to insert multiple rows.\n" - }, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 83, - "name": "Row" - }, - { - "type": "array", - "elementType": { - "type": "reference", - "id": 83, - "name": "Row" - } - } - ] - } - }, - { - "id": 85, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "shortText": "Named parameters\n" - }, - "originalName": "__namedParameters", - "type": { - "type": "reflection", - "declaration": { - "id": 86, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 87, - "name": "count", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "Count algorithm to use to count inserted rows.\n\n`\"exact\"`: Exact but slow count algorithm. Performs a `COUNT(*)` under the\nhood.\n\n`\"planned\"`: Approximated but fast count algorithm. Uses the Postgres\nstatistics under the hood.\n\n`\"estimated\"`: Uses exact count for low numbers and planned count for high\nnumbers.\n" - }, - "sources": [ - { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 122, - "character": 6 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "exact" - }, - { - "type": "literal", - "value": "planned" - }, - { - "type": "literal", - "value": "estimated" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [87] - } - ] - } - }, - "defaultValue": "{}" - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "indexedAccess", - "indexType": { - "type": "literal", - "value": "Row" - }, - "objectType": { - "type": "reference", - "id": 52, - "name": "Relation" - } - }, - { - "type": "intrinsic", - "name": "undefined" - } - ], - "name": "default" - } - } - ] - }, - { - "id": 72, - "name": "select", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 52, - "character": 2 - } - ], - "signatures": [ - { - "id": 73, - "name": "select", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Perform a SELECT query on the table or view." - }, - "typeParameter": [ - { - "id": 74, - "name": "Query", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - }, - "default": { - "type": "literal", - "value": "*" - } - }, - { - "id": 75, - "name": "Result", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "default": { - "type": "reference", - "typeArguments": [ - { - "type": "indexedAccess", - "indexType": { - "type": "literal", - "value": "Row" - }, - "objectType": { - "type": "reference", - "id": 52, - "name": "Relation" - } - }, - { - "type": "conditional", - "checkType": { - "type": "reference", - "id": 74, - "name": "Query" - }, - "extendsType": { - "type": "literal", - "value": "*" - }, - "trueType": { - "type": "literal", - "value": "*" - }, - "falseType": { - "type": "reference", - "id": 74, - "name": "Query" - } - } - ], - "name": "GetResult" - } - } - ], - "parameters": [ - { - "id": 76, - "name": "columns", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "The columns to retrieve, separated by commas\n" - }, - "type": { - "type": "reference", - "id": 74, - "name": "Query" - } - }, - { - "id": 77, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "shortText": "Named parameters\n" - }, - "originalName": "__namedParameters", - "type": { - "type": "reflection", - "declaration": { - "id": 78, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 80, - "name": "count", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "Count algorithm to use to count rows in the table or view.\n\n`\"exact\"`: Exact but slow count algorithm. Performs a `COUNT(*)` under the\nhood.\n\n`\"planned\"`: Approximated but fast count algorithm. Uses the Postgres\nstatistics under the hood.\n\n`\"estimated\"`: Uses exact count for low numbers and planned count for high\nnumbers.\n" - }, - "sources": [ - { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 62, - "character": 6 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "exact" - }, - { - "type": "literal", - "value": "planned" - }, - { - "type": "literal", - "value": "estimated" - } - ] - } - }, - { - "id": 79, - "name": "head", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "When set to `true`, `data` will not be returned.\nUseful if you only need the count.\n" - }, - "sources": [ - { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 61, + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 16, "character": 6 } ], @@ -8622,7 +6759,7 @@ { "title": "Properties", "kind": 1024, - "children": [80, 79] + "children": [95, 90, 94, 100] } ] } @@ -8632,561 +6769,31 @@ ], "type": { "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "indexedAccess", - "indexType": { - "type": "literal", - "value": "Row" - }, - "objectType": { - "type": "reference", - "id": 52, - "name": "Relation" - } - }, - { - "type": "reference", - "id": 75, - "name": "Result" - } - ], - "name": "default" - } - } - ] - }, - { - "id": 97, - "name": "update", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 247, - "character": 2 - } - ], - "signatures": [ - { - "id": 98, - "name": "update", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Perform an UPDATE on the table or view.", - "text": "By default, updated rows are not returned. To return it, chain the call\nwith `.select()` after filters.\n" - }, - "typeParameter": [ - { - "id": 99, - "name": "Row", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - } - } - ], - "parameters": [ - { - "id": 100, - "name": "values", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "shortText": "The values to update with\n" - }, - "type": { - "type": "reference", - "id": 99, - "name": "Row" - } - }, - { - "id": 101, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "shortText": "Named parameters\n" - }, - "originalName": "__namedParameters", - "type": { - "type": "reflection", - "declaration": { - "id": 102, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 103, - "name": "count", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "Count algorithm to use to count updated rows.\n\n`\"exact\"`: Exact but slow count algorithm. Performs a `COUNT(*)` under the\nhood.\n\n`\"planned\"`: Approximated but fast count algorithm. Uses the Postgres\nstatistics under the hood.\n\n`\"estimated\"`: Uses exact count for low numbers and planned count for high\nnumbers.\n" - }, - "sources": [ - { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 252, - "character": 6 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "exact" - }, - { - "type": "literal", - "value": "planned" - }, - { - "type": "literal", - "value": "estimated" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [103] - } - ] - } - }, - "defaultValue": "{}" - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "indexedAccess", - "indexType": { - "type": "literal", - "value": "Row" - }, - "objectType": { - "type": "reference", - "id": 52, - "name": "Relation" - } - }, - { - "type": "intrinsic", - "name": "undefined" - } - ], - "name": "default" - } - } - ] - }, - { - "id": 88, - "name": "upsert", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 189, - "character": 2 - } - ], - "signatures": [ - { - "id": 89, - "name": "upsert", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Perform an UPSERT on the table or view. Depending on the column(s) passed\nto `onConflict`, `.upsert()` allows you to perform the equivalent of\n`.insert()` if a row with the corresponding `onConflict` columns doesn't\nexist, or if it does exist, perform an alternative action depending on\n`ignoreDuplicates`.", - "text": "By default, upserted rows are not returned. To return it, chain the call\nwith `.select()`.\n" - }, - "typeParameter": [ - { - "id": 90, - "name": "Row", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - } - } - ], - "parameters": [ - { - "id": 91, - "name": "values", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "shortText": "The values to upsert with. Pass an object to upsert a\nsingle row or an array to upsert multiple rows.\n" - }, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 90, - "name": "Row" - }, - { - "type": "array", - "elementType": { - "type": "reference", - "id": 90, - "name": "Row" - } - } - ] - } - }, - { - "id": 92, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "shortText": "Named parameters\n" - }, - "originalName": "__namedParameters", - "type": { - "type": "reflection", - "declaration": { - "id": 93, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 96, - "name": "count", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "Count algorithm to use to count upserted rows.\n\n`\"exact\"`: Exact but slow count algorithm. Performs a `COUNT(*)` under the\nhood.\n\n`\"planned\"`: Approximated but fast count algorithm. Uses the Postgres\nstatistics under the hood.\n\n`\"estimated\"`: Uses exact count for low numbers and planned count for high\nnumbers.\n" - }, - "sources": [ - { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 198, - "character": 6 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "exact" - }, - { - "type": "literal", - "value": "planned" - }, - { - "type": "literal", - "value": "estimated" - } - ] - } - }, - { - "id": 95, - "name": "ignoreDuplicates", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "If `true`, duplicate rows are ignored. If\n`false`, duplicate rows are merged with existing rows.\n" - }, - "sources": [ - { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 197, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 94, - "name": "onConflict", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "Comma-separated UNIQUE column(s) to specify how\nduplicate rows are determined. Two rows are duplicates if all the\n`onConflict` columns are equal.\n" - }, - "sources": [ - { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 196, - "character": 6 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [96, 95, 94] - } - ] - } - }, - "defaultValue": "{}" - } - ], - "type": { - "type": "reference", - "id": 110, - "typeArguments": [ - { - "type": "indexedAccess", - "indexType": { - "type": "literal", - "value": "Row" - }, - "objectType": { - "type": "reference", - "id": 52, - "name": "Relation" - } - }, - { - "type": "intrinsic", - "name": "undefined" - } - ], - "name": "default" - } - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [50] - }, - { - "title": "Properties", - "kind": 1024, - "children": [67, 64, 65, 66, 63] - }, - { - "title": "Methods", - "kind": 2048, - "children": [104, 81, 72, 97, 88] - } - ], - "sources": [ - { - "fileName": "src/PostgrestQueryBuilder.ts", - "line": 6, - "character": 21 - } - ], - "typeParameter": [ - { - "id": 109, - "name": "Relation", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "name": "GenericTable" - }, - { - "type": "reference", - "name": "GenericView" - } - ] - } - } - ] - }, - { - "id": 394, - "name": "PostgrestTransformBuilder", - "kind": 128, - "kindString": "Class", - "flags": {}, - "children": [ - { - "id": 395, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": {}, - "signatures": [ - { - "id": 396, - "name": "new PostgrestTransformBuilder", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "typeParameter": [ - { - "id": 397, - "name": "Row", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - } - }, - { - "id": 398, - "name": "Result", - "kind": 131072, - "kindString": "Type parameter", - "flags": {} - } - ], - "parameters": [ - { - "id": 399, - "name": "builder", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "id": 486, - "typeArguments": [ - { - "type": "reference", - "id": 398, - "name": "Result" - } - ], - "name": "default" - } - } - ], - "type": { - "type": "reference", - "id": 394, + "id": 83, "typeArguments": [ { "type": "reference", - "id": 397, - "name": "Row" - }, - { - "type": "reference", - "id": 398, - "name": "Result" + "id": 86, + "name": "T" } ], "name": "default" }, - "inheritedFrom": { + "overwrites": { "type": "reference", - "id": 488, - "name": "default.constructor" + "id": 48, + "name": "PostgrestBuilder.constructor" } } ], - "inheritedFrom": { + "overwrites": { "type": "reference", - "id": 487, - "name": "default.constructor" + "id": 47, + "name": "PostgrestBuilder.constructor" } }, { - "id": 469, + "id": 160, "name": "allowEmpty", "kind": 1024, "kindString": "Property", @@ -9195,8 +6802,8 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 16, + "fileName": "src/lib/types.ts", + "line": 60, "character": 12 } ], @@ -9206,12 +6813,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 503, - "name": "default.allowEmpty" + "id": 66, + "name": "PostgrestBuilder.allowEmpty" } }, { - "id": 461, + "id": 152, "name": "body", "kind": 1024, "kindString": "Property", @@ -9221,23 +6828,53 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 12, + "fileName": "src/lib/types.ts", + "line": 56, "character": 12 } ], "type": { - "type": "intrinsic", - "name": "unknown" + "type": "union", + "types": [ + { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 86, + "name": "T" + } + ], + "qualifiedName": "Partial", + "package": "typescript", + "name": "Partial" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 86, + "name": "T" + } + ], + "qualifiedName": "Partial", + "package": "typescript", + "name": "Partial" + } + } + ] }, "inheritedFrom": { "type": "reference", - "id": 495, - "name": "default.body" + "id": 58, + "name": "PostgrestBuilder.body" } }, { - "id": 464, + "id": 155, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -9246,53 +6883,42 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 15, + "fileName": "src/lib/types.ts", + "line": 59, "character": 12 } ], "type": { "type": "reflection", "declaration": { - "id": 465, + "id": 156, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 466, + "id": 157, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 467, + "id": 158, "name": "input", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "union", - "types": [ - { - "type": "reference", - "qualifiedName": "RequestInfo", - "package": "typescript", - "name": "RequestInfo" - }, - { - "type": "reference", - "qualifiedName": "URL", - "package": "typescript", - "name": "URL" - } - ] + "type": "reference", + "qualifiedName": "RequestInfo", + "package": "typescript", + "name": "RequestInfo" } }, { - "id": 468, + "id": 159, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -9327,12 +6953,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 498, - "name": "default.fetch" + "id": 61, + "name": "PostgrestBuilder.fetch" } }, { - "id": 459, + "id": 147, "name": "headers", "kind": 1024, "kindString": "Property", @@ -9341,35 +6967,52 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 10, + "fileName": "src/lib/types.ts", + "line": 54, "character": 12 } ], "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "string" + "type": "reflection", + "declaration": { + "id": 148, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "indexSignature": { + "id": 149, + "name": "__index", + "kind": 8192, + "kindString": "Index signature", + "flags": {}, + "parameters": [ + { + "id": 150, + "name": "key", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" + } }, "inheritedFrom": { "type": "reference", - "id": 493, - "name": "default.headers" + "id": 53, + "name": "PostgrestBuilder.headers" } }, { - "id": 457, + "id": 145, "name": "method", "kind": 1024, "kindString": "Property", @@ -9378,8 +7021,8 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 8, + "fileName": "src/lib/types.ts", + "line": 52, "character": 12 } ], @@ -9410,12 +7053,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 491, - "name": "default.method" + "id": 51, + "name": "PostgrestBuilder.method" } }, { - "id": 460, + "id": 151, "name": "schema", "kind": 1024, "kindString": "Property", @@ -9425,8 +7068,8 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 11, + "fileName": "src/lib/types.ts", + "line": 55, "character": 12 } ], @@ -9436,12 +7079,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 494, - "name": "default.schema" + "id": 57, + "name": "PostgrestBuilder.schema" } }, { - "id": 462, + "id": 153, "name": "shouldThrowOnError", "kind": 1024, "kindString": "Property", @@ -9450,8 +7093,8 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 13, + "fileName": "src/lib/types.ts", + "line": 57, "character": 12 } ], @@ -9459,15 +7102,14 @@ "type": "intrinsic", "name": "boolean" }, - "defaultValue": "false", "inheritedFrom": { "type": "reference", - "id": 496, - "name": "default.shouldThrowOnError" + "id": 59, + "name": "PostgrestBuilder.shouldThrowOnError" } }, { - "id": 463, + "id": 154, "name": "signal", "kind": 1024, "kindString": "Property", @@ -9477,8 +7119,8 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 14, + "fileName": "src/lib/types.ts", + "line": 58, "character": 12 } ], @@ -9490,12 +7132,12 @@ }, "inheritedFrom": { "type": "reference", - "id": 497, - "name": "default.signal" + "id": 60, + "name": "PostgrestBuilder.signal" } }, { - "id": 458, + "id": 146, "name": "url", "kind": 1024, "kindString": "Property", @@ -9504,8 +7146,8 @@ }, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 9, + "fileName": "src/lib/types.ts", + "line": 53, "character": 12 } ], @@ -9517,220 +7159,61 @@ }, "inheritedFrom": { "type": "reference", - "id": 492, - "name": "default.url" + "id": 52, + "name": "PostgrestBuilder.url" } }, { - "id": 434, - "name": "abortSignal", + "id": 139, + "name": "delete", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 124, + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 212, "character": 2 } ], "signatures": [ { - "id": 435, - "name": "abortSignal", + "id": 140, + "name": "delete", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Set the AbortSignal for the fetch request." + "shortText": "Performs a DELETE on the table." }, "parameters": [ { - "id": 436, - "name": "signal", + "id": 141, + "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "shortText": "The AbortSignal to use for the fetch request\n" - }, - "type": { - "type": "reference", - "qualifiedName": "AbortSignal", - "package": "typescript", - "name": "AbortSignal" - } - } - ], - "type": { - "type": "reference", - "id": 394, - "typeArguments": [ - { - "type": "reference", - "id": 397, - "name": "Row" - }, - { - "type": "reference", - "id": 398, - "name": "Result" - } - ], - "name": "default" - } - } - ] - }, - { - "id": 441, - "name": "csv", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 155, - "character": 2 - } - ], - "signatures": [ - { - "id": 442, - "name": "csv", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Return `data` as a string in CSV format." - }, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 521, - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - } - ], - "name": "PostgrestSingleResponse" - } - ], - "qualifiedName": "PromiseLike", - "package": "typescript", - "name": "PromiseLike" - } - } - ] - }, - { - "id": 445, - "name": "explain", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 189, - "character": 2 - } - ], - "signatures": [ - { - "id": 446, - "name": "explain", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Return `data` as the EXPLAIN plan for the query." - }, - "parameters": [ - { - "id": 447, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "shortText": "Named parameters\n" - }, - "originalName": "__namedParameters", "type": { "type": "reflection", "declaration": { - "id": 448, + "id": 142, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 449, - "name": "analyze", + "id": 144, + "name": "count", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "If `true`, the query will be executed and the\nactual run time will be returned\n" - }, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 197, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 452, - "name": "buffers", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "If `true`, include information on buffer usage\n" - }, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 200, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 454, - "name": "format", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "The format of the output, can be `\"text\"` (default)\nor `\"json\"`\n" - }, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 202, + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 217, "character": 4 } ], @@ -9739,290 +7222,50 @@ "types": [ { "type": "literal", - "value": "text" + "value": null }, { "type": "literal", - "value": "json" + "value": "exact" + }, + { + "type": "literal", + "value": "planned" + }, + { + "type": "literal", + "value": "estimated" } ] } }, { - "id": 451, - "name": "settings", + "id": 143, + "name": "returning", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "If `true`, include information on configuration\nparameters that affect query planning\n" - }, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 199, + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 216, "character": 4 } ], "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 450, - "name": "verbose", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "If `true`, the query identifier will be returned\nand `data` will include the output columns of the query\n" - }, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 198, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 453, - "name": "wal", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "If `true`, include information on WAL record generation\n" - }, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 201, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [449, 452, 454, 451, 450, 453] - } - ] - } - }, - "defaultValue": "{}" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 521, - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - } - ], - "name": "PostgrestSingleResponse" - } - ], - "qualifiedName": "PromiseLike", - "package": "typescript", - "name": "PromiseLike" - }, - { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 519, - "typeArguments": [ - { - "type": "reference", - "typeArguments": [ + "type": "union", + "types": [ { - "type": "intrinsic", - "name": "string" + "type": "literal", + "value": "minimal" }, { - "type": "intrinsic", - "name": "unknown" + "type": "literal", + "value": "representation" } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - } - ], - "name": "PostgrestResponse" - } - ], - "qualifiedName": "PromiseLike", - "package": "typescript", - "name": "PromiseLike" - } - ] - } - } - ] - }, - { - "id": 443, - "name": "geojson", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 163, - "character": 2 - } - ], - "signatures": [ - { - "id": 444, - "name": "geojson", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Return `data` as an object in [GeoJSON](https://geojson.org) format." - }, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 521, - "typeArguments": [ - { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - } - ], - "name": "PostgrestSingleResponse" - } - ], - "qualifiedName": "PromiseLike", - "package": "typescript", - "name": "PromiseLike" - } - } - ] - }, - { - "id": 421, - "name": "limit", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 95, - "character": 2 - } - ], - "signatures": [ - { - "id": 422, - "name": "limit", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Limit the query result by `count`." - }, - "parameters": [ - { - "id": 423, - "name": "count", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "shortText": "The maximum number of rows to return" - }, - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 424, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "shortText": "Named parameters" - }, - "originalName": "__namedParameters", - "type": { - "type": "reflection", - "declaration": { - "id": 425, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 426, - "name": "foreignTable", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "Set this to limit rows of foreign tables\ninstead of the current table\n" - }, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 95, - "character": 43 - } - ], - "type": { - "type": "intrinsic", - "name": "string" + ] } } ], @@ -10030,7 +7273,7 @@ { "title": "Properties", "kind": 1024, - "children": [426] + "children": [144, 143] } ] } @@ -10040,17 +7283,12 @@ ], "type": { "type": "reference", - "id": 394, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 397, - "name": "Row" - }, - { - "type": "reference", - "id": 398, - "name": "Result" + "id": 86, + "name": "T" } ], "name": "default" @@ -10059,192 +7297,154 @@ ] }, { - "id": 439, - "name": "maybeSingle", + "id": 108, + "name": "insert", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 146, + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 74, "character": 2 } ], "signatures": [ { - "id": 440, - "name": "maybeSingle", + "id": 109, + "name": "insert", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Return `data` as a single object instead of an array of objects.", - "text": "Query result must be zero or one row (e.g. using `.limit(1)`), otherwise\nthis returns an error.\n" + "shortText": "Performs an INSERT into the table." }, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 523, - "typeArguments": [ - { - "type": "reference", - "id": 398, - "name": "Result" - } - ], - "name": "PostgrestMaybeSingleResponse" - } - ], - "qualifiedName": "PromiseLike", - "package": "typescript", - "name": "PromiseLike" - } - } - ] - }, - { - "id": 405, - "name": "order", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 59, - "character": 2 - } - ], - "signatures": [ - { - "id": 406, - "name": "order", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Order the query result by `column`.", - "text": "You can call this method multiple times to order by multiple columns.\n\nYou can order foreign tables, but it doesn't affect the ordering of the\ncurrent table.\n" - }, - "typeParameter": [ - { - "id": 407, - "name": "ColumnName", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], "parameters": [ { - "id": 408, - "name": "column", + "id": 110, + "name": "values", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The column to order by" + "shortText": "The values to insert." }, "type": { - "type": "reference", - "id": 315, - "name": "ColumnName" + "type": "union", + "types": [ + { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 86, + "name": "T" + } + ], + "qualifiedName": "Partial", + "package": "typescript", + "name": "Partial" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 86, + "name": "T" + } + ], + "qualifiedName": "Partial", + "package": "typescript", + "name": "Partial" + } + } + ] } }, { - "id": 409, + "id": 111, "name": "options", "kind": 32768, "kindString": "Parameter", "flags": { "isOptional": true }, - "comment": { - "shortText": "Named parameters" - }, "type": { "type": "reflection", "declaration": { - "id": 410, + "id": 112, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 411, - "name": "ascending", + "id": 114, + "name": "count", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "If `true`, the result will be in ascending order" - }, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 61, - "character": 16 + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 78, + "character": 6 } ], "type": { - "type": "intrinsic", - "name": "boolean" + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "literal", + "value": "exact" + }, + { + "type": "literal", + "value": "planned" + }, + { + "type": "literal", + "value": "estimated" + } + ] } }, { - "id": 413, - "name": "foreignTable", + "id": 113, + "name": "returning", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "Set this to order a foreign table by foreign\ncolumns\n" - }, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 61, - "character": 59 + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 77, + "character": 6 } ], "type": { - "type": "intrinsic", - "name": "undefined" - } - }, - { - "id": 412, - "name": "nullsFirst", - "kind": 1024, - "kindString": "Property", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "If `true`, `null`s appear first. If `false`,\n`null`s appear last." - }, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 61, - "character": 37 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" + "type": "union", + "types": [ + { + "type": "literal", + "value": "minimal" + }, + { + "type": "literal", + "value": "representation" + } + ] } } ], @@ -10252,7 +7452,7 @@ { "title": "Properties", "kind": 1024, - "children": [411, 413, 412] + "children": [114, 113] } ] } @@ -10261,42 +7461,75 @@ ], "type": { "type": "reference", - "id": 394, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 397, - "name": "Row" - }, - { - "type": "reference", - "id": 398, - "name": "Result" + "id": 86, + "name": "T" } ], "name": "default" } }, { - "id": 414, - "name": "order", + "id": 115, + "name": "insert", "kind": 4096, "kindString": "Call signature", "flags": {}, + "comment": { + "tags": [ + { + "tag": "deprecated", + "text": "Use `upsert()` instead.\n" + } + ] + }, "parameters": [ { - "id": 415, - "name": "column", + "id": 116, + "name": "values", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "intrinsic", - "name": "string" + "type": "union", + "types": [ + { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 86, + "name": "T" + } + ], + "qualifiedName": "Partial", + "package": "typescript", + "name": "Partial" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 86, + "name": "T" + } + ], + "qualifiedName": "Partial", + "package": "typescript", + "name": "Partial" + } + } + ] } }, { - "id": 416, + "id": 117, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -10306,15 +7539,15 @@ "type": { "type": "reflection", "declaration": { - "id": 417, + "id": 118, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 418, - "name": "ascending", + "id": 122, + "name": "count", "kind": 1024, "kindString": "Property", "flags": { @@ -10322,27 +7555,46 @@ }, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 65, - "character": 16 + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 90, + "character": 6 } ], "type": { - "type": "intrinsic", - "name": "boolean" + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "literal", + "value": "exact" + }, + { + "type": "literal", + "value": "planned" + }, + { + "type": "literal", + "value": "estimated" + } + ] } }, { - "id": 420, - "name": "foreignTable", + "id": 120, + "name": "onConflict", "kind": 1024, "kindString": "Property", - "flags": {}, + "flags": { + "isOptional": true + }, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 65, - "character": 59 + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 88, + "character": 6 } ], "type": { @@ -10351,8 +7603,8 @@ } }, { - "id": 419, - "name": "nullsFirst", + "id": 121, + "name": "returning", "kind": 1024, "kindString": "Property", "flags": { @@ -10360,9 +7612,38 @@ }, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 65, - "character": 37 + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 89, + "character": 6 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "minimal" + }, + { + "type": "literal", + "value": "representation" + } + ] + } + }, + { + "id": 119, + "name": "upsert", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 87, + "character": 6 } ], "type": { @@ -10375,7 +7656,7 @@ { "title": "Properties", "kind": 1024, - "children": [418, 420, 419] + "children": [122, 120, 121, 119] } ] } @@ -10384,17 +7665,12 @@ ], "type": { "type": "reference", - "id": 394, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 397, - "name": "Row" - }, - { - "type": "reference", - "id": 398, - "name": "Result" + "id": 86, + "name": "T" } ], "name": "default" @@ -10403,97 +7679,114 @@ ] }, { - "id": 427, - "name": "range", + "id": 101, + "name": "select", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 110, + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 32, "character": 2 } ], "signatures": [ { - "id": 428, - "name": "range", + "id": 102, + "name": "select", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { - "shortText": "Limit the query result by `from` and `to` inclusively." + "shortText": "Performs vertical filtering with SELECT." }, "parameters": [ { - "id": 429, - "name": "from", + "id": 103, + "name": "columns", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { - "shortText": "The starting index from which to limit the result" + "shortText": "The columns to retrieve, separated by commas." }, "type": { "type": "intrinsic", - "name": "number" - } + "name": "string" + }, + "defaultValue": "'*'" }, { - "id": 430, - "name": "to", + "id": 104, + "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", "flags": {}, - "comment": { - "shortText": "The last index to which to limit the result" - }, - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 431, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "shortText": "Named parameters" - }, - "originalName": "__namedParameters", "type": { "type": "reflection", "declaration": { - "id": 432, + "id": 105, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 433, - "name": "foreignTable", + "id": 107, + "name": "count", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, - "comment": { - "shortText": "Set this to limit rows of foreign tables\ninstead of the current table\n" + "sources": [ + { + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 39, + "character": 6 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "literal", + "value": "exact" + }, + { + "type": "literal", + "value": "planned" + }, + { + "type": "literal", + "value": "estimated" + } + ] + } + }, + { + "id": 106, + "name": "head", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true }, "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 110, - "character": 54 + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 38, + "character": 6 } ], "type": { "type": "intrinsic", - "name": "string" + "name": "boolean" } } ], @@ -10501,7 +7794,7 @@ { "title": "Properties", "kind": 1024, - "children": [433] + "children": [107, 106] } ] } @@ -10511,17 +7804,12 @@ ], "type": { "type": "reference", - "id": 394, + "id": 177, "typeArguments": [ { "type": "reference", - "id": 397, - "name": "Row" - }, - { - "type": "reference", - "id": 398, - "name": "Result" + "id": 86, + "name": "T" } ], "name": "default" @@ -10530,257 +7818,47 @@ ] }, { - "id": 455, - "name": "rollback", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 229, - "character": 2 - } - ], - "signatures": [ - { - "id": 456, - "name": "rollback", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Rollback the query.", - "text": "`data` will still be returned, but the query is not committed.\n" - }, - "type": { - "type": "reference", - "id": 394, - "typeArguments": [ - { - "type": "reference", - "id": 397, - "name": "Row" - }, - { - "type": "reference", - "id": 398, - "name": "Result" - } - ], - "name": "default" - } - } - ] - }, - { - "id": 400, - "name": "select", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 18, - "character": 2 - } - ], - "signatures": [ - { - "id": 401, - "name": "select", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Perform a SELECT on the query result.", - "text": "By default, `.insert()`, `.update()`, `.upsert()`, and `.delete()` do not\nreturn modified rows. By calling this method, modified rows are returned in\n`data`.\n" - }, - "typeParameter": [ - { - "id": 402, - "name": "Query", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - }, - "default": { - "type": "literal", - "value": "*" - } - }, - { - "id": 403, - "name": "NewResult", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "default": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 397, - "name": "Row" - }, - { - "type": "conditional", - "checkType": { - "type": "reference", - "id": 310, - "name": "Query" - }, - "extendsType": { - "type": "literal", - "value": "*" - }, - "trueType": { - "type": "literal", - "value": "*" - }, - "falseType": { - "type": "reference", - "id": 310, - "name": "Query" - } - } - ], - "name": "GetResult" - } - } - ], - "parameters": [ - { - "id": 404, - "name": "columns", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "comment": { - "shortText": "The columns to retrieve, separated by commas\n" - }, - "type": { - "type": "reference", - "id": 310, - "name": "Query" - } - } - ], - "type": { - "type": "reference", - "id": 394, - "typeArguments": [ - { - "type": "reference", - "id": 397, - "name": "Row" - }, - { - "type": "reference", - "id": 311, - "name": "NewResult" - } - ], - "name": "default" - } - } - ] - }, - { - "id": 437, - "name": "single", - "kind": 2048, - "kindString": "Method", - "flags": {}, - "sources": [ - { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 135, - "character": 2 - } - ], - "signatures": [ - { - "id": 438, - "name": "single", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Return `data` as a single object instead of an array of objects.", - "text": "Query result must be one row (e.g. using `.limit(1)`), otherwise this\nreturns an error.\n" - }, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 521, - "typeArguments": [ - { - "type": "reference", - "id": 398, - "name": "Result" - } - ], - "name": "PostgrestSingleResponse" - } - ], - "qualifiedName": "PromiseLike", - "package": "typescript", - "name": "PromiseLike" - } - } - ] - }, - { - "id": 472, + "id": 164, "name": "then", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 48, + "fileName": "src/lib/types.ts", + "line": 91, "character": 2 } ], "signatures": [ { - "id": 473, + "id": 165, "name": "then", "kind": 4096, "kindString": "Call signature", "flags": {}, "typeParameter": [ { - "id": 474, + "id": 166, "name": "TResult1", "kind": 131072, "kindString": "Type parameter", "flags": {}, "default": { "type": "reference", - "id": 519, + "id": 425, "typeArguments": [ { "type": "reference", - "id": 398, - "name": "Result" + "id": 86, + "name": "T" } ], "name": "PostgrestResponse" } }, { - "id": 475, + "id": 167, "name": "TResult2", "kind": 131072, "kindString": "Type parameter", @@ -10793,7 +7871,7 @@ ], "parameters": [ { - "id": 476, + "id": 168, "name": "onfulfilled", "kind": 32768, "kindString": "Parameter", @@ -10810,33 +7888,33 @@ { "type": "reflection", "declaration": { - "id": 477, + "id": 169, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 478, + "id": 170, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 479, + "id": 171, "name": "value", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 519, + "id": 425, "typeArguments": [ { "type": "reference", - "id": 398, - "name": "Result" + "id": 86, + "name": "T" } ], "name": "PostgrestResponse" @@ -10848,7 +7926,7 @@ "types": [ { "type": "reference", - "id": 382, + "id": 72, "name": "TResult1" }, { @@ -10856,7 +7934,7 @@ "typeArguments": [ { "type": "reference", - "id": 382, + "id": 72, "name": "TResult1" } ], @@ -10874,7 +7952,7 @@ } }, { - "id": 480, + "id": 172, "name": "onrejected", "kind": 32768, "kindString": "Parameter", @@ -10891,21 +7969,21 @@ { "type": "reflection", "declaration": { - "id": 481, + "id": 173, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 482, + "id": 174, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 483, + "id": 175, "name": "reason", "kind": 32768, "kindString": "Parameter", @@ -10921,7 +7999,7 @@ "types": [ { "type": "reference", - "id": 383, + "id": 73, "name": "TResult2" }, { @@ -10929,7 +8007,7 @@ "typeArguments": [ { "type": "reference", - "id": 383, + "id": 73, "name": "TResult2" } ], @@ -10955,12 +8033,12 @@ "types": [ { "type": "reference", - "id": 382, + "id": 72, "name": "TResult1" }, { "type": "reference", - "id": 383, + "id": 73, "name": "TResult2" } ] @@ -10972,33 +8050,33 @@ }, "inheritedFrom": { "type": "reference", - "id": 507, - "name": "default.then" + "id": 71, + "name": "PostgrestBuilder.then" } } ], "inheritedFrom": { "type": "reference", - "id": 506, - "name": "default.then" + "id": 70, + "name": "PostgrestBuilder.then" } }, { - "id": 470, + "id": 161, "name": "throwOnError", "kind": 2048, "kindString": "Method", "flags": {}, "sources": [ { - "fileName": "src/PostgrestBuilder.ts", - "line": 43, + "fileName": "src/lib/types.ts", + "line": 83, "character": 2 } ], "signatures": [ { - "id": 471, + "id": 162, "name": "throwOnError", "kind": 4096, "kindString": "Call signature", @@ -11007,88 +8085,448 @@ "shortText": "If there's an error with the query, throwOnError will reject the promise by\nthrowing the error instead of returning it as part of a successful response.", "text": "{@link https://github.com/supabase/supabase-js/issues/92}\n" }, + "parameters": [ + { + "id": 163, + "name": "throwOnError", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], "type": { "type": "reference", - "id": 394, + "id": 83, "typeArguments": [ { "type": "reference", - "id": 397, - "name": "Row" - }, - { - "type": "reference", - "id": 398, - "name": "Result" + "id": 86, + "name": "T" } ], "name": "default" }, "inheritedFrom": { "type": "reference", - "id": 505, - "name": "default.throwOnError" + "id": 68, + "name": "PostgrestBuilder.throwOnError" } } ], "inheritedFrom": { "type": "reference", - "id": 504, - "name": "default.throwOnError" + "id": 67, + "name": "PostgrestBuilder.throwOnError" } + }, + { + "id": 132, + "name": "update", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 183, + "character": 2 + } + ], + "signatures": [ + { + "id": 133, + "name": "update", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Performs an UPDATE on the table." + }, + "parameters": [ + { + "id": 134, + "name": "values", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The values to update." + }, + "type": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 86, + "name": "T" + } + ], + "qualifiedName": "Partial", + "package": "typescript", + "name": "Partial" + } + }, + { + "id": 135, + "name": "__namedParameters", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 136, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 138, + "name": "count", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 190, + "character": 6 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "literal", + "value": "exact" + }, + { + "type": "literal", + "value": "planned" + }, + { + "type": "literal", + "value": "estimated" + } + ] + } + }, + { + "id": 137, + "name": "returning", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 189, + "character": 6 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "minimal" + }, + { + "type": "literal", + "value": "representation" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [138, 137] + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "id": 177, + "typeArguments": [ + { + "type": "reference", + "id": 86, + "name": "T" + } + ], + "name": "default" + } + } + ] + }, + { + "id": 123, + "name": "upsert", + "kind": 2048, + "kindString": "Method", + "flags": {}, + "sources": [ + { + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 142, + "character": 2 + } + ], + "signatures": [ + { + "id": 124, + "name": "upsert", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Performs an UPSERT into the table." + }, + "parameters": [ + { + "id": 125, + "name": "values", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "shortText": "The values to insert." + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 86, + "name": "T" + } + ], + "qualifiedName": "Partial", + "package": "typescript", + "name": "Partial" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "typeArguments": [ + { + "type": "reference", + "id": 86, + "name": "T" + } + ], + "qualifiedName": "Partial", + "package": "typescript", + "name": "Partial" + } + } + ] + } + }, + { + "id": 126, + "name": "__namedParameters", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reflection", + "declaration": { + "id": 127, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 130, + "name": "count", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 152, + "character": 6 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "literal", + "value": "exact" + }, + { + "type": "literal", + "value": "planned" + }, + { + "type": "literal", + "value": "estimated" + } + ] + } + }, + { + "id": 131, + "name": "ignoreDuplicates", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 153, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 128, + "name": "onConflict", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 150, + "character": 6 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 129, + "name": "returning", + "kind": 1024, + "kindString": "Property", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 151, + "character": 6 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "minimal" + }, + { + "type": "literal", + "value": "representation" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [130, 131, 128, 129] + } + ] + } + }, + "defaultValue": "{}" + } + ], + "type": { + "type": "reference", + "id": 177, + "typeArguments": [ + { + "type": "reference", + "id": 86, + "name": "T" + } + ], + "name": "default" + } + } + ] } ], "groups": [ { "title": "Constructors", "kind": 512, - "children": [395] + "children": [84] }, { "title": "Properties", "kind": 1024, - "children": [469, 461, 464, 459, 457, 460, 462, 463, 458] + "children": [160, 152, 155, 147, 145, 151, 153, 154, 146] }, { "title": "Methods", "kind": 2048, - "children": [434, 441, 445, 443, 421, 439, 405, 427, 455, 400, 437, 472, 470] + "children": [139, 108, 101, 164, 161, 132, 123] } ], "sources": [ { - "fileName": "src/PostgrestTransformBuilder.ts", - "line": 5, + "fileName": "src/lib/PostgrestQueryBuilder.ts", + "line": 4, "character": 21 } ], "typeParameter": [ { - "id": 484, - "name": "Row", - "kind": 131072, - "kindString": "Type parameter", - "flags": {}, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "unknown" - } - ], - "qualifiedName": "Record", - "package": "typescript", - "name": "Record" - } - }, - { - "id": 485, - "name": "Result", + "id": 176, + "name": "T", "kind": 131072, "kindString": "Type parameter", "flags": {} @@ -11097,27 +8535,20 @@ "extendedTypes": [ { "type": "reference", - "id": 486, + "id": 46, "typeArguments": [ { "type": "reference", - "id": 398, - "name": "Result" + "id": 86, + "name": "T" } ], - "name": "default" - } - ], - "extendedBy": [ - { - "type": "reference", - "id": 110, - "name": "PostgrestFilterBuilder" + "name": "PostgrestBuilder" } ] }, { - "id": 525, + "id": 431, "name": "PostgrestError", "kind": 4194304, "kindString": "Type alias", @@ -11128,7 +8559,7 @@ }, "sources": [ { - "fileName": "src/types.ts", + "fileName": "src/lib/types.ts", "line": 8, "character": 12 } @@ -11136,21 +8567,21 @@ "type": { "type": "reflection", "declaration": { - "id": 526, + "id": 432, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 530, + "id": 436, "name": "code", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { - "fileName": "src/types.ts", + "fileName": "src/lib/types.ts", "line": 12, "character": 2 } @@ -11161,14 +8592,14 @@ } }, { - "id": 528, + "id": 434, "name": "details", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { - "fileName": "src/types.ts", + "fileName": "src/lib/types.ts", "line": 10, "character": 2 } @@ -11179,14 +8610,14 @@ } }, { - "id": 529, + "id": 435, "name": "hint", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { - "fileName": "src/types.ts", + "fileName": "src/lib/types.ts", "line": 11, "character": 2 } @@ -11197,14 +8628,14 @@ } }, { - "id": 527, + "id": 433, "name": "message", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { - "fileName": "src/types.ts", + "fileName": "src/lib/types.ts", "line": 9, "character": 2 } @@ -11219,12 +8650,12 @@ { "title": "Properties", "kind": 1024, - "children": [530, 528, 529, 527] + "children": [436, 434, 435, 433] } ], "sources": [ { - "fileName": "src/types.ts", + "fileName": "src/lib/types.ts", "line": 8, "character": 29 } @@ -11233,21 +8664,21 @@ } }, { - "id": 523, + "id": 429, "name": "PostgrestMaybeSingleResponse", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { - "fileName": "src/types.ts", - "line": 45, + "fileName": "src/lib/types.ts", + "line": 49, "character": 12 } ], "typeParameter": [ { - "id": 524, + "id": 430, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -11256,19 +8687,19 @@ ], "type": { "type": "reference", - "id": 521, + "id": 427, "typeArguments": [ { "type": "union", "types": [ { "type": "reference", - "id": 524, + "id": 430, "name": "T" }, { - "type": "intrinsic", - "name": "undefined" + "type": "literal", + "value": null } ] } @@ -11277,21 +8708,21 @@ } }, { - "id": 519, + "id": 425, "name": "PostgrestResponse", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { - "fileName": "src/types.ts", - "line": 35, + "fileName": "src/lib/types.ts", + "line": 38, "character": 12 } ], "typeParameter": [ { - "id": 520, + "id": 426, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -11306,7 +8737,7 @@ "typeArguments": [ { "type": "reference", - "id": 520, + "id": 426, "name": "T" } ], @@ -11320,21 +8751,21 @@ } }, { - "id": 521, + "id": 427, "name": "PostgrestSingleResponse", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { - "fileName": "src/types.ts", - "line": 42, + "fileName": "src/lib/types.ts", + "line": 46, "character": 12 } ], "typeParameter": [ { - "id": 522, + "id": 428, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -11349,7 +8780,7 @@ "typeArguments": [ { "type": "reference", - "id": 522, + "id": 428, "name": "T" } ], @@ -11367,12 +8798,12 @@ { "title": "Classes", "kind": 128, - "children": [486, 1, 110, 49, 394] + "children": [46, 1, 177, 83] }, { - "title": "Type Aliases", + "title": "Type aliases", "kind": 4194304, - "children": [525, 523, 519, 521] + "children": [431, 429, 425, 427] } ], "sources": [ diff --git a/spec/enrichments/tsdoc_v1/supabase.json b/spec/enrichments/tsdoc_v1/supabase.json index 633a04f624f..1a32b935e9c 100644 --- a/spec/enrichments/tsdoc_v1/supabase.json +++ b/spec/enrichments/tsdoc_v1/supabase.json @@ -6,22 +6,14 @@ "originalName": "", "children": [ { - "id": 1, + "id": 105, "name": "index", "kind": 2, "kindString": "Module", "flags": {}, "children": [ { - "id": 740, - "name": "Session", - "kind": 16777216, - "kindString": "Reference", - "flags": {}, - "target": 335 - }, - { - "id": 305, + "id": 202, "name": "SupabaseClientOptions", "kind": 16777216, "kindString": "Reference", @@ -33,10 +25,10 @@ "character": 2 } ], - "target": 176 + "target": 79 }, { - "id": 306, + "id": 203, "name": "SupabaseRealtimePayload", "kind": 16777216, "kindString": "Reference", @@ -48,12930 +40,10 @@ "character": 2 } ], - "target": 189 + "target": 92 }, { - "id": 752, - "name": "User", - "kind": 16777216, - "kindString": "Reference", - "flags": {}, - "target": 307 - }, - { - "id": 1014, - "name": "Transformers", - "kind": 4, - "kindString": "Namespace", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 1015, - "name": "PostgresTypes", - "kind": 8, - "kindString": "Enumeration", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Helpers to convert the change Payload into native JS types." - }, - "children": [ - { - "id": 1016, - "name": "abstime", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 5, - "character": 4 - } - ], - "defaultValue": "\"abstime\"" - }, - { - "id": 1017, - "name": "bool", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 6, - "character": 4 - } - ], - "defaultValue": "\"bool\"" - }, - { - "id": 1018, - "name": "date", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 7, - "character": 4 - } - ], - "defaultValue": "\"date\"" - }, - { - "id": 1019, - "name": "daterange", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 8, - "character": 4 - } - ], - "defaultValue": "\"daterange\"" - }, - { - "id": 1020, - "name": "float4", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 9, - "character": 4 - } - ], - "defaultValue": "\"float4\"" - }, - { - "id": 1021, - "name": "float8", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 10, - "character": 4 - } - ], - "defaultValue": "\"float8\"" - }, - { - "id": 1022, - "name": "int2", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 11, - "character": 4 - } - ], - "defaultValue": "\"int2\"" - }, - { - "id": 1023, - "name": "int4", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 12, - "character": 4 - } - ], - "defaultValue": "\"int4\"" - }, - { - "id": 1024, - "name": "int4range", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 13, - "character": 4 - } - ], - "defaultValue": "\"int4range\"" - }, - { - "id": 1025, - "name": "int8", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 14, - "character": 4 - } - ], - "defaultValue": "\"int8\"" - }, - { - "id": 1026, - "name": "int8range", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 15, - "character": 4 - } - ], - "defaultValue": "\"int8range\"" - }, - { - "id": 1027, - "name": "json", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 16, - "character": 4 - } - ], - "defaultValue": "\"json\"" - }, - { - "id": 1028, - "name": "jsonb", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 17, - "character": 4 - } - ], - "defaultValue": "\"jsonb\"" - }, - { - "id": 1029, - "name": "money", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 18, - "character": 4 - } - ], - "defaultValue": "\"money\"" - }, - { - "id": 1030, - "name": "numeric", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 19, - "character": 4 - } - ], - "defaultValue": "\"numeric\"" - }, - { - "id": 1031, - "name": "oid", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 20, - "character": 4 - } - ], - "defaultValue": "\"oid\"" - }, - { - "id": 1032, - "name": "reltime", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 21, - "character": 4 - } - ], - "defaultValue": "\"reltime\"" - }, - { - "id": 1033, - "name": "text", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 22, - "character": 4 - } - ], - "defaultValue": "\"text\"" - }, - { - "id": 1034, - "name": "time", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 23, - "character": 4 - } - ], - "defaultValue": "\"time\"" - }, - { - "id": 1035, - "name": "timestamp", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 24, - "character": 4 - } - ], - "defaultValue": "\"timestamp\"" - }, - { - "id": 1036, - "name": "timestamptz", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 25, - "character": 4 - } - ], - "defaultValue": "\"timestamptz\"" - }, - { - "id": 1037, - "name": "timetz", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 26, - "character": 4 - } - ], - "defaultValue": "\"timetz\"" - }, - { - "id": 1038, - "name": "tsrange", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 27, - "character": 4 - } - ], - "defaultValue": "\"tsrange\"" - }, - { - "id": 1039, - "name": "tstzrange", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 28, - "character": 4 - } - ], - "defaultValue": "\"tstzrange\"" - } - ], - "groups": [ - { - "title": "Enumeration members", - "kind": 16, - "children": [ - 1016, 1017, 1018, 1019, 1020, 1021, 1022, 1023, 1024, 1025, 1026, 1027, 1028, - 1029, 1030, 1031, 1032, 1033, 1034, 1035, 1036, 1037, 1038, 1039 - ] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 4, - "character": 20 - } - ] - }, - { - "id": 1053, - "name": "convertCell", - "kind": 64, - "kindString": "Function", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 84, - "character": 21 - } - ], - "signatures": [ - { - "id": 1054, - "name": "convertCell", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "If the value of the cell is `null`, returns null.\nOtherwise converts the string value to the correct type.", - "tags": [ - { - "tag": "example", - "text": "convertCell('bool', 't')\n//=> true" - }, - { - "tag": "example", - "text": "convertCell('int8', '10')\n//=> 10" - }, - { - "tag": "example", - "text": "convertCell('_int4', '{1,2,3,4}')\n//=> [1,2,3,4]\n" - } - ] - }, - "parameters": [ - { - "id": 1055, - "name": "type", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "A postgres column type" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1056, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "qualifiedName": "RecordValue", - "package": "@supabase/realtime-js", - "name": "RecordValue" - } - } - ], - "type": { - "type": "reference", - "qualifiedName": "RecordValue", - "package": "@supabase/realtime-js", - "name": "RecordValue" - } - } - ] - }, - { - "id": 1040, - "name": "convertChangeData", - "kind": 64, - "kindString": "Function", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 53, - "character": 21 - } - ], - "signatures": [ - { - "id": 1041, - "name": "convertChangeData", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Takes an array of columns and an object of string values then converts each string value\nto its mapped type.", - "tags": [ - { - "tag": "example", - "text": "convertChangeData([{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], {first_name: 'Paul', age:'33'}, {})\n//=>{ first_name: 'Paul', age: 33 }\n" - } - ] - }, - "parameters": [ - { - "id": 1042, - "name": "columns", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "qualifiedName": "Columns", - "package": "@supabase/realtime-js", - "name": "Columns" - } - }, - { - "id": 1043, - "name": "record", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": {}, - "type": { - "type": "reference", - "qualifiedName": "Record", - "package": "@supabase/realtime-js", - "name": "Record" - } - }, - { - "id": 1044, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "The map of various options that can be applied to the mapper" - }, - "type": { - "type": "reflection", - "declaration": { - "id": 1045, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 1046, - "name": "skipTypes", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "The array of types that should not be converted\n" - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 54, - "character": 4 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [1046] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "qualifiedName": "Record", - "package": "@supabase/realtime-js", - "name": "Record" - } - } - ] - }, - { - "id": 1047, - "name": "convertColumn", - "kind": 64, - "kindString": "Function", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 70, - "character": 21 - } - ], - "signatures": [ - { - "id": 1048, - "name": "convertColumn", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Converts the value of an individual column.", - "returns": "Useless information\n", - "tags": [ - { - "tag": "example", - "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], {first_name: 'Paul', age: '33'}, [])\n//=> 33" - }, - { - "tag": "example", - "text": "convertColumn('age', [{name: 'first_name', type: 'text'}, {name: 'age', type: 'int4'}], {first_name: 'Paul', age: '33'}, ['int4'])\n//=> \"33\"\n" - } - ] - }, - "parameters": [ - { - "id": 1049, - "name": "columnName", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The column that you want to convert" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1050, - "name": "columns", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "qualifiedName": "Columns", - "package": "@supabase/realtime-js", - "name": "Columns" - } - }, - { - "id": 1051, - "name": "record", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The map of string values" - }, - "type": { - "type": "reference", - "qualifiedName": "Record", - "package": "@supabase/realtime-js", - "name": "Record" - } - }, - { - "id": 1052, - "name": "skipTypes", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "An array of types that should not be converted" - }, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - } - ], - "type": { - "type": "reference", - "qualifiedName": "RecordValue", - "package": "@supabase/realtime-js", - "name": "RecordValue" - } - } - ] - }, - { - "id": 1066, - "name": "toArray", - "kind": 64, - "kindString": "Function", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 98, - "character": 21 - } - ], - "signatures": [ - { - "id": 1067, - "name": "toArray", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Converts a Postgres Array into a native JS array", - "tags": [ - { - "tag": "example", - "text": "toArray('{}', 'int4')\n//=> []" - }, - { - "tag": "example", - "text": "toArray('{\"[2021-01-01,2021-12-31)\",\"(2021-01-01,2021-12-32]\"}', 'daterange')\n//=> ['[2021-01-01,2021-12-31)', '(2021-01-01,2021-12-32]']" - }, - { - "tag": "example", - "text": "toArray([1,2,3,4], 'int4')\n//=> [1,2,3,4]\n" - } - ] - }, - "parameters": [ - { - "id": 1068, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "qualifiedName": "RecordValue", - "package": "@supabase/realtime-js", - "name": "RecordValue" - } - }, - { - "id": 1069, - "name": "type", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "qualifiedName": "RecordValue", - "package": "@supabase/realtime-js", - "name": "RecordValue" - } - } - ] - }, - { - "id": 1057, - "name": "toBoolean", - "kind": 64, - "kindString": "Function", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 85, - "character": 21 - } - ], - "signatures": [ - { - "id": 1058, - "name": "toBoolean", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 1059, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "qualifiedName": "RecordValue", - "package": "@supabase/realtime-js", - "name": "RecordValue" - } - } - ], - "type": { - "type": "reference", - "qualifiedName": "RecordValue", - "package": "@supabase/realtime-js", - "name": "RecordValue" - } - } - ] - }, - { - "id": 1063, - "name": "toJson", - "kind": 64, - "kindString": "Function", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 87, - "character": 21 - } - ], - "signatures": [ - { - "id": 1064, - "name": "toJson", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 1065, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "qualifiedName": "RecordValue", - "package": "@supabase/realtime-js", - "name": "RecordValue" - } - } - ], - "type": { - "type": "reference", - "qualifiedName": "RecordValue", - "package": "@supabase/realtime-js", - "name": "RecordValue" - } - } - ] - }, - { - "id": 1060, - "name": "toNumber", - "kind": 64, - "kindString": "Function", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 86, - "character": 21 - } - ], - "signatures": [ - { - "id": 1061, - "name": "toNumber", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 1062, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "qualifiedName": "RecordValue", - "package": "@supabase/realtime-js", - "name": "RecordValue" - } - } - ], - "type": { - "type": "reference", - "qualifiedName": "RecordValue", - "package": "@supabase/realtime-js", - "name": "RecordValue" - } - } - ] - }, - { - "id": 1070, - "name": "toTimestampString", - "kind": 64, - "kindString": "Function", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 106, - "character": 21 - } - ], - "signatures": [ - { - "id": 1071, - "name": "toTimestampString", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Fixes timestamp to be ISO-8601. Swaps the space between the date and time for a 'T'\nSee https://github.com/supabase/supabase/issues/18", - "tags": [ - { - "tag": "example", - "text": "toTimestampString('2019-09-10 00:00:00')\n//=> '2019-09-10T00:00:00'\n" - } - ] - }, - "parameters": [ - { - "id": 1072, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "qualifiedName": "RecordValue", - "package": "@supabase/realtime-js", - "name": "RecordValue" - } - } - ], - "type": { - "type": "reference", - "qualifiedName": "RecordValue", - "package": "@supabase/realtime-js", - "name": "RecordValue" - } - } - ] - } - ], - "groups": [ - { - "title": "Enumerations", - "kind": 8, - "children": [1015] - }, - { - "title": "Functions", - "kind": 64, - "children": [1053, 1040, 1047, 1066, 1057, 1063, 1060, 1070] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts", - "line": 4, - "character": 0 - } - ] - }, - { - "id": 343, - "name": "GoTrueApi", - "kind": 128, - "kindString": "Class", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 344, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 11, - "character": 4 - } - ], - "signatures": [ - { - "id": 345, - "name": "new GoTrueApi", - "kind": 16384, - "kindString": "Constructor signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 346, - "name": "__namedParameters", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 347, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 353, - "name": "cookieOptions", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 16, - "character": 8 - } - ], - "type": { - "type": "reference", - "id": 777, - "qualifiedName": "CookieOptions", - "package": "@supabase/gotrue-js", - "name": "CookieOptions" - } - }, - { - "id": 354, - "name": "fetch", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 17, - "character": 8 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 355, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "signatures": [ - { - "id": 356, - "name": "__type", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 357, - "name": "input", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "qualifiedName": "RequestInfo", - "package": "typescript", - "name": "RequestInfo" - } - }, - { - "id": 358, - "name": "init", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reference", - "qualifiedName": "RequestInit", - "package": "typescript", - "name": "RequestInit" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "qualifiedName": "Response", - "package": "typescript", - "name": "Response" - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - } - } - }, - { - "id": 349, - "name": "headers", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 13, - "character": 8 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 350, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "indexSignature": { - "id": 351, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 352, - "name": "key", - "kind": 32768, - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - } - } - }, - { - "id": 348, - "name": "url", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 12, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [353, 354, 349, 348] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "id": 343, - "qualifiedName": "GoTrueApi", - "package": "@supabase/gotrue-js", - "name": "default" - } - } - ] - }, - { - "id": 370, - "name": "_createRequestHeaders", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "comment": { - "shortText": "Create a temporary object with all configured headers and\nadds the Authorization token to be used on request methods", - "tags": [ - { - "tag": "param", - "text": "A valid, logged-in JWT.\n", - "param": "jwt" - } - ] - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 24, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 371, - "name": "cookieName", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 25, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 364, - "name": "cookieOptions", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 9, - "character": 14 - } - ], - "type": { - "type": "reference", - "id": 777, - "qualifiedName": "CookieOptions", - "package": "@supabase/gotrue-js", - "name": "CookieOptions" - } - }, - { - "id": 365, - "name": "fetch", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 10, - "character": 14 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 366, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "signatures": [ - { - "id": 367, - "name": "__type", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 368, - "name": "input", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "qualifiedName": "RequestInfo", - "package": "typescript", - "name": "RequestInfo" - } - }, - { - "id": 369, - "name": "init", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reference", - "qualifiedName": "RequestInit", - "package": "typescript", - "name": "RequestInit" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "qualifiedName": "Response", - "package": "typescript", - "name": "Response" - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - } - } - }, - { - "id": 360, - "name": "headers", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 6, - "character": 14 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 361, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "indexSignature": { - "id": 362, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 363, - "name": "key", - "kind": 32768, - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - } - } - }, - { - "id": 359, - "name": "url", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 5, - "character": 14 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 534, - "name": "createUser", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 251, - "character": 4 - } - ], - "signatures": [ - { - "id": 535, - "name": "createUser", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Creates a new user.", - "text": "This function should only be called on a server. Never expose your `service_role` key in the browser.\n" - }, - "parameters": [ - { - "id": 536, - "name": "attributes", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The data you want to create the user with.\n" - }, - "type": { - "type": "reference", - "id": 759, - "qualifiedName": "AdminUserAttributes", - "package": "@supabase/gotrue-js", - "name": "AdminUserAttributes" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 537, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 539, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 253, - "character": 8 - } - ], - "type": { - "type": "literal", - "value": null - } - }, - { - "id": 540, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 254, - "character": 8 - } - ], - "type": { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - }, - { - "id": 538, - "name": "user", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 252, - "character": 8 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [539, 540, 538] - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 541, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 543, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 257, - "character": 8 - } - ], - "type": { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - }, - { - "id": 544, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 258, - "character": 8 - } - ], - "type": { - "type": "literal", - "value": null - } - }, - { - "id": 542, - "name": "user", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 256, - "character": 8 - } - ], - "type": { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [543, 544, 542] - } - ] - } - } - ] - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 511, - "name": "deleteAuthCookie", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 218, - "character": 4 - } - ], - "signatures": [ - { - "id": 512, - "name": "deleteAuthCookie", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Deletes the Auth Cookies and redirects to the" - }, - "parameters": [ - { - "id": 513, - "name": "req", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The request object." - }, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 514, - "name": "res", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The response object." - }, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 515, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Optionally specify a `redirectTo` URL in the options.\n" - }, - "originalName": "__namedParameters", - "type": { - "type": "reflection", - "declaration": { - "id": 516, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 517, - "name": "redirectTo", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 219, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [517] - } - ] - } - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - ] - }, - { - "id": 579, - "name": "deleteUser", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 315, - "character": 4 - } - ], - "signatures": [ - { - "id": 580, - "name": "deleteUser", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Delete a user. Requires a `service_role` key.", - "text": "This function should only be called on a server. Never expose your `service_role` key in the browser.\n" - }, - "parameters": [ - { - "id": 581, - "name": "uid", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The user uid you want to remove.\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 582, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 584, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 317, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - }, - { - "id": 585, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 318, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - }, - { - "id": 583, - "name": "user", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 316, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [584, 585, 583] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 522, - "name": "generateLink", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 236, - "character": 4 - } - ], - "signatures": [ - { - "id": 523, - "name": "generateLink", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Generates links to be sent via email or other." - }, - "parameters": [ - { - "id": 524, - "name": "type", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The link type (\"signup\" or \"magiclink\" or \"recovery\" or \"invite\")." - }, - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "signup" - }, - { - "type": "literal", - "value": "magiclink" - }, - { - "type": "literal", - "value": "recovery" - }, - { - "type": "literal", - "value": "invite" - } - ] - } - }, - { - "id": 525, - "name": "email", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The user's email." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 526, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 527, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 529, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 238, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } - }, - { - "id": 528, - "name": "password", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 237, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 530, - "name": "redirectTo", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 239, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [529, 528, 530] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 531, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 532, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 241, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 335, - "qualifiedName": "Session", - "package": "@supabase/gotrue-js", - "name": "Session" - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - }, - { - "id": 533, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 242, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [532, 533] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 518, - "name": "getAuthCookieString", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 227, - "character": 4 - } - ], - "signatures": [ - { - "id": 519, - "name": "getAuthCookieString", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Helper method to generate the Auth Cookie string for you in case you can't use `setAuthCookie`.", - "returns": "The Cookie string that needs to be set as the value for the `Set-Cookie` header.\n" - }, - "parameters": [ - { - "id": 520, - "name": "req", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The request object." - }, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 521, - "name": "res", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The response object." - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - } - ] - }, - { - "id": 372, - "name": "getUrlForProvider", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 32, - "character": 4 - } - ], - "signatures": [ - { - "id": 373, - "name": "getUrlForProvider", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Generates the relevant login URL for a third-party provider." - }, - "parameters": [ - { - "id": 374, - "name": "provider", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "One of the providers supported by GoTrue." - }, - "type": { - "type": "reference", - "id": 735, - "qualifiedName": "Provider", - "package": "@supabase/gotrue-js", - "name": "Provider" - } - }, - { - "id": 375, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 376, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 379, - "name": "queryParams", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 35, - "character": 8 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 380, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "indexSignature": { - "id": 381, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 382, - "name": "key", - "kind": 32768, - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - } - } - }, - { - "id": 377, - "name": "redirectTo", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 33, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 378, - "name": "scopes", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 34, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [379, 377, 378] - } - ] - } - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ] - }, - { - "id": 586, - "name": "getUser", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 329, - "character": 4 - } - ], - "signatures": [ - { - "id": 587, - "name": "getUser", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Gets the current user details.", - "text": "This method is called by the GoTrueClient `update` where\nthe jwt is set to this.currentSession.access_token\nand therefore, acts like getting the currently authenticated user\n" - }, - "parameters": [ - { - "id": 588, - "name": "jwt", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "A valid, logged-in JWT. Typically, the access_token for the currentSession\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 589, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 591, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 331, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - }, - { - "id": 592, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 332, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - }, - { - "id": 590, - "name": "user", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 330, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [591, 592, 590] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 562, - "name": "getUserByCookie", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 290, - "character": 4 - } - ], - "signatures": [ - { - "id": 563, - "name": "getUserByCookie", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Get user by reading the cookie from the request.\nWorks for Next.js & Express (requires cookie-parser middleware)." - }, - "parameters": [ - { - "id": 564, - "name": "req", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 565, - "name": "res", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 566, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 569, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 293, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - }, - { - "id": 570, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 294, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - }, - { - "id": 567, - "name": "token", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 291, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 568, - "name": "user", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 292, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [569, 570, 567, 568] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 553, - "name": "getUserById", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 279, - "character": 4 - } - ], - "signatures": [ - { - "id": 554, - "name": "getUserById", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Get user by id." - }, - "parameters": [ - { - "id": 555, - "name": "uid", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The user's unique identifier\n\nThis function should only be called on a server. Never expose your `service_role` key in the browser.\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 556, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 557, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 280, - "character": 8 - } - ], - "type": { - "type": "literal", - "value": null - } - }, - { - "id": 558, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 281, - "character": 8 - } - ], - "type": { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [557, 558] - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 559, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 560, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 283, - "character": 8 - } - ], - "type": { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - }, - { - "id": 561, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 284, - "character": 8 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [560, 561] - } - ] - } - } - ] - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 480, - "name": "inviteUserByEmail", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 177, - "character": 4 - } - ], - "signatures": [ - { - "id": 481, - "name": "inviteUserByEmail", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Sends an invite link to an email address." - }, - "parameters": [ - { - "id": 482, - "name": "email", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The email address of the user." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 483, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 484, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 486, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 179, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } - }, - { - "id": 485, - "name": "redirectTo", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 178, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [486, 485] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 487, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 488, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 181, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - }, - { - "id": 489, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 182, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [488, 489] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 545, - "name": "listUsers", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 265, - "character": 4 - } - ], - "signatures": [ - { - "id": 546, - "name": "listUsers", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Get a list of users.", - "text": "This function should only be called on a server. Never expose your `service_role` key in the browser.\n" - }, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 547, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 548, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 266, - "character": 8 - } - ], - "type": { - "type": "literal", - "value": null - } - }, - { - "id": 549, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 267, - "character": 8 - } - ], - "type": { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [548, 549] - } - ] - } - }, - { - "type": "reflection", - "declaration": { - "id": 550, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 551, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 269, - "character": 8 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - } - }, - { - "id": 552, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 270, - "character": 8 - } - ], - "type": { - "type": "literal", - "value": null - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [551, 552] - } - ] - } - } - ] - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 501, - "name": "refreshAccessToken", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 201, - "character": 4 - } - ], - "signatures": [ - { - "id": 502, - "name": "refreshAccessToken", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Generates a new JWT." - }, - "parameters": [ - { - "id": 503, - "name": "refreshToken", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "A valid refresh token that was returned on login.\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 504, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 505, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 202, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 335, - "qualifiedName": "Session", - "package": "@supabase/gotrue-js", - "name": "Session" - } - ] - } - }, - { - "id": 506, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 203, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [505, 506] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 490, - "name": "resetPasswordForEmail", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 190, - "character": 4 - } - ], - "signatures": [ - { - "id": 491, - "name": "resetPasswordForEmail", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Sends a reset request to an email address." - }, - "parameters": [ - { - "id": 492, - "name": "email", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The email address of the user." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 493, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 494, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 496, - "name": "captchaToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 192, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 495, - "name": "redirectTo", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 191, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [496, 495] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 497, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 498, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 194, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reflection", - "declaration": { - "id": 499, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - } - } - } - ] - } - }, - { - "id": 500, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 195, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [498, 500] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 433, - "name": "sendMagicLinkEmail", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 117, - "character": 4 - } - ], - "signatures": [ - { - "id": 434, - "name": "sendMagicLinkEmail", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Sends a magic login link to an email address." - }, - "parameters": [ - { - "id": 435, - "name": "email", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The email address of the user." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 436, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 437, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 440, - "name": "captchaToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 120, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 439, - "name": "redirectTo", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 119, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 438, - "name": "shouldCreateUser", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 118, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [440, 439, 438] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 441, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 442, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 122, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reflection", - "declaration": { - "id": 443, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - } - } - } - ] - } - }, - { - "id": 444, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 123, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [442, 444] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 445, - "name": "sendMobileOTP", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 131, - "character": 4 - } - ], - "signatures": [ - { - "id": 446, - "name": "sendMobileOTP", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Sends a mobile OTP via SMS. Will register the account if it doesn't already exist" - }, - "parameters": [ - { - "id": 447, - "name": "phone", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The user's phone number WITH international prefix" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 448, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 449, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 451, - "name": "captchaToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 133, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 450, - "name": "shouldCreateUser", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 132, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [451, 450] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 452, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 453, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 135, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reflection", - "declaration": { - "id": 454, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - } - } - } - ] - } - }, - { - "id": 455, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 136, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [453, 455] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 507, - "name": "setAuthCookie", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 211, - "character": 4 - } - ], - "signatures": [ - { - "id": 508, - "name": "setAuthCookie", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Set/delete the auth cookie based on the AuthChangeEvent.\nWorks for Next.js & Express (requires cookie-parser middleware)." - }, - "parameters": [ - { - "id": 509, - "name": "req", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The request object." - }, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 510, - "name": "res", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The response object.\n" - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 395, - "name": "signInWithEmail", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 65, - "character": 4 - } - ], - "signatures": [ - { - "id": 396, - "name": "signInWithEmail", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Logs in an existing user using their email address." - }, - "parameters": [ - { - "id": 397, - "name": "email", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The email address of the user." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 398, - "name": "password", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The password of the user." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 399, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 400, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 402, - "name": "captchaToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 67, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 401, - "name": "redirectTo", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 66, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [402, 401] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 403, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 404, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 69, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 335, - "qualifiedName": "Session", - "package": "@supabase/gotrue-js", - "name": "Session" - } - ] - } - }, - { - "id": 405, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 70, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [404, 405] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 427, - "name": "signInWithOpenIDConnect", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 106, - "character": 4 - } - ], - "signatures": [ - { - "id": 428, - "name": "signInWithOpenIDConnect", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Logs in an OpenID Connect user using their id_token." - }, - "parameters": [ - { - "id": 429, - "name": "__namedParameters", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "id": 803, - "qualifiedName": "OpenIDConnectCredentials", - "package": "@supabase/gotrue-js", - "name": "OpenIDConnectCredentials" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 430, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 431, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 107, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 335, - "qualifiedName": "Session", - "package": "@supabase/gotrue-js", - "name": "Session" - } - ] - } - }, - { - "id": 432, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 108, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [431, 432] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 417, - "name": "signInWithPhone", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 92, - "character": 4 - } - ], - "signatures": [ - { - "id": 418, - "name": "signInWithPhone", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Logs in an existing user using their phone number and password." - }, - "parameters": [ - { - "id": 419, - "name": "phone", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The phone number of the user." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 420, - "name": "password", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The password of the user." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 421, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 422, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 423, - "name": "captchaToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 93, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [423] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 424, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 425, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 95, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 335, - "qualifiedName": "Session", - "package": "@supabase/gotrue-js", - "name": "Session" - } - ] - } - }, - { - "id": 426, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 96, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [425, 426] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 456, - "name": "signOut", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 142, - "character": 4 - } - ], - "signatures": [ - { - "id": 457, - "name": "signOut", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Removes a logged-in session." - }, - "parameters": [ - { - "id": 458, - "name": "jwt", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "A valid, logged-in JWT.\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 459, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 460, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 143, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [460] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 383, - "name": "signUpWithEmail", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 50, - "character": 4 - } - ], - "signatures": [ - { - "id": 384, - "name": "signUpWithEmail", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Creates a new user using their email address.", - "returns": "A logged-in session if the server has \"autoconfirm\" ON" - }, - "parameters": [ - { - "id": 385, - "name": "email", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The email address of the user." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 386, - "name": "password", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The password of the user." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 387, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 388, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 391, - "name": "captchaToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 53, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 390, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 52, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } - }, - { - "id": 389, - "name": "redirectTo", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 51, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [391, 390, 389] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 392, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 393, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 55, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 335, - "qualifiedName": "Session", - "package": "@supabase/gotrue-js", - "name": "Session" - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - }, - { - "id": 394, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 56, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [393, 394] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 406, - "name": "signUpWithPhone", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 79, - "character": 4 - } - ], - "signatures": [ - { - "id": 407, - "name": "signUpWithPhone", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Signs up a new user using their phone number and a password." - }, - "parameters": [ - { - "id": 408, - "name": "phone", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The phone number of the user." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 409, - "name": "password", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The password of the user." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 410, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 411, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 413, - "name": "captchaToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 81, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 412, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 80, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [413, 412] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 414, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 415, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 83, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 335, - "qualifiedName": "Session", - "package": "@supabase/gotrue-js", - "name": "Session" - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - }, - { - "id": 416, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 84, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [415, 416] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 593, - "name": "updateUser", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 339, - "character": 4 - } - ], - "signatures": [ - { - "id": 594, - "name": "updateUser", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Updates the user data." - }, - "parameters": [ - { - "id": 595, - "name": "jwt", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "A valid, logged-in JWT." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 596, - "name": "attributes", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The data you want to update.\n" - }, - "type": { - "type": "reference", - "id": 753, - "qualifiedName": "UserAttributes", - "package": "@supabase/gotrue-js", - "name": "UserAttributes" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 597, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 599, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 341, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - }, - { - "id": 600, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 342, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - }, - { - "id": 598, - "name": "user", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 340, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [599, 600, 598] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 571, - "name": "updateUserById", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 303, - "character": 4 - } - ], - "signatures": [ - { - "id": 572, - "name": "updateUserById", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Updates the user data." - }, - "parameters": [ - { - "id": 573, - "name": "uid", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 574, - "name": "attributes", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The data you want to update.\n\nThis function should only be called on a server. Never expose your `service_role` key in the browser.\n" - }, - "type": { - "type": "reference", - "id": 759, - "qualifiedName": "AdminUserAttributes", - "package": "@supabase/gotrue-js", - "name": "AdminUserAttributes" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 575, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 577, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 305, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - }, - { - "id": 578, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 306, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - }, - { - "id": 576, - "name": "user", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 304, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [577, 578, 576] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 461, - "name": "verifyMobileOTP", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 151, - "character": 4 - } - ], - "signatures": [ - { - "id": 462, - "name": "verifyMobileOTP", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "tags": [ - { - "tag": "deprecated", - "text": "Use `verifyOTP` instead!" - } - ] - }, - "parameters": [ - { - "id": 463, - "name": "phone", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The user's phone number WITH international prefix" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 464, - "name": "token", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "token that user was sent to their mobile phone" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 465, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 466, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 467, - "name": "redirectTo", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 152, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [467] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 468, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 469, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 154, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 335, - "qualifiedName": "Session", - "package": "@supabase/gotrue-js", - "name": "Session" - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - }, - { - "id": 470, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 155, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [469, 470] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 471, - "name": "verifyOTP", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 165, - "character": 4 - } - ], - "signatures": [ - { - "id": 472, - "name": "verifyOTP", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Send User supplied Email / Mobile OTP to be verified" - }, - "parameters": [ - { - "id": 473, - "name": "__namedParameters", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "id": 790, - "qualifiedName": "VerifyOTPParams", - "package": "@supabase/gotrue-js", - "name": "VerifyOTPParams" - } - }, - { - "id": 474, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 475, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 476, - "name": "redirectTo", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 166, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [476] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 477, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 478, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 168, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 335, - "qualifiedName": "Session", - "package": "@supabase/gotrue-js", - "name": "Session" - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - }, - { - "id": 479, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 169, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [478, 479] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [344] - }, - { - "title": "Properties", - "kind": 1024, - "children": [370, 371, 364, 365, 360, 359] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 534, 511, 579, 522, 518, 372, 586, 562, 553, 480, 545, 501, 490, 433, 445, 507, 395, - 427, 417, 456, 383, 406, 593, 571, 461, 471 - ] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueApi.d.ts", - "line": 4, - "character": 21 - } - ] - }, - { - "id": 601, - "name": "GoTrueClient", - "kind": 128, - "kindString": "Class", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 602, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 37, - "character": 4 - } - ], - "signatures": [ - { - "id": 603, - "name": "new GoTrueClient", - "kind": 16384, - "kindString": "Constructor signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Create a new client for use in the browser." - }, - "parameters": [ - { - "id": 604, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 605, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 612, - "name": "autoRefreshToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "Set to \"true\" if you want to automatically refresh the token before expiring." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 43, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 616, - "name": "cookieOptions", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": {}, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 47, - "character": 8 - } - ], - "type": { - "type": "reference", - "id": 777, - "qualifiedName": "CookieOptions", - "package": "@supabase/gotrue-js", - "name": "CookieOptions" - } - }, - { - "id": 611, - "name": "detectSessionInUrl", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "Set to \"true\" if you want to automatically detects OAuth grants in the URL and signs in the user." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 42, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 617, - "name": "fetch", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 48, - "character": 8 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 618, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "signatures": [ - { - "id": 619, - "name": "__type", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "A custom fetch implementation.\n" - }, - "parameters": [ - { - "id": 620, - "name": "input", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "qualifiedName": "RequestInfo", - "package": "typescript", - "name": "RequestInfo" - } - }, - { - "id": 621, - "name": "init", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reference", - "qualifiedName": "RequestInit", - "package": "typescript", - "name": "RequestInit" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "qualifiedName": "Response", - "package": "typescript", - "name": "Response" - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - } - } - }, - { - "id": 607, - "name": "headers", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "Any additional headers to send to the GoTrue server." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 39, - "character": 8 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 608, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "indexSignature": { - "id": 609, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 610, - "name": "key", - "kind": 32768, - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - } - } - }, - { - "id": 614, - "name": "localStorage", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "Provide your own local storage implementation to use instead of the browser's local storage." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 45, - "character": 8 - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "qualifiedName": "Storage", - "package": "typescript", - "name": "Storage" - }, - { - "type": "union", - "types": [ - { - "type": "literal", - "value": "getItem" - }, - { - "type": "literal", - "value": "setItem" - }, - { - "type": "literal", - "value": "removeItem" - } - ] - } - ], - "qualifiedName": "Pick", - "package": "typescript", - "name": "Pick" - } - ], - "qualifiedName": "PromisifyMethods", - "package": "@supabase/gotrue-js", - "name": "PromisifyMethods" - } - }, - { - "id": 615, - "name": "multiTab", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "Set to \"false\" if you want to disable multi-tab/window events." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 46, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 613, - "name": "persistSession", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "Set to \"true\" if you want to automatically save the user session into local storage." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 44, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 606, - "name": "url", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "The URL of the GoTrue server." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 38, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [612, 616, 611, 617, 607, 614, 615, 613, 606] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "id": 601, - "qualifiedName": "GoTrueClient", - "package": "@supabase/gotrue-js", - "name": "default" - } - } - ] - }, - { - "id": 727, - "name": "_callRefreshToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 190, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 721, - "name": "_handleEmailSignIn", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 176, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 724, - "name": "_handleOpenIDConnectSignIn", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 179, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 722, - "name": "_handlePhoneSignIn", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 177, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 723, - "name": "_handleProviderSignIn", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 178, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 734, - "name": "_handleVisibilityChange", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 208, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 733, - "name": "_listenForMultiTabEvents", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "comment": { - "shortText": "Listens for changes to LocalStorage and updates the current session." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 207, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 728, - "name": "_notifyAllSubscribers", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 191, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 730, - "name": "_persistSession", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 197, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 726, - "name": "_recoverAndRefresh", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "comment": { - "shortText": "Recovers the session from LocalStorage and refreshes\nNote: this method is async to accommodate for AsyncStorage e.g. in React native." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 189, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 725, - "name": "_recoverSession", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "comment": { - "shortText": "Attempts to get the session from LocalStorage\nNote: this should never be async (even for React Native), as we need it to return immediately in the constructor." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 184, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 731, - "name": "_removeSession", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 198, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 729, - "name": "_saveSession", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "comment": { - "shortText": "set currentSession and currentUser\nprocess to _startAutoRefreshToken if possible" - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 196, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 732, - "name": "_startAutoRefreshToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "comment": { - "shortText": "Clear and re-create refresh token timer", - "tags": [ - { - "tag": "param", - "text": "time intervals in milliseconds\n", - "param": "value" - } - ] - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 203, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 622, - "name": "api", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Namespace for the GoTrue API methods.\nThese can be used for example to get a user from a JWT in a server environment or reset a user's password." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 9, - "character": 4 - } - ], - "type": { - "type": "reference", - "id": 343, - "qualifiedName": "GoTrueApi", - "package": "@supabase/gotrue-js", - "name": "default" - } - }, - { - "id": 625, - "name": "autoRefreshToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 18, - "character": 14 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 624, - "name": "currentSession", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true - }, - "comment": { - "shortText": "The session object for the currently logged in user or null." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 17, - "character": 14 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 335, - "qualifiedName": "Session", - "package": "@supabase/gotrue-js", - "name": "Session" - } - ] - } - }, - { - "id": 623, - "name": "currentUser", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true - }, - "comment": { - "shortText": "The currently logged in user or null." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 13, - "character": 14 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - }, - { - "id": 627, - "name": "localStorage", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 20, - "character": 14 - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "qualifiedName": "Storage", - "package": "typescript", - "name": "Storage" - }, - { - "type": "union", - "types": [ - { - "type": "literal", - "value": "getItem" - }, - { - "type": "literal", - "value": "setItem" - }, - { - "type": "literal", - "value": "removeItem" - } - ] - } - ], - "qualifiedName": "Pick", - "package": "typescript", - "name": "Pick" - } - ], - "qualifiedName": "PromisifyMethods", - "package": "@supabase/gotrue-js", - "name": "PromisifyMethods" - } - }, - { - "id": 628, - "name": "multiTab", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 21, - "character": 14 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 631, - "name": "networkRetries", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 24, - "character": 14 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 626, - "name": "persistSession", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 19, - "character": 14 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 630, - "name": "refreshTokenTimer", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 23, - "character": 14 - } - ], - "type": { - "type": "reference", - "qualifiedName": "global.NodeJS.Timeout", - "package": "@types/node", - "name": "Timeout" - } - }, - { - "id": 629, - "name": "stateChangeEmitters", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 22, - "character": 14 - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "reference", - "id": 769, - "qualifiedName": "Subscription", - "package": "@supabase/gotrue-js", - "name": "Subscription" - } - ], - "qualifiedName": "Map", - "package": "typescript", - "name": "Map" - } - }, - { - "id": 699, - "name": "getSessionFromUrl", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 153, - "character": 4 - } - ], - "signatures": [ - { - "id": 700, - "name": "getSessionFromUrl", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Gets the session data from a URL string" - }, - "parameters": [ - { - "id": 701, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 702, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 703, - "name": "storeSession", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "Optionally store the session in the browser\n" - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 154, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [703] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 704, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 705, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 156, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 335, - "qualifiedName": "Session", - "package": "@supabase/gotrue-js", - "name": "Session" - } - ] - } - }, - { - "id": 706, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 157, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [705, 706] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 711, - "name": "onAuthStateChange", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 172, - "character": 4 - } - ], - "signatures": [ - { - "id": 712, - "name": "onAuthStateChange", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Receive a notification every time an auth event happens.", - "returns": "A subscription object which can be used to unsubscribe itself.\n" - }, - "parameters": [ - { - "id": 713, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 714, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "signatures": [ - { - "id": 715, - "name": "__type", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 716, - "name": "event", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "id": 736, - "qualifiedName": "AuthChangeEvent", - "package": "@supabase/gotrue-js", - "name": "AuthChangeEvent" - } - }, - { - "id": 717, - "name": "session", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 335, - "qualifiedName": "Session", - "package": "@supabase/gotrue-js", - "name": "Session" - } - ] - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 718, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 719, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 173, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 769, - "qualifiedName": "Subscription", - "package": "@supabase/gotrue-js", - "name": "Subscription" - } - ] - } - }, - { - "id": 720, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 174, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [719, 720] - } - ] - } - } - } - ] - }, - { - "id": 677, - "name": "refreshSession", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 123, - "character": 4 - } - ], - "signatures": [ - { - "id": 678, - "name": "refreshSession", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Force refreshes the session including the user data in case it was updated in a different session." - }, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 679, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 680, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 124, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 335, - "qualifiedName": "Session", - "package": "@supabase/gotrue-js", - "name": "Session" - } - ] - } - }, - { - "id": 682, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 126, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - }, - { - "id": 681, - "name": "user", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 125, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [680, 682, 681] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 675, - "name": "session", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 119, - "character": 4 - } - ], - "signatures": [ - { - "id": 676, - "name": "session", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Returns the session data, if there is an active session." - }, - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 335, - "qualifiedName": "Session", - "package": "@supabase/gotrue-js", - "name": "Session" - } - ] - } - } - ] - }, - { - "id": 696, - "name": "setAuth", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 148, - "character": 4 - } - ], - "signatures": [ - { - "id": 697, - "name": "setAuth", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Overrides the JWT on the current client. The JWT will then be sent in all subsequent network requests." - }, - "parameters": [ - { - "id": 698, - "name": "access_token", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "a jwt access token\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "id": 335, - "qualifiedName": "Session", - "package": "@supabase/gotrue-js", - "name": "Session" - } - } - ] - }, - { - "id": 690, - "name": "setSession", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 140, - "character": 4 - } - ], - "signatures": [ - { - "id": 691, - "name": "setSession", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Sets the session data from refresh_token and returns current Session and Error" - }, - "parameters": [ - { - "id": 692, - "name": "refresh_token", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "a JWT token\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 693, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 695, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 142, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - }, - { - "id": 694, - "name": "session", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 141, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 335, - "qualifiedName": "Session", - "package": "@supabase/gotrue-js", - "name": "Session" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [695, 694] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 644, - "name": "signIn", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 80, - "character": 4 - } - ], - "signatures": [ - { - "id": 645, - "name": "signIn", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Log in an existing user, or login via a third-party provider." - }, - "parameters": [ - { - "id": 646, - "name": "__namedParameters", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "id": 783, - "qualifiedName": "UserCredentials", - "package": "@supabase/gotrue-js", - "name": "UserCredentials" - } - }, - { - "id": 647, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 648, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 652, - "name": "captchaToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 84, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 653, - "name": "queryParams", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 85, - "character": 8 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 654, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "indexSignature": { - "id": 655, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 656, - "name": "key", - "kind": 32768, - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - } - } - }, - { - "id": 649, - "name": "redirectTo", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 81, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 651, - "name": "scopes", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 83, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 650, - "name": "shouldCreateUser", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 82, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [652, 653, 649, 651, 650] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 657, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 662, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 93, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - }, - { - "id": 660, - "name": "provider", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 91, - "character": 8 - } - ], - "type": { - "type": "reference", - "id": 735, - "qualifiedName": "Provider", - "package": "@supabase/gotrue-js", - "name": "Provider" - } - }, - { - "id": 658, - "name": "session", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 89, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 335, - "qualifiedName": "Session", - "package": "@supabase/gotrue-js", - "name": "Session" - } - ] - } - }, - { - "id": 661, - "name": "url", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 92, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 659, - "name": "user", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 90, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [662, 660, 658, 661, 659] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 707, - "name": "signOut", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 165, - "character": 4 - } - ], - "signatures": [ - { - "id": 708, - "name": "signOut", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Inside a browser context, `signOut()` will remove the logged in user from the browser session\nand log them out - removing all items from localstorage and then trigger a \"SIGNED_OUT\" event.", - "text": "For server-side management, you can revoke all refresh tokens for a user by passing a user's JWT through to `auth.api.signOut(JWT: string)`. There is no way to revoke a user's session JWT before it automatically expires\n" - }, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 709, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 710, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 166, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [710] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 632, - "name": "signUp", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 59, - "character": 4 - } - ], - "signatures": [ - { - "id": 633, - "name": "signUp", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Creates a new user." - }, - "parameters": [ - { - "id": 634, - "name": "__namedParameters", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "id": 783, - "qualifiedName": "UserCredentials", - "package": "@supabase/gotrue-js", - "name": "UserCredentials" - } - }, - { - "id": 635, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 636, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 639, - "name": "captchaToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 62, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 638, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 61, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } - }, - { - "id": 637, - "name": "redirectTo", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 60, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [639, 638, 637] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 640, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 643, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 66, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - }, - { - "id": 642, - "name": "session", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 65, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 335, - "qualifiedName": "Session", - "package": "@supabase/gotrue-js", - "name": "Session" - } - ] - } - }, - { - "id": 641, - "name": "user", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 64, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [643, 642, 641] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 683, - "name": "update", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 131, - "character": 4 - } - ], - "signatures": [ - { - "id": 684, - "name": "update", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Updates user data, if there is a logged in user." - }, - "parameters": [ - { - "id": 685, - "name": "attributes", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "id": 753, - "qualifiedName": "UserAttributes", - "package": "@supabase/gotrue-js", - "name": "UserAttributes" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 686, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 687, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 132, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - }, - { - "id": 689, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 134, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - }, - { - "id": 688, - "name": "user", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 133, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [687, 689, 688] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 673, - "name": "user", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 115, - "character": 4 - } - ], - "signatures": [ - { - "id": 674, - "name": "user", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Inside a browser context, `user()` will return the user data, if there is a logged in user.", - "text": "For server-side management, you can get a user through `auth.api.getUserByCookie()`\n" - }, - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - } - ] - }, - { - "id": 663, - "name": "verifyOTP", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 103, - "character": 4 - } - ], - "signatures": [ - { - "id": 664, - "name": "verifyOTP", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Log in a user given a User supplied OTP received via mobile." - }, - "parameters": [ - { - "id": 665, - "name": "params", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "id": 790, - "qualifiedName": "VerifyOTPParams", - "package": "@supabase/gotrue-js", - "name": "VerifyOTPParams" - } - }, - { - "id": 666, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 667, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 668, - "name": "redirectTo", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 104, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [668] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 669, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 672, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 108, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 737, - "qualifiedName": "ApiError", - "package": "@supabase/gotrue-js", - "name": "ApiError" - } - ] - } - }, - { - "id": 671, - "name": "session", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 107, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 335, - "qualifiedName": "Session", - "package": "@supabase/gotrue-js", - "name": "Session" - } - ] - } - }, - { - "id": 670, - "name": "user", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 106, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [672, 671, 670] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [602] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 727, 721, 724, 722, 723, 734, 733, 728, 730, 726, 725, 731, 729, 732, 622, 625, 624, - 623, 627, 628, 631, 626, 630, 629 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [699, 711, 677, 675, 696, 690, 644, 707, 632, 683, 673, 663] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 4, - "character": 21 - } - ] - }, - { - "id": 810, - "name": "RealtimeClient", - "kind": 128, - "kindString": "Class", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 811, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 77, - "character": 4 - } - ], - "signatures": [ - { - "id": 812, - "name": "new RealtimeClient", - "kind": 16384, - "kindString": "Constructor signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Initializes the Socket." - }, - "parameters": [ - { - "id": 813, - "name": "endPoint", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The string WebSocket endpoint, ie, \"ws://example.com/socket\", \"wss://example.com\", \"/socket\" (inherited host & protocol)" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 814, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reference", - "id": 909, - "qualifiedName": "Options", - "package": "@supabase/realtime-js", - "name": "Options" - } - } - ], - "type": { - "type": "reference", - "id": 810, - "qualifiedName": "RealtimeClient", - "package": "@supabase/realtime-js", - "name": "default" - } - } - ] - }, - { - "id": 906, - "name": "_appendParams", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 180, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 907, - "name": "_flushSendBuffer", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 181, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 903, - "name": "_onConnClose", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 177, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 904, - "name": "_onConnError", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 178, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 902, - "name": "_onConnOpen", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 176, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 908, - "name": "_sendHeartbeat", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 182, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 905, - "name": "_triggerChanError", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 179, - "character": 12 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 815, - "name": "accessToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 32, - "character": 4 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 816, - "name": "channels", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 33, - "character": 4 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "id": 927, - "qualifiedName": "RealtimeSubscription", - "package": "@supabase/realtime-js", - "name": "default" - } - } - }, - { - "id": 838, - "name": "conn", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 53, - "character": 4 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "qualifiedName": "WebSocket", - "package": "typescript", - "name": "WebSocket" - } - ] - } - }, - { - "id": 836, - "name": "decode", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 51, - "character": 4 - } - ], - "type": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - }, - { - "id": 835, - "name": "encode", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 50, - "character": 4 - } - ], - "type": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - }, - { - "id": 817, - "name": "endPoint", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 34, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 818, - "name": "headers", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 35, - "character": 4 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 819, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "indexSignature": { - "id": 820, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 821, - "name": "key", - "kind": 32768, - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - } - } - }, - { - "id": 828, - "name": "heartbeatIntervalMs", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 43, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 830, - "name": "heartbeatTimer", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 45, - "character": 4 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "reference", - "qualifiedName": "global.NodeJS.Timer", - "package": "@types/node", - "name": "Timer" - } - ] - } - }, - { - "id": 834, - "name": "logger", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 49, - "character": 4 - } - ], - "type": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - }, - { - "id": 829, - "name": "longpollerTimeout", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 44, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 822, - "name": "params", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 38, - "character": 4 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 823, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "indexSignature": { - "id": 824, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 825, - "name": "key", - "kind": 32768, - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - } - } - }, - { - "id": 831, - "name": "pendingHeartbeatRef", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 46, - "character": 4 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 837, - "name": "reconnectAfterMs", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 52, - "character": 4 - } - ], - "type": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - }, - { - "id": 833, - "name": "reconnectTimer", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 48, - "character": 4 - } - ], - "type": { - "type": "reference", - "qualifiedName": "Timer", - "package": "@supabase/realtime-js", - "name": "default" - } - }, - { - "id": 832, - "name": "ref", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 47, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 839, - "name": "sendBuffer", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 54, - "character": 4 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - } - }, - { - "id": 840, - "name": "serializer", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 55, - "character": 4 - } - ], - "type": { - "type": "reference", - "qualifiedName": "Serializer", - "package": "@supabase/realtime-js", - "name": "default" - } - }, - { - "id": 841, - "name": "stateChangeCallbacks", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 56, - "character": 4 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 842, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 844, - "name": "close", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 58, - "character": 8 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - } - }, - { - "id": 845, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 59, - "character": 8 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - } - }, - { - "id": 846, - "name": "message", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 60, - "character": 8 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - } - }, - { - "id": 843, - "name": "open", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 57, - "character": 8 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [844, 845, 846, 843] - } - ] - } - } - }, - { - "id": 826, - "name": "timeout", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 41, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 827, - "name": "transport", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 42, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 880, - "name": "channel", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 148, - "character": 4 - } - ], - "signatures": [ - { - "id": 881, - "name": "channel", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 882, - "name": "topic", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 883, - "name": "chanParams", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reference", - "qualifiedName": "ChannelParams", - "package": "@supabase/realtime-js", - "name": "ChannelParams" - } - } - ], - "type": { - "type": "reference", - "id": 927, - "qualifiedName": "RealtimeSubscription", - "package": "@supabase/realtime-js", - "name": "default" - } - } - ] - }, - { - "id": 847, - "name": "connect", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 81, - "character": 4 - } - ], - "signatures": [ - { - "id": 848, - "name": "connect", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Connects the socket, unless already connected." - }, - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 873, - "name": "connectionState", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 137, - "character": 4 - } - ], - "signatures": [ - { - "id": 874, - "name": "connectionState", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Returns the current state of the socket." - }, - "type": { - "type": "reference", - "qualifiedName": "CONNECTION_STATE", - "package": "@supabase/realtime-js", - "name": "CONNECTION_STATE" - } - } - ] - }, - { - "id": 849, - "name": "disconnect", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 88, - "character": 4 - } - ], - "signatures": [ - { - "id": 850, - "name": "disconnect", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Disconnects the socket." - }, - "parameters": [ - { - "id": 851, - "name": "code", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "A numeric status code to send on disconnect." - }, - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 852, - "name": "reason", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "A custom reason for the disconnect.\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reflection", - "declaration": { - "id": 853, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 855, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 90, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 854, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 89, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "qualifiedName": "Error", - "package": "typescript", - "name": "Error" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [855, 854] - } - ] - } - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - }, - { - "id": 892, - "name": "endPointURL", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 161, - "character": 4 - } - ], - "signatures": [ - { - "id": 893, - "name": "endPointURL", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Returns the URL of the websocket." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ] - }, - { - "id": 875, - "name": "isConnected", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 141, - "character": 4 - } - ], - "signatures": [ - { - "id": 876, - "name": "isConnected", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Retuns `true` is the connection is open." - }, - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ] - }, - { - "id": 899, - "name": "leaveOpenTopic", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 175, - "character": 4 - } - ], - "signatures": [ - { - "id": 900, - "name": "leaveOpenTopic", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Unsubscribe from channels with the specified topic." - }, - "parameters": [ - { - "id": 901, - "name": "topic", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 856, - "name": "log", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 97, - "character": 4 - } - ], - "signatures": [ - { - "id": 857, - "name": "log", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Logs the message.", - "text": "For customized logging, `this.logger` can be overriden.\n" - }, - "parameters": [ - { - "id": 858, - "name": "kind", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 859, - "name": "msg", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 860, - "name": "data", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 894, - "name": "makeRef", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 165, - "character": 4 - } - ], - "signatures": [ - { - "id": 895, - "name": "makeRef", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Return the next message ref, accounting for overflows" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ] - }, - { - "id": 864, - "name": "onClose", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 115, - "character": 4 - } - ], - "signatures": [ - { - "id": 865, - "name": "onClose", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Registers a callback for connection state change events.", - "tags": [ - { - "tag": "example", - "text": "\n socket.onOpen(() => console.log(\"Socket closed.\"))\n" - } - ] - }, - "parameters": [ - { - "id": 866, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "A function to be called when the event occurs.\n" - }, - "type": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 887, - "name": "onConnMessage", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 155, - "character": 4 - } - ], - "signatures": [ - { - "id": 888, - "name": "onConnMessage", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 889, - "name": "rawMessage", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 890, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 891, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 156, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [891] - } - ] - } - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 867, - "name": "onError", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 124, - "character": 4 - } - ], - "signatures": [ - { - "id": 868, - "name": "onError", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Registers a callback for connection state change events.", - "tags": [ - { - "tag": "example", - "text": "\n socket.onOpen((error) => console.log(\"An error occurred\"))\n" - } - ] - }, - "parameters": [ - { - "id": 869, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "A function to be called when the event occurs.\n" - }, - "type": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 870, - "name": "onMessage", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 133, - "character": 4 - } - ], - "signatures": [ - { - "id": 871, - "name": "onMessage", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Calls a function any time a message is received.", - "tags": [ - { - "tag": "example", - "text": "\n socket.onMessage((message) => console.log(message))\n" - } - ] - }, - "parameters": [ - { - "id": 872, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "A function to be called when the event occurs.\n" - }, - "type": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 861, - "name": "onOpen", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 106, - "character": 4 - } - ], - "signatures": [ - { - "id": 862, - "name": "onOpen", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Registers a callback for connection state change event.", - "tags": [ - { - "tag": "example", - "text": "\n socket.onOpen(() => console.log(\"Socket opened.\"))\n" - } - ] - }, - "parameters": [ - { - "id": 863, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "A function to be called when the event occurs.\n" - }, - "type": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 884, - "name": "push", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 154, - "character": 4 - } - ], - "signatures": [ - { - "id": 885, - "name": "push", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Push out a message if the socket is connected.", - "text": "If the socket is not connected, the message gets enqueued within a local buffer, and sent out when a connection is next established.\n" - }, - "parameters": [ - { - "id": 886, - "name": "data", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "qualifiedName": "Message", - "package": "@supabase/realtime-js", - "name": "Message" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 877, - "name": "remove", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 147, - "character": 4 - } - ], - "signatures": [ - { - "id": 878, - "name": "remove", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Removes a subscription from the socket." - }, - "parameters": [ - { - "id": 879, - "name": "channel", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "An open subscription.\n" - }, - "type": { - "type": "reference", - "id": 927, - "qualifiedName": "RealtimeSubscription", - "package": "@supabase/realtime-js", - "name": "default" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 896, - "name": "setAuth", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 171, - "character": 4 - } - ], - "signatures": [ - { - "id": 897, - "name": "setAuth", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Sets the JWT access token used for channel subscription authorization and Realtime RLS." - }, - "parameters": [ - { - "id": 898, - "name": "token", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "A JWT string.\n" - }, - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [811] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 906, 907, 903, 904, 902, 908, 905, 815, 816, 838, 836, 835, 817, 818, 828, 830, 834, - 829, 822, 831, 837, 833, 832, 839, 840, 841, 826, 827 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 880, 847, 873, 849, 892, 875, 899, 856, 894, 864, 887, 867, 870, 861, 884, 877, 896 - ] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 31, - "character": 21 - } - ] - }, - { - "id": 927, - "name": "RealtimeSubscription", - "kind": 128, - "kindString": "Class", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 928, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 18, - "character": 4 - } - ], - "signatures": [ - { - "id": 929, - "name": "new RealtimeSubscription", - "kind": 16384, - "kindString": "Constructor signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 930, - "name": "topic", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 931, - "name": "params", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 932, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "indexSignature": { - "id": 933, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 934, - "name": "key", - "kind": 32768, - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - } - } - }, - { - "id": 935, - "name": "socket", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "id": 810, - "qualifiedName": "RealtimeClient", - "package": "@supabase/realtime-js", - "name": "default" - } - } - ], - "type": { - "type": "reference", - "id": 927, - "qualifiedName": "RealtimeSubscription", - "package": "@supabase/realtime-js", - "name": "default" - } - } - ] - }, - { - "id": 942, - "name": "bindings", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 11, - "character": 4 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - } - }, - { - "id": 946, - "name": "joinPush", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 15, - "character": 4 - } - ], - "type": { - "type": "reference", - "qualifiedName": "Push", - "package": "@supabase/realtime-js", - "name": "default" - } - }, - { - "id": 945, - "name": "joinedOnce", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 14, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 937, - "name": "params", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 7, - "character": 4 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 938, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "indexSignature": { - "id": 939, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 940, - "name": "key", - "kind": 32768, - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - } - } - }, - { - "id": 948, - "name": "pushBuffer", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 17, - "character": 4 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "qualifiedName": "Push", - "package": "@supabase/realtime-js", - "name": "default" - } - } - }, - { - "id": 947, - "name": "rejoinTimer", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 16, - "character": 4 - } - ], - "type": { - "type": "reference", - "qualifiedName": "Timer", - "package": "@supabase/realtime-js", - "name": "default" - } - }, - { - "id": 941, - "name": "socket", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 10, - "character": 4 - } - ], - "type": { - "type": "reference", - "id": 810, - "qualifiedName": "RealtimeClient", - "package": "@supabase/realtime-js", - "name": "default" - } - }, - { - "id": 944, - "name": "state", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 13, - "character": 4 - } - ], - "type": { - "type": "reference", - "qualifiedName": "CHANNEL_STATES", - "package": "@supabase/realtime-js", - "name": "CHANNEL_STATES" - } - }, - { - "id": 943, - "name": "timeout", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 12, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 936, - "name": "topic", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 6, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 967, - "name": "canPush", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 27, - "character": 4 - } - ], - "signatures": [ - { - "id": 968, - "name": "canPush", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ] - }, - { - "id": 1004, - "name": "isClosed", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 54, - "character": 4 - } - ], - "signatures": [ - { - "id": 1005, - "name": "isClosed", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ] - }, - { - "id": 1006, - "name": "isErrored", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 55, - "character": 4 - } - ], - "signatures": [ - { - "id": 1007, - "name": "isErrored", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ] - }, - { - "id": 1008, - "name": "isJoined", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 56, - "character": 4 - } - ], - "signatures": [ - { - "id": 1009, - "name": "isJoined", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ] - }, - { - "id": 1010, - "name": "isJoining", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 57, - "character": 4 - } - ], - "signatures": [ - { - "id": 1011, - "name": "isJoining", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ] - }, - { - "id": 1012, - "name": "isLeaving", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 58, - "character": 4 - } - ], - "signatures": [ - { - "id": 1013, - "name": "isLeaving", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ] - }, - { - "id": 988, - "name": "isMember", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 49, - "character": 4 - } - ], - "signatures": [ - { - "id": 989, - "name": "isMember", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 990, - "name": "topic", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ] - }, - { - "id": 991, - "name": "joinRef", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 50, - "character": 4 - } - ], - "signatures": [ - { - "id": 992, - "name": "joinRef", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ] - }, - { - "id": 964, - "name": "off", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 26, - "character": 4 - } - ], - "signatures": [ - { - "id": 965, - "name": "off", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 966, - "name": "event", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 960, - "name": "on", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 25, - "character": 4 - } - ], - "signatures": [ - { - "id": 961, - "name": "on", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 962, - "name": "event", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 963, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 954, - "name": "onClose", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 23, - "character": 4 - } - ], - "signatures": [ - { - "id": 955, - "name": "onClose", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 956, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 957, - "name": "onError", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 24, - "character": 4 - } - ], - "signatures": [ - { - "id": 958, - "name": "onError", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 959, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 983, - "name": "onMessage", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 48, - "character": 4 - } - ], - "signatures": [ - { - "id": 984, - "name": "onMessage", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Overridable message hook", - "text": "Receives all events for specialized message handling before dispatching to the channel callbacks.\nMust return the payload, modified or unmodified.\n" - }, - "parameters": [ - { - "id": 985, - "name": "event", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 986, - "name": "payload", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 987, - "name": "ref", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - ] - }, - { - "id": 969, - "name": "push", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 28, - "character": 4 - } - ], - "signatures": [ - { - "id": 970, - "name": "push", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 971, - "name": "event", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "qualifiedName": "CHANNEL_EVENTS", - "package": "@supabase/realtime-js", - "name": "CHANNEL_EVENTS" - } - }, - { - "id": 972, - "name": "payload", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 973, - "name": "timeout", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "reference", - "qualifiedName": "Push", - "package": "@supabase/realtime-js", - "name": "default" - } - } - ] - }, - { - "id": 993, - "name": "rejoin", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 51, - "character": 4 - } - ], - "signatures": [ - { - "id": 994, - "name": "rejoin", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 995, - "name": "timeout", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 949, - "name": "rejoinUntilConnected", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 21, - "character": 4 - } - ], - "signatures": [ - { - "id": 950, - "name": "rejoinUntilConnected", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 1001, - "name": "replyEventName", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 53, - "character": 4 - } - ], - "signatures": [ - { - "id": 1002, - "name": "replyEventName", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 1003, - "name": "ref", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ] - }, - { - "id": 951, - "name": "subscribe", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 22, - "character": 4 - } - ], - "signatures": [ - { - "id": 952, - "name": "subscribe", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 953, - "name": "timeout", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "reference", - "qualifiedName": "Push", - "package": "@supabase/realtime-js", - "name": "default" - } - } - ] - }, - { - "id": 996, - "name": "trigger", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 52, - "character": 4 - } - ], - "signatures": [ - { - "id": 997, - "name": "trigger", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 998, - "name": "event", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 999, - "name": "payload", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 1000, - "name": "ref", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 980, - "name": "unsubscribe", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 41, - "character": 4 - } - ], - "signatures": [ - { - "id": 981, - "name": "unsubscribe", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Leaves the channel", - "text": "Unsubscribes from server events, and instructs channel to terminate on server.\nTriggers onClose() hooks.\n\nTo receive leave acknowledgements, use the a `receive` hook to bind to the server ack, ie:\nchannel.unsubscribe().receive(\"ok\", () => alert(\"left!\") )\n" - }, - "parameters": [ - { - "id": 982, - "name": "timeout", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "reference", - "qualifiedName": "Push", - "package": "@supabase/realtime-js", - "name": "default" - } - } - ] - }, - { - "id": 974, - "name": "updateJoinPayload", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 29, - "character": 4 - } - ], - "signatures": [ - { - "id": 975, - "name": "updateJoinPayload", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 976, - "name": "payload", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 977, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "indexSignature": { - "id": 978, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 979, - "name": "key", - "kind": 32768, - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - } - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [928] - }, - { - "title": "Properties", - "kind": 1024, - "children": [942, 946, 945, 937, 948, 947, 941, 944, 943, 936] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 967, 1004, 1006, 1008, 1010, 1012, 988, 991, 964, 960, 954, 957, 983, 969, 993, 949, - 1001, 951, 996, 980, 974 - ] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeSubscription.d.ts", - "line": 5, - "character": 21 - } - ] - }, - { - "id": 214, + "id": 111, "name": "SupabaseClient", "kind": 128, "kindString": "Class", @@ -12982,7 +54,7 @@ }, "children": [ { - "id": 215, + "id": 112, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -12996,7 +68,7 @@ ], "signatures": [ { - "id": 216, + "id": 113, "name": "new SupabaseClient", "kind": 16384, "kindString": "Constructor signature", @@ -13006,7 +78,7 @@ }, "parameters": [ { - "id": 217, + "id": 114, "name": "supabaseUrl", "kind": 32768, "kindString": "Parameter", @@ -13020,7 +92,7 @@ } }, { - "id": 218, + "id": 115, "name": "supabaseKey", "kind": 32768, "kindString": "Parameter", @@ -13034,7 +106,7 @@ } }, { - "id": 219, + "id": 116, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -13043,21 +115,21 @@ }, "type": { "type": "reference", - "id": 176, + "id": 79, "name": "SupabaseClientOptions" } } ], "type": { "type": "reference", - "id": 214, + "id": 111, "name": "default" } } ] }, { - "id": 220, + "id": 117, "name": "auth", "kind": 1024, "kindString": "Property", @@ -13078,7 +150,7 @@ } }, { - "id": 224, + "id": 121, "name": "authUrl", "kind": 1024, "kindString": "Property", @@ -13098,7 +170,7 @@ } }, { - "id": 234, + "id": 131, "name": "changedAccessToken", "kind": 1024, "kindString": "Property", @@ -13127,7 +199,7 @@ } }, { - "id": 229, + "id": 126, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -13145,34 +217,45 @@ "type": { "type": "reflection", "declaration": { - "id": 230, + "id": 127, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 231, + "id": 128, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 232, + "id": 129, "name": "input", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "reference", - "qualifiedName": "RequestInfo", - "package": "typescript", - "name": "RequestInfo" + "type": "union", + "types": [ + { + "type": "reference", + "qualifiedName": "RequestInfo", + "package": "typescript", + "name": "RequestInfo" + }, + { + "type": "reference", + "qualifiedName": "URL", + "package": "typescript", + "name": "URL" + } + ] } }, { - "id": 233, + "id": 130, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -13207,7 +290,7 @@ } }, { - "id": 226, + "id": 123, "name": "functionsUrl", "kind": 1024, "kindString": "Property", @@ -13227,7 +310,7 @@ } }, { - "id": 236, + "id": 133, "name": "headers", "kind": 1024, "kindString": "Property", @@ -13244,20 +327,20 @@ "type": { "type": "reflection", "declaration": { - "id": 237, + "id": 134, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "indexSignature": { - "id": 238, + "id": 135, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 239, + "id": 136, "name": "key", "kind": 32768, "flags": {}, @@ -13276,7 +359,7 @@ } }, { - "id": 228, + "id": 125, "name": "multiTab", "kind": 1024, "kindString": "Property", @@ -13296,7 +379,7 @@ } }, { - "id": 227, + "id": 124, "name": "realtime", "kind": 1024, "kindString": "Property", @@ -13312,14 +395,13 @@ ], "type": { "type": "reference", - "id": 810, "qualifiedName": "RealtimeClient", "package": "@supabase/realtime-js", "name": "default" } }, { - "id": 223, + "id": 120, "name": "realtimeUrl", "kind": 1024, "kindString": "Property", @@ -13339,7 +421,7 @@ } }, { - "id": 222, + "id": 119, "name": "restUrl", "kind": 1024, "kindString": "Property", @@ -13359,7 +441,7 @@ } }, { - "id": 221, + "id": 118, "name": "schema", "kind": 1024, "kindString": "Property", @@ -13379,7 +461,7 @@ } }, { - "id": 235, + "id": 132, "name": "shouldThrowOnError", "kind": 1024, "kindString": "Property", @@ -13399,7 +481,7 @@ } }, { - "id": 225, + "id": 122, "name": "storageUrl", "kind": 1024, "kindString": "Property", @@ -13419,7 +501,7 @@ } }, { - "id": 241, + "id": 138, "name": "supabaseKey", "kind": 1024, "kindString": "Property", @@ -13432,7 +514,7 @@ } }, { - "id": 240, + "id": 137, "name": "supabaseUrl", "kind": 1024, "kindString": "Property", @@ -13445,7 +527,7 @@ } }, { - "id": 242, + "id": 139, "name": "functions", "kind": 262144, "kindString": "Accessor", @@ -13459,7 +541,7 @@ ], "getSignature": [ { - "id": 243, + "id": 140, "name": "functions", "kind": 524288, "kindString": "Get signature", @@ -13477,7 +559,7 @@ ] }, { - "id": 244, + "id": 141, "name": "storage", "kind": 262144, "kindString": "Accessor", @@ -13491,7 +573,7 @@ ], "getSignature": [ { - "id": 245, + "id": 142, "name": "storage", "kind": 524288, "kindString": "Get signature", @@ -13509,7 +591,7 @@ ] }, { - "id": 274, + "id": 171, "name": "_closeSubscription", "kind": 2048, "kindString": "Method", @@ -13525,21 +607,20 @@ ], "signatures": [ { - "id": 275, + "id": 172, "name": "_closeSubscription", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 276, + "id": 173, "name": "subscription", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 927, "qualifiedName": "RealtimeSubscription", "package": "@supabase/realtime-js", "name": "default" @@ -13552,14 +633,14 @@ { "type": "reflection", "declaration": { - "id": 277, + "id": 174, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 278, + "id": 175, "name": "error", "kind": 1024, "kindString": "Property", @@ -13592,7 +673,7 @@ { "title": "Properties", "kind": 1024, - "children": [278] + "children": [175] } ] } @@ -13606,7 +687,7 @@ ] }, { - "id": 294, + "id": 191, "name": "_getAuthHeaders", "kind": 2048, "kindString": "Method", @@ -13622,21 +703,21 @@ ], "signatures": [ { - "id": 295, + "id": 192, "name": "_getAuthHeaders", "kind": 4096, "kindString": "Call signature", "flags": {}, "type": { "type": "reference", - "id": 171, + "id": 74, "name": "GenericObject" } } ] }, { - "id": 300, + "id": 197, "name": "_handleTokenChanged", "kind": 2048, "kindString": "Method", @@ -13652,28 +733,27 @@ ], "signatures": [ { - "id": 301, + "id": 198, "name": "_handleTokenChanged", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 302, + "id": 199, "name": "event", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 736, "qualifiedName": "AuthChangeEvent", "package": "@supabase/gotrue-js", "name": "AuthChangeEvent" } }, { - "id": 303, + "id": 200, "name": "token", "kind": 32768, "kindString": "Parameter", @@ -13693,7 +773,7 @@ } }, { - "id": 304, + "id": 201, "name": "source", "kind": 32768, "kindString": "Parameter", @@ -13721,7 +801,7 @@ ] }, { - "id": 292, + "id": 189, "name": "_initPostgRESTClient", "kind": 2048, "kindString": "Method", @@ -13737,7 +817,7 @@ ], "signatures": [ { - "id": 293, + "id": 190, "name": "_initPostgRESTClient", "kind": 4096, "kindString": "Call signature", @@ -13752,7 +832,7 @@ ] }, { - "id": 289, + "id": 186, "name": "_initRealtimeClient", "kind": 2048, "kindString": "Method", @@ -13768,14 +848,14 @@ ], "signatures": [ { - "id": 290, + "id": 187, "name": "_initRealtimeClient", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 291, + "id": 188, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -13784,7 +864,6 @@ }, "type": { "type": "reference", - "id": 909, "qualifiedName": "Options", "package": "@supabase/realtime-js", "name": "Options" @@ -13793,7 +872,6 @@ ], "type": { "type": "reference", - "id": 810, "qualifiedName": "RealtimeClient", "package": "@supabase/realtime-js", "name": "default" @@ -13802,7 +880,7 @@ ] }, { - "id": 286, + "id": 183, "name": "_initSupabaseAuthClient", "kind": 2048, "kindString": "Method", @@ -13818,21 +896,21 @@ ], "signatures": [ { - "id": 287, + "id": 184, "name": "_initSupabaseAuthClient", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 288, + "id": 185, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 176, + "id": 79, "name": "SupabaseClientOptions" } } @@ -13845,7 +923,7 @@ ] }, { - "id": 298, + "id": 195, "name": "_listenForAuthEvents", "kind": 2048, "kindString": "Method", @@ -13861,7 +939,7 @@ ], "signatures": [ { - "id": 299, + "id": 196, "name": "_listenForAuthEvents", "kind": 4096, "kindString": "Call signature", @@ -13875,7 +953,6 @@ }, { "type": "reference", - "id": 769, "qualifiedName": "Subscription", "package": "@supabase/gotrue-js", "name": "Subscription" @@ -13886,7 +963,7 @@ ] }, { - "id": 296, + "id": 193, "name": "_listenForMultiTabEvents", "kind": 2048, "kindString": "Method", @@ -13902,7 +979,7 @@ ], "signatures": [ { - "id": 297, + "id": 194, "name": "_listenForMultiTabEvents", "kind": 4096, "kindString": "Call signature", @@ -13924,7 +1001,7 @@ ] }, { - "id": 279, + "id": 176, "name": "_unsubscribeSubscription", "kind": 2048, "kindString": "Method", @@ -13940,21 +1017,20 @@ ], "signatures": [ { - "id": 280, + "id": 177, "name": "_unsubscribeSubscription", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 281, + "id": 178, "name": "subscription", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 927, "qualifiedName": "RealtimeSubscription", "package": "@supabase/realtime-js", "name": "default" @@ -13967,14 +1043,14 @@ { "type": "reflection", "declaration": { - "id": 282, + "id": 179, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 283, + "id": 180, "name": "error", "kind": 1024, "kindString": "Property", @@ -14007,7 +1083,7 @@ { "title": "Properties", "kind": 1024, - "children": [283] + "children": [180] } ] } @@ -14021,7 +1097,7 @@ ] }, { - "id": 246, + "id": 143, "name": "from", "kind": 2048, "kindString": "Method", @@ -14035,7 +1111,7 @@ ], "signatures": [ { - "id": 247, + "id": 144, "name": "from", "kind": 4096, "kindString": "Call signature", @@ -14045,7 +1121,7 @@ }, "typeParameter": [ { - "id": 248, + "id": 145, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -14058,7 +1134,7 @@ ], "parameters": [ { - "id": 249, + "id": 146, "name": "table", "kind": 32768, "kindString": "Parameter", @@ -14074,11 +1150,11 @@ ], "type": { "type": "reference", - "id": 8, + "id": 2, "typeArguments": [ { "type": "reference", - "id": 248, + "id": 145, "name": "T" } ], @@ -14088,7 +1164,7 @@ ] }, { - "id": 284, + "id": 181, "name": "getSubscriptions", "kind": 2048, "kindString": "Method", @@ -14102,7 +1178,7 @@ ], "signatures": [ { - "id": 285, + "id": 182, "name": "getSubscriptions", "kind": 4096, "kindString": "Call signature", @@ -14114,7 +1190,6 @@ "type": "array", "elementType": { "type": "reference", - "id": 927, "qualifiedName": "RealtimeSubscription", "package": "@supabase/realtime-js", "name": "default" @@ -14124,7 +1199,7 @@ ] }, { - "id": 259, + "id": 156, "name": "removeAllSubscriptions", "kind": 2048, "kindString": "Method", @@ -14138,7 +1213,7 @@ ], "signatures": [ { - "id": 260, + "id": 157, "name": "removeAllSubscriptions", "kind": 4096, "kindString": "Call signature", @@ -14154,14 +1229,14 @@ "elementType": { "type": "reflection", "declaration": { - "id": 261, + "id": 158, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 262, + "id": 159, "name": "data", "kind": 1024, "kindString": "Property", @@ -14176,14 +1251,14 @@ "type": { "type": "reflection", "declaration": { - "id": 263, + "id": 160, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 264, + "id": 161, "name": "subscription", "kind": 1024, "kindString": "Property", @@ -14197,7 +1272,6 @@ ], "type": { "type": "reference", - "id": 927, "qualifiedName": "RealtimeSubscription", "package": "@supabase/realtime-js", "name": "default" @@ -14208,14 +1282,14 @@ { "title": "Properties", "kind": 1024, - "children": [264] + "children": [161] } ] } } }, { - "id": 265, + "id": 162, "name": "error", "kind": 1024, "kindString": "Property", @@ -14248,7 +1322,7 @@ { "title": "Properties", "kind": 1024, - "children": [262, 265] + "children": [159, 162] } ] } @@ -14263,7 +1337,7 @@ ] }, { - "id": 266, + "id": 163, "name": "removeSubscription", "kind": 2048, "kindString": "Method", @@ -14277,7 +1351,7 @@ ], "signatures": [ { - "id": 267, + "id": 164, "name": "removeSubscription", "kind": 4096, "kindString": "Call signature", @@ -14287,7 +1361,7 @@ }, "parameters": [ { - "id": 268, + "id": 165, "name": "subscription", "kind": 32768, "kindString": "Parameter", @@ -14297,7 +1371,6 @@ }, "type": { "type": "reference", - "id": 927, "qualifiedName": "RealtimeSubscription", "package": "@supabase/realtime-js", "name": "default" @@ -14310,14 +1383,14 @@ { "type": "reflection", "declaration": { - "id": 269, + "id": 166, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 270, + "id": 167, "name": "data", "kind": 1024, "kindString": "Property", @@ -14332,14 +1405,14 @@ "type": { "type": "reflection", "declaration": { - "id": 271, + "id": 168, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 272, + "id": 169, "name": "openSubscriptions", "kind": 1024, "kindString": "Property", @@ -14361,14 +1434,14 @@ { "title": "Properties", "kind": 1024, - "children": [272] + "children": [169] } ] } } }, { - "id": 273, + "id": 170, "name": "error", "kind": 1024, "kindString": "Property", @@ -14401,7 +1474,7 @@ { "title": "Properties", "kind": 1024, - "children": [270, 273] + "children": [167, 170] } ] } @@ -14415,7 +1488,7 @@ ] }, { - "id": 250, + "id": 147, "name": "rpc", "kind": 2048, "kindString": "Method", @@ -14429,7 +1502,7 @@ ], "signatures": [ { - "id": 251, + "id": 148, "name": "rpc", "kind": 4096, "kindString": "Call signature", @@ -14439,7 +1512,7 @@ }, "typeParameter": [ { - "id": 252, + "id": 149, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -14452,7 +1525,7 @@ ], "parameters": [ { - "id": 253, + "id": 150, "name": "fn", "kind": 32768, "kindString": "Parameter", @@ -14466,7 +1539,7 @@ } }, { - "id": 254, + "id": 151, "name": "params", "kind": 32768, "kindString": "Parameter", @@ -14482,7 +1555,7 @@ } }, { - "id": 255, + "id": 152, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -14490,14 +1563,14 @@ "type": { "type": "reflection", "declaration": { - "id": 256, + "id": 153, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 258, + "id": 155, "name": "count", "kind": 1024, "kindString": "Property", @@ -14534,7 +1607,7 @@ } }, { - "id": 257, + "id": 154, "name": "head", "kind": 1024, "kindString": "Property", @@ -14558,7 +1631,7 @@ { "title": "Properties", "kind": 1024, - "children": [258, 257] + "children": [155, 154] } ] } @@ -14571,7 +1644,7 @@ "typeArguments": [ { "type": "reference", - "id": 252, + "id": 149, "name": "T" } ], @@ -14587,24 +1660,24 @@ { "title": "Constructors", "kind": 512, - "children": [215] + "children": [112] }, { "title": "Properties", "kind": 1024, "children": [ - 220, 224, 234, 229, 226, 236, 228, 227, 223, 222, 221, 235, 225, 241, 240 + 117, 121, 131, 126, 123, 133, 125, 124, 120, 119, 118, 132, 122, 138, 137 ] }, { "title": "Accessors", "kind": 262144, - "children": [242, 244] + "children": [139, 141] }, { "title": "Methods", "kind": 2048, - "children": [274, 294, 300, 292, 289, 286, 298, 296, 279, 246, 284, 259, 266, 250] + "children": [171, 191, 197, 189, 186, 183, 195, 193, 176, 143, 181, 156, 163, 147] } ], "sources": [ @@ -14616,3174 +1689,7 @@ ] }, { - "id": 759, - "name": "AdminUserAttributes", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 761, - "name": "app_metadata", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "A custom data object for app_metadata that.", - "text": "Only a service role can modify.\n\nCan be any JSON that includes app-specific info, such as identity providers, roles, and other\naccess control information.\n" - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 103, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } - }, - { - "id": 768, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "A custom data object for user_metadata that a user can modify. Can be any JSON." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 80, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - }, - "inheritedFrom": { - "type": "reference", - "id": 758, - "name": "UserAttributes.data" - } - }, - { - "id": 764, - "name": "email", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "The user's email." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 64, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "id": 754, - "name": "UserAttributes.email" - } - }, - { - "id": 767, - "name": "email_change_token", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "An email change token." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 76, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "id": 757, - "name": "UserAttributes.email_change_token" - } - }, - { - "id": 762, - "name": "email_confirm", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "Sets if a user has confirmed their email address.", - "text": "Only a service role can modify.\n" - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 109, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 766, - "name": "password", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "The user's password." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 72, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "id": 756, - "name": "UserAttributes.password" - } - }, - { - "id": 765, - "name": "phone", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "The user's phone." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 68, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "id": 755, - "name": "UserAttributes.phone" - } - }, - { - "id": 763, - "name": "phone_confirm", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "Sets if a user has confirmed their phone number.", - "text": "Only a service role can modify.\n" - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 115, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 760, - "name": "user_metadata", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "A custom data object for user_metadata.", - "text": "Can be any JSON.\n\nOnly a service role can modify.\n\nNote: When using the GoTrueAdminApi and wanting to modify a user's user_metadata,\nthis attribute is used instead of UserAttributes data.\n\n" - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 94, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [761, 768, 764, 767, 762, 766, 765, 763, 760] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 82, - "character": 17 - } - ], - "extendedTypes": [ - { - "type": "reference", - "id": 753, - "qualifiedName": "UserAttributes", - "package": "@supabase/gotrue-js", - "name": "UserAttributes" - } - ] - }, - { - "id": 737, - "name": "ApiError", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 738, - "name": "message", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 4, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 739, - "name": "status", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 5, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [738, 739] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 3, - "character": 17 - } - ] - }, - { - "id": 335, - "name": "AuthSession", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 337, - "name": "access_token", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 9, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 339, - "name": "expires_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "A timestamp of when the token will expire. Returned when a login is confirmed." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 17, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 338, - "name": "expires_in", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "The number of seconds until the token expires (since it was issued). Returned when a login is confirmed." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 13, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 336, - "name": "provider_token", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 8, - "character": 4 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "intrinsic", - "name": "string" - } - ] - } - }, - { - "id": 340, - "name": "refresh_token", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 18, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 341, - "name": "token_type", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 19, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 342, - "name": "user", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 20, - "character": 4 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 307, - "qualifiedName": "User", - "package": "@supabase/gotrue-js", - "name": "User" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [337, 339, 338, 336, 340, 341, 342] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 7, - "character": 17 - } - ] - }, - { - "id": 307, - "name": "AuthUser", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 324, - "name": "action_link", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 48, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 309, - "name": "app_metadata", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 35, - "character": 4 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 310, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 311, - "name": "provider", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 36, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [311] - } - ], - "indexSignature": { - "id": 312, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 313, - "name": "key", - "kind": 32768, - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - } - } - }, - { - "id": 318, - "name": "aud", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 42, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 319, - "name": "confirmation_sent_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 43, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 328, - "name": "confirmed_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 52, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 327, - "name": "created_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 51, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 325, - "name": "email", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 49, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 321, - "name": "email_change_sent_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 45, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 329, - "name": "email_confirmed_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 53, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 308, - "name": "id", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 34, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 334, - "name": "identities", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 58, - "character": 4 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "id": 741, - "qualifiedName": "UserIdentity", - "package": "@supabase/gotrue-js", - "name": "UserIdentity" - } - } - }, - { - "id": 323, - "name": "invited_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 47, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 331, - "name": "last_sign_in_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 55, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 322, - "name": "new_email", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 46, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 326, - "name": "phone", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 50, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 330, - "name": "phone_confirmed_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 54, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 320, - "name": "recovery_sent_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 44, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 332, - "name": "role", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 56, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 333, - "name": "updated_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 57, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 314, - "name": "user_metadata", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 39, - "character": 4 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 315, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "indexSignature": { - "id": 316, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 317, - "name": "key", - "kind": 32768, - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - } - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 324, 309, 318, 319, 328, 327, 325, 321, 329, 308, 334, 323, 331, 322, 326, 330, 320, - 332, 333, 314 - ] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 33, - "character": 17 - } - ] - }, - { - "id": 777, - "name": "CookieOptions", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 780, - "name": "domain", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 134, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 779, - "name": "lifetime", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 133, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 778, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 132, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 781, - "name": "path", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 135, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 782, - "name": "sameSite", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 136, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [780, 779, 778, 781, 782] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 131, - "character": 17 - } - ] - }, - { - "id": 803, - "name": "OpenIDConnectCredentials", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 807, - "name": "client_id", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 165, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 804, - "name": "id_token", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 162, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 808, - "name": "issuer", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 166, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 805, - "name": "nonce", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 163, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 806, - "name": "provider", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 164, - "character": 4 - } - ], - "type": { - "type": "reference", - "id": 735, - "qualifiedName": "Provider", - "package": "@supabase/gotrue-js", - "name": "Provider" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [807, 804, 808, 805, 806] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 161, - "character": 17 - } - ] - }, - { - "id": 769, - "name": "Subscription", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 770, - "name": "id", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The subscriber UUID. This will be set by the client." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 121, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 771, - "name": "callback", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 125, - "character": 4 - } - ], - "signatures": [ - { - "id": 772, - "name": "callback", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The function to call every time there is an event. eg: (eventName) => {}" - }, - "parameters": [ - { - "id": 773, - "name": "event", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "id": 736, - "qualifiedName": "AuthChangeEvent", - "package": "@supabase/gotrue-js", - "name": "AuthChangeEvent" - } - }, - { - "id": 774, - "name": "session", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reference", - "id": 335, - "qualifiedName": "Session", - "package": "@supabase/gotrue-js", - "name": "Session" - } - ] - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 775, - "name": "unsubscribe", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 129, - "character": 4 - } - ], - "signatures": [ - { - "id": 776, - "name": "unsubscribe", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Call this to remove the listener." - }, - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [770] - }, - { - "title": "Methods", - "kind": 2048, - "children": [771, 775] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 117, - "character": 17 - } - ] - }, - { - "id": 753, - "name": "UserAttributes", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 758, - "name": "data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "A custom data object for user_metadata that a user can modify. Can be any JSON." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 80, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } - }, - { - "id": 754, - "name": "email", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "The user's email." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 64, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 757, - "name": "email_change_token", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "An email change token." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 76, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 756, - "name": "password", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "The user's password." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 72, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 755, - "name": "phone", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "The user's phone." - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 68, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [758, 754, 757, 756, 755] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 60, - "character": 17 - } - ], - "extendedBy": [ - { - "type": "reference", - "id": 759, - "name": "AdminUserAttributes" - } - ] - }, - { - "id": 783, - "name": "UserCredentials", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 784, - "name": "email", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 139, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 789, - "name": "oidc", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 144, - "character": 4 - } - ], - "type": { - "type": "reference", - "id": 803, - "qualifiedName": "OpenIDConnectCredentials", - "package": "@supabase/gotrue-js", - "name": "OpenIDConnectCredentials" - } - }, - { - "id": 786, - "name": "password", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 141, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 785, - "name": "phone", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 140, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 788, - "name": "provider", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 143, - "character": 4 - } - ], - "type": { - "type": "reference", - "id": 735, - "qualifiedName": "Provider", - "package": "@supabase/gotrue-js", - "name": "Provider" - } - }, - { - "id": 787, - "name": "refreshToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 142, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [784, 789, 786, 785, 788, 787] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 138, - "character": 17 - } - ] - }, - { - "id": 741, - "name": "UserIdentity", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 749, - "name": "created_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 29, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 742, - "name": "id", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 23, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 744, - "name": "identity_data", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 25, - "character": 4 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 745, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "indexSignature": { - "id": 746, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 747, - "name": "key", - "kind": 32768, - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - } - } - }, - { - "id": 750, - "name": "last_sign_in_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 30, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 748, - "name": "provider", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 28, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 751, - "name": "updated_at", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 31, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 743, - "name": "user_id", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 24, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [749, 742, 744, 750, 748, 751, 743] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 22, - "character": 17 - } - ] - }, - { - "id": 796, - "name": "VerifyEmailOTPParams", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 797, - "name": "email", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 154, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 798, - "name": "phone", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 155, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "undefined" - } - }, - { - "id": 799, - "name": "token", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 156, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 800, - "name": "type", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 157, - "character": 4 - } - ], - "type": { - "type": "reference", - "id": 802, - "qualifiedName": "EmailOTPType", - "package": "@supabase/gotrue-js", - "name": "EmailOTPType" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [797, 798, 799, 800] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 153, - "character": 17 - } - ] - }, - { - "id": 791, - "name": "VerifyMobileOTPParams", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 792, - "name": "email", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 148, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "undefined" - } - }, - { - "id": 793, - "name": "phone", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 149, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 794, - "name": "token", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 150, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 795, - "name": "type", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 151, - "character": 4 - } - ], - "type": { - "type": "reference", - "id": 801, - "qualifiedName": "MobileOTPType", - "package": "@supabase/gotrue-js", - "name": "MobileOTPType" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [792, 793, 794, 795] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 147, - "character": 17 - } - ] - }, - { - "id": 736, - "name": "AuthChangeEvent", - "kind": 4194304, - "kindString": "Type alias", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 2, - "character": 20 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "PASSWORD_RECOVERY" - }, - { - "type": "literal", - "value": "SIGNED_IN" - }, - { - "type": "literal", - "value": "SIGNED_OUT" - }, - { - "type": "literal", - "value": "TOKEN_REFRESHED" - }, - { - "type": "literal", - "value": "USER_UPDATED" - }, - { - "type": "literal", - "value": "USER_DELETED" - } - ] - } - }, - { - "id": 802, - "name": "EmailOTPType", - "kind": 4194304, - "kindString": "Type alias", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 160, - "character": 20 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "signup" - }, - { - "type": "literal", - "value": "invite" - }, - { - "type": "literal", - "value": "magiclink" - }, - { - "type": "literal", - "value": "recovery" - }, - { - "type": "literal", - "value": "email_change" - } - ] - } - }, - { - "id": 801, - "name": "MobileOTPType", - "kind": 4194304, - "kindString": "Type alias", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 159, - "character": 20 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "sms" - }, - { - "type": "literal", - "value": "phone_change" - } - ] - } - }, - { - "id": 208, - "name": "PostgrestError", - "kind": 4194304, - "kindString": "Type alias", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Error format", - "text": "{@link https://postgrest.org/en/stable/api.html?highlight=options#errors-and-http-status-codes}\n" - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts", - "line": 7, - "character": 20 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 209, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 213, - "name": "code", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts", - "line": 11, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 211, - "name": "details", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts", - "line": 9, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 212, - "name": "hint", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts", - "line": 10, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 210, - "name": "message", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts", - "line": 8, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [213, 211, 212, 210] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts", - "line": 7, - "character": 37 - } - ] - } - } - }, - { - "id": 206, - "name": "PostgrestMaybeSingleResponse", - "kind": 4194304, - "kindString": "Type alias", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts", - "line": 41, - "character": 20 - } - ], - "typeParameter": [ - { - "id": 207, - "name": "T", - "kind": 131072, - "kindString": "Type parameter", - "flags": { - "isExternal": true - } - } - ], - "type": { - "type": "reference", - "id": 204, - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "reference", - "id": 207, - "qualifiedName": "T", - "package": "@supabase/postgrest-js", - "name": "T" - }, - { - "type": "literal", - "value": null - } - ] - } - ], - "qualifiedName": "PostgrestSingleResponse", - "package": "@supabase/postgrest-js", - "name": "PostgrestSingleResponse" - } - }, - { - "id": 202, - "name": "PostgrestResponse", - "kind": 4194304, - "kindString": "Type alias", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts", - "line": 34, - "character": 20 - } - ], - "typeParameter": [ - { - "id": 203, - "name": "T", - "kind": 131072, - "kindString": "Type parameter", - "flags": { - "isExternal": true - } - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 203, - "qualifiedName": "T", - "package": "@supabase/postgrest-js", - "name": "T" - } - ], - "qualifiedName": "PostgrestResponseSuccess", - "package": "@supabase/postgrest-js", - "name": "PostgrestResponseSuccess" - }, - { - "type": "reference", - "qualifiedName": "PostgrestResponseFailure", - "package": "@supabase/postgrest-js", - "name": "PostgrestResponseFailure" - } - ] - } - }, - { - "id": 204, - "name": "PostgrestSingleResponse", - "kind": 4194304, - "kindString": "Type alias", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts", - "line": 40, - "character": 20 - } - ], - "typeParameter": [ - { - "id": 205, - "name": "T", - "kind": 131072, - "kindString": "Type parameter", - "flags": { - "isExternal": true - } - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 205, - "qualifiedName": "T", - "package": "@supabase/postgrest-js", - "name": "T" - } - ], - "qualifiedName": "PostgrestSingleResponseSuccess", - "package": "@supabase/postgrest-js", - "name": "PostgrestSingleResponseSuccess" - }, - { - "type": "reference", - "qualifiedName": "PostgrestResponseFailure", - "package": "@supabase/postgrest-js", - "name": "PostgrestResponseFailure" - } - ] - } - }, - { - "id": 735, - "name": "Provider", - "kind": 4194304, - "kindString": "Type alias", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 1, - "character": 20 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "apple" - }, - { - "type": "literal", - "value": "azure" - }, - { - "type": "literal", - "value": "bitbucket" - }, - { - "type": "literal", - "value": "discord" - }, - { - "type": "literal", - "value": "facebook" - }, - { - "type": "literal", - "value": "github" - }, - { - "type": "literal", - "value": "gitlab" - }, - { - "type": "literal", - "value": "google" - }, - { - "type": "literal", - "value": "keycloak" - }, - { - "type": "literal", - "value": "linkedin" - }, - { - "type": "literal", - "value": "notion" - }, - { - "type": "literal", - "value": "slack" - }, - { - "type": "literal", - "value": "spotify" - }, - { - "type": "literal", - "value": "twitch" - }, - { - "type": "literal", - "value": "twitter" - }, - { - "type": "literal", - "value": "workos" - } - ] - } - }, - { - "id": 909, - "name": "RealtimeClientOptions", - "kind": 4194304, - "kindString": "Type alias", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 5, - "character": 20 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 910, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 917, - "name": "decode", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 12, - "character": 4 - } - ], - "type": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - }, - { - "id": 916, - "name": "encode", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 11, - "character": 4 - } - ], - "type": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - }, - { - "id": 919, - "name": "headers", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 14, - "character": 4 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 920, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 14, - "character": 14 - } - ], - "indexSignature": { - "id": 921, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 922, - "name": "key", - "kind": 32768, - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - } - } - }, - { - "id": 913, - "name": "heartbeatIntervalMs", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 8, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 915, - "name": "logger", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 10, - "character": 4 - } - ], - "type": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - }, - { - "id": 914, - "name": "longpollerTimeout", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 9, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 923, - "name": "params", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 17, - "character": 4 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 924, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 17, - "character": 13 - } - ], - "indexSignature": { - "id": 925, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 926, - "name": "key", - "kind": 32768, - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - } - } - }, - { - "id": 918, - "name": "reconnectAfterMs", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 13, - "character": 4 - } - ], - "type": { - "type": "reference", - "qualifiedName": "Function", - "package": "typescript", - "name": "Function" - } - }, - { - "id": 912, - "name": "timeout", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 7, - "character": 4 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 911, - "name": "transport", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 6, - "character": 4 - } - ], - "type": { - "type": "reference", - "qualifiedName": "WebSocket", - "package": "typescript", - "name": "WebSocket" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [917, 916, 919, 913, 915, 914, 923, 918, 912, 911] - } - ], - "sources": [ - { - "fileName": "node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts", - "line": 5, - "character": 30 - } - ] - } - } - }, - { - "id": 809, - "name": "SupportedStorage", - "kind": 4194304, - "kindString": "Type alias", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 173, - "character": 20 - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "qualifiedName": "Storage", - "package": "typescript", - "name": "Storage" - }, - { - "type": "union", - "types": [ - { - "type": "literal", - "value": "getItem" - }, - { - "type": "literal", - "value": "setItem" - }, - { - "type": "literal", - "value": "removeItem" - } - ] - } - ], - "qualifiedName": "Pick", - "package": "typescript", - "name": "Pick" - } - ], - "qualifiedName": "PromisifyMethods", - "package": "@supabase/gotrue-js", - "name": "PromisifyMethods" - } - }, - { - "id": 790, - "name": "VerifyOTPParams", - "kind": 4194304, - "kindString": "Type alias", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/lib/types.d.ts", - "line": 146, - "character": 20 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 791, - "qualifiedName": "VerifyMobileOTPParams", - "package": "@supabase/gotrue-js", - "name": "VerifyMobileOTPParams" - }, - { - "type": "reference", - "id": 796, - "qualifiedName": "VerifyEmailOTPParams", - "package": "@supabase/gotrue-js", - "name": "VerifyEmailOTPParams" - } - ] - } - }, - { - "id": 2, + "id": 106, "name": "createClient", "kind": 64, "kindString": "Function", @@ -17797,7 +1703,7 @@ ], "signatures": [ { - "id": 3, + "id": 107, "name": "createClient", "kind": 4096, "kindString": "Call signature", @@ -17807,7 +1713,7 @@ }, "parameters": [ { - "id": 4, + "id": 108, "name": "supabaseUrl", "kind": 32768, "kindString": "Parameter", @@ -17818,7 +1724,7 @@ } }, { - "id": 5, + "id": 109, "name": "supabaseKey", "kind": 32768, "kindString": "Parameter", @@ -17829,7 +1735,7 @@ } }, { - "id": 6, + "id": 110, "name": "options", "kind": 32768, "kindString": "Parameter", @@ -17838,14 +1744,14 @@ }, "type": { "type": "reference", - "id": 176, + "id": 79, "name": "SupabaseClientOptions" } } ], "type": { "type": "reference", - "id": 214, + "id": 111, "name": "default" } } @@ -17856,32 +1762,17 @@ { "title": "References", "kind": 16777216, - "children": [740, 305, 306, 752] - }, - { - "title": "Namespaces", - "kind": 4, - "children": [1014] + "children": [202, 203] }, { "title": "Classes", "kind": 128, - "children": [343, 601, 810, 927, 214] - }, - { - "title": "Interfaces", - "kind": 256, - "children": [759, 737, 335, 307, 777, 803, 769, 753, 783, 741, 796, 791] - }, - { - "title": "Type aliases", - "kind": 4194304, - "children": [736, 802, 801, 208, 206, 202, 204, 735, 909, 809, 790] + "children": [111] }, { "title": "Functions", "kind": 64, - "children": [2] + "children": [106] } ], "sources": [ @@ -17893,21 +1784,21 @@ ] }, { - "id": 7, + "id": 1, "name": "lib/SupabaseQueryBuilder", "kind": 2, "kindString": "Module", "flags": {}, "children": [ { - "id": 8, + "id": 2, "name": "SupabaseQueryBuilder", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 9, + "id": 3, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -17921,14 +1812,14 @@ ], "signatures": [ { - "id": 10, + "id": 4, "name": "new SupabaseQueryBuilder", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "typeParameter": [ { - "id": 11, + "id": 5, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -17937,7 +1828,7 @@ ], "parameters": [ { - "id": 12, + "id": 6, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -17948,7 +1839,7 @@ } }, { - "id": 13, + "id": 7, "name": "__namedParameters", "kind": 32768, "kindString": "Parameter", @@ -17956,14 +1847,14 @@ "type": { "type": "reflection", "declaration": { - "id": 14, + "id": 8, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 19, + "id": 13, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -17980,34 +1871,45 @@ "type": { "type": "reflection", "declaration": { - "id": 20, + "id": 14, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 21, + "id": 15, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 22, + "id": 16, "name": "input", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { - "type": "reference", - "qualifiedName": "RequestInfo", - "package": "typescript", - "name": "RequestInfo" + "type": "union", + "types": [ + { + "type": "reference", + "qualifiedName": "RequestInfo", + "package": "typescript", + "name": "RequestInfo" + }, + { + "type": "reference", + "qualifiedName": "URL", + "package": "typescript", + "name": "URL" + } + ] } }, { - "id": 23, + "id": 17, "name": "init", "kind": 32768, "kindString": "Parameter", @@ -18042,7 +1944,7 @@ } }, { - "id": 15, + "id": 9, "name": "headers", "kind": 1024, "kindString": "Property", @@ -18058,12 +1960,12 @@ ], "type": { "type": "reference", - "id": 171, + "id": 74, "name": "GenericObject" } }, { - "id": 17, + "id": 11, "name": "realtime", "kind": 1024, "kindString": "Property", @@ -18077,14 +1979,13 @@ ], "type": { "type": "reference", - "id": 810, "qualifiedName": "RealtimeClient", "package": "@supabase/realtime-js", "name": "default" } }, { - "id": 16, + "id": 10, "name": "schema", "kind": 1024, "kindString": "Property", @@ -18102,7 +2003,7 @@ } }, { - "id": 24, + "id": 18, "name": "shouldThrowOnError", "kind": 1024, "kindString": "Property", @@ -18122,7 +2023,7 @@ } }, { - "id": 18, + "id": 12, "name": "table", "kind": 1024, "kindString": "Property", @@ -18144,7 +2045,7 @@ { "title": "Properties", "kind": 1024, - "children": [19, 15, 17, 16, 24, 18] + "children": [13, 9, 11, 10, 18, 12] } ] } @@ -18153,11 +2054,11 @@ ], "type": { "type": "reference", - "id": 8, + "id": 2, "typeArguments": [ { "type": "reference", - "id": 11, + "id": 5, "name": "T" } ], @@ -18175,7 +2076,7 @@ } }, { - "id": 27, + "id": 21, "name": "_headers", "kind": 1024, "kindString": "Property", @@ -18191,12 +2092,12 @@ ], "type": { "type": "reference", - "id": 171, + "id": 74, "name": "GenericObject" } }, { - "id": 26, + "id": 20, "name": "_realtime", "kind": 1024, "kindString": "Property", @@ -18212,14 +2113,13 @@ ], "type": { "type": "reference", - "id": 810, "qualifiedName": "RealtimeClient", "package": "@supabase/realtime-js", "name": "default" } }, { - "id": 28, + "id": 22, "name": "_schema", "kind": 1024, "kindString": "Property", @@ -18239,7 +2139,7 @@ } }, { - "id": 25, + "id": 19, "name": "_subscription", "kind": 1024, "kindString": "Property", @@ -18262,7 +2162,7 @@ }, { "type": "reference", - "id": 114, + "id": 33, "name": "SupabaseRealtimeClient" } ] @@ -18270,7 +2170,7 @@ "defaultValue": "null" }, { - "id": 29, + "id": 23, "name": "_table", "kind": 1024, "kindString": "Property", @@ -18290,948 +2190,7 @@ } }, { - "id": 96, - "name": "allowEmpty", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts", - "line": 53, - "character": 14 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.allowEmpty" - } - }, - { - "id": 88, - "name": "body", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts", - "line": 49, - "character": 14 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 11, - "name": "T" - } - ], - "qualifiedName": "Partial", - "package": "typescript", - "name": "Partial" - }, - { - "type": "array", - "elementType": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 11, - "name": "T" - } - ], - "qualifiedName": "Partial", - "package": "typescript", - "name": "Partial" - } - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.body" - } - }, - { - "id": 91, - "name": "fetch", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts", - "line": 52, - "character": 14 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 92, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "signatures": [ - { - "id": 93, - "name": "__type", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 94, - "name": "input", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "qualifiedName": "RequestInfo", - "package": "typescript", - "name": "RequestInfo" - } - }, - { - "id": 95, - "name": "init", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "reference", - "qualifiedName": "RequestInit", - "package": "typescript", - "name": "RequestInit" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "qualifiedName": "Response", - "package": "typescript", - "name": "Response" - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - } - }, - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.fetch" - } - }, - { - "id": 83, - "name": "headers", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts", - "line": 45, - "character": 14 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 84, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "indexSignature": { - "id": 85, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": {}, - "parameters": [ - { - "id": 86, - "name": "key", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - } - }, - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.headers" - } - }, - { - "id": 81, - "name": "method", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts", - "line": 43, - "character": 14 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "DELETE" - }, - { - "type": "literal", - "value": "GET" - }, - { - "type": "literal", - "value": "HEAD" - }, - { - "type": "literal", - "value": "POST" - }, - { - "type": "literal", - "value": "PATCH" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.method" - } - }, - { - "id": 87, - "name": "schema", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts", - "line": 48, - "character": 14 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.schema" - } - }, - { - "id": 89, - "name": "shouldThrowOnError", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts", - "line": 50, - "character": 14 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.shouldThrowOnError" - } - }, - { - "id": 90, - "name": "signal", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts", - "line": 51, - "character": 14 - } - ], - "type": { - "type": "reference", - "qualifiedName": "AbortSignal", - "package": "typescript", - "name": "AbortSignal" - }, - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.signal" - } - }, - { - "id": 82, - "name": "url", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts", - "line": 44, - "character": 14 - } - ], - "type": { - "type": "reference", - "qualifiedName": "URL", - "package": "typescript", - "name": "URL" - }, - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.url" - } - }, - { - "id": 75, - "name": "delete", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 75, - "character": 4 - } - ], - "signatures": [ - { - "id": 76, - "name": "delete", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Performs a DELETE on the table." - }, - "parameters": [ - { - "id": 77, - "name": "__namedParameters", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 78, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 80, - "name": "count", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 77, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "literal", - "value": "exact" - }, - { - "type": "literal", - "value": "planned" - }, - { - "type": "literal", - "value": "estimated" - } - ] - } - }, - { - "id": 79, - "name": "returning", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 76, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "minimal" - }, - { - "type": "literal", - "value": "representation" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [80, 79] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 11, - "name": "T" - } - ], - "qualifiedName": "PostgrestFilterBuilder", - "package": "@supabase/postgrest-js", - "name": "default" - }, - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.delete" - } - } - ], - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.delete" - } - }, - { - "id": 44, - "name": "insert", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 30, - "character": 4 - } - ], - "signatures": [ - { - "id": 45, - "name": "insert", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Performs an INSERT into the table." - }, - "parameters": [ - { - "id": 46, - "name": "values", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The values to insert." - }, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 11, - "name": "T" - } - ], - "qualifiedName": "Partial", - "package": "typescript", - "name": "Partial" - }, - { - "type": "array", - "elementType": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 11, - "name": "T" - } - ], - "qualifiedName": "Partial", - "package": "typescript", - "name": "Partial" - } - } - ] - } - }, - { - "id": 47, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 48, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 50, - "name": "count", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 32, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "literal", - "value": "exact" - }, - { - "type": "literal", - "value": "planned" - }, - { - "type": "literal", - "value": "estimated" - } - ] - } - }, - { - "id": 49, - "name": "returning", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 31, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "minimal" - }, - { - "type": "literal", - "value": "representation" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [50, 49] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 11, - "name": "T" - } - ], - "qualifiedName": "PostgrestFilterBuilder", - "package": "@supabase/postgrest-js", - "name": "default" - }, - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.insert" - } - }, - { - "id": 51, - "name": "insert", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "tags": [ - { - "tag": "deprecated", - "text": "Use `upsert()` instead.\n" - } - ] - }, - "parameters": [ - { - "id": 52, - "name": "values", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 11, - "name": "T" - } - ], - "qualifiedName": "Partial", - "package": "typescript", - "name": "Partial" - }, - { - "type": "array", - "elementType": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 11, - "name": "T" - } - ], - "qualifiedName": "Partial", - "package": "typescript", - "name": "Partial" - } - } - ] - } - }, - { - "id": 53, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 54, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 58, - "name": "count", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 41, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "literal", - "value": "exact" - }, - { - "type": "literal", - "value": "planned" - }, - { - "type": "literal", - "value": "estimated" - } - ] - } - }, - { - "id": 56, - "name": "onConflict", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 39, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 57, - "name": "returning", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 40, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "minimal" - }, - { - "type": "literal", - "value": "representation" - } - ] - } - }, - { - "id": 55, - "name": "upsert", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 38, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [58, 56, 57, 55] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 11, - "name": "T" - } - ], - "qualifiedName": "PostgrestFilterBuilder", - "package": "@supabase/postgrest-js", - "name": "default" - }, - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.insert" - } - } - ], - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.insert" - } - }, - { - "id": 30, + "id": 24, "name": "on", "kind": 2048, "kindString": "Method", @@ -19245,7 +2204,7 @@ ], "signatures": [ { - "id": 31, + "id": 25, "name": "on", "kind": 4096, "kindString": "Call signature", @@ -19255,7 +2214,7 @@ }, "parameters": [ { - "id": 32, + "id": 26, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -19265,12 +2224,12 @@ }, "type": { "type": "reference", - "id": 199, + "id": 102, "name": "SupabaseEventTypes" } }, { - "id": 33, + "id": 27, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -19281,32 +2240,32 @@ "type": { "type": "reflection", "declaration": { - "id": 34, + "id": 28, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 35, + "id": 29, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 36, + "id": 30, "name": "payload", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 189, + "id": 92, "typeArguments": [ { "type": "reference", - "id": 11, + "id": 5, "name": "T" } ], @@ -19326,952 +2285,28 @@ ], "type": { "type": "reference", - "id": 114, + "id": 33, "name": "SupabaseRealtimeClient" } } ] - }, - { - "id": 37, - "name": "select", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 19, - "character": 4 - } - ], - "signatures": [ - { - "id": 38, - "name": "select", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Performs vertical filtering with SELECT." - }, - "parameters": [ - { - "id": 39, - "name": "columns", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "comment": { - "shortText": "The columns to retrieve, separated by commas." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 40, - "name": "__namedParameters", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 41, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 43, - "name": "count", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 21, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "literal", - "value": "exact" - }, - { - "type": "literal", - "value": "planned" - }, - { - "type": "literal", - "value": "estimated" - } - ] - } - }, - { - "id": 42, - "name": "head", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 20, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [43, 42] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 11, - "name": "T" - } - ], - "qualifiedName": "PostgrestFilterBuilder", - "package": "@supabase/postgrest-js", - "name": "default" - }, - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.select" - } - } - ], - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.select" - } - }, - { - "id": 100, - "name": "then", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts", - "line": 62, - "character": 4 - } - ], - "signatures": [ - { - "id": 101, - "name": "then", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "typeParameter": [ - { - "id": 102, - "name": "TResult1", - "kind": 131072, - "kindString": "Type parameter", - "flags": { - "isExternal": true - }, - "default": { - "type": "reference", - "id": 202, - "typeArguments": [ - { - "type": "reference", - "id": 11, - "name": "T" - } - ], - "qualifiedName": "PostgrestResponse", - "package": "@supabase/postgrest-js", - "name": "PostgrestResponse" - } - }, - { - "id": 103, - "name": "TResult2", - "kind": 131072, - "kindString": "Type parameter", - "flags": { - "isExternal": true - }, - "default": { - "type": "intrinsic", - "name": "never" - } - } - ], - "parameters": [ - { - "id": 104, - "name": "onfulfilled", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reflection", - "declaration": { - "id": 105, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "signatures": [ - { - "id": 106, - "name": "__type", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 107, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "reference", - "id": 202, - "typeArguments": [ - { - "type": "reference", - "id": 11, - "name": "T" - } - ], - "qualifiedName": "PostgrestResponse", - "package": "@supabase/postgrest-js", - "name": "PostgrestResponse" - } - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 102, - "qualifiedName": "TResult1", - "package": "@supabase/postgrest-js", - "name": "TResult1" - }, - { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 102, - "qualifiedName": "TResult1", - "package": "@supabase/postgrest-js", - "name": "TResult1" - } - ], - "qualifiedName": "PromiseLike", - "package": "typescript", - "name": "PromiseLike" - } - ] - } - } - ] - } - } - ] - } - }, - { - "id": 108, - "name": "onrejected", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reflection", - "declaration": { - "id": 109, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "signatures": [ - { - "id": 110, - "name": "__type", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "parameters": [ - { - "id": 111, - "name": "reason", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "id": 103, - "qualifiedName": "TResult2", - "package": "@supabase/postgrest-js", - "name": "TResult2" - }, - { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 103, - "qualifiedName": "TResult2", - "package": "@supabase/postgrest-js", - "name": "TResult2" - } - ], - "qualifiedName": "PromiseLike", - "package": "typescript", - "name": "PromiseLike" - } - ] - } - } - ] - } - } - ] - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "reference", - "id": 102, - "qualifiedName": "TResult1", - "package": "@supabase/postgrest-js", - "name": "TResult1" - }, - { - "type": "reference", - "id": 103, - "qualifiedName": "TResult2", - "package": "@supabase/postgrest-js", - "name": "TResult2" - } - ] - } - ], - "qualifiedName": "PromiseLike", - "package": "typescript", - "name": "PromiseLike" - }, - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.then" - } - } - ], - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.then" - } - }, - { - "id": 97, - "name": "throwOnError", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/types.d.ts", - "line": 61, - "character": 4 - } - ], - "signatures": [ - { - "id": 98, - "name": "throwOnError", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "If there's an error with the query, throwOnError will reject the promise by\nthrowing the error instead of returning it as part of a successful response.", - "text": "{@link https://github.com/supabase/supabase-js/issues/92}\n" - }, - "parameters": [ - { - "id": 99, - "name": "throwOnError", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "type": { - "type": "reference", - "id": 8, - "typeArguments": [ - { - "type": "reference", - "id": 11, - "name": "T" - } - ], - "name": "SupabaseQueryBuilder" - }, - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.throwOnError" - } - } - ], - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.throwOnError" - } - }, - { - "id": 68, - "name": "update", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 65, - "character": 4 - } - ], - "signatures": [ - { - "id": 69, - "name": "update", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Performs an UPDATE on the table." - }, - "parameters": [ - { - "id": 70, - "name": "values", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The values to update." - }, - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 11, - "name": "T" - } - ], - "qualifiedName": "Partial", - "package": "typescript", - "name": "Partial" - } - }, - { - "id": 71, - "name": "__namedParameters", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 72, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 74, - "name": "count", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 67, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "literal", - "value": "exact" - }, - { - "type": "literal", - "value": "planned" - }, - { - "type": "literal", - "value": "estimated" - } - ] - } - }, - { - "id": 73, - "name": "returning", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 66, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "minimal" - }, - { - "type": "literal", - "value": "representation" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [74, 73] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 11, - "name": "T" - } - ], - "qualifiedName": "PostgrestFilterBuilder", - "package": "@supabase/postgrest-js", - "name": "default" - }, - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.update" - } - } - ], - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.update" - } - }, - { - "id": 59, - "name": "upsert", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExternal": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 52, - "character": 4 - } - ], - "signatures": [ - { - "id": 60, - "name": "upsert", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "Performs an UPSERT into the table." - }, - "parameters": [ - { - "id": 61, - "name": "values", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true - }, - "comment": { - "shortText": "The values to insert." - }, - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 11, - "name": "T" - } - ], - "qualifiedName": "Partial", - "package": "typescript", - "name": "Partial" - }, - { - "type": "array", - "elementType": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 11, - "name": "T" - } - ], - "qualifiedName": "Partial", - "package": "typescript", - "name": "Partial" - } - } - ] - } - }, - { - "id": 62, - "name": "__namedParameters", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isExternal": true, - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 63, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": { - "isExternal": true - }, - "children": [ - { - "id": 66, - "name": "count", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 55, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "literal", - "value": "exact" - }, - { - "type": "literal", - "value": "planned" - }, - { - "type": "literal", - "value": "estimated" - } - ] - } - }, - { - "id": 67, - "name": "ignoreDuplicates", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 56, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 64, - "name": "onConflict", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 53, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 65, - "name": "returning", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/postgrest-js/dist/module/lib/PostgrestQueryBuilder.d.ts", - "line": 54, - "character": 8 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": "minimal" - }, - { - "type": "literal", - "value": "representation" - } - ] - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [66, 67, 64, 65] - } - ] - } - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "id": 11, - "name": "T" - } - ], - "qualifiedName": "PostgrestFilterBuilder", - "package": "@supabase/postgrest-js", - "name": "default" - }, - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.upsert" - } - } - ], - "inheritedFrom": { - "type": "reference", - "name": "PostgrestQueryBuilder.upsert" - } } ], "groups": [ { "title": "Constructors", "kind": 512, - "children": [9] + "children": [3] }, { "title": "Properties", "kind": 1024, - "children": [27, 26, 28, 25, 29, 96, 88, 91, 83, 81, 87, 89, 90, 82] + "children": [21, 20, 22, 19, 23] }, { "title": "Methods", "kind": 2048, - "children": [75, 44, 30, 37, 100, 97, 68, 59] + "children": [24] } ], "sources": [ @@ -20283,7 +2318,7 @@ ], "typeParameter": [ { - "id": 112, + "id": 31, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -20296,7 +2331,7 @@ "typeArguments": [ { "type": "reference", - "id": 11, + "id": 5, "name": "T" } ], @@ -20311,7 +2346,7 @@ { "title": "Classes", "kind": 128, - "children": [8] + "children": [2] } ], "sources": [ @@ -20323,21 +2358,21 @@ ] }, { - "id": 113, + "id": 32, "name": "lib/SupabaseRealtimeClient", "kind": 2, "kindString": "Module", "flags": {}, "children": [ { - "id": 114, + "id": 33, "name": "SupabaseRealtimeClient", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { - "id": 115, + "id": 34, "name": "constructor", "kind": 512, "kindString": "Constructor", @@ -20351,40 +2386,39 @@ ], "signatures": [ { - "id": 116, + "id": 35, "name": "new SupabaseRealtimeClient", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { - "id": 117, + "id": 36, "name": "socket", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 810, "qualifiedName": "RealtimeClient", "package": "@supabase/realtime-js", "name": "default" } }, { - "id": 118, + "id": 37, "name": "headers", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 171, + "id": 74, "name": "GenericObject" } }, { - "id": 119, + "id": 38, "name": "schema", "kind": 32768, "kindString": "Parameter", @@ -20395,7 +2429,7 @@ } }, { - "id": 120, + "id": 39, "name": "tableName", "kind": 32768, "kindString": "Parameter", @@ -20408,14 +2442,14 @@ ], "type": { "type": "reference", - "id": 114, + "id": 33, "name": "SupabaseRealtimeClient" } } ] }, { - "id": 121, + "id": 40, "name": "subscription", "kind": 1024, "kindString": "Property", @@ -20429,14 +2463,13 @@ ], "type": { "type": "reference", - "id": 927, "qualifiedName": "RealtimeSubscription", "package": "@supabase/realtime-js", "name": "default" } }, { - "id": 122, + "id": 41, "name": "getPayloadRecords", "kind": 2048, "kindString": "Method", @@ -20452,14 +2485,14 @@ ], "signatures": [ { - "id": 123, + "id": 42, "name": "getPayloadRecords", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 124, + "id": 43, "name": "payload", "kind": 32768, "kindString": "Parameter", @@ -20473,22 +2506,29 @@ "type": { "type": "reflection", "declaration": { - "id": 125, + "id": 44, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 126, + "id": 45, "name": "new", "kind": 1024, "kindString": "Property", "flags": {}, + "sources": [ + { + "fileName": "src/lib/SupabaseRealtimeClient.ts", + "line": 21, + "character": 6 + } + ], "type": { "type": "reflection", "declaration": { - "id": 127, + "id": 46, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -20498,15 +2538,22 @@ "defaultValue": "{}" }, { - "id": 128, + "id": 47, "name": "old", "kind": 1024, "kindString": "Property", "flags": {}, + "sources": [ + { + "fileName": "src/lib/SupabaseRealtimeClient.ts", + "line": 22, + "character": 6 + } + ], "type": { "type": "reflection", "declaration": { - "id": 129, + "id": 48, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -20520,7 +2567,7 @@ { "title": "Properties", "kind": 1024, - "children": [126, 128] + "children": [45, 47] } ] } @@ -20529,7 +2576,7 @@ ] }, { - "id": 130, + "id": 49, "name": "on", "kind": 2048, "kindString": "Method", @@ -20543,7 +2590,7 @@ ], "signatures": [ { - "id": 131, + "id": 50, "name": "on", "kind": 4096, "kindString": "Call signature", @@ -20553,7 +2600,7 @@ }, "parameters": [ { - "id": 132, + "id": 51, "name": "event", "kind": 32768, "kindString": "Parameter", @@ -20563,12 +2610,12 @@ }, "type": { "type": "reference", - "id": 199, + "id": 102, "name": "SupabaseEventTypes" } }, { - "id": 133, + "id": 52, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -20579,28 +2626,28 @@ "type": { "type": "reflection", "declaration": { - "id": 134, + "id": 53, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "signatures": [ { - "id": 135, + "id": 54, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 136, + "id": 55, "name": "payload", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", - "id": 189, + "id": 92, "typeArguments": [ { "type": "intrinsic", @@ -20623,14 +2670,14 @@ ], "type": { "type": "reference", - "id": 114, + "id": 33, "name": "SupabaseRealtimeClient" } } ] }, { - "id": 137, + "id": 56, "name": "subscribe", "kind": 2048, "kindString": "Method", @@ -20644,7 +2691,7 @@ ], "signatures": [ { - "id": 138, + "id": 57, "name": "subscribe", "kind": 4096, "kindString": "Call signature", @@ -20654,7 +2701,7 @@ }, "parameters": [ { - "id": 139, + "id": 58, "name": "callback", "kind": 32768, "kindString": "Parameter", @@ -20670,7 +2717,6 @@ ], "type": { "type": "reference", - "id": 927, "qualifiedName": "RealtimeSubscription", "package": "@supabase/realtime-js", "name": "default" @@ -20683,17 +2729,17 @@ { "title": "Constructors", "kind": 512, - "children": [115] + "children": [34] }, { "title": "Properties", "kind": 1024, - "children": [121] + "children": [40] }, { "title": "Methods", "kind": 2048, - "children": [122, 130, 137] + "children": [41, 49, 56] } ], "sources": [ @@ -20709,7 +2755,7 @@ { "title": "Classes", "kind": 128, - "children": [114] + "children": [33] } ], "sources": [ @@ -20721,14 +2767,14 @@ ] }, { - "id": 140, + "id": 59, "name": "lib/constants", "kind": 2, "kindString": "Module", "flags": {}, "children": [ { - "id": 141, + "id": 60, "name": "DEFAULT_HEADERS", "kind": 32, "kindString": "Variable", @@ -20745,18 +2791,25 @@ "type": { "type": "reflection", "declaration": { - "id": 142, + "id": 61, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 143, + "id": 62, "name": "X-Client-Info", "kind": 1024, "kindString": "Property", "flags": {}, + "sources": [ + { + "fileName": "src/lib/constants.ts", + "line": 3, + "character": 33 + } + ], "type": { "type": "intrinsic", "name": "string" @@ -20768,7 +2821,7 @@ { "title": "Properties", "kind": 1024, - "children": [143] + "children": [62] } ] } @@ -20776,7 +2829,7 @@ "defaultValue": "..." }, { - "id": 144, + "id": 63, "name": "STORAGE_KEY", "kind": 32, "kindString": "Variable", @@ -20801,7 +2854,7 @@ { "title": "Variables", "kind": 32, - "children": [141, 144] + "children": [60, 63] } ], "sources": [ @@ -20813,14 +2866,14 @@ ] }, { - "id": 145, + "id": 64, "name": "lib/helpers", "kind": 2, "kindString": "Module", "flags": {}, "children": [ { - "id": 151, + "id": 70, "name": "isBrowser", "kind": 64, "kindString": "Function", @@ -20834,7 +2887,7 @@ ], "signatures": [ { - "id": 152, + "id": 71, "name": "isBrowser", "kind": 4096, "kindString": "Call signature", @@ -20847,7 +2900,7 @@ ] }, { - "id": 148, + "id": 67, "name": "stripTrailingSlash", "kind": 64, "kindString": "Function", @@ -20861,14 +2914,14 @@ ], "signatures": [ { - "id": 149, + "id": 68, "name": "stripTrailingSlash", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { - "id": 150, + "id": 69, "name": "url", "kind": 32768, "kindString": "Parameter", @@ -20887,7 +2940,7 @@ ] }, { - "id": 146, + "id": 65, "name": "uuid", "kind": 64, "kindString": "Function", @@ -20901,7 +2954,7 @@ ], "signatures": [ { - "id": 147, + "id": 66, "name": "uuid", "kind": 4096, "kindString": "Call signature", @@ -20918,7 +2971,7 @@ { "title": "Functions", "kind": 64, - "children": [151, 148, 146] + "children": [70, 67, 65] } ], "sources": [ @@ -20930,378 +2983,18 @@ ] }, { - "id": 153, + "id": 72, "name": "lib/types", "kind": 2, "kindString": "Module", "flags": {}, "children": [ { - "id": 154, + "id": 73, "name": "SupabaseAuthClientOptions", "kind": 256, "kindString": "Interface", "flags": {}, - "children": [ - { - "id": 161, - "name": "autoRefreshToken", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 43, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "inheritedFrom": { - "type": "reference", - "name": "GoTrueClientOptions.autoRefreshToken" - } - }, - { - "id": 165, - "name": "cookieOptions", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 47, - "character": 8 - } - ], - "type": { - "type": "reference", - "id": 777, - "qualifiedName": "CookieOptions", - "package": "@supabase/gotrue-js", - "name": "CookieOptions" - }, - "inheritedFrom": { - "type": "reference", - "name": "GoTrueClientOptions.cookieOptions" - } - }, - { - "id": 160, - "name": "detectSessionInUrl", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 42, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "inheritedFrom": { - "type": "reference", - "name": "GoTrueClientOptions.detectSessionInUrl" - } - }, - { - "id": 166, - "name": "fetch", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 48, - "character": 8 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 167, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "signatures": [ - { - "id": 168, - "name": "__type", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 169, - "name": "input", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "qualifiedName": "RequestInfo", - "package": "typescript", - "name": "RequestInfo" - } - }, - { - "id": 170, - "name": "init", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "reference", - "qualifiedName": "RequestInit", - "package": "typescript", - "name": "RequestInit" - } - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "qualifiedName": "Response", - "package": "typescript", - "name": "Response" - } - ], - "qualifiedName": "Promise", - "package": "typescript", - "name": "Promise" - } - } - ] - } - }, - "inheritedFrom": { - "type": "reference", - "name": "GoTrueClientOptions.fetch" - } - }, - { - "id": 156, - "name": "headers", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 39, - "character": 8 - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 157, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "indexSignature": { - "id": 158, - "name": "__index", - "kind": 8192, - "kindString": "Index signature", - "flags": {}, - "parameters": [ - { - "id": 159, - "name": "key", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - } - }, - "inheritedFrom": { - "type": "reference", - "name": "GoTrueClientOptions.headers" - } - }, - { - "id": 163, - "name": "localStorage", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 45, - "character": 8 - } - ], - "type": { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "typeArguments": [ - { - "type": "reference", - "qualifiedName": "Storage", - "package": "typescript", - "name": "Storage" - }, - { - "type": "union", - "types": [ - { - "type": "literal", - "value": "getItem" - }, - { - "type": "literal", - "value": "setItem" - }, - { - "type": "literal", - "value": "removeItem" - } - ] - } - ], - "qualifiedName": "Pick", - "package": "typescript", - "name": "Pick" - } - ], - "qualifiedName": "PromisifyMethods", - "package": "@supabase/gotrue-js", - "name": "PromisifyMethods" - }, - "inheritedFrom": { - "type": "reference", - "name": "GoTrueClientOptions.localStorage" - } - }, - { - "id": 164, - "name": "multiTab", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 46, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "inheritedFrom": { - "type": "reference", - "name": "GoTrueClientOptions.multiTab" - } - }, - { - "id": 162, - "name": "persistSession", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 44, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "inheritedFrom": { - "type": "reference", - "name": "GoTrueClientOptions.persistSession" - } - }, - { - "id": 155, - "name": "url", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/@supabase/gotrue-js/dist/module/GoTrueClient.d.ts", - "line": 38, - "character": 8 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "name": "GoTrueClientOptions.url" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [161, 165, 160, 166, 156, 163, 164, 162, 155] - } - ], "sources": [ { "fileName": "src/lib/types.ts", @@ -21317,7 +3010,7 @@ ] }, { - "id": 175, + "id": 78, "name": "Fetch", "kind": 4194304, "kindString": "Type alias", @@ -21333,7 +3026,7 @@ "type": "query", "queryType": { "type": "reference", - "id": 20, + "id": 14, "qualifiedName": "fetch", "package": "typescript", "name": "fetch" @@ -21341,7 +3034,7 @@ } }, { - "id": 171, + "id": 74, "name": "GenericObject", "kind": 4194304, "kindString": "Type alias", @@ -21356,7 +3049,7 @@ "type": { "type": "reflection", "declaration": { - "id": 172, + "id": 75, "name": "__type", "kind": 65536, "kindString": "Type literal", @@ -21369,14 +3062,14 @@ } ], "indexSignature": { - "id": 173, + "id": 76, "name": "__index", "kind": 8192, "kindString": "Index signature", "flags": {}, "parameters": [ { - "id": 174, + "id": 77, "name": "key", "kind": 32768, "flags": {}, @@ -21395,7 +3088,7 @@ } }, { - "id": 176, + "id": 79, "name": "SupabaseClientOptions", "kind": 4194304, "kindString": "Type alias", @@ -21410,14 +3103,14 @@ "type": { "type": "reflection", "declaration": { - "id": 177, + "id": 80, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 180, + "id": 83, "name": "autoRefreshToken", "kind": 1024, "kindString": "Property", @@ -21440,7 +3133,7 @@ } }, { - "id": 188, + "id": 91, "name": "cookieOptions", "kind": 1024, "kindString": "Property", @@ -21465,13 +3158,13 @@ }, "objectType": { "type": "reference", - "id": 154, + "id": 73, "name": "SupabaseAuthClientOptions" } } }, { - "id": 183, + "id": 86, "name": "detectSessionInUrl", "kind": 1024, "kindString": "Property", @@ -21494,7 +3187,7 @@ } }, { - "id": 186, + "id": 89, "name": "fetch", "kind": 1024, "kindString": "Property", @@ -21513,12 +3206,12 @@ ], "type": { "type": "reference", - "id": 175, + "id": 78, "name": "Fetch" } }, { - "id": 179, + "id": 82, "name": "headers", "kind": 1024, "kindString": "Property", @@ -21537,12 +3230,12 @@ ], "type": { "type": "reference", - "id": 171, + "id": 74, "name": "GenericObject" } }, { - "id": 184, + "id": 87, "name": "localStorage", "kind": 1024, "kindString": "Property", @@ -21567,13 +3260,13 @@ }, "objectType": { "type": "reference", - "id": 154, + "id": 73, "name": "SupabaseAuthClientOptions" } } }, { - "id": 181, + "id": 84, "name": "multiTab", "kind": 1024, "kindString": "Property", @@ -21596,7 +3289,7 @@ } }, { - "id": 182, + "id": 85, "name": "persistSession", "kind": 1024, "kindString": "Property", @@ -21619,7 +3312,7 @@ } }, { - "id": 185, + "id": 88, "name": "realtime", "kind": 1024, "kindString": "Property", @@ -21638,14 +3331,13 @@ ], "type": { "type": "reference", - "id": 909, "qualifiedName": "Options", "package": "@supabase/realtime-js", "name": "RealtimeClientOptions" } }, { - "id": 178, + "id": 81, "name": "schema", "kind": 1024, "kindString": "Property", @@ -21668,7 +3360,7 @@ } }, { - "id": 187, + "id": 90, "name": "shouldThrowOnError", "kind": 1024, "kindString": "Property", @@ -21695,7 +3387,7 @@ { "title": "Properties", "kind": 1024, - "children": [180, 188, 183, 186, 179, 184, 181, 182, 185, 178, 187] + "children": [83, 91, 86, 89, 82, 87, 84, 85, 88, 81, 90] } ], "sources": [ @@ -21709,7 +3401,7 @@ } }, { - "id": 199, + "id": 102, "name": "SupabaseEventTypes", "kind": 4194304, "kindString": "Type alias", @@ -21744,7 +3436,7 @@ } }, { - "id": 189, + "id": 92, "name": "SupabaseRealtimePayload", "kind": 4194304, "kindString": "Type alias", @@ -21758,7 +3450,7 @@ ], "typeParameter": [ { - "id": 198, + "id": 101, "name": "T", "kind": 131072, "kindString": "Type parameter", @@ -21768,14 +3460,14 @@ "type": { "type": "reflection", "declaration": { - "id": 190, + "id": 93, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { - "id": 191, + "id": 94, "name": "commit_timestamp", "kind": 1024, "kindString": "Property", @@ -21793,7 +3485,7 @@ } }, { - "id": 197, + "id": 100, "name": "errors", "kind": 1024, "kindString": "Property", @@ -21823,7 +3515,7 @@ } }, { - "id": 192, + "id": 95, "name": "eventType", "kind": 1024, "kindString": "Property", @@ -21854,7 +3546,7 @@ } }, { - "id": 195, + "id": 98, "name": "new", "kind": 1024, "kindString": "Property", @@ -21871,12 +3563,12 @@ ], "type": { "type": "reference", - "id": 198, + "id": 101, "name": "T" } }, { - "id": 196, + "id": 99, "name": "old", "kind": 1024, "kindString": "Property", @@ -21893,12 +3585,12 @@ ], "type": { "type": "reference", - "id": 198, + "id": 101, "name": "T" } }, { - "id": 193, + "id": 96, "name": "schema", "kind": 1024, "kindString": "Property", @@ -21916,7 +3608,7 @@ } }, { - "id": 194, + "id": 97, "name": "table", "kind": 1024, "kindString": "Property", @@ -21938,7 +3630,7 @@ { "title": "Properties", "kind": 1024, - "children": [191, 197, 192, 195, 196, 193, 194] + "children": [94, 100, 95, 98, 99, 96, 97] } ], "sources": [ @@ -21956,12 +3648,12 @@ { "title": "Interfaces", "kind": 256, - "children": [154] + "children": [73] }, { - "title": "Type aliases", + "title": "Type Aliases", "kind": 4194304, - "children": [175, 171, 176, 199, 189] + "children": [78, 74, 79, 102, 92] } ], "sources": [ @@ -21973,14 +3665,14 @@ ] }, { - "id": 200, + "id": 103, "name": "lib/version", "kind": 2, "kindString": "Module", "flags": {}, "children": [ { - "id": 201, + "id": 104, "name": "version", "kind": 32, "kindString": "Variable", @@ -22005,7 +3697,7 @@ { "title": "Variables", "kind": 32, - "children": [201] + "children": [104] } ], "sources": [ @@ -22021,7 +3713,7 @@ { "title": "Modules", "kind": 2, - "children": [1, 7, 113, 140, 145, 153, 200] + "children": [105, 1, 32, 59, 64, 72, 103] } ] } diff --git a/spec/generator/index.ts b/spec/generator/index.ts deleted file mode 100644 index 4c03b2a4848..00000000000 --- a/spec/generator/index.ts +++ /dev/null @@ -1,21 +0,0 @@ -import DocGenerator from './src/docs' - -const main = (command: string[], options: any) => { - handleInput(command[0], options) -} - -// Run everything -const argv = require('minimist')(process.argv.slice(2)) -main(argv['_'], argv) - -function handleInput(command: string, options: any) { - switch (command) { - case 'gen': - DocGenerator(options) - break - - default: - console.log('Unrecognized command:', command) - break - } -} diff --git a/spec/generator/package-lock.json b/spec/generator/package-lock.json deleted file mode 100644 index a63a45bf9d3..00000000000 --- a/spec/generator/package-lock.json +++ /dev/null @@ -1,3183 +0,0 @@ -{ - "name": "@supabase/generator", - "version": "0.0.0", - "lockfileVersion": 2, - "requires": true, - "packages": { - "": { - "name": "@supabase/generator", - "version": "0.0.0", - "license": "MIT", - "dependencies": { - "json-stringify-safe": "^5.0.1" - }, - "devDependencies": { - "@apidevtools/swagger-cli": "^4.0.4", - "@types/json-stringify-safe": "^5.0.0", - "@types/lodash": "^4.14.182", - "ejs": "^3.1.8", - "js-yaml": "^4.1.0", - "lodash": "^4.17.21", - "npm-run-all": "^4.1.5", - "openapi-types": "^12.0.0", - "prettier": "^2.7.1", - "ts-node": "^10.9.1" - } - }, - "node_modules/@apidevtools/json-schema-ref-parser": { - "version": "9.0.6", - "resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-9.0.6.tgz", - "integrity": "sha512-M3YgsLjI0lZxvrpeGVk9Ap032W6TPQkH6pRAZz81Ac3WUNF79VQooAFnp8umjvVzUmD93NkogxEwbSce7qMsUg==", - "dev": true, - "dependencies": { - "@jsdevtools/ono": "^7.1.3", - "call-me-maybe": "^1.0.1", - "js-yaml": "^3.13.1" - } - }, - "node_modules/@apidevtools/json-schema-ref-parser/node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, - "dependencies": { - "sprintf-js": "~1.0.2" - } - }, - "node_modules/@apidevtools/json-schema-ref-parser/node_modules/js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "dev": true, - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/@apidevtools/openapi-schemas": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@apidevtools/openapi-schemas/-/openapi-schemas-2.1.0.tgz", - "integrity": "sha512-Zc1AlqrJlX3SlpupFGpiLi2EbteyP7fXmUOGup6/DnkRgjP9bgMM/ag+n91rsv0U1Gpz0H3VILA/o3bW7Ua6BQ==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/@apidevtools/swagger-cli": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/@apidevtools/swagger-cli/-/swagger-cli-4.0.4.tgz", - "integrity": "sha512-hdDT3B6GLVovCsRZYDi3+wMcB1HfetTU20l2DC8zD3iFRNMC6QNAZG5fo/6PYeHWBEv7ri4MvnlKodhNB0nt7g==", - "dev": true, - "dependencies": { - "@apidevtools/swagger-parser": "^10.0.1", - "chalk": "^4.1.0", - "js-yaml": "^3.14.0", - "yargs": "^15.4.1" - }, - "bin": { - "swagger-cli": "bin/swagger-cli.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@apidevtools/swagger-cli/node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, - "dependencies": { - "sprintf-js": "~1.0.2" - } - }, - "node_modules/@apidevtools/swagger-cli/node_modules/js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "dev": true, - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/@apidevtools/swagger-methods": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/@apidevtools/swagger-methods/-/swagger-methods-3.0.2.tgz", - "integrity": "sha512-QAkD5kK2b1WfjDS/UQn/qQkbwF31uqRjPTrsCs5ZG9BQGAkjwvqGFjjPqAuzac/IYzpPtRzjCP1WrTuAIjMrXg==", - "dev": true - }, - "node_modules/@apidevtools/swagger-parser": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/@apidevtools/swagger-parser/-/swagger-parser-10.1.0.tgz", - "integrity": "sha512-9Kt7EuS/7WbMAUv2gSziqjvxwDbFSg3Xeyfuj5laUODX8o/k/CpsAKiQ8W7/R88eXFTMbJYg6+7uAmOWNKmwnw==", - "dev": true, - "dependencies": { - "@apidevtools/json-schema-ref-parser": "9.0.6", - "@apidevtools/openapi-schemas": "^2.1.0", - "@apidevtools/swagger-methods": "^3.0.2", - "@jsdevtools/ono": "^7.1.3", - "ajv": "^8.6.3", - "ajv-draft-04": "^1.0.0", - "call-me-maybe": "^1.0.1" - }, - "peerDependencies": { - "openapi-types": ">=7" - } - }, - "node_modules/@cspotcode/source-map-support": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", - "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", - "dev": true, - "dependencies": { - "@jridgewell/trace-mapping": "0.3.9" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", - "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", - "dev": true, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.14", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", - "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", - "dev": true - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.9", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", - "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", - "dev": true, - "dependencies": { - "@jridgewell/resolve-uri": "^3.0.3", - "@jridgewell/sourcemap-codec": "^1.4.10" - } - }, - "node_modules/@jsdevtools/ono": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/@jsdevtools/ono/-/ono-7.1.3.tgz", - "integrity": "sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==", - "dev": true - }, - "node_modules/@tsconfig/node10": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", - "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==", - "dev": true - }, - "node_modules/@tsconfig/node12": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", - "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", - "dev": true - }, - "node_modules/@tsconfig/node14": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", - "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", - "dev": true - }, - "node_modules/@tsconfig/node16": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.3.tgz", - "integrity": "sha512-yOlFc+7UtL/89t2ZhjPvvB/DeAr3r+Dq58IgzsFkOAvVC6NMJXmCGjbptdXdR9qsX7pKcTL+s87FtYREi2dEEQ==", - "dev": true - }, - "node_modules/@types/json-stringify-safe": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@types/json-stringify-safe/-/json-stringify-safe-5.0.0.tgz", - "integrity": "sha512-UUA1sH0RSRROdInuDOA1yoRzbi5xVFD1RHCoOvNRPTNwR8zBkJ/84PZ6NhKVDtKp0FTeIccJCdQz1X2aJPr4uw==", - "dev": true - }, - "node_modules/@types/lodash": { - "version": "4.14.182", - "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.182.tgz", - "integrity": "sha512-/THyiqyQAP9AfARo4pF+aCGcyiQ94tX/Is2I7HofNRqoYLgN1PBoOWu2/zTA5zMxzP5EFutMtWtGAFRKUe961Q==", - "dev": true - }, - "node_modules/@types/node": { - "version": "18.6.3", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.6.3.tgz", - "integrity": "sha512-6qKpDtoaYLM+5+AFChLhHermMQxc3TOEFIDzrZLPRGHPrLEwqFkkT5Kx3ju05g6X7uDPazz3jHbKPX0KzCjntg==", - "dev": true, - "peer": true - }, - "node_modules/acorn": { - "version": "8.8.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.0.tgz", - "integrity": "sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w==", - "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-walk": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", - "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", - "dev": true, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/ajv": { - "version": "8.11.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.11.0.tgz", - "integrity": "sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg==", - "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ajv-draft-04": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/ajv-draft-04/-/ajv-draft-04-1.0.0.tgz", - "integrity": "sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==", - "dev": true, - "peerDependencies": { - "ajv": "^8.5.0" - }, - "peerDependenciesMeta": { - "ajv": { - "optional": true - } - } - }, - "node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/arg": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", - "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", - "dev": true - }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "node_modules/async": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz", - "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==", - "dev": true - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true - }, - "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/call-bind": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/call-me-maybe": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/call-me-maybe/-/call-me-maybe-1.0.1.tgz", - "integrity": "sha512-wCyFsDQkKPwwF8BDwOiWNx/9K45L/hvggQiDbve+viMNMQnWhrlYIuBk09offfwCRtCO9P6XwUttufzU11WCVw==", - "dev": true - }, - "node_modules/camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/cliui": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", - "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", - "dev": true, - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^6.2.0" - } - }, - "node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true - }, - "node_modules/create-require": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", - "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", - "dev": true - }, - "node_modules/cross-spawn": { - "version": "6.0.5", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", - "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", - "dev": true, - "dependencies": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - }, - "engines": { - "node": ">=4.8" - } - }, - "node_modules/decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/define-properties": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.4.tgz", - "integrity": "sha512-uckOqKcfaVvtBdsVkdPv3XjveQJsNQqmhXgRi8uhvWWuPYZCNlzT8qAyblUgNoXdHdjMTzAqeGjAoli8f+bzPA==", - "dev": true, - "dependencies": { - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/diff": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", - "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", - "dev": true, - "engines": { - "node": ">=0.3.1" - } - }, - "node_modules/ejs": { - "version": "3.1.8", - "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.8.tgz", - "integrity": "sha512-/sXZeMlhS0ArkfX2Aw780gJzXSMPnKjtspYZv+f3NiKLlubezAHDU5+9xz6gd3/NhG3txQCo6xlglmTS+oTGEQ==", - "dev": true, - "dependencies": { - "jake": "^10.8.5" - }, - "bin": { - "ejs": "bin/cli.js" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "node_modules/error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", - "dev": true, - "dependencies": { - "is-arrayish": "^0.2.1" - } - }, - "node_modules/es-abstract": { - "version": "1.20.1", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.20.1.tgz", - "integrity": "sha512-WEm2oBhfoI2sImeM4OF2zE2V3BYdSF+KnSi9Sidz51fQHd7+JuF8Xgcj9/0o+OWeIeIS/MiuNnlruQrJf16GQA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "es-to-primitive": "^1.2.1", - "function-bind": "^1.1.1", - "function.prototype.name": "^1.1.5", - "get-intrinsic": "^1.1.1", - "get-symbol-description": "^1.0.0", - "has": "^1.0.3", - "has-property-descriptors": "^1.0.0", - "has-symbols": "^1.0.3", - "internal-slot": "^1.0.3", - "is-callable": "^1.2.4", - "is-negative-zero": "^2.0.2", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.2", - "is-string": "^1.0.7", - "is-weakref": "^1.0.2", - "object-inspect": "^1.12.0", - "object-keys": "^1.1.1", - "object.assign": "^4.1.2", - "regexp.prototype.flags": "^1.4.3", - "string.prototype.trimend": "^1.0.5", - "string.prototype.trimstart": "^1.0.5", - "unbox-primitive": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/es-to-primitive": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", - "dev": true, - "dependencies": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true, - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true - }, - "node_modules/filelist": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", - "integrity": "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==", - "dev": true, - "dependencies": { - "minimatch": "^5.0.1" - } - }, - "node_modules/filelist/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/filelist/node_modules/minimatch": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.0.tgz", - "integrity": "sha512-9TPBGGak4nHfGZsPBohm9AWg6NoT7QTCehS3BIJABslyZbzxfV78QM2Y6+i741OPZIafFAaiiEMh5OyIrJPgtg==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "dev": true - }, - "node_modules/function.prototype.name": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", - "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.0", - "functions-have-names": "^1.2.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/functions-have-names": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", - "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true, - "engines": { - "node": "6.* || 8.* || >= 10.*" - } - }, - "node_modules/get-intrinsic": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.2.tgz", - "integrity": "sha512-Jfm3OyCxHh9DJyc28qGk+JmfkpO41A4XkneDSujN9MDXrm4oDKdHvndhZ2dN94+ERNfkYJWDclW6k2L/ZGHjXA==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-symbol-description": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", - "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/graceful-fs": { - "version": "4.2.10", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", - "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", - "dev": true - }, - "node_modules/has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.1" - }, - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/has-bigints": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", - "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/has-property-descriptors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", - "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", - "dev": true, - "dependencies": { - "get-intrinsic": "^1.1.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-tostringtag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", - "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", - "dev": true, - "dependencies": { - "has-symbols": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/hosted-git-info": { - "version": "2.8.9", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", - "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", - "dev": true - }, - "node_modules/internal-slot": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.3.tgz", - "integrity": "sha512-O0DB1JC/sPyZl7cIo78n5dR7eUSwwpYPiXRhTzNxZVAMUuB8vlnRFyLxdrVToks6XPLVnFfbzaVd5WLjhgg+vA==", - "dev": true, - "dependencies": { - "get-intrinsic": "^1.1.0", - "has": "^1.0.3", - "side-channel": "^1.0.4" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", - "dev": true - }, - "node_modules/is-bigint": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", - "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", - "dev": true, - "dependencies": { - "has-bigints": "^1.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-boolean-object": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", - "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-callable": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.4.tgz", - "integrity": "sha512-nsuwtxZfMX67Oryl9LCQ+upnC0Z0BgpwntpS89m1H/TLF0zNfzfLMV/9Wa/6MZsj0acpEjAO0KF1xT6ZdLl95w==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-core-module": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.10.0.tgz", - "integrity": "sha512-Erxj2n/LDAZ7H8WNJXd9tw38GYM3dv8rk8Zcs+jJuxYTW7sozH+SS8NtrSjVL1/vpLvWi1hxy96IzjJ3EHTJJg==", - "dev": true, - "dependencies": { - "has": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-date-object": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", - "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", - "dev": true, - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-negative-zero": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", - "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-number-object": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", - "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", - "dev": true, - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-regex": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", - "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-shared-array-buffer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", - "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-string": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", - "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", - "dev": true, - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-symbol": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", - "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", - "dev": true, - "dependencies": { - "has-symbols": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-weakref": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", - "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true - }, - "node_modules/jake": { - "version": "10.8.5", - "resolved": "https://registry.npmjs.org/jake/-/jake-10.8.5.tgz", - "integrity": "sha512-sVpxYeuAhWt0OTWITwT98oyV0GsXyMlXCF+3L1SuafBVUIr/uILGRB+NqwkzhgXKvoJpDIpQvqkUALgdmQsQxw==", - "dev": true, - "dependencies": { - "async": "^3.2.3", - "chalk": "^4.0.2", - "filelist": "^1.0.1", - "minimatch": "^3.0.4" - }, - "bin": { - "jake": "bin/cli.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/json-parse-better-errors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", - "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", - "dev": true - }, - "node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true - }, - "node_modules/json-stringify-safe": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==" - }, - "node_modules/load-json-file": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", - "integrity": "sha512-Kx8hMakjX03tiGTLAIdJ+lL0htKnXjEZN6hk/tozf/WOuYGdZBJrZ+rCJRbVCugsjB3jMLn9746NsQIf5VjBMw==", - "dev": true, - "dependencies": { - "graceful-fs": "^4.1.2", - "parse-json": "^4.0.0", - "pify": "^3.0.0", - "strip-bom": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "dev": true - }, - "node_modules/make-error": { - "version": "1.3.6", - "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", - "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", - "dev": true - }, - "node_modules/memorystream": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/memorystream/-/memorystream-0.3.1.tgz", - "integrity": "sha512-S3UwM3yj5mtUSEfP41UZmt/0SCoVYUcU1rkXv+BQ5Ig8ndL4sPoJNBUJERafdPb5jjHJGuMgytgKvKIf58XNBw==", - "dev": true, - "engines": { - "node": ">= 0.10.0" - } - }, - "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/nice-try": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", - "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", - "dev": true - }, - "node_modules/normalize-package-data": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", - "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", - "dev": true, - "dependencies": { - "hosted-git-info": "^2.1.4", - "resolve": "^1.10.0", - "semver": "2 || 3 || 4 || 5", - "validate-npm-package-license": "^3.0.1" - } - }, - "node_modules/npm-run-all": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/npm-run-all/-/npm-run-all-4.1.5.tgz", - "integrity": "sha512-Oo82gJDAVcaMdi3nuoKFavkIHBRVqQ1qvMb+9LHk/cF4P6B2m8aP04hGf7oL6wZ9BuGwX1onlLhpuoofSyoQDQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "chalk": "^2.4.1", - "cross-spawn": "^6.0.5", - "memorystream": "^0.3.1", - "minimatch": "^3.0.4", - "pidtree": "^0.3.0", - "read-pkg": "^3.0.0", - "shell-quote": "^1.6.1", - "string.prototype.padend": "^3.0.0" - }, - "bin": { - "npm-run-all": "bin/npm-run-all/index.js", - "run-p": "bin/run-p/index.js", - "run-s": "bin/run-s/index.js" - }, - "engines": { - "node": ">= 4" - } - }, - "node_modules/npm-run-all/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/npm-run-all/node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/npm-run-all/node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/npm-run-all/node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "dev": true - }, - "node_modules/npm-run-all/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/npm-run-all/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/object-inspect": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz", - "integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "dev": true, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/object.assign": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.3.tgz", - "integrity": "sha512-ZFJnX3zltyjcYJL0RoCJuzb+11zWGyaDbjgxZbdV7rFEcHQuYxrZqhow67aA7xpes6LhojyFDaBKAFfogQrikA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "has-symbols": "^1.0.3", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/openapi-types": { - "version": "12.0.0", - "resolved": "https://registry.npmjs.org/openapi-types/-/openapi-types-12.0.0.tgz", - "integrity": "sha512-6Wd9k8nmGQHgCbehZCP6wwWcfXcvinhybUTBatuhjRsCxUIujuYFZc9QnGeae75CyHASewBtxs0HX/qwREReUw==", - "dev": true - }, - "node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/parse-json": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha512-aOIos8bujGN93/8Ox/jPLh7RwVnPEysynVFE+fQZyg6jKELEHwzgKdLRFHUgXJL6kylijVSBC4BvN9OmsB48Rw==", - "dev": true, - "dependencies": { - "error-ex": "^1.3.1", - "json-parse-better-errors": "^1.0.1" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/path-key": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true - }, - "node_modules/path-type": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", - "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", - "dev": true, - "dependencies": { - "pify": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/pidtree": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/pidtree/-/pidtree-0.3.1.tgz", - "integrity": "sha512-qQbW94hLHEqCg7nhby4yRC7G2+jYHY4Rguc2bjw7Uug4GIJuu1tvf2uHaZv5Q8zdt+WKJ6qK1FOI6amaWUo5FA==", - "dev": true, - "bin": { - "pidtree": "bin/pidtree.js" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/pify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/prettier": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz", - "integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==", - "dev": true, - "bin": { - "prettier": "bin-prettier.js" - }, - "engines": { - "node": ">=10.13.0" - }, - "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" - } - }, - "node_modules/punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/read-pkg": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", - "integrity": "sha512-BLq/cCO9two+lBgiTYNqD6GdtK8s4NpaWrl6/rCO9w0TUS8oJl7cmToOZfRYllKTISY6nt1U7jQ53brmKqY6BA==", - "dev": true, - "dependencies": { - "load-json-file": "^4.0.0", - "normalize-package-data": "^2.3.2", - "path-type": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/regexp.prototype.flags": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz", - "integrity": "sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "functions-have-names": "^1.2.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/require-main-filename": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", - "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", - "dev": true - }, - "node_modules/resolve": { - "version": "1.22.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", - "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", - "dev": true, - "dependencies": { - "is-core-module": "^2.9.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true, - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", - "dev": true - }, - "node_modules/shebang-command": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", - "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==", - "dev": true, - "dependencies": { - "shebang-regex": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/shebang-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/shell-quote": { - "version": "1.7.3", - "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.7.3.tgz", - "integrity": "sha512-Vpfqwm4EnqGdlsBFNmHhxhElJYrdfcxPThu+ryKS5J8L/fhAwLazFZtq+S+TWZ9ANj2piSQLGj6NQg+lKPmxrw==", - "dev": true - }, - "node_modules/side-channel": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", - "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.0", - "get-intrinsic": "^1.0.2", - "object-inspect": "^1.9.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/spdx-correct": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz", - "integrity": "sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==", - "dev": true, - "dependencies": { - "spdx-expression-parse": "^3.0.0", - "spdx-license-ids": "^3.0.0" - } - }, - "node_modules/spdx-exceptions": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", - "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", - "dev": true - }, - "node_modules/spdx-expression-parse": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", - "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", - "dev": true, - "dependencies": { - "spdx-exceptions": "^2.1.0", - "spdx-license-ids": "^3.0.0" - } - }, - "node_modules/spdx-license-ids": { - "version": "3.0.11", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.11.tgz", - "integrity": "sha512-Ctl2BrFiM0X3MANYgj3CkygxhRmr9mi6xhejbdO960nF6EDJApTYpn0BQnDKlnNBULKiCN1n3w9EBkHK8ZWg+g==", - "dev": true - }, - "node_modules/sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", - "dev": true - }, - "node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/string.prototype.padend": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/string.prototype.padend/-/string.prototype.padend-3.1.3.tgz", - "integrity": "sha512-jNIIeokznm8SD/TZISQsZKYu7RJyheFNt84DUPrh482GC8RVp2MKqm2O5oBRdGxbDQoXrhhWtPIWQOiy20svUg==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trimend": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.5.tgz", - "integrity": "sha512-I7RGvmjV4pJ7O3kdf+LXFpVfdNOxtCW/2C8f6jNiW4+PQchwxkCDzlk1/7p+Wl4bqFIZeF47qAHXLuHHWKAxog==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.19.5" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trimstart": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.5.tgz", - "integrity": "sha512-THx16TJCGlsN0o6dl2o6ncWUsdgnLRSA23rRE5pyGBw/mLr3Ej/R2LaqCtgP8VNMGZsvMWnf9ooZPyY2bHvUFg==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.19.5" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/ts-node": { - "version": "10.9.1", - "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz", - "integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==", - "dev": true, - "dependencies": { - "@cspotcode/source-map-support": "^0.8.0", - "@tsconfig/node10": "^1.0.7", - "@tsconfig/node12": "^1.0.7", - "@tsconfig/node14": "^1.0.0", - "@tsconfig/node16": "^1.0.2", - "acorn": "^8.4.1", - "acorn-walk": "^8.1.1", - "arg": "^4.1.0", - "create-require": "^1.1.0", - "diff": "^4.0.1", - "make-error": "^1.1.1", - "v8-compile-cache-lib": "^3.0.1", - "yn": "3.1.1" - }, - "bin": { - "ts-node": "dist/bin.js", - "ts-node-cwd": "dist/bin-cwd.js", - "ts-node-esm": "dist/bin-esm.js", - "ts-node-script": "dist/bin-script.js", - "ts-node-transpile-only": "dist/bin-transpile.js", - "ts-script": "dist/bin-script-deprecated.js" - }, - "peerDependencies": { - "@swc/core": ">=1.2.50", - "@swc/wasm": ">=1.2.50", - "@types/node": "*", - "typescript": ">=2.7" - }, - "peerDependenciesMeta": { - "@swc/core": { - "optional": true - }, - "@swc/wasm": { - "optional": true - } - } - }, - "node_modules/typescript": { - "version": "4.7.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz", - "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==", - "dev": true, - "peer": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=4.2.0" - } - }, - "node_modules/unbox-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", - "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-bigints": "^1.0.2", - "has-symbols": "^1.0.3", - "which-boxed-primitive": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/v8-compile-cache-lib": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", - "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", - "dev": true - }, - "node_modules/validate-npm-package-license": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", - "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", - "dev": true, - "dependencies": { - "spdx-correct": "^3.0.0", - "spdx-expression-parse": "^3.0.0" - } - }, - "node_modules/which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "dev": true, - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "which": "bin/which" - } - }, - "node_modules/which-boxed-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", - "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", - "dev": true, - "dependencies": { - "is-bigint": "^1.0.1", - "is-boolean-object": "^1.1.0", - "is-number-object": "^1.0.4", - "is-string": "^1.0.5", - "is-symbol": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/which-module": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", - "integrity": "sha512-B+enWhmw6cjfVC7kS8Pj9pCrKSc5txArRyaYGe088shv/FGWH+0Rjx/xPgtsWfsUtS27FkP697E4DDhgrgoc0Q==", - "dev": true - }, - "node_modules/wrap-ansi": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/y18n": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", - "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", - "dev": true - }, - "node_modules/yargs": { - "version": "15.4.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", - "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", - "dev": true, - "dependencies": { - "cliui": "^6.0.0", - "decamelize": "^1.2.0", - "find-up": "^4.1.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^4.2.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^18.1.2" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/yargs-parser": { - "version": "18.1.3", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", - "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", - "dev": true, - "dependencies": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/yn": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", - "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", - "dev": true, - "engines": { - "node": ">=6" - } - } - }, - "dependencies": { - "@apidevtools/json-schema-ref-parser": { - "version": "9.0.6", - "resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-9.0.6.tgz", - "integrity": "sha512-M3YgsLjI0lZxvrpeGVk9Ap032W6TPQkH6pRAZz81Ac3WUNF79VQooAFnp8umjvVzUmD93NkogxEwbSce7qMsUg==", - "dev": true, - "requires": { - "@jsdevtools/ono": "^7.1.3", - "call-me-maybe": "^1.0.1", - "js-yaml": "^3.13.1" - }, - "dependencies": { - "argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, - "requires": { - "sprintf-js": "~1.0.2" - } - }, - "js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "dev": true, - "requires": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - } - } - } - }, - "@apidevtools/openapi-schemas": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@apidevtools/openapi-schemas/-/openapi-schemas-2.1.0.tgz", - "integrity": "sha512-Zc1AlqrJlX3SlpupFGpiLi2EbteyP7fXmUOGup6/DnkRgjP9bgMM/ag+n91rsv0U1Gpz0H3VILA/o3bW7Ua6BQ==", - "dev": true - }, - "@apidevtools/swagger-cli": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/@apidevtools/swagger-cli/-/swagger-cli-4.0.4.tgz", - "integrity": "sha512-hdDT3B6GLVovCsRZYDi3+wMcB1HfetTU20l2DC8zD3iFRNMC6QNAZG5fo/6PYeHWBEv7ri4MvnlKodhNB0nt7g==", - "dev": true, - "requires": { - "@apidevtools/swagger-parser": "^10.0.1", - "chalk": "^4.1.0", - "js-yaml": "^3.14.0", - "yargs": "^15.4.1" - }, - "dependencies": { - "argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, - "requires": { - "sprintf-js": "~1.0.2" - } - }, - "js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "dev": true, - "requires": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - } - } - } - }, - "@apidevtools/swagger-methods": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/@apidevtools/swagger-methods/-/swagger-methods-3.0.2.tgz", - "integrity": "sha512-QAkD5kK2b1WfjDS/UQn/qQkbwF31uqRjPTrsCs5ZG9BQGAkjwvqGFjjPqAuzac/IYzpPtRzjCP1WrTuAIjMrXg==", - "dev": true - }, - "@apidevtools/swagger-parser": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/@apidevtools/swagger-parser/-/swagger-parser-10.1.0.tgz", - "integrity": "sha512-9Kt7EuS/7WbMAUv2gSziqjvxwDbFSg3Xeyfuj5laUODX8o/k/CpsAKiQ8W7/R88eXFTMbJYg6+7uAmOWNKmwnw==", - "dev": true, - "requires": { - "@apidevtools/json-schema-ref-parser": "9.0.6", - "@apidevtools/openapi-schemas": "^2.1.0", - "@apidevtools/swagger-methods": "^3.0.2", - "@jsdevtools/ono": "^7.1.3", - "ajv": "^8.6.3", - "ajv-draft-04": "^1.0.0", - "call-me-maybe": "^1.0.1" - } - }, - "@cspotcode/source-map-support": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", - "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", - "dev": true, - "requires": { - "@jridgewell/trace-mapping": "0.3.9" - } - }, - "@jridgewell/resolve-uri": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", - "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", - "dev": true - }, - "@jridgewell/sourcemap-codec": { - "version": "1.4.14", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", - "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", - "dev": true - }, - "@jridgewell/trace-mapping": { - "version": "0.3.9", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", - "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", - "dev": true, - "requires": { - "@jridgewell/resolve-uri": "^3.0.3", - "@jridgewell/sourcemap-codec": "^1.4.10" - } - }, - "@jsdevtools/ono": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/@jsdevtools/ono/-/ono-7.1.3.tgz", - "integrity": "sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==", - "dev": true - }, - "@tsconfig/node10": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", - "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==", - "dev": true - }, - "@tsconfig/node12": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", - "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", - "dev": true - }, - "@tsconfig/node14": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", - "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", - "dev": true - }, - "@tsconfig/node16": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.3.tgz", - "integrity": "sha512-yOlFc+7UtL/89t2ZhjPvvB/DeAr3r+Dq58IgzsFkOAvVC6NMJXmCGjbptdXdR9qsX7pKcTL+s87FtYREi2dEEQ==", - "dev": true - }, - "@types/json-stringify-safe": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@types/json-stringify-safe/-/json-stringify-safe-5.0.0.tgz", - "integrity": "sha512-UUA1sH0RSRROdInuDOA1yoRzbi5xVFD1RHCoOvNRPTNwR8zBkJ/84PZ6NhKVDtKp0FTeIccJCdQz1X2aJPr4uw==", - "dev": true - }, - "@types/lodash": { - "version": "4.14.182", - "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.182.tgz", - "integrity": "sha512-/THyiqyQAP9AfARo4pF+aCGcyiQ94tX/Is2I7HofNRqoYLgN1PBoOWu2/zTA5zMxzP5EFutMtWtGAFRKUe961Q==", - "dev": true - }, - "@types/node": { - "version": "18.6.3", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.6.3.tgz", - "integrity": "sha512-6qKpDtoaYLM+5+AFChLhHermMQxc3TOEFIDzrZLPRGHPrLEwqFkkT5Kx3ju05g6X7uDPazz3jHbKPX0KzCjntg==", - "dev": true, - "peer": true - }, - "acorn": { - "version": "8.8.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.0.tgz", - "integrity": "sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w==", - "dev": true - }, - "acorn-walk": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", - "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", - "dev": true - }, - "ajv": { - "version": "8.11.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.11.0.tgz", - "integrity": "sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - } - }, - "ajv-draft-04": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/ajv-draft-04/-/ajv-draft-04-1.0.0.tgz", - "integrity": "sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==", - "dev": true, - "requires": {} - }, - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "arg": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", - "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", - "dev": true - }, - "argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "async": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz", - "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==", - "dev": true - }, - "balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true - }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "call-bind": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", - "dev": true, - "requires": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" - } - }, - "call-me-maybe": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/call-me-maybe/-/call-me-maybe-1.0.1.tgz", - "integrity": "sha512-wCyFsDQkKPwwF8BDwOiWNx/9K45L/hvggQiDbve+viMNMQnWhrlYIuBk09offfwCRtCO9P6XwUttufzU11WCVw==", - "dev": true - }, - "camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "cliui": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", - "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", - "dev": true, - "requires": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^6.2.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true - }, - "create-require": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", - "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", - "dev": true - }, - "cross-spawn": { - "version": "6.0.5", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", - "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", - "dev": true, - "requires": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - } - }, - "decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", - "dev": true - }, - "define-properties": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.4.tgz", - "integrity": "sha512-uckOqKcfaVvtBdsVkdPv3XjveQJsNQqmhXgRi8uhvWWuPYZCNlzT8qAyblUgNoXdHdjMTzAqeGjAoli8f+bzPA==", - "dev": true, - "requires": { - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" - } - }, - "diff": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", - "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", - "dev": true - }, - "ejs": { - "version": "3.1.8", - "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.8.tgz", - "integrity": "sha512-/sXZeMlhS0ArkfX2Aw780gJzXSMPnKjtspYZv+f3NiKLlubezAHDU5+9xz6gd3/NhG3txQCo6xlglmTS+oTGEQ==", - "dev": true, - "requires": { - "jake": "^10.8.5" - } - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", - "dev": true, - "requires": { - "is-arrayish": "^0.2.1" - } - }, - "es-abstract": { - "version": "1.20.1", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.20.1.tgz", - "integrity": "sha512-WEm2oBhfoI2sImeM4OF2zE2V3BYdSF+KnSi9Sidz51fQHd7+JuF8Xgcj9/0o+OWeIeIS/MiuNnlruQrJf16GQA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "es-to-primitive": "^1.2.1", - "function-bind": "^1.1.1", - "function.prototype.name": "^1.1.5", - "get-intrinsic": "^1.1.1", - "get-symbol-description": "^1.0.0", - "has": "^1.0.3", - "has-property-descriptors": "^1.0.0", - "has-symbols": "^1.0.3", - "internal-slot": "^1.0.3", - "is-callable": "^1.2.4", - "is-negative-zero": "^2.0.2", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.2", - "is-string": "^1.0.7", - "is-weakref": "^1.0.2", - "object-inspect": "^1.12.0", - "object-keys": "^1.1.1", - "object.assign": "^4.1.2", - "regexp.prototype.flags": "^1.4.3", - "string.prototype.trimend": "^1.0.5", - "string.prototype.trimstart": "^1.0.5", - "unbox-primitive": "^1.0.2" - } - }, - "es-to-primitive": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", - "dev": true, - "requires": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" - } - }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true - }, - "esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true - }, - "fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true - }, - "filelist": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", - "integrity": "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==", - "dev": true, - "requires": { - "minimatch": "^5.0.1" - }, - "dependencies": { - "brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0" - } - }, - "minimatch": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.0.tgz", - "integrity": "sha512-9TPBGGak4nHfGZsPBohm9AWg6NoT7QTCehS3BIJABslyZbzxfV78QM2Y6+i741OPZIafFAaiiEMh5OyIrJPgtg==", - "dev": true, - "requires": { - "brace-expansion": "^2.0.1" - } - } - } - }, - "find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, - "function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "dev": true - }, - "function.prototype.name": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz", - "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.0", - "functions-have-names": "^1.2.2" - } - }, - "functions-have-names": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", - "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", - "dev": true - }, - "get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true - }, - "get-intrinsic": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.2.tgz", - "integrity": "sha512-Jfm3OyCxHh9DJyc28qGk+JmfkpO41A4XkneDSujN9MDXrm4oDKdHvndhZ2dN94+ERNfkYJWDclW6k2L/ZGHjXA==", - "dev": true, - "requires": { - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.3" - } - }, - "get-symbol-description": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", - "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.1" - } - }, - "graceful-fs": { - "version": "4.2.10", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", - "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", - "dev": true - }, - "has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, - "requires": { - "function-bind": "^1.1.1" - } - }, - "has-bigints": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", - "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "has-property-descriptors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", - "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", - "dev": true, - "requires": { - "get-intrinsic": "^1.1.1" - } - }, - "has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", - "dev": true - }, - "has-tostringtag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", - "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", - "dev": true, - "requires": { - "has-symbols": "^1.0.2" - } - }, - "hosted-git-info": { - "version": "2.8.9", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", - "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", - "dev": true - }, - "internal-slot": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.3.tgz", - "integrity": "sha512-O0DB1JC/sPyZl7cIo78n5dR7eUSwwpYPiXRhTzNxZVAMUuB8vlnRFyLxdrVToks6XPLVnFfbzaVd5WLjhgg+vA==", - "dev": true, - "requires": { - "get-intrinsic": "^1.1.0", - "has": "^1.0.3", - "side-channel": "^1.0.4" - } - }, - "is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", - "dev": true - }, - "is-bigint": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", - "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", - "dev": true, - "requires": { - "has-bigints": "^1.0.1" - } - }, - "is-boolean-object": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", - "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - } - }, - "is-callable": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.4.tgz", - "integrity": "sha512-nsuwtxZfMX67Oryl9LCQ+upnC0Z0BgpwntpS89m1H/TLF0zNfzfLMV/9Wa/6MZsj0acpEjAO0KF1xT6ZdLl95w==", - "dev": true - }, - "is-core-module": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.10.0.tgz", - "integrity": "sha512-Erxj2n/LDAZ7H8WNJXd9tw38GYM3dv8rk8Zcs+jJuxYTW7sozH+SS8NtrSjVL1/vpLvWi1hxy96IzjJ3EHTJJg==", - "dev": true, - "requires": { - "has": "^1.0.3" - } - }, - "is-date-object": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", - "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", - "dev": true, - "requires": { - "has-tostringtag": "^1.0.0" - } - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true - }, - "is-negative-zero": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", - "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", - "dev": true - }, - "is-number-object": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", - "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", - "dev": true, - "requires": { - "has-tostringtag": "^1.0.0" - } - }, - "is-regex": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", - "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - } - }, - "is-shared-array-buffer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", - "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2" - } - }, - "is-string": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", - "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", - "dev": true, - "requires": { - "has-tostringtag": "^1.0.0" - } - }, - "is-symbol": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", - "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", - "dev": true, - "requires": { - "has-symbols": "^1.0.2" - } - }, - "is-weakref": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", - "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", - "dev": true, - "requires": { - "call-bind": "^1.0.2" - } - }, - "isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true - }, - "jake": { - "version": "10.8.5", - "resolved": "https://registry.npmjs.org/jake/-/jake-10.8.5.tgz", - "integrity": "sha512-sVpxYeuAhWt0OTWITwT98oyV0GsXyMlXCF+3L1SuafBVUIr/uILGRB+NqwkzhgXKvoJpDIpQvqkUALgdmQsQxw==", - "dev": true, - "requires": { - "async": "^3.2.3", - "chalk": "^4.0.2", - "filelist": "^1.0.1", - "minimatch": "^3.0.4" - } - }, - "js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, - "requires": { - "argparse": "^2.0.1" - } - }, - "json-parse-better-errors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", - "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", - "dev": true - }, - "json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true - }, - "json-stringify-safe": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==" - }, - "load-json-file": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", - "integrity": "sha512-Kx8hMakjX03tiGTLAIdJ+lL0htKnXjEZN6hk/tozf/WOuYGdZBJrZ+rCJRbVCugsjB3jMLn9746NsQIf5VjBMw==", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "parse-json": "^4.0.0", - "pify": "^3.0.0", - "strip-bom": "^3.0.0" - } - }, - "locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "requires": { - "p-locate": "^4.1.0" - } - }, - "lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "dev": true - }, - "make-error": { - "version": "1.3.6", - "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", - "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", - "dev": true - }, - "memorystream": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/memorystream/-/memorystream-0.3.1.tgz", - "integrity": "sha512-S3UwM3yj5mtUSEfP41UZmt/0SCoVYUcU1rkXv+BQ5Ig8ndL4sPoJNBUJERafdPb5jjHJGuMgytgKvKIf58XNBw==", - "dev": true - }, - "minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "nice-try": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", - "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", - "dev": true - }, - "normalize-package-data": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", - "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", - "dev": true, - "requires": { - "hosted-git-info": "^2.1.4", - "resolve": "^1.10.0", - "semver": "2 || 3 || 4 || 5", - "validate-npm-package-license": "^3.0.1" - } - }, - "npm-run-all": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/npm-run-all/-/npm-run-all-4.1.5.tgz", - "integrity": "sha512-Oo82gJDAVcaMdi3nuoKFavkIHBRVqQ1qvMb+9LHk/cF4P6B2m8aP04hGf7oL6wZ9BuGwX1onlLhpuoofSyoQDQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "chalk": "^2.4.1", - "cross-spawn": "^6.0.5", - "memorystream": "^0.3.1", - "minimatch": "^3.0.4", - "pidtree": "^0.3.0", - "read-pkg": "^3.0.0", - "shell-quote": "^1.6.1", - "string.prototype.padend": "^3.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "requires": { - "color-name": "1.1.3" - } - }, - "color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "dev": true - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "dev": true - }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } - } - }, - "object-inspect": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz", - "integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==", - "dev": true - }, - "object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "dev": true - }, - "object.assign": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.3.tgz", - "integrity": "sha512-ZFJnX3zltyjcYJL0RoCJuzb+11zWGyaDbjgxZbdV7rFEcHQuYxrZqhow67aA7xpes6LhojyFDaBKAFfogQrikA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "has-symbols": "^1.0.3", - "object-keys": "^1.1.1" - } - }, - "openapi-types": { - "version": "12.0.0", - "resolved": "https://registry.npmjs.org/openapi-types/-/openapi-types-12.0.0.tgz", - "integrity": "sha512-6Wd9k8nmGQHgCbehZCP6wwWcfXcvinhybUTBatuhjRsCxUIujuYFZc9QnGeae75CyHASewBtxs0HX/qwREReUw==", - "dev": true - }, - "p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "requires": { - "p-limit": "^2.2.0" - } - }, - "p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true - }, - "parse-json": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha512-aOIos8bujGN93/8Ox/jPLh7RwVnPEysynVFE+fQZyg6jKELEHwzgKdLRFHUgXJL6kylijVSBC4BvN9OmsB48Rw==", - "dev": true, - "requires": { - "error-ex": "^1.3.1", - "json-parse-better-errors": "^1.0.1" - } - }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true - }, - "path-key": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==", - "dev": true - }, - "path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true - }, - "path-type": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", - "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", - "dev": true, - "requires": { - "pify": "^3.0.0" - } - }, - "pidtree": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/pidtree/-/pidtree-0.3.1.tgz", - "integrity": "sha512-qQbW94hLHEqCg7nhby4yRC7G2+jYHY4Rguc2bjw7Uug4GIJuu1tvf2uHaZv5Q8zdt+WKJ6qK1FOI6amaWUo5FA==", - "dev": true - }, - "pify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==", - "dev": true - }, - "prettier": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz", - "integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==", - "dev": true - }, - "punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", - "dev": true - }, - "read-pkg": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", - "integrity": "sha512-BLq/cCO9two+lBgiTYNqD6GdtK8s4NpaWrl6/rCO9w0TUS8oJl7cmToOZfRYllKTISY6nt1U7jQ53brmKqY6BA==", - "dev": true, - "requires": { - "load-json-file": "^4.0.0", - "normalize-package-data": "^2.3.2", - "path-type": "^3.0.0" - } - }, - "regexp.prototype.flags": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz", - "integrity": "sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "functions-have-names": "^1.2.2" - } - }, - "require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", - "dev": true - }, - "require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", - "dev": true - }, - "require-main-filename": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", - "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", - "dev": true - }, - "resolve": { - "version": "1.22.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", - "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", - "dev": true, - "requires": { - "is-core-module": "^2.9.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - } - }, - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true - }, - "set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", - "dev": true - }, - "shebang-command": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", - "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==", - "dev": true, - "requires": { - "shebang-regex": "^1.0.0" - } - }, - "shebang-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==", - "dev": true - }, - "shell-quote": { - "version": "1.7.3", - "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.7.3.tgz", - "integrity": "sha512-Vpfqwm4EnqGdlsBFNmHhxhElJYrdfcxPThu+ryKS5J8L/fhAwLazFZtq+S+TWZ9ANj2piSQLGj6NQg+lKPmxrw==", - "dev": true - }, - "side-channel": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", - "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", - "dev": true, - "requires": { - "call-bind": "^1.0.0", - "get-intrinsic": "^1.0.2", - "object-inspect": "^1.9.0" - } - }, - "spdx-correct": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz", - "integrity": "sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==", - "dev": true, - "requires": { - "spdx-expression-parse": "^3.0.0", - "spdx-license-ids": "^3.0.0" - } - }, - "spdx-exceptions": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", - "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", - "dev": true - }, - "spdx-expression-parse": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", - "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", - "dev": true, - "requires": { - "spdx-exceptions": "^2.1.0", - "spdx-license-ids": "^3.0.0" - } - }, - "spdx-license-ids": { - "version": "3.0.11", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.11.tgz", - "integrity": "sha512-Ctl2BrFiM0X3MANYgj3CkygxhRmr9mi6xhejbdO960nF6EDJApTYpn0BQnDKlnNBULKiCN1n3w9EBkHK8ZWg+g==", - "dev": true - }, - "sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", - "dev": true - }, - "string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - } - }, - "string.prototype.padend": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/string.prototype.padend/-/string.prototype.padend-3.1.3.tgz", - "integrity": "sha512-jNIIeokznm8SD/TZISQsZKYu7RJyheFNt84DUPrh482GC8RVp2MKqm2O5oBRdGxbDQoXrhhWtPIWQOiy20svUg==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.19.1" - } - }, - "string.prototype.trimend": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.5.tgz", - "integrity": "sha512-I7RGvmjV4pJ7O3kdf+LXFpVfdNOxtCW/2C8f6jNiW4+PQchwxkCDzlk1/7p+Wl4bqFIZeF47qAHXLuHHWKAxog==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.19.5" - } - }, - "string.prototype.trimstart": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.5.tgz", - "integrity": "sha512-THx16TJCGlsN0o6dl2o6ncWUsdgnLRSA23rRE5pyGBw/mLr3Ej/R2LaqCtgP8VNMGZsvMWnf9ooZPyY2bHvUFg==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.19.5" - } - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.1" - } - }, - "strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - }, - "supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "dev": true - }, - "ts-node": { - "version": "10.9.1", - "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz", - "integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==", - "dev": true, - "requires": { - "@cspotcode/source-map-support": "^0.8.0", - "@tsconfig/node10": "^1.0.7", - "@tsconfig/node12": "^1.0.7", - "@tsconfig/node14": "^1.0.0", - "@tsconfig/node16": "^1.0.2", - "acorn": "^8.4.1", - "acorn-walk": "^8.1.1", - "arg": "^4.1.0", - "create-require": "^1.1.0", - "diff": "^4.0.1", - "make-error": "^1.1.1", - "v8-compile-cache-lib": "^3.0.1", - "yn": "3.1.1" - } - }, - "typescript": { - "version": "4.7.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz", - "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==", - "dev": true, - "peer": true - }, - "unbox-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", - "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "has-bigints": "^1.0.2", - "has-symbols": "^1.0.3", - "which-boxed-primitive": "^1.0.2" - } - }, - "uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, - "requires": { - "punycode": "^2.1.0" - } - }, - "v8-compile-cache-lib": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", - "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", - "dev": true - }, - "validate-npm-package-license": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", - "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", - "dev": true, - "requires": { - "spdx-correct": "^3.0.0", - "spdx-expression-parse": "^3.0.0" - } - }, - "which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "dev": true, - "requires": { - "isexe": "^2.0.0" - } - }, - "which-boxed-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", - "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", - "dev": true, - "requires": { - "is-bigint": "^1.0.1", - "is-boolean-object": "^1.1.0", - "is-number-object": "^1.0.4", - "is-string": "^1.0.5", - "is-symbol": "^1.0.3" - } - }, - "which-module": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", - "integrity": "sha512-B+enWhmw6cjfVC7kS8Pj9pCrKSc5txArRyaYGe088shv/FGWH+0Rjx/xPgtsWfsUtS27FkP697E4DDhgrgoc0Q==", - "dev": true - }, - "wrap-ansi": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", - "dev": true, - "requires": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - } - }, - "y18n": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", - "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", - "dev": true - }, - "yargs": { - "version": "15.4.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", - "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", - "dev": true, - "requires": { - "cliui": "^6.0.0", - "decamelize": "^1.2.0", - "find-up": "^4.1.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^4.2.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^18.1.2" - } - }, - "yargs-parser": { - "version": "18.1.3", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", - "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", - "dev": true, - "requires": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - } - }, - "yn": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", - "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", - "dev": true - } - } -} diff --git a/spec/generator/package.json b/spec/generator/package.json deleted file mode 100644 index 69204a1788f..00000000000 --- a/spec/generator/package.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "name": "@supabase/generator", - "version": "0.0.0", - "main": "./index.tsx", - "types": "./index.tsx", - "license": "MIT", - "scripts": { - "api:gen": "npm-run-all api:gen:api", - "api:gen:api": "ts-node ./index.ts gen --type api --url https://api.supabase.com --input ../transforms/api_v0_openapi_deparsed.json --output ../../apps/reference/_api/usage.mdx", - "cli:gen": "npm-run-all cli:gen:commands cli:gen:config", - "cli:gen:commands": "ts-node ./index.ts gen --type cli --input ../cli_v1_commands.yaml --output ../../apps/reference/_cli/generated/usage.mdx ", - "cli:gen:config": "ts-node ./index.ts gen --type config --input ../cli_v1_config.yaml --output ../../apps/reference/_cli/generated/config.mdx", - "gotrue:gen": "npm-run-all gotrue:gen:config", - "gotrue:gen:config": "ts-node ./index.ts gen --type config --input ../gotrue_v1_config.yaml --output ../../apps/reference/_gotrue/config.mdx", - "storage:gen": "npm-run-all storage:gen:api storage:gen:config", - "storage:gen:api": "ts-node ./index.ts gen --type api --input ../transforms/storage_v0_openapi_deparsed.json --output ../../apps/reference/_storage/generated/usage.mdx", - "storage:gen:config": "ts-node ./index.ts gen --type config --input ../storage_v1_config.yaml --output ../../apps/reference/_storage/generated/config.mdx", - "supabase-dart:v1": "npm-run-all supabase-dart:v1:ref supabase-dart:format", - "supabase-dart:format": "prettier --write ../../apps/reference/_supabase_dart/**/*.mdx", - "supabase-dart:v1:ref": "ts-node ./LegacyReferenceGenerator.ts -o ../../apps/reference/_supabase_dart/generated ../supabase_dart_v1_legacy.yml", - "supabase-js:format": "prettier --write ../../apps/reference/_supabase_js/**/*.mdx && prettier --write ../../apps/reference/_supabase_js_versioned_docs/**/*.mdx", - "supabase-js:v1": "npm-run-all supabase-js:v1:ref supabase-js:format", - "supabase-js:v1:ref": "ts-node ./LegacyReferenceGenerator.ts -o ../../apps/reference/_supabase_js_versioned_docs/version-v1 ../supabase_js_v1_legacy.yml", - "supabase-js:v2": "npm-run-all supabase-js:v2:ref supabase-js:format", - "supabase-js:v2:ref": "ts-node ./LegacyReferenceGenerator.ts -o ../../apps/reference/_supabase_js/generated ../supabase_js_v2_legacy.yml", - "tsdoc:dereference:functions": "ts-node ./tsdoc.ts dereference --input ../enrichments/tsdoc_v2/functions.json --output ../enrichments/tsdoc_v2/functions_dereferenced.json", - "tsdoc:dereference:gotrue": "ts-node ./tsdoc.ts dereference --input ../enrichments/tsdoc_v2/gotrue.json --output ../enrichments/tsdoc_v2/gotrue_dereferenced.json", - "tsdoc:dereference:postgrest": "ts-node ./tsdoc.ts dereference --input ../enrichments/tsdoc_v2/postgrest.json --output ../enrichments/tsdoc_v2/postgrest_dereferenced.json", - "tsdoc:dereference:realtime": "ts-node ./tsdoc.ts dereference --input ../enrichments/tsdoc_v2/realtime.json --output ../enrichments/tsdoc_v2/realtime_dereferenced.json", - "tsdoc:dereference:storage": "ts-node ./tsdoc.ts dereference --input ../enrichments/tsdoc_v2/storage.json --output ../enrichments/tsdoc_v2/storage_dereferenced.json", - "tsdoc:dereference:supabase": "ts-node ./tsdoc.ts dereference --input ../enrichments/tsdoc_v2/supabase.json --output ../enrichments/tsdoc_v2/supabase_dereferenced.json" - }, - "devDependencies": { - "@apidevtools/swagger-cli": "^4.0.4", - "@types/json-stringify-safe": "^5.0.0", - "@types/lodash": "^4.14.182", - "ejs": "^3.1.8", - "js-yaml": "^4.1.0", - "lodash": "^4.17.21", - "npm-run-all": "^4.1.5", - "openapi-types": "^12.0.0", - "prettier": "^2.7.1", - "ts-node": "^10.9.1" - }, - "prettier": { - "semi": false, - "singleQuote": true - }, - "dependencies": { - "json-stringify-safe": "^5.0.1" - } -} diff --git a/spec/parser/helpers.ts b/spec/parser/helpers.ts new file mode 100644 index 00000000000..6bb5653e808 --- /dev/null +++ b/spec/parser/helpers.ts @@ -0,0 +1,41 @@ +import * as _ from 'lodash' +import * as fs from 'fs' + +export const slugify = (text: string) => { + return text + .toString() + .toLowerCase() + .replace(/[. )(]/g, '-') // Replace spaces and brackets - + .replace(/[^\w\-]+/g, '') // Remove all non-word chars + .replace(/\-\-+/g, '-') // Replace multiple - with single - + .replace(/^-+/, '') // Trim - from start of text + .replace(/-+$/, '') // Trim - from end of text +} + +// Uppercase the first letter of a string +export const toTitle = (text: string) => { + return text.charAt(0).toUpperCase() + text.slice(1) +} + +/** + * writeToDisk() + */ +export const writeToDisk = (fileName: string, content: any) => { + return new Promise((resolve, reject) => { + fs.writeFile(fileName, content, (err: any) => { + if (err) return reject(err) + else return resolve(true) + }) + }) +} + +/** + * Convert Object to Array of values + */ +export const toArrayWithKey = (obj: object, keyAs: string) => + _.values( + _.mapValues(obj, (value: any, key: string) => { + value[keyAs] = key + return value + }) + ) diff --git a/spec/parser/package-lock.json b/spec/parser/package-lock.json new file mode 100644 index 00000000000..c781c8377c1 --- /dev/null +++ b/spec/parser/package-lock.json @@ -0,0 +1,1352 @@ +{ + "name": "@supabase/generator", + "version": "0.0.0", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "name": "@supabase/generator", + "version": "0.0.0", + "license": "MIT", + "dependencies": { + "lodash": "^4.17.21" + }, + "devDependencies": { + "@apidevtools/swagger-cli": "^4.0.4", + "@types/json-stringify-safe": "^5.0.0", + "@types/lodash": "^4.14.185", + "json-stringify-safe": "^5.0.1", + "prettier": "^2.7.1", + "ts-node": "^10.9.1" + } + }, + "node_modules/@apidevtools/json-schema-ref-parser": { + "version": "9.0.6", + "resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-9.0.6.tgz", + "integrity": "sha512-M3YgsLjI0lZxvrpeGVk9Ap032W6TPQkH6pRAZz81Ac3WUNF79VQooAFnp8umjvVzUmD93NkogxEwbSce7qMsUg==", + "dev": true, + "dependencies": { + "@jsdevtools/ono": "^7.1.3", + "call-me-maybe": "^1.0.1", + "js-yaml": "^3.13.1" + } + }, + "node_modules/@apidevtools/json-schema-ref-parser/node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/@apidevtools/json-schema-ref-parser/node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/@apidevtools/openapi-schemas": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@apidevtools/openapi-schemas/-/openapi-schemas-2.1.0.tgz", + "integrity": "sha512-Zc1AlqrJlX3SlpupFGpiLi2EbteyP7fXmUOGup6/DnkRgjP9bgMM/ag+n91rsv0U1Gpz0H3VILA/o3bW7Ua6BQ==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/@apidevtools/swagger-cli": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@apidevtools/swagger-cli/-/swagger-cli-4.0.4.tgz", + "integrity": "sha512-hdDT3B6GLVovCsRZYDi3+wMcB1HfetTU20l2DC8zD3iFRNMC6QNAZG5fo/6PYeHWBEv7ri4MvnlKodhNB0nt7g==", + "dev": true, + "dependencies": { + "@apidevtools/swagger-parser": "^10.0.1", + "chalk": "^4.1.0", + "js-yaml": "^3.14.0", + "yargs": "^15.4.1" + }, + "bin": { + "swagger-cli": "bin/swagger-cli.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@apidevtools/swagger-cli/node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/@apidevtools/swagger-cli/node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/@apidevtools/swagger-methods": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@apidevtools/swagger-methods/-/swagger-methods-3.0.2.tgz", + "integrity": "sha512-QAkD5kK2b1WfjDS/UQn/qQkbwF31uqRjPTrsCs5ZG9BQGAkjwvqGFjjPqAuzac/IYzpPtRzjCP1WrTuAIjMrXg==", + "dev": true + }, + "node_modules/@apidevtools/swagger-parser": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/@apidevtools/swagger-parser/-/swagger-parser-10.1.0.tgz", + "integrity": "sha512-9Kt7EuS/7WbMAUv2gSziqjvxwDbFSg3Xeyfuj5laUODX8o/k/CpsAKiQ8W7/R88eXFTMbJYg6+7uAmOWNKmwnw==", + "dev": true, + "dependencies": { + "@apidevtools/json-schema-ref-parser": "9.0.6", + "@apidevtools/openapi-schemas": "^2.1.0", + "@apidevtools/swagger-methods": "^3.0.2", + "@jsdevtools/ono": "^7.1.3", + "ajv": "^8.6.3", + "ajv-draft-04": "^1.0.0", + "call-me-maybe": "^1.0.1" + }, + "peerDependencies": { + "openapi-types": ">=7" + } + }, + "node_modules/@cspotcode/source-map-support": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", + "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "0.3.9" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", + "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.14", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", + "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", + "dev": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", + "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, + "node_modules/@jsdevtools/ono": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/@jsdevtools/ono/-/ono-7.1.3.tgz", + "integrity": "sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==", + "dev": true + }, + "node_modules/@tsconfig/node10": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", + "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==", + "dev": true + }, + "node_modules/@tsconfig/node12": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", + "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", + "dev": true + }, + "node_modules/@tsconfig/node14": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", + "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", + "dev": true + }, + "node_modules/@tsconfig/node16": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.3.tgz", + "integrity": "sha512-yOlFc+7UtL/89t2ZhjPvvB/DeAr3r+Dq58IgzsFkOAvVC6NMJXmCGjbptdXdR9qsX7pKcTL+s87FtYREi2dEEQ==", + "dev": true + }, + "node_modules/@types/json-stringify-safe": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@types/json-stringify-safe/-/json-stringify-safe-5.0.0.tgz", + "integrity": "sha512-UUA1sH0RSRROdInuDOA1yoRzbi5xVFD1RHCoOvNRPTNwR8zBkJ/84PZ6NhKVDtKp0FTeIccJCdQz1X2aJPr4uw==", + "dev": true + }, + "node_modules/@types/lodash": { + "version": "4.14.185", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.185.tgz", + "integrity": "sha512-evMDG1bC4rgQg4ku9tKpuMh5iBNEwNa3tf9zRHdP1qlv+1WUg44xat4IxCE14gIpZRGUUWAx2VhItCZc25NfMA==", + "dev": true + }, + "node_modules/@types/node": { + "version": "18.6.3", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.6.3.tgz", + "integrity": "sha512-6qKpDtoaYLM+5+AFChLhHermMQxc3TOEFIDzrZLPRGHPrLEwqFkkT5Kx3ju05g6X7uDPazz3jHbKPX0KzCjntg==", + "dev": true, + "peer": true + }, + "node_modules/acorn": { + "version": "8.8.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.0.tgz", + "integrity": "sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-walk": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", + "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/ajv": { + "version": "8.11.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.11.0.tgz", + "integrity": "sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-draft-04": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/ajv-draft-04/-/ajv-draft-04-1.0.0.tgz", + "integrity": "sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==", + "dev": true, + "peerDependencies": { + "ajv": "^8.5.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "dev": true + }, + "node_modules/call-me-maybe": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/call-me-maybe/-/call-me-maybe-1.0.1.tgz", + "integrity": "sha512-wCyFsDQkKPwwF8BDwOiWNx/9K45L/hvggQiDbve+viMNMQnWhrlYIuBk09offfwCRtCO9P6XwUttufzU11WCVw==", + "dev": true + }, + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/create-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", + "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", + "dev": true + }, + "node_modules/decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "dev": true, + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, + "node_modules/json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==", + "dev": true + }, + "node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + }, + "node_modules/make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true + }, + "node_modules/openapi-types": { + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/openapi-types/-/openapi-types-12.0.0.tgz", + "integrity": "sha512-6Wd9k8nmGQHgCbehZCP6wwWcfXcvinhybUTBatuhjRsCxUIujuYFZc9QnGeae75CyHASewBtxs0HX/qwREReUw==", + "dev": true, + "peer": true + }, + "node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/prettier": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz", + "integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==", + "dev": true, + "bin": { + "prettier": "bin-prettier.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-main-filename": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", + "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", + "dev": true + }, + "node_modules/set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", + "dev": true + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/ts-node": { + "version": "10.9.1", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz", + "integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==", + "dev": true, + "dependencies": { + "@cspotcode/source-map-support": "^0.8.0", + "@tsconfig/node10": "^1.0.7", + "@tsconfig/node12": "^1.0.7", + "@tsconfig/node14": "^1.0.0", + "@tsconfig/node16": "^1.0.2", + "acorn": "^8.4.1", + "acorn-walk": "^8.1.1", + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "v8-compile-cache-lib": "^3.0.1", + "yn": "3.1.1" + }, + "bin": { + "ts-node": "dist/bin.js", + "ts-node-cwd": "dist/bin-cwd.js", + "ts-node-esm": "dist/bin-esm.js", + "ts-node-script": "dist/bin-script.js", + "ts-node-transpile-only": "dist/bin-transpile.js", + "ts-script": "dist/bin-script-deprecated.js" + }, + "peerDependencies": { + "@swc/core": ">=1.2.50", + "@swc/wasm": ">=1.2.50", + "@types/node": "*", + "typescript": ">=2.7" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "@swc/wasm": { + "optional": true + } + } + }, + "node_modules/typescript": { + "version": "4.7.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz", + "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==", + "dev": true, + "peer": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/v8-compile-cache-lib": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", + "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", + "dev": true + }, + "node_modules/which-module": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", + "integrity": "sha512-B+enWhmw6cjfVC7kS8Pj9pCrKSc5txArRyaYGe088shv/FGWH+0Rjx/xPgtsWfsUtS27FkP697E4DDhgrgoc0Q==", + "dev": true + }, + "node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "dev": true + }, + "node_modules/yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "dev": true, + "dependencies": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "dev": true, + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/yn": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", + "dev": true, + "engines": { + "node": ">=6" + } + } + }, + "dependencies": { + "@apidevtools/json-schema-ref-parser": { + "version": "9.0.6", + "resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-9.0.6.tgz", + "integrity": "sha512-M3YgsLjI0lZxvrpeGVk9Ap032W6TPQkH6pRAZz81Ac3WUNF79VQooAFnp8umjvVzUmD93NkogxEwbSce7qMsUg==", + "dev": true, + "requires": { + "@jsdevtools/ono": "^7.1.3", + "call-me-maybe": "^1.0.1", + "js-yaml": "^3.13.1" + }, + "dependencies": { + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + } + } + }, + "@apidevtools/openapi-schemas": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@apidevtools/openapi-schemas/-/openapi-schemas-2.1.0.tgz", + "integrity": "sha512-Zc1AlqrJlX3SlpupFGpiLi2EbteyP7fXmUOGup6/DnkRgjP9bgMM/ag+n91rsv0U1Gpz0H3VILA/o3bW7Ua6BQ==", + "dev": true + }, + "@apidevtools/swagger-cli": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@apidevtools/swagger-cli/-/swagger-cli-4.0.4.tgz", + "integrity": "sha512-hdDT3B6GLVovCsRZYDi3+wMcB1HfetTU20l2DC8zD3iFRNMC6QNAZG5fo/6PYeHWBEv7ri4MvnlKodhNB0nt7g==", + "dev": true, + "requires": { + "@apidevtools/swagger-parser": "^10.0.1", + "chalk": "^4.1.0", + "js-yaml": "^3.14.0", + "yargs": "^15.4.1" + }, + "dependencies": { + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + } + } + }, + "@apidevtools/swagger-methods": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@apidevtools/swagger-methods/-/swagger-methods-3.0.2.tgz", + "integrity": "sha512-QAkD5kK2b1WfjDS/UQn/qQkbwF31uqRjPTrsCs5ZG9BQGAkjwvqGFjjPqAuzac/IYzpPtRzjCP1WrTuAIjMrXg==", + "dev": true + }, + "@apidevtools/swagger-parser": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/@apidevtools/swagger-parser/-/swagger-parser-10.1.0.tgz", + "integrity": "sha512-9Kt7EuS/7WbMAUv2gSziqjvxwDbFSg3Xeyfuj5laUODX8o/k/CpsAKiQ8W7/R88eXFTMbJYg6+7uAmOWNKmwnw==", + "dev": true, + "requires": { + "@apidevtools/json-schema-ref-parser": "9.0.6", + "@apidevtools/openapi-schemas": "^2.1.0", + "@apidevtools/swagger-methods": "^3.0.2", + "@jsdevtools/ono": "^7.1.3", + "ajv": "^8.6.3", + "ajv-draft-04": "^1.0.0", + "call-me-maybe": "^1.0.1" + } + }, + "@cspotcode/source-map-support": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", + "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", + "dev": true, + "requires": { + "@jridgewell/trace-mapping": "0.3.9" + } + }, + "@jridgewell/resolve-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", + "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", + "dev": true + }, + "@jridgewell/sourcemap-codec": { + "version": "1.4.14", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", + "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", + "dev": true + }, + "@jridgewell/trace-mapping": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", + "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "dev": true, + "requires": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, + "@jsdevtools/ono": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/@jsdevtools/ono/-/ono-7.1.3.tgz", + "integrity": "sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==", + "dev": true + }, + "@tsconfig/node10": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", + "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==", + "dev": true + }, + "@tsconfig/node12": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", + "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", + "dev": true + }, + "@tsconfig/node14": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", + "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", + "dev": true + }, + "@tsconfig/node16": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.3.tgz", + "integrity": "sha512-yOlFc+7UtL/89t2ZhjPvvB/DeAr3r+Dq58IgzsFkOAvVC6NMJXmCGjbptdXdR9qsX7pKcTL+s87FtYREi2dEEQ==", + "dev": true + }, + "@types/json-stringify-safe": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@types/json-stringify-safe/-/json-stringify-safe-5.0.0.tgz", + "integrity": "sha512-UUA1sH0RSRROdInuDOA1yoRzbi5xVFD1RHCoOvNRPTNwR8zBkJ/84PZ6NhKVDtKp0FTeIccJCdQz1X2aJPr4uw==", + "dev": true + }, + "@types/lodash": { + "version": "4.14.185", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.185.tgz", + "integrity": "sha512-evMDG1bC4rgQg4ku9tKpuMh5iBNEwNa3tf9zRHdP1qlv+1WUg44xat4IxCE14gIpZRGUUWAx2VhItCZc25NfMA==", + "dev": true + }, + "@types/node": { + "version": "18.6.3", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.6.3.tgz", + "integrity": "sha512-6qKpDtoaYLM+5+AFChLhHermMQxc3TOEFIDzrZLPRGHPrLEwqFkkT5Kx3ju05g6X7uDPazz3jHbKPX0KzCjntg==", + "dev": true, + "peer": true + }, + "acorn": { + "version": "8.8.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.0.tgz", + "integrity": "sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w==", + "dev": true + }, + "acorn-walk": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", + "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", + "dev": true + }, + "ajv": { + "version": "8.11.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.11.0.tgz", + "integrity": "sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + } + }, + "ajv-draft-04": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/ajv-draft-04/-/ajv-draft-04-1.0.0.tgz", + "integrity": "sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==", + "dev": true, + "requires": {} + }, + "ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true + }, + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "dev": true + }, + "call-me-maybe": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/call-me-maybe/-/call-me-maybe-1.0.1.tgz", + "integrity": "sha512-wCyFsDQkKPwwF8BDwOiWNx/9K45L/hvggQiDbve+viMNMQnWhrlYIuBk09offfwCRtCO9P6XwUttufzU11WCVw==", + "dev": true + }, + "camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "dev": true, + "requires": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "create-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", + "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", + "dev": true + }, + "decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "dev": true + }, + "diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "dev": true + }, + "emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true + }, + "fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true + }, + "find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "requires": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + } + }, + "get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true + }, + "json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true + }, + "json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==", + "dev": true + }, + "locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "requires": { + "p-locate": "^4.1.0" + } + }, + "lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + }, + "make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true + }, + "openapi-types": { + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/openapi-types/-/openapi-types-12.0.0.tgz", + "integrity": "sha512-6Wd9k8nmGQHgCbehZCP6wwWcfXcvinhybUTBatuhjRsCxUIujuYFZc9QnGeae75CyHASewBtxs0HX/qwREReUw==", + "dev": true, + "peer": true + }, + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "requires": { + "p-limit": "^2.2.0" + } + }, + "p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true + }, + "path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true + }, + "prettier": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz", + "integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==", + "dev": true + }, + "punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "dev": true + }, + "require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true + }, + "require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "dev": true + }, + "require-main-filename": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", + "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", + "dev": true + }, + "set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", + "dev": true + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true + }, + "string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + } + }, + "strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "requires": { + "ansi-regex": "^5.0.1" + } + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + }, + "ts-node": { + "version": "10.9.1", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz", + "integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==", + "dev": true, + "requires": { + "@cspotcode/source-map-support": "^0.8.0", + "@tsconfig/node10": "^1.0.7", + "@tsconfig/node12": "^1.0.7", + "@tsconfig/node14": "^1.0.0", + "@tsconfig/node16": "^1.0.2", + "acorn": "^8.4.1", + "acorn-walk": "^8.1.1", + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "v8-compile-cache-lib": "^3.0.1", + "yn": "3.1.1" + } + }, + "typescript": { + "version": "4.7.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz", + "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==", + "dev": true, + "peer": true + }, + "uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "requires": { + "punycode": "^2.1.0" + } + }, + "v8-compile-cache-lib": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", + "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", + "dev": true + }, + "which-module": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", + "integrity": "sha512-B+enWhmw6cjfVC7kS8Pj9pCrKSc5txArRyaYGe088shv/FGWH+0Rjx/xPgtsWfsUtS27FkP697E4DDhgrgoc0Q==", + "dev": true + }, + "wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dev": true, + "requires": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + } + }, + "y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "dev": true + }, + "yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "dev": true, + "requires": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + } + }, + "yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "dev": true, + "requires": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + } + }, + "yn": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", + "dev": true + } + } +} diff --git a/spec/parser/package.json b/spec/parser/package.json new file mode 100644 index 00000000000..302d36082df --- /dev/null +++ b/spec/parser/package.json @@ -0,0 +1,29 @@ +{ + "name": "@supabase/generator", + "version": "0.0.0", + "main": "./index.tsx", + "types": "./index.tsx", + "license": "MIT", + "scripts": { + "tsdoc:dereference:functions": "ts-node ./tsdoc.ts dereference --input ../enrichments/tsdoc_v2/functions.json --output ../enrichments/tsdoc_v2/functions_dereferenced.json", + "tsdoc:dereference:gotrue": "ts-node ./tsdoc.ts dereference --input ../enrichments/tsdoc_v2/gotrue.json --output ../enrichments/tsdoc_v2/gotrue_dereferenced.json", + "tsdoc:dereference:postgrest": "ts-node ./tsdoc.ts dereference --input ../enrichments/tsdoc_v2/postgrest.json --output ../enrichments/tsdoc_v2/postgrest_dereferenced.json", + "tsdoc:dereference:realtime": "ts-node ./tsdoc.ts dereference --input ../enrichments/tsdoc_v2/realtime.json --output ../enrichments/tsdoc_v2/realtime_dereferenced.json", + "tsdoc:dereference:storage": "ts-node ./tsdoc.ts dereference --input ../enrichments/tsdoc_v2/storage.json --output ../enrichments/tsdoc_v2/storage_dereferenced.json", + "tsdoc:dereference:supabase": "ts-node ./tsdoc.ts dereference --input ../enrichments/tsdoc_v2/supabase.json --output ../enrichments/tsdoc_v2/supabase_dereferenced.json" + }, + "dependencies": {}, + "devDependencies": { + "@apidevtools/swagger-cli": "^4.0.4", + "@types/json-stringify-safe": "^5.0.0", + "@types/lodash": "^4.14.185", + "json-stringify-safe": "^5.0.1", + "lodash": "^4.17.21", + "prettier": "^2.7.1", + "ts-node": "^10.9.1" + }, + "prettier": { + "semi": false, + "singleQuote": true + } +} diff --git a/spec/generator/tsconfig.json b/spec/parser/tsconfig.json similarity index 100% rename from spec/generator/tsconfig.json rename to spec/parser/tsconfig.json diff --git a/spec/generator/tsdoc.ts b/spec/parser/tsdoc.ts similarity index 97% rename from spec/generator/tsdoc.ts rename to spec/parser/tsdoc.ts index 83cb3e136ff..8bcf435f12a 100644 --- a/spec/generator/tsdoc.ts +++ b/spec/parser/tsdoc.ts @@ -1,4 +1,4 @@ -import { writeToDisk } from './src/docs/helpers' +import { writeToDisk } from './helpers' import stringify from 'json-stringify-safe' const fs = require('fs') diff --git a/spec/storage_v1_config.yaml b/spec/storage_v0_config.yaml similarity index 99% rename from spec/storage_v1_config.yaml rename to spec/storage_v0_config.yaml index f93af1a4b3b..f2fbc4f58ad 100644 --- a/spec/storage_v1_config.yaml +++ b/spec/storage_v0_config.yaml @@ -2,7 +2,7 @@ configspec: '001' # This section outlines the general information for the tool. info: - id: 'stroage' # {string} A unique ID for this tool. + id: 'storage' # {string} A unique ID for this tool. version: 'next' # {string} The current version number of the tool. title: 'Storage' # {string} A readable name. source: 'https://github.com/supabase/storage-api' # {string} Where developers can find the source code. diff --git a/spec/supabase_dart_v0_legacy.yml b/spec/supabase_dart_v0_legacy.yml new file mode 100644 index 00000000000..af073c8ee95 --- /dev/null +++ b/spec/supabase_dart_v0_legacy.yml @@ -0,0 +1,2183 @@ +openref: 0.1 + +info: + id: reference/dart + title: Getting started + description: | + + Supabase Dart. + + definition: ../../spec/enrichments/tsdoc_v1/combined.json + slugPrefix: '/' + specUrl: https://github.com/supabase/supabase/edit/master/spec/supabase_dart_v1_legacy.yml + libraries: + - name: 'Dart' + id: 'dart' + version: '0.0.1' + +pages: + Installing: + description: | + ## Dart + + Dart libraries are built and supported by the community. + + ```bash + dart pub add supabase + ``` + + Find the source code on [GitHub](https://github.com/supabase/supabase-dart). + + ## Flutter + + For Flutter project, you can use [supabase_flutter](https://github.com/supabase/supabase-flutter). + + ```bash + flutter pub add supabase_flutter + ``` + + `supabase_flutter` plugin uses `supabase` plugin internally, and it adds some Flutter specific functionality such as handling deeplinks coming back from magic link verifications. + If you are creating a Flutter application, we recommend using `supabase_flutter` instead of `supabase`. + + For the most part `supabase_flutter` shares the same API as `supabase` with few exceptions such as initialization or OAuth sign in. + + Initializing: + description: | + ## Dart + You can initialize a new Supabase client using the `SupabaseClient()` method. + + The Supabase client is your entrypoint to the rest of the Supabase functionality + and is the easiest way to interact with everything we offer within the Supabase ecosystem. + + + ## Flutter + + For `supabase_flutter`, you will be using the static `initialize()` method on `Supabase` class. + + examples: + - name: Dart SupabaseClient() + dart: | + ```dart + final supabase = SupabaseClient('https://xyzcompany.supabase.co', 'public-anon-key'); + ``` + - name: Flutter initialize() + dart: | + ```dart title="main.dart" + Future main() async { + await Supabase.initialize(url: 'https://xyzcompany.supabase.co', anonKey: 'public-anon-key'); + runApp(MyApp()); + } + ``` + + auth.signUp(): + description: | + Creates a new user. + notes: | + - By default, the user will need to verify their email address before logging in. If you would like to change this, you can disable "Email Confirmations" by going to Authentication -> Settings on [app.supabase.com](https://app.supabase.com) + - If "Email Confirmations" is turned on, a user is returned but session will be null + - If "Email Confirmations" is turned off, both a `user` and a `session` will be returned + - When the user confirms their email address, they will be redirected to localhost:3000 by default. To change this, you can go to Authentication -> Settings on [app.supabase.com](https://app.supabase.com) + examples: + - name: Sign up. + isSpotlight: true + dart: | + ```dart + final res = await supabase.auth.signUp('example@email.com', 'example-password'); + + final user = res.data?.user; + final error = res.error; + ``` + - name: Sign up with third-party providers. + hideCodeBlock: true + description: | + If you are using Flutter, you can sign up with OAuth providers using the [`signInWithProvider()`](/docs/reference/dart/auth-signinwithprovider) method available on `supabase_flutter`. + + auth.signIn(): + description: | + Log in an existing user, or login via a third-party provider. + notes: | + - A user can sign up via email, phone number. + - If you provide `email` without a `password`, the user will be sent a magic link. + - The magic link's destination URL is determined by the SITE_URL config variable. To change this, you can go to Authentication -> Settings on [app.supabase.com](https://app.supabase.com) + - Similarly, if you provide `phone` without a `password`, the user will be sent a one time password. + - If you are looking to sign users in with OAuth in Flutter apps, go to [`signInWithProvider()`](/docs/reference/dart/auth-signinwithprovider). + examples: + - name: Sign in with email. + isSpotlight: true + dart: | + ```dart + final res = await supabase.auth.signIn(email: 'example@email.com', password: 'example-password'); + + final user = res.data?.user; + final error = res.error; + ``` + - name: Sign in with magic link. + description: If email is provided, but no password is provided, the user will be sent a "magic link" to their email address, which they can click to open your application with a valid session. By default, a given user can only request a Magic Link once every 60 seconds. + dart: | + ```dart + final res = await supabase.auth.signIn(email: 'example@email.com'); + + final error = res.error; + ``` + - name: Get OAuth sign in URL. + description: | + Passing provider parameter to `signIn()` will return a URL to sign your user in via OAuth. + If you are looking to sign in a user via OAuth on Flutter app, go to [`signInWithProvider()`](/docs/reference/dart/auth-signinwithprovider). + dart: | + ```dart + final res = await supabase.auth.signIn(provider: Provider.github); + + final url = res.data?.url; + final error = res.error; + ``` + auth.signInWithProvider(): + description: | + Signs the user in using third party OAuth providers. + notes: | + - `auth.signInWithProvider()` is only available on `supabase_flutter` + - It will open the browser to the relevant login page. + examples: + - name: Sign in with provider. + isSpotlight: true + dart: | + ```dart + final res = await supabase.auth.signInWithProvider(Provider.github); + + final error = res.error; + ``` + - name: With `redirectTo` + description: | + Specify the redirect link to bring back the user via deeplink. + Note that `redirectTo` should be null for Flutter Web. + dart: | + ```dart + final res = await supabase.auth.signInWithProvider( + Provider.github, + options: AuthOptions( + redirectTo: kIsWeb + ? null + : 'io.supabase.flutter://reset-callback/'), + ); + + final error = res.error; + ``` + - name: With scopes + description: | + If you need additional data from an OAuth provider, you can include a space-separated list of scopes in your request to get back an OAuth provider token. + You may also need to specify the scopes in the provider's OAuth app settings, depending on the provider. + dart: | + ```dart + const { user, session, error } = await supabase.auth.signIn({ + provider: 'github' + }, { + scopes: 'repo gist notifications' + }) + const oAuthToken = session.provider_token // use to access provider API + ``` + auth.signOut(): + description: | + Signs out the current user, if there is a logged in user. + examples: + - name: Sign out + isSpotlight: true + dart: | + ```dart + final res = await supabase.auth.signOut(); + + final error = res.error; + ``` + + auth.session(): + description: | + Returns the session data, if there is an active session. + examples: + - name: Get the session data + isSpotlight: true + dart: | + ```dart + final session = supabase.auth.session(); + ``` + + auth.user(): + description: | + Returns the user data, if there is a logged in user. + examples: + - name: Get the logged in user + isSpotlight: true + dart: | + ```dart + final user = supabase.auth.user(); + ``` + + auth.update(): + description: | + Updates user data, if there is a logged in user. + notes: | + It's generally better to store user data in a table inside your public schema (i.e. `public.users`). + Use the `update()` method if you have data which rarely changes or is specific only to the logged in user. + examples: + - name: Update a user's metadata. + isSpotlight: true + dart: | + ```dart + final res = await supabase.auth.update( + UserAttributes(data: {'hello': 'world'}) + ); + + final error = res.error; + ``` + + auth.onAuthStateChange(): + description: | + Receive a notification every time an auth event happens. + examples: + - name: Listen to auth changes + isSpotlight: true + dart: | + ```dart + final subscription = supabase.auth.onAuthStateChange((event, session) { + print(session?.user?.id); + // handle auth state change + }); + ``` + + Reset Password (Email): + description: | + Sends a reset request to an email address. + notes: | + Sends a reset request to an email address. + + When the user clicks the reset link in the email they will be forwarded to: + + `#access_token=x&refresh_token=y&expires_in=z&token_type=bearer&type=recovery` + + Your app must detect `type=recovery` in the fragment and display a password reset form to the user. + + You should then use the access_token in the url and new password to update the user as follows: + + ```dart + final res = await supabase.auth.api.updateUser( + accessToken, + UserAttributes(password: 'NEW_PASSWORD'), + ); + ``` + examples: + - name: Reset password + isSpotlight: true + dart: | + ```dart + final res = await supabase.auth.api.resetPasswordForEmail('user@example.com'); + + final error = res.error; + ``` + - name: Reset password for Flutter + isSpotlight: true + dart: | + You can pass `redirectTo` to open the app via deeplink when user opens the password reset email. + ```dart + final res = await supabase.auth.api.resetPasswordForEmail( + 'user@example.com', + options: AuthOptions(redirectTo: kIsWeb + ? null + : 'io.supabase.flutter://reset-callback/'), + ); + + final error = res.error; + ``` + invoke(): + title: 'invoke()' + description: | + Invokes a Supabase Function. See the [guide](/docs/guides/functions) for details on writing Functions. + notes: | + - Requires an Authorization header. + - Invoke params generally match the [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) spec. + examples: + - name: Basic invocation. + isSpotlight: true + dart: | + ```dart + final res = await supabaseClient.functions.invoke('hello', body: {'foo': 'baa'}); + final data = res.data; + final error = res.error; + ``` + - name: Specifying response type. + description: | + By default, `invoke()` will parse the response as JSON. You can parse the response in the following formats: `json`, `blob`, `text`, and `arrayBuffer`. + isSpotlight: true + dart: | + ```dart + final res = await supabaseClient.functions.invoke( + 'hello', + body: {'foo': 'baa'}, + responseType: ResponseType.text, + ); + final data = res.data; + final error = res.error; + ``` + - name: Parsing custom headers. + description: | + Any `headers` will be passed through to the function. A common pattern is to pass a logged-in user's JWT token as an Authorization header. + isSpotlight: true + dart: | + ```dart + final res = await supabaseClient.functions.invoke( + 'hello', + body: {'foo': 'baa'}, + headers: { + 'Authorization': 'Bearer ${supabase.auth.session()?.access_token}' + }, + ); + ``` + select(): + description: | + Performs vertical filtering with SELECT. + title: 'Fetch data: select()' + notes: | + - By default, Supabase projects will return a maximum of 1,000 rows. This setting can be changed in Project API Settings. It's recommended that you keep it low to limit the payload size of accidental or malicious requests. You can use `range()` queries to paginate through your data. + - `select()` can be combined with [Modifiers](/docs/reference/dart/using-modifiers) + - `select()` can be combined with [Filters](/docs/reference/dart/using-filters) + - If using the Supabase hosted platform `apikey` is technically a reserved keyword, since the API gateway will pluck it out for authentication. [It should be avoided as a column name](https://github.com/supabase/supabase/issues/5465). + examples: + - name: Getting your data + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .select() + .execute(); + + final data = res.data; + final error = res.error; + ``` + - name: Selecting specific columns + description: You can select specific fields from your tables. + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name') + .execute(); + ``` + - name: Query foreign tables + description: If your database has relationships, you can query related tables too. + dart: | + ```dart + final res = await supabase + .from('countries') + .select(''' + name, + cities ( + name + ) + ''') + .execute(); + ``` + - name: Query the same foreign table multiple times + description: | + Sometimes you will need to query the same foreign table twice. + In this case, you can use the name of the joined column to identify + which join you intend to use. For convenience, you can also give an + alias for each column. For example, if we had a shop of products, + and we wanted to get the supplier and the purchaser at the same time + (both in the users) table: + dart: | + ```dart + final res = await supabase + .from('products') + .select(''' + id, + supplier:supplier_id ( name ), + purchaser:purchaser_id ( name ) + ''') + .execute(); + ``` + - name: Filtering with inner joins + description: | + If you want to filter a table based on a child table's values you can use the `!inner()` function. For example, if you wanted + to select all rows in a `message` table which belong to a user with the `username` "Jane": + dart: | + ```dart + final res = await supabase + .from('messages') + .select('*, users!inner(*)') + .eq('users.username', 'Jane') + .execute(); + ``` + - name: Querying with count option + description: | + You can get the number of rows by using the count option. + Allowed values for count option are [exact](https://postgrest.org/en/stable/api.html#exact-count), [planned](https://postgrest.org/en/stable/api.html#planned-count) and [estimated](https://postgrest.org/en/stable/api.html#estimated-count). + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name') + .execute(count: CountOption.exact); + + final count = res.count; + ``` + - name: Querying JSON data + description: | + If you have data inside of a JSONB column, you can apply select + and query filters to the data values. Postgres offers a + [number of operators](https://www.postgresql.org/docs/current/functions-json.html) + for querying JSON data. Also see + [PostgREST docs](http://postgrest.org/en/v7.0.0/api.html#json-columns) for more details. + dart: | + ```dart + final res = await supabase + .from('users') + .select(''' + id, name, + address->street + ''') + .eq('address->postcode', 90210) + .execute(); + ``` + - name: Return data as CSV + description: | + By default the data is returned in JSON format, however you can also request for it to be returned as Comma Separated Values. + dart: | + ```dart + final res = await supabase + .from('users') + .select() + .csv() + .execute(); + ``` + + insert(): + description: | + Performs an INSERT into the table. + title: 'Create data: insert()' + notes: | + - By default, every time you run `insert()`, the client library will make a `select` to return the full record. + This is convenient, but it can also cause problems if your Policies are not configured to allow the `select` operation. + If you are using Row Level Security and you are encountering problems, try setting the `returning` param to `minimal`. + examples: + - name: Create a record + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .insert([ + {'name': 'The Shire', 'country_id': 554} + ]).execute(); + ``` + - name: Bulk create + dart: | + ```dart + final res = await supabase + .from('cities') + .insert([ + {'name': 'The Shire', 'country_id': 554}, + {'name': 'Rohan', 'country_id': 555}, + ]).execute(); + ``` + + update(): + description: | + Performs an UPDATE on the table. + title: 'Modify data: update()' + notes: | + - `update()` should always be combined with [Filters](/docs/reference/dart/using-filters) to target the item(s) you wish to update. + examples: + - name: Updating your data + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .update({ 'name': 'Middle Earth' }) + .match({ 'name': 'Auckland' }) + .execute(); + ``` + - name: Updating JSON data + description: | + Postgres offers a + [number of operators](https://www.postgresql.org/docs/current/functions-json.html) + for working with JSON data. Right now it is only possible to update an entire JSON document, + but we are [working on ideas](https://github.com/PostgREST/postgrest/issues/465) for updating individual keys. + dart: | + ```dart + final res = await supabase + .from('users') + .update({ + 'address': { + 'street': 'Melrose Place', + 'postcode': 90210 + } + }) + .eq('address->postcode', 90210) + .execute(); + ``` + + upsert(): + description: | + Performs an UPSERT into the table. + title: 'Upsert data: upsert()' + notes: | + - Primary keys should be included in the data payload in order for an update to work correctly. + - Primary keys must be natural, not surrogate. There are however, [workarounds](https://github.com/PostgREST/postgrest/issues/1118) for surrogate primary keys. + examples: + - name: Upsert your data + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('messages') + .upsert({ 'id': 3, 'message': 'foo', 'username': 'supabot' }) + .execute(); + ``` + - name: Upserting into tables with constraints + description: | + Running the following will cause supabase to upsert data into the `users` table. + If the username 'supabot' already exists, the `onConflict` argument tells supabase to overwrite that row + based on the column passed into `onConflict`. + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('users') + .upsert({ 'username': 'supabot' }, { 'onConflict': 'username' }) + .execute(); + ``` + - name: Return the exact number of rows + description: | + Allowed values for count option are `exact`, `planned` and `estimated`. + dart: | + ```dart + final res = await supabase + .from('users') + .upsert({ + 'id': 3, + 'message': 'foo', + 'username': 'supabot' + }) + .execute(count: CountOption.exact); + ``` + + delete(): + description: | + Performs a DELETE on the table. + title: 'Delete data: delete()' + notes: | + - `delete()` should always be combined with [Filters](/docs/reference/dart/using-filters) to target the item(s) you wish to delete. + examples: + - name: Delete records + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .delete() + .match({ 'id': 666 }) + .execute(); + ``` + + rpc(): + title: 'Stored Procedures: rpc()' + description: | + You can call stored procedures as a "Remote Procedure Call". + + That's a fancy way of saying that you can put some logic into your database then call it from anywhere. + It's especially useful when the logic rarely changes - like password resets and updates. + examples: + - name: Call a stored procedure + isSpotlight: true + description: This is an example invoking a stored procedure. + dart: | + ```dart + final res = await supabase + .rpc('hello_world') + .execute(); + ``` + - name: With Parameters + dart: | + ```dart + final res = await supabase + .rpc('echo_city', params: { 'name': 'The Shire' }) + .execute(); + ``` + - name: With count option + description: | + You can specify a count option to get the row count along with your data. + Allowed values for count option are `exact`, `planned` and `estimated`. + dart: | + ```dart + final res = await supabase + .rpc('hello_world') + .execute(count: CountOption.exact); + ``` + + subscribe(): + description: | + Subscribe to realtime changes in your database. + title: 'on().subscribe()' + notes: | + - Realtime is disabled by default for new Projects for better database performance and security. You can turn it on by [managing replication](/docs/guides/api#managing-realtime). + - If you want to receive the "previous" data for updates and deletes, you will need to set `REPLICA IDENTITY` to `FULL`, like this: `ALTER TABLE your_table REPLICA IDENTITY FULL;` + examples: + - name: Listen to all database changes + isSpotlight: true + dart: | + ```dart + final mySubscription = supabase + .from('countries') + .on(SupabaseEventTypes.all, (payload) { + // Handle realtime payload + }) + .subscribe(); + ``` + - name: Listening to a specific table + dart: | + ```dart + final mySubscription = supabase + .from('countries') + .on(SupabaseEventTypes.all, (payload) { + // Handle realtime payload + }) + .subscribe(); + ``` + - name: Listening to inserts + dart: | + ```dart + final mySubscription = supabase + .from('countries') + .on(SupabaseEventTypes.insert, (payload) { + // Handle realtime payload + }) + .subscribe(); + ``` + - name: Listening to updates + description: | + By default, Supabase will send only the updated record. If you want to receive the previous values as well you can + enable full replication for the table you are listening too: + + ```sql + alter table "your_table" replica identity full; + ``` + dart: | + ```dart + final mySubscription = supabase + .from('countries') + .on(SupabaseEventTypes.update, (payload) { + // Handle realtime payload + }) + .subscribe(); + ``` + - name: Listening to deletes + description: | + By default, Supabase does not send deleted records. If you want to receive the deleted record you can + enable full replication for the table you are listening too: + + ```sql + alter table "your_table" replica identity full; + ``` + dart: | + ```dart + final mySubscription = supabase + .from('countries') + .on(SupabaseEventTypes.delete, (payload) { + // Handle realtime payload + }) + .subscribe(); + ``` + - name: Listening to multiple events + description: You can chain listeners if you want to listen to multiple events for each table. + dart: | + ```dart + final mySubscription = supabase + .from('countries') + .on(SupabaseEventTypes.insert, handleInsert) + .on(SupabaseEventTypes.delete, handleDelete) + .subscribe(); + ``` + - name: Listening to row level changes + description: You can listen to individual rows using the format `{table}:{col}=eq.{val}` - where `{col}` is the column name, and `{val}` is the value which you want to match. + dart: | + ```dart + final mySubscription = supabase + .from('countries:id=eq.200') + .on(SupabaseEventTypes.update, handleRecordUpdated) + .subscribe(); + ``` + + removeSubscription(): + description: | + Removes an active subscription and returns the number of open connections. + title: 'removeSubscription()' + notes: | + - Removing subscriptions is a great way to maintain the performance of your project's database. Supabase will automatically handle cleanup 30 seconds after a user is disconnected, but unused subscriptions may cause degradation as more users are simultaneously subscribed. + examples: + - name: Remove a subscription + isSpotlight: true + dart: | + ```dart + supabase.removeSubscription(mySubscription); + ``` + + getSubscriptions(): + description: | + Returns an array of all your subscriptions. + title: 'getSubscriptions()' + examples: + - name: Get all subscriptions + isSpotlight: true + dart: | + ```dart + final subscriptions = supabase.getSubscriptions(); + ``` + + stream(): + description: | + Notifies of data at the queried table. + title: 'stream()' + notes: | + - `stream()` will emit the initial data as well as any further change on the database as `Stream` of `List>` by combining Postgrest and Realtime. + - Takes a list of primary key columns as its argument. + examples: + - name: Listening to a specific table + isSpotlight: true + dart: | + ```dart + supabase + .from('countries') + .stream(['id']) + .execute(); + ``` + - name: Listening to a specific rows within a table + description: | + You can listen to individual rows using the format `{table}:{col}=eq.{val}` - where `{col}` is the column name, and `{val}` is the value which you want to match. + This syntax is the as how you can filter data in Realtime + dart: | + ```dart + supabase + .from('countries:id=eq.120') + .stream(['id']) + .execute(); + ``` + - name: With `order()` + dart: | + ```dart + supabase + .from('countries') + .stream(['id']) + .order('name', ascending: false) + .execute(); + ``` + - name: With `limit()` + dart: | + ```dart + supabase + .from('countries') + .stream(['id']) + .order('name', ascending: false) + .limit(10) + .execute(); + ``` + + storage.listBuckets(): + description: | + Retrieves the details of all Storage buckets within an existing product. + title: 'listBuckets()' + $ref: '@supabase/storage-js."lib/StorageBucketApi".StorageBucketApi.listBuckets' + notes: | + - Policy permissions required: + - `buckets` permissions: `select` + - `objects` permissions: none + examples: + - name: List buckets + isSpotlight: true + dart: | + ```dart + final res = await supabase + .storage + .listBuckets() + ``` + + storage.getBucket(): + description: | + Retrieves the details of an existing Storage bucket. + title: 'getBucket()' + $ref: '@supabase/storage-js."lib/StorageBucketApi".StorageBucketApi.getBucket' + notes: | + - Policy permissions required: + - `buckets` permissions: `select` + - `objects` permissions: none + examples: + - name: Get bucket + isSpotlight: true + dart: | + ```dart + final res = await supabase + .storage + .getBucket('avatars') + ``` + + storage.createBucket(): + description: | + Creates a new Storage bucket + title: 'createBucket()' + notes: | + - Policy permissions required: + - `buckets` permissions: `insert` + - `objects` permissions: none + examples: + - name: Create bucket + isSpotlight: true + dart: | + ```dart + final res = await supabase + .storage + .createBucket('avatars'); + ``` + + storage.emptyBucket(): + description: | + Removes all objects inside a single bucket. + title: 'emptyBucket()' + notes: | + - Policy permissions required: + - `buckets` permissions: `select` + - `objects` permissions: `select` and `delete` + examples: + - name: Empty bucket + isSpotlight: true + dart: | + ```dart + final res = await supabase + .storage + .emptyBucket('avatars'); + ``` + storage.updateBucket(): + description: | + Updates a new Storage bucket + title: 'updateBucket()' + notes: | + - Policy permissions required: + - `buckets` permissions: `update` + - `objects` permissions: none + examples: + - name: Update bucket + isSpotlight: true + dart: | + ```dart + final res = await supabase + .storage + .updateBucket('avatars', { public: false }); + ``` + + storage.deleteBucket(): + description: | + Deletes an existing bucket. A bucket can't be deleted with existing objects inside it. You must first `empty()` the bucket. + title: 'deleteBucket()' + notes: | + - Policy permissions required: + - `buckets` permissions: `select` and `delete` + - `objects` permissions: none + examples: + - name: Delete bucket + isSpotlight: true + dart: | + ```dart + final res = await supabase + .storage + .deleteBucket('avatars'); + ``` + + storage.from.upload(): + description: | + Uploads a file to an existing bucket. + title: 'from.upload()' + $ref: '@supabase/storage-js."lib/StorageFileApi".StorageFileApi.upload' + notes: | + - Policy permissions required: + - `buckets` permissions: none + - `objects` permissions: `insert` + examples: + - name: Upload file + isSpotlight: true + dart: | + ```dart + final avatarFile = File('path/to/file'); + final res = await supabase + .storage + .from('avatars') + .upload('public/avatar1.png', avatarFile, fileOptions: FileOptions( + cacheControl: '3600', + upsert: false + )); + ``` + + storage.from.update(): + description: | + Replaces an existing file at the specified path with a new one. + title: 'from.update()' + notes: | + - Policy permissions required: + - `buckets` permissions: none + - `objects` permissions: `update` and `select` + examples: + - name: Update file + isSpotlight: true + dart: | + ```dart + final avatarFile = File('path/to/file'); + final res = await supabase + .storage + .from('avatars') + .update('public/avatar1.png', avatarFile, fileOptions: FileOptions( + cacheControl: '3600', + upsert: false + )); + ``` + + storage.from.move(): + description: | + Moves an existing file, optionally renaming it at the same time. + title: 'from.move()' + notes: | + - Policy permissions required: + - `buckets` permissions: none + - `objects` permissions: `update` and `select` + examples: + - name: Move file + isSpotlight: true + dart: | + ```dart + final res = await supabase + .storage + .from('avatars') + .move('public/avatar1.png', 'private/avatar2.png'); + ``` + + storage.from.createSignedUrl(): + description: | + Create signed url to download file without requiring permissions. This URL can be valid for a set number of seconds. + title: 'from.createSignedUrl()' + notes: | + - Policy permissions required: + - `buckets` permissions: none + - `objects` permissions: `select` + examples: + - name: Create Signed URL + isSpotlight: true + dart: | + ```dart + final res = await supabase + .storage + .from('avatars') + .createSignedUrl('avatar1.png', 60); + + final signedURL = res.data; + ``` + + storage.from.getPublicUrl(): + description: | + Retrieve URLs for assets in public buckets + title: 'from.getPublicUrl()' + notes: | + - The bucket needs to be set to public, either via [updateBucket()](/docs/reference/javascript/storage-updatebucket) or by going to Storage on [app.supabase.com](https://app.supabase.com), clicking the overflow menu on a bucket and choosing "Make public" + - Policy permissions required: + - `buckets` permissions: none + - `objects` permissions: none + examples: + - name: Returns the URL for an asset in a public bucket + isSpotlight: true + dart: | + ```dart + final res = supabase + .storage + .from('public-bucket') + .getPublicUrl('avatar1.png'); + + final publicURL = res.data; + ``` + + storage.from.download(): + description: | + Downloads a file. + title: 'from.download()' + notes: | + - Policy permissions required: + - `buckets` permissions: none + - `objects` permissions: `select` + examples: + - name: Download file + isSpotlight: true + dart: | + ```dart + final res = await supabase + .storage + .from('avatars') + .download('avatar1.png'); + ``` + + storage.from.remove(): + description: | + Deletes files within the same bucket + title: 'from.remove()' + notes: | + - Policy permissions required: + - `buckets` permissions: none + - `objects` permissions: `delete` and `select` + examples: + - name: Delete file + isSpotlight: true + dart: | + ```dart + final res = await supabase + .storage + .from('avatars') + .remove(['avatar1.png']); + ``` + + storage.from.list(): + description: | + Lists all the files within a bucket. + title: 'from.list()' + notes: | + - Policy permissions required: + - `buckets` permissions: none + - `objects` permissions: `select` + examples: + - name: List files in a bucket + isSpotlight: true + dart: | + ```dart + final res = await supabase + .storage + .from('avatars') + .list(); + ``` + Using Modifiers: + description: | + Modifiers can be used on `select()` queries. + + If a Stored Procedure returns a table response, you can also apply modifiers to the `rpc()` function. + + limit(): + description: | + Limits the result with the specified count. + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .limit(1) + .execute(); + ``` + - name: With embedded resources + dart: | + ```dart + final res = await supabase + .from('countries') + .select('name, cities(name)') + .eq('name', 'United States') + .limit(1, foreignTable: 'cities' ) + .execute(); + ``` + + order(): + description: | + Orders the result with the specified column. + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .order('id', ascending: false ) + .execute(); + ``` + - name: With embedded resources + dart: | + ```dart + final res = await supabase + .from('countries') + .select('name, cities(name)') + .eq('name', 'United States') + .order('name', foreignTable: 'cities') + .execute(); + ``` + + range(): + description: | + Limits the result to rows within the specified range, inclusive. + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .range(0,3) + .execute(); + ``` + + single(): + description: | + Retrieves only one row from the result. Result must be one row (e.g. using limit), otherwise this will result in an error. + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .single() + .execute(); + ``` + + Using Filters: + description: | + Filters can be used on `select()`, `update()`, and `delete()` queries. + + If a Stored Procedure returns a table response, you can also apply filters. + + ### Applying Filters + + You must apply your filters to the end of your query. For example: + + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .eq('name', 'The Shire') // Correct + .execute(); + + final res = await supabase + .from('cities') + .eq('name', 'The Shire') // Incorrect + .select('name, country_id') + .execute(); + ``` + + ### Chaining + + Filters can be chained together to produce advanced queries. For example: + + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .gte('population', 1000) + .lt('population', 10000) + .execute(); + ``` + + .or(): + description: | + Finds all rows satisfying at least one of the filters. + notes: | + - `.or()` expects you to use the raw [PostgREST syntax](https://postgrest.org/en/stable/api.html#horizontal-filtering-rows) for the filter names and values. + + ```dart + .or('id.in.(6,7),arraycol.cs.{"a","b"}') // Use Postgres list () and 'in' for in_ filter. Array {} and 'cs' for contains. + .or('id.in.(${mylist.join(',')}),arraycol.cs.{${mylistArray.join(',')}}') // You can insert a Dart list for list or array column. + .or('id.in.(${mylist.join(',')}),rangecol.cs.(${mylistRange.join(',')}]') // You can insert a Dart list for list or range column. + ``` + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .or('id.eq.20,id.eq.30') + .execute(); + ``` + - name: Use `or` with `and` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .or('id.gt.20,and(name.eq.New Zealand,name.eq.France)') + .execute(); + ``` + # TODO Not available at the moment, so would have to fix the bug on postgrest-dart first + # - name: Use `or` on foreign tables + # isSpotlight: true + # dart: | + # ```dart + # final res = await supabase + # .from('countries') + # .select('id, cities(*)') + # .or('name.eq.Wellington,name.eq.Paris', { foreignTable: "cities" }) + # ``` + + .not(): + description: | + Finds all rows which doesn't satisfy the filter. + notes: | + - `.not()` expects you to use the raw [PostgREST syntax](https://postgrest.org/en/stable/api.html#horizontal-filtering-rows) for the filter names and values. + + ```dart + .not('name','eq','Paris') + .not('arraycol','cs','{"a","b"}') // Use Postgres array {} for array column and 'cs' for contains. + .not('rangecol','cs','(1,2]') // Use Postgres range syntax for range column. + .not('id','in','(6,7)') // Use Postgres list () and 'in' for in_ filter. + .not('id','in','(${mylist.join(',')})') // You can insert a Dart list array. + ``` + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .not('name', 'eq', 'Paris') + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('cities') + .update({ 'name': 'Mordor' }) + .not('name', 'eq', 'Paris') + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('cities') + .delete() + .not('name', 'eq', 'Paris') + .execute(); + ``` + - name: With `rpc()` + dart: | + ```dart + // Only valid if the Stored Procedure returns a table type. + final res = await supabase + .rpc('echo_all_cities) + .not('name', 'eq', 'Paris') + .execute(); + ``` + + .match(): + description: | + Finds all rows whose columns match the specified `query` object. + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .match({'name': 'Beijing', 'country_id': 156}) + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('cities') + .update({ 'name': 'Mordor' }) + .match({'name': 'Beijing', 'country_id': 156}) + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('cities') + .delete() + .match({'name': 'Beijing', 'country_id': 156}) + .execute(); + ``` + - name: With `rpc()` + dart: | + ```dart + // Only valid if the Stored Procedure returns a table type. + final res = await supabase + .rpc('echo_all_cities') + .match({'name': 'Beijing', 'country_id': 156}) + .execute(); + ``` + + .eq(): + description: | + Finds all rows whose value on the stated `column` exactly matches the specified `value`. + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .eq('name', 'The shire') + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('cities') + .update({ 'name': 'Mordor' }) + .eq('name', 'San Francisco') + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('cities') + .delete() + .eq('name', 'Mordor') + .execute(); + ``` + - name: With `rpc()` + dart: | + ```dart + // Only valid if the Stored Procedure returns a table type. + final res = await supabase + .rpc('echo_all_cities') + .eq('name', 'San Francisco') + .execute(); + ``` + + .neq(): + description: | + Finds all rows whose value on the stated `column` doesn't match the specified `value`. + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .neq('name', 'The shire') + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('cities') + .update({ 'name': 'Mordor' }) + .neq('name', 'San Francisco') + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('cities') + .delete() + .neq('name', 'Mordor') + .execute(); + ``` + - name: With `rpc()` + dart: | + ```dart + // Only valid if the Stored Procedure returns a table type. + final res = await supabase + .rpc('echo_all_cities') + .neq('name', 'Lagos') + .execute(); + ``` + + .gt(): + description: | + Finds all rows whose value on the stated `column` is greater than the specified `value`. + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .gt('country_id', 250) + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('cities') + .update({ 'name': 'Mordor' }) + .gt('country_id', 250) + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('cities') + .delete() + .gt('country_id', 250) + .execute(); + ``` + - name: With `rpc()` + dart: | + ```dart + // Only valid if the Stored Procedure returns a table type. + final res = await supabase + .rpc('echo_all_cities') + .gt('country_id', 250) + .execute(); + ``` + + .gte(): + description: | + Finds all rows whose value on the stated `column` is greater than or equal to the specified `value`. + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .gte('country_id', 250) + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('cities') + .update({ 'name': 'Mordor' }) + .gte('country_id', 250) + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('cities') + .delete() + .gte('country_id', 250) + .execute(); + ``` + - name: With `rpc()` + dart: | + ```dart + // Only valid if the Stored Procedure returns a table type. + final res = await supabase + .rpc('echo_all_cities') + .gte('country_id', 250) + .execute(); + ``` + + .lt(): + description: | + Finds all rows whose value on the stated `column` is less than the specified `value`. + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .lt('country_id', 250) + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('cities') + .update({ 'name': 'Mordor' }) + .lt('country_id', 250) + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('cities') + .delete() + .lt('country_id', 250) + .execute(); + ``` + - name: With `rpc()` + dart: | + ```dart + // Only valid if the Stored Procedure returns a table type. + final res = await supabase + .rpc('echo_all_cities') + .lt('country_id', 250) + .execute(); + ``` + + .lte(): + description: | + Finds all rows whose value on the stated `column` is less than or equal to the specified `value`. + $ref: '@supabase/postgrest-js.PostgrestFilterBuilder.lte' + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .lte('country_id', 250) + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('cities') + .update({ 'name': 'Mordor' }) + .lte('country_id', 250) + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('cities') + .delete() + .lte('country_id', 250) + .execute(); + ``` + - name: With `rpc()` + dart: | + ```dart + // Only valid if the Stored Procedure returns a table type. + final res = await supabase + .rpc('echo_all_cities') + .lte('country_id', 250) + .execute(); + ``` + + .like(): + description: | + Finds all rows whose value in the stated `column` matches the supplied `pattern` (case sensitive). + $ref: '@supabase/postgrest-js.PostgrestFilterBuilder.like' + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .like('name', '%la%') + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('cities') + .update({ 'name': 'Mordor' }) + .like('name', '%la%') + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('cities') + .delete() + .like('name', '%la%') + .execute(); + ``` + - name: With `rpc()` + dart: | + ```dart + // Only valid if the Stored Procedure returns a table type. + final res = await supabase + .rpc('echo_all_cities') + .like('name', '%la%') + .execute(); + ``` + + .ilike(): + description: | + Finds all rows whose value in the stated `column` matches the supplied `pattern` (case insensitive). + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .ilike('name', '%la%') + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('cities') + .update({ 'name': 'Mordor' }) + .ilike('name', '%la%') + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('cities') + .delete() + .ilike('name', '%la%') + .execute(); + ``` + - name: With `rpc()` + dart: | + ```dart + // Only valid if the Stored Procedure returns a table type. + final res = await supabase + .rpc('echo_all_cities') + .ilike('name', '%la%') + .execute(); + ``` + + .is_(): + description: | + A check for exact equality (null, true, false), finds all rows whose value on the stated `column` exactly match the specified `value`. + + `is_` and `in_` filter methods are suffixed with `_` to avoid collisions with reserved keywords. + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .is_('name', null) + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('cities') + .update({ 'name': 'Mordor' }) + .is_('name', null) + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('cities') + .delete() + .is_('name', null) + .execute(); + ``` + - name: With `rpc()` + dart: | + ```dart + // Only valid if the Stored Procedure returns a table type. + final res = await supabase + .rpc('echo_all_cities') + .is_('name', null) + .execute(); + ``` + + .in_(): + description: | + Finds all rows whose value on the stated `column` is found on the specified `values`. + + `is_` and `in_` filter methods are suffixed with `_` to avoid collisions with reserved keywords. + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .in_('name', ['Rio de Janeiro', 'San Francisco']) + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('cities') + .update({ 'name': 'Mordor' }) + .in_('name', ['Rio de Janeiro', 'San Francisco']) + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('cities') + .delete() + .in_('name', ['Rio de Janeiro', 'San Francisco']) + .execute(); + ``` + - name: With `rpc()` + dart: | + ```dart + // Only valid if the Stored Procedure returns a table type. + final res = await supabase + .rpc('echo_all_cities') + .in_('name', ['Rio de Janeiro', 'San Francisco']) + .execute(); + ``` + + .contains(): + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('countries') + .select('name, id, main_exports') + .contains('main_exports', ['oil']) + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('countries') + .update({ 'name': 'Mordor' }) + .contains('main_exports', ['oil']) + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('countries') + .delete() + .contains('main_exports', ['oil']) + .execute(); + ``` + - name: With `rpc()` + dart: | + ```dart + // Only valid if the Stored Procedure returns a table type. + final res = await supabase + .rpc('echo_all_countries') + .contains('main_exports', ['oil']) + .execute(); + ``` + + .containedBy(): + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('countries') + .select('name, id, main_exports') + .containedBy('main_exports', ['cars', 'food', 'machine']) + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('countries') + .update({ 'name': 'Mordor' }) + .containedBy('main_exports', ['orks', 'surveillance', 'evil']) + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('countries') + .delete() + .containedBy('main_exports', ['cars', 'food', 'machine']) + .execute(); + ``` + - name: With `rpc()` + dart: | + ```dart + // Only valid if the Stored Procedure returns a table type. + final res = await supabase + .rpc('echo_all_countries') + .containedBy('main_exports', ['cars', 'food', 'machine']) + .execute(); + ``` + + .rangeLt(): + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('countries') + .select('name, id, population_range_millions') + .rangeLt('population_range_millions', '[150, 250]') + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('countries') + .update({ 'name': 'Mordor' }) + .rangeLt('population_range_millions', '[150, 250]') + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('countries') + .delete() + .rangeLt('population_range_millions', '[150, 250]') + .execute(); + ``` + - name: With `rpc()` + dart: | + ```dart + // Only valid if the Stored Procedure returns a table type. + final res = await supabase + .rpc('echo_all_countries') + .rangeLt('population_range_millions', '[150, 250]') + .execute(); + ``` + + .rangeGt(): + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('countries') + .select('name, id, population_range_millions') + .rangeGt('population_range_millions', '[150, 250]') + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('countries') + .update({ 'name': 'Mordor' }) + .rangeGt('population_range_millions', '[150, 250]') + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('countries') + .delete() + .rangeGt('population_range_millions', '[150, 250]') + .execute(); + ``` + - name: With `rpc()` + dart: | + ```dart + // Only valid if the Stored Procedure returns a table type. + final res = await supabase + .rpc('echo_all_countries') + .rangeGt('population_range_millions', '[150, 250]') + .execute(); + ``` + + .rangeGte(): + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('countries') + .select('name, id, population_range_millions') + .rangeGte('population_range_millions', '[150, 250]') + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('countries') + .update({ 'name': 'Mordor' }) + .rangeGte('population_range_millions', '[150, 250]') + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('countries') + .delete() + .rangeGte('population_range_millions', '[150, 250]') + .execute(); + ``` + - name: With `rpc()` + dart: | + ```dart + // Only valid if the Stored Procedure returns a table type. + final res = await supabase + .rpc('echo_all_countries') + .rangeGte('population_range_millions', '[150, 250]') + .execute(); + ``` + + .rangeLte(): + $ref: '@supabase/postgrest-js.PostgrestFilterBuilder.rangeLte' + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('countries') + .select('name, id, population_range_millions') + .rangeLte('population_range_millions', '[150, 250]') + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('countries') + .update({ 'name': 'Mordor' }) + .rangeLte('population_range_millions', '[150, 250]') + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('countries') + .delete() + .rangeLte('population_range_millions', '[150, 250]') + .execute(); + ``` + - name: With `rpc()` + dart: | + ```dart + // Only valid if the Stored Procedure returns a table type. + final res = await supabase + .rpc('echo_all_countries') + .rangeLte('population_range_millions', [150, 250]) + .execute(); + ``` + + .rangeAdjacent(): + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('countries') + .select('name, id, population_range_millions') + .rangeAdjacent('population_range_millions', '[70, 185]') + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('countries') + .update({ 'name': 'Mordor' }) + .rangeAdjacent('population_range_millions', '[70, 185]') + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('countries') + .delete() + .rangeAdjacent('population_range_millions', '[70, 185]') + .execute(); + ``` + - name: With `rpc()` + dart: | + ```dart + // Only valid if the Stored Procedure returns a table type. + final res = await supabase + .rpc('echo_all_countries') + .rangeAdjacent('population_range_millions', '[70, 185]') + .execute(); + ``` + + .overlaps(): + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('countries') + .select('name, id, main_exports') + .overlaps('main_exports', ['computers', 'minerals']) + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('countries') + .update({ 'name': 'Mordor' }) + .overlaps('main_exports', ['computers', 'minerals']) + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('countries') + .delete() + .overlaps('main_exports', ['computers', 'minerals']) + .execute(); + ``` + - name: With `rpc()` + dart: | + ```dart + // Only valid if the Stored Procedure returns a table type. + final res = await supabase + .rpc('echo_all_countries') + .overlaps('main_exports', ['computers', 'minerals']) + .execute(); + ``` + + .textSearch(): + description: | + Finds all rows whose tsvector value on the stated `column` matches to_tsquery(query). + examples: + - name: Text search + dart: | + ```dart + final res = await supabase + .from('quotes') + .select('catchphrase') + .textSearch('catchphrase', "'fat' & 'cat'", + config: 'english' + ) + .execute(); + ``` + - name: Basic normalization + description: Uses PostgreSQL's `plainto_tsquery` function. + dart: | + ```dart + final res = await supabase + .from('quotes') + .select('catchphrase') + .textSearch('catchphrase', "'fat' & 'cat'", + type: TextSearchType.plain, + config: 'english' + ) + .execute(); + ``` + - name: Full normalization + description: Uses PostgreSQL's `phraseto_tsquery` function. + dart: | + ```dart + final res = await supabase + .from('quotes') + .select('catchphrase') + .textSearch('catchphrase', "'fat' & 'cat'", + type: TextSearchType.phrase, + config: 'english' + ) + .execute(); + ``` + - name: Full normalization + description: | + Uses PostgreSQL's `websearch_to_tsquery` function. + This function will never raise syntax errors, which makes it possible to use raw user-supplied input for search, and can be used + with advanced operators. + + - `unquoted text`: text not inside quote marks will be converted to terms separated by & operators, as if processed by plainto_tsquery. + - `"quoted text"`: text inside quote marks will be converted to terms separated by <-> operators, as if processed by phraseto_tsquery. + - `OR`: the word “or” will be converted to the | operator. + - `-`: a dash will be converted to the ! operator. + + dart: | + ```dart + final res = await supabase + .from('quotes') + .select('catchphrase') + .textSearch('catchphrase', "'fat or cat'", + type: TextSearchType.websearch, + config: 'english' + ) + .execute(); + ``` + + .filter(): + description: | + Finds all rows whose `column` satisfies the filter. + notes: | + - `.filter()` expects you to use the raw [PostgREST syntax](https://postgrest.org/en/stable/api.html#horizontal-filtering-rows) for the filter names and values, so it should only be used as an escape hatch in case other filters don't work. + ```dart + .filter('arraycol','cs','{"a","b"}') // Use Postgres array {} and 'cs' for contains. + .filter('rangecol','cs','(1,2]') // Use Postgres range syntax for range column. + .filter('id','in','(6,7)') // Use Postgres list () and 'in' for in_ filter. + .filter('id','cs','{${mylist.join(',')}}') // You can insert a Dart array list. + ``` + examples: + - name: With `select()` + isSpotlight: true + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name, country_id') + .filter('name', 'in', '("Paris","Tokyo")') + .execute(); + ``` + - name: With `update()` + dart: | + ```dart + final res = await supabase + .from('cities') + .update({ 'name': 'Mordor' }) + .filter('name', 'in', '("Paris","Tokyo")') + .execute(); + ``` + - name: With `delete()` + dart: | + ```dart + final res = await supabase + .from('cities') + .delete() + .filter('name', 'in', '("Paris","Tokyo")') + .execute(); + ``` + - name: With `rpc()` + dart: | + ```dart + // Only valid if the Stored Procedure returns a table type. + final res = await supabase + .rpc('echo_all_cities') + .filter('name', 'in', '("Paris","Tokyo")') + ``` + - name: Filter embedded resources + dart: | + ```dart + final res = await supabase + .from('cities') + .select('name, countries ( name )') + .filter('countries.name', 'in', '("France","Japan")') + .execute(); + ``` diff --git a/spec/supabase_dart_v1_legacy.yml b/spec/supabase_dart_v1_legacy.yml index 85051bedb4c..0b62f631386 100644 --- a/spec/supabase_dart_v1_legacy.yml +++ b/spec/supabase_dart_v1_legacy.yml @@ -16,59 +16,6 @@ info: version: '0.0.1' pages: - Installing: - description: | - ## Dart - - Dart libraries are built and supported by the community. - - ```bash - dart pub add supabase - ``` - - Find the source code on [GitHub](https://github.com/supabase/supabase-dart). - - ## Flutter - - For Flutter project, you can use [supabase_flutter](https://github.com/supabase/supabase-flutter). - - ```bash - flutter pub add supabase_flutter - ``` - - `supabase_flutter` plugin uses `supabase` plugin internally, and it adds some Flutter specific functionality such as handling deeplinks coming back from magic link verifications. - If you are creating a Flutter application, we recommend using `supabase_flutter` instead of `supabase`. - - For the most part `supabase_flutter` shares the same API as `supabase` with few exceptions such as initialization or OAuth sign in. - - Initializing: - description: | - ## Dart - You can initialize a new Supabase client using the `SupabaseClient()` method. - - The Supabase client is your entrypoint to the rest of the Supabase functionality - and is the easiest way to interact with everything we offer within the Supabase ecosystem. - - - ## Flutter - - For `supabase_flutter`, you will be using the static `initialize()` method on `Supabase` class. - - examples: - - name: Dart SupabaseClient() - dart: | - ```dart - final supabase = SupabaseClient('https://xyzcompany.supabase.co', 'public-anon-key'); - ``` - - name: Flutter initialize() - dart: | - ```dart title="main.dart" - Future main() async { - await Supabase.initialize(url: 'https://xyzcompany.supabase.co', anonKey: 'public-anon-key'); - runApp(MyApp()); - } - ``` - auth.signUp(): description: | Creates a new user. @@ -82,10 +29,9 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase.auth.signUp('example@email.com', 'example-password'); + final GotrueSessionResponse res = await supabase.auth.signUp('example@email.com', 'example-password'); - final user = res.data?.user; - final error = res.error; + final User? user = res.user; ``` - name: Sign up with third-party providers. hideCodeBlock: true @@ -99,25 +45,27 @@ pages: - A user can sign up via email, phone number. - If you provide `email` without a `password`, the user will be sent a magic link. - The magic link's destination URL is determined by the SITE_URL config variable. To change this, you can go to Authentication -> Settings on [app.supabase.com](https://app.supabase.com) - - Similarly, if you provide `phone` without a `password`, the user will be sent a one time password. + - Similarly, if you provide `phone` without a `password`, the user will be sent a one time password. - If you are looking to sign users in with OAuth in Flutter apps, go to [`signInWithProvider()`](/docs/reference/dart/auth-signinwithprovider). examples: - name: Sign in with email. isSpotlight: true dart: | ```dart - final res = await supabase.auth.signIn(email: 'example@email.com', password: 'example-password'); + final GotrueSessionResponse res = await supabase.auth.signIn( + email: 'example@email.com', + password: 'example-password', + ); - final user = res.data?.user; - final error = res.error; + final User? user = res.user; ``` - name: Sign in with magic link. description: If email is provided, but no password is provided, the user will be sent a "magic link" to their email address, which they can click to open your application with a valid session. By default, a given user can only request a Magic Link once every 60 seconds. dart: | ```dart - final res = await supabase.auth.signIn(email: 'example@email.com'); - - final error = res.error; + final GotrueSessionResponse res = await supabase.auth.signIn( + email: 'example@email.com', + ); ``` - name: Get OAuth sign in URL. description: | @@ -125,10 +73,11 @@ pages: If you are looking to sign in a user via OAuth on Flutter app, go to [`signInWithProvider()`](/docs/reference/dart/auth-signinwithprovider). dart: | ```dart - final res = await supabase.auth.signIn(provider: Provider.github); + final GotrueSessionResponse res = await supabase.auth.signIn( + provider: Provider.github, + ); - final url = res.data?.url; - final error = res.error; + final User? user = res.user; ``` auth.signInWithProvider(): description: | @@ -141,9 +90,7 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase.auth.signInWithProvider(Provider.github); - - final error = res.error; + await supabase.auth.signInWithProvider(Provider.github); ``` - name: With `redirectTo` description: | @@ -151,15 +98,12 @@ pages: Note that `redirectTo` should be null for Flutter Web. dart: | ```dart - final res = await supabase.auth.signInWithProvider( + await supabase.auth.signInWithProvider( Provider.github, - options: AuthOptions( - redirectTo: kIsWeb - ? null - : 'io.supabase.flutter://reset-callback/'), + options: const AuthOptions( + redirectTo: kIsWeb ? null : 'io.supabase.flutter://reset-callback/', + ), ); - - final error = res.error; ``` - name: With scopes description: | @@ -167,12 +111,13 @@ pages: You may also need to specify the scopes in the provider's OAuth app settings, depending on the provider. dart: | ```dart - const { user, session, error } = await supabase.auth.signIn({ - provider: 'github' - }, { - scopes: 'repo gist notifications' - }) - const oAuthToken = session.provider_token // use to access provider API + await supabase.auth.signInWithProvider(Provider.github, + options: const AuthOptions(scopes: 'repo gist notifications')); + ... + // after user comes back from signin flow + + final Session? session = supabase.auth.currentSession; + final String? oAuthToken = session?.providerToken; ``` auth.signOut(): description: | @@ -182,12 +127,10 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase.auth.signOut(); - - final error = res.error; + await supabase.auth.signOut(); ``` - auth.session(): + auth.currentSession: description: | Returns the session data, if there is an active session. examples: @@ -195,10 +138,10 @@ pages: isSpotlight: true dart: | ```dart - final session = supabase.auth.session(); + final Session? session = supabase.auth.currentSession; ``` - auth.user(): + auth.currentUser: description: | Returns the user data, if there is a logged in user. examples: @@ -206,7 +149,7 @@ pages: isSpotlight: true dart: | ```dart - final user = supabase.auth.user(); + final User? user = supabase.auth.currentUser; ``` auth.update(): @@ -220,11 +163,9 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase.auth.update( - UserAttributes(data: {'hello': 'world'}) + final GotrueUserResponse res = await supabase.auth.update( + UserAttributes(data: {'hello': 'world'}), ); - - final error = res.error; ``` auth.onAuthStateChange(): @@ -235,10 +176,12 @@ pages: isSpotlight: true dart: | ```dart - final subscription = supabase.auth.onAuthStateChange((event, session) { - print(session?.user?.id); - // handle auth state change - }); + final subscription = supabase.auth.onAuthStateChange( + (event, session) { + print(session?.user?.id); + // handle auth state change + }, + ); ``` Reset Password (Email): @@ -262,14 +205,6 @@ pages: ); ``` examples: - - name: Reset password - isSpotlight: true - dart: | - ```dart - final res = await supabase.auth.api.resetPasswordForEmail('user@example.com'); - - final error = res.error; - ``` - name: Reset password for Flutter isSpotlight: true dart: | @@ -281,8 +216,12 @@ pages: ? null : 'io.supabase.flutter://reset-callback/'), ); - - final error = res.error; + ``` + - name: Reset password + isSpotlight: true + dart: | + ```dart + final res = await supabase.auth.api.resetPasswordForEmail('user@example.com'); ``` invoke(): title: 'invoke()' @@ -296,9 +235,8 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabaseClient.functions.invoke('hello', body: {'foo': 'baa'}); + final res = await supabase.functions.invoke('hello', body: {'foo': 'baa'}); final data = res.data; - final error = res.error; ``` - name: Specifying response type. description: | @@ -306,13 +244,12 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabaseClient.functions.invoke( + final res = await supabase.functions.invoke( 'hello', body: {'foo': 'baa'}, responseType: ResponseType.text, ); final data = res.data; - final error = res.error; ``` - name: Parsing custom headers. description: | @@ -320,11 +257,11 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabaseClient.functions.invoke( + final res = await supabase.functions.invoke( 'hello', body: {'foo': 'baa'}, headers: { - 'Authorization': 'Bearer ${supabase.auth.session()?.access_token}' + 'Authorization': 'Bearer ${supabase.auth.currentSession?.accessToken}' }, ); ``` @@ -342,36 +279,34 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') - .select() - .execute(); - - final data = res.data; - final error = res.error; + .select('name'); ``` - name: Selecting specific columns description: You can select specific fields from your tables. dart: | ```dart - final res = await supabase - .from('cities') - .select('name') - .execute(); - ``` - - name: Query foreign tables - description: If your database has relationships, you can query related tables too. - dart: | - ```dart - final res = await supabase + final data = await supabase .from('countries') .select(''' name, cities ( name ) - ''') - .execute(); + '''); + ``` + - name: Query foreign tables + description: If your database has relationships, you can query related tables too. + dart: | + ```dart + final data = await supabase + .from('products') + .select(''' + id, + supplier:supplier_id ( name ), + purchaser:purchaser_id ( name ) + '''); ``` - name: Query the same foreign table multiple times description: | @@ -383,14 +318,10 @@ pages: (both in the users) table: dart: | ```dart - final res = await supabase - .from('products') - .select(''' - id, - supplier:supplier_id ( name ), - purchaser:purchaser_id ( name ) - ''') - .execute(); + final data = await supabase + .from('messages') + .select('*, users!inner(*)') + .eq('users.username', 'Jane'); ``` - name: Filtering with inner joins description: | @@ -398,11 +329,10 @@ pages: to select all rows in a `message` table which belong to a user with the `username` "Jane": dart: | ```dart - final res = await supabase + final data = await supabase .from('messages') .select('*, users!inner(*)') - .eq('users.username', 'Jane') - .execute(); + .eq('users.username', 'Jane'); ``` - name: Querying with count option description: | @@ -410,10 +340,12 @@ pages: Allowed values for count option are [exact](https://postgrest.org/en/stable/api.html#exact-count), [planned](https://postgrest.org/en/stable/api.html#planned-count) and [estimated](https://postgrest.org/en/stable/api.html#estimated-count). dart: | ```dart - final res = await supabase - .from('cities') - .select('name') - .execute(count: CountOption.exact); + final res = await supabase.from('cities').select( + 'name', + const FetchOptions( + count: CountOption.exact, + ), + ); final count = res.count; ``` @@ -426,55 +358,45 @@ pages: [PostgREST docs](http://postgrest.org/en/v7.0.0/api.html#json-columns) for more details. dart: | ```dart - final res = await supabase + final data = await supabase .from('users') .select(''' id, name, address->street ''') - .eq('address->postcode', 90210) - .execute(); + .eq('address->postcode', 90210); ``` - name: Return data as CSV description: | By default the data is returned in JSON format, however you can also request for it to be returned as Comma Separated Values. dart: | ```dart - final res = await supabase + final data = await supabase .from('users') .select() - .csv() - .execute(); + .csv(); ``` insert(): description: | Performs an INSERT into the table. title: 'Create data: insert()' - notes: | - - By default, every time you run `insert()`, the client library will make a `select` to return the full record. - This is convenient, but it can also cause problems if your Policies are not configured to allow the `select` operation. - If you are using Row Level Security and you are encountering problems, try setting the `returning` param to `minimal`. examples: - name: Create a record isSpotlight: true dart: | ```dart - final res = await supabase - .from('cities') - .insert([ - {'name': 'The Shire', 'country_id': 554} - ]).execute(); + final data = await supabase + .from('cities') + .insert({'name': 'The Shire', 'country_id': 554}); ``` - name: Bulk create dart: | ```dart - final res = await supabase - .from('cities') - .insert([ - {'name': 'The Shire', 'country_id': 554}, - {'name': 'Rohan', 'country_id': 555}, - ]).execute(); + final res = await supabase.from('cities').insert([ + {'name': 'The Shire', 'country_id': 554}, + {'name': 'Rohan', 'country_id': 555}, + ]); ``` update(): @@ -488,11 +410,10 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .update({ 'name': 'Middle Earth' }) - .match({ 'name': 'Auckland' }) - .execute(); + .match({ 'name': 'Auckland' }); ``` - name: Updating JSON data description: | @@ -502,16 +423,15 @@ pages: but we are [working on ideas](https://github.com/PostgREST/postgrest/issues/465) for updating individual keys. dart: | ```dart - final res = await supabase + final data = await supabase .from('users') .update({ - 'address': { + 'address': { 'street': 'Melrose Place', 'postcode': 90210 } }) - .eq('address->postcode', 90210) - .execute(); + .eq('address->postcode', 90210); ``` upsert(): @@ -526,10 +446,9 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase + final data = await supabase .from('messages') - .upsert({ 'id': 3, 'message': 'foo', 'username': 'supabot' }) - .execute(); + .upsert({ 'id': 3, 'message': 'foo', 'username': 'supabot' }); ``` - name: Upserting into tables with constraints description: | @@ -539,24 +458,22 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase + final data = await supabase .from('users') - .upsert({ 'username': 'supabot' }, { 'onConflict': 'username' }) - .execute(); + .upsert({ 'username': 'supabot' }, { 'onConflict': 'username' }); ``` - name: Return the exact number of rows description: | Allowed values for count option are `exact`, `planned` and `estimated`. dart: | ```dart - final res = await supabase - .from('users') - .upsert({ - 'id': 3, - 'message': 'foo', - 'username': 'supabot' - }) - .execute(count: CountOption.exact); + final res = await supabase.from('users').upsert( + {'id': 3, 'message': 'foo', 'username': 'supabot'}, + options: const FetchOptions(count: CountOption.exact), + ); + + final data = res.data; + final count = res.count; ``` delete(): @@ -570,11 +487,10 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .delete() - .match({ 'id': 666 }) - .execute(); + .match({ 'id': 666 }); ``` rpc(): @@ -590,26 +506,14 @@ pages: description: This is an example invoking a stored procedure. dart: | ```dart - final res = await supabase - .rpc('hello_world') - .execute(); + final data = await supabase + .rpc('hello_world'); ``` - name: With Parameters dart: | ```dart - final res = await supabase - .rpc('echo_city', params: { 'name': 'The Shire' }) - .execute(); - ``` - - name: With count option - description: | - You can specify a count option to get the row count along with your data. - Allowed values for count option are `exact`, `planned` and `estimated`. - dart: | - ```dart - final res = await supabase - .rpc('hello_world') - .execute(count: CountOption.exact); + final data = await supabase + .rpc('echo_city', params: { 'name': 'The Shire' }); ``` subscribe(): @@ -624,32 +528,35 @@ pages: isSpotlight: true dart: | ```dart - final mySubscription = supabase - .from('countries') - .on(SupabaseEventTypes.all, (payload) { - // Handle realtime payload - }) - .subscribe(); + supabase.channel('*').on( + RealtimeListenTypes.postgresChanges, + ChannelFilter(event: '*', schema: '*'), + (payload, [ref]) { + print('Change received: ${payload.toString()}'); + }, + ).subscribe(); ``` - name: Listening to a specific table dart: | ```dart - final mySubscription = supabase - .from('countries') - .on(SupabaseEventTypes.all, (payload) { - // Handle realtime payload - }) - .subscribe(); + supabase.channel('public:countries').on( + RealtimeListenTypes.postgresChanges, + ChannelFilter(event: '*', schema: 'public', table: 'countries'), + (payload, [ref]) { + print('Change received: ${payload.toString()}'); + }, + ).subscribe(); ``` - name: Listening to inserts dart: | ```dart - final mySubscription = supabase - .from('countries') - .on(SupabaseEventTypes.insert, (payload) { - // Handle realtime payload - }) - .subscribe(); + supabase.channel('public:countries').on( + RealtimeListenTypes.postgresChanges, + ChannelFilter(event: 'INSERT', schema: 'public', table: 'countries'), + (payload, [ref]) { + print('Change received: ${payload.toString()}'); + }, + ).subscribe(); ``` - name: Listening to updates description: | @@ -661,12 +568,13 @@ pages: ``` dart: | ```dart - final mySubscription = supabase - .from('countries') - .on(SupabaseEventTypes.update, (payload) { - // Handle realtime payload - }) - .subscribe(); + supabase.channel('public:countries').on( + RealtimeListenTypes.postgresChanges, + ChannelFilter(event: 'UPDATE', schema: 'public', table: 'countries'), + (payload, [ref]) { + print('Change received: ${payload.toString()}'); + }, + ).subscribe(); ``` - name: Listening to deletes description: | @@ -678,57 +586,82 @@ pages: ``` dart: | ```dart - final mySubscription = supabase - .from('countries') - .on(SupabaseEventTypes.delete, (payload) { - // Handle realtime payload - }) - .subscribe(); + supabase.channel('public:countries').on( + RealtimeListenTypes.postgresChanges, + ChannelFilter(event: 'DELETE', schema: 'public', table: 'countries'), + (payload, [ref]) { + print('Change received: ${payload.toString()}'); + }, + ).subscribe(); ``` - name: Listening to multiple events description: You can chain listeners if you want to listen to multiple events for each table. dart: | ```dart - final mySubscription = supabase - .from('countries') - .on(SupabaseEventTypes.insert, handleInsert) - .on(SupabaseEventTypes.delete, handleDelete) - .subscribe(); + supabase.channel('public:countries').on(RealtimeListenTypes.postgresChanges, + ChannelFilter(event: 'INSERT', schema: 'public', table: 'countries'), + (payload, [ref]) { + print('Change received: ${payload.toString()}'); + }).on(RealtimeListenTypes.postgresChanges, + ChannelFilter(event: 'DELETE', schema: 'public', table: 'countries'), + (payload, [ref]) { + print('Change received: ${payload.toString()}'); + }).subscribe(); ``` - name: Listening to row level changes description: You can listen to individual rows using the format `{table}:{col}=eq.{val}` - where `{col}` is the column name, and `{val}` is the value which you want to match. dart: | ```dart - final mySubscription = supabase - .from('countries:id=eq.200') - .on(SupabaseEventTypes.update, handleRecordUpdated) - .subscribe(); + supabase.channel('public:countries:id=eq.200').on( + RealtimeListenTypes.postgresChanges, + ChannelFilter( + event: 'UPDATE', + schema: 'public', + table: 'countries', + filter: 'id=eq.200', + ), (payload, [ref]) { + print('Change received: ${payload.toString()}'); + }).subscribe(); ``` - removeSubscription(): + removeChannel(): description: | - Removes an active subscription and returns the number of open connections. - title: 'removeSubscription()' + Unsubscribes and removes Realtime channel from Realtime client. + title: 'removeChannel()' notes: | - - Removing subscriptions is a great way to maintain the performance of your project's database. Supabase will automatically handle cleanup 30 seconds after a user is disconnected, but unused subscriptions may cause degradation as more users are simultaneously subscribed. + - Removing a channel is a great way to maintain the performance of your project's Realtime service as well as your database if you're listening to Postgres changes. Supabase will automatically handle cleanup 30 seconds after a client is disconnected, but unused channels may cause degradation as more clients are simultaneously subscribed. examples: - - name: Remove a subscription + - name: Remove a channel isSpotlight: true dart: | ```dart - supabase.removeSubscription(mySubscription); + final status = await supabase.removeChannel(channel); ``` - getSubscriptions(): + removeAllChannels(): description: | - Returns an array of all your subscriptions. - title: 'getSubscriptions()' + Unsubscribes and removes all Realtime channels from Realtime client. + title: 'removeAllChannels()' + notes: | + - Removing channels is a great way to maintain the performance of your project's Realtime service as well as your database if you're listening to Postgres changes. Supabase will automatically handle cleanup 30 seconds after a client is disconnected, but unused channels may cause degradation as more clients are simultaneously subscribed. examples: - - name: Get all subscriptions + - name: Remove all channels isSpotlight: true dart: | ```dart - final subscriptions = supabase.getSubscriptions(); + final statuses = await supabase.removeAllChannels(); + ``` + + getChannels(): + description: | + Returns all Realtime channels. + title: 'getChannels()' + examples: + - name: Get all channels + isSpotlight: true + dart: | + ```dart + final channels = supabase.getChannels(); ``` stream(): @@ -743,10 +676,11 @@ pages: isSpotlight: true dart: | ```dart - supabase - .from('countries') + supabase.from('countries') .stream(['id']) - .execute(); + .listen((List> data) { + // Do something awesome with the data + }); ``` - name: Listening to a specific rows within a table description: | @@ -754,29 +688,62 @@ pages: This syntax is the as how you can filter data in Realtime dart: | ```dart - supabase - .from('countries:id=eq.120') + supabase.from('countries') .stream(['id']) - .execute(); + .eq('id', '120') + .listen((List> data) { + // Do something awesome with the data + }); ``` - name: With `order()` dart: | ```dart - supabase - .from('countries') + supabase.from('countries') .stream(['id']) - .order('name', ascending: false) - .execute(); + .order('name', ascending: true) + .listen((List> data) { + // Do something awesome with the data + }); ``` - name: With `limit()` dart: | ```dart - supabase - .from('countries') + supabase.from('countries') .stream(['id']) - .order('name', ascending: false) + .order('name', ascending: true) .limit(10) - .execute(); + .listen((List> data) { + // Do something awesome with the data + }); + ``` + - name: Using `stream()` with `StreamBuilder` + description: | + When using `stream()` with a `StreamBuilder` within your Flutter application, make sure to store your stream in a variable to prevent refetching upon rebuilding. + dart: | + ```dart + final supabase = Supabase.instance.client; + + class MyWidget extends StatefulWidget { + const MyWidget({Key? key}) : super(key: key); + + @override + State createState() => _MyWidgetState(); + } + + class _MyWidgetState extends State { + // Persist the stream in a local variable to prevent refetching upon rebuilds + final _stream = supabase.from('countries').stream(['id']); + + @override + Widget build(BuildContext context) { + return StreamBuilder( + stream: _stream, + builder: (context, snapshot) { + // Return your widget with the data from the snapshot + }, + ); + } + } ``` storage.listBuckets(): @@ -793,9 +760,9 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase + final List buckets = await supabase .storage - .listBuckets() + .listBuckets(); ``` storage.getBucket(): @@ -812,9 +779,9 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase + final Bucket bucket = await supabase .storage - .getBucket('avatars') + .getBucket('avatars'); ``` storage.createBucket(): @@ -830,7 +797,7 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase + final String bucketId = await supabase .storage .createBucket('avatars'); ``` @@ -848,7 +815,7 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase + final String result = await supabase .storage .emptyBucket('avatars'); ``` @@ -867,7 +834,7 @@ pages: ```dart final res = await supabase .storage - .updateBucket('avatars', { public: false }); + .updateBucket('avatars', const BucketOptions(public: false)); ``` storage.deleteBucket(): @@ -883,7 +850,7 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase + final String result = await supabase .storage .deleteBucket('avatars'); ``` @@ -903,13 +870,11 @@ pages: dart: | ```dart final avatarFile = File('path/to/file'); - final res = await supabase - .storage - .from('avatars') - .upload('public/avatar1.png', avatarFile, fileOptions: FileOptions( - cacheControl: '3600', - upsert: false - )); + final String path = await supabase.storage.from('avatars').upload( + 'public/avatar1.png', + avatarFile, + fileOptions: const FileOptions(cacheControl: '3600', upsert: false), + ); ``` storage.from.update(): @@ -925,14 +890,12 @@ pages: isSpotlight: true dart: | ```dart - final avatarFile = File('path/to/file'); - final res = await supabase - .storage - .from('avatars') - .update('public/avatar1.png', avatarFile, fileOptions: FileOptions( - cacheControl: '3600', - upsert: false - )); + final avatarFile = File('path/to/local/file'); + final String path = await supabase.storage.from('avatars').update( + 'public/avatar1.png', + avatarFile, + fileOptions: const FileOptions(cacheControl: '3600', upsert: false), + ); ``` storage.from.move(): @@ -948,7 +911,7 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase + final String result = await supabase .storage .from('avatars') .move('public/avatar1.png', 'private/avatar2.png'); @@ -967,12 +930,10 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase - .storage - .from('avatars') - .createSignedUrl('avatar1.png', 60); - - final signedURL = res.data; + final String signedUrl = await supabase + .storage + .from('avatars') + .createSignedUrl('avatar1.png', 60); ``` storage.from.getPublicUrl(): @@ -989,12 +950,10 @@ pages: isSpotlight: true dart: | ```dart - final res = supabase - .storage - .from('public-bucket') - .getPublicUrl('avatar1.png'); - - final publicURL = res.data; + final String publicUrl = supabase + .storage + .from('public-bucket') + .getPublicUrl('avatar1.png'); ``` storage.from.download(): @@ -1010,7 +969,7 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase + final Uint8List file = await supabase .storage .from('avatars') .download('avatar1.png'); @@ -1029,7 +988,7 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase + final List objects = await supabase .storage .from('avatars') .remove(['avatar1.png']); @@ -1048,7 +1007,7 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase + final List objects = await supabase .storage .from('avatars') .list(); @@ -1067,21 +1026,19 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .select('name, country_id') - .limit(1) - .execute(); + .limit(1); ``` - name: With embedded resources dart: | ```dart - final res = await supabase + final data = await supabase .from('countries') .select('name, cities(name)') .eq('name', 'United States') - .limit(1, foreignTable: 'cities' ) - .execute(); + .limit(1, foreignTable: 'cities' ); ``` order(): @@ -1092,21 +1049,19 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .select('name, country_id') - .order('id', ascending: false ) - .execute(); + .order('id', ascending: false ); ``` - name: With embedded resources dart: | ```dart - final res = await supabase + final data = await supabase .from('countries') .select('name, cities(name)') .eq('name', 'United States') - .order('name', foreignTable: 'cities') - .execute(); + .order('name', foreignTable: 'cities'); ``` range(): @@ -1117,11 +1072,10 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .select('name, country_id') - .range(0,3) - .execute(); + .range(0,3); ``` single(): @@ -1132,11 +1086,10 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .select('name, country_id') - .single() - .execute(); + .single(); ``` Using Filters: @@ -1150,17 +1103,15 @@ pages: You must apply your filters to the end of your query. For example: ```dart - final res = await supabase + final data = await supabase .from('cities') .select('name, country_id') - .eq('name', 'The Shire') // Correct - .execute(); + .eq('name', 'The Shire'); // Correct - final res = await supabase + final data = await supabase .from('cities') .eq('name', 'The Shire') // Incorrect - .select('name, country_id') - .execute(); + .select('name, country_id'); ``` ### Chaining @@ -1168,12 +1119,11 @@ pages: Filters can be chained together to produce advanced queries. For example: ```dart - final res = await supabase + final data = await supabase .from('cities') .select('name, country_id') .gte('population', 1000) - .lt('population', 10000) - .execute(); + .lt('population', 10000); ``` .or(): @@ -1192,32 +1142,19 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .select('name, country_id') - .or('id.eq.20,id.eq.30') - .execute(); + .or('id.eq.20,id.eq.30'); ``` - name: Use `or` with `and` - isSpotlight: true dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .select('name, country_id') - .or('id.gt.20,and(name.eq.New Zealand,name.eq.France)') - .execute(); + .or('id.gt.20,and(name.eq.New Zealand,name.eq.France)'); ``` - # TODO Not available at the moment, so would have to fix the bug on postgrest-dart first - # - name: Use `or` on foreign tables - # isSpotlight: true - # dart: | - # ```dart - # final res = await supabase - # .from('countries') - # .select('id, cities(*)') - # .or('name.eq.Wellington,name.eq.Paris', { foreignTable: "cities" }) - # ``` .not(): description: | @@ -1237,38 +1174,34 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .select('name, country_id') - .not('name', 'eq', 'Paris') - .execute(); + .not('name', 'eq', 'Paris'); ``` - name: With `update()` dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .update({ 'name': 'Mordor' }) - .not('name', 'eq', 'Paris') - .execute(); + .not('name', 'eq', 'Paris'); ``` - name: With `delete()` dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .delete() - .not('name', 'eq', 'Paris') - .execute(); + .not('name', 'eq', 'Paris'); ``` - name: With `rpc()` dart: | ```dart // Only valid if the Stored Procedure returns a table type. - final res = await supabase + final data = await supabase .rpc('echo_all_cities) - .not('name', 'eq', 'Paris') - .execute(); + .not('name', 'eq', 'Paris'); ``` .match(): @@ -1279,38 +1212,34 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .select('name, country_id') - .match({'name': 'Beijing', 'country_id': 156}) - .execute(); + .match({'name': 'Beijing', 'country_id': 156}); ``` - name: With `update()` dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .update({ 'name': 'Mordor' }) - .match({'name': 'Beijing', 'country_id': 156}) - .execute(); + .match({'name': 'Beijing', 'country_id': 156}); ``` - name: With `delete()` dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .delete() - .match({'name': 'Beijing', 'country_id': 156}) - .execute(); + .match({'name': 'Beijing', 'country_id': 156}); ``` - name: With `rpc()` dart: | ```dart // Only valid if the Stored Procedure returns a table type. - final res = await supabase + final data = await supabase .rpc('echo_all_cities') - .match({'name': 'Beijing', 'country_id': 156}) - .execute(); + .match({'name': 'Beijing', 'country_id': 156}); ``` .eq(): @@ -1321,38 +1250,34 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .select('name, country_id') - .eq('name', 'The shire') - .execute(); + .eq('name', 'The shire'); ``` - name: With `update()` dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .update({ 'name': 'Mordor' }) - .eq('name', 'San Francisco') - .execute(); + .eq('name', 'San Francisco'); ``` - name: With `delete()` dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .delete() - .eq('name', 'Mordor') - .execute(); + .eq('name', 'Mordor'); ``` - name: With `rpc()` dart: | ```dart // Only valid if the Stored Procedure returns a table type. - final res = await supabase + final data = await supabase .rpc('echo_all_cities') - .eq('name', 'San Francisco') - .execute(); + .eq('name', 'San Francisco'); ``` .neq(): @@ -1363,38 +1288,34 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .select('name, country_id') - .neq('name', 'The shire') - .execute(); + .neq('name', 'The shire'); ``` - name: With `update()` dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .update({ 'name': 'Mordor' }) - .neq('name', 'San Francisco') - .execute(); + .neq('name', 'San Francisco'); ``` - name: With `delete()` dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .delete() - .neq('name', 'Mordor') - .execute(); + .neq('name', 'Mordor'); ``` - name: With `rpc()` dart: | ```dart // Only valid if the Stored Procedure returns a table type. - final res = await supabase + final data = await supabase .rpc('echo_all_cities') - .neq('name', 'Lagos') - .execute(); + .neq('name', 'Lagos'); ``` .gt(): @@ -1405,38 +1326,34 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .select('name, country_id') - .gt('country_id', 250) - .execute(); + .gt('country_id', 250); ``` - name: With `update()` dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .update({ 'name': 'Mordor' }) - .gt('country_id', 250) - .execute(); + .gt('country_id', 250); ``` - name: With `delete()` dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .delete() - .gt('country_id', 250) - .execute(); + .gt('country_id', 250); ``` - name: With `rpc()` dart: | ```dart // Only valid if the Stored Procedure returns a table type. - final res = await supabase + final data = await supabase .rpc('echo_all_cities') - .gt('country_id', 250) - .execute(); + .gt('country_id', 250); ``` .gte(): @@ -1447,38 +1364,34 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .select('name, country_id') - .gte('country_id', 250) - .execute(); + .gte('country_id', 250); ``` - name: With `update()` dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .update({ 'name': 'Mordor' }) - .gte('country_id', 250) - .execute(); + .gte('country_id', 250); ``` - name: With `delete()` dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .delete() - .gte('country_id', 250) - .execute(); + .gte('country_id', 250); ``` - name: With `rpc()` dart: | ```dart // Only valid if the Stored Procedure returns a table type. - final res = await supabase + final data = await supabase .rpc('echo_all_cities') - .gte('country_id', 250) - .execute(); + .gte('country_id', 250); ``` .lt(): @@ -1489,124 +1402,112 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .select('name, country_id') - .lt('country_id', 250) - .execute(); + .lt('country_id', 250); ``` - name: With `update()` dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .update({ 'name': 'Mordor' }) - .lt('country_id', 250) - .execute(); + .lt('country_id', 250); ``` - name: With `delete()` dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .delete() - .lt('country_id', 250) - .execute(); + .lt('country_id', 250); ``` - name: With `rpc()` dart: | ```dart // Only valid if the Stored Procedure returns a table type. - final res = await supabase + final data = await supabase .rpc('echo_all_cities') - .lt('country_id', 250) - .execute(); + .lt('country_id', 250); ``` .lte(): description: | Finds all rows whose value on the stated `column` is less than or equal to the specified `value`. - $ref: '@supabase/postgrest-js."lib/PostgrestFilterBuilder".PostgrestFilterBuilder.lte' + $ref: '@supabase/postgrest-js.PostgrestFilterBuilder.lte' examples: - name: With `select()` isSpotlight: true dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .select('name, country_id') - .lte('country_id', 250) - .execute(); + .lte('country_id', 250); ``` - name: With `update()` dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .update({ 'name': 'Mordor' }) - .lte('country_id', 250) - .execute(); + .lte('country_id', 250); ``` - name: With `delete()` dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .delete() - .lte('country_id', 250) - .execute(); + .lte('country_id', 250); ``` - name: With `rpc()` dart: | ```dart // Only valid if the Stored Procedure returns a table type. - final res = await supabase + final data = await supabase .rpc('echo_all_cities') - .lte('country_id', 250) - .execute(); + .lte('country_id', 250); ``` .like(): description: | Finds all rows whose value in the stated `column` matches the supplied `pattern` (case sensitive). - $ref: '@supabase/postgrest-js."lib/PostgrestFilterBuilder".PostgrestFilterBuilder.like' + $ref: '@supabase/postgrest-js.PostgrestFilterBuilder.like' examples: - name: With `select()` isSpotlight: true dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .select('name, country_id') - .like('name', '%la%') - .execute(); + .like('name', '%la%'); ``` - name: With `update()` dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .update({ 'name': 'Mordor' }) - .like('name', '%la%') - .execute(); + .like('name', '%la%'); ``` - name: With `delete()` dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .delete() - .like('name', '%la%') - .execute(); + .like('name', '%la%'); ``` - name: With `rpc()` dart: | ```dart // Only valid if the Stored Procedure returns a table type. - final res = await supabase + final data = await supabase .rpc('echo_all_cities') - .like('name', '%la%') - .execute(); + .like('name', '%la%'); ``` .ilike(): @@ -1617,38 +1518,34 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .select('name, country_id') - .ilike('name', '%la%') - .execute(); + .ilike('name', '%la%'); ``` - name: With `update()` dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .update({ 'name': 'Mordor' }) - .ilike('name', '%la%') - .execute(); + .ilike('name', '%la%'); ``` - name: With `delete()` dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .delete() - .ilike('name', '%la%') - .execute(); + .ilike('name', '%la%'); ``` - name: With `rpc()` dart: | ```dart // Only valid if the Stored Procedure returns a table type. - final res = await supabase + final data = await supabase .rpc('echo_all_cities') - .ilike('name', '%la%') - .execute(); + .ilike('name', '%la%'); ``` .is_(): @@ -1661,38 +1558,34 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .select('name, country_id') - .is_('name', null) - .execute(); + .is_('name', null); ``` - name: With `update()` dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .update({ 'name': 'Mordor' }) - .is_('name', null) - .execute(); + .is_('name', null); ``` - name: With `delete()` dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .delete() - .is_('name', null) - .execute(); + .is_('name', null); ``` - name: With `rpc()` dart: | ```dart // Only valid if the Stored Procedure returns a table type. - final res = await supabase + final data = await supabase .rpc('echo_all_cities') - .is_('name', null) - .execute(); + .is_('name', null); ``` .in_(): @@ -1705,38 +1598,34 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .select('name, country_id') - .in_('name', ['Rio de Janeiro', 'San Francisco']) - .execute(); + .in_('name', ['Rio de Janeiro', 'San Francisco']); ``` - name: With `update()` dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .update({ 'name': 'Mordor' }) - .in_('name', ['Rio de Janeiro', 'San Francisco']) - .execute(); + .in_('name', ['Rio de Janeiro', 'San Francisco']); ``` - name: With `delete()` dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .delete() - .in_('name', ['Rio de Janeiro', 'San Francisco']) - .execute(); + .in_('name', ['Rio de Janeiro', 'San Francisco']); ``` - name: With `rpc()` dart: | ```dart // Only valid if the Stored Procedure returns a table type. - final res = await supabase + final data = await supabase .rpc('echo_all_cities') - .in_('name', ['Rio de Janeiro', 'San Francisco']) - .execute(); + .in_('name', ['Rio de Janeiro', 'San Francisco']); ``` .contains(): @@ -1745,38 +1634,34 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase + final data = await supabase .from('countries') .select('name, id, main_exports') - .contains('main_exports', ['oil']) - .execute(); + .contains('main_exports', ['oil']); ``` - name: With `update()` dart: | ```dart - final res = await supabase + final data = await supabase .from('countries') .update({ 'name': 'Mordor' }) - .contains('main_exports', ['oil']) - .execute(); + .contains('main_exports', ['oil']); ``` - name: With `delete()` dart: | ```dart - final res = await supabase + final data = await supabase .from('countries') .delete() - .contains('main_exports', ['oil']) - .execute(); + .contains('main_exports', ['oil']); ``` - name: With `rpc()` dart: | ```dart // Only valid if the Stored Procedure returns a table type. - final res = await supabase + final data = await supabase .rpc('echo_all_countries') - .contains('main_exports', ['oil']) - .execute(); + .contains('main_exports', ['oil']); ``` .containedBy(): @@ -1785,38 +1670,34 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase + final data = await supabase .from('countries') .select('name, id, main_exports') - .containedBy('main_exports', ['cars', 'food', 'machine']) - .execute(); + .containedBy('main_exports', ['cars', 'food', 'machine']); ``` - name: With `update()` dart: | ```dart - final res = await supabase + final data = await supabase .from('countries') .update({ 'name': 'Mordor' }) - .containedBy('main_exports', ['orks', 'surveillance', 'evil']) - .execute(); + .containedBy('main_exports', ['orks', 'surveillance', 'evil']); ``` - name: With `delete()` dart: | ```dart - final res = await supabase + final data = await supabase .from('countries') .delete() - .containedBy('main_exports', ['cars', 'food', 'machine']) - .execute(); + .containedBy('main_exports', ['cars', 'food', 'machine']); ``` - name: With `rpc()` dart: | ```dart // Only valid if the Stored Procedure returns a table type. - final res = await supabase + final data = await supabase .rpc('echo_all_countries') - .containedBy('main_exports', ['cars', 'food', 'machine']) - .execute(); + .containedBy('main_exports', ['cars', 'food', 'machine']); ``` .rangeLt(): @@ -1825,38 +1706,34 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase + final data = await supabase .from('countries') .select('name, id, population_range_millions') - .rangeLt('population_range_millions', '[150, 250]') - .execute(); + .rangeLt('population_range_millions', '[150, 250]'); ``` - name: With `update()` dart: | ```dart - final res = await supabase + final data = await supabase .from('countries') .update({ 'name': 'Mordor' }) - .rangeLt('population_range_millions', '[150, 250]') - .execute(); + .rangeLt('population_range_millions', '[150, 250]'); ``` - name: With `delete()` dart: | ```dart - final res = await supabase + final data = await supabase .from('countries') .delete() - .rangeLt('population_range_millions', '[150, 250]') - .execute(); + .rangeLt('population_range_millions', '[150, 250]'); ``` - name: With `rpc()` dart: | ```dart // Only valid if the Stored Procedure returns a table type. - final res = await supabase + final data = await supabase .rpc('echo_all_countries') - .rangeLt('population_range_millions', '[150, 250]') - .execute(); + .rangeLt('population_range_millions', '[150, 250]'); ``` .rangeGt(): @@ -1865,38 +1742,34 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase + final data = await supabase .from('countries') .select('name, id, population_range_millions') - .rangeGt('population_range_millions', '[150, 250]') - .execute(); + .rangeGt('population_range_millions', '[150, 250]'); ``` - name: With `update()` dart: | ```dart - final res = await supabase + final data = await supabase .from('countries') .update({ 'name': 'Mordor' }) - .rangeGt('population_range_millions', '[150, 250]') - .execute(); + .rangeGt('population_range_millions', '[150, 250]'); ``` - name: With `delete()` dart: | ```dart - final res = await supabase + final data = await supabase .from('countries') .delete() - .rangeGt('population_range_millions', '[150, 250]') - .execute(); + .rangeGt('population_range_millions', '[150, 250]'); ``` - name: With `rpc()` dart: | ```dart // Only valid if the Stored Procedure returns a table type. - final res = await supabase + final data = await supabase .rpc('echo_all_countries') - .rangeGt('population_range_millions', '[150, 250]') - .execute(); + .rangeGt('population_range_millions', '[150, 250]'); ``` .rangeGte(): @@ -1905,79 +1778,71 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase + final data = await supabase .from('countries') .select('name, id, population_range_millions') - .rangeGte('population_range_millions', '[150, 250]') - .execute(); + .rangeGte('population_range_millions', '[150, 250]'); ``` - name: With `update()` dart: | ```dart - final res = await supabase + final data = await supabase .from('countries') .update({ 'name': 'Mordor' }) - .rangeGte('population_range_millions', '[150, 250]') - .execute(); + .rangeGte('population_range_millions', '[150, 250]'); ``` - name: With `delete()` dart: | ```dart - final res = await supabase + final data = await supabase .from('countries') .delete() - .rangeGte('population_range_millions', '[150, 250]') - .execute(); + .rangeGte('population_range_millions', '[150, 250]'); ``` - name: With `rpc()` dart: | ```dart // Only valid if the Stored Procedure returns a table type. - final res = await supabase + final data = await supabase .rpc('echo_all_countries') - .rangeGte('population_range_millions', '[150, 250]') - .execute(); + .rangeGte('population_range_millions', '[150, 250]'); ``` .rangeLte(): - $ref: '@supabase/postgrest-js."lib/PostgrestFilterBuilder".PostgrestFilterBuilder.nxr' + $ref: '@supabase/postgrest-js.PostgrestFilterBuilder.rangeLte' examples: - name: With `select()` isSpotlight: true dart: | ```dart - final res = await supabase + final data = await supabase .from('countries') .select('name, id, population_range_millions') - .rangeLte('population_range_millions', '[150, 250]') - .execute(); + .rangeLte('population_range_millions', '[150, 250]'); ``` - name: With `update()` dart: | ```dart - final res = await supabase + final data = await supabase .from('countries') .update({ 'name': 'Mordor' }) - .rangeLte('population_range_millions', '[150, 250]') - .execute(); + .rangeLte('population_range_millions', '[150, 250]'); ``` - name: With `delete()` dart: | ```dart - final res = await supabase + final data = await supabase .from('countries') .delete() - .rangeLte('population_range_millions', '[150, 250]') - .execute(); + .rangeLte('population_range_millions', '[150, 250]'); ``` - name: With `rpc()` dart: | ```dart // Only valid if the Stored Procedure returns a table type. - final res = await supabase + final data = await supabase .rpc('echo_all_countries') - .rangeLte('population_range_millions', [150, 250]) - .execute(); + .rangeLte('population_range_millions', [150, 250]); ``` .rangeAdjacent(): @@ -1986,38 +1851,34 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase + final data = await supabase .from('countries') .select('name, id, population_range_millions') - .rangeAdjacent('population_range_millions', '[70, 185]') - .execute(); + .rangeAdjacent('population_range_millions', '[70, 185]'); ``` - name: With `update()` dart: | ```dart - final res = await supabase + final data = await supabase .from('countries') .update({ 'name': 'Mordor' }) - .rangeAdjacent('population_range_millions', '[70, 185]') - .execute(); + .rangeAdjacent('population_range_millions', '[70, 185]'); ``` - name: With `delete()` dart: | ```dart - final res = await supabase + final data = await supabase .from('countries') .delete() - .rangeAdjacent('population_range_millions', '[70, 185]') - .execute(); + .rangeAdjacent('population_range_millions', '[70, 185]'); ``` - name: With `rpc()` dart: | ```dart // Only valid if the Stored Procedure returns a table type. - final res = await supabase + final data = await supabase .rpc('echo_all_countries') - .rangeAdjacent('population_range_millions', '[70, 185]') - .execute(); + .rangeAdjacent('population_range_millions', '[70, 185]'); ``` .overlaps(): @@ -2026,38 +1887,34 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase + final data = await supabase .from('countries') .select('name, id, main_exports') - .overlaps('main_exports', ['computers', 'minerals']) - .execute(); + .overlaps('main_exports', ['computers', 'minerals']); ``` - name: With `update()` dart: | ```dart - final res = await supabase + final data = await supabase .from('countries') .update({ 'name': 'Mordor' }) - .overlaps('main_exports', ['computers', 'minerals']) - .execute(); + .overlaps('main_exports', ['computers', 'minerals']); ``` - name: With `delete()` dart: | ```dart - final res = await supabase + final data = await supabase .from('countries') .delete() - .overlaps('main_exports', ['computers', 'minerals']) - .execute(); + .overlaps('main_exports', ['computers', 'minerals']); ``` - name: With `rpc()` dart: | ```dart // Only valid if the Stored Procedure returns a table type. - final res = await supabase + final data = await supabase .rpc('echo_all_countries') - .overlaps('main_exports', ['computers', 'minerals']) - .execute(); + .overlaps('main_exports', ['computers', 'minerals']); ``` .textSearch(): @@ -2067,39 +1924,36 @@ pages: - name: Text search dart: | ```dart - final res = await supabase + final data = await supabase .from('quotes') .select('catchphrase') .textSearch('catchphrase', "'fat' & 'cat'", config: 'english' - ) - .execute(); + ); ``` - name: Basic normalization description: Uses PostgreSQL's `plainto_tsquery` function. dart: | ```dart - final res = await supabase + final data = await supabase .from('quotes') .select('catchphrase') .textSearch('catchphrase', "'fat' & 'cat'", type: TextSearchType.plain, config: 'english' - ) - .execute(); + ); ``` - name: Full normalization description: Uses PostgreSQL's `phraseto_tsquery` function. dart: | ```dart - final res = await supabase + final data = await supabase .from('quotes') .select('catchphrase') .textSearch('catchphrase', "'fat' & 'cat'", type: TextSearchType.phrase, config: 'english' - ) - .execute(); + ); ``` - name: Full normalization description: | @@ -2114,14 +1968,13 @@ pages: dart: | ```dart - final res = await supabase + final data = await supabase .from('quotes') .select('catchphrase') .textSearch('catchphrase', "'fat or cat'", type: TextSearchType.websearch, config: 'english' - ) - .execute(); + ); ``` .filter(): @@ -2140,44 +1993,40 @@ pages: isSpotlight: true dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .select('name, country_id') - .filter('name', 'in', '("Paris","Tokyo")') - .execute(); + .filter('name', 'in', '("Paris","Tokyo")'); ``` - name: With `update()` dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .update({ 'name': 'Mordor' }) - .filter('name', 'in', '("Paris","Tokyo")') - .execute(); + .filter('name', 'in', '("Paris","Tokyo")'); ``` - name: With `delete()` dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .delete() - .filter('name', 'in', '("Paris","Tokyo")') - .execute(); + .filter('name', 'in', '("Paris","Tokyo")'); ``` - name: With `rpc()` dart: | ```dart // Only valid if the Stored Procedure returns a table type. - final res = await supabase + final data = await supabase .rpc('echo_all_cities') - .filter('name', 'in', '("Paris","Tokyo")') + .filter('name', 'in', '("Paris","Tokyo")'); ``` - name: Filter embedded resources dart: | ```dart - final res = await supabase + final data = await supabase .from('cities') .select('name, countries ( name )') - .filter('countries.name', 'in', '("France","Japan")') - .execute(); + .filter('countries.name', 'in', '("France","Japan")'); ``` diff --git a/spec/supabase_js_v1_legacy.yml b/spec/supabase_js_v1_legacy.yml index 935005344d2..18655240e94 100644 --- a/spec/supabase_js_v1_legacy.yml +++ b/spec/supabase_js_v1_legacy.yml @@ -9,135 +9,13 @@ info: definition: ../../spec/enrichments/tsdoc_v1/combined.json specUrl: https://github.com/supabase/supabase/edit/master/spec/supabase_js_v1_legacy.yml - slugPrefix: '' + slugPrefix: '/' libraries: - name: 'JavaScript' id: 'js' version: '0.0.1' pages: - Installing: - description: | - All JavaScript libraries are built directly by the Supabase team. - - Other languages are built by the community and supported by Supabase. - - ## JavaScript - - Via NPM - ```bash - npm install @supabase/supabase-js - ``` - - Via Yarn - ```bash - yarn add @supabase/supabase-js - ``` - - Find the source code on [GitHub](https://github.com/supabase/supabase-js). - - Or via CDN - ```js - - //or - - ``` - - Initializing: - $ref: '@supabase/supabase-js.index.SupabaseClient.constructor' - description: | - You can initialize a new Supabase client using the `createClient()` method. - - The Supabase client is your entrypoint to the rest of the Supabase functionality - and is the easiest way to interact with everything we offer within the Supabase ecosystem. - - examples: - - name: createClient() - js: | - ```js - import { createClient } from '@supabase/supabase-js' - - // Create a single supabase client for interacting with your database - const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key') - ``` - - name: With additional parameters - js: | - ```js - import { createClient } from '@supabase/supabase-js' - - const options = { - schema: 'public', - headers: { 'x-my-custom-header': 'my-app-name' }, - autoRefreshToken: true, - persistSession: true, - detectSessionInUrl: true - } - const supabase = createClient("https://xyzcompany.supabase.co", "public-anon-key", options) - ``` - - name: API schemas - js: | - ```js - import { createClient } from '@supabase/supabase-js' - - // Provide a custom schema. Defaults to "public". - const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key', { - schema: 'other_schema' - }) - ``` - - By default the API server points to the `public` schema. You can enable other database schemas within the Dashboard. - Go to `Settings > API > Schema` and add the schema which you want to expose to the API. - - Note: each client connection can only access a single schema, so the code above can access the `other_schema` schema but cannot access the `public` schema. - - name: Custom `fetch` implementation - js: | - ```js - import { createClient } from '@supabase/supabase-js' - - const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key', { - fetch: fetch.bind(globalThis) - }) - ``` - - `supabase-js` uses the [`cross-fetch`](https://www.npmjs.com/package/cross-fetch) library to make HTTP requests, - but an alternative `fetch` implementation can be provided as an option. - This is most useful in environments where `cross-fetch` is not compatible (for instance Cloudflare Workers). - - Generating Types: - description: | - Supabase will soon release native type generators that dump your database types for various languages. For now, we support TypeScript [through third-party tools](/docs/guides/api/generating-types). - - ## Usage with TypeScript - - `supabase-js` ships with type definitions for usage with TypeScript and for convenient IntelliSense auto-complete and documentation in your editor. - - When using TypeScript, you can pass the type of database row as a type parameter to the `from` method to get better auto-completion support down the chain. - If you don't provide a type for the row you need to explicitly pass `from('tableName')`. - - ```ts - type Message = { - id: number; - inserted_at: string; - message: string; - user_id: string; - channel_id: number; - author: { username: string }; - } - - const response = await supabase - .from('messages') // Message maps to the type of the row in your database. - .select('*, author:user_id(username)') - .match({ channel_id: 2 }) // Your IDE will be able to help with auto-completion. - response.data // Response data will be of type Array. - - // If you don't provide a type for the row you need to explicitly pass `from('tableName')`. - const response = await supabase - .from('messages') - .select('*, author:user_id(username)') - .match({ channel_id: 2 }) - response.data // Response data will be of type Array. - ``` - auth.signUp(): title: 'signUp()' $ref: '@supabase/gotrue-js.GoTrueClient.signUp' @@ -760,7 +638,7 @@ pages: select(): title: 'Fetch data: select()' - $ref: '@supabase/postgrest-js."lib/PostgrestQueryBuilder".PostgrestQueryBuilder.select' + $ref: '@supabase/postgrest-js.PostgrestQueryBuilder.select' notes: | - By default, Supabase projects will return a maximum of 1,000 rows. This setting can be changed in Project API Settings. It's recommended that you keep it low to limit the payload size of accidental or malicious requests. You can use `range()` queries to paginate through your data. - `select()` can be combined with [Modifiers](/docs/reference/javascript/using-modifiers) @@ -896,7 +774,7 @@ pages: insert(): title: 'Create data: insert()' - $ref: '@supabase/postgrest-js."lib/PostgrestQueryBuilder".PostgrestQueryBuilder.insert' + $ref: '@supabase/postgrest-js.PostgrestQueryBuilder.insert' notes: | - By default, every time you run `insert()`, the client library will make a `select` to return the full record. This is convenient, but it can also cause problems if your Policies are not configured to allow the `select` operation. @@ -947,7 +825,7 @@ pages: update(): title: 'Modify data: update()' - $ref: '@supabase/postgrest-js."lib/PostgrestQueryBuilder".PostgrestQueryBuilder.update' + $ref: '@supabase/postgrest-js.PostgrestQueryBuilder.update' notes: | - `update()` should always be combined with [Filters](/docs/reference/javascript/using-filters) to target the item(s) you wish to update. examples: @@ -981,7 +859,7 @@ pages: upsert(): title: 'Upsert data: upsert()' - $ref: '@supabase/postgrest-js."lib/PostgrestQueryBuilder".PostgrestQueryBuilder.upsert' + $ref: '@supabase/postgrest-js.PostgrestQueryBuilder.upsert' notes: | - Primary keys should be included in the data payload in order for an update to work correctly. - Primary keys must be natural, not surrogate. There are however, [workarounds](https://github.com/PostgREST/postgrest/issues/1118) for surrogate primary keys. @@ -1034,7 +912,7 @@ pages: delete(): title: 'Delete data: delete()' - $ref: '@supabase/postgrest-js."lib/PostgrestQueryBuilder".PostgrestQueryBuilder.delete' + $ref: '@supabase/postgrest-js.PostgrestQueryBuilder.delete' notes: | - `delete()` should always be combined with [filters](/docs/reference/javascript/using-filters) to target the item(s) you wish to delete. - If you use `delete()` with filters and you have @@ -1066,7 +944,7 @@ pages: select 'Hello world'; $$ language sql; ``` - $ref: '@supabase/postgrest-js."PostgrestClient".PostgrestClient.rpc' + $ref: '@supabase/postgrest-js.PostgrestClient.rpc' examples: - name: Call a Postgres function isSpotlight: true @@ -1582,7 +1460,7 @@ pages: If a Postgres function returns a table response, you can also apply modifiers to the `rpc()` function. limit(): - $ref: '@supabase/postgrest-js."lib/PostgrestFilterBuilder".PostgrestFilterBuilder.limit' + $ref: '@supabase/postgrest-js.PostgrestFilterBuilder.limit' examples: - name: With `select()` isSpotlight: true @@ -1604,7 +1482,7 @@ pages: ``` order(): - $ref: '@supabase/postgrest-js."lib/PostgrestFilterBuilder".PostgrestFilterBuilder.order' + $ref: '@supabase/postgrest-js.PostgrestFilterBuilder.order' examples: - name: With `select()` isSpotlight: true @@ -1634,7 +1512,7 @@ pages: .order('name', { ascending: false }) ``` range(): - $ref: '@supabase/postgrest-js."lib/PostgrestFilterBuilder".PostgrestFilterBuilder.range' + $ref: '@supabase/postgrest-js.PostgrestFilterBuilder.range' examples: - name: With `select()` isSpotlight: true @@ -1647,7 +1525,7 @@ pages: ``` single(): - $ref: '@supabase/postgrest-js."lib/PostgrestFilterBuilder".PostgrestFilterBuilder.single' + $ref: '@supabase/postgrest-js.PostgrestFilterBuilder.single' examples: - name: With `select()` isSpotlight: true @@ -1661,7 +1539,7 @@ pages: ``` maybeSingle(): - $ref: '@supabase/postgrest-js."lib/PostgrestFilterBuilder".PostgrestFilterBuilder.maybeSingle' + $ref: '@supabase/postgrest-js.PostgrestFilterBuilder.maybeSingle' examples: - name: With `select()` isSpotlight: true @@ -1729,7 +1607,7 @@ pages: ``` .or(): - $ref: '@supabase/postgrest-js."lib/PostgrestFilterBuilder".PostgrestFilterBuilder.or' + $ref: '@supabase/postgrest-js.PostgrestFilterBuilder.or' notes: | - `.or()` expects you to use the raw [PostgREST syntax](https://postgrest.org/en/stable/api.html#horizontal-filtering-rows) for the filter names and values. @@ -1768,7 +1646,7 @@ pages: ``` .not(): - $ref: '@supabase/postgrest-js."lib/PostgrestFilterBuilder".PostgrestFilterBuilder.not' + $ref: '@supabase/postgrest-js.PostgrestFilterBuilder.not' notes: | - `.not()` expects you to use the raw [PostgREST syntax](https://postgrest.org/en/stable/api.html#horizontal-filtering-rows) for the filter names and values. @@ -1815,7 +1693,7 @@ pages: ``` .match(): - $ref: '@supabase/postgrest-js."lib/PostgrestFilterBuilder".PostgrestFilterBuilder.match' + $ref: '@supabase/postgrest-js.PostgrestFilterBuilder.match' examples: - name: With `select()` isSpotlight: true @@ -1852,7 +1730,7 @@ pages: ``` .eq(): - $ref: '@supabase/postgrest-js."lib/PostgrestFilterBuilder".PostgrestFilterBuilder.eq' + $ref: '@supabase/postgrest-js.PostgrestFilterBuilder.eq' examples: - name: With `select()` isSpotlight: true @@ -1889,7 +1767,7 @@ pages: ``` .neq(): - $ref: '@supabase/postgrest-js."lib/PostgrestFilterBuilder".PostgrestFilterBuilder.neq' + $ref: '@supabase/postgrest-js.PostgrestFilterBuilder.neq' examples: - name: With `select()` isSpotlight: true @@ -1926,7 +1804,7 @@ pages: ``` .gt(): - $ref: '@supabase/postgrest-js."lib/PostgrestFilterBuilder".PostgrestFilterBuilder.gt' + $ref: '@supabase/postgrest-js.PostgrestFilterBuilder.gt' examples: - name: With `select()` isSpotlight: true @@ -1963,7 +1841,7 @@ pages: ``` .gte(): - $ref: '@supabase/postgrest-js."lib/PostgrestFilterBuilder".PostgrestFilterBuilder.gte' + $ref: '@supabase/postgrest-js.PostgrestFilterBuilder.gte' examples: - name: With `select()` isSpotlight: true @@ -2000,7 +1878,7 @@ pages: ``` .lt(): - $ref: '@supabase/postgrest-js."lib/PostgrestFilterBuilder".PostgrestFilterBuilder.lt' + $ref: '@supabase/postgrest-js.PostgrestFilterBuilder.lt' examples: - name: With `select()` isSpotlight: true @@ -2037,7 +1915,7 @@ pages: ``` .lte(): - $ref: '@supabase/postgrest-js."lib/PostgrestFilterBuilder".PostgrestFilterBuilder.lte' + $ref: '@supabase/postgrest-js.PostgrestFilterBuilder.lte' examples: - name: With `select()` isSpotlight: true @@ -2074,7 +1952,7 @@ pages: ``` .like(): - $ref: '@supabase/postgrest-js."lib/PostgrestFilterBuilder".PostgrestFilterBuilder.like' + $ref: '@supabase/postgrest-js.PostgrestFilterBuilder.like' examples: - name: With `select()` isSpotlight: true @@ -2111,7 +1989,7 @@ pages: ``` .ilike(): - $ref: '@supabase/postgrest-js."lib/PostgrestFilterBuilder".PostgrestFilterBuilder.ilike' + $ref: '@supabase/postgrest-js.PostgrestFilterBuilder.ilike' examples: - name: With `select()` isSpotlight: true @@ -2148,7 +2026,7 @@ pages: ``` .is(): - $ref: '@supabase/postgrest-js."lib/PostgrestFilterBuilder".PostgrestFilterBuilder.is' + $ref: '@supabase/postgrest-js.PostgrestFilterBuilder.is' examples: - name: With `select()` isSpotlight: true @@ -2185,7 +2063,7 @@ pages: ``` .in(): - $ref: '@supabase/postgrest-js."lib/PostgrestFilterBuilder".PostgrestFilterBuilder.in' + $ref: '@supabase/postgrest-js.PostgrestFilterBuilder.in' examples: - name: With `select()` isSpotlight: true @@ -2222,7 +2100,7 @@ pages: ``` .contains(): - $ref: '@supabase/postgrest-js."lib/PostgrestFilterBuilder".PostgrestFilterBuilder.cs' + $ref: '@supabase/postgrest-js.PostgrestFilterBuilder.contains' notes: | - `.contains()` can work on array columns or range columns. It is very useful for finding rows where a tag array contains all the values in the filter array. @@ -2269,7 +2147,7 @@ pages: ``` .containedBy(): - $ref: '@supabase/postgrest-js."lib/PostgrestFilterBuilder".PostgrestFilterBuilder.cd' + $ref: '@supabase/postgrest-js.PostgrestFilterBuilder.containedBy' notes: | - `.containedBy()` can work on array columns or range columns. @@ -2315,7 +2193,7 @@ pages: ``` .rangeLt(): - $ref: '@supabase/postgrest-js."lib/PostgrestFilterBuilder".PostgrestFilterBuilder.sl' + $ref: '@supabase/postgrest-js.PostgrestFilterBuilder.rangeLt' examples: - name: With `select()` isSpotlight: true @@ -2352,7 +2230,7 @@ pages: ``` .rangeGt(): - $ref: '@supabase/postgrest-js."lib/PostgrestFilterBuilder".PostgrestFilterBuilder.sr' + $ref: '@supabase/postgrest-js.PostgrestFilterBuilder.rangeGt' examples: - name: With `select()` isSpotlight: true @@ -2389,7 +2267,7 @@ pages: ``` .rangeGte(): - $ref: '@supabase/postgrest-js."lib/PostgrestFilterBuilder".PostgrestFilterBuilder.nxl' + $ref: '@supabase/postgrest-js.PostgrestFilterBuilder.rangeGte' examples: - name: With `select()` isSpotlight: true @@ -2426,7 +2304,7 @@ pages: ``` .rangeLte(): - $ref: '@supabase/postgrest-js."lib/PostgrestFilterBuilder".PostgrestFilterBuilder.nxr' + $ref: '@supabase/postgrest-js.PostgrestFilterBuilder.rangeLte' examples: - name: With `select()` isSpotlight: true @@ -2463,7 +2341,7 @@ pages: ``` .rangeAdjacent(): - $ref: '@supabase/postgrest-js."lib/PostgrestFilterBuilder".PostgrestFilterBuilder.adj' + $ref: '@supabase/postgrest-js.PostgrestFilterBuilder.rangeAdjacent' examples: - name: With `select()` isSpotlight: true @@ -2500,7 +2378,7 @@ pages: ``` .overlaps(): - $ref: '@supabase/postgrest-js."lib/PostgrestFilterBuilder".PostgrestFilterBuilder.ov' + $ref: '@supabase/postgrest-js.PostgrestFilterBuilder.overlaps' notes: | - `.overlaps()` can work on array columns or range columns. @@ -2546,7 +2424,7 @@ pages: ``` .textSearch(): - $ref: '@supabase/postgrest-js."lib/PostgrestFilterBuilder".PostgrestFilterBuilder.fts' + $ref: '@supabase/postgrest-js.PostgrestFilterBuilder.textSearch' examples: - name: Text search js: | @@ -2605,7 +2483,7 @@ pages: ``` .filter(): - $ref: '@supabase/postgrest-js."lib/PostgrestFilterBuilder".PostgrestFilterBuilder.filter' + $ref: '@supabase/postgrest-js.PostgrestFilterBuilder.filter' notes: | - `.filter()` expects you to use the raw [PostgREST syntax](https://postgrest.org/en/stable/api.html#horizontal-filtering-rows) for the filter names and values, so it should only be used as an escape hatch in case other filters don't work. ```js