@fluxbase/sdk 2026.1.8 → 2026.1.9-rc.1
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 +230 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +247 -3
- package/dist/index.d.ts +247 -3
- package/dist/index.js +230 -23
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -3213,6 +3213,73 @@ interface BranchPoolStats {
|
|
|
3213
3213
|
/** When the pool was created */
|
|
3214
3214
|
created_at: string;
|
|
3215
3215
|
}
|
|
3216
|
+
/**
|
|
3217
|
+
* Request to enable realtime on a table
|
|
3218
|
+
*/
|
|
3219
|
+
interface EnableRealtimeRequest {
|
|
3220
|
+
/** Schema name (default: 'public') */
|
|
3221
|
+
schema: string;
|
|
3222
|
+
/** Table name */
|
|
3223
|
+
table: string;
|
|
3224
|
+
/** Events to track (default: ['INSERT', 'UPDATE', 'DELETE']) */
|
|
3225
|
+
events?: ("INSERT" | "UPDATE" | "DELETE")[];
|
|
3226
|
+
/** Columns to exclude from notifications */
|
|
3227
|
+
exclude?: string[];
|
|
3228
|
+
}
|
|
3229
|
+
/**
|
|
3230
|
+
* Response after enabling realtime on a table
|
|
3231
|
+
*/
|
|
3232
|
+
interface EnableRealtimeResponse {
|
|
3233
|
+
/** Schema name */
|
|
3234
|
+
schema: string;
|
|
3235
|
+
/** Table name */
|
|
3236
|
+
table: string;
|
|
3237
|
+
/** Events being tracked */
|
|
3238
|
+
events: string[];
|
|
3239
|
+
/** Name of the created trigger */
|
|
3240
|
+
trigger_name: string;
|
|
3241
|
+
/** Columns excluded from notifications */
|
|
3242
|
+
exclude?: string[];
|
|
3243
|
+
}
|
|
3244
|
+
/**
|
|
3245
|
+
* Status of realtime for a table
|
|
3246
|
+
*/
|
|
3247
|
+
interface RealtimeTableStatus {
|
|
3248
|
+
/** Registry ID */
|
|
3249
|
+
id?: number;
|
|
3250
|
+
/** Schema name */
|
|
3251
|
+
schema: string;
|
|
3252
|
+
/** Table name */
|
|
3253
|
+
table: string;
|
|
3254
|
+
/** Whether realtime is enabled */
|
|
3255
|
+
realtime_enabled: boolean;
|
|
3256
|
+
/** Events being tracked */
|
|
3257
|
+
events: string[];
|
|
3258
|
+
/** Columns excluded from notifications */
|
|
3259
|
+
excluded_columns?: string[];
|
|
3260
|
+
/** When realtime was enabled */
|
|
3261
|
+
created_at?: string;
|
|
3262
|
+
/** When configuration was last updated */
|
|
3263
|
+
updated_at?: string;
|
|
3264
|
+
}
|
|
3265
|
+
/**
|
|
3266
|
+
* Response listing realtime-enabled tables
|
|
3267
|
+
*/
|
|
3268
|
+
interface ListRealtimeTablesResponse {
|
|
3269
|
+
/** List of tables with realtime enabled */
|
|
3270
|
+
tables: RealtimeTableStatus[];
|
|
3271
|
+
/** Total count */
|
|
3272
|
+
count: number;
|
|
3273
|
+
}
|
|
3274
|
+
/**
|
|
3275
|
+
* Request to update realtime configuration
|
|
3276
|
+
*/
|
|
3277
|
+
interface UpdateRealtimeConfigRequest {
|
|
3278
|
+
/** Events to track */
|
|
3279
|
+
events?: ("INSERT" | "UPDATE" | "DELETE")[];
|
|
3280
|
+
/** Columns to exclude from notifications */
|
|
3281
|
+
exclude?: string[];
|
|
3282
|
+
}
|
|
3216
3283
|
/**
|
|
3217
3284
|
* @deprecated Use FluxbaseResponse instead
|
|
3218
3285
|
*/
|
|
@@ -3235,8 +3302,8 @@ declare class RealtimeChannel {
|
|
|
3235
3302
|
private presenceCallbacks;
|
|
3236
3303
|
private broadcastCallbacks;
|
|
3237
3304
|
private executionLogCallbacks;
|
|
3238
|
-
private
|
|
3239
|
-
private
|
|
3305
|
+
private subscriptionConfigs;
|
|
3306
|
+
private subscriptionIds;
|
|
3240
3307
|
private executionLogConfig;
|
|
3241
3308
|
private _presenceState;
|
|
3242
3309
|
private myPresenceKey;
|
|
@@ -9319,6 +9386,179 @@ declare class FluxbaseAdminStorage {
|
|
|
9319
9386
|
generateSignedUrl(bucket: string, key: string, expiresIn: number): Promise<DataResponse<SignedUrlResponse>>;
|
|
9320
9387
|
}
|
|
9321
9388
|
|
|
9389
|
+
/**
|
|
9390
|
+
* Realtime Admin Manager
|
|
9391
|
+
*
|
|
9392
|
+
* Provides methods for enabling and managing realtime subscriptions on database tables.
|
|
9393
|
+
* When enabled, changes to a table (INSERT, UPDATE, DELETE) are automatically broadcast
|
|
9394
|
+
* to WebSocket subscribers.
|
|
9395
|
+
*
|
|
9396
|
+
* @example
|
|
9397
|
+
* ```typescript
|
|
9398
|
+
* const realtime = client.admin.realtime
|
|
9399
|
+
*
|
|
9400
|
+
* // Enable realtime on a table
|
|
9401
|
+
* await realtime.enableRealtime('products')
|
|
9402
|
+
*
|
|
9403
|
+
* // Enable with options
|
|
9404
|
+
* await realtime.enableRealtime('orders', {
|
|
9405
|
+
* events: ['INSERT', 'UPDATE'],
|
|
9406
|
+
* exclude: ['internal_notes', 'raw_data']
|
|
9407
|
+
* })
|
|
9408
|
+
*
|
|
9409
|
+
* // List all realtime-enabled tables
|
|
9410
|
+
* const { tables } = await realtime.listTables()
|
|
9411
|
+
*
|
|
9412
|
+
* // Check status of a specific table
|
|
9413
|
+
* const status = await realtime.getStatus('public', 'products')
|
|
9414
|
+
*
|
|
9415
|
+
* // Disable realtime
|
|
9416
|
+
* await realtime.disableRealtime('public', 'products')
|
|
9417
|
+
* ```
|
|
9418
|
+
*/
|
|
9419
|
+
declare class FluxbaseAdminRealtime {
|
|
9420
|
+
private fetch;
|
|
9421
|
+
constructor(fetch: FluxbaseFetch);
|
|
9422
|
+
/**
|
|
9423
|
+
* Enable realtime on a table
|
|
9424
|
+
*
|
|
9425
|
+
* Creates the necessary database triggers to broadcast changes to WebSocket subscribers.
|
|
9426
|
+
* Also sets REPLICA IDENTITY FULL to include old values in UPDATE/DELETE events.
|
|
9427
|
+
*
|
|
9428
|
+
* @param table - Table name to enable realtime on
|
|
9429
|
+
* @param options - Optional configuration
|
|
9430
|
+
* @returns Promise resolving to EnableRealtimeResponse
|
|
9431
|
+
*
|
|
9432
|
+
* @example
|
|
9433
|
+
* ```typescript
|
|
9434
|
+
* // Enable realtime on products table (all events)
|
|
9435
|
+
* await client.admin.realtime.enableRealtime('products')
|
|
9436
|
+
*
|
|
9437
|
+
* // Enable on a specific schema
|
|
9438
|
+
* await client.admin.realtime.enableRealtime('orders', {
|
|
9439
|
+
* schema: 'sales'
|
|
9440
|
+
* })
|
|
9441
|
+
*
|
|
9442
|
+
* // Enable specific events only
|
|
9443
|
+
* await client.admin.realtime.enableRealtime('audit_log', {
|
|
9444
|
+
* events: ['INSERT'] // Only broadcast inserts
|
|
9445
|
+
* })
|
|
9446
|
+
*
|
|
9447
|
+
* // Exclude large columns from notifications
|
|
9448
|
+
* await client.admin.realtime.enableRealtime('posts', {
|
|
9449
|
+
* exclude: ['content', 'raw_html'] // Skip these in payload
|
|
9450
|
+
* })
|
|
9451
|
+
* ```
|
|
9452
|
+
*/
|
|
9453
|
+
enableRealtime(table: string, options?: {
|
|
9454
|
+
schema?: string;
|
|
9455
|
+
events?: ("INSERT" | "UPDATE" | "DELETE")[];
|
|
9456
|
+
exclude?: string[];
|
|
9457
|
+
}): Promise<EnableRealtimeResponse>;
|
|
9458
|
+
/**
|
|
9459
|
+
* Disable realtime on a table
|
|
9460
|
+
*
|
|
9461
|
+
* Removes the realtime trigger from a table. Existing subscribers will stop
|
|
9462
|
+
* receiving updates for this table.
|
|
9463
|
+
*
|
|
9464
|
+
* @param schema - Schema name
|
|
9465
|
+
* @param table - Table name
|
|
9466
|
+
* @returns Promise resolving to success message
|
|
9467
|
+
*
|
|
9468
|
+
* @example
|
|
9469
|
+
* ```typescript
|
|
9470
|
+
* await client.admin.realtime.disableRealtime('public', 'products')
|
|
9471
|
+
* console.log('Realtime disabled')
|
|
9472
|
+
* ```
|
|
9473
|
+
*/
|
|
9474
|
+
disableRealtime(schema: string, table: string): Promise<{
|
|
9475
|
+
success: boolean;
|
|
9476
|
+
message: string;
|
|
9477
|
+
}>;
|
|
9478
|
+
/**
|
|
9479
|
+
* List all realtime-enabled tables
|
|
9480
|
+
*
|
|
9481
|
+
* Returns a list of all tables that have realtime enabled, along with their
|
|
9482
|
+
* configuration (events, excluded columns, etc.).
|
|
9483
|
+
*
|
|
9484
|
+
* @param options - Optional filter options
|
|
9485
|
+
* @returns Promise resolving to ListRealtimeTablesResponse
|
|
9486
|
+
*
|
|
9487
|
+
* @example
|
|
9488
|
+
* ```typescript
|
|
9489
|
+
* // List all enabled tables
|
|
9490
|
+
* const { tables, count } = await client.admin.realtime.listTables()
|
|
9491
|
+
* console.log(`${count} tables have realtime enabled`)
|
|
9492
|
+
*
|
|
9493
|
+
* tables.forEach(t => {
|
|
9494
|
+
* console.log(`${t.schema}.${t.table}: ${t.events.join(', ')}`)
|
|
9495
|
+
* })
|
|
9496
|
+
*
|
|
9497
|
+
* // Include disabled tables
|
|
9498
|
+
* const all = await client.admin.realtime.listTables({ includeDisabled: true })
|
|
9499
|
+
* ```
|
|
9500
|
+
*/
|
|
9501
|
+
listTables(options?: {
|
|
9502
|
+
includeDisabled?: boolean;
|
|
9503
|
+
}): Promise<ListRealtimeTablesResponse>;
|
|
9504
|
+
/**
|
|
9505
|
+
* Get realtime status for a specific table
|
|
9506
|
+
*
|
|
9507
|
+
* Returns the realtime configuration for a table, including whether it's enabled,
|
|
9508
|
+
* which events are tracked, and which columns are excluded.
|
|
9509
|
+
*
|
|
9510
|
+
* @param schema - Schema name
|
|
9511
|
+
* @param table - Table name
|
|
9512
|
+
* @returns Promise resolving to RealtimeTableStatus
|
|
9513
|
+
*
|
|
9514
|
+
* @example
|
|
9515
|
+
* ```typescript
|
|
9516
|
+
* const status = await client.admin.realtime.getStatus('public', 'products')
|
|
9517
|
+
*
|
|
9518
|
+
* if (status.realtime_enabled) {
|
|
9519
|
+
* console.log('Events:', status.events.join(', '))
|
|
9520
|
+
* console.log('Excluded:', status.excluded_columns?.join(', ') || 'none')
|
|
9521
|
+
* } else {
|
|
9522
|
+
* console.log('Realtime not enabled')
|
|
9523
|
+
* }
|
|
9524
|
+
* ```
|
|
9525
|
+
*/
|
|
9526
|
+
getStatus(schema: string, table: string): Promise<RealtimeTableStatus>;
|
|
9527
|
+
/**
|
|
9528
|
+
* Update realtime configuration for a table
|
|
9529
|
+
*
|
|
9530
|
+
* Modifies the events or excluded columns for a realtime-enabled table
|
|
9531
|
+
* without recreating the trigger.
|
|
9532
|
+
*
|
|
9533
|
+
* @param schema - Schema name
|
|
9534
|
+
* @param table - Table name
|
|
9535
|
+
* @param config - New configuration
|
|
9536
|
+
* @returns Promise resolving to success message
|
|
9537
|
+
*
|
|
9538
|
+
* @example
|
|
9539
|
+
* ```typescript
|
|
9540
|
+
* // Change which events are tracked
|
|
9541
|
+
* await client.admin.realtime.updateConfig('public', 'products', {
|
|
9542
|
+
* events: ['INSERT', 'UPDATE'] // Stop tracking deletes
|
|
9543
|
+
* })
|
|
9544
|
+
*
|
|
9545
|
+
* // Update excluded columns
|
|
9546
|
+
* await client.admin.realtime.updateConfig('public', 'posts', {
|
|
9547
|
+
* exclude: ['raw_content', 'search_vector']
|
|
9548
|
+
* })
|
|
9549
|
+
*
|
|
9550
|
+
* // Clear excluded columns
|
|
9551
|
+
* await client.admin.realtime.updateConfig('public', 'posts', {
|
|
9552
|
+
* exclude: [] // Include all columns again
|
|
9553
|
+
* })
|
|
9554
|
+
* ```
|
|
9555
|
+
*/
|
|
9556
|
+
updateConfig(schema: string, table: string, config: UpdateRealtimeConfigRequest): Promise<{
|
|
9557
|
+
success: boolean;
|
|
9558
|
+
message: string;
|
|
9559
|
+
}>;
|
|
9560
|
+
}
|
|
9561
|
+
|
|
9322
9562
|
/**
|
|
9323
9563
|
* Admin client for managing Fluxbase instance
|
|
9324
9564
|
*/
|
|
@@ -9373,6 +9613,10 @@ declare class FluxbaseAdmin {
|
|
|
9373
9613
|
* Storage manager for bucket and object management (list, create, delete, signed URLs)
|
|
9374
9614
|
*/
|
|
9375
9615
|
storage: FluxbaseAdminStorage;
|
|
9616
|
+
/**
|
|
9617
|
+
* Realtime manager for enabling/disabling realtime on tables
|
|
9618
|
+
*/
|
|
9619
|
+
realtime: FluxbaseAdminRealtime;
|
|
9376
9620
|
constructor(fetch: FluxbaseFetch);
|
|
9377
9621
|
/**
|
|
9378
9622
|
* Set admin authentication token
|
|
@@ -11664,4 +11908,4 @@ declare function isBoolean(value: unknown): value is boolean;
|
|
|
11664
11908
|
*/
|
|
11665
11909
|
declare function assertType<T>(value: unknown, validator: (v: unknown) => v is T, errorMessage?: string): asserts value is T;
|
|
11666
11910
|
|
|
11667
|
-
export { type AIChatClientMessage, type AIChatEvent, type AIChatEventType, type AIChatMessageRole, type AIChatOptions, type AIChatServerMessage, type AIChatbot, type AIChatbotSummary, type AIConversation, type AIConversationMessage, type AIProvider, type AIProviderType, type AIUsageStats, type AIUserConversationDetail, type AIUserConversationSummary, type AIUserMessage, type AIUserQueryResult, type AIUserUsageStats, type APIKey, APIKeysManager, type AcceptInvitationRequest, type AcceptInvitationResponse, type AdminAuthResponse, type AdminBucket, type AdminListBucketsResponse, type AdminListObjectsResponse, type AdminLoginRequest, type AdminMeResponse, type AdminRefreshRequest, type AdminRefreshResponse, type AdminSetupRequest, type AdminSetupStatusResponse, type AdminStorageObject, type AdminUser, type AppSettings, AppSettingsManager, type ApplyMigrationRequest, type ApplyPendingRequest, type AuthConfig, type AuthResponse, type AuthResponseData, type AuthSession, type AuthSettings, AuthSettingsManager, type AuthenticationSettings, type Branch, type BranchActivity, type BranchPoolStats, type BranchStatus, type BranchType, type BroadcastCallback, type BroadcastMessage, type BundleOptions, type BundleResult, type CaptchaConfig, type CaptchaProvider, type ChatbotSpec, type ChunkedUploadSession, type ClientKey, ClientKeysManager, type Column, type CreateAIProviderRequest, type CreateAPIKeyRequest, type CreateAPIKeyResponse, type CreateBranchOptions, type CreateClientKeyRequest, type CreateClientKeyResponse, type CreateColumnRequest, type CreateFunctionRequest, type CreateInvitationRequest, type CreateInvitationResponse, type CreateMigrationRequest, type CreateOAuthProviderRequest, type CreateOAuthProviderResponse, type CreateSchemaRequest, type CreateSchemaResponse, type CreateTableRequest, type CreateTableResponse, type CreateUserSettingRequest, type CreateWebhookRequest, DDLManager, type DataCloneMode, type DataResponse, type DeleteAPIKeyResponse, type DeleteClientKeyResponse, type DeleteOAuthProviderResponse, type DeleteTableResponse, type DeleteUserResponse, type DeleteWebhookResponse, type DownloadOptions, type DownloadProgress, type EdgeFunction, type EdgeFunctionExecution, type EmailProviderSettings, type EmailSettingOverride, type EmailSettings, EmailSettingsManager, type EmailTemplate, EmailTemplateManager, type EmailTemplateType, type EmbedRequest, type EmbedResponse, type EnrichedUser, type ExecutionLog, type ExecutionLogCallback, type ExecutionLogConfig, type ExecutionLogEvent, type ExecutionLogLevel, ExecutionLogsChannel, type ExecutionType, type FeatureSettings, type FileObject, type FilterOperator, FluxbaseAI, FluxbaseAIChat, FluxbaseAdmin, FluxbaseAdminAI, FluxbaseAdminFunctions, FluxbaseAdminJobs, FluxbaseAdminMigrations, FluxbaseAdminRPC, FluxbaseAdminStorage, FluxbaseAuth, type FluxbaseAuthResponse, FluxbaseBranching, FluxbaseClient, type FluxbaseClientOptions, type FluxbaseError, FluxbaseFetch, FluxbaseFunctions, FluxbaseGraphQL, FluxbaseJobs, FluxbaseManagement, FluxbaseOAuth, FluxbaseRPC, FluxbaseRealtime, type FluxbaseResponse, FluxbaseSettings, FluxbaseStorage, FluxbaseVector, type FunctionInvokeOptions, type FunctionSpec, type GetImpersonationResponse, type GraphQLError, type GraphQLErrorLocation, type GraphQLRequestOptions, type GraphQLResponse, type HealthResponse, type HttpMethod, type ImageFitMode, type ImageFormat, type ImpersonateAnonRequest, type ImpersonateServiceRequest, type ImpersonateUserRequest, ImpersonationManager, type ImpersonationSession, type ImpersonationTargetUser, type ImpersonationType, type IntrospectionDirective, type IntrospectionEnumValue, type IntrospectionField, type IntrospectionInputValue, type IntrospectionSchema, type IntrospectionType, type IntrospectionTypeRef, type Invitation, InvitationsManager, type InviteUserRequest, type InviteUserResponse, type ListAPIKeysResponse, type ListBranchesOptions, type ListBranchesResponse, type ListClientKeysResponse, type ListConversationsOptions, type ListConversationsResult, 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 Migration, type MigrationExecution, type OAuthLogoutOptions, type OAuthLogoutResponse, type OAuthProvider, OAuthProviderManager, type OAuthProviderPublic, type OrderBy, type OrderDirection, type PostgresChangesConfig, type PostgrestError, type PostgrestResponse, type PresenceCallback, type PresenceState, QueryBuilder, type QueryFilter, type RPCExecution, type RPCExecutionFilters, type RPCExecutionLog, type RPCExecutionStatus, type RPCInvokeResponse, type RPCProcedure, type RPCProcedureSpec, type RPCProcedureSummary, type RealtimeBroadcastPayload, type RealtimeCallback, type RealtimeChangePayload, RealtimeChannel, type RealtimeChannelConfig, type RealtimeMessage, type RealtimePostgresChangesPayload, type RealtimePresencePayload, type RequestOptions, type ResetUserPasswordResponse, type ResumableDownloadData, type ResumableDownloadOptions, type ResumableUploadOptions, type ResumableUploadProgress, type RevokeAPIKeyResponse, type RevokeClientKeyResponse, type RevokeInvitationResponse, type RollbackMigrationRequest, type SAMLLoginOptions, type SAMLLoginResponse, type SAMLProvider, type SAMLProvidersResponse, type SAMLSession, type SESSettings, type SMTPSettings, type Schema, SchemaQueryBuilder, type SecuritySettings, type SendEmailRequest, type SendGridSettings, type SessionResponse, SettingsClient, type SignInCredentials, type SignInWith2FAResponse, type SignUpCredentials, type SignedUrlOptions, type SignedUrlResponse, type StartImpersonationResponse, type StopImpersonationResponse, StorageBucket, type StorageObject, type StreamDownloadData, type StreamUploadOptions, type SupabaseAuthResponse, type SupabaseResponse, type SyncChatbotsOptions, type SyncChatbotsResult, type SyncError, type SyncFunctionsOptions, type SyncFunctionsResult, type SyncMigrationsOptions, type SyncMigrationsResult, type SyncRPCOptions, type SyncRPCResult, type SystemSetting, SystemSettingsManager, type Table, type TestEmailSettingsResponse, type TestEmailTemplateRequest, type TestWebhookResponse, type TransformOptions, type TwoFactorEnableResponse, type TwoFactorSetupResponse, type TwoFactorStatusResponse, type TwoFactorVerifyRequest, type UpdateAIProviderRequest, type UpdateAPIKeyRequest, type UpdateAppSettingsRequest, type UpdateAuthSettingsRequest, type UpdateAuthSettingsResponse, type UpdateClientKeyRequest, type UpdateConversationOptions, type UpdateEmailProviderSettingsRequest, type UpdateEmailTemplateRequest, type UpdateFunctionRequest, type UpdateMigrationRequest, type UpdateOAuthProviderRequest, type UpdateOAuthProviderResponse, type UpdateRPCProcedureRequest, type UpdateSystemSettingRequest, type UpdateUserAttributes, type UpdateUserRoleRequest, type UpdateWebhookRequest, type UploadOptions, type UploadProgress, type UpsertOptions, type User, type UserResponse, type UserSetting, type UserSettingWithSource, type ValidateInvitationResponse, type VectorMetric, type VectorOrderOptions, type VectorSearchOptions, type VectorSearchResult, type VoidResponse, type WeakPassword, type Webhook, type WebhookDelivery, WebhooksManager, assertType, bundleCode, createClient, denoExternalPlugin, hasPostgrestError, isArray, isAuthError, isAuthSuccess, isBoolean, isFluxbaseError, isFluxbaseSuccess, isNumber, isObject, isPostgrestSuccess, isString, loadImportMap };
|
|
11911
|
+
export { type AIChatClientMessage, type AIChatEvent, type AIChatEventType, type AIChatMessageRole, type AIChatOptions, type AIChatServerMessage, type AIChatbot, type AIChatbotSummary, type AIConversation, type AIConversationMessage, type AIProvider, type AIProviderType, type AIUsageStats, type AIUserConversationDetail, type AIUserConversationSummary, type AIUserMessage, type AIUserQueryResult, type AIUserUsageStats, type APIKey, APIKeysManager, type AcceptInvitationRequest, type AcceptInvitationResponse, type AdminAuthResponse, type AdminBucket, type AdminListBucketsResponse, type AdminListObjectsResponse, type AdminLoginRequest, type AdminMeResponse, type AdminRefreshRequest, type AdminRefreshResponse, type AdminSetupRequest, type AdminSetupStatusResponse, type AdminStorageObject, type AdminUser, type AppSettings, AppSettingsManager, type ApplyMigrationRequest, type ApplyPendingRequest, type AuthConfig, type AuthResponse, type AuthResponseData, type AuthSession, type AuthSettings, AuthSettingsManager, type AuthenticationSettings, type Branch, type BranchActivity, type BranchPoolStats, type BranchStatus, type BranchType, type BroadcastCallback, type BroadcastMessage, type BundleOptions, type BundleResult, type CaptchaConfig, type CaptchaProvider, type ChatbotSpec, type ChunkedUploadSession, type ClientKey, ClientKeysManager, type Column, type CreateAIProviderRequest, type CreateAPIKeyRequest, type CreateAPIKeyResponse, type CreateBranchOptions, type CreateClientKeyRequest, type CreateClientKeyResponse, type CreateColumnRequest, type CreateFunctionRequest, type CreateInvitationRequest, type CreateInvitationResponse, type CreateMigrationRequest, type CreateOAuthProviderRequest, type CreateOAuthProviderResponse, type CreateSchemaRequest, type CreateSchemaResponse, type CreateTableRequest, type CreateTableResponse, type CreateUserSettingRequest, type CreateWebhookRequest, DDLManager, type DataCloneMode, type DataResponse, type DeleteAPIKeyResponse, type DeleteClientKeyResponse, type DeleteOAuthProviderResponse, type DeleteTableResponse, type DeleteUserResponse, type DeleteWebhookResponse, type DownloadOptions, type DownloadProgress, type EdgeFunction, type EdgeFunctionExecution, type EmailProviderSettings, type EmailSettingOverride, type EmailSettings, EmailSettingsManager, type EmailTemplate, EmailTemplateManager, type EmailTemplateType, type EmbedRequest, type EmbedResponse, type EnableRealtimeRequest, type EnableRealtimeResponse, type EnrichedUser, type ExecutionLog, type ExecutionLogCallback, type ExecutionLogConfig, type ExecutionLogEvent, type ExecutionLogLevel, ExecutionLogsChannel, type ExecutionType, type FeatureSettings, type FileObject, type FilterOperator, FluxbaseAI, FluxbaseAIChat, FluxbaseAdmin, FluxbaseAdminAI, FluxbaseAdminFunctions, FluxbaseAdminJobs, FluxbaseAdminMigrations, FluxbaseAdminRPC, FluxbaseAdminRealtime, FluxbaseAdminStorage, FluxbaseAuth, type FluxbaseAuthResponse, FluxbaseBranching, FluxbaseClient, type FluxbaseClientOptions, type FluxbaseError, FluxbaseFetch, FluxbaseFunctions, FluxbaseGraphQL, FluxbaseJobs, FluxbaseManagement, FluxbaseOAuth, FluxbaseRPC, FluxbaseRealtime, type FluxbaseResponse, FluxbaseSettings, FluxbaseStorage, FluxbaseVector, type FunctionInvokeOptions, type FunctionSpec, type GetImpersonationResponse, type GraphQLError, type GraphQLErrorLocation, type GraphQLRequestOptions, type GraphQLResponse, type HealthResponse, type HttpMethod, type ImageFitMode, type ImageFormat, type ImpersonateAnonRequest, type ImpersonateServiceRequest, type ImpersonateUserRequest, ImpersonationManager, type ImpersonationSession, type ImpersonationTargetUser, type ImpersonationType, type IntrospectionDirective, type IntrospectionEnumValue, type IntrospectionField, type IntrospectionInputValue, type IntrospectionSchema, type IntrospectionType, type IntrospectionTypeRef, type Invitation, InvitationsManager, type InviteUserRequest, type InviteUserResponse, type ListAPIKeysResponse, type ListBranchesOptions, type ListBranchesResponse, type ListClientKeysResponse, type ListConversationsOptions, type ListConversationsResult, type ListEmailTemplatesResponse, type ListImpersonationSessionsOptions, type ListImpersonationSessionsResponse, type ListInvitationsOptions, type ListInvitationsResponse, type ListOAuthProvidersResponse, type ListOptions, type ListRealtimeTablesResponse, type ListSchemasResponse, type ListSystemSettingsResponse, type ListTablesResponse, type ListUsersOptions, type ListUsersResponse, type ListWebhookDeliveriesResponse, type ListWebhooksResponse, type MailgunSettings, type Migration, type MigrationExecution, type OAuthLogoutOptions, type OAuthLogoutResponse, type OAuthProvider, OAuthProviderManager, type OAuthProviderPublic, type OrderBy, type OrderDirection, type PostgresChangesConfig, type PostgrestError, type PostgrestResponse, type PresenceCallback, type PresenceState, QueryBuilder, type QueryFilter, type RPCExecution, type RPCExecutionFilters, type RPCExecutionLog, type RPCExecutionStatus, type RPCInvokeResponse, type RPCProcedure, type RPCProcedureSpec, type RPCProcedureSummary, type RealtimeBroadcastPayload, type RealtimeCallback, type RealtimeChangePayload, RealtimeChannel, type RealtimeChannelConfig, type RealtimeMessage, type RealtimePostgresChangesPayload, type RealtimePresencePayload, type RealtimeTableStatus, type RequestOptions, type ResetUserPasswordResponse, type ResumableDownloadData, type ResumableDownloadOptions, type ResumableUploadOptions, type ResumableUploadProgress, type RevokeAPIKeyResponse, type RevokeClientKeyResponse, type RevokeInvitationResponse, type RollbackMigrationRequest, type SAMLLoginOptions, type SAMLLoginResponse, type SAMLProvider, type SAMLProvidersResponse, type SAMLSession, type SESSettings, type SMTPSettings, type Schema, SchemaQueryBuilder, type SecuritySettings, type SendEmailRequest, type SendGridSettings, type SessionResponse, SettingsClient, type SignInCredentials, type SignInWith2FAResponse, type SignUpCredentials, type SignedUrlOptions, type SignedUrlResponse, type StartImpersonationResponse, type StopImpersonationResponse, StorageBucket, type StorageObject, type StreamDownloadData, type StreamUploadOptions, type SupabaseAuthResponse, type SupabaseResponse, type SyncChatbotsOptions, type SyncChatbotsResult, type SyncError, type SyncFunctionsOptions, type SyncFunctionsResult, type SyncMigrationsOptions, type SyncMigrationsResult, type SyncRPCOptions, type SyncRPCResult, type SystemSetting, SystemSettingsManager, type Table, type TestEmailSettingsResponse, type TestEmailTemplateRequest, type TestWebhookResponse, type TransformOptions, type TwoFactorEnableResponse, type TwoFactorSetupResponse, type TwoFactorStatusResponse, type TwoFactorVerifyRequest, type UpdateAIProviderRequest, type UpdateAPIKeyRequest, type UpdateAppSettingsRequest, type UpdateAuthSettingsRequest, type UpdateAuthSettingsResponse, type UpdateClientKeyRequest, type UpdateConversationOptions, type UpdateEmailProviderSettingsRequest, type UpdateEmailTemplateRequest, type UpdateFunctionRequest, type UpdateMigrationRequest, type UpdateOAuthProviderRequest, type UpdateOAuthProviderResponse, type UpdateRPCProcedureRequest, type UpdateRealtimeConfigRequest, type UpdateSystemSettingRequest, type UpdateUserAttributes, type UpdateUserRoleRequest, type UpdateWebhookRequest, type UploadOptions, type UploadProgress, type UpsertOptions, type User, type UserResponse, type UserSetting, type UserSettingWithSource, type ValidateInvitationResponse, type VectorMetric, type VectorOrderOptions, type VectorSearchOptions, type VectorSearchResult, type VoidResponse, type WeakPassword, type Webhook, type WebhookDelivery, WebhooksManager, assertType, bundleCode, createClient, denoExternalPlugin, hasPostgrestError, isArray, isAuthError, isAuthSuccess, isBoolean, isFluxbaseError, isFluxbaseSuccess, isNumber, isObject, isPostgrestSuccess, isString, loadImportMap };
|
package/dist/index.d.ts
CHANGED
|
@@ -3213,6 +3213,73 @@ interface BranchPoolStats {
|
|
|
3213
3213
|
/** When the pool was created */
|
|
3214
3214
|
created_at: string;
|
|
3215
3215
|
}
|
|
3216
|
+
/**
|
|
3217
|
+
* Request to enable realtime on a table
|
|
3218
|
+
*/
|
|
3219
|
+
interface EnableRealtimeRequest {
|
|
3220
|
+
/** Schema name (default: 'public') */
|
|
3221
|
+
schema: string;
|
|
3222
|
+
/** Table name */
|
|
3223
|
+
table: string;
|
|
3224
|
+
/** Events to track (default: ['INSERT', 'UPDATE', 'DELETE']) */
|
|
3225
|
+
events?: ("INSERT" | "UPDATE" | "DELETE")[];
|
|
3226
|
+
/** Columns to exclude from notifications */
|
|
3227
|
+
exclude?: string[];
|
|
3228
|
+
}
|
|
3229
|
+
/**
|
|
3230
|
+
* Response after enabling realtime on a table
|
|
3231
|
+
*/
|
|
3232
|
+
interface EnableRealtimeResponse {
|
|
3233
|
+
/** Schema name */
|
|
3234
|
+
schema: string;
|
|
3235
|
+
/** Table name */
|
|
3236
|
+
table: string;
|
|
3237
|
+
/** Events being tracked */
|
|
3238
|
+
events: string[];
|
|
3239
|
+
/** Name of the created trigger */
|
|
3240
|
+
trigger_name: string;
|
|
3241
|
+
/** Columns excluded from notifications */
|
|
3242
|
+
exclude?: string[];
|
|
3243
|
+
}
|
|
3244
|
+
/**
|
|
3245
|
+
* Status of realtime for a table
|
|
3246
|
+
*/
|
|
3247
|
+
interface RealtimeTableStatus {
|
|
3248
|
+
/** Registry ID */
|
|
3249
|
+
id?: number;
|
|
3250
|
+
/** Schema name */
|
|
3251
|
+
schema: string;
|
|
3252
|
+
/** Table name */
|
|
3253
|
+
table: string;
|
|
3254
|
+
/** Whether realtime is enabled */
|
|
3255
|
+
realtime_enabled: boolean;
|
|
3256
|
+
/** Events being tracked */
|
|
3257
|
+
events: string[];
|
|
3258
|
+
/** Columns excluded from notifications */
|
|
3259
|
+
excluded_columns?: string[];
|
|
3260
|
+
/** When realtime was enabled */
|
|
3261
|
+
created_at?: string;
|
|
3262
|
+
/** When configuration was last updated */
|
|
3263
|
+
updated_at?: string;
|
|
3264
|
+
}
|
|
3265
|
+
/**
|
|
3266
|
+
* Response listing realtime-enabled tables
|
|
3267
|
+
*/
|
|
3268
|
+
interface ListRealtimeTablesResponse {
|
|
3269
|
+
/** List of tables with realtime enabled */
|
|
3270
|
+
tables: RealtimeTableStatus[];
|
|
3271
|
+
/** Total count */
|
|
3272
|
+
count: number;
|
|
3273
|
+
}
|
|
3274
|
+
/**
|
|
3275
|
+
* Request to update realtime configuration
|
|
3276
|
+
*/
|
|
3277
|
+
interface UpdateRealtimeConfigRequest {
|
|
3278
|
+
/** Events to track */
|
|
3279
|
+
events?: ("INSERT" | "UPDATE" | "DELETE")[];
|
|
3280
|
+
/** Columns to exclude from notifications */
|
|
3281
|
+
exclude?: string[];
|
|
3282
|
+
}
|
|
3216
3283
|
/**
|
|
3217
3284
|
* @deprecated Use FluxbaseResponse instead
|
|
3218
3285
|
*/
|
|
@@ -3235,8 +3302,8 @@ declare class RealtimeChannel {
|
|
|
3235
3302
|
private presenceCallbacks;
|
|
3236
3303
|
private broadcastCallbacks;
|
|
3237
3304
|
private executionLogCallbacks;
|
|
3238
|
-
private
|
|
3239
|
-
private
|
|
3305
|
+
private subscriptionConfigs;
|
|
3306
|
+
private subscriptionIds;
|
|
3240
3307
|
private executionLogConfig;
|
|
3241
3308
|
private _presenceState;
|
|
3242
3309
|
private myPresenceKey;
|
|
@@ -9319,6 +9386,179 @@ declare class FluxbaseAdminStorage {
|
|
|
9319
9386
|
generateSignedUrl(bucket: string, key: string, expiresIn: number): Promise<DataResponse<SignedUrlResponse>>;
|
|
9320
9387
|
}
|
|
9321
9388
|
|
|
9389
|
+
/**
|
|
9390
|
+
* Realtime Admin Manager
|
|
9391
|
+
*
|
|
9392
|
+
* Provides methods for enabling and managing realtime subscriptions on database tables.
|
|
9393
|
+
* When enabled, changes to a table (INSERT, UPDATE, DELETE) are automatically broadcast
|
|
9394
|
+
* to WebSocket subscribers.
|
|
9395
|
+
*
|
|
9396
|
+
* @example
|
|
9397
|
+
* ```typescript
|
|
9398
|
+
* const realtime = client.admin.realtime
|
|
9399
|
+
*
|
|
9400
|
+
* // Enable realtime on a table
|
|
9401
|
+
* await realtime.enableRealtime('products')
|
|
9402
|
+
*
|
|
9403
|
+
* // Enable with options
|
|
9404
|
+
* await realtime.enableRealtime('orders', {
|
|
9405
|
+
* events: ['INSERT', 'UPDATE'],
|
|
9406
|
+
* exclude: ['internal_notes', 'raw_data']
|
|
9407
|
+
* })
|
|
9408
|
+
*
|
|
9409
|
+
* // List all realtime-enabled tables
|
|
9410
|
+
* const { tables } = await realtime.listTables()
|
|
9411
|
+
*
|
|
9412
|
+
* // Check status of a specific table
|
|
9413
|
+
* const status = await realtime.getStatus('public', 'products')
|
|
9414
|
+
*
|
|
9415
|
+
* // Disable realtime
|
|
9416
|
+
* await realtime.disableRealtime('public', 'products')
|
|
9417
|
+
* ```
|
|
9418
|
+
*/
|
|
9419
|
+
declare class FluxbaseAdminRealtime {
|
|
9420
|
+
private fetch;
|
|
9421
|
+
constructor(fetch: FluxbaseFetch);
|
|
9422
|
+
/**
|
|
9423
|
+
* Enable realtime on a table
|
|
9424
|
+
*
|
|
9425
|
+
* Creates the necessary database triggers to broadcast changes to WebSocket subscribers.
|
|
9426
|
+
* Also sets REPLICA IDENTITY FULL to include old values in UPDATE/DELETE events.
|
|
9427
|
+
*
|
|
9428
|
+
* @param table - Table name to enable realtime on
|
|
9429
|
+
* @param options - Optional configuration
|
|
9430
|
+
* @returns Promise resolving to EnableRealtimeResponse
|
|
9431
|
+
*
|
|
9432
|
+
* @example
|
|
9433
|
+
* ```typescript
|
|
9434
|
+
* // Enable realtime on products table (all events)
|
|
9435
|
+
* await client.admin.realtime.enableRealtime('products')
|
|
9436
|
+
*
|
|
9437
|
+
* // Enable on a specific schema
|
|
9438
|
+
* await client.admin.realtime.enableRealtime('orders', {
|
|
9439
|
+
* schema: 'sales'
|
|
9440
|
+
* })
|
|
9441
|
+
*
|
|
9442
|
+
* // Enable specific events only
|
|
9443
|
+
* await client.admin.realtime.enableRealtime('audit_log', {
|
|
9444
|
+
* events: ['INSERT'] // Only broadcast inserts
|
|
9445
|
+
* })
|
|
9446
|
+
*
|
|
9447
|
+
* // Exclude large columns from notifications
|
|
9448
|
+
* await client.admin.realtime.enableRealtime('posts', {
|
|
9449
|
+
* exclude: ['content', 'raw_html'] // Skip these in payload
|
|
9450
|
+
* })
|
|
9451
|
+
* ```
|
|
9452
|
+
*/
|
|
9453
|
+
enableRealtime(table: string, options?: {
|
|
9454
|
+
schema?: string;
|
|
9455
|
+
events?: ("INSERT" | "UPDATE" | "DELETE")[];
|
|
9456
|
+
exclude?: string[];
|
|
9457
|
+
}): Promise<EnableRealtimeResponse>;
|
|
9458
|
+
/**
|
|
9459
|
+
* Disable realtime on a table
|
|
9460
|
+
*
|
|
9461
|
+
* Removes the realtime trigger from a table. Existing subscribers will stop
|
|
9462
|
+
* receiving updates for this table.
|
|
9463
|
+
*
|
|
9464
|
+
* @param schema - Schema name
|
|
9465
|
+
* @param table - Table name
|
|
9466
|
+
* @returns Promise resolving to success message
|
|
9467
|
+
*
|
|
9468
|
+
* @example
|
|
9469
|
+
* ```typescript
|
|
9470
|
+
* await client.admin.realtime.disableRealtime('public', 'products')
|
|
9471
|
+
* console.log('Realtime disabled')
|
|
9472
|
+
* ```
|
|
9473
|
+
*/
|
|
9474
|
+
disableRealtime(schema: string, table: string): Promise<{
|
|
9475
|
+
success: boolean;
|
|
9476
|
+
message: string;
|
|
9477
|
+
}>;
|
|
9478
|
+
/**
|
|
9479
|
+
* List all realtime-enabled tables
|
|
9480
|
+
*
|
|
9481
|
+
* Returns a list of all tables that have realtime enabled, along with their
|
|
9482
|
+
* configuration (events, excluded columns, etc.).
|
|
9483
|
+
*
|
|
9484
|
+
* @param options - Optional filter options
|
|
9485
|
+
* @returns Promise resolving to ListRealtimeTablesResponse
|
|
9486
|
+
*
|
|
9487
|
+
* @example
|
|
9488
|
+
* ```typescript
|
|
9489
|
+
* // List all enabled tables
|
|
9490
|
+
* const { tables, count } = await client.admin.realtime.listTables()
|
|
9491
|
+
* console.log(`${count} tables have realtime enabled`)
|
|
9492
|
+
*
|
|
9493
|
+
* tables.forEach(t => {
|
|
9494
|
+
* console.log(`${t.schema}.${t.table}: ${t.events.join(', ')}`)
|
|
9495
|
+
* })
|
|
9496
|
+
*
|
|
9497
|
+
* // Include disabled tables
|
|
9498
|
+
* const all = await client.admin.realtime.listTables({ includeDisabled: true })
|
|
9499
|
+
* ```
|
|
9500
|
+
*/
|
|
9501
|
+
listTables(options?: {
|
|
9502
|
+
includeDisabled?: boolean;
|
|
9503
|
+
}): Promise<ListRealtimeTablesResponse>;
|
|
9504
|
+
/**
|
|
9505
|
+
* Get realtime status for a specific table
|
|
9506
|
+
*
|
|
9507
|
+
* Returns the realtime configuration for a table, including whether it's enabled,
|
|
9508
|
+
* which events are tracked, and which columns are excluded.
|
|
9509
|
+
*
|
|
9510
|
+
* @param schema - Schema name
|
|
9511
|
+
* @param table - Table name
|
|
9512
|
+
* @returns Promise resolving to RealtimeTableStatus
|
|
9513
|
+
*
|
|
9514
|
+
* @example
|
|
9515
|
+
* ```typescript
|
|
9516
|
+
* const status = await client.admin.realtime.getStatus('public', 'products')
|
|
9517
|
+
*
|
|
9518
|
+
* if (status.realtime_enabled) {
|
|
9519
|
+
* console.log('Events:', status.events.join(', '))
|
|
9520
|
+
* console.log('Excluded:', status.excluded_columns?.join(', ') || 'none')
|
|
9521
|
+
* } else {
|
|
9522
|
+
* console.log('Realtime not enabled')
|
|
9523
|
+
* }
|
|
9524
|
+
* ```
|
|
9525
|
+
*/
|
|
9526
|
+
getStatus(schema: string, table: string): Promise<RealtimeTableStatus>;
|
|
9527
|
+
/**
|
|
9528
|
+
* Update realtime configuration for a table
|
|
9529
|
+
*
|
|
9530
|
+
* Modifies the events or excluded columns for a realtime-enabled table
|
|
9531
|
+
* without recreating the trigger.
|
|
9532
|
+
*
|
|
9533
|
+
* @param schema - Schema name
|
|
9534
|
+
* @param table - Table name
|
|
9535
|
+
* @param config - New configuration
|
|
9536
|
+
* @returns Promise resolving to success message
|
|
9537
|
+
*
|
|
9538
|
+
* @example
|
|
9539
|
+
* ```typescript
|
|
9540
|
+
* // Change which events are tracked
|
|
9541
|
+
* await client.admin.realtime.updateConfig('public', 'products', {
|
|
9542
|
+
* events: ['INSERT', 'UPDATE'] // Stop tracking deletes
|
|
9543
|
+
* })
|
|
9544
|
+
*
|
|
9545
|
+
* // Update excluded columns
|
|
9546
|
+
* await client.admin.realtime.updateConfig('public', 'posts', {
|
|
9547
|
+
* exclude: ['raw_content', 'search_vector']
|
|
9548
|
+
* })
|
|
9549
|
+
*
|
|
9550
|
+
* // Clear excluded columns
|
|
9551
|
+
* await client.admin.realtime.updateConfig('public', 'posts', {
|
|
9552
|
+
* exclude: [] // Include all columns again
|
|
9553
|
+
* })
|
|
9554
|
+
* ```
|
|
9555
|
+
*/
|
|
9556
|
+
updateConfig(schema: string, table: string, config: UpdateRealtimeConfigRequest): Promise<{
|
|
9557
|
+
success: boolean;
|
|
9558
|
+
message: string;
|
|
9559
|
+
}>;
|
|
9560
|
+
}
|
|
9561
|
+
|
|
9322
9562
|
/**
|
|
9323
9563
|
* Admin client for managing Fluxbase instance
|
|
9324
9564
|
*/
|
|
@@ -9373,6 +9613,10 @@ declare class FluxbaseAdmin {
|
|
|
9373
9613
|
* Storage manager for bucket and object management (list, create, delete, signed URLs)
|
|
9374
9614
|
*/
|
|
9375
9615
|
storage: FluxbaseAdminStorage;
|
|
9616
|
+
/**
|
|
9617
|
+
* Realtime manager for enabling/disabling realtime on tables
|
|
9618
|
+
*/
|
|
9619
|
+
realtime: FluxbaseAdminRealtime;
|
|
9376
9620
|
constructor(fetch: FluxbaseFetch);
|
|
9377
9621
|
/**
|
|
9378
9622
|
* Set admin authentication token
|
|
@@ -11664,4 +11908,4 @@ declare function isBoolean(value: unknown): value is boolean;
|
|
|
11664
11908
|
*/
|
|
11665
11909
|
declare function assertType<T>(value: unknown, validator: (v: unknown) => v is T, errorMessage?: string): asserts value is T;
|
|
11666
11910
|
|
|
11667
|
-
export { type AIChatClientMessage, type AIChatEvent, type AIChatEventType, type AIChatMessageRole, type AIChatOptions, type AIChatServerMessage, type AIChatbot, type AIChatbotSummary, type AIConversation, type AIConversationMessage, type AIProvider, type AIProviderType, type AIUsageStats, type AIUserConversationDetail, type AIUserConversationSummary, type AIUserMessage, type AIUserQueryResult, type AIUserUsageStats, type APIKey, APIKeysManager, type AcceptInvitationRequest, type AcceptInvitationResponse, type AdminAuthResponse, type AdminBucket, type AdminListBucketsResponse, type AdminListObjectsResponse, type AdminLoginRequest, type AdminMeResponse, type AdminRefreshRequest, type AdminRefreshResponse, type AdminSetupRequest, type AdminSetupStatusResponse, type AdminStorageObject, type AdminUser, type AppSettings, AppSettingsManager, type ApplyMigrationRequest, type ApplyPendingRequest, type AuthConfig, type AuthResponse, type AuthResponseData, type AuthSession, type AuthSettings, AuthSettingsManager, type AuthenticationSettings, type Branch, type BranchActivity, type BranchPoolStats, type BranchStatus, type BranchType, type BroadcastCallback, type BroadcastMessage, type BundleOptions, type BundleResult, type CaptchaConfig, type CaptchaProvider, type ChatbotSpec, type ChunkedUploadSession, type ClientKey, ClientKeysManager, type Column, type CreateAIProviderRequest, type CreateAPIKeyRequest, type CreateAPIKeyResponse, type CreateBranchOptions, type CreateClientKeyRequest, type CreateClientKeyResponse, type CreateColumnRequest, type CreateFunctionRequest, type CreateInvitationRequest, type CreateInvitationResponse, type CreateMigrationRequest, type CreateOAuthProviderRequest, type CreateOAuthProviderResponse, type CreateSchemaRequest, type CreateSchemaResponse, type CreateTableRequest, type CreateTableResponse, type CreateUserSettingRequest, type CreateWebhookRequest, DDLManager, type DataCloneMode, type DataResponse, type DeleteAPIKeyResponse, type DeleteClientKeyResponse, type DeleteOAuthProviderResponse, type DeleteTableResponse, type DeleteUserResponse, type DeleteWebhookResponse, type DownloadOptions, type DownloadProgress, type EdgeFunction, type EdgeFunctionExecution, type EmailProviderSettings, type EmailSettingOverride, type EmailSettings, EmailSettingsManager, type EmailTemplate, EmailTemplateManager, type EmailTemplateType, type EmbedRequest, type EmbedResponse, type EnrichedUser, type ExecutionLog, type ExecutionLogCallback, type ExecutionLogConfig, type ExecutionLogEvent, type ExecutionLogLevel, ExecutionLogsChannel, type ExecutionType, type FeatureSettings, type FileObject, type FilterOperator, FluxbaseAI, FluxbaseAIChat, FluxbaseAdmin, FluxbaseAdminAI, FluxbaseAdminFunctions, FluxbaseAdminJobs, FluxbaseAdminMigrations, FluxbaseAdminRPC, FluxbaseAdminStorage, FluxbaseAuth, type FluxbaseAuthResponse, FluxbaseBranching, FluxbaseClient, type FluxbaseClientOptions, type FluxbaseError, FluxbaseFetch, FluxbaseFunctions, FluxbaseGraphQL, FluxbaseJobs, FluxbaseManagement, FluxbaseOAuth, FluxbaseRPC, FluxbaseRealtime, type FluxbaseResponse, FluxbaseSettings, FluxbaseStorage, FluxbaseVector, type FunctionInvokeOptions, type FunctionSpec, type GetImpersonationResponse, type GraphQLError, type GraphQLErrorLocation, type GraphQLRequestOptions, type GraphQLResponse, type HealthResponse, type HttpMethod, type ImageFitMode, type ImageFormat, type ImpersonateAnonRequest, type ImpersonateServiceRequest, type ImpersonateUserRequest, ImpersonationManager, type ImpersonationSession, type ImpersonationTargetUser, type ImpersonationType, type IntrospectionDirective, type IntrospectionEnumValue, type IntrospectionField, type IntrospectionInputValue, type IntrospectionSchema, type IntrospectionType, type IntrospectionTypeRef, type Invitation, InvitationsManager, type InviteUserRequest, type InviteUserResponse, type ListAPIKeysResponse, type ListBranchesOptions, type ListBranchesResponse, type ListClientKeysResponse, type ListConversationsOptions, type ListConversationsResult, 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 Migration, type MigrationExecution, type OAuthLogoutOptions, type OAuthLogoutResponse, type OAuthProvider, OAuthProviderManager, type OAuthProviderPublic, type OrderBy, type OrderDirection, type PostgresChangesConfig, type PostgrestError, type PostgrestResponse, type PresenceCallback, type PresenceState, QueryBuilder, type QueryFilter, type RPCExecution, type RPCExecutionFilters, type RPCExecutionLog, type RPCExecutionStatus, type RPCInvokeResponse, type RPCProcedure, type RPCProcedureSpec, type RPCProcedureSummary, type RealtimeBroadcastPayload, type RealtimeCallback, type RealtimeChangePayload, RealtimeChannel, type RealtimeChannelConfig, type RealtimeMessage, type RealtimePostgresChangesPayload, type RealtimePresencePayload, type RequestOptions, type ResetUserPasswordResponse, type ResumableDownloadData, type ResumableDownloadOptions, type ResumableUploadOptions, type ResumableUploadProgress, type RevokeAPIKeyResponse, type RevokeClientKeyResponse, type RevokeInvitationResponse, type RollbackMigrationRequest, type SAMLLoginOptions, type SAMLLoginResponse, type SAMLProvider, type SAMLProvidersResponse, type SAMLSession, type SESSettings, type SMTPSettings, type Schema, SchemaQueryBuilder, type SecuritySettings, type SendEmailRequest, type SendGridSettings, type SessionResponse, SettingsClient, type SignInCredentials, type SignInWith2FAResponse, type SignUpCredentials, type SignedUrlOptions, type SignedUrlResponse, type StartImpersonationResponse, type StopImpersonationResponse, StorageBucket, type StorageObject, type StreamDownloadData, type StreamUploadOptions, type SupabaseAuthResponse, type SupabaseResponse, type SyncChatbotsOptions, type SyncChatbotsResult, type SyncError, type SyncFunctionsOptions, type SyncFunctionsResult, type SyncMigrationsOptions, type SyncMigrationsResult, type SyncRPCOptions, type SyncRPCResult, type SystemSetting, SystemSettingsManager, type Table, type TestEmailSettingsResponse, type TestEmailTemplateRequest, type TestWebhookResponse, type TransformOptions, type TwoFactorEnableResponse, type TwoFactorSetupResponse, type TwoFactorStatusResponse, type TwoFactorVerifyRequest, type UpdateAIProviderRequest, type UpdateAPIKeyRequest, type UpdateAppSettingsRequest, type UpdateAuthSettingsRequest, type UpdateAuthSettingsResponse, type UpdateClientKeyRequest, type UpdateConversationOptions, type UpdateEmailProviderSettingsRequest, type UpdateEmailTemplateRequest, type UpdateFunctionRequest, type UpdateMigrationRequest, type UpdateOAuthProviderRequest, type UpdateOAuthProviderResponse, type UpdateRPCProcedureRequest, type UpdateSystemSettingRequest, type UpdateUserAttributes, type UpdateUserRoleRequest, type UpdateWebhookRequest, type UploadOptions, type UploadProgress, type UpsertOptions, type User, type UserResponse, type UserSetting, type UserSettingWithSource, type ValidateInvitationResponse, type VectorMetric, type VectorOrderOptions, type VectorSearchOptions, type VectorSearchResult, type VoidResponse, type WeakPassword, type Webhook, type WebhookDelivery, WebhooksManager, assertType, bundleCode, createClient, denoExternalPlugin, hasPostgrestError, isArray, isAuthError, isAuthSuccess, isBoolean, isFluxbaseError, isFluxbaseSuccess, isNumber, isObject, isPostgrestSuccess, isString, loadImportMap };
|
|
11911
|
+
export { type AIChatClientMessage, type AIChatEvent, type AIChatEventType, type AIChatMessageRole, type AIChatOptions, type AIChatServerMessage, type AIChatbot, type AIChatbotSummary, type AIConversation, type AIConversationMessage, type AIProvider, type AIProviderType, type AIUsageStats, type AIUserConversationDetail, type AIUserConversationSummary, type AIUserMessage, type AIUserQueryResult, type AIUserUsageStats, type APIKey, APIKeysManager, type AcceptInvitationRequest, type AcceptInvitationResponse, type AdminAuthResponse, type AdminBucket, type AdminListBucketsResponse, type AdminListObjectsResponse, type AdminLoginRequest, type AdminMeResponse, type AdminRefreshRequest, type AdminRefreshResponse, type AdminSetupRequest, type AdminSetupStatusResponse, type AdminStorageObject, type AdminUser, type AppSettings, AppSettingsManager, type ApplyMigrationRequest, type ApplyPendingRequest, type AuthConfig, type AuthResponse, type AuthResponseData, type AuthSession, type AuthSettings, AuthSettingsManager, type AuthenticationSettings, type Branch, type BranchActivity, type BranchPoolStats, type BranchStatus, type BranchType, type BroadcastCallback, type BroadcastMessage, type BundleOptions, type BundleResult, type CaptchaConfig, type CaptchaProvider, type ChatbotSpec, type ChunkedUploadSession, type ClientKey, ClientKeysManager, type Column, type CreateAIProviderRequest, type CreateAPIKeyRequest, type CreateAPIKeyResponse, type CreateBranchOptions, type CreateClientKeyRequest, type CreateClientKeyResponse, type CreateColumnRequest, type CreateFunctionRequest, type CreateInvitationRequest, type CreateInvitationResponse, type CreateMigrationRequest, type CreateOAuthProviderRequest, type CreateOAuthProviderResponse, type CreateSchemaRequest, type CreateSchemaResponse, type CreateTableRequest, type CreateTableResponse, type CreateUserSettingRequest, type CreateWebhookRequest, DDLManager, type DataCloneMode, type DataResponse, type DeleteAPIKeyResponse, type DeleteClientKeyResponse, type DeleteOAuthProviderResponse, type DeleteTableResponse, type DeleteUserResponse, type DeleteWebhookResponse, type DownloadOptions, type DownloadProgress, type EdgeFunction, type EdgeFunctionExecution, type EmailProviderSettings, type EmailSettingOverride, type EmailSettings, EmailSettingsManager, type EmailTemplate, EmailTemplateManager, type EmailTemplateType, type EmbedRequest, type EmbedResponse, type EnableRealtimeRequest, type EnableRealtimeResponse, type EnrichedUser, type ExecutionLog, type ExecutionLogCallback, type ExecutionLogConfig, type ExecutionLogEvent, type ExecutionLogLevel, ExecutionLogsChannel, type ExecutionType, type FeatureSettings, type FileObject, type FilterOperator, FluxbaseAI, FluxbaseAIChat, FluxbaseAdmin, FluxbaseAdminAI, FluxbaseAdminFunctions, FluxbaseAdminJobs, FluxbaseAdminMigrations, FluxbaseAdminRPC, FluxbaseAdminRealtime, FluxbaseAdminStorage, FluxbaseAuth, type FluxbaseAuthResponse, FluxbaseBranching, FluxbaseClient, type FluxbaseClientOptions, type FluxbaseError, FluxbaseFetch, FluxbaseFunctions, FluxbaseGraphQL, FluxbaseJobs, FluxbaseManagement, FluxbaseOAuth, FluxbaseRPC, FluxbaseRealtime, type FluxbaseResponse, FluxbaseSettings, FluxbaseStorage, FluxbaseVector, type FunctionInvokeOptions, type FunctionSpec, type GetImpersonationResponse, type GraphQLError, type GraphQLErrorLocation, type GraphQLRequestOptions, type GraphQLResponse, type HealthResponse, type HttpMethod, type ImageFitMode, type ImageFormat, type ImpersonateAnonRequest, type ImpersonateServiceRequest, type ImpersonateUserRequest, ImpersonationManager, type ImpersonationSession, type ImpersonationTargetUser, type ImpersonationType, type IntrospectionDirective, type IntrospectionEnumValue, type IntrospectionField, type IntrospectionInputValue, type IntrospectionSchema, type IntrospectionType, type IntrospectionTypeRef, type Invitation, InvitationsManager, type InviteUserRequest, type InviteUserResponse, type ListAPIKeysResponse, type ListBranchesOptions, type ListBranchesResponse, type ListClientKeysResponse, type ListConversationsOptions, type ListConversationsResult, type ListEmailTemplatesResponse, type ListImpersonationSessionsOptions, type ListImpersonationSessionsResponse, type ListInvitationsOptions, type ListInvitationsResponse, type ListOAuthProvidersResponse, type ListOptions, type ListRealtimeTablesResponse, type ListSchemasResponse, type ListSystemSettingsResponse, type ListTablesResponse, type ListUsersOptions, type ListUsersResponse, type ListWebhookDeliveriesResponse, type ListWebhooksResponse, type MailgunSettings, type Migration, type MigrationExecution, type OAuthLogoutOptions, type OAuthLogoutResponse, type OAuthProvider, OAuthProviderManager, type OAuthProviderPublic, type OrderBy, type OrderDirection, type PostgresChangesConfig, type PostgrestError, type PostgrestResponse, type PresenceCallback, type PresenceState, QueryBuilder, type QueryFilter, type RPCExecution, type RPCExecutionFilters, type RPCExecutionLog, type RPCExecutionStatus, type RPCInvokeResponse, type RPCProcedure, type RPCProcedureSpec, type RPCProcedureSummary, type RealtimeBroadcastPayload, type RealtimeCallback, type RealtimeChangePayload, RealtimeChannel, type RealtimeChannelConfig, type RealtimeMessage, type RealtimePostgresChangesPayload, type RealtimePresencePayload, type RealtimeTableStatus, type RequestOptions, type ResetUserPasswordResponse, type ResumableDownloadData, type ResumableDownloadOptions, type ResumableUploadOptions, type ResumableUploadProgress, type RevokeAPIKeyResponse, type RevokeClientKeyResponse, type RevokeInvitationResponse, type RollbackMigrationRequest, type SAMLLoginOptions, type SAMLLoginResponse, type SAMLProvider, type SAMLProvidersResponse, type SAMLSession, type SESSettings, type SMTPSettings, type Schema, SchemaQueryBuilder, type SecuritySettings, type SendEmailRequest, type SendGridSettings, type SessionResponse, SettingsClient, type SignInCredentials, type SignInWith2FAResponse, type SignUpCredentials, type SignedUrlOptions, type SignedUrlResponse, type StartImpersonationResponse, type StopImpersonationResponse, StorageBucket, type StorageObject, type StreamDownloadData, type StreamUploadOptions, type SupabaseAuthResponse, type SupabaseResponse, type SyncChatbotsOptions, type SyncChatbotsResult, type SyncError, type SyncFunctionsOptions, type SyncFunctionsResult, type SyncMigrationsOptions, type SyncMigrationsResult, type SyncRPCOptions, type SyncRPCResult, type SystemSetting, SystemSettingsManager, type Table, type TestEmailSettingsResponse, type TestEmailTemplateRequest, type TestWebhookResponse, type TransformOptions, type TwoFactorEnableResponse, type TwoFactorSetupResponse, type TwoFactorStatusResponse, type TwoFactorVerifyRequest, type UpdateAIProviderRequest, type UpdateAPIKeyRequest, type UpdateAppSettingsRequest, type UpdateAuthSettingsRequest, type UpdateAuthSettingsResponse, type UpdateClientKeyRequest, type UpdateConversationOptions, type UpdateEmailProviderSettingsRequest, type UpdateEmailTemplateRequest, type UpdateFunctionRequest, type UpdateMigrationRequest, type UpdateOAuthProviderRequest, type UpdateOAuthProviderResponse, type UpdateRPCProcedureRequest, type UpdateRealtimeConfigRequest, type UpdateSystemSettingRequest, type UpdateUserAttributes, type UpdateUserRoleRequest, type UpdateWebhookRequest, type UploadOptions, type UploadProgress, type UpsertOptions, type User, type UserResponse, type UserSetting, type UserSettingWithSource, type ValidateInvitationResponse, type VectorMetric, type VectorOrderOptions, type VectorSearchOptions, type VectorSearchResult, type VoidResponse, type WeakPassword, type Webhook, type WebhookDelivery, WebhooksManager, assertType, bundleCode, createClient, denoExternalPlugin, hasPostgrestError, isArray, isAuthError, isAuthSuccess, isBoolean, isFluxbaseError, isFluxbaseSuccess, isNumber, isObject, isPostgrestSuccess, isString, loadImportMap };
|