@fluxbase/sdk 0.0.1-rc.94 → 0.0.1-rc.96

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
@@ -1106,6 +1106,68 @@ interface TestEmailTemplateRequest {
1106
1106
  interface ListEmailTemplatesResponse {
1107
1107
  templates: EmailTemplate[];
1108
1108
  }
1109
+ /**
1110
+ * Override information for a setting controlled by environment variable
1111
+ */
1112
+ interface EmailSettingOverride {
1113
+ is_overridden: boolean;
1114
+ env_var: string;
1115
+ }
1116
+ /**
1117
+ * Email provider settings response from /api/v1/admin/email/settings
1118
+ *
1119
+ * This is the flat structure returned by the admin API, which differs from
1120
+ * the nested EmailSettings structure used in AppSettings.
1121
+ */
1122
+ interface EmailProviderSettings {
1123
+ enabled: boolean;
1124
+ provider: 'smtp' | 'sendgrid' | 'mailgun' | 'ses';
1125
+ from_address: string;
1126
+ from_name: string;
1127
+ smtp_host: string;
1128
+ smtp_port: number;
1129
+ smtp_username: string;
1130
+ smtp_password_set: boolean;
1131
+ smtp_tls: boolean;
1132
+ sendgrid_api_key_set: boolean;
1133
+ mailgun_api_key_set: boolean;
1134
+ mailgun_domain: string;
1135
+ ses_access_key_set: boolean;
1136
+ ses_secret_key_set: boolean;
1137
+ ses_region: string;
1138
+ /** Settings overridden by environment variables */
1139
+ _overrides: Record<string, EmailSettingOverride>;
1140
+ }
1141
+ /**
1142
+ * Request to update email provider settings
1143
+ *
1144
+ * All fields are optional - only provided fields will be updated.
1145
+ * Secret fields (passwords, API keys) are only updated if provided.
1146
+ */
1147
+ interface UpdateEmailProviderSettingsRequest {
1148
+ enabled?: boolean;
1149
+ provider?: 'smtp' | 'sendgrid' | 'mailgun' | 'ses';
1150
+ from_address?: string;
1151
+ from_name?: string;
1152
+ smtp_host?: string;
1153
+ smtp_port?: number;
1154
+ smtp_username?: string;
1155
+ smtp_password?: string;
1156
+ smtp_tls?: boolean;
1157
+ sendgrid_api_key?: string;
1158
+ mailgun_api_key?: string;
1159
+ mailgun_domain?: string;
1160
+ ses_access_key?: string;
1161
+ ses_secret_key?: string;
1162
+ ses_region?: string;
1163
+ }
1164
+ /**
1165
+ * Response from testing email settings
1166
+ */
1167
+ interface TestEmailSettingsResponse {
1168
+ success: boolean;
1169
+ message: string;
1170
+ }
1109
1171
  interface OAuthProvider {
1110
1172
  id: string;
1111
1173
  name: string;
@@ -5034,11 +5096,170 @@ declare class EmailTemplateManager {
5034
5096
  */
5035
5097
  test(type: EmailTemplateType, recipientEmail: string): Promise<void>;
5036
5098
  }
5099
+ /**
5100
+ * Email Settings Manager
5101
+ *
5102
+ * Manages email provider configuration including SMTP, SendGrid, Mailgun, and AWS SES.
5103
+ * Provides direct access to the email settings API with proper handling of sensitive credentials.
5104
+ *
5105
+ * @example
5106
+ * ```typescript
5107
+ * const email = client.admin.settings.email
5108
+ *
5109
+ * // Get current email settings
5110
+ * const settings = await email.get()
5111
+ * console.log(settings.provider) // 'smtp'
5112
+ * console.log(settings.smtp_password_set) // true (password is configured)
5113
+ *
5114
+ * // Update email settings
5115
+ * await email.update({
5116
+ * provider: 'sendgrid',
5117
+ * sendgrid_api_key: 'SG.xxx',
5118
+ * from_address: 'noreply@yourapp.com'
5119
+ * })
5120
+ *
5121
+ * // Test email configuration
5122
+ * const result = await email.test('test@example.com')
5123
+ * console.log(result.success) // true
5124
+ *
5125
+ * // Convenience methods
5126
+ * await email.enable()
5127
+ * await email.disable()
5128
+ * await email.setProvider('smtp')
5129
+ * ```
5130
+ */
5131
+ declare class EmailSettingsManager {
5132
+ private fetch;
5133
+ constructor(fetch: FluxbaseFetch);
5134
+ /**
5135
+ * Get current email provider settings
5136
+ *
5137
+ * Returns the current email configuration. Sensitive values (passwords, API keys)
5138
+ * are not returned - instead, boolean flags indicate whether they are set.
5139
+ *
5140
+ * @returns Promise resolving to EmailProviderSettings
5141
+ *
5142
+ * @example
5143
+ * ```typescript
5144
+ * const settings = await client.admin.settings.email.get()
5145
+ *
5146
+ * console.log('Provider:', settings.provider)
5147
+ * console.log('From:', settings.from_address)
5148
+ * console.log('SMTP password configured:', settings.smtp_password_set)
5149
+ *
5150
+ * // Check for environment variable overrides
5151
+ * if (settings._overrides.provider?.is_overridden) {
5152
+ * console.log('Provider is set by env var:', settings._overrides.provider.env_var)
5153
+ * }
5154
+ * ```
5155
+ */
5156
+ get(): Promise<EmailProviderSettings>;
5157
+ /**
5158
+ * Update email provider settings
5159
+ *
5160
+ * Supports partial updates - only provide the fields you want to change.
5161
+ * Secret fields (passwords, API keys) are only updated if provided.
5162
+ *
5163
+ * @param request - Settings to update (partial update supported)
5164
+ * @returns Promise resolving to EmailProviderSettings - Updated settings
5165
+ * @throws Error if a setting is overridden by an environment variable
5166
+ *
5167
+ * @example
5168
+ * ```typescript
5169
+ * // Configure SMTP
5170
+ * await client.admin.settings.email.update({
5171
+ * enabled: true,
5172
+ * provider: 'smtp',
5173
+ * from_address: 'noreply@yourapp.com',
5174
+ * from_name: 'Your App',
5175
+ * smtp_host: 'smtp.gmail.com',
5176
+ * smtp_port: 587,
5177
+ * smtp_username: 'your-email@gmail.com',
5178
+ * smtp_password: 'your-app-password',
5179
+ * smtp_tls: true
5180
+ * })
5181
+ *
5182
+ * // Configure SendGrid
5183
+ * await client.admin.settings.email.update({
5184
+ * provider: 'sendgrid',
5185
+ * sendgrid_api_key: 'SG.xxx'
5186
+ * })
5187
+ *
5188
+ * // Update just the from address (password unchanged)
5189
+ * await client.admin.settings.email.update({
5190
+ * from_address: 'new-address@yourapp.com'
5191
+ * })
5192
+ * ```
5193
+ */
5194
+ update(request: UpdateEmailProviderSettingsRequest): Promise<EmailProviderSettings>;
5195
+ /**
5196
+ * Test email configuration by sending a test email
5197
+ *
5198
+ * Sends a test email to verify that the current email configuration is working.
5199
+ *
5200
+ * @param recipientEmail - Email address to send the test email to
5201
+ * @returns Promise resolving to TestEmailSettingsResponse
5202
+ * @throws Error if email sending fails
5203
+ *
5204
+ * @example
5205
+ * ```typescript
5206
+ * try {
5207
+ * const result = await client.admin.settings.email.test('admin@yourapp.com')
5208
+ * console.log('Test email sent:', result.message)
5209
+ * } catch (error) {
5210
+ * console.error('Email configuration error:', error.message)
5211
+ * }
5212
+ * ```
5213
+ */
5214
+ test(recipientEmail: string): Promise<TestEmailSettingsResponse>;
5215
+ /**
5216
+ * Enable email functionality
5217
+ *
5218
+ * Convenience method to enable the email system.
5219
+ *
5220
+ * @returns Promise resolving to EmailProviderSettings
5221
+ *
5222
+ * @example
5223
+ * ```typescript
5224
+ * await client.admin.settings.email.enable()
5225
+ * ```
5226
+ */
5227
+ enable(): Promise<EmailProviderSettings>;
5228
+ /**
5229
+ * Disable email functionality
5230
+ *
5231
+ * Convenience method to disable the email system.
5232
+ *
5233
+ * @returns Promise resolving to EmailProviderSettings
5234
+ *
5235
+ * @example
5236
+ * ```typescript
5237
+ * await client.admin.settings.email.disable()
5238
+ * ```
5239
+ */
5240
+ disable(): Promise<EmailProviderSettings>;
5241
+ /**
5242
+ * Set the email provider
5243
+ *
5244
+ * Convenience method to change the email provider.
5245
+ * Note: You'll also need to configure the provider-specific settings.
5246
+ *
5247
+ * @param provider - The email provider to use
5248
+ * @returns Promise resolving to EmailProviderSettings
5249
+ *
5250
+ * @example
5251
+ * ```typescript
5252
+ * await client.admin.settings.email.setProvider('sendgrid')
5253
+ * ```
5254
+ */
5255
+ setProvider(provider: "smtp" | "sendgrid" | "mailgun" | "ses"): Promise<EmailProviderSettings>;
5256
+ }
5037
5257
  /**
5038
5258
  * Settings Manager
5039
5259
  *
5040
- * Provides access to system-level and application-level settings.
5041
- * AppSettingsManager now handles both structured framework settings and custom key-value settings.
5260
+ * Provides access to system-level, application-level, and email settings.
5261
+ * AppSettingsManager handles both structured framework settings and custom key-value settings.
5262
+ * EmailSettingsManager provides direct access to email provider configuration.
5042
5263
  *
5043
5264
  * @example
5044
5265
  * ```typescript
@@ -5054,11 +5275,17 @@ declare class EmailTemplateManager {
5054
5275
  * // Access custom settings (key-value)
5055
5276
  * await settings.app.setSetting('billing.tiers', { free: 1000, pro: 10000 })
5056
5277
  * const tiers = await settings.app.getSetting('billing.tiers')
5278
+ *
5279
+ * // Access email settings
5280
+ * const emailSettings = await settings.email.get()
5281
+ * await settings.email.update({ provider: 'sendgrid', sendgrid_api_key: 'SG.xxx' })
5282
+ * await settings.email.test('admin@yourapp.com')
5057
5283
  * ```
5058
5284
  */
5059
5285
  declare class FluxbaseSettings {
5060
5286
  system: SystemSettingsManager;
5061
5287
  app: AppSettingsManager;
5288
+ email: EmailSettingsManager;
5062
5289
  constructor(fetch: FluxbaseFetch);
5063
5290
  }
5064
5291
  /**
@@ -9933,4 +10160,4 @@ declare function isBoolean(value: unknown): value is boolean;
9933
10160
  */
9934
10161
  declare function assertType<T>(value: unknown, validator: (v: unknown) => v is T, errorMessage?: string): asserts value is T;
9935
10162
 
9936
- 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 AuthResponse, type AuthResponseData, type AuthSession, type AuthSettings, AuthSettingsManager, type AuthenticationSettings, type BroadcastCallback, type BroadcastMessage, type BundleOptions, type BundleResult, type ChatbotSpec, type ChunkedUploadSession, type Column, type CreateAIProviderRequest, type CreateAPIKeyRequest, type CreateAPIKeyResponse, type CreateColumnRequest, type CreateFunctionRequest, type CreateInvitationRequest, type CreateInvitationResponse, type CreateMigrationRequest, 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 DownloadOptions, type DownloadProgress, type EdgeFunction, type EdgeFunctionExecution, type EmailSettings, 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, FluxbaseClient, type FluxbaseClientOptions, type FluxbaseError, FluxbaseFetch, FluxbaseFunctions, FluxbaseJobs, FluxbaseManagement, FluxbaseOAuth, FluxbaseRPC, FluxbaseRealtime, type FluxbaseResponse, FluxbaseSettings, FluxbaseStorage, FluxbaseVector, type FunctionInvokeOptions, type FunctionSpec, type GetImpersonationResponse, type HealthResponse, 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 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 OAuthProvider, OAuthProviderManager, 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 RevokeInvitationResponse, type RollbackMigrationRequest, 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 TestEmailTemplateRequest, type TestWebhookResponse, type TwoFactorEnableResponse, type TwoFactorSetupResponse, type TwoFactorStatusResponse, type TwoFactorVerifyRequest, type UpdateAIProviderRequest, type UpdateAPIKeyRequest, type UpdateAppSettingsRequest, type UpdateAuthSettingsRequest, type UpdateAuthSettingsResponse, type UpdateConversationOptions, 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 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 };
10163
+ 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 AuthResponse, type AuthResponseData, type AuthSession, type AuthSettings, AuthSettingsManager, type AuthenticationSettings, type BroadcastCallback, type BroadcastMessage, type BundleOptions, type BundleResult, type ChatbotSpec, type ChunkedUploadSession, type Column, type CreateAIProviderRequest, type CreateAPIKeyRequest, type CreateAPIKeyResponse, type CreateColumnRequest, type CreateFunctionRequest, type CreateInvitationRequest, type CreateInvitationResponse, type CreateMigrationRequest, 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 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, FluxbaseClient, type FluxbaseClientOptions, type FluxbaseError, FluxbaseFetch, FluxbaseFunctions, FluxbaseJobs, FluxbaseManagement, FluxbaseOAuth, FluxbaseRPC, FluxbaseRealtime, type FluxbaseResponse, FluxbaseSettings, FluxbaseStorage, FluxbaseVector, type FunctionInvokeOptions, type FunctionSpec, type GetImpersonationResponse, type HealthResponse, 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 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 OAuthProvider, OAuthProviderManager, 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 RevokeInvitationResponse, type RollbackMigrationRequest, 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 TwoFactorEnableResponse, type TwoFactorSetupResponse, type TwoFactorStatusResponse, type TwoFactorVerifyRequest, type UpdateAIProviderRequest, type UpdateAPIKeyRequest, type UpdateAppSettingsRequest, type UpdateAuthSettingsRequest, type UpdateAuthSettingsResponse, 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 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
@@ -1106,6 +1106,68 @@ interface TestEmailTemplateRequest {
1106
1106
  interface ListEmailTemplatesResponse {
1107
1107
  templates: EmailTemplate[];
1108
1108
  }
1109
+ /**
1110
+ * Override information for a setting controlled by environment variable
1111
+ */
1112
+ interface EmailSettingOverride {
1113
+ is_overridden: boolean;
1114
+ env_var: string;
1115
+ }
1116
+ /**
1117
+ * Email provider settings response from /api/v1/admin/email/settings
1118
+ *
1119
+ * This is the flat structure returned by the admin API, which differs from
1120
+ * the nested EmailSettings structure used in AppSettings.
1121
+ */
1122
+ interface EmailProviderSettings {
1123
+ enabled: boolean;
1124
+ provider: 'smtp' | 'sendgrid' | 'mailgun' | 'ses';
1125
+ from_address: string;
1126
+ from_name: string;
1127
+ smtp_host: string;
1128
+ smtp_port: number;
1129
+ smtp_username: string;
1130
+ smtp_password_set: boolean;
1131
+ smtp_tls: boolean;
1132
+ sendgrid_api_key_set: boolean;
1133
+ mailgun_api_key_set: boolean;
1134
+ mailgun_domain: string;
1135
+ ses_access_key_set: boolean;
1136
+ ses_secret_key_set: boolean;
1137
+ ses_region: string;
1138
+ /** Settings overridden by environment variables */
1139
+ _overrides: Record<string, EmailSettingOverride>;
1140
+ }
1141
+ /**
1142
+ * Request to update email provider settings
1143
+ *
1144
+ * All fields are optional - only provided fields will be updated.
1145
+ * Secret fields (passwords, API keys) are only updated if provided.
1146
+ */
1147
+ interface UpdateEmailProviderSettingsRequest {
1148
+ enabled?: boolean;
1149
+ provider?: 'smtp' | 'sendgrid' | 'mailgun' | 'ses';
1150
+ from_address?: string;
1151
+ from_name?: string;
1152
+ smtp_host?: string;
1153
+ smtp_port?: number;
1154
+ smtp_username?: string;
1155
+ smtp_password?: string;
1156
+ smtp_tls?: boolean;
1157
+ sendgrid_api_key?: string;
1158
+ mailgun_api_key?: string;
1159
+ mailgun_domain?: string;
1160
+ ses_access_key?: string;
1161
+ ses_secret_key?: string;
1162
+ ses_region?: string;
1163
+ }
1164
+ /**
1165
+ * Response from testing email settings
1166
+ */
1167
+ interface TestEmailSettingsResponse {
1168
+ success: boolean;
1169
+ message: string;
1170
+ }
1109
1171
  interface OAuthProvider {
1110
1172
  id: string;
1111
1173
  name: string;
@@ -5034,11 +5096,170 @@ declare class EmailTemplateManager {
5034
5096
  */
5035
5097
  test(type: EmailTemplateType, recipientEmail: string): Promise<void>;
5036
5098
  }
5099
+ /**
5100
+ * Email Settings Manager
5101
+ *
5102
+ * Manages email provider configuration including SMTP, SendGrid, Mailgun, and AWS SES.
5103
+ * Provides direct access to the email settings API with proper handling of sensitive credentials.
5104
+ *
5105
+ * @example
5106
+ * ```typescript
5107
+ * const email = client.admin.settings.email
5108
+ *
5109
+ * // Get current email settings
5110
+ * const settings = await email.get()
5111
+ * console.log(settings.provider) // 'smtp'
5112
+ * console.log(settings.smtp_password_set) // true (password is configured)
5113
+ *
5114
+ * // Update email settings
5115
+ * await email.update({
5116
+ * provider: 'sendgrid',
5117
+ * sendgrid_api_key: 'SG.xxx',
5118
+ * from_address: 'noreply@yourapp.com'
5119
+ * })
5120
+ *
5121
+ * // Test email configuration
5122
+ * const result = await email.test('test@example.com')
5123
+ * console.log(result.success) // true
5124
+ *
5125
+ * // Convenience methods
5126
+ * await email.enable()
5127
+ * await email.disable()
5128
+ * await email.setProvider('smtp')
5129
+ * ```
5130
+ */
5131
+ declare class EmailSettingsManager {
5132
+ private fetch;
5133
+ constructor(fetch: FluxbaseFetch);
5134
+ /**
5135
+ * Get current email provider settings
5136
+ *
5137
+ * Returns the current email configuration. Sensitive values (passwords, API keys)
5138
+ * are not returned - instead, boolean flags indicate whether they are set.
5139
+ *
5140
+ * @returns Promise resolving to EmailProviderSettings
5141
+ *
5142
+ * @example
5143
+ * ```typescript
5144
+ * const settings = await client.admin.settings.email.get()
5145
+ *
5146
+ * console.log('Provider:', settings.provider)
5147
+ * console.log('From:', settings.from_address)
5148
+ * console.log('SMTP password configured:', settings.smtp_password_set)
5149
+ *
5150
+ * // Check for environment variable overrides
5151
+ * if (settings._overrides.provider?.is_overridden) {
5152
+ * console.log('Provider is set by env var:', settings._overrides.provider.env_var)
5153
+ * }
5154
+ * ```
5155
+ */
5156
+ get(): Promise<EmailProviderSettings>;
5157
+ /**
5158
+ * Update email provider settings
5159
+ *
5160
+ * Supports partial updates - only provide the fields you want to change.
5161
+ * Secret fields (passwords, API keys) are only updated if provided.
5162
+ *
5163
+ * @param request - Settings to update (partial update supported)
5164
+ * @returns Promise resolving to EmailProviderSettings - Updated settings
5165
+ * @throws Error if a setting is overridden by an environment variable
5166
+ *
5167
+ * @example
5168
+ * ```typescript
5169
+ * // Configure SMTP
5170
+ * await client.admin.settings.email.update({
5171
+ * enabled: true,
5172
+ * provider: 'smtp',
5173
+ * from_address: 'noreply@yourapp.com',
5174
+ * from_name: 'Your App',
5175
+ * smtp_host: 'smtp.gmail.com',
5176
+ * smtp_port: 587,
5177
+ * smtp_username: 'your-email@gmail.com',
5178
+ * smtp_password: 'your-app-password',
5179
+ * smtp_tls: true
5180
+ * })
5181
+ *
5182
+ * // Configure SendGrid
5183
+ * await client.admin.settings.email.update({
5184
+ * provider: 'sendgrid',
5185
+ * sendgrid_api_key: 'SG.xxx'
5186
+ * })
5187
+ *
5188
+ * // Update just the from address (password unchanged)
5189
+ * await client.admin.settings.email.update({
5190
+ * from_address: 'new-address@yourapp.com'
5191
+ * })
5192
+ * ```
5193
+ */
5194
+ update(request: UpdateEmailProviderSettingsRequest): Promise<EmailProviderSettings>;
5195
+ /**
5196
+ * Test email configuration by sending a test email
5197
+ *
5198
+ * Sends a test email to verify that the current email configuration is working.
5199
+ *
5200
+ * @param recipientEmail - Email address to send the test email to
5201
+ * @returns Promise resolving to TestEmailSettingsResponse
5202
+ * @throws Error if email sending fails
5203
+ *
5204
+ * @example
5205
+ * ```typescript
5206
+ * try {
5207
+ * const result = await client.admin.settings.email.test('admin@yourapp.com')
5208
+ * console.log('Test email sent:', result.message)
5209
+ * } catch (error) {
5210
+ * console.error('Email configuration error:', error.message)
5211
+ * }
5212
+ * ```
5213
+ */
5214
+ test(recipientEmail: string): Promise<TestEmailSettingsResponse>;
5215
+ /**
5216
+ * Enable email functionality
5217
+ *
5218
+ * Convenience method to enable the email system.
5219
+ *
5220
+ * @returns Promise resolving to EmailProviderSettings
5221
+ *
5222
+ * @example
5223
+ * ```typescript
5224
+ * await client.admin.settings.email.enable()
5225
+ * ```
5226
+ */
5227
+ enable(): Promise<EmailProviderSettings>;
5228
+ /**
5229
+ * Disable email functionality
5230
+ *
5231
+ * Convenience method to disable the email system.
5232
+ *
5233
+ * @returns Promise resolving to EmailProviderSettings
5234
+ *
5235
+ * @example
5236
+ * ```typescript
5237
+ * await client.admin.settings.email.disable()
5238
+ * ```
5239
+ */
5240
+ disable(): Promise<EmailProviderSettings>;
5241
+ /**
5242
+ * Set the email provider
5243
+ *
5244
+ * Convenience method to change the email provider.
5245
+ * Note: You'll also need to configure the provider-specific settings.
5246
+ *
5247
+ * @param provider - The email provider to use
5248
+ * @returns Promise resolving to EmailProviderSettings
5249
+ *
5250
+ * @example
5251
+ * ```typescript
5252
+ * await client.admin.settings.email.setProvider('sendgrid')
5253
+ * ```
5254
+ */
5255
+ setProvider(provider: "smtp" | "sendgrid" | "mailgun" | "ses"): Promise<EmailProviderSettings>;
5256
+ }
5037
5257
  /**
5038
5258
  * Settings Manager
5039
5259
  *
5040
- * Provides access to system-level and application-level settings.
5041
- * AppSettingsManager now handles both structured framework settings and custom key-value settings.
5260
+ * Provides access to system-level, application-level, and email settings.
5261
+ * AppSettingsManager handles both structured framework settings and custom key-value settings.
5262
+ * EmailSettingsManager provides direct access to email provider configuration.
5042
5263
  *
5043
5264
  * @example
5044
5265
  * ```typescript
@@ -5054,11 +5275,17 @@ declare class EmailTemplateManager {
5054
5275
  * // Access custom settings (key-value)
5055
5276
  * await settings.app.setSetting('billing.tiers', { free: 1000, pro: 10000 })
5056
5277
  * const tiers = await settings.app.getSetting('billing.tiers')
5278
+ *
5279
+ * // Access email settings
5280
+ * const emailSettings = await settings.email.get()
5281
+ * await settings.email.update({ provider: 'sendgrid', sendgrid_api_key: 'SG.xxx' })
5282
+ * await settings.email.test('admin@yourapp.com')
5057
5283
  * ```
5058
5284
  */
5059
5285
  declare class FluxbaseSettings {
5060
5286
  system: SystemSettingsManager;
5061
5287
  app: AppSettingsManager;
5288
+ email: EmailSettingsManager;
5062
5289
  constructor(fetch: FluxbaseFetch);
5063
5290
  }
5064
5291
  /**
@@ -9933,4 +10160,4 @@ declare function isBoolean(value: unknown): value is boolean;
9933
10160
  */
9934
10161
  declare function assertType<T>(value: unknown, validator: (v: unknown) => v is T, errorMessage?: string): asserts value is T;
9935
10162
 
9936
- 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 AuthResponse, type AuthResponseData, type AuthSession, type AuthSettings, AuthSettingsManager, type AuthenticationSettings, type BroadcastCallback, type BroadcastMessage, type BundleOptions, type BundleResult, type ChatbotSpec, type ChunkedUploadSession, type Column, type CreateAIProviderRequest, type CreateAPIKeyRequest, type CreateAPIKeyResponse, type CreateColumnRequest, type CreateFunctionRequest, type CreateInvitationRequest, type CreateInvitationResponse, type CreateMigrationRequest, 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 DownloadOptions, type DownloadProgress, type EdgeFunction, type EdgeFunctionExecution, type EmailSettings, 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, FluxbaseClient, type FluxbaseClientOptions, type FluxbaseError, FluxbaseFetch, FluxbaseFunctions, FluxbaseJobs, FluxbaseManagement, FluxbaseOAuth, FluxbaseRPC, FluxbaseRealtime, type FluxbaseResponse, FluxbaseSettings, FluxbaseStorage, FluxbaseVector, type FunctionInvokeOptions, type FunctionSpec, type GetImpersonationResponse, type HealthResponse, 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 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 OAuthProvider, OAuthProviderManager, 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 RevokeInvitationResponse, type RollbackMigrationRequest, 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 TestEmailTemplateRequest, type TestWebhookResponse, type TwoFactorEnableResponse, type TwoFactorSetupResponse, type TwoFactorStatusResponse, type TwoFactorVerifyRequest, type UpdateAIProviderRequest, type UpdateAPIKeyRequest, type UpdateAppSettingsRequest, type UpdateAuthSettingsRequest, type UpdateAuthSettingsResponse, type UpdateConversationOptions, 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 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 };
10163
+ 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 AuthResponse, type AuthResponseData, type AuthSession, type AuthSettings, AuthSettingsManager, type AuthenticationSettings, type BroadcastCallback, type BroadcastMessage, type BundleOptions, type BundleResult, type ChatbotSpec, type ChunkedUploadSession, type Column, type CreateAIProviderRequest, type CreateAPIKeyRequest, type CreateAPIKeyResponse, type CreateColumnRequest, type CreateFunctionRequest, type CreateInvitationRequest, type CreateInvitationResponse, type CreateMigrationRequest, 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 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, FluxbaseClient, type FluxbaseClientOptions, type FluxbaseError, FluxbaseFetch, FluxbaseFunctions, FluxbaseJobs, FluxbaseManagement, FluxbaseOAuth, FluxbaseRPC, FluxbaseRealtime, type FluxbaseResponse, FluxbaseSettings, FluxbaseStorage, FluxbaseVector, type FunctionInvokeOptions, type FunctionSpec, type GetImpersonationResponse, type HealthResponse, 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 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 OAuthProvider, OAuthProviderManager, 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 RevokeInvitationResponse, type RollbackMigrationRequest, 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 TwoFactorEnableResponse, type TwoFactorSetupResponse, type TwoFactorStatusResponse, type TwoFactorVerifyRequest, type UpdateAIProviderRequest, type UpdateAPIKeyRequest, type UpdateAppSettingsRequest, type UpdateAuthSettingsRequest, type UpdateAuthSettingsResponse, 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 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 };