@fluxbase/sdk 2026.1.1-rc.6 → 2026.1.1-rc.8

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
@@ -96,8 +96,8 @@ interface AuthResponse {
96
96
  */
97
97
  interface Factor {
98
98
  id: string;
99
- type: 'totp' | 'phone';
100
- status: 'verified' | 'unverified';
99
+ type: "totp" | "phone";
100
+ status: "verified" | "unverified";
101
101
  created_at: string;
102
102
  updated_at: string;
103
103
  friendly_name?: string;
@@ -115,7 +115,7 @@ interface TOTPSetup {
115
115
  */
116
116
  interface TwoFactorSetupResponse {
117
117
  id: string;
118
- type: 'totp';
118
+ type: "totp";
119
119
  totp: TOTPSetup;
120
120
  }
121
121
  /**
@@ -163,7 +163,7 @@ interface FluxbaseError extends Error {
163
163
  code?: string;
164
164
  details?: unknown;
165
165
  }
166
- type HttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'HEAD';
166
+ type HttpMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD";
167
167
  interface RequestOptions {
168
168
  method: HttpMethod;
169
169
  headers?: Record<string, string>;
@@ -189,7 +189,7 @@ interface PostgrestResponse<T> {
189
189
  * - 'planned': Uses PostgreSQL's query planner estimate (faster, less accurate)
190
190
  * - 'estimated': Uses statistics-based estimate (fastest, least accurate)
191
191
  */
192
- type CountType = 'exact' | 'planned' | 'estimated';
192
+ type CountType = "exact" | "planned" | "estimated";
193
193
  /**
194
194
  * Options for select queries (Supabase-compatible)
195
195
  */
@@ -205,19 +205,19 @@ interface SelectOptions {
205
205
  */
206
206
  head?: boolean;
207
207
  }
208
- type FilterOperator = 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'like' | 'ilike' | 'is' | 'in' | 'cs' | 'cd' | 'ov' | 'sl' | 'sr' | 'nxr' | 'nxl' | 'adj' | 'not' | 'fts' | 'plfts' | 'wfts' | 'st_intersects' | 'st_contains' | 'st_within' | 'st_dwithin' | 'st_distance' | 'st_touches' | 'st_crosses' | 'st_overlaps' | 'between' | 'not.between' | 'vec_l2' | 'vec_cos' | 'vec_ip';
208
+ type FilterOperator = "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "like" | "ilike" | "is" | "in" | "cs" | "cd" | "ov" | "sl" | "sr" | "nxr" | "nxl" | "adj" | "not" | "fts" | "plfts" | "wfts" | "st_intersects" | "st_contains" | "st_within" | "st_dwithin" | "st_distance" | "st_touches" | "st_crosses" | "st_overlaps" | "between" | "not.between" | "vec_l2" | "vec_cos" | "vec_ip";
209
209
  interface QueryFilter {
210
210
  column: string;
211
211
  operator: FilterOperator;
212
212
  value: unknown;
213
213
  }
214
- type OrderDirection = 'asc' | 'desc';
214
+ type OrderDirection = "asc" | "desc";
215
215
  interface OrderBy {
216
216
  column: string;
217
217
  direction: OrderDirection;
218
- nulls?: 'first' | 'last';
218
+ nulls?: "first" | "last";
219
219
  /** Vector operator for similarity ordering (vec_l2, vec_cos, vec_ip) */
220
- vectorOp?: 'vec_l2' | 'vec_cos' | 'vec_ip';
220
+ vectorOp?: "vec_l2" | "vec_cos" | "vec_ip";
221
221
  /** Vector value for similarity ordering */
222
222
  vectorValue?: number[];
223
223
  }
@@ -243,7 +243,7 @@ interface UpsertOptions {
243
243
  defaultToNull?: boolean;
244
244
  }
245
245
  interface RealtimeMessage {
246
- type: 'subscribe' | 'unsubscribe' | 'heartbeat' | 'broadcast' | 'presence' | 'ack' | 'error' | 'postgres_changes' | 'access_token';
246
+ type: "subscribe" | "unsubscribe" | "heartbeat" | "broadcast" | "presence" | "ack" | "error" | "postgres_changes" | "access_token";
247
247
  channel?: string;
248
248
  event?: string;
249
249
  schema?: string;
@@ -260,7 +260,7 @@ interface RealtimeMessage {
260
260
  token?: string;
261
261
  }
262
262
  interface PostgresChangesConfig {
263
- event: 'INSERT' | 'UPDATE' | 'DELETE' | '*';
263
+ event: "INSERT" | "UPDATE" | "DELETE" | "*";
264
264
  schema: string;
265
265
  table: string;
266
266
  filter?: string;
@@ -271,7 +271,7 @@ interface PostgresChangesConfig {
271
271
  */
272
272
  interface RealtimePostgresChangesPayload<T = unknown> {
273
273
  /** Event type (Supabase-compatible field name) */
274
- eventType: 'INSERT' | 'UPDATE' | 'DELETE' | '*';
274
+ eventType: "INSERT" | "UPDATE" | "DELETE" | "*";
275
275
  /** Database schema */
276
276
  schema: string;
277
277
  /** Table name */
@@ -290,7 +290,7 @@ interface RealtimePostgresChangesPayload<T = unknown> {
290
290
  */
291
291
  interface RealtimeChangePayload {
292
292
  /** @deprecated Use eventType instead */
293
- type: 'INSERT' | 'UPDATE' | 'DELETE';
293
+ type: "INSERT" | "UPDATE" | "DELETE";
294
294
  schema: string;
295
295
  table: string;
296
296
  /** @deprecated Use 'new' instead */
@@ -324,7 +324,7 @@ interface PresenceState {
324
324
  * Realtime presence payload structure
325
325
  */
326
326
  interface RealtimePresencePayload {
327
- event: 'sync' | 'join' | 'leave';
327
+ event: "sync" | "join" | "leave";
328
328
  key?: string;
329
329
  newPresences?: PresenceState[];
330
330
  leftPresences?: PresenceState[];
@@ -338,7 +338,7 @@ type PresenceCallback = (payload: RealtimePresencePayload) => void;
338
338
  * Broadcast message structure
339
339
  */
340
340
  interface BroadcastMessage {
341
- type: 'broadcast';
341
+ type: "broadcast";
342
342
  event: string;
343
343
  payload: unknown;
344
344
  }
@@ -556,7 +556,7 @@ interface ChunkedUploadSession {
556
556
  /** Array of completed chunk indices (0-indexed) */
557
557
  completedChunks: number[];
558
558
  /** Session status */
559
- status: 'active' | 'completing' | 'completed' | 'aborted' | 'expired';
559
+ status: "active" | "completing" | "completed" | "aborted" | "expired";
560
560
  /** Session expiration time */
561
561
  expiresAt: string;
562
562
  /** Session creation time */
@@ -564,11 +564,11 @@ interface ChunkedUploadSession {
564
564
  }
565
565
  interface ShareFileOptions {
566
566
  userId: string;
567
- permission: 'read' | 'write';
567
+ permission: "read" | "write";
568
568
  }
569
569
  interface FileShare {
570
570
  user_id: string;
571
- permission: 'read' | 'write';
571
+ permission: "read" | "write";
572
572
  created_at: string;
573
573
  }
574
574
  interface BucketSettings {
@@ -656,23 +656,6 @@ interface OAuthLogoutResponse {
656
656
  /** Warning message if something failed but logout still proceeded */
657
657
  warning?: string;
658
658
  }
659
- /**
660
- * SAML Identity Provider configuration
661
- */
662
- interface SAMLProvider {
663
- /** Unique provider identifier (slug name) */
664
- id: string;
665
- /** Display name of the provider */
666
- name: string;
667
- /** Whether the provider is enabled */
668
- enabled: boolean;
669
- /** Provider's entity ID (used for SP metadata) */
670
- entity_id: string;
671
- /** SSO endpoint URL */
672
- sso_url: string;
673
- /** Single Logout endpoint URL (optional) */
674
- slo_url?: string;
675
- }
676
659
  /**
677
660
  * Response containing list of SAML providers
678
661
  */
@@ -716,7 +699,7 @@ interface SAMLSession {
716
699
  /** Session creation time */
717
700
  created_at: string;
718
701
  }
719
- type OTPType = 'signup' | 'invite' | 'magiclink' | 'recovery' | 'email_change' | 'sms' | 'phone_change' | 'email';
702
+ type OTPType = "signup" | "invite" | "magiclink" | "recovery" | "email_change" | "sms" | "phone_change" | "email";
720
703
  interface SignInWithOtpCredentials {
721
704
  email?: string;
722
705
  phone?: string;
@@ -738,7 +721,7 @@ interface VerifyOtpParams {
738
721
  };
739
722
  }
740
723
  interface ResendOtpParams {
741
- type: 'signup' | 'sms' | 'email';
724
+ type: "signup" | "sms" | "email";
742
725
  email?: string;
743
726
  phone?: string;
744
727
  options?: {
@@ -772,7 +755,7 @@ interface ReauthenticateResponse {
772
755
  nonce: string;
773
756
  }
774
757
  interface SignInWithIdTokenCredentials {
775
- provider: 'google' | 'apple';
758
+ provider: "google" | "apple";
776
759
  token: string;
777
760
  nonce?: string;
778
761
  options?: {
@@ -845,7 +828,7 @@ interface ListUsersOptions {
845
828
  exclude_admins?: boolean;
846
829
  search?: string;
847
830
  limit?: number;
848
- type?: 'app' | 'dashboard';
831
+ type?: "app" | "dashboard";
849
832
  }
850
833
  interface InviteUserRequest {
851
834
  email: string;
@@ -984,7 +967,7 @@ interface Invitation {
984
967
  }
985
968
  interface CreateInvitationRequest {
986
969
  email: string;
987
- role: 'dashboard_admin' | 'dashboard_user';
970
+ role: "dashboard_admin" | "dashboard_user";
988
971
  expiry_duration?: number;
989
972
  }
990
973
  interface CreateInvitationResponse {
@@ -1060,7 +1043,7 @@ interface CustomSetting {
1060
1043
  id: string;
1061
1044
  key: string;
1062
1045
  value: Record<string, unknown>;
1063
- value_type: 'string' | 'number' | 'boolean' | 'json';
1046
+ value_type: "string" | "number" | "boolean" | "json";
1064
1047
  description?: string;
1065
1048
  editable_by: string[];
1066
1049
  metadata?: Record<string, unknown>;
@@ -1146,7 +1129,7 @@ interface SESSettings {
1146
1129
  */
1147
1130
  interface EmailSettings {
1148
1131
  enabled: boolean;
1149
- provider: 'smtp' | 'sendgrid' | 'mailgun' | 'ses';
1132
+ provider: "smtp" | "sendgrid" | "mailgun" | "ses";
1150
1133
  from_address?: string;
1151
1134
  from_name?: string;
1152
1135
  reply_to_address?: string;
@@ -1194,7 +1177,7 @@ interface UpdateAppSettingsRequest {
1194
1177
  /**
1195
1178
  * Email template type
1196
1179
  */
1197
- type EmailTemplateType = 'magic_link' | 'verify_email' | 'reset_password' | 'invite_user';
1180
+ type EmailTemplateType = "magic_link" | "verify_email" | "reset_password" | "invite_user";
1198
1181
  /**
1199
1182
  * Email template structure
1200
1183
  */
@@ -1243,7 +1226,7 @@ interface EmailSettingOverride {
1243
1226
  */
1244
1227
  interface EmailProviderSettings {
1245
1228
  enabled: boolean;
1246
- provider: 'smtp' | 'sendgrid' | 'mailgun' | 'ses';
1229
+ provider: "smtp" | "sendgrid" | "mailgun" | "ses";
1247
1230
  from_address: string;
1248
1231
  from_name: string;
1249
1232
  smtp_host: string;
@@ -1268,7 +1251,7 @@ interface EmailProviderSettings {
1268
1251
  */
1269
1252
  interface UpdateEmailProviderSettingsRequest {
1270
1253
  enabled?: boolean;
1271
- provider?: 'smtp' | 'sendgrid' | 'mailgun' | 'ses';
1254
+ provider?: "smtp" | "sendgrid" | "mailgun" | "ses";
1272
1255
  from_address?: string;
1273
1256
  from_name?: string;
1274
1257
  smtp_host?: string;
@@ -1390,6 +1373,8 @@ interface AuthSettings {
1390
1373
  password_require_special: boolean;
1391
1374
  session_timeout_minutes: number;
1392
1375
  max_sessions_per_user: number;
1376
+ disable_dashboard_password_login: boolean;
1377
+ disable_app_password_login: boolean;
1393
1378
  /** Settings overridden by environment variables (read-only, cannot be modified via API) */
1394
1379
  _overrides?: Record<string, SettingOverride>;
1395
1380
  }
@@ -1407,6 +1392,8 @@ interface UpdateAuthSettingsRequest {
1407
1392
  password_require_special?: boolean;
1408
1393
  session_timeout_minutes?: number;
1409
1394
  max_sessions_per_user?: number;
1395
+ disable_dashboard_password_login?: boolean;
1396
+ disable_app_password_login?: boolean;
1410
1397
  }
1411
1398
  /**
1412
1399
  * Response after updating authentication settings
@@ -1500,7 +1487,7 @@ interface ListTablesResponse {
1500
1487
  /**
1501
1488
  * Impersonation type
1502
1489
  */
1503
- type ImpersonationType = 'user' | 'anon' | 'service';
1490
+ type ImpersonationType = "user" | "anon" | "service";
1504
1491
  /**
1505
1492
  * Target user information for impersonation
1506
1493
  */
@@ -1594,11 +1581,11 @@ interface ListImpersonationSessionsResponse {
1594
1581
  * - inside: Resize to fit within target, only scale down
1595
1582
  * - outside: Resize to be at least as large as target
1596
1583
  */
1597
- type ImageFitMode = 'cover' | 'contain' | 'fill' | 'inside' | 'outside';
1584
+ type ImageFitMode = "cover" | "contain" | "fill" | "inside" | "outside";
1598
1585
  /**
1599
1586
  * Output format for image transformations
1600
1587
  */
1601
- type ImageFormat = 'webp' | 'jpg' | 'png' | 'avif';
1588
+ type ImageFormat = "webp" | "jpg" | "png" | "avif";
1602
1589
  /**
1603
1590
  * Options for on-the-fly image transformations
1604
1591
  * Applied to storage downloads via query parameters
@@ -1622,7 +1609,7 @@ interface TransformOptions {
1622
1609
  * - turnstile: Cloudflare's invisible CAPTCHA
1623
1610
  * - cap: Self-hosted proof-of-work CAPTCHA (https://capjs.js.org/)
1624
1611
  */
1625
- type CaptchaProvider = 'hcaptcha' | 'recaptcha_v3' | 'turnstile' | 'cap';
1612
+ type CaptchaProvider = "hcaptcha" | "recaptcha_v3" | "turnstile" | "cap";
1626
1613
  /**
1627
1614
  * Public CAPTCHA configuration returned from the server
1628
1615
  * Used by clients to know which CAPTCHA provider to load
@@ -1639,10 +1626,77 @@ interface CaptchaConfig {
1639
1626
  /** Cap server URL - only present when provider is 'cap' */
1640
1627
  cap_server_url?: string;
1641
1628
  }
1629
+ /**
1630
+ * Public OAuth provider information
1631
+ */
1632
+ interface OAuthProviderPublic {
1633
+ /** Provider identifier (e.g., "google", "github") */
1634
+ provider: string;
1635
+ /** Display name for UI */
1636
+ display_name: string;
1637
+ /** Authorization URL to initiate OAuth flow */
1638
+ authorize_url: string;
1639
+ }
1640
+ /**
1641
+ * SAML Identity Provider configuration
1642
+ */
1643
+ interface SAMLProvider {
1644
+ /** Unique provider identifier (slug name) */
1645
+ id: string;
1646
+ /** Display name of the provider */
1647
+ name: string;
1648
+ /** Whether the provider is enabled */
1649
+ enabled: boolean;
1650
+ /** Provider's entity ID (used for SP metadata) */
1651
+ entity_id: string;
1652
+ /** SSO endpoint URL */
1653
+ sso_url: string;
1654
+ /** Single Logout endpoint URL (optional) */
1655
+ slo_url?: string;
1656
+ }
1657
+ /**
1658
+ * Public SAML provider information
1659
+ */
1660
+ interface SAMLProvider {
1661
+ /** Provider identifier */
1662
+ provider: string;
1663
+ /** Display name for UI */
1664
+ display_name: string;
1665
+ }
1666
+ /**
1667
+ * Comprehensive authentication configuration
1668
+ * Returns all public auth settings from the server
1669
+ */
1670
+ interface AuthConfig {
1671
+ /** Whether user signup is enabled */
1672
+ signup_enabled: boolean;
1673
+ /** Whether email verification is required after signup */
1674
+ require_email_verification: boolean;
1675
+ /** Whether magic link authentication is enabled */
1676
+ magic_link_enabled: boolean;
1677
+ /** Whether MFA/2FA is available (always true, users opt-in) */
1678
+ mfa_available: boolean;
1679
+ /** Minimum password length requirement */
1680
+ password_min_length: number;
1681
+ /** Whether passwords must contain uppercase letters */
1682
+ password_require_uppercase: boolean;
1683
+ /** Whether passwords must contain lowercase letters */
1684
+ password_require_lowercase: boolean;
1685
+ /** Whether passwords must contain numbers */
1686
+ password_require_number: boolean;
1687
+ /** Whether passwords must contain special characters */
1688
+ password_require_special: boolean;
1689
+ /** Available OAuth providers for authentication */
1690
+ oauth_providers: OAuthProviderPublic[];
1691
+ /** Available SAML providers for enterprise SSO */
1692
+ saml_providers: SAMLProvider[];
1693
+ /** CAPTCHA configuration */
1694
+ captcha: CaptchaConfig | null;
1695
+ }
1642
1696
  /**
1643
1697
  * Auth state change events
1644
1698
  */
1645
- type AuthChangeEvent = 'SIGNED_IN' | 'SIGNED_OUT' | 'TOKEN_REFRESHED' | 'USER_UPDATED' | 'PASSWORD_RECOVERY' | 'MFA_CHALLENGE_VERIFIED';
1699
+ type AuthChangeEvent = "SIGNED_IN" | "SIGNED_OUT" | "TOKEN_REFRESHED" | "USER_UPDATED" | "PASSWORD_RECOVERY" | "MFA_CHALLENGE_VERIFIED";
1646
1700
  /**
1647
1701
  * Callback for auth state changes
1648
1702
  */
@@ -1672,7 +1726,7 @@ interface FunctionInvokeOptions {
1672
1726
  * HTTP method to use
1673
1727
  * @default 'POST'
1674
1728
  */
1675
- method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
1729
+ method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
1676
1730
  /**
1677
1731
  * Namespace of the function to invoke
1678
1732
  * If not provided, the first function with the given name is used (alphabetically by namespace)
@@ -1742,7 +1796,7 @@ interface EdgeFunctionExecution {
1742
1796
  id: string;
1743
1797
  function_id: string;
1744
1798
  trigger_type: string;
1745
- status: 'success' | 'error';
1799
+ status: "success" | "error";
1746
1800
  status_code?: number;
1747
1801
  duration_ms?: number;
1748
1802
  result?: string;
@@ -1802,7 +1856,7 @@ interface SyncError {
1802
1856
  /** Error message */
1803
1857
  error: string;
1804
1858
  /** Operation that failed */
1805
- action: 'create' | 'update' | 'delete' | 'bundle';
1859
+ action: "create" | "update" | "delete" | "bundle";
1806
1860
  }
1807
1861
  /**
1808
1862
  * Result of a function sync operation
@@ -1901,7 +1955,7 @@ interface UpdateJobFunctionRequest {
1901
1955
  /**
1902
1956
  * Job execution status
1903
1957
  */
1904
- type JobStatus = 'pending' | 'running' | 'completed' | 'failed' | 'cancelled' | 'timeout';
1958
+ type JobStatus = "pending" | "running" | "completed" | "failed" | "cancelled" | "timeout";
1905
1959
  /**
1906
1960
  * Job execution record
1907
1961
  */
@@ -1967,7 +2021,7 @@ interface JobStats {
1967
2021
  interface JobWorker {
1968
2022
  id: string;
1969
2023
  hostname: string;
1970
- status: 'active' | 'idle' | 'dead';
2024
+ status: "active" | "idle" | "dead";
1971
2025
  current_jobs: number;
1972
2026
  total_completed: number;
1973
2027
  started_at: string;
@@ -2044,7 +2098,7 @@ interface Migration {
2044
2098
  up_sql: string;
2045
2099
  down_sql?: string;
2046
2100
  version: number;
2047
- status: 'pending' | 'applied' | 'failed' | 'rolled_back';
2101
+ status: "pending" | "applied" | "failed" | "rolled_back";
2048
2102
  created_by?: string;
2049
2103
  applied_by?: string;
2050
2104
  created_at: string;
@@ -2076,8 +2130,8 @@ interface UpdateMigrationRequest {
2076
2130
  interface MigrationExecution {
2077
2131
  id: string;
2078
2132
  migration_id: string;
2079
- action: 'apply' | 'rollback';
2080
- status: 'success' | 'failed';
2133
+ action: "apply" | "rollback";
2134
+ status: "success" | "failed";
2081
2135
  duration_ms?: number;
2082
2136
  error_message?: string;
2083
2137
  logs?: string;
@@ -2147,7 +2201,7 @@ interface SyncMigrationsResult {
2147
2201
  /**
2148
2202
  * AI provider type
2149
2203
  */
2150
- type AIProviderType = 'openai' | 'azure' | 'ollama';
2204
+ type AIProviderType = "openai" | "azure" | "ollama";
2151
2205
  /**
2152
2206
  * AI provider configuration
2153
2207
  */
@@ -2282,12 +2336,12 @@ interface SyncChatbotsResult {
2282
2336
  /**
2283
2337
  * AI chat message role
2284
2338
  */
2285
- type AIChatMessageRole = 'user' | 'assistant' | 'system' | 'tool';
2339
+ type AIChatMessageRole = "user" | "assistant" | "system" | "tool";
2286
2340
  /**
2287
2341
  * AI chat message for WebSocket
2288
2342
  */
2289
2343
  interface AIChatClientMessage {
2290
- type: 'start_chat' | 'message' | 'cancel';
2344
+ type: "start_chat" | "message" | "cancel";
2291
2345
  chatbot?: string;
2292
2346
  namespace?: string;
2293
2347
  conversation_id?: string;
@@ -2298,7 +2352,7 @@ interface AIChatClientMessage {
2298
2352
  * AI chat server message
2299
2353
  */
2300
2354
  interface AIChatServerMessage {
2301
- type: 'chat_started' | 'progress' | 'content' | 'query_result' | 'done' | 'error' | 'cancelled';
2355
+ type: "chat_started" | "progress" | "content" | "query_result" | "done" | "error" | "cancelled";
2302
2356
  conversation_id?: string;
2303
2357
  message_id?: string;
2304
2358
  chatbot?: string;
@@ -2330,7 +2384,7 @@ interface AIConversation {
2330
2384
  user_id?: string;
2331
2385
  session_id?: string;
2332
2386
  title?: string;
2333
- status: 'active' | 'archived';
2387
+ status: "active" | "archived";
2334
2388
  turn_count: number;
2335
2389
  total_prompt_tokens: number;
2336
2390
  total_completion_tokens: number;
@@ -2394,7 +2448,7 @@ interface AIUserUsageStats {
2394
2448
  */
2395
2449
  interface AIUserMessage {
2396
2450
  id: string;
2397
- role: 'user' | 'assistant';
2451
+ role: "user" | "assistant";
2398
2452
  content: string;
2399
2453
  timestamp: string;
2400
2454
  query_results?: AIUserQueryResult[];
@@ -2495,7 +2549,7 @@ interface UpdateKnowledgeBaseRequest {
2495
2549
  /**
2496
2550
  * Document status
2497
2551
  */
2498
- type DocumentStatus = 'pending' | 'processing' | 'indexed' | 'failed';
2552
+ type DocumentStatus = "pending" | "processing" | "indexed" | "failed";
2499
2553
  /**
2500
2554
  * Document in a knowledge base
2501
2555
  */
@@ -2746,7 +2800,7 @@ interface RPCProcedure extends RPCProcedureSummary {
2746
2800
  /**
2747
2801
  * RPC execution status
2748
2802
  */
2749
- type RPCExecutionStatus = 'pending' | 'running' | 'completed' | 'failed' | 'cancelled' | 'timeout';
2803
+ type RPCExecutionStatus = "pending" | "running" | "completed" | "failed" | "cancelled" | "timeout";
2750
2804
  /**
2751
2805
  * RPC execution record
2752
2806
  */
@@ -2878,7 +2932,7 @@ interface RPCExecutionFilters {
2878
2932
  * - cosine: Cosine distance - lower is more similar (1 - cosine similarity)
2879
2933
  * - inner_product: Negative inner product - lower is more similar
2880
2934
  */
2881
- type VectorMetric = 'l2' | 'cosine' | 'inner_product';
2935
+ type VectorMetric = "l2" | "cosine" | "inner_product";
2882
2936
  /**
2883
2937
  * Options for vector similarity ordering
2884
2938
  */
@@ -2952,11 +3006,11 @@ interface VectorSearchResult<T = Record<string, unknown>> {
2952
3006
  /**
2953
3007
  * Log level for execution logs
2954
3008
  */
2955
- type ExecutionLogLevel = 'debug' | 'info' | 'warn' | 'error';
3009
+ type ExecutionLogLevel = "debug" | "info" | "warn" | "error";
2956
3010
  /**
2957
3011
  * Execution type for log subscriptions
2958
3012
  */
2959
- type ExecutionType = 'function' | 'job' | 'rpc';
3013
+ type ExecutionType = "function" | "job" | "rpc";
2960
3014
  /**
2961
3015
  * Execution log event received from realtime subscription
2962
3016
  */
@@ -2992,15 +3046,15 @@ interface ExecutionLogConfig {
2992
3046
  /**
2993
3047
  * Branch status
2994
3048
  */
2995
- type BranchStatus = 'creating' | 'ready' | 'migrating' | 'error' | 'deleting' | 'deleted';
3049
+ type BranchStatus = "creating" | "ready" | "migrating" | "error" | "deleting" | "deleted";
2996
3050
  /**
2997
3051
  * Branch type
2998
3052
  */
2999
- type BranchType = 'main' | 'preview' | 'persistent';
3053
+ type BranchType = "main" | "preview" | "persistent";
3000
3054
  /**
3001
3055
  * Data clone mode when creating a branch
3002
3056
  */
3003
- type DataCloneMode = 'schema_only' | 'full_clone' | 'seed_data';
3057
+ type DataCloneMode = "schema_only" | "full_clone" | "seed_data";
3004
3058
  /**
3005
3059
  * Database branch information
3006
3060
  */
@@ -3094,7 +3148,7 @@ interface BranchActivity {
3094
3148
  /** Action performed */
3095
3149
  action: string;
3096
3150
  /** Activity status */
3097
- status: 'success' | 'failed' | 'pending';
3151
+ status: "success" | "failed" | "pending";
3098
3152
  /** Additional details */
3099
3153
  details?: Record<string, unknown>;
3100
3154
  /** User who performed the action */
@@ -3707,6 +3761,29 @@ declare class FluxbaseAuth {
3707
3761
  * @returns Promise with CAPTCHA configuration (provider, site key, enabled endpoints)
3708
3762
  */
3709
3763
  getCaptchaConfig(): Promise<DataResponse<CaptchaConfig>>;
3764
+ /**
3765
+ * Get comprehensive authentication configuration from the server
3766
+ * Returns all public auth settings including signup status, OAuth providers,
3767
+ * SAML providers, password requirements, and CAPTCHA config in a single request.
3768
+ *
3769
+ * Use this to:
3770
+ * - Conditionally render signup forms based on signup_enabled
3771
+ * - Display available OAuth/SAML provider buttons
3772
+ * - Show password requirements to users
3773
+ * - Configure CAPTCHA widgets
3774
+ *
3775
+ * @returns Promise with complete authentication configuration
3776
+ * @example
3777
+ * ```typescript
3778
+ * const { data, error } = await client.auth.getAuthConfig();
3779
+ * if (data) {
3780
+ * console.log('Signup enabled:', data.signup_enabled);
3781
+ * console.log('OAuth providers:', data.oauth_providers);
3782
+ * console.log('Password min length:', data.password_min_length);
3783
+ * }
3784
+ * ```
3785
+ */
3786
+ getAuthConfig(): Promise<DataResponse<AuthConfig>>;
3710
3787
  /**
3711
3788
  * Sign out the current user
3712
3789
  */
@@ -11385,4 +11462,4 @@ declare function isBoolean(value: unknown): value is boolean;
11385
11462
  */
11386
11463
  declare function assertType<T>(value: unknown, validator: (v: unknown) => v is T, errorMessage?: string): asserts value is T;
11387
11464
 
11388
- 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 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 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 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 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 };
11465
+ 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 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 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 };