@fluxbase/sdk 0.0.1-rc.17 → 0.0.1-rc.18

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.d.cts CHANGED
@@ -1,13 +1,11 @@
1
1
  /**
2
2
  * Core types for the Fluxbase SDK
3
3
  */
4
+ /**
5
+ * Client configuration options (Supabase-compatible)
6
+ * These options are passed as the third parameter to createClient()
7
+ */
4
8
  interface FluxbaseClientOptions {
5
- /**
6
- * Base URL of your Fluxbase instance
7
- * @example 'https://api.myapp.com'
8
- * @example 'http://localhost:8080'
9
- */
10
- url: string;
11
9
  /**
12
10
  * Authentication options
13
11
  */
@@ -1089,6 +1087,51 @@ interface EdgeFunctionExecution {
1089
1087
  executed_at: string;
1090
1088
  completed_at?: string;
1091
1089
  }
1090
+ /**
1091
+ * Base Supabase-compatible response type
1092
+ * Returns either { data, error: null } on success or { data: null, error } on failure
1093
+ */
1094
+ type SupabaseResponse<T> = {
1095
+ data: T;
1096
+ error: null;
1097
+ } | {
1098
+ data: null;
1099
+ error: Error;
1100
+ };
1101
+ /**
1102
+ * Response type for operations that don't return data (void operations)
1103
+ */
1104
+ type VoidResponse = {
1105
+ error: Error | null;
1106
+ };
1107
+ /**
1108
+ * Auth response with user and session (Supabase-compatible)
1109
+ * Note: This replaces the old AuthResponse interface for compatibility
1110
+ */
1111
+ type AuthResponseData = {
1112
+ user: User;
1113
+ session: AuthSession;
1114
+ };
1115
+ /**
1116
+ * Supabase-compatible auth response
1117
+ */
1118
+ type SupabaseAuthResponse = SupabaseResponse<AuthResponseData>;
1119
+ /**
1120
+ * User response (Supabase-compatible)
1121
+ */
1122
+ type UserResponse = SupabaseResponse<{
1123
+ user: User;
1124
+ }>;
1125
+ /**
1126
+ * Session response (Supabase-compatible)
1127
+ */
1128
+ type SessionResponse = SupabaseResponse<{
1129
+ session: AuthSession;
1130
+ }>;
1131
+ /**
1132
+ * Generic data response (Supabase-compatible)
1133
+ */
1134
+ type DataResponse<T> = SupabaseResponse<T>;
1092
1135
 
1093
1136
  /**
1094
1137
  * Realtime subscriptions using WebSockets
@@ -1309,33 +1352,33 @@ declare class FluxbaseAuth {
1309
1352
  * Sign in with email and password
1310
1353
  * Returns AuthSession if successful, or SignInWith2FAResponse if 2FA is required
1311
1354
  */
1312
- signIn(credentials: SignInCredentials): Promise<AuthSession | SignInWith2FAResponse>;
1355
+ signIn(credentials: SignInCredentials): Promise<SupabaseResponse<AuthSession | SignInWith2FAResponse>>;
1313
1356
  /**
1314
1357
  * Sign in with email and password
1315
1358
  * Alias for signIn() to maintain compatibility with common authentication patterns
1316
1359
  * Returns AuthSession if successful, or SignInWith2FAResponse if 2FA is required
1317
1360
  */
1318
- signInWithPassword(credentials: SignInCredentials): Promise<AuthSession | SignInWith2FAResponse>;
1361
+ signInWithPassword(credentials: SignInCredentials): Promise<SupabaseResponse<AuthSession | SignInWith2FAResponse>>;
1319
1362
  /**
1320
1363
  * Sign up with email and password
1321
1364
  */
1322
- signUp(credentials: SignUpCredentials): Promise<AuthSession>;
1365
+ signUp(credentials: SignUpCredentials): Promise<SupabaseAuthResponse>;
1323
1366
  /**
1324
1367
  * Sign out the current user
1325
1368
  */
1326
- signOut(): Promise<void>;
1369
+ signOut(): Promise<VoidResponse>;
1327
1370
  /**
1328
1371
  * Refresh the access token
1329
1372
  */
1330
- refreshToken(): Promise<AuthSession>;
1373
+ refreshToken(): Promise<SessionResponse>;
1331
1374
  /**
1332
1375
  * Get the current user from the server
1333
1376
  */
1334
- getCurrentUser(): Promise<User>;
1377
+ getCurrentUser(): Promise<UserResponse>;
1335
1378
  /**
1336
1379
  * Update the current user
1337
1380
  */
1338
- updateUser(data: Partial<Pick<User, "email" | "metadata">>): Promise<User>;
1381
+ updateUser(data: Partial<Pick<User, "email" | "metadata">>): Promise<UserResponse>;
1339
1382
  /**
1340
1383
  * Set the auth token manually
1341
1384
  */
@@ -1344,87 +1387,98 @@ declare class FluxbaseAuth {
1344
1387
  * Setup 2FA for the current user
1345
1388
  * Returns TOTP secret and QR code URL
1346
1389
  */
1347
- setup2FA(): Promise<TwoFactorSetupResponse>;
1390
+ setup2FA(): Promise<DataResponse<TwoFactorSetupResponse>>;
1348
1391
  /**
1349
1392
  * Enable 2FA after verifying the TOTP code
1350
1393
  * Returns backup codes that should be saved by the user
1351
1394
  */
1352
- enable2FA(code: string): Promise<TwoFactorEnableResponse>;
1395
+ enable2FA(code: string): Promise<DataResponse<TwoFactorEnableResponse>>;
1353
1396
  /**
1354
1397
  * Disable 2FA for the current user
1355
1398
  * Requires password confirmation
1356
1399
  */
1357
- disable2FA(password: string): Promise<{
1400
+ disable2FA(password: string): Promise<DataResponse<{
1358
1401
  success: boolean;
1359
1402
  message: string;
1360
- }>;
1403
+ }>>;
1361
1404
  /**
1362
1405
  * Check 2FA status for the current user
1363
1406
  */
1364
- get2FAStatus(): Promise<TwoFactorStatusResponse>;
1407
+ get2FAStatus(): Promise<DataResponse<TwoFactorStatusResponse>>;
1365
1408
  /**
1366
1409
  * Verify 2FA code during login
1367
1410
  * Call this after signIn returns requires_2fa: true
1368
1411
  */
1369
- verify2FA(request: TwoFactorVerifyRequest): Promise<AuthSession>;
1412
+ verify2FA(request: TwoFactorVerifyRequest): Promise<SupabaseAuthResponse>;
1370
1413
  /**
1371
1414
  * Send password reset email
1372
1415
  * Sends a password reset link to the provided email address
1373
1416
  * @param email - Email address to send reset link to
1374
1417
  */
1375
- sendPasswordReset(email: string): Promise<PasswordResetResponse>;
1418
+ sendPasswordReset(email: string): Promise<DataResponse<PasswordResetResponse>>;
1419
+ /**
1420
+ * Supabase-compatible alias for sendPasswordReset()
1421
+ * @param email - Email address to send reset link to
1422
+ * @param _options - Optional redirect configuration (currently not used)
1423
+ */
1424
+ resetPasswordForEmail(email: string, _options?: {
1425
+ redirectTo?: string;
1426
+ }): Promise<DataResponse<PasswordResetResponse>>;
1376
1427
  /**
1377
1428
  * Verify password reset token
1378
1429
  * Check if a password reset token is valid before allowing password reset
1379
1430
  * @param token - Password reset token to verify
1380
1431
  */
1381
- verifyResetToken(token: string): Promise<VerifyResetTokenResponse>;
1432
+ verifyResetToken(token: string): Promise<DataResponse<VerifyResetTokenResponse>>;
1382
1433
  /**
1383
1434
  * Reset password with token
1384
1435
  * Complete the password reset process with a valid token
1385
1436
  * @param token - Password reset token
1386
1437
  * @param newPassword - New password to set
1387
1438
  */
1388
- resetPassword(token: string, newPassword: string): Promise<ResetPasswordResponse>;
1439
+ resetPassword(token: string, newPassword: string): Promise<DataResponse<ResetPasswordResponse>>;
1389
1440
  /**
1390
1441
  * Send magic link for passwordless authentication
1391
1442
  * @param email - Email address to send magic link to
1392
1443
  * @param options - Optional configuration for magic link
1393
1444
  */
1394
- sendMagicLink(email: string, options?: MagicLinkOptions): Promise<MagicLinkResponse>;
1445
+ sendMagicLink(email: string, options?: MagicLinkOptions): Promise<DataResponse<MagicLinkResponse>>;
1395
1446
  /**
1396
1447
  * Verify magic link token and sign in
1397
1448
  * @param token - Magic link token from email
1398
1449
  */
1399
- verifyMagicLink(token: string): Promise<AuthSession>;
1450
+ verifyMagicLink(token: string): Promise<SupabaseAuthResponse>;
1400
1451
  /**
1401
1452
  * Sign in anonymously
1402
1453
  * Creates a temporary anonymous user session
1403
1454
  */
1404
- signInAnonymously(): Promise<AuthSession>;
1455
+ signInAnonymously(): Promise<SupabaseAuthResponse>;
1405
1456
  /**
1406
1457
  * Get list of enabled OAuth providers
1407
1458
  */
1408
- getOAuthProviders(): Promise<OAuthProvidersResponse>;
1459
+ getOAuthProviders(): Promise<DataResponse<OAuthProvidersResponse>>;
1409
1460
  /**
1410
1461
  * Get OAuth authorization URL for a provider
1411
1462
  * @param provider - OAuth provider name (e.g., 'google', 'github')
1412
1463
  * @param options - Optional OAuth configuration
1413
1464
  */
1414
- getOAuthUrl(provider: string, options?: OAuthOptions): Promise<OAuthUrlResponse>;
1465
+ getOAuthUrl(provider: string, options?: OAuthOptions): Promise<DataResponse<OAuthUrlResponse>>;
1415
1466
  /**
1416
1467
  * Exchange OAuth authorization code for session
1417
1468
  * This is typically called in your OAuth callback handler
1418
1469
  * @param code - Authorization code from OAuth callback
1419
1470
  */
1420
- exchangeCodeForSession(code: string): Promise<AuthSession>;
1471
+ exchangeCodeForSession(code: string): Promise<SupabaseAuthResponse>;
1421
1472
  /**
1422
1473
  * Convenience method to initiate OAuth sign-in
1423
1474
  * Redirects the user to the OAuth provider's authorization page
1424
1475
  * @param provider - OAuth provider name (e.g., 'google', 'github')
1425
1476
  * @param options - Optional OAuth configuration
1426
1477
  */
1427
- signInWithOAuth(provider: string, options?: OAuthOptions): Promise<void>;
1478
+ signInWithOAuth(provider: string, options?: OAuthOptions): Promise<DataResponse<{
1479
+ provider: string;
1480
+ url: string;
1481
+ }>>;
1428
1482
  /**
1429
1483
  * Internal: Set the session and persist it
1430
1484
  */
@@ -3620,7 +3674,7 @@ declare class FluxbaseAdmin {
3620
3674
  * }
3621
3675
  * ```
3622
3676
  */
3623
- getSetupStatus(): Promise<AdminSetupStatusResponse>;
3677
+ getSetupStatus(): Promise<DataResponse<AdminSetupStatusResponse>>;
3624
3678
  /**
3625
3679
  * Perform initial admin setup
3626
3680
  *
@@ -3644,7 +3698,7 @@ declare class FluxbaseAdmin {
3644
3698
  * localStorage.setItem('admin_token', response.access_token);
3645
3699
  * ```
3646
3700
  */
3647
- setup(request: AdminSetupRequest): Promise<AdminAuthResponse>;
3701
+ setup(request: AdminSetupRequest): Promise<DataResponse<AdminAuthResponse>>;
3648
3702
  /**
3649
3703
  * Admin login
3650
3704
  *
@@ -3665,7 +3719,7 @@ declare class FluxbaseAdmin {
3665
3719
  * console.log('Logged in as:', response.user.email);
3666
3720
  * ```
3667
3721
  */
3668
- login(request: AdminLoginRequest): Promise<AdminAuthResponse>;
3722
+ login(request: AdminLoginRequest): Promise<DataResponse<AdminAuthResponse>>;
3669
3723
  /**
3670
3724
  * Refresh admin access token
3671
3725
  *
@@ -3682,7 +3736,7 @@ declare class FluxbaseAdmin {
3682
3736
  * localStorage.setItem('admin_refresh_token', response.refresh_token);
3683
3737
  * ```
3684
3738
  */
3685
- refreshToken(request: AdminRefreshRequest): Promise<AdminRefreshResponse>;
3739
+ refreshToken(request: AdminRefreshRequest): Promise<DataResponse<AdminRefreshResponse>>;
3686
3740
  /**
3687
3741
  * Admin logout
3688
3742
  *
@@ -3694,7 +3748,7 @@ declare class FluxbaseAdmin {
3694
3748
  * localStorage.removeItem('admin_token');
3695
3749
  * ```
3696
3750
  */
3697
- logout(): Promise<void>;
3751
+ logout(): Promise<VoidResponse>;
3698
3752
  /**
3699
3753
  * Get current admin user information
3700
3754
  *
@@ -3707,7 +3761,7 @@ declare class FluxbaseAdmin {
3707
3761
  * console.log('Role:', user.role);
3708
3762
  * ```
3709
3763
  */
3710
- me(): Promise<AdminMeResponse>;
3764
+ me(): Promise<DataResponse<AdminMeResponse>>;
3711
3765
  /**
3712
3766
  * List all users
3713
3767
  *
@@ -3728,7 +3782,7 @@ declare class FluxbaseAdmin {
3728
3782
  * });
3729
3783
  * ```
3730
3784
  */
3731
- listUsers(options?: ListUsersOptions): Promise<ListUsersResponse>;
3785
+ listUsers(options?: ListUsersOptions): Promise<DataResponse<ListUsersResponse>>;
3732
3786
  /**
3733
3787
  * Get a user by ID
3734
3788
  *
@@ -3749,7 +3803,7 @@ declare class FluxbaseAdmin {
3749
3803
  * console.log('Last login:', dashboardUser.last_login_at);
3750
3804
  * ```
3751
3805
  */
3752
- getUserById(userId: string, type?: "app" | "dashboard"): Promise<EnrichedUser>;
3806
+ getUserById(userId: string, type?: "app" | "dashboard"): Promise<DataResponse<EnrichedUser>>;
3753
3807
  /**
3754
3808
  * Invite a new user
3755
3809
  *
@@ -3771,7 +3825,7 @@ declare class FluxbaseAdmin {
3771
3825
  * console.log('Invitation link:', response.invitation_link);
3772
3826
  * ```
3773
3827
  */
3774
- inviteUser(request: InviteUserRequest, type?: "app" | "dashboard"): Promise<InviteUserResponse>;
3828
+ inviteUser(request: InviteUserRequest, type?: "app" | "dashboard"): Promise<DataResponse<InviteUserResponse>>;
3775
3829
  /**
3776
3830
  * Delete a user
3777
3831
  *
@@ -3787,7 +3841,7 @@ declare class FluxbaseAdmin {
3787
3841
  * console.log('User deleted');
3788
3842
  * ```
3789
3843
  */
3790
- deleteUser(userId: string, type?: "app" | "dashboard"): Promise<DeleteUserResponse>;
3844
+ deleteUser(userId: string, type?: "app" | "dashboard"): Promise<DataResponse<DeleteUserResponse>>;
3791
3845
  /**
3792
3846
  * Update user role
3793
3847
  *
@@ -3804,7 +3858,7 @@ declare class FluxbaseAdmin {
3804
3858
  * console.log('User role updated:', user.role);
3805
3859
  * ```
3806
3860
  */
3807
- updateUserRole(userId: string, role: string, type?: "app" | "dashboard"): Promise<EnrichedUser>;
3861
+ updateUserRole(userId: string, role: string, type?: "app" | "dashboard"): Promise<DataResponse<EnrichedUser>>;
3808
3862
  /**
3809
3863
  * Reset user password
3810
3864
  *
@@ -3820,7 +3874,7 @@ declare class FluxbaseAdmin {
3820
3874
  * console.log(response.message);
3821
3875
  * ```
3822
3876
  */
3823
- resetUserPassword(userId: string, type?: "app" | "dashboard"): Promise<ResetUserPasswordResponse>;
3877
+ resetUserPassword(userId: string, type?: "app" | "dashboard"): Promise<DataResponse<ResetUserPasswordResponse>>;
3824
3878
  }
3825
3879
 
3826
3880
  /**
@@ -4173,7 +4227,9 @@ declare class QueryBuilder<T = unknown> implements PromiseLike<PostgrestResponse
4173
4227
  * Main Fluxbase client class
4174
4228
  * @category Client
4175
4229
  */
4176
- declare class FluxbaseClient {
4230
+ declare class FluxbaseClient<Database = any, _SchemaName extends string & keyof Database = any> {
4231
+ protected fluxbaseUrl: string;
4232
+ protected fluxbaseKey: string;
4177
4233
  /** Internal HTTP client for making requests */
4178
4234
  private fetch;
4179
4235
  /** Authentication module for user management */
@@ -4190,9 +4246,21 @@ declare class FluxbaseClient {
4190
4246
  management: FluxbaseManagement;
4191
4247
  /**
4192
4248
  * Create a new Fluxbase client instance
4193
- * @param options - Client configuration options
4249
+ *
4250
+ * @param fluxbaseUrl - The URL of your Fluxbase instance
4251
+ * @param fluxbaseKey - The anon key (JWT token with "anon" role). Generate using scripts/generate-keys.sh
4252
+ * @param options - Additional client configuration options
4253
+ *
4254
+ * @example
4255
+ * ```typescript
4256
+ * const client = new FluxbaseClient(
4257
+ * 'http://localhost:8080',
4258
+ * 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...', // Anon JWT token
4259
+ * { timeout: 30000 }
4260
+ * )
4261
+ * ```
4194
4262
  */
4195
- constructor(options: FluxbaseClientOptions);
4263
+ constructor(fluxbaseUrl: string, fluxbaseKey: string, options?: FluxbaseClientOptions);
4196
4264
  /**
4197
4265
  * Create a query builder for a database table
4198
4266
  *
@@ -4312,31 +4380,41 @@ declare class FluxbaseClient {
4312
4380
  get http(): FluxbaseFetch;
4313
4381
  }
4314
4382
  /**
4315
- * Create a new Fluxbase client instance
4383
+ * Create a new Fluxbase client instance (Supabase-compatible)
4316
4384
  *
4317
- * This is the recommended way to initialize the Fluxbase SDK.
4385
+ * This function signature is identical to Supabase's createClient, making migration seamless.
4318
4386
  *
4319
- * @param options - Client configuration options
4320
- * @returns A configured Fluxbase client instance
4387
+ * @param fluxbaseUrl - The URL of your Fluxbase instance
4388
+ * @param fluxbaseKey - The anon key (JWT token with "anon" role). Generate using: `./scripts/generate-keys.sh` (option 3)
4389
+ * @param options - Optional client configuration
4390
+ * @returns A configured Fluxbase client instance with full TypeScript support
4321
4391
  *
4322
4392
  * @example
4323
4393
  * ```typescript
4324
4394
  * import { createClient } from '@fluxbase/sdk'
4325
4395
  *
4326
- * const client = createClient({
4327
- * url: 'http://localhost:8080',
4328
- * auth: {
4329
- * token: 'your-jwt-token',
4330
- * autoRefresh: true,
4331
- * persist: true
4332
- * },
4333
- * timeout: 30000,
4334
- * debug: false
4335
- * })
4396
+ * // Initialize with anon key (identical to Supabase)
4397
+ * const client = createClient(
4398
+ * 'http://localhost:8080',
4399
+ * 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...' // Anon JWT token
4400
+ * )
4401
+ *
4402
+ * // With additional options
4403
+ * const client = createClient(
4404
+ * 'http://localhost:8080',
4405
+ * 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...',
4406
+ * { timeout: 30000, debug: true }
4407
+ * )
4408
+ *
4409
+ * // With TypeScript database types
4410
+ * const client = createClient<Database>(
4411
+ * 'http://localhost:8080',
4412
+ * 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'
4413
+ * )
4336
4414
  * ```
4337
4415
  *
4338
4416
  * @category Client
4339
4417
  */
4340
- declare function createClient(options: FluxbaseClientOptions): FluxbaseClient;
4418
+ declare function createClient<Database = any, SchemaName extends string & keyof Database = any>(fluxbaseUrl: string, fluxbaseKey: string, options?: FluxbaseClientOptions): FluxbaseClient<Database, SchemaName>;
4341
4419
 
4342
- 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 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 SignInCredentials, type SignInWith2FAResponse, type SignUpCredentials, type SignedUrlOptions, type StartImpersonationResponse, type StopImpersonationResponse, StorageBucket, type StorageObject, 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 ValidateInvitationResponse, type Webhook, type WebhookDelivery, WebhooksManager, createClient };
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 };