Module
Supabase
- Package
- purescript-supabase
- Repository
- i-am-the-slime/purescript-supabase
Re-exports from Supabase.Auth
#SignInWithOAuthOptions Source
type SignInWithOAuthOptions :: Row Typetype SignInWithOAuthOptions = (options :: { queryParams :: Foreign, redirectTo :: String, scopes :: String }, provider :: OAuthProvider)
#Session Source
type Session = { access_token :: AccessToken, expires_at :: Int, expires_in :: Int, refresh_token :: RefreshToken, token_type :: String, user :: User }#FunctionResponse Source
type FunctionResponse d = { data :: Maybe d, error :: Maybe { message :: String } }#AuthResponse Source
type AuthResponse = { data :: AuthResult, error :: Maybe AuthError }#verifyPhoneOtp Source
verifyPhoneOtp :: { phone :: UserPhone, token :: OTPToken, type :: OTPType } -> Client -> Aff AuthResponse#verifyEmailOtp Source
verifyEmailOtp :: { email :: UserEmail, token :: OTPToken, type :: OTPType } -> Client -> Aff AuthResponse#updateUser Source
updateUser :: forall r. WriteForeign (Record r) => Record r -> Client -> Aff AuthResponse#signUpWithPhone Source
signUpWithPhone :: { password :: UserPassword, phone :: UserPhone } -> Client -> Aff AuthResponse#signUpWithEmail Source
signUpWithEmail :: { email :: UserEmail, password :: UserPassword } -> Client -> Aff AuthResponse#signInWithPhone Source
signInWithPhone :: { password :: UserPassword, phone :: UserPhone } -> Client -> Aff AuthResponse#signInWithOAuth Source
signInWithOAuth :: forall opts thru. Union opts thru SignInWithOAuthOptions => WriteForeign (Record opts) => Record opts -> Client -> Aff { data :: { provider :: OAuthProvider, url :: Maybe String }, error :: Maybe AuthError }#signInWithIdToken Source
signInWithIdToken :: { provider :: OAuthProvider, token :: IdToken } -> Client -> Aff AuthResponse#signInWithEmail Source
signInWithEmail :: { email :: UserEmail, password :: UserPassword } -> Client -> Aff AuthResponse#setSession Source
setSession :: { access_token :: AccessToken, refresh_token :: RefreshToken } -> Client -> Aff AuthResponse#sendOtpToPhone Source
sendOtpToPhone :: { phone :: UserPhone } -> Client -> Aff AuthResponse#sendOtpToEmail Source
sendOtpToEmail :: { email :: UserEmail } -> Client -> Aff AuthResponse#refreshSession Source
refreshSession :: Client -> Aff AuthResponse#invoke Source
invoke :: forall t body headers. ReadForeign t => WriteForeign body => WriteForeign headers => FunctionName -> body -> headers -> Client -> Aff (FunctionResponse t)#functionsSetAuth Source
functionsSetAuth :: AccessToken -> Client -> Effect Unit#exchangeCodeForSession Source
exchangeCodeForSession :: AuthCode -> Client -> Aff AuthResponseRe-exports from Supabase.AuthHelpers
#ClientOptions Source
type ClientOptions :: Row Type -> Typetype ClientOptions r = { cookieOptions :: Maybe CookieOptions, options :: Maybe Options, supabaseKey :: Maybe String, supabaseUrl :: Maybe String | r }
#createClient Source
createClient :: SupabaseUrl -> SupabaseAnonKey -> Effect Client#createBrowserClientWithOptions Source
createBrowserClientWithOptions :: forall r. WriteForeign (ClientOptions r) => ClientOptions r -> Effect ClientRe-exports from Supabase.Filter
#neqOp Source
neqOp :: forall a. ToPostgrest a => a -> FilterOp#lteOp Source
lteOp :: forall a. ToPostgrest a => a -> FilterOp#ltOp Source
ltOp :: forall a. ToPostgrest a => a -> FilterOp#gteOp Source
gteOp :: forall a. ToPostgrest a => a -> FilterOp#gtOp Source
gtOp :: forall a. ToPostgrest a => a -> FilterOp#eqOp Source
eqOp :: forall a. ToPostgrest a => a -> FilterOpRe-exports from Supabase.Realtime
#track Source
track :: forall payload. WriteForeign (Record payload) => Record payload -> Channel -> Aff RealtimeResponse#subscribe Source
subscribe :: Milliseconds -> (RealtimeSubscribeState -> Maybe Error -> Effect Unit) -> Channel -> Effect Unit#send Source
send :: forall i. WriteForeign (Record i) => Record i -> Channel -> Aff RealtimeResponse#on Source
on :: forall f cbi. WriteForeign f => ReadForeign cbi => RealtimeListenType -> f -> (cbi -> Effect Unit) -> Channel -> Effect UnitRe-exports from Supabase.SSR
#CookieWithOptions Source
type CookieWithOptions = { name :: CookieName, options :: CookieOptions, value :: CookieValue }#CookieMethods Source
type CookieMethods = { getAll :: Effect (Array Cookie), setAll :: Array CookieWithOptions -> Effect Unit }#Cookie Source
type Cookie = { name :: CookieName, value :: CookieValue }#serializeCookieHeader Source
serializeCookieHeader :: CookieName -> CookieValue -> CookieOptions -> Effect StringRe-exports from Supabase.Storage
#StorageBucket Source
data StorageBucket#ListOptionsR Source
type ListOptionsR :: Row Typetype ListOptionsR = (limit :: Int, offset :: Int, sortBy :: { column :: String, order :: String })
#ListOptions Source
type ListOptions = { limit :: Int, offset :: Int, sortBy :: { column :: String, order :: String } }#FileOptions Source
type FileOptions = { upsert :: Boolean }#upload Source
upload :: StoragePath -> File -> FileOptions -> StorageBucket -> Aff (Response { path :: String })#remove Source
remove :: Array StoragePath -> StorageBucket -> Aff { error :: Maybe ResultError }#move Source
move :: StoragePath -> StoragePath -> StorageBucket -> Aff { error :: Maybe ResultError }#list Source
list :: forall opts thru. WriteForeign (Record opts) => Union opts thru ListOptionsR => StoragePath -> Record opts -> StorageBucket -> Aff { data :: Maybe (Array { id :: Maybe String, name :: String }), error :: Maybe ResultError }#getPublicUrl Source
getPublicUrl :: StoragePath -> StorageBucket -> String#fromStorage Source
fromStorage :: BucketName -> Client -> StorageBucket#exists Source
exists :: StoragePath -> StorageBucket -> Aff { data :: Boolean, error :: Maybe ResultError }#download Source
download :: StoragePath -> StorageBucket -> Aff (Response Blob)#createSignedUrls Source
createSignedUrls :: Array StoragePath -> Seconds -> StorageBucket -> Aff (Response (Array { error :: Maybe String, path :: String, signedUrl :: String }))#createSignedUrl Source
createSignedUrl :: StoragePath -> Seconds -> StorageBucket -> Aff (Response { signedUrl :: String })#copy Source
copy :: StoragePath -> StoragePath -> StorageBucket -> Aff { error :: Maybe ResultError }Re-exports from Supabase.Supabase
#QueryBuilder Source
data QueryBuilder :: Row Type -> Row Type -> Typedata QueryBuilder t0 t1
#OrderOptions Source
type OrderOptions = { ascending :: Boolean, nullsFirst :: Boolean }#FilterBuilder Source
data FilterBuilder :: Row Type -> Row Type -> Typedata FilterBuilder t0 t1
#upsertWith Source
upsertWith :: forall row rels d rest. WriteForeign (Record d) => Union d rest row => Record d -> UpsertOptions -> QueryBuilder row rels -> FilterBuilder row row#upsert Source
upsert :: forall row rels @d rest. WriteForeign (Record d) => Union d rest row => Record d -> QueryBuilder row rels -> FilterBuilder row row#update Source
update :: forall row rels d rest. WriteForeign (Record d) => Union d rest row => Record d -> QueryBuilder row rels -> FilterBuilder row row#textSearch Source
textSearch :: forall @col colType filterType table result rest. IsSymbol col => Cons col colType rest table => FilterType colType filterType => WriteForeign filterType => filterType -> { config :: String, type :: TextSearchType } -> FilterBuilder table result -> FilterBuilder table result#singleWith Source
singleWith :: forall @t table result. ReadForeign t => FilterBuilder table result -> Aff (Response t)#single Source
single :: forall table result. ReadForeign (Record result) => FilterBuilder table result -> Aff (Response (Record result))#selectColumnsWithCount Source
selectColumnsWithCount :: forall @cols row rels result. IsSymbol cols => ParseSelect cols row rels result => Count -> QueryBuilder row rels -> FilterBuilder row result#selectColumns Source
selectColumns :: forall @cols row rels result. IsSymbol cols => ParseSelect cols row rels result => QueryBuilder row rels -> FilterBuilder row result#select Source
select :: forall row rels. QueryBuilder row rels -> FilterBuilder row row#runWith Source
runWith :: forall @t table result. ReadForeign t => FilterBuilder table result -> Aff (Response t)#run Source
run :: forall table result. ReadForeign (Record result) => FilterBuilder table result -> Aff (Response (Array (Record result)))#range Source
range :: forall table result. ReadForeign (Record result) => { from :: Int, to :: Int } -> FilterBuilder table result -> Aff (Response (Array (Record result)))#overlaps Source
overlaps :: forall @col colType filterType table result rest. IsSymbol col => Cons col colType rest table => FilterType colType filterType => WriteForeign filterType => filterType -> FilterBuilder table result -> FilterBuilder table result#orderWith Source
orderWith :: forall @col val table result rest. IsSymbol col => Cons col val rest table => OrderOptions -> FilterBuilder table result -> FilterBuilder table result#order Source
order :: forall @col val table result rest. IsSymbol col => Cons col val rest table => FilterBuilder table result -> FilterBuilder table result#or Source
or :: forall table result. NonEmptyArray (Condition table) -> FilterBuilder table result -> FilterBuilder table result#not_ Source
not_ :: forall @col colType table result rest. IsSymbol col => Cons col colType rest table => FilterOp -> FilterBuilder table result -> FilterBuilder table result#neq Source
neq :: forall @col colType filterType table result rest. IsSymbol col => Cons col colType rest table => FilterType colType filterType => WriteForeign filterType => filterType -> FilterBuilder table result -> FilterBuilder table result#maybeSingleWith Source
maybeSingleWith :: forall @t table result. ReadForeign t => FilterBuilder table result -> Aff (Response t)#maybeSingle Source
maybeSingle :: forall table result. ReadForeign (Record result) => FilterBuilder table result -> Aff (Response (Record result))#lte Source
lte :: forall @col colType filterType table result rest. IsSymbol col => Cons col colType rest table => FilterType colType filterType => WriteForeign filterType => filterType -> FilterBuilder table result -> FilterBuilder table result#lt Source
lt :: forall @col colType filterType table result rest. IsSymbol col => Cons col colType rest table => FilterType colType filterType => WriteForeign filterType => filterType -> FilterBuilder table result -> FilterBuilder table result#limit Source
limit :: forall table result. Int -> FilterBuilder table result -> FilterBuilder table result#like Source
like :: forall @col colType filterType table result rest. IsSymbol col => Cons col colType rest table => FilterType colType filterType => WriteForeign filterType => filterType -> FilterBuilder table result -> FilterBuilder table result#is Source
is :: forall @col colType table result rest. IsSymbol col => Cons col colType rest table => IsValue -> FilterBuilder table result -> FilterBuilder table result#insertInto Source
insertInto :: forall row required rels @d rest reqRest. WriteForeign (Record d) => Union d rest row => Union required reqRest d => Table row required rels -> Record d -> Client -> FilterBuilder row row#insert Source
insert :: forall row rels @d rest. WriteForeign (Record d) => Union d rest row => Record d -> QueryBuilder row rels -> FilterBuilder row row#in_ Source
in_ :: forall @col colType filterType table result rest. IsSymbol col => Cons col colType rest table => FilterType colType filterType => WriteForeign filterType => NonEmptyArray filterType -> FilterBuilder table result -> FilterBuilder table result#ilike Source
ilike :: forall @col colType filterType table result rest. IsSymbol col => Cons col colType rest table => FilterType colType filterType => WriteForeign filterType => filterType -> FilterBuilder table result -> FilterBuilder table result#gte Source
gte :: forall @col colType filterType table result rest. IsSymbol col => Cons col colType rest table => FilterType colType filterType => WriteForeign filterType => filterType -> FilterBuilder table result -> FilterBuilder table result#gt Source
gt :: forall @col colType filterType table result rest. IsSymbol col => Cons col colType rest table => FilterType colType filterType => WriteForeign filterType => filterType -> FilterBuilder table result -> FilterBuilder table result#from Source
from :: forall row required rels. Table row required rels -> Client -> QueryBuilder row rels#eq_ Source
eq_ :: forall @col colType filterType table result rest. IsSymbol col => Cons col colType rest table => FilterType colType filterType => WriteForeign filterType => filterType -> FilterBuilder table result -> FilterBuilder table result#delete Source
delete :: forall row rels. QueryBuilder row rels -> FilterBuilder row row#csv Source
csv :: forall table result. FilterBuilder table result -> FilterBuilder table result#contains Source
contains :: forall @col colType filterType table result rest. IsSymbol col => Cons col colType rest table => FilterType colType filterType => WriteForeign filterType => filterType -> FilterBuilder table result -> FilterBuilder table result#containedBy Source
containedBy :: forall @col colType filterType table result rest. IsSymbol col => Cons col colType rest table => FilterType colType filterType => WriteForeign filterType => filterType -> FilterBuilder table result -> FilterBuilder table result#callRpcWith Source
callRpcWith :: forall params result. WriteForeign (Record params) => Rpc params result -> Record params -> Client -> FilterBuilder result result#callRpc Source
callRpc :: forall params result. Rpc params result -> Client -> FilterBuilder result resultRe-exports from Supabase.Types
#SupabaseUrl Source
#SupabaseAnonKey Source
#StoragePath Source
Re-exports from Supabase.UUID
Re-exports from Supabase.Util
#toError Source
toError :: NonEmptyList ForeignError -> Error#fromJSON Source
fromJSON :: forall json m. MonadThrow Error m => ReadForeign json => Foreign -> m json#fromEither Source
fromEither :: forall t m. MonadThrow Error m => Either Error t -> m t- Modules
- Codegen
- LSP.
Context - LSP.
SchemaParser - LSP.
Server - Supabase
- Supabase.
Auth - Supabase.
Auth. Types - Supabase.
AuthHelpers - Supabase.
Filter - Supabase.
Realtime - Supabase.
Realtime. ListenType - Supabase.
Realtime. SubscribeStates - Supabase.
SSR - Supabase.
Select - Supabase.
Storage - Supabase.
Supabase - Supabase.
Types - Supabase.
UUID - Supabase.
Util