@digilogiclabs/platform-core 1.26.0 → 1.27.0
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/README.md +12 -6
- package/dist/{ConsoleEmail-iJO7Cb_v.d.ts → ConsoleEmail-BRa76Bfm.d.ts} +3 -106
- package/dist/{ConsoleEmail-CgSIvRdj.d.mts → ConsoleEmail-DSmK5jbu.d.mts} +3 -106
- package/dist/IDatabase-yOhemn5C.d.mts +49 -0
- package/dist/IDatabase-yOhemn5C.d.ts +49 -0
- package/dist/IStorage-CcFAvKDp.d.mts +58 -0
- package/dist/IStorage-CcFAvKDp.d.ts +58 -0
- package/dist/adapters/supabase-auth.d.mts +2 -0
- package/dist/adapters/supabase-auth.d.ts +2 -0
- package/dist/adapters/supabase-auth.js +714 -0
- package/dist/adapters/supabase-auth.js.map +1 -0
- package/dist/adapters/supabase-auth.mjs +687 -0
- package/dist/adapters/supabase-auth.mjs.map +1 -0
- package/dist/adapters/supabase-storage.d.mts +93 -0
- package/dist/adapters/supabase-storage.d.ts +93 -0
- package/dist/adapters/supabase-storage.js +249 -0
- package/dist/adapters/supabase-storage.js.map +1 -0
- package/dist/adapters/supabase-storage.mjs +222 -0
- package/dist/adapters/supabase-storage.mjs.map +1 -0
- package/dist/adapters/supabase.d.mts +24 -0
- package/dist/adapters/supabase.d.ts +24 -0
- package/dist/adapters/supabase.js +218 -0
- package/dist/adapters/supabase.js.map +1 -0
- package/dist/adapters/supabase.mjs +191 -0
- package/dist/adapters/supabase.mjs.map +1 -0
- package/dist/index-cN9dgBsn.d.mts +612 -0
- package/dist/index-cN9dgBsn.d.ts +612 -0
- package/dist/index.d.mts +10 -717
- package/dist/index.d.ts +10 -717
- package/dist/index.js +12 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -5
- package/dist/index.mjs.map +1 -1
- package/dist/migrate.js +0 -0
- package/dist/testing.d.mts +5 -2
- package/dist/testing.d.ts +5 -2
- package/dist/testing.js +1 -0
- package/dist/testing.js.map +1 -1
- package/dist/testing.mjs +1 -0
- package/dist/testing.mjs.map +1 -1
- package/package.json +26 -11
package/dist/index.d.mts
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { aC as AIConfigSchema, av as AIProviderSchema, a1 as BackoffOptions, aJ as BulkheadConfigSchema, aT as CacheConfig, ay as CacheConfigSchema, ap as CacheProviderSchema, ae as ChunkingConfig, ac as ChunkingPresets, ad as ChunkingStrategy, aH as CircuitBreakerConfigSchema, C as ConsoleEmail, aj as CryptoAlgorithm, a_ as CryptoConfig, aE as CryptoConfigSchema, ai as CryptoKeyStatus, aS as DatabaseConfig, ax as DatabaseConfigSchema, ao as DatabaseProviderSchema, aV as EmailConfig, aA as EmailConfigSchema, ar as EmailProviderSchema, E as EnvSecrets, a7 as GetSecretOptions, a3 as HistogramStats, m as ISecrets, _ as JobContext, $ as JobEvent, Z as JobResult, au as LogLevelSchema, aL as LoggingConfigSchema, a as MemoryCache, M as MemoryDatabase, c as MemoryEmail, h as MemoryMetrics, d as MemoryQueue, ab as MemoryRAG, f as MemorySecrets, b as MemoryStorage, a2 as MetricTags, aM as MetricsConfigSchema, aZ as MiddlewareConfig, aP as MiddlewareConfigSchema, N as NoopMetrics, aY as ObservabilityConfig, aO as ObservabilityConfigSchema, aR as PlatformConfig, aQ as PlatformConfigSchema, aW as QueueConfig, aB as QueueConfigSchema, as as QueueProviderSchema, a0 as QueueStats, aD as RAGConfigSchema, ag as RAGFilter, ah as RAGPipelineStep, aw as RAGProviderSchema, aX as ResilienceConfig, aK as ResilienceConfigSchema, aG as RetryConfigSchema, a9 as RotateSecretOptions, aa as RotationResult, af as SearchMode, a5 as Secret, a6 as SecretMetadata, a$ as SecurityConfig, aF as SecurityConfigSchema, a8 as SetSecretOptions, aU as StorageConfig, az as StorageConfigSchema, aq as StorageProviderSchema, aI as TimeoutConfigSchema, a4 as TimingStats, aN as TracingConfigSchema, at as TracingProviderSchema, am as calculateBackoff, g as createPlatform, ak as createPlatformAsync, al as createScopedMetrics, an as generateJobId, b3 as getDefaultConfig, b0 as loadConfig, b2 as safeValidateConfig, b1 as validateConfig } from './ConsoleEmail-CgSIvRdj.mjs';
|
|
1
|
+
import { I as IDatabase, a as IQueryBuilder, Q as QueryResult } from './IDatabase-yOhemn5C.mjs';
|
|
3
2
|
import { I as ICache } from './ICache-BWSuTuhz.mjs';
|
|
4
3
|
export { a as ICacheOptions } from './ICache-BWSuTuhz.mjs';
|
|
4
|
+
import { I as IStorage, U as UploadOptions, S as StorageFile } from './IStorage-CcFAvKDp.mjs';
|
|
5
5
|
import { I as IEmail, E as EmailMessage, a as EmailResult } from './IEmail-CsOcaQcb.mjs';
|
|
6
6
|
export { b as EmailAddress, c as EmailAttachment } from './IEmail-CsOcaQcb.mjs';
|
|
7
|
+
import { i as IMetrics, I as IPlatform, P as PlatformHealthStatus, l as MetricsSummary, m as ICrypto, n as EncryptOptions, o as EncryptedField, D as DeterministicEncryptedField, K as KeyRotationResult, p as CryptoKeyMetadata, h as IQueue, k as JobOptions, J as Job, R as RepeatOptions, q as JobState, r as JobEventType, s as JobEventHandler, t as IRAG, u as RAGConfig, v as CreateCollectionOptions, w as RAGCollection, x as RAGDocument, y as IngestionOptions, B as BulkIngestionResult, z as IngestionResult, A as DocumentStatus, F as RAGChunk, G as RAGSearchQuery, H as RAGSearchResponse, L as RAGSearchResult, O as ContextAssemblyConfig, Q as AssembledContext, S as RAGPipeline } from './ConsoleEmail-DSmK5jbu.mjs';
|
|
8
|
+
export { aw as AIConfigSchema, ap as AIProviderSchema, X as BackoffOptions, aD as BulkheadConfigSchema, aN as CacheConfig, as as CacheConfigSchema, aj as CacheProviderSchema, a8 as ChunkingConfig, a6 as ChunkingPresets, a7 as ChunkingStrategy, aB as CircuitBreakerConfigSchema, C as ConsoleEmail, ad as CryptoAlgorithm, aU as CryptoConfig, ay as CryptoConfigSchema, ac as CryptoKeyStatus, aM as DatabaseConfig, ar as DatabaseConfigSchema, ai as DatabaseProviderSchema, aP as EmailConfig, au as EmailConfigSchema, al as EmailProviderSchema, E as EnvSecrets, a1 as GetSecretOptions, Z as HistogramStats, j as ISecrets, U as JobContext, V as JobEvent, T as JobResult, ao as LogLevelSchema, aF as LoggingConfigSchema, a as MemoryCache, M as MemoryDatabase, c as MemoryEmail, g as MemoryMetrics, d as MemoryQueue, a5 as MemoryRAG, e as MemorySecrets, b as MemoryStorage, Y as MetricTags, aG as MetricsConfigSchema, aT as MiddlewareConfig, aJ as MiddlewareConfigSchema, N as NoopMetrics, aS as ObservabilityConfig, aI as ObservabilityConfigSchema, aL as PlatformConfig, aK as PlatformConfigSchema, aQ as QueueConfig, av as QueueConfigSchema, am as QueueProviderSchema, W as QueueStats, ax as RAGConfigSchema, aa as RAGFilter, ab as RAGPipelineStep, aq as RAGProviderSchema, aR as ResilienceConfig, aE as ResilienceConfigSchema, aA as RetryConfigSchema, a3 as RotateSecretOptions, a4 as RotationResult, a9 as SearchMode, $ as Secret, a0 as SecretMetadata, aV as SecurityConfig, az as SecurityConfigSchema, a2 as SetSecretOptions, aO as StorageConfig, at as StorageConfigSchema, ak as StorageProviderSchema, aC as TimeoutConfigSchema, _ as TimingStats, aH as TracingConfigSchema, an as TracingProviderSchema, ag as calculateBackoff, f as createPlatform, ae as createPlatformAsync, af as createScopedMetrics, ah as generateJobId, aZ as getDefaultConfig, aW as loadConfig, aY as safeValidateConfig, aX as validateConfig } from './ConsoleEmail-DSmK5jbu.mjs';
|
|
7
9
|
import { I as ILogger } from './ILogger-DLDBZaH4.mjs';
|
|
8
10
|
export { C as ConsoleLogger, b as LogEntry, L as LogLevel, a as LogMeta, c as LoggerConfig, N as NoopLogger } from './ILogger-DLDBZaH4.mjs';
|
|
9
11
|
import { a as IAI, A as AIConfig, b as AIChatRequest, c as AIChatResponse, d as AIStreamChunk, e as AIStreamCallback, f as AICompletionRequest, g as AICompletionResponse, h as AIEmbeddingRequest, i as AIEmbeddingResponse, j as AIModelConfig, k as AIModelType, l as AIProvider } from './IAI-B7pp322X.mjs';
|
|
10
12
|
export { t as AIChatChoice, y as AIError, x as AIErrorCode, o as AIErrorMessages, u as AIFinishReason, q as AIMessage, p as AIRole, w as AIRouterConfig, s as AITool, r as AIToolCall, v as AIUsageInfo, B as ISpan, I as ITracing, M as MemoryAI, z as MemoryTracing, N as NoopTracing, R as RoutingStrategy, S as SpanContext, G as SpanEvent, E as SpanKind, C as SpanOptions, D as SpanStatus, F as SpanStatusCode, T as TracingConfig, m as createAIError, n as isAIError } from './IAI-B7pp322X.mjs';
|
|
11
13
|
export { w as IMigrationDatabase, I as IMigrator, q as Migration, r as MigrationRecord, t as MigrationResult, u as MigrationStatus, M as Migrator, v as MigratorConfig, S as SQL, o as createBetaInvitesTable, n as createBetaSettingsTable, p as createBetaTestersTable, f as createDomainVerificationsTable, c as createMigration, b as createSsoOidcConfigsTable, m as createSsoSessionsTable, k as createTenantInvitationsTable, j as createTenantMembersTable, l as createTenantUsageTable, i as createTenantsTable, h as createVerifiedDomainsTable, d as defineMigration, e as enterpriseMigrations, g as generateVersion, a as getEnterpriseMigrations, s as sqlMigration } from './index-DzQ0Js5Z.mjs';
|
|
14
|
+
import { A as AuthUser, a as AuthSession, b as AuthError, c as AuthResult } from './index-cN9dgBsn.mjs';
|
|
15
|
+
export { q as AuthConfig, d as AuthErrorCode, u as AuthErrorMessages, o as AuthEventType, p as AuthStateChangeCallback, r as AuthStorage, D as DeleteAccountOptions, E as EnrollMfaOptions, l as EnrollMfaResult, I as IAuth, w as MemoryAuth, k as MfaChallenge, j as MfaFactor, M as MfaFactorType, f as OAuthOptions, O as OAuthProvider, g as OAuthResult, R as ResetPasswordOptions, S as SignInWithEmailOptions, i as SignInWithMagicLinkOptions, h as SignInWithPhoneOptions, e as SignUpWithEmailOptions, x as SupabaseAuth, y as SupabaseAuthConfig, z as Unsubscribe, U as UpdatePasswordOptions, n as UpdateUserOptions, m as VerifyMfaOptions, V as VerifyPhoneOtpOptions, s as createAuthError, v as generateSecureToken, t as isAuthError } from './index-cN9dgBsn.mjs';
|
|
12
16
|
import { I as IAIUsage, A as AIUsageConfig, U as UsageRecord, a as UsageQuery, b as UsageQueryResult, Q as Quota, c as QuotaType, d as UsageCategory, e as QuotaStatus, B as Budget, f as BudgetStatus, g as UsageInterval, h as UsageSummary, i as UsageTrend, C as CostBreakdown, j as UsageInvoice, k as AlertType, l as UsageAlert } from './agents-C7FPA8y9.mjs';
|
|
13
17
|
export { G as AgentBudget, q as AgentCumulativeUsage, s as AgentIterationCallback, r as AgentIterationEvent, u as AgentLoopOptions, v as AgentLoopResult, t as AgentStopReason, o as AgentTool, p as AgentToolResult, y as AgentTracer, x as AgentTracerOptions, F as AgentUsageRecordParams, H as AgentUsageTracker, E as AgentUsageTrackerOptions, D as DEFAULT_AGENT_LOOP_OPTIONS, M as MemoryAIUsage, O as OllamaAdapter, n as OllamaAdapterConfig, T as ToolExecutor, K as TracedAIOptions, m as UsageInvoiceItem, z as createAgentTracer, J as createAgentUsageTracker, L as createTracedAI, w as runAgentLoop } from './agents-C7FPA8y9.mjs';
|
|
14
18
|
import { aS as IBeta, aT as BetaConfig, aU as BetaSettings, aV as UpdateBetaSettingsOptions, aW as CreateBetaCodesOptions, aX as BetaInviteCode, aY as ListBetaCodesOptions, aZ as BetaValidationResult, a_ as BetaConsumeResult, a$ as BetaTester, b0 as BetaStats, b1 as BetaCodeUsageReport } from './env-BJWliXSO.mjs';
|
|
@@ -16,15 +20,17 @@ export { al as AllowlistConfig, A as ApiError, d as ApiErrorCode, f as ApiErrorC
|
|
|
16
20
|
export { i as CircuitBreaker, C as CircuitBreakerOptions, k as CircuitBreakerRegistry, h as CircuitBreakerStats, g as CircuitOpenError, e as CircuitState, f as DEFAULT_CIRCUIT_BREAKER_OPTIONS, D as DEFAULT_RETRY_OPTIONS, d as RetryConfigs, R as RetryOptions, c as RetryPredicates, a as RetryResult, j as createCircuitBreaker, r as retryable, w as withRetry, b as withRetryResult } from './circuit-breaker-CsQivd57.mjs';
|
|
17
21
|
export { H as HTML_TAG_PATTERN, k as URL_DOMAIN_PATTERN, U as URL_PROTOCOL_PATTERN, c as constantTimeEqual, b as containsHtml, a as containsUrls, i as defangUrl, e as escapeHtml, h as getCorrelationId, g as sanitizeApiError, j as sanitizeForEmail, s as stripHtml, d as stripNullBytes, f as stripNullBytesDeep } from './security-DMUNYqQI.mjs';
|
|
18
22
|
export { NextHeaderEntry, SecurityHeaderPresets, SecurityHeadersConfig, generateSecurityHeaders } from './security-headers.mjs';
|
|
19
|
-
|
|
23
|
+
export { SupabaseDatabase } from './adapters/supabase.mjs';
|
|
20
24
|
import { Pool } from 'pg';
|
|
21
25
|
import { Redis } from '@upstash/redis';
|
|
22
26
|
import Redis$2, { Redis as Redis$1 } from 'ioredis';
|
|
23
27
|
import { S3Client } from '@aws-sdk/client-s3';
|
|
24
28
|
import { getSignedUrl } from '@aws-sdk/s3-request-presigner';
|
|
29
|
+
export { SupabaseStorage, SupabaseStorageConfig } from './adapters/supabase-storage.mjs';
|
|
25
30
|
import { Resend } from 'resend';
|
|
26
31
|
import Stripe from 'stripe';
|
|
27
32
|
import 'zod';
|
|
33
|
+
import '@supabase/supabase-js';
|
|
28
34
|
|
|
29
35
|
/**
|
|
30
36
|
* Health Check Interface
|
|
@@ -1780,547 +1786,6 @@ declare const NotificationTemplates: {
|
|
|
1780
1786
|
readonly subscriptionExpiring: (daysLeft: number) => NotificationData;
|
|
1781
1787
|
};
|
|
1782
1788
|
|
|
1783
|
-
/**
|
|
1784
|
-
* Authentication Interface
|
|
1785
|
-
*
|
|
1786
|
-
* Provides a vendor-agnostic abstraction for authentication.
|
|
1787
|
-
* Supports various backends: Supabase, Firebase, Auth0, Clerk,
|
|
1788
|
-
* AWS Cognito, Azure AD, custom JWT, etc.
|
|
1789
|
-
*
|
|
1790
|
-
* @example
|
|
1791
|
-
* ```typescript
|
|
1792
|
-
* // Get current user
|
|
1793
|
-
* const user = await auth.getCurrentUser()
|
|
1794
|
-
*
|
|
1795
|
-
* // Sign in with email
|
|
1796
|
-
* const result = await auth.signInWithEmail({
|
|
1797
|
-
* email: 'user@example.com',
|
|
1798
|
-
* password: 'password',
|
|
1799
|
-
* })
|
|
1800
|
-
*
|
|
1801
|
-
* // Sign in with OAuth
|
|
1802
|
-
* const oauth = await auth.signInWithOAuth('google', {
|
|
1803
|
-
* redirectTo: 'https://myapp.com/callback',
|
|
1804
|
-
* })
|
|
1805
|
-
* window.location.href = oauth.url
|
|
1806
|
-
* ```
|
|
1807
|
-
*/
|
|
1808
|
-
/**
|
|
1809
|
-
* Authenticated user
|
|
1810
|
-
*/
|
|
1811
|
-
interface AuthUser {
|
|
1812
|
-
/** Unique user identifier */
|
|
1813
|
-
id: string;
|
|
1814
|
-
/** User email address */
|
|
1815
|
-
email: string | null;
|
|
1816
|
-
/** Whether email has been verified */
|
|
1817
|
-
emailVerified: boolean;
|
|
1818
|
-
/** User phone number */
|
|
1819
|
-
phone?: string | null;
|
|
1820
|
-
/** Whether phone has been verified */
|
|
1821
|
-
phoneVerified?: boolean;
|
|
1822
|
-
/** User display name */
|
|
1823
|
-
displayName?: string | null;
|
|
1824
|
-
/** User avatar URL */
|
|
1825
|
-
avatarUrl?: string | null;
|
|
1826
|
-
/** User metadata (provider-specific) */
|
|
1827
|
-
metadata: Record<string, unknown>;
|
|
1828
|
-
/** Account creation timestamp */
|
|
1829
|
-
createdAt: Date;
|
|
1830
|
-
/** Last sign-in timestamp */
|
|
1831
|
-
lastSignInAt?: Date;
|
|
1832
|
-
}
|
|
1833
|
-
/**
|
|
1834
|
-
* Authentication session
|
|
1835
|
-
*/
|
|
1836
|
-
interface AuthSession {
|
|
1837
|
-
/** Access token for API calls */
|
|
1838
|
-
accessToken: string;
|
|
1839
|
-
/** Refresh token for renewing session */
|
|
1840
|
-
refreshToken?: string;
|
|
1841
|
-
/** Token type (usually 'Bearer') */
|
|
1842
|
-
tokenType?: string;
|
|
1843
|
-
/** Session expiration timestamp */
|
|
1844
|
-
expiresAt: Date;
|
|
1845
|
-
/** Authenticated user */
|
|
1846
|
-
user: AuthUser;
|
|
1847
|
-
}
|
|
1848
|
-
/**
|
|
1849
|
-
* Result of authentication operation
|
|
1850
|
-
*/
|
|
1851
|
-
interface AuthResult {
|
|
1852
|
-
/** Whether the operation succeeded */
|
|
1853
|
-
success: boolean;
|
|
1854
|
-
/** Authenticated user (if successful) */
|
|
1855
|
-
user?: AuthUser;
|
|
1856
|
-
/** Session data (if successful) */
|
|
1857
|
-
session?: AuthSession;
|
|
1858
|
-
/** Error details (if failed) */
|
|
1859
|
-
error?: AuthError;
|
|
1860
|
-
/** Whether email verification is required */
|
|
1861
|
-
needsEmailVerification?: boolean;
|
|
1862
|
-
/** Whether MFA is required */
|
|
1863
|
-
needsMfa?: boolean;
|
|
1864
|
-
/** MFA challenge data */
|
|
1865
|
-
mfaChallenge?: MfaChallenge;
|
|
1866
|
-
}
|
|
1867
|
-
/**
|
|
1868
|
-
* Authentication error
|
|
1869
|
-
*/
|
|
1870
|
-
interface AuthError {
|
|
1871
|
-
/** Error code */
|
|
1872
|
-
code: AuthErrorCode;
|
|
1873
|
-
/** Human-readable error message */
|
|
1874
|
-
message: string;
|
|
1875
|
-
/** Original provider error (for debugging) */
|
|
1876
|
-
originalError?: unknown;
|
|
1877
|
-
}
|
|
1878
|
-
/**
|
|
1879
|
-
* Standard authentication error codes
|
|
1880
|
-
*/
|
|
1881
|
-
type AuthErrorCode = "invalid_credentials" | "user_not_found" | "user_disabled" | "email_not_confirmed" | "email_already_exists" | "phone_already_exists" | "weak_password" | "expired_token" | "invalid_token" | "session_expired" | "rate_limited" | "mfa_required" | "mfa_invalid" | "oauth_error" | "network_error" | "server_error" | "unknown_error";
|
|
1882
|
-
/**
|
|
1883
|
-
* Options for signing in with email/password
|
|
1884
|
-
*/
|
|
1885
|
-
interface SignInWithEmailOptions {
|
|
1886
|
-
/** User email address */
|
|
1887
|
-
email: string;
|
|
1888
|
-
/** User password */
|
|
1889
|
-
password: string;
|
|
1890
|
-
/** CAPTCHA token for bot protection */
|
|
1891
|
-
captchaToken?: string;
|
|
1892
|
-
}
|
|
1893
|
-
/**
|
|
1894
|
-
* Options for signing up with email/password
|
|
1895
|
-
*/
|
|
1896
|
-
interface SignUpWithEmailOptions {
|
|
1897
|
-
/** User email address */
|
|
1898
|
-
email: string;
|
|
1899
|
-
/** User password */
|
|
1900
|
-
password: string;
|
|
1901
|
-
/** User metadata to store */
|
|
1902
|
-
metadata?: Record<string, unknown>;
|
|
1903
|
-
/** Redirect URL after email verification */
|
|
1904
|
-
emailRedirectTo?: string;
|
|
1905
|
-
/** CAPTCHA token for bot protection */
|
|
1906
|
-
captchaToken?: string;
|
|
1907
|
-
}
|
|
1908
|
-
/**
|
|
1909
|
-
* Options for password reset
|
|
1910
|
-
*/
|
|
1911
|
-
interface ResetPasswordOptions {
|
|
1912
|
-
/** User email address */
|
|
1913
|
-
email: string;
|
|
1914
|
-
/** Redirect URL after password reset */
|
|
1915
|
-
redirectTo?: string;
|
|
1916
|
-
/** CAPTCHA token for bot protection */
|
|
1917
|
-
captchaToken?: string;
|
|
1918
|
-
}
|
|
1919
|
-
/**
|
|
1920
|
-
* Options for updating password
|
|
1921
|
-
*/
|
|
1922
|
-
interface UpdatePasswordOptions {
|
|
1923
|
-
/** New password */
|
|
1924
|
-
password: string;
|
|
1925
|
-
/** Current password (for reauthentication) */
|
|
1926
|
-
currentPassword?: string;
|
|
1927
|
-
}
|
|
1928
|
-
/**
|
|
1929
|
-
* Supported OAuth providers
|
|
1930
|
-
*/
|
|
1931
|
-
type OAuthProvider = "google" | "github" | "gitlab" | "bitbucket" | "azure" | "facebook" | "twitter" | "discord" | "linkedin" | "apple" | "spotify" | "slack" | "notion" | "figma" | "zoom" | "twitch";
|
|
1932
|
-
/**
|
|
1933
|
-
* Options for OAuth sign-in
|
|
1934
|
-
*/
|
|
1935
|
-
interface OAuthOptions {
|
|
1936
|
-
/** Redirect URL after OAuth */
|
|
1937
|
-
redirectTo?: string;
|
|
1938
|
-
/** OAuth scopes to request */
|
|
1939
|
-
scopes?: string;
|
|
1940
|
-
/** Additional query parameters */
|
|
1941
|
-
queryParams?: Record<string, string>;
|
|
1942
|
-
}
|
|
1943
|
-
/**
|
|
1944
|
-
* Result of OAuth sign-in initiation
|
|
1945
|
-
*/
|
|
1946
|
-
interface OAuthResult {
|
|
1947
|
-
/** URL to redirect user to */
|
|
1948
|
-
url: string;
|
|
1949
|
-
/** Provider used */
|
|
1950
|
-
provider: OAuthProvider;
|
|
1951
|
-
/** State parameter for CSRF protection */
|
|
1952
|
-
state?: string;
|
|
1953
|
-
}
|
|
1954
|
-
/**
|
|
1955
|
-
* Options for signing in with phone
|
|
1956
|
-
*/
|
|
1957
|
-
interface SignInWithPhoneOptions {
|
|
1958
|
-
/** Phone number (E.164 format) */
|
|
1959
|
-
phone: string;
|
|
1960
|
-
/** CAPTCHA token for bot protection */
|
|
1961
|
-
captchaToken?: string;
|
|
1962
|
-
}
|
|
1963
|
-
/**
|
|
1964
|
-
* Options for verifying phone OTP
|
|
1965
|
-
*/
|
|
1966
|
-
interface VerifyPhoneOtpOptions {
|
|
1967
|
-
/** Phone number (E.164 format) */
|
|
1968
|
-
phone: string;
|
|
1969
|
-
/** OTP code */
|
|
1970
|
-
token: string;
|
|
1971
|
-
/** Type of verification */
|
|
1972
|
-
type: "sms" | "phone_change";
|
|
1973
|
-
}
|
|
1974
|
-
/**
|
|
1975
|
-
* Options for magic link sign-in
|
|
1976
|
-
*/
|
|
1977
|
-
interface SignInWithMagicLinkOptions {
|
|
1978
|
-
/** User email address */
|
|
1979
|
-
email: string;
|
|
1980
|
-
/** Redirect URL after clicking link */
|
|
1981
|
-
redirectTo?: string;
|
|
1982
|
-
/** CAPTCHA token for bot protection */
|
|
1983
|
-
captchaToken?: string;
|
|
1984
|
-
}
|
|
1985
|
-
/**
|
|
1986
|
-
* MFA factor types
|
|
1987
|
-
*/
|
|
1988
|
-
type MfaFactorType = "totp" | "phone" | "webauthn";
|
|
1989
|
-
/**
|
|
1990
|
-
* MFA factor
|
|
1991
|
-
*/
|
|
1992
|
-
interface MfaFactor {
|
|
1993
|
-
/** Factor ID */
|
|
1994
|
-
id: string;
|
|
1995
|
-
/** Factor type */
|
|
1996
|
-
type: MfaFactorType;
|
|
1997
|
-
/** Factor name/label */
|
|
1998
|
-
name?: string;
|
|
1999
|
-
/** Whether factor is verified */
|
|
2000
|
-
verified: boolean;
|
|
2001
|
-
/** Creation timestamp */
|
|
2002
|
-
createdAt: Date;
|
|
2003
|
-
}
|
|
2004
|
-
/**
|
|
2005
|
-
* MFA challenge
|
|
2006
|
-
*/
|
|
2007
|
-
interface MfaChallenge {
|
|
2008
|
-
/** Challenge ID */
|
|
2009
|
-
id: string;
|
|
2010
|
-
/** Factor ID being verified */
|
|
2011
|
-
factorId: string;
|
|
2012
|
-
/** Factor type */
|
|
2013
|
-
type: MfaFactorType;
|
|
2014
|
-
/** Challenge expiration */
|
|
2015
|
-
expiresAt: Date;
|
|
2016
|
-
}
|
|
2017
|
-
/**
|
|
2018
|
-
* Options for enrolling MFA
|
|
2019
|
-
*/
|
|
2020
|
-
interface EnrollMfaOptions {
|
|
2021
|
-
/** Factor type to enroll */
|
|
2022
|
-
type: MfaFactorType;
|
|
2023
|
-
/** Friendly name for the factor */
|
|
2024
|
-
friendlyName?: string;
|
|
2025
|
-
/** Phone number (for SMS MFA) */
|
|
2026
|
-
phone?: string;
|
|
2027
|
-
}
|
|
2028
|
-
/**
|
|
2029
|
-
* Result of MFA enrollment
|
|
2030
|
-
*/
|
|
2031
|
-
interface EnrollMfaResult {
|
|
2032
|
-
/** Factor ID */
|
|
2033
|
-
factorId: string;
|
|
2034
|
-
/** TOTP secret (for TOTP enrollment) */
|
|
2035
|
-
totpSecret?: string;
|
|
2036
|
-
/** TOTP QR code URI */
|
|
2037
|
-
totpQrCode?: string;
|
|
2038
|
-
/** Whether verification is required */
|
|
2039
|
-
needsVerification: boolean;
|
|
2040
|
-
}
|
|
2041
|
-
/**
|
|
2042
|
-
* Options for verifying MFA
|
|
2043
|
-
*/
|
|
2044
|
-
interface VerifyMfaOptions {
|
|
2045
|
-
/** Factor ID */
|
|
2046
|
-
factorId: string;
|
|
2047
|
-
/** Challenge ID (if responding to challenge) */
|
|
2048
|
-
challengeId?: string;
|
|
2049
|
-
/** Verification code */
|
|
2050
|
-
code: string;
|
|
2051
|
-
}
|
|
2052
|
-
/**
|
|
2053
|
-
* Options for updating user profile
|
|
2054
|
-
*/
|
|
2055
|
-
interface UpdateUserOptions {
|
|
2056
|
-
/** New email address */
|
|
2057
|
-
email?: string;
|
|
2058
|
-
/** New phone number */
|
|
2059
|
-
phone?: string;
|
|
2060
|
-
/** New display name */
|
|
2061
|
-
displayName?: string;
|
|
2062
|
-
/** New avatar URL */
|
|
2063
|
-
avatarUrl?: string;
|
|
2064
|
-
/** Additional metadata */
|
|
2065
|
-
metadata?: Record<string, unknown>;
|
|
2066
|
-
}
|
|
2067
|
-
/**
|
|
2068
|
-
* Options for deleting account
|
|
2069
|
-
*/
|
|
2070
|
-
interface DeleteAccountOptions {
|
|
2071
|
-
/** Current password (for reauthentication) */
|
|
2072
|
-
password?: string;
|
|
2073
|
-
/** Reason for deletion */
|
|
2074
|
-
reason?: string;
|
|
2075
|
-
}
|
|
2076
|
-
/**
|
|
2077
|
-
* Auth state change event types
|
|
2078
|
-
*/
|
|
2079
|
-
type AuthEventType = "SIGNED_IN" | "SIGNED_OUT" | "TOKEN_REFRESHED" | "USER_UPDATED" | "PASSWORD_RECOVERY" | "MFA_CHALLENGE_VERIFIED";
|
|
2080
|
-
/**
|
|
2081
|
-
* Auth state change callback
|
|
2082
|
-
*/
|
|
2083
|
-
type AuthStateChangeCallback = (event: AuthEventType, session: AuthSession | null) => void;
|
|
2084
|
-
/**
|
|
2085
|
-
* Unsubscribe function
|
|
2086
|
-
*/
|
|
2087
|
-
type Unsubscribe = () => void;
|
|
2088
|
-
/**
|
|
2089
|
-
* Auth configuration options
|
|
2090
|
-
*/
|
|
2091
|
-
interface AuthConfig {
|
|
2092
|
-
/** Auto-refresh sessions before expiry */
|
|
2093
|
-
autoRefreshToken?: boolean;
|
|
2094
|
-
/** Persist sessions to storage */
|
|
2095
|
-
persistSession?: boolean;
|
|
2096
|
-
/** Storage key for session */
|
|
2097
|
-
storageKey?: string;
|
|
2098
|
-
/** Custom storage implementation */
|
|
2099
|
-
storage?: AuthStorage;
|
|
2100
|
-
/** MFA configuration */
|
|
2101
|
-
mfa?: {
|
|
2102
|
-
/** Enabled MFA types */
|
|
2103
|
-
enabledTypes?: MfaFactorType[];
|
|
2104
|
-
/** Require MFA for all users */
|
|
2105
|
-
required?: boolean;
|
|
2106
|
-
};
|
|
2107
|
-
}
|
|
2108
|
-
/**
|
|
2109
|
-
* Auth storage interface (for session persistence)
|
|
2110
|
-
*/
|
|
2111
|
-
interface AuthStorage {
|
|
2112
|
-
getItem(key: string): Promise<string | null> | string | null;
|
|
2113
|
-
setItem(key: string, value: string): Promise<void> | void;
|
|
2114
|
-
removeItem(key: string): Promise<void> | void;
|
|
2115
|
-
}
|
|
2116
|
-
/**
|
|
2117
|
-
* Authentication Provider Interface
|
|
2118
|
-
*
|
|
2119
|
-
* Provides a vendor-agnostic abstraction for authentication operations.
|
|
2120
|
-
*/
|
|
2121
|
-
interface IAuth {
|
|
2122
|
-
/**
|
|
2123
|
-
* Get the current authenticated user
|
|
2124
|
-
* @returns The current user or null if not authenticated
|
|
2125
|
-
*/
|
|
2126
|
-
getCurrentUser(): Promise<AuthUser | null>;
|
|
2127
|
-
/**
|
|
2128
|
-
* Get the current session
|
|
2129
|
-
* @returns The current session or null if not authenticated
|
|
2130
|
-
*/
|
|
2131
|
-
getSession(): Promise<AuthSession | null>;
|
|
2132
|
-
/**
|
|
2133
|
-
* Refresh the current session
|
|
2134
|
-
* @returns The refreshed session or null if refresh failed
|
|
2135
|
-
*/
|
|
2136
|
-
refreshSession(): Promise<AuthSession | null>;
|
|
2137
|
-
/**
|
|
2138
|
-
* Sign out the current user
|
|
2139
|
-
* @param options Scope of sign out (local or global)
|
|
2140
|
-
*/
|
|
2141
|
-
signOut(options?: {
|
|
2142
|
-
scope?: "local" | "global";
|
|
2143
|
-
}): Promise<void>;
|
|
2144
|
-
/**
|
|
2145
|
-
* Sign in with email and password
|
|
2146
|
-
* @param options Sign-in options
|
|
2147
|
-
*/
|
|
2148
|
-
signInWithEmail(options: SignInWithEmailOptions): Promise<AuthResult>;
|
|
2149
|
-
/**
|
|
2150
|
-
* Sign up with email and password
|
|
2151
|
-
* @param options Sign-up options
|
|
2152
|
-
*/
|
|
2153
|
-
signUpWithEmail(options: SignUpWithEmailOptions): Promise<AuthResult>;
|
|
2154
|
-
/**
|
|
2155
|
-
* Send a password reset email
|
|
2156
|
-
* @param options Password reset options
|
|
2157
|
-
*/
|
|
2158
|
-
resetPassword(options: ResetPasswordOptions): Promise<AuthResult>;
|
|
2159
|
-
/**
|
|
2160
|
-
* Update the current user's password
|
|
2161
|
-
* @param options Password update options
|
|
2162
|
-
*/
|
|
2163
|
-
updatePassword(options: UpdatePasswordOptions): Promise<AuthResult>;
|
|
2164
|
-
/**
|
|
2165
|
-
* Initiate OAuth sign-in with a provider
|
|
2166
|
-
* @param provider OAuth provider
|
|
2167
|
-
* @param options OAuth options
|
|
2168
|
-
* @returns URL to redirect user to
|
|
2169
|
-
*/
|
|
2170
|
-
signInWithOAuth(provider: OAuthProvider, options?: OAuthOptions): Promise<OAuthResult>;
|
|
2171
|
-
/**
|
|
2172
|
-
* Handle OAuth callback (exchange code for session)
|
|
2173
|
-
* @param code Authorization code from callback
|
|
2174
|
-
*/
|
|
2175
|
-
handleOAuthCallback(code: string): Promise<AuthResult>;
|
|
2176
|
-
/**
|
|
2177
|
-
* Send a magic link email
|
|
2178
|
-
* @param options Magic link options
|
|
2179
|
-
*/
|
|
2180
|
-
signInWithMagicLink(options: SignInWithMagicLinkOptions): Promise<AuthResult>;
|
|
2181
|
-
/**
|
|
2182
|
-
* Verify a magic link token
|
|
2183
|
-
* @param token Token from magic link
|
|
2184
|
-
*/
|
|
2185
|
-
verifyMagicLink(token: string): Promise<AuthResult>;
|
|
2186
|
-
/**
|
|
2187
|
-
* Send OTP to phone number
|
|
2188
|
-
* @param options Phone sign-in options
|
|
2189
|
-
*/
|
|
2190
|
-
signInWithPhone(options: SignInWithPhoneOptions): Promise<AuthResult>;
|
|
2191
|
-
/**
|
|
2192
|
-
* Verify phone OTP
|
|
2193
|
-
* @param options OTP verification options
|
|
2194
|
-
*/
|
|
2195
|
-
verifyPhoneOtp(options: VerifyPhoneOtpOptions): Promise<AuthResult>;
|
|
2196
|
-
/**
|
|
2197
|
-
* Verify email with token
|
|
2198
|
-
* @param token Verification token from email
|
|
2199
|
-
*/
|
|
2200
|
-
verifyEmail(token: string): Promise<AuthResult>;
|
|
2201
|
-
/**
|
|
2202
|
-
* Resend email verification
|
|
2203
|
-
* @param email Email address to send verification to
|
|
2204
|
-
*/
|
|
2205
|
-
resendVerification(email: string): Promise<AuthResult>;
|
|
2206
|
-
/**
|
|
2207
|
-
* List user's MFA factors
|
|
2208
|
-
*/
|
|
2209
|
-
listMfaFactors(): Promise<MfaFactor[]>;
|
|
2210
|
-
/**
|
|
2211
|
-
* Enroll a new MFA factor
|
|
2212
|
-
* @param options Enrollment options
|
|
2213
|
-
*/
|
|
2214
|
-
enrollMfa(options: EnrollMfaOptions): Promise<EnrollMfaResult>;
|
|
2215
|
-
/**
|
|
2216
|
-
* Verify MFA factor
|
|
2217
|
-
* @param options Verification options
|
|
2218
|
-
*/
|
|
2219
|
-
verifyMfa(options: VerifyMfaOptions): Promise<AuthResult>;
|
|
2220
|
-
/**
|
|
2221
|
-
* Unenroll an MFA factor
|
|
2222
|
-
* @param factorId Factor to remove
|
|
2223
|
-
*/
|
|
2224
|
-
unenrollMfa(factorId: string): Promise<void>;
|
|
2225
|
-
/**
|
|
2226
|
-
* Create MFA challenge
|
|
2227
|
-
* @param factorId Factor to challenge
|
|
2228
|
-
*/
|
|
2229
|
-
createMfaChallenge(factorId: string): Promise<MfaChallenge>;
|
|
2230
|
-
/**
|
|
2231
|
-
* Update user profile
|
|
2232
|
-
* @param options Profile update options
|
|
2233
|
-
*/
|
|
2234
|
-
updateUser(options: UpdateUserOptions): Promise<AuthResult>;
|
|
2235
|
-
/**
|
|
2236
|
-
* Delete user account
|
|
2237
|
-
* @param options Deletion options
|
|
2238
|
-
*/
|
|
2239
|
-
deleteAccount(options?: DeleteAccountOptions): Promise<AuthResult>;
|
|
2240
|
-
/**
|
|
2241
|
-
* Reauthenticate user (for sensitive operations)
|
|
2242
|
-
* @param password Current password
|
|
2243
|
-
*/
|
|
2244
|
-
reauthenticate(password: string): Promise<AuthResult>;
|
|
2245
|
-
/**
|
|
2246
|
-
* Subscribe to auth state changes
|
|
2247
|
-
* @param callback Callback for state changes
|
|
2248
|
-
* @returns Unsubscribe function
|
|
2249
|
-
*/
|
|
2250
|
-
onAuthStateChange(callback: AuthStateChangeCallback): Unsubscribe;
|
|
2251
|
-
/**
|
|
2252
|
-
* Check auth provider health
|
|
2253
|
-
*/
|
|
2254
|
-
healthCheck(): Promise<boolean>;
|
|
2255
|
-
}
|
|
2256
|
-
/**
|
|
2257
|
-
* Map a provider error to a normalized AuthError
|
|
2258
|
-
*/
|
|
2259
|
-
declare function createAuthError(code: AuthErrorCode, message: string, originalError?: unknown): AuthError;
|
|
2260
|
-
/**
|
|
2261
|
-
* Check if an error is an AuthError
|
|
2262
|
-
*/
|
|
2263
|
-
declare function isAuthError(error: unknown): error is AuthError;
|
|
2264
|
-
/**
|
|
2265
|
-
* Standard error messages
|
|
2266
|
-
*/
|
|
2267
|
-
declare const AuthErrorMessages: Record<AuthErrorCode, string>;
|
|
2268
|
-
/**
|
|
2269
|
-
* Generate a secure random string
|
|
2270
|
-
*/
|
|
2271
|
-
declare function generateSecureToken(length?: number): string;
|
|
2272
|
-
/**
|
|
2273
|
-
* Memory-based Auth Adapter
|
|
2274
|
-
* For testing purposes - stores users and sessions in memory
|
|
2275
|
-
*/
|
|
2276
|
-
declare class MemoryAuth implements IAuth {
|
|
2277
|
-
private users;
|
|
2278
|
-
private sessions;
|
|
2279
|
-
private currentUserId;
|
|
2280
|
-
private listeners;
|
|
2281
|
-
private mfaFactors;
|
|
2282
|
-
/**
|
|
2283
|
-
* Seed a test user
|
|
2284
|
-
*/
|
|
2285
|
-
seedUser(user: AuthUser, password: string): void;
|
|
2286
|
-
/**
|
|
2287
|
-
* Clear all data (for testing)
|
|
2288
|
-
*/
|
|
2289
|
-
clear(): void;
|
|
2290
|
-
/**
|
|
2291
|
-
* Get all users (for testing)
|
|
2292
|
-
*/
|
|
2293
|
-
getUsers(): AuthUser[];
|
|
2294
|
-
getCurrentUser(): Promise<AuthUser | null>;
|
|
2295
|
-
getSession(): Promise<AuthSession | null>;
|
|
2296
|
-
refreshSession(): Promise<AuthSession | null>;
|
|
2297
|
-
signOut(): Promise<void>;
|
|
2298
|
-
signInWithEmail(options: SignInWithEmailOptions): Promise<AuthResult>;
|
|
2299
|
-
signUpWithEmail(options: SignUpWithEmailOptions): Promise<AuthResult>;
|
|
2300
|
-
resetPassword(_options: ResetPasswordOptions): Promise<AuthResult>;
|
|
2301
|
-
updatePassword(options: UpdatePasswordOptions): Promise<AuthResult>;
|
|
2302
|
-
signInWithOAuth(provider: OAuthProvider, options?: OAuthOptions): Promise<OAuthResult>;
|
|
2303
|
-
handleOAuthCallback(_code: string): Promise<AuthResult>;
|
|
2304
|
-
signInWithMagicLink(_options: SignInWithMagicLinkOptions): Promise<AuthResult>;
|
|
2305
|
-
verifyMagicLink(_token: string): Promise<AuthResult>;
|
|
2306
|
-
signInWithPhone(_options: SignInWithPhoneOptions): Promise<AuthResult>;
|
|
2307
|
-
verifyPhoneOtp(_options: VerifyPhoneOtpOptions): Promise<AuthResult>;
|
|
2308
|
-
verifyEmail(_token: string): Promise<AuthResult>;
|
|
2309
|
-
resendVerification(_email: string): Promise<AuthResult>;
|
|
2310
|
-
listMfaFactors(): Promise<MfaFactor[]>;
|
|
2311
|
-
enrollMfa(options: EnrollMfaOptions): Promise<EnrollMfaResult>;
|
|
2312
|
-
verifyMfa(options: VerifyMfaOptions): Promise<AuthResult>;
|
|
2313
|
-
unenrollMfa(factorId: string): Promise<void>;
|
|
2314
|
-
createMfaChallenge(factorId: string): Promise<MfaChallenge>;
|
|
2315
|
-
updateUser(options: UpdateUserOptions): Promise<AuthResult>;
|
|
2316
|
-
deleteAccount(_options?: DeleteAccountOptions): Promise<AuthResult>;
|
|
2317
|
-
reauthenticate(password: string): Promise<AuthResult>;
|
|
2318
|
-
onAuthStateChange(callback: AuthStateChangeCallback): Unsubscribe;
|
|
2319
|
-
healthCheck(): Promise<boolean>;
|
|
2320
|
-
private createSession;
|
|
2321
|
-
private notifyListeners;
|
|
2322
|
-
}
|
|
2323
|
-
|
|
2324
1789
|
/**
|
|
2325
1790
|
* Payment Interface
|
|
2326
1791
|
*
|
|
@@ -9854,21 +9319,6 @@ declare class MemoryCrypto implements ICrypto {
|
|
|
9854
9319
|
private generateKeyId;
|
|
9855
9320
|
}
|
|
9856
9321
|
|
|
9857
|
-
/**
|
|
9858
|
-
* Supabase Database Adapter
|
|
9859
|
-
* Production implementation using Supabase as the database provider
|
|
9860
|
-
*/
|
|
9861
|
-
|
|
9862
|
-
declare class SupabaseDatabase implements IDatabase {
|
|
9863
|
-
private client;
|
|
9864
|
-
constructor(client: SupabaseClient);
|
|
9865
|
-
from<T = unknown>(table: string): IQueryBuilder<T>;
|
|
9866
|
-
raw<T = unknown>(sql: string, params?: unknown[]): Promise<QueryResult<T>>;
|
|
9867
|
-
transaction<T>(fn: (tx: IDatabase) => Promise<T>): Promise<T>;
|
|
9868
|
-
healthCheck(): Promise<boolean>;
|
|
9869
|
-
close(): Promise<void>;
|
|
9870
|
-
}
|
|
9871
|
-
|
|
9872
9322
|
/**
|
|
9873
9323
|
* PostgreSQL Direct Database Adapter
|
|
9874
9324
|
*
|
|
@@ -10128,95 +9578,6 @@ declare class S3Storage implements IStorage {
|
|
|
10128
9578
|
healthCheck(): Promise<boolean>;
|
|
10129
9579
|
}
|
|
10130
9580
|
|
|
10131
|
-
/**
|
|
10132
|
-
* Supabase Storage Adapter
|
|
10133
|
-
*
|
|
10134
|
-
* Production implementation using Supabase Storage for file management.
|
|
10135
|
-
* Provides vendor-agnostic file storage via Supabase's storage buckets.
|
|
10136
|
-
*
|
|
10137
|
-
* Features:
|
|
10138
|
-
* - Simple bucket-based file storage
|
|
10139
|
-
* - Automatic public URL generation
|
|
10140
|
-
* - Signed URL support for private files
|
|
10141
|
-
* - Built-in CDN caching
|
|
10142
|
-
*/
|
|
10143
|
-
|
|
10144
|
-
interface SupabaseStorageConfig {
|
|
10145
|
-
/** Supabase project URL */
|
|
10146
|
-
url: string;
|
|
10147
|
-
/** Supabase API key (anon or service role) */
|
|
10148
|
-
apiKey: string;
|
|
10149
|
-
/** Default bucket name */
|
|
10150
|
-
bucket: string;
|
|
10151
|
-
/** Whether the bucket is public */
|
|
10152
|
-
publicBucket?: boolean;
|
|
10153
|
-
/** Default signed URL expiry in seconds */
|
|
10154
|
-
signedUrlExpiry?: number;
|
|
10155
|
-
}
|
|
10156
|
-
declare class SupabaseStorage implements IStorage {
|
|
10157
|
-
private client;
|
|
10158
|
-
private bucket;
|
|
10159
|
-
private publicBucket;
|
|
10160
|
-
private signedUrlExpiry;
|
|
10161
|
-
constructor(client: SupabaseClient, config: {
|
|
10162
|
-
bucket: string;
|
|
10163
|
-
publicBucket?: boolean;
|
|
10164
|
-
signedUrlExpiry?: number;
|
|
10165
|
-
});
|
|
10166
|
-
/**
|
|
10167
|
-
* Create a SupabaseStorage adapter from configuration
|
|
10168
|
-
*/
|
|
10169
|
-
static create(config: SupabaseStorageConfig): Promise<SupabaseStorage>;
|
|
10170
|
-
/**
|
|
10171
|
-
* Create from environment variables
|
|
10172
|
-
*/
|
|
10173
|
-
static fromEnv(): Promise<SupabaseStorage>;
|
|
10174
|
-
upload(key: string, data: Buffer | Blob | ReadableStream, options?: UploadOptions): Promise<{
|
|
10175
|
-
url: string;
|
|
10176
|
-
}>;
|
|
10177
|
-
download(path: string): Promise<Buffer>;
|
|
10178
|
-
delete(path: string): Promise<void>;
|
|
10179
|
-
deleteMany(paths: string[]): Promise<void>;
|
|
10180
|
-
getMetadata(path: string): Promise<StorageFile | null>;
|
|
10181
|
-
exists(path: string): Promise<boolean>;
|
|
10182
|
-
list(prefix?: string): Promise<StorageFile[]>;
|
|
10183
|
-
getSignedUrl(path: string, expiresIn?: number): Promise<string>;
|
|
10184
|
-
healthCheck(): Promise<boolean>;
|
|
10185
|
-
/**
|
|
10186
|
-
* Get URL for a file (public URL or signed URL based on bucket config)
|
|
10187
|
-
*/
|
|
10188
|
-
private getUrl;
|
|
10189
|
-
/**
|
|
10190
|
-
* Get directory from path
|
|
10191
|
-
*/
|
|
10192
|
-
private getDirectory;
|
|
10193
|
-
/**
|
|
10194
|
-
* Get filename from path
|
|
10195
|
-
*/
|
|
10196
|
-
private getFilename;
|
|
10197
|
-
/**
|
|
10198
|
-
* Get storage bucket info
|
|
10199
|
-
*/
|
|
10200
|
-
getBucketInfo(): {
|
|
10201
|
-
bucket: string;
|
|
10202
|
-
publicBucket: boolean;
|
|
10203
|
-
};
|
|
10204
|
-
/**
|
|
10205
|
-
* Copy file to new location
|
|
10206
|
-
*/
|
|
10207
|
-
copy(sourcePath: string, destPath: string): Promise<{
|
|
10208
|
-
key: string;
|
|
10209
|
-
url: string;
|
|
10210
|
-
}>;
|
|
10211
|
-
/**
|
|
10212
|
-
* Move file to new location
|
|
10213
|
-
*/
|
|
10214
|
-
move(sourcePath: string, destPath: string): Promise<{
|
|
10215
|
-
key: string;
|
|
10216
|
-
url: string;
|
|
10217
|
-
}>;
|
|
10218
|
-
}
|
|
10219
|
-
|
|
10220
9581
|
/**
|
|
10221
9582
|
* Resend Email Adapter
|
|
10222
9583
|
* Production implementation using Resend for transactional emails
|
|
@@ -11234,74 +10595,6 @@ declare class HttpWebhook implements IWebhook {
|
|
|
11234
10595
|
private rowToAttempt;
|
|
11235
10596
|
}
|
|
11236
10597
|
|
|
11237
|
-
/**
|
|
11238
|
-
* Supabase Auth Adapter
|
|
11239
|
-
* Production implementation using Supabase as the authentication provider
|
|
11240
|
-
*/
|
|
11241
|
-
|
|
11242
|
-
/**
|
|
11243
|
-
* Configuration for Supabase Auth
|
|
11244
|
-
*/
|
|
11245
|
-
interface SupabaseAuthConfig {
|
|
11246
|
-
/** Supabase project URL */
|
|
11247
|
-
url: string;
|
|
11248
|
-
/** Supabase anon/public key */
|
|
11249
|
-
anonKey: string;
|
|
11250
|
-
/** Optional service role key for admin operations */
|
|
11251
|
-
serviceRoleKey?: string;
|
|
11252
|
-
}
|
|
11253
|
-
/**
|
|
11254
|
-
* Supabase Auth Adapter
|
|
11255
|
-
*
|
|
11256
|
-
* Provides IAuth implementation using Supabase authentication.
|
|
11257
|
-
*
|
|
11258
|
-
* @example
|
|
11259
|
-
* ```typescript
|
|
11260
|
-
* import { createClient } from '@supabase/supabase-js'
|
|
11261
|
-
* import { SupabaseAuth } from '@digilogiclabs/platform-core'
|
|
11262
|
-
*
|
|
11263
|
-
* const supabase = createClient(url, anonKey)
|
|
11264
|
-
* const auth = new SupabaseAuth(supabase)
|
|
11265
|
-
*
|
|
11266
|
-
* const result = await auth.signInWithEmail({
|
|
11267
|
-
* email: 'user@example.com',
|
|
11268
|
-
* password: 'password',
|
|
11269
|
-
* })
|
|
11270
|
-
* ```
|
|
11271
|
-
*/
|
|
11272
|
-
declare class SupabaseAuth implements IAuth {
|
|
11273
|
-
private client;
|
|
11274
|
-
constructor(client: SupabaseClient);
|
|
11275
|
-
getCurrentUser(): Promise<AuthUser | null>;
|
|
11276
|
-
getSession(): Promise<AuthSession | null>;
|
|
11277
|
-
refreshSession(): Promise<AuthSession | null>;
|
|
11278
|
-
signOut(options?: {
|
|
11279
|
-
scope?: "local" | "global";
|
|
11280
|
-
}): Promise<void>;
|
|
11281
|
-
signInWithEmail(options: SignInWithEmailOptions): Promise<AuthResult>;
|
|
11282
|
-
signUpWithEmail(options: SignUpWithEmailOptions): Promise<AuthResult>;
|
|
11283
|
-
resetPassword(options: ResetPasswordOptions): Promise<AuthResult>;
|
|
11284
|
-
updatePassword(options: UpdatePasswordOptions): Promise<AuthResult>;
|
|
11285
|
-
signInWithOAuth(provider: OAuthProvider, options?: OAuthOptions): Promise<OAuthResult>;
|
|
11286
|
-
handleOAuthCallback(code: string): Promise<AuthResult>;
|
|
11287
|
-
signInWithMagicLink(options: SignInWithMagicLinkOptions): Promise<AuthResult>;
|
|
11288
|
-
verifyMagicLink(token: string): Promise<AuthResult>;
|
|
11289
|
-
signInWithPhone(options: SignInWithPhoneOptions): Promise<AuthResult>;
|
|
11290
|
-
verifyPhoneOtp(options: VerifyPhoneOtpOptions): Promise<AuthResult>;
|
|
11291
|
-
verifyEmail(token: string): Promise<AuthResult>;
|
|
11292
|
-
resendVerification(email: string): Promise<AuthResult>;
|
|
11293
|
-
listMfaFactors(): Promise<MfaFactor[]>;
|
|
11294
|
-
enrollMfa(options: EnrollMfaOptions): Promise<EnrollMfaResult>;
|
|
11295
|
-
verifyMfa(options: VerifyMfaOptions): Promise<AuthResult>;
|
|
11296
|
-
unenrollMfa(factorId: string): Promise<void>;
|
|
11297
|
-
createMfaChallenge(factorId: string): Promise<MfaChallenge>;
|
|
11298
|
-
updateUser(options: UpdateUserOptions): Promise<AuthResult>;
|
|
11299
|
-
deleteAccount(_options?: DeleteAccountOptions): Promise<AuthResult>;
|
|
11300
|
-
reauthenticate(password: string): Promise<AuthResult>;
|
|
11301
|
-
onAuthStateChange(callback: AuthStateChangeCallback): Unsubscribe;
|
|
11302
|
-
healthCheck(): Promise<boolean>;
|
|
11303
|
-
}
|
|
11304
|
-
|
|
11305
10598
|
/**
|
|
11306
10599
|
* Stripe Payment Adapter
|
|
11307
10600
|
* Production implementation using Stripe as the payment provider
|
|
@@ -12375,4 +11668,4 @@ declare function getSharedRedis(): Redis$2 | null;
|
|
|
12375
11668
|
*/
|
|
12376
11669
|
declare function closeSharedRedis(): Promise<void>;
|
|
12377
11670
|
|
|
12378
|
-
export { AIChatRequest, AIChatResponse, AICompletionRequest, AICompletionResponse, AIConfig, AIEmbeddingRequest, AIEmbeddingResponse, AIModelConfig, AIModelType, AIProvider, AIStreamCallback, AIStreamChunk, AIUsageConfig, type AccountCapabilities, type AccountLink, type AccountType, type Address, AlertType, AnthropicAdapter, type AnthropicAdapterConfig, type ApiAuthentication, type ApiChangelog, type ApiDocumentation, type ApiEndpoint, type ApiExample, type ApiKey, type ApiKeyStatus, type ApiKeyType, type ApiKeyValidationResult, type ApiParameter, type ApiResponse, type ApiSchema, type ApiSchemaProperty, type ApiUsageStats, type ApiUsageTimeSeries, type AppLogContext, type AppLogger, type AppLoggerOptions, AssembledContext, type AuditActor, type AuditCategory, type AuditEvent, AuditEvents, type AuditEvidence, type AuditLogConfig, type AuditOutcome, type AuditQuery, type AuditQueryResult, type AuditRetentionPolicy, type AuditStats, type AuditTarget, type AuthConfig, type AuthError, type AuthErrorCode, AuthErrorMessages, type AuthEventType, type AuthResult, type AuthSession, type AuthStateChangeCallback, type AuthStorage, type AuthUser, type Balance, type BalanceAmount, type BankAccountDetails, type BatchNotificationOptions, BetaCodeUsageReport, BetaConfig, BetaConsumeResult, BetaInviteCode, BetaSettings, BetaStats, BetaTester, BetaValidationResult, type BillingConfig, type BillingDetails, type BillingPeriod, type Breadcrumb, Budget, BudgetStatus, BulkIngestionResult, Bulkhead, type BulkheadOptions, BulkheadRegistry, BulkheadRejectedError, type BulkheadStats, type BullMQConfig, BullMQQueue, type BusinessProfile, type CancelationReason, type CaptureOptions, type CapturePaymentIntentOptions, type CardBrand, type CardDetails, type ChainExecutionResult, type CommandStatus, type ComplianceConfig, type ComplianceReport, type ConfirmPaymentIntentOptions, type ConnectedAccount, type ConnectedAccountStatus, type ConsentPreferences, type ConsentPurpose, type ConsentRecord, type ConsentStatus, ContextAssemblyConfig, type ControlFramework, type ControlStatus, type CorrelationData, CostBreakdown, type Coupon, type CreateAccountLinkOptions, type CreateApiKeyOptions, CreateBetaCodesOptions, CreateCollectionOptions, type CreateConnectedAccountOptions, type CreateCustomerOptions, type CreateDsarOptions, type CreatePaymentIntentOptions, type CreatePayoutOptions, type CreateRefundOptions, type CreateSandboxOptions, type CreateScheduleOptions, type CreateTenantOptions, type CreateTransferOptions, type CreateWebhookOptions, type CreditBalance, type CreditTransaction, type CreditType, type CronExpression, CronPresets, CryptoKeyMetadata, type Currency, type Customer, DEFAULT_BULKHEAD_OPTIONS, type DataBreachRecord, type DataCategory, type DataInventoryItem, type DataMap, type DataSensitivity, type DataSubjectRequest, type DataType, DatabaseAIUsage, type DatabaseAIUsageConfig, DatabaseAuditLog, type DatabaseAuditLogConfig, DatabaseBilling, type DatabaseBillingConfig, DatabaseCompliance, DatabaseErrorReporter, type DatabaseErrorReporterConfig, DatabaseNotification, type DatabaseNotificationConfig, DatabasePromptStore, type DatabasePromptStoreConfig, DefaultTimeouts, type DeleteAccountOptions, type DeleteHookContext, type DeliveryAttempt, type DeliveryQuery, type DeliveryStatus, type DetailedHealthResponse, DeterministicEncryptedField, type DevPortalConfig, type DeveloperMetrics, type Device, type DeviceAuthMethod, type DeviceCommand, type DeviceConfig, type DeviceConnectionState, type DeviceCredentials, type DeviceGroup, type DeviceGroupQuery, type DeviceLocation, type DeviceQuery, type DeviceQueryResult, type DeviceShadow, type DeviceStatus, type DirectoryAttributeMapping, type DirectoryConfig, DocumentStatus, type DsarAttachment, type DsarNote, type DsarStatus, type DsarType, type DunningActionType, type DunningAttempt, type DunningConfig, type EmailHookContext, EmailMessage, EmailResult, EncryptOptions, EncryptedField, type EnrollMfaOptions, type EnrollMfaResult, type ErrorContext, type ErrorHookContext, type ErrorLevel, type ErrorReport, type ErrorReporterConfig, type EvidenceType, type ExperimentMetrics, type FallbackOptions, type FallbackResult, FallbackStrategies, type FirmwareStatus, type FirmwareUpdate, type FirmwareVersion, type GeneratedSdk, GenericOIDCAuthSSO, type GenericOIDCConfig, GoogleAIAdapter, type GoogleAIAdapterConfig, type HealthCheckResult, type HealthEndpoints, type HealthEndpointsOptions, type HealthStatus, type HookRegistry, type HttpMethod, HttpWebhook, type HttpWebhookConfig, IAI, IAIUsage, type IAuditLog, type IAuth, type IAuthSSO, IBeta, type IBilling, ICache, type ICompliance, ICrypto, IDatabase, type IDevPortal, type IDevice, IEmail, type IErrorReporter, type IHealth, type IHealthCheckable, ILogger, IMetrics, type INotification, type IPayment, IPlatform, type IPromptStore, IQueryBuilder, IQueue, IRAG, type IScheduler, IStorage, type ITenant, type IWebhook, type InboundWebhookConfig, type InboundWebhookContext, IngestionOptions, IngestionResult, type InsertHookContext, type InviteMemberOptions, type Invoice, type InvoiceLineItem, type InvoiceQuery, type InvoiceStatus, Job, JobEventHandler, JobEventType, type JobHookContext, JobOptions, JobState, KeyRotationResult, ListBetaCodesOptions, type ListTenantsOptions, type LivenessResponse, MemoryAuditLog, type MemoryAuditLogConfig, MemoryAuth, MemoryAuthSSO, MemoryBilling, MemoryCompliance, MemoryCrypto, MemoryDevPortal, MemoryDevice, MemoryErrorReporter, type MemoryErrorReporterConfig, MemoryNotification, type MemoryNotificationConfig, MemoryPayment, MemoryPromptStore, MemoryRateLimiterStorage, MemoryScheduler, type MemorySchedulerConfig, MemoryTenant, MemoryWebhook, type MemoryWebhookConfig, type Meter, type MetricsEndpoint, type MetricsEndpointOptions, MetricsSummary, type MfaChallenge, type MfaFactor, type MfaFactorType, type Middleware, type MiddlewareChain, type MiddlewareChainOptions, type MiddlewareContext, NodeCrypto, type NodeCryptoConfig, type NotificationAction, type NotificationCategory, type NotificationChannel, type NotificationConfig, type NotificationData, type NotificationPreferences, type NotificationPriority, type NotificationQuery, type NotificationResult, type NotificationStats, type NotificationStatus, type NotificationTarget, NotificationTemplates, type OAuthOptions, type OAuthProvider, type OAuthResult, type OidcAuthRequest, type OidcAuthResponse, type OidcClaimMapping, type OidcIdpConfig, OpenAIAdapter, type OpenAIAdapterConfig, type ParameterLocation, type PaymentConfig, type PaymentError, type PaymentErrorCode, PaymentErrorMessages, type PaymentEventType, type PaymentIntent, type PaymentMethod, type PaymentMethodType, type PaymentStatus, type PaymentWebhookEvent, type Payout, type PayoutStatus, type PiaMitigation, type PiaRisk, type PiaStatus, PineconeRAG, type PineconeRAGConfig, type PlatformHealthResult, PlatformHealthStatus, type PlatformHooks, PostgresBeta, type PostgresBetaConfig, type PostgresConfig, PostgresDatabase, PostgresTenant, type PostgresTenantConfig, type Price, type PricingModel, type PricingTier, type PrivacyImpactAssessment, type Product, type Prompt, type PromptChain, type PromptChainStep, type PromptExperiment, type PromptQuery, type PromptQueryResult, type PromptStatus, type PromptStoreConfig, type PromptType, type PromptUsageRecord, type PromptUsageStats, type PromptVariable, type PromptVariant, type PromptVersion, type ProvisioningConfig, type ProvisioningRequest, type ProvisioningResult, type ProvisioningStatus, type PushSubscription, type QueryHookContext, QueryResult, QueueScheduler, type QueueSchedulerConfig, Quota, QuotaStatus, QuotaType, RAGChunk, RAGCollection, RAGConfig, RAGDocument, RAGPipeline, RAGSearchQuery, RAGSearchResponse, RAGSearchResult, type RateLimitAlgorithm, RateLimitError, type RateLimitInfo, RateLimitPresets, type RateLimiterStorage, type ReadinessResponse, type RecordConsentOptions, RedisCache, type RedisClientOptions, type RedisConfig, type Refund, type RefundReason, type RefundStatus, type RenderOptions, type RenderedPrompt, RepeatOptions, ResendEmail, type ResetPasswordOptions, type RetentionAction, type RetentionExecution, type RetentionPolicy, type RevenueMetrics, type RiskLevel, S3Storage, type SamlAssertion, type SamlAttributeMapping, type SamlAuthRequest, type SamlAuthResponse, type SamlIdpConfig, type SamlNameIdFormat, type SamlSpConfig, type Sandbox, type SandboxConfig, type SandboxLimits, type SandboxStatus, type SandboxUsage, type ScheduleContext, type ScheduleExecution, type ScheduleHandler, type ScheduleQuery, type ScheduleState, type ScheduleUpdateOptions, type ScheduledJob, type SchedulerConfig, type SchedulerStats, type ScimConfig, type ScimUser, type SdkConfig, type SdkFile, type SdkLanguage, type SendCommandOptions, type SendNotificationOptions, type ServiceHealth, type ShadowDelta, type ShadowMetadata, type ShadowUpdate, type SignInWithEmailOptions, type SignInWithMagicLinkOptions, type SignInWithPhoneOptions, type SignUpWithEmailOptions, type SignatureAlgorithm, type SlidingWindowRateLimitOptions, type SmtpConfig, SmtpEmail, type SsoSession, type StartupResponse, StorageFile, type StoredAuditEvent, type StoredNotification, StripePayment, type StripePaymentConfig, type Subscription, type SubscriptionDiscount, type SubscriptionItem, type SubscriptionMetrics, type SubscriptionQuery, type SubscriptionStatus, SupabaseAuth, type SupabaseAuthConfig, SupabaseDatabase, SupabaseStorage, type SupabaseStorageConfig, type TaxBreakdown, type TelemetryMessage, type TelemetryQuery, type TelemetryResult, type Tenant, type TenantBranding, type TenantContext, type TenantDatabaseConfig, type TenantInvitation, type TenantIsolationModel, type TenantMember, type TenantMemberStatus, type TenantQuotas, type TenantResolutionOptions, type TenantResolutionStrategy, type TenantRole, type TenantSecuritySettings, type TenantSettings, type TenantStatus, type TenantUsage, TimeoutError, type TimeoutOptions, type TokenBucketOptions, type TosAcceptance, type Transfer, type TransferStatus, type Unsubscribe, UpdateBetaSettingsOptions, type UpdateCustomerOptions, type UpdateHookContext, type UpdatePasswordOptions, type UpdatePaymentIntentOptions, type UpdateScheduleOptions, type UpdateStatus, type UpdateTenantOptions, type UpdateUserOptions, type UpdateWebhookOptions, type UploadHookContext, UploadOptions, UpstashCache, UsageAlert, UsageCategory, type UsageEvent, UsageInterval, UsageInvoice, UsageQuery, UsageQueryResult, UsageRecord, UsageSummary, type UsageSummaryRecord, UsageTrend, type VerificationResult, type VerifyMfaOptions, type VerifyPhoneOtpOptions, type VerifyWebhookOptions, WeaviateRAG, type WeaviateRAGConfig, type WebhookConfig, type WebhookDelivery, type WebhookEndpoint, type WebhookEvent, WebhookEventTypes, type WebhookQuery, type WebhookState, type WebhookStats, type WebhookTestEndpoint, type WebhookTestEvent, calculateRetryDelay, closeSharedRedis, composeHookRegistries, correlationContext, createAnthropicAdapter, createAppLogger, createAuthError, createBulkhead, createCacheMiddleware, createCachedFallback, createDefaultPreferences, createErrorReport, createExpressHealthHandlers, createExpressMetricsHandler, createGoogleAIAdapter, createHealthEndpoints, createHealthServer, createHookRegistry, createIpKeyGenerator, createJobContext, createLoggingMiddleware, createMetricsEndpoint, createMetricsMiddleware, createMetricsServer, createMiddlewareChain, createMiddlewareContext, createObservabilityServer, createOpenAIAdapter, createPaymentError, createPineconeRAG, createRateLimitMiddleware, createRedisClient, createRequestContext, createRequestIdMiddleware, createSlowQueryMiddleware, createTenantMiddleware, createTimeoutMiddleware, createUserKeyGenerator, createWeaviateRAG, describeCron, filterChannelsByPreferences, formatAmount, generateAuditId, generateChecksum, generateDeliveryId, generateErrorId, generateEventId, generateFingerprint, generateNotificationId, generatePaymentId, generateScheduleId, generateSecureToken, generateWebhookId, generateWebhookSecret, getContext, getLogMeta, getNextCronRun, getRequestId, getSharedRedis, getTenantId, getTraceId, getUserId, isAuthError, isInContext, isInQuietHours, isPaymentError, isValidCron, matchAction, matchEventType, raceTimeout, runWithContext, runWithContextAsync, timedHealthCheck, toHealthCheckResult, withCorrelation, withCorrelationAsync, withFallback, withFallbackChain, withFallbackResult, withTimeout, withTimeoutWrapper };
|
|
11671
|
+
export { AIChatRequest, AIChatResponse, AICompletionRequest, AICompletionResponse, AIConfig, AIEmbeddingRequest, AIEmbeddingResponse, AIModelConfig, AIModelType, AIProvider, AIStreamCallback, AIStreamChunk, AIUsageConfig, type AccountCapabilities, type AccountLink, type AccountType, type Address, AlertType, AnthropicAdapter, type AnthropicAdapterConfig, type ApiAuthentication, type ApiChangelog, type ApiDocumentation, type ApiEndpoint, type ApiExample, type ApiKey, type ApiKeyStatus, type ApiKeyType, type ApiKeyValidationResult, type ApiParameter, type ApiResponse, type ApiSchema, type ApiSchemaProperty, type ApiUsageStats, type ApiUsageTimeSeries, type AppLogContext, type AppLogger, type AppLoggerOptions, AssembledContext, type AuditActor, type AuditCategory, type AuditEvent, AuditEvents, type AuditEvidence, type AuditLogConfig, type AuditOutcome, type AuditQuery, type AuditQueryResult, type AuditRetentionPolicy, type AuditStats, type AuditTarget, AuthError, AuthResult, AuthSession, AuthUser, type Balance, type BalanceAmount, type BankAccountDetails, type BatchNotificationOptions, BetaCodeUsageReport, BetaConfig, BetaConsumeResult, BetaInviteCode, BetaSettings, BetaStats, BetaTester, BetaValidationResult, type BillingConfig, type BillingDetails, type BillingPeriod, type Breadcrumb, Budget, BudgetStatus, BulkIngestionResult, Bulkhead, type BulkheadOptions, BulkheadRegistry, BulkheadRejectedError, type BulkheadStats, type BullMQConfig, BullMQQueue, type BusinessProfile, type CancelationReason, type CaptureOptions, type CapturePaymentIntentOptions, type CardBrand, type CardDetails, type ChainExecutionResult, type CommandStatus, type ComplianceConfig, type ComplianceReport, type ConfirmPaymentIntentOptions, type ConnectedAccount, type ConnectedAccountStatus, type ConsentPreferences, type ConsentPurpose, type ConsentRecord, type ConsentStatus, ContextAssemblyConfig, type ControlFramework, type ControlStatus, type CorrelationData, CostBreakdown, type Coupon, type CreateAccountLinkOptions, type CreateApiKeyOptions, CreateBetaCodesOptions, CreateCollectionOptions, type CreateConnectedAccountOptions, type CreateCustomerOptions, type CreateDsarOptions, type CreatePaymentIntentOptions, type CreatePayoutOptions, type CreateRefundOptions, type CreateSandboxOptions, type CreateScheduleOptions, type CreateTenantOptions, type CreateTransferOptions, type CreateWebhookOptions, type CreditBalance, type CreditTransaction, type CreditType, type CronExpression, CronPresets, CryptoKeyMetadata, type Currency, type Customer, DEFAULT_BULKHEAD_OPTIONS, type DataBreachRecord, type DataCategory, type DataInventoryItem, type DataMap, type DataSensitivity, type DataSubjectRequest, type DataType, DatabaseAIUsage, type DatabaseAIUsageConfig, DatabaseAuditLog, type DatabaseAuditLogConfig, DatabaseBilling, type DatabaseBillingConfig, DatabaseCompliance, DatabaseErrorReporter, type DatabaseErrorReporterConfig, DatabaseNotification, type DatabaseNotificationConfig, DatabasePromptStore, type DatabasePromptStoreConfig, DefaultTimeouts, type DeleteHookContext, type DeliveryAttempt, type DeliveryQuery, type DeliveryStatus, type DetailedHealthResponse, DeterministicEncryptedField, type DevPortalConfig, type DeveloperMetrics, type Device, type DeviceAuthMethod, type DeviceCommand, type DeviceConfig, type DeviceConnectionState, type DeviceCredentials, type DeviceGroup, type DeviceGroupQuery, type DeviceLocation, type DeviceQuery, type DeviceQueryResult, type DeviceShadow, type DeviceStatus, type DirectoryAttributeMapping, type DirectoryConfig, DocumentStatus, type DsarAttachment, type DsarNote, type DsarStatus, type DsarType, type DunningActionType, type DunningAttempt, type DunningConfig, type EmailHookContext, EmailMessage, EmailResult, EncryptOptions, EncryptedField, type ErrorContext, type ErrorHookContext, type ErrorLevel, type ErrorReport, type ErrorReporterConfig, type EvidenceType, type ExperimentMetrics, type FallbackOptions, type FallbackResult, FallbackStrategies, type FirmwareStatus, type FirmwareUpdate, type FirmwareVersion, type GeneratedSdk, GenericOIDCAuthSSO, type GenericOIDCConfig, GoogleAIAdapter, type GoogleAIAdapterConfig, type HealthCheckResult, type HealthEndpoints, type HealthEndpointsOptions, type HealthStatus, type HookRegistry, type HttpMethod, HttpWebhook, type HttpWebhookConfig, IAI, IAIUsage, type IAuditLog, type IAuthSSO, IBeta, type IBilling, ICache, type ICompliance, ICrypto, IDatabase, type IDevPortal, type IDevice, IEmail, type IErrorReporter, type IHealth, type IHealthCheckable, ILogger, IMetrics, type INotification, type IPayment, IPlatform, type IPromptStore, IQueryBuilder, IQueue, IRAG, type IScheduler, IStorage, type ITenant, type IWebhook, type InboundWebhookConfig, type InboundWebhookContext, IngestionOptions, IngestionResult, type InsertHookContext, type InviteMemberOptions, type Invoice, type InvoiceLineItem, type InvoiceQuery, type InvoiceStatus, Job, JobEventHandler, JobEventType, type JobHookContext, JobOptions, JobState, KeyRotationResult, ListBetaCodesOptions, type ListTenantsOptions, type LivenessResponse, MemoryAuditLog, type MemoryAuditLogConfig, MemoryAuthSSO, MemoryBilling, MemoryCompliance, MemoryCrypto, MemoryDevPortal, MemoryDevice, MemoryErrorReporter, type MemoryErrorReporterConfig, MemoryNotification, type MemoryNotificationConfig, MemoryPayment, MemoryPromptStore, MemoryRateLimiterStorage, MemoryScheduler, type MemorySchedulerConfig, MemoryTenant, MemoryWebhook, type MemoryWebhookConfig, type Meter, type MetricsEndpoint, type MetricsEndpointOptions, MetricsSummary, type Middleware, type MiddlewareChain, type MiddlewareChainOptions, type MiddlewareContext, NodeCrypto, type NodeCryptoConfig, type NotificationAction, type NotificationCategory, type NotificationChannel, type NotificationConfig, type NotificationData, type NotificationPreferences, type NotificationPriority, type NotificationQuery, type NotificationResult, type NotificationStats, type NotificationStatus, type NotificationTarget, NotificationTemplates, type OidcAuthRequest, type OidcAuthResponse, type OidcClaimMapping, type OidcIdpConfig, OpenAIAdapter, type OpenAIAdapterConfig, type ParameterLocation, type PaymentConfig, type PaymentError, type PaymentErrorCode, PaymentErrorMessages, type PaymentEventType, type PaymentIntent, type PaymentMethod, type PaymentMethodType, type PaymentStatus, type PaymentWebhookEvent, type Payout, type PayoutStatus, type PiaMitigation, type PiaRisk, type PiaStatus, PineconeRAG, type PineconeRAGConfig, type PlatformHealthResult, PlatformHealthStatus, type PlatformHooks, PostgresBeta, type PostgresBetaConfig, type PostgresConfig, PostgresDatabase, PostgresTenant, type PostgresTenantConfig, type Price, type PricingModel, type PricingTier, type PrivacyImpactAssessment, type Product, type Prompt, type PromptChain, type PromptChainStep, type PromptExperiment, type PromptQuery, type PromptQueryResult, type PromptStatus, type PromptStoreConfig, type PromptType, type PromptUsageRecord, type PromptUsageStats, type PromptVariable, type PromptVariant, type PromptVersion, type ProvisioningConfig, type ProvisioningRequest, type ProvisioningResult, type ProvisioningStatus, type PushSubscription, type QueryHookContext, QueryResult, QueueScheduler, type QueueSchedulerConfig, Quota, QuotaStatus, QuotaType, RAGChunk, RAGCollection, RAGConfig, RAGDocument, RAGPipeline, RAGSearchQuery, RAGSearchResponse, RAGSearchResult, type RateLimitAlgorithm, RateLimitError, type RateLimitInfo, RateLimitPresets, type RateLimiterStorage, type ReadinessResponse, type RecordConsentOptions, RedisCache, type RedisClientOptions, type RedisConfig, type Refund, type RefundReason, type RefundStatus, type RenderOptions, type RenderedPrompt, RepeatOptions, ResendEmail, type RetentionAction, type RetentionExecution, type RetentionPolicy, type RevenueMetrics, type RiskLevel, S3Storage, type SamlAssertion, type SamlAttributeMapping, type SamlAuthRequest, type SamlAuthResponse, type SamlIdpConfig, type SamlNameIdFormat, type SamlSpConfig, type Sandbox, type SandboxConfig, type SandboxLimits, type SandboxStatus, type SandboxUsage, type ScheduleContext, type ScheduleExecution, type ScheduleHandler, type ScheduleQuery, type ScheduleState, type ScheduleUpdateOptions, type ScheduledJob, type SchedulerConfig, type SchedulerStats, type ScimConfig, type ScimUser, type SdkConfig, type SdkFile, type SdkLanguage, type SendCommandOptions, type SendNotificationOptions, type ServiceHealth, type ShadowDelta, type ShadowMetadata, type ShadowUpdate, type SignatureAlgorithm, type SlidingWindowRateLimitOptions, type SmtpConfig, SmtpEmail, type SsoSession, type StartupResponse, StorageFile, type StoredAuditEvent, type StoredNotification, StripePayment, type StripePaymentConfig, type Subscription, type SubscriptionDiscount, type SubscriptionItem, type SubscriptionMetrics, type SubscriptionQuery, type SubscriptionStatus, type TaxBreakdown, type TelemetryMessage, type TelemetryQuery, type TelemetryResult, type Tenant, type TenantBranding, type TenantContext, type TenantDatabaseConfig, type TenantInvitation, type TenantIsolationModel, type TenantMember, type TenantMemberStatus, type TenantQuotas, type TenantResolutionOptions, type TenantResolutionStrategy, type TenantRole, type TenantSecuritySettings, type TenantSettings, type TenantStatus, type TenantUsage, TimeoutError, type TimeoutOptions, type TokenBucketOptions, type TosAcceptance, type Transfer, type TransferStatus, UpdateBetaSettingsOptions, type UpdateCustomerOptions, type UpdateHookContext, type UpdatePaymentIntentOptions, type UpdateScheduleOptions, type UpdateStatus, type UpdateTenantOptions, type UpdateWebhookOptions, type UploadHookContext, UploadOptions, UpstashCache, UsageAlert, UsageCategory, type UsageEvent, UsageInterval, UsageInvoice, UsageQuery, UsageQueryResult, UsageRecord, UsageSummary, type UsageSummaryRecord, UsageTrend, type VerificationResult, type VerifyWebhookOptions, WeaviateRAG, type WeaviateRAGConfig, type WebhookConfig, type WebhookDelivery, type WebhookEndpoint, type WebhookEvent, WebhookEventTypes, type WebhookQuery, type WebhookState, type WebhookStats, type WebhookTestEndpoint, type WebhookTestEvent, calculateRetryDelay, closeSharedRedis, composeHookRegistries, correlationContext, createAnthropicAdapter, createAppLogger, createBulkhead, createCacheMiddleware, createCachedFallback, createDefaultPreferences, createErrorReport, createExpressHealthHandlers, createExpressMetricsHandler, createGoogleAIAdapter, createHealthEndpoints, createHealthServer, createHookRegistry, createIpKeyGenerator, createJobContext, createLoggingMiddleware, createMetricsEndpoint, createMetricsMiddleware, createMetricsServer, createMiddlewareChain, createMiddlewareContext, createObservabilityServer, createOpenAIAdapter, createPaymentError, createPineconeRAG, createRateLimitMiddleware, createRedisClient, createRequestContext, createRequestIdMiddleware, createSlowQueryMiddleware, createTenantMiddleware, createTimeoutMiddleware, createUserKeyGenerator, createWeaviateRAG, describeCron, filterChannelsByPreferences, formatAmount, generateAuditId, generateChecksum, generateDeliveryId, generateErrorId, generateEventId, generateFingerprint, generateNotificationId, generatePaymentId, generateScheduleId, generateWebhookId, generateWebhookSecret, getContext, getLogMeta, getNextCronRun, getRequestId, getSharedRedis, getTenantId, getTraceId, getUserId, isInContext, isInQuietHours, isPaymentError, isValidCron, matchAction, matchEventType, raceTimeout, runWithContext, runWithContextAsync, timedHealthCheck, toHealthCheckResult, withCorrelation, withCorrelationAsync, withFallback, withFallbackChain, withFallbackResult, withTimeout, withTimeoutWrapper };
|