@fluxbase/sdk 0.0.1-rc.18 → 0.0.1-rc.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +7 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +28 -21
- package/dist/index.d.ts +28 -21
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1088,10 +1088,10 @@ interface EdgeFunctionExecution {
|
|
|
1088
1088
|
completed_at?: string;
|
|
1089
1089
|
}
|
|
1090
1090
|
/**
|
|
1091
|
-
* Base
|
|
1092
|
-
* Returns either { data, error: null } on success or { data: null, error } on failure
|
|
1091
|
+
* Base Fluxbase response type (Supabase-compatible)
|
|
1092
|
+
* Returns either `{ data, error: null }` on success or `{ data: null, error }` on failure
|
|
1093
1093
|
*/
|
|
1094
|
-
type
|
|
1094
|
+
type FluxbaseResponse<T> = {
|
|
1095
1095
|
data: T;
|
|
1096
1096
|
error: null;
|
|
1097
1097
|
} | {
|
|
@@ -1105,33 +1105,40 @@ type VoidResponse = {
|
|
|
1105
1105
|
error: Error | null;
|
|
1106
1106
|
};
|
|
1107
1107
|
/**
|
|
1108
|
-
* Auth response with user and session
|
|
1109
|
-
* Note: This replaces the old AuthResponse interface for compatibility
|
|
1108
|
+
* Auth response with user and session
|
|
1110
1109
|
*/
|
|
1111
1110
|
type AuthResponseData = {
|
|
1112
1111
|
user: User;
|
|
1113
1112
|
session: AuthSession;
|
|
1114
1113
|
};
|
|
1115
1114
|
/**
|
|
1116
|
-
*
|
|
1115
|
+
* Fluxbase auth response
|
|
1117
1116
|
*/
|
|
1118
|
-
type
|
|
1117
|
+
type FluxbaseAuthResponse = FluxbaseResponse<AuthResponseData>;
|
|
1119
1118
|
/**
|
|
1120
|
-
* User response
|
|
1119
|
+
* User response
|
|
1121
1120
|
*/
|
|
1122
|
-
type UserResponse =
|
|
1121
|
+
type UserResponse = FluxbaseResponse<{
|
|
1123
1122
|
user: User;
|
|
1124
1123
|
}>;
|
|
1125
1124
|
/**
|
|
1126
|
-
* Session response
|
|
1125
|
+
* Session response
|
|
1127
1126
|
*/
|
|
1128
|
-
type SessionResponse =
|
|
1127
|
+
type SessionResponse = FluxbaseResponse<{
|
|
1129
1128
|
session: AuthSession;
|
|
1130
1129
|
}>;
|
|
1131
1130
|
/**
|
|
1132
|
-
* Generic data response
|
|
1131
|
+
* Generic data response
|
|
1133
1132
|
*/
|
|
1134
|
-
type DataResponse<T> =
|
|
1133
|
+
type DataResponse<T> = FluxbaseResponse<T>;
|
|
1134
|
+
/**
|
|
1135
|
+
* @deprecated Use FluxbaseResponse instead
|
|
1136
|
+
*/
|
|
1137
|
+
type SupabaseResponse<T> = FluxbaseResponse<T>;
|
|
1138
|
+
/**
|
|
1139
|
+
* @deprecated Use FluxbaseAuthResponse instead
|
|
1140
|
+
*/
|
|
1141
|
+
type SupabaseAuthResponse = FluxbaseAuthResponse;
|
|
1135
1142
|
|
|
1136
1143
|
/**
|
|
1137
1144
|
* Realtime subscriptions using WebSockets
|
|
@@ -1352,17 +1359,17 @@ declare class FluxbaseAuth {
|
|
|
1352
1359
|
* Sign in with email and password
|
|
1353
1360
|
* Returns AuthSession if successful, or SignInWith2FAResponse if 2FA is required
|
|
1354
1361
|
*/
|
|
1355
|
-
signIn(credentials: SignInCredentials): Promise<
|
|
1362
|
+
signIn(credentials: SignInCredentials): Promise<FluxbaseResponse<AuthSession | SignInWith2FAResponse>>;
|
|
1356
1363
|
/**
|
|
1357
1364
|
* Sign in with email and password
|
|
1358
1365
|
* Alias for signIn() to maintain compatibility with common authentication patterns
|
|
1359
1366
|
* Returns AuthSession if successful, or SignInWith2FAResponse if 2FA is required
|
|
1360
1367
|
*/
|
|
1361
|
-
signInWithPassword(credentials: SignInCredentials): Promise<
|
|
1368
|
+
signInWithPassword(credentials: SignInCredentials): Promise<FluxbaseResponse<AuthSession | SignInWith2FAResponse>>;
|
|
1362
1369
|
/**
|
|
1363
1370
|
* Sign up with email and password
|
|
1364
1371
|
*/
|
|
1365
|
-
signUp(credentials: SignUpCredentials): Promise<
|
|
1372
|
+
signUp(credentials: SignUpCredentials): Promise<FluxbaseAuthResponse>;
|
|
1366
1373
|
/**
|
|
1367
1374
|
* Sign out the current user
|
|
1368
1375
|
*/
|
|
@@ -1409,7 +1416,7 @@ declare class FluxbaseAuth {
|
|
|
1409
1416
|
* Verify 2FA code during login
|
|
1410
1417
|
* Call this after signIn returns requires_2fa: true
|
|
1411
1418
|
*/
|
|
1412
|
-
verify2FA(request: TwoFactorVerifyRequest): Promise<
|
|
1419
|
+
verify2FA(request: TwoFactorVerifyRequest): Promise<FluxbaseAuthResponse>;
|
|
1413
1420
|
/**
|
|
1414
1421
|
* Send password reset email
|
|
1415
1422
|
* Sends a password reset link to the provided email address
|
|
@@ -1447,12 +1454,12 @@ declare class FluxbaseAuth {
|
|
|
1447
1454
|
* Verify magic link token and sign in
|
|
1448
1455
|
* @param token - Magic link token from email
|
|
1449
1456
|
*/
|
|
1450
|
-
verifyMagicLink(token: string): Promise<
|
|
1457
|
+
verifyMagicLink(token: string): Promise<FluxbaseAuthResponse>;
|
|
1451
1458
|
/**
|
|
1452
1459
|
* Sign in anonymously
|
|
1453
1460
|
* Creates a temporary anonymous user session
|
|
1454
1461
|
*/
|
|
1455
|
-
signInAnonymously(): Promise<
|
|
1462
|
+
signInAnonymously(): Promise<FluxbaseAuthResponse>;
|
|
1456
1463
|
/**
|
|
1457
1464
|
* Get list of enabled OAuth providers
|
|
1458
1465
|
*/
|
|
@@ -1468,7 +1475,7 @@ declare class FluxbaseAuth {
|
|
|
1468
1475
|
* This is typically called in your OAuth callback handler
|
|
1469
1476
|
* @param code - Authorization code from OAuth callback
|
|
1470
1477
|
*/
|
|
1471
|
-
exchangeCodeForSession(code: string): Promise<
|
|
1478
|
+
exchangeCodeForSession(code: string): Promise<FluxbaseAuthResponse>;
|
|
1472
1479
|
/**
|
|
1473
1480
|
* Convenience method to initiate OAuth sign-in
|
|
1474
1481
|
* Redirects the user to the OAuth provider's authorization page
|
|
@@ -4417,4 +4424,4 @@ declare class FluxbaseClient<Database = any, _SchemaName extends string & keyof
|
|
|
4417
4424
|
*/
|
|
4418
4425
|
declare function createClient<Database = any, SchemaName extends string & keyof Database = any>(fluxbaseUrl: string, fluxbaseKey: string, options?: FluxbaseClientOptions): FluxbaseClient<Database, SchemaName>;
|
|
4419
4426
|
|
|
4420
|
-
export { type APIKey, APIKeysManager, type AcceptInvitationRequest, type AcceptInvitationResponse, type AdminAuthResponse, type AdminLoginRequest, type AdminMeResponse, type AdminRefreshRequest, type AdminRefreshResponse, type AdminSetupRequest, type AdminSetupStatusResponse, type AdminUser, type AppSettings, AppSettingsManager, type AuthResponse, type AuthSession, type AuthSettings, AuthSettingsManager, type AuthenticationSettings, type Column, type CreateAPIKeyRequest, type CreateAPIKeyResponse, type CreateColumnRequest, type CreateFunctionRequest, type CreateInvitationRequest, type CreateInvitationResponse, type CreateOAuthProviderRequest, type CreateOAuthProviderResponse, type CreateSchemaRequest, type CreateSchemaResponse, type CreateTableRequest, type CreateTableResponse, type CreateWebhookRequest, DDLManager, type DataResponse, type DeleteAPIKeyResponse, type DeleteOAuthProviderResponse, type DeleteTableResponse, type DeleteUserResponse, type DeleteWebhookResponse, type EdgeFunction, type EdgeFunctionExecution, type EmailSettings, type EmailTemplate, EmailTemplateManager, type EmailTemplateType, type EnrichedUser, type FeatureSettings, type FileObject, type FilterOperator, FluxbaseAdmin, FluxbaseAuth, FluxbaseClient, type FluxbaseClientOptions, type FluxbaseError, FluxbaseFetch, FluxbaseFunctions, FluxbaseManagement, FluxbaseOAuth, FluxbaseRealtime, FluxbaseSettings, FluxbaseStorage, type FunctionInvokeOptions, type GetImpersonationResponse, type HttpMethod, type ImpersonateAnonRequest, type ImpersonateServiceRequest, type ImpersonateUserRequest, ImpersonationManager, type ImpersonationSession, type ImpersonationTargetUser, type ImpersonationType, type Invitation, InvitationsManager, type InviteUserRequest, type InviteUserResponse, type ListAPIKeysResponse, type ListEmailTemplatesResponse, type ListImpersonationSessionsOptions, type ListImpersonationSessionsResponse, type ListInvitationsOptions, type ListInvitationsResponse, type ListOAuthProvidersResponse, type ListOptions, type ListSchemasResponse, type ListSystemSettingsResponse, type ListTablesResponse, type ListUsersOptions, type ListUsersResponse, type ListWebhookDeliveriesResponse, type ListWebhooksResponse, type MailgunSettings, type OAuthProvider, OAuthProviderManager, type OrderBy, type OrderDirection, type PostgresChangesConfig, type PostgrestError, type PostgrestResponse, QueryBuilder, type QueryFilter, type RealtimeCallback, type RealtimeChangePayload, RealtimeChannel, type RealtimeMessage, type RealtimePostgresChangesPayload, type RequestOptions, type ResetUserPasswordResponse, type RevokeAPIKeyResponse, type RevokeInvitationResponse, type SESSettings, type SMTPSettings, type Schema, type SecuritySettings, type SendGridSettings, type SessionResponse, type SignInCredentials, type SignInWith2FAResponse, type SignUpCredentials, type SignedUrlOptions, type StartImpersonationResponse, type StopImpersonationResponse, StorageBucket, type StorageObject, type SupabaseAuthResponse, type SupabaseResponse, type SystemSetting, SystemSettingsManager, type Table, type TestEmailTemplateRequest, type TestWebhookResponse, type TwoFactorEnableResponse, type TwoFactorSetupResponse, type TwoFactorStatusResponse, type TwoFactorVerifyRequest, type UpdateAPIKeyRequest, type UpdateAppSettingsRequest, type UpdateAuthSettingsRequest, type UpdateAuthSettingsResponse, type UpdateEmailTemplateRequest, type UpdateFunctionRequest, type UpdateOAuthProviderRequest, type UpdateOAuthProviderResponse, type UpdateSystemSettingRequest, type UpdateUserRoleRequest, type UpdateWebhookRequest, type UploadOptions, type User, type UserResponse, type ValidateInvitationResponse, type VoidResponse, type Webhook, type WebhookDelivery, WebhooksManager, createClient };
|
|
4427
|
+
export { type APIKey, APIKeysManager, type AcceptInvitationRequest, type AcceptInvitationResponse, type AdminAuthResponse, type AdminLoginRequest, type AdminMeResponse, type AdminRefreshRequest, type AdminRefreshResponse, type AdminSetupRequest, type AdminSetupStatusResponse, type AdminUser, type AppSettings, AppSettingsManager, type AuthResponse, type AuthSession, type AuthSettings, AuthSettingsManager, type AuthenticationSettings, type Column, type CreateAPIKeyRequest, type CreateAPIKeyResponse, type CreateColumnRequest, type CreateFunctionRequest, type CreateInvitationRequest, type CreateInvitationResponse, type CreateOAuthProviderRequest, type CreateOAuthProviderResponse, type CreateSchemaRequest, type CreateSchemaResponse, type CreateTableRequest, type CreateTableResponse, type CreateWebhookRequest, DDLManager, type DataResponse, type DeleteAPIKeyResponse, type DeleteOAuthProviderResponse, type DeleteTableResponse, type DeleteUserResponse, type DeleteWebhookResponse, type EdgeFunction, type EdgeFunctionExecution, type EmailSettings, type EmailTemplate, EmailTemplateManager, type EmailTemplateType, type EnrichedUser, type FeatureSettings, type FileObject, type FilterOperator, FluxbaseAdmin, FluxbaseAuth, type FluxbaseAuthResponse, FluxbaseClient, type FluxbaseClientOptions, type FluxbaseError, FluxbaseFetch, FluxbaseFunctions, FluxbaseManagement, FluxbaseOAuth, FluxbaseRealtime, type FluxbaseResponse, FluxbaseSettings, FluxbaseStorage, type FunctionInvokeOptions, type GetImpersonationResponse, type HttpMethod, type ImpersonateAnonRequest, type ImpersonateServiceRequest, type ImpersonateUserRequest, ImpersonationManager, type ImpersonationSession, type ImpersonationTargetUser, type ImpersonationType, type Invitation, InvitationsManager, type InviteUserRequest, type InviteUserResponse, type ListAPIKeysResponse, type ListEmailTemplatesResponse, type ListImpersonationSessionsOptions, type ListImpersonationSessionsResponse, type ListInvitationsOptions, type ListInvitationsResponse, type ListOAuthProvidersResponse, type ListOptions, type ListSchemasResponse, type ListSystemSettingsResponse, type ListTablesResponse, type ListUsersOptions, type ListUsersResponse, type ListWebhookDeliveriesResponse, type ListWebhooksResponse, type MailgunSettings, type OAuthProvider, OAuthProviderManager, type OrderBy, type OrderDirection, type PostgresChangesConfig, type PostgrestError, type PostgrestResponse, QueryBuilder, type QueryFilter, type RealtimeCallback, type RealtimeChangePayload, RealtimeChannel, type RealtimeMessage, type RealtimePostgresChangesPayload, type RequestOptions, type ResetUserPasswordResponse, type RevokeAPIKeyResponse, type RevokeInvitationResponse, type SESSettings, type SMTPSettings, type Schema, type SecuritySettings, type SendGridSettings, type SessionResponse, type SignInCredentials, type SignInWith2FAResponse, type SignUpCredentials, type SignedUrlOptions, type StartImpersonationResponse, type StopImpersonationResponse, StorageBucket, type StorageObject, type SupabaseAuthResponse, type SupabaseResponse, type SystemSetting, SystemSettingsManager, type Table, type TestEmailTemplateRequest, type TestWebhookResponse, type TwoFactorEnableResponse, type TwoFactorSetupResponse, type TwoFactorStatusResponse, type TwoFactorVerifyRequest, type UpdateAPIKeyRequest, type UpdateAppSettingsRequest, type UpdateAuthSettingsRequest, type UpdateAuthSettingsResponse, type UpdateEmailTemplateRequest, type UpdateFunctionRequest, type UpdateOAuthProviderRequest, type UpdateOAuthProviderResponse, type UpdateSystemSettingRequest, type UpdateUserRoleRequest, type UpdateWebhookRequest, type UploadOptions, type User, type UserResponse, type ValidateInvitationResponse, type VoidResponse, type Webhook, type WebhookDelivery, WebhooksManager, createClient };
|
package/dist/index.d.ts
CHANGED
|
@@ -1088,10 +1088,10 @@ interface EdgeFunctionExecution {
|
|
|
1088
1088
|
completed_at?: string;
|
|
1089
1089
|
}
|
|
1090
1090
|
/**
|
|
1091
|
-
* Base
|
|
1092
|
-
* Returns either { data, error: null } on success or { data: null, error } on failure
|
|
1091
|
+
* Base Fluxbase response type (Supabase-compatible)
|
|
1092
|
+
* Returns either `{ data, error: null }` on success or `{ data: null, error }` on failure
|
|
1093
1093
|
*/
|
|
1094
|
-
type
|
|
1094
|
+
type FluxbaseResponse<T> = {
|
|
1095
1095
|
data: T;
|
|
1096
1096
|
error: null;
|
|
1097
1097
|
} | {
|
|
@@ -1105,33 +1105,40 @@ type VoidResponse = {
|
|
|
1105
1105
|
error: Error | null;
|
|
1106
1106
|
};
|
|
1107
1107
|
/**
|
|
1108
|
-
* Auth response with user and session
|
|
1109
|
-
* Note: This replaces the old AuthResponse interface for compatibility
|
|
1108
|
+
* Auth response with user and session
|
|
1110
1109
|
*/
|
|
1111
1110
|
type AuthResponseData = {
|
|
1112
1111
|
user: User;
|
|
1113
1112
|
session: AuthSession;
|
|
1114
1113
|
};
|
|
1115
1114
|
/**
|
|
1116
|
-
*
|
|
1115
|
+
* Fluxbase auth response
|
|
1117
1116
|
*/
|
|
1118
|
-
type
|
|
1117
|
+
type FluxbaseAuthResponse = FluxbaseResponse<AuthResponseData>;
|
|
1119
1118
|
/**
|
|
1120
|
-
* User response
|
|
1119
|
+
* User response
|
|
1121
1120
|
*/
|
|
1122
|
-
type UserResponse =
|
|
1121
|
+
type UserResponse = FluxbaseResponse<{
|
|
1123
1122
|
user: User;
|
|
1124
1123
|
}>;
|
|
1125
1124
|
/**
|
|
1126
|
-
* Session response
|
|
1125
|
+
* Session response
|
|
1127
1126
|
*/
|
|
1128
|
-
type SessionResponse =
|
|
1127
|
+
type SessionResponse = FluxbaseResponse<{
|
|
1129
1128
|
session: AuthSession;
|
|
1130
1129
|
}>;
|
|
1131
1130
|
/**
|
|
1132
|
-
* Generic data response
|
|
1131
|
+
* Generic data response
|
|
1133
1132
|
*/
|
|
1134
|
-
type DataResponse<T> =
|
|
1133
|
+
type DataResponse<T> = FluxbaseResponse<T>;
|
|
1134
|
+
/**
|
|
1135
|
+
* @deprecated Use FluxbaseResponse instead
|
|
1136
|
+
*/
|
|
1137
|
+
type SupabaseResponse<T> = FluxbaseResponse<T>;
|
|
1138
|
+
/**
|
|
1139
|
+
* @deprecated Use FluxbaseAuthResponse instead
|
|
1140
|
+
*/
|
|
1141
|
+
type SupabaseAuthResponse = FluxbaseAuthResponse;
|
|
1135
1142
|
|
|
1136
1143
|
/**
|
|
1137
1144
|
* Realtime subscriptions using WebSockets
|
|
@@ -1352,17 +1359,17 @@ declare class FluxbaseAuth {
|
|
|
1352
1359
|
* Sign in with email and password
|
|
1353
1360
|
* Returns AuthSession if successful, or SignInWith2FAResponse if 2FA is required
|
|
1354
1361
|
*/
|
|
1355
|
-
signIn(credentials: SignInCredentials): Promise<
|
|
1362
|
+
signIn(credentials: SignInCredentials): Promise<FluxbaseResponse<AuthSession | SignInWith2FAResponse>>;
|
|
1356
1363
|
/**
|
|
1357
1364
|
* Sign in with email and password
|
|
1358
1365
|
* Alias for signIn() to maintain compatibility with common authentication patterns
|
|
1359
1366
|
* Returns AuthSession if successful, or SignInWith2FAResponse if 2FA is required
|
|
1360
1367
|
*/
|
|
1361
|
-
signInWithPassword(credentials: SignInCredentials): Promise<
|
|
1368
|
+
signInWithPassword(credentials: SignInCredentials): Promise<FluxbaseResponse<AuthSession | SignInWith2FAResponse>>;
|
|
1362
1369
|
/**
|
|
1363
1370
|
* Sign up with email and password
|
|
1364
1371
|
*/
|
|
1365
|
-
signUp(credentials: SignUpCredentials): Promise<
|
|
1372
|
+
signUp(credentials: SignUpCredentials): Promise<FluxbaseAuthResponse>;
|
|
1366
1373
|
/**
|
|
1367
1374
|
* Sign out the current user
|
|
1368
1375
|
*/
|
|
@@ -1409,7 +1416,7 @@ declare class FluxbaseAuth {
|
|
|
1409
1416
|
* Verify 2FA code during login
|
|
1410
1417
|
* Call this after signIn returns requires_2fa: true
|
|
1411
1418
|
*/
|
|
1412
|
-
verify2FA(request: TwoFactorVerifyRequest): Promise<
|
|
1419
|
+
verify2FA(request: TwoFactorVerifyRequest): Promise<FluxbaseAuthResponse>;
|
|
1413
1420
|
/**
|
|
1414
1421
|
* Send password reset email
|
|
1415
1422
|
* Sends a password reset link to the provided email address
|
|
@@ -1447,12 +1454,12 @@ declare class FluxbaseAuth {
|
|
|
1447
1454
|
* Verify magic link token and sign in
|
|
1448
1455
|
* @param token - Magic link token from email
|
|
1449
1456
|
*/
|
|
1450
|
-
verifyMagicLink(token: string): Promise<
|
|
1457
|
+
verifyMagicLink(token: string): Promise<FluxbaseAuthResponse>;
|
|
1451
1458
|
/**
|
|
1452
1459
|
* Sign in anonymously
|
|
1453
1460
|
* Creates a temporary anonymous user session
|
|
1454
1461
|
*/
|
|
1455
|
-
signInAnonymously(): Promise<
|
|
1462
|
+
signInAnonymously(): Promise<FluxbaseAuthResponse>;
|
|
1456
1463
|
/**
|
|
1457
1464
|
* Get list of enabled OAuth providers
|
|
1458
1465
|
*/
|
|
@@ -1468,7 +1475,7 @@ declare class FluxbaseAuth {
|
|
|
1468
1475
|
* This is typically called in your OAuth callback handler
|
|
1469
1476
|
* @param code - Authorization code from OAuth callback
|
|
1470
1477
|
*/
|
|
1471
|
-
exchangeCodeForSession(code: string): Promise<
|
|
1478
|
+
exchangeCodeForSession(code: string): Promise<FluxbaseAuthResponse>;
|
|
1472
1479
|
/**
|
|
1473
1480
|
* Convenience method to initiate OAuth sign-in
|
|
1474
1481
|
* Redirects the user to the OAuth provider's authorization page
|
|
@@ -4417,4 +4424,4 @@ declare class FluxbaseClient<Database = any, _SchemaName extends string & keyof
|
|
|
4417
4424
|
*/
|
|
4418
4425
|
declare function createClient<Database = any, SchemaName extends string & keyof Database = any>(fluxbaseUrl: string, fluxbaseKey: string, options?: FluxbaseClientOptions): FluxbaseClient<Database, SchemaName>;
|
|
4419
4426
|
|
|
4420
|
-
export { type APIKey, APIKeysManager, type AcceptInvitationRequest, type AcceptInvitationResponse, type AdminAuthResponse, type AdminLoginRequest, type AdminMeResponse, type AdminRefreshRequest, type AdminRefreshResponse, type AdminSetupRequest, type AdminSetupStatusResponse, type AdminUser, type AppSettings, AppSettingsManager, type AuthResponse, type AuthSession, type AuthSettings, AuthSettingsManager, type AuthenticationSettings, type Column, type CreateAPIKeyRequest, type CreateAPIKeyResponse, type CreateColumnRequest, type CreateFunctionRequest, type CreateInvitationRequest, type CreateInvitationResponse, type CreateOAuthProviderRequest, type CreateOAuthProviderResponse, type CreateSchemaRequest, type CreateSchemaResponse, type CreateTableRequest, type CreateTableResponse, type CreateWebhookRequest, DDLManager, type DataResponse, type DeleteAPIKeyResponse, type DeleteOAuthProviderResponse, type DeleteTableResponse, type DeleteUserResponse, type DeleteWebhookResponse, type EdgeFunction, type EdgeFunctionExecution, type EmailSettings, type EmailTemplate, EmailTemplateManager, type EmailTemplateType, type EnrichedUser, type FeatureSettings, type FileObject, type FilterOperator, FluxbaseAdmin, FluxbaseAuth, FluxbaseClient, type FluxbaseClientOptions, type FluxbaseError, FluxbaseFetch, FluxbaseFunctions, FluxbaseManagement, FluxbaseOAuth, FluxbaseRealtime, FluxbaseSettings, FluxbaseStorage, type FunctionInvokeOptions, type GetImpersonationResponse, type HttpMethod, type ImpersonateAnonRequest, type ImpersonateServiceRequest, type ImpersonateUserRequest, ImpersonationManager, type ImpersonationSession, type ImpersonationTargetUser, type ImpersonationType, type Invitation, InvitationsManager, type InviteUserRequest, type InviteUserResponse, type ListAPIKeysResponse, type ListEmailTemplatesResponse, type ListImpersonationSessionsOptions, type ListImpersonationSessionsResponse, type ListInvitationsOptions, type ListInvitationsResponse, type ListOAuthProvidersResponse, type ListOptions, type ListSchemasResponse, type ListSystemSettingsResponse, type ListTablesResponse, type ListUsersOptions, type ListUsersResponse, type ListWebhookDeliveriesResponse, type ListWebhooksResponse, type MailgunSettings, type OAuthProvider, OAuthProviderManager, type OrderBy, type OrderDirection, type PostgresChangesConfig, type PostgrestError, type PostgrestResponse, QueryBuilder, type QueryFilter, type RealtimeCallback, type RealtimeChangePayload, RealtimeChannel, type RealtimeMessage, type RealtimePostgresChangesPayload, type RequestOptions, type ResetUserPasswordResponse, type RevokeAPIKeyResponse, type RevokeInvitationResponse, type SESSettings, type SMTPSettings, type Schema, type SecuritySettings, type SendGridSettings, type SessionResponse, type SignInCredentials, type SignInWith2FAResponse, type SignUpCredentials, type SignedUrlOptions, type StartImpersonationResponse, type StopImpersonationResponse, StorageBucket, type StorageObject, type SupabaseAuthResponse, type SupabaseResponse, type SystemSetting, SystemSettingsManager, type Table, type TestEmailTemplateRequest, type TestWebhookResponse, type TwoFactorEnableResponse, type TwoFactorSetupResponse, type TwoFactorStatusResponse, type TwoFactorVerifyRequest, type UpdateAPIKeyRequest, type UpdateAppSettingsRequest, type UpdateAuthSettingsRequest, type UpdateAuthSettingsResponse, type UpdateEmailTemplateRequest, type UpdateFunctionRequest, type UpdateOAuthProviderRequest, type UpdateOAuthProviderResponse, type UpdateSystemSettingRequest, type UpdateUserRoleRequest, type UpdateWebhookRequest, type UploadOptions, type User, type UserResponse, type ValidateInvitationResponse, type VoidResponse, type Webhook, type WebhookDelivery, WebhooksManager, createClient };
|
|
4427
|
+
export { type APIKey, APIKeysManager, type AcceptInvitationRequest, type AcceptInvitationResponse, type AdminAuthResponse, type AdminLoginRequest, type AdminMeResponse, type AdminRefreshRequest, type AdminRefreshResponse, type AdminSetupRequest, type AdminSetupStatusResponse, type AdminUser, type AppSettings, AppSettingsManager, type AuthResponse, type AuthSession, type AuthSettings, AuthSettingsManager, type AuthenticationSettings, type Column, type CreateAPIKeyRequest, type CreateAPIKeyResponse, type CreateColumnRequest, type CreateFunctionRequest, type CreateInvitationRequest, type CreateInvitationResponse, type CreateOAuthProviderRequest, type CreateOAuthProviderResponse, type CreateSchemaRequest, type CreateSchemaResponse, type CreateTableRequest, type CreateTableResponse, type CreateWebhookRequest, DDLManager, type DataResponse, type DeleteAPIKeyResponse, type DeleteOAuthProviderResponse, type DeleteTableResponse, type DeleteUserResponse, type DeleteWebhookResponse, type EdgeFunction, type EdgeFunctionExecution, type EmailSettings, type EmailTemplate, EmailTemplateManager, type EmailTemplateType, type EnrichedUser, type FeatureSettings, type FileObject, type FilterOperator, FluxbaseAdmin, FluxbaseAuth, type FluxbaseAuthResponse, FluxbaseClient, type FluxbaseClientOptions, type FluxbaseError, FluxbaseFetch, FluxbaseFunctions, FluxbaseManagement, FluxbaseOAuth, FluxbaseRealtime, type FluxbaseResponse, FluxbaseSettings, FluxbaseStorage, type FunctionInvokeOptions, type GetImpersonationResponse, type HttpMethod, type ImpersonateAnonRequest, type ImpersonateServiceRequest, type ImpersonateUserRequest, ImpersonationManager, type ImpersonationSession, type ImpersonationTargetUser, type ImpersonationType, type Invitation, InvitationsManager, type InviteUserRequest, type InviteUserResponse, type ListAPIKeysResponse, type ListEmailTemplatesResponse, type ListImpersonationSessionsOptions, type ListImpersonationSessionsResponse, type ListInvitationsOptions, type ListInvitationsResponse, type ListOAuthProvidersResponse, type ListOptions, type ListSchemasResponse, type ListSystemSettingsResponse, type ListTablesResponse, type ListUsersOptions, type ListUsersResponse, type ListWebhookDeliveriesResponse, type ListWebhooksResponse, type MailgunSettings, type OAuthProvider, OAuthProviderManager, type OrderBy, type OrderDirection, type PostgresChangesConfig, type PostgrestError, type PostgrestResponse, QueryBuilder, type QueryFilter, type RealtimeCallback, type RealtimeChangePayload, RealtimeChannel, type RealtimeMessage, type RealtimePostgresChangesPayload, type RequestOptions, type ResetUserPasswordResponse, type RevokeAPIKeyResponse, type RevokeInvitationResponse, type SESSettings, type SMTPSettings, type Schema, type SecuritySettings, type SendGridSettings, type SessionResponse, type SignInCredentials, type SignInWith2FAResponse, type SignUpCredentials, type SignedUrlOptions, type StartImpersonationResponse, type StopImpersonationResponse, StorageBucket, type StorageObject, type SupabaseAuthResponse, type SupabaseResponse, type SystemSetting, SystemSettingsManager, type Table, type TestEmailTemplateRequest, type TestWebhookResponse, type TwoFactorEnableResponse, type TwoFactorSetupResponse, type TwoFactorStatusResponse, type TwoFactorVerifyRequest, type UpdateAPIKeyRequest, type UpdateAppSettingsRequest, type UpdateAuthSettingsRequest, type UpdateAuthSettingsResponse, type UpdateEmailTemplateRequest, type UpdateFunctionRequest, type UpdateOAuthProviderRequest, type UpdateOAuthProviderResponse, type UpdateSystemSettingRequest, type UpdateUserRoleRequest, type UpdateWebhookRequest, type UploadOptions, type User, type UserResponse, type ValidateInvitationResponse, type VoidResponse, type Webhook, type WebhookDelivery, WebhooksManager, createClient };
|
package/dist/index.js
CHANGED
|
@@ -451,10 +451,13 @@ var FluxbaseAuth = class {
|
|
|
451
451
|
*/
|
|
452
452
|
async sendMagicLink(email, options) {
|
|
453
453
|
return wrapAsync(async () => {
|
|
454
|
-
return await this.fetch.post(
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
454
|
+
return await this.fetch.post(
|
|
455
|
+
"/api/v1/auth/magiclink",
|
|
456
|
+
{
|
|
457
|
+
email,
|
|
458
|
+
redirect_to: options?.redirect_to
|
|
459
|
+
}
|
|
460
|
+
);
|
|
458
461
|
});
|
|
459
462
|
}
|
|
460
463
|
/**
|