@scalemule/nextjs 0.1.74 → 0.1.75

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.
@@ -267,4 +267,5 @@ interface ServiceAiClientConfig {
267
267
  */
268
268
  declare function createServiceAiClient(config: ServiceAiClientConfig): ScaleMuleAi;
269
269
 
270
- export { type AiAccountResolver as A, KNOWN_ACCOUNTS_COOKIE_NAME as K, type SessionCookieOptions as S, USER_ID_COOKIE_NAME as U, type SessionData as a, type AiRoutesConfig as b, type KnownAccountEntry as c, SESSION_COOKIE_NAME as d, type ServiceAiClientConfig as e, appendKnownAccountCookie as f, clearKnownAccountsCookie as g, clearSession as h, createAiRoutes as i, createServiceAiClient as j, getKnownAccountsCookieRaw as k, getKnownAccountsFromRequest as l, getSession as m, getSessionFromRequest as n, normalizeKnownAccountsCookie as o, requireSession as p, resolveAiTarget as q, removeKnownAccountFromCookie as r, withSession as w };
270
+ export { KNOWN_ACCOUNTS_COOKIE_NAME as K, USER_ID_COOKIE_NAME as U, SESSION_COOKIE_NAME as d, appendKnownAccountCookie as f, clearKnownAccountsCookie as g, clearSession as h, createAiRoutes as i, createServiceAiClient as j, getKnownAccountsCookieRaw as k, getKnownAccountsFromRequest as l, getSession as m, getSessionFromRequest as n, normalizeKnownAccountsCookie as o, requireSession as p, resolveAiTarget as q, removeKnownAccountFromCookie as r, withSession as w };
271
+ export type { AiAccountResolver as A, SessionCookieOptions as S, SessionData as a, AiRoutesConfig as b, KnownAccountEntry as c, ServiceAiClientConfig as e };
@@ -267,4 +267,5 @@ interface ServiceAiClientConfig {
267
267
  */
268
268
  declare function createServiceAiClient(config: ServiceAiClientConfig): ScaleMuleAi;
269
269
 
270
- export { type AiAccountResolver as A, KNOWN_ACCOUNTS_COOKIE_NAME as K, type SessionCookieOptions as S, USER_ID_COOKIE_NAME as U, type SessionData as a, type AiRoutesConfig as b, type KnownAccountEntry as c, SESSION_COOKIE_NAME as d, type ServiceAiClientConfig as e, appendKnownAccountCookie as f, clearKnownAccountsCookie as g, clearSession as h, createAiRoutes as i, createServiceAiClient as j, getKnownAccountsCookieRaw as k, getKnownAccountsFromRequest as l, getSession as m, getSessionFromRequest as n, normalizeKnownAccountsCookie as o, requireSession as p, resolveAiTarget as q, removeKnownAccountFromCookie as r, withSession as w };
270
+ export { KNOWN_ACCOUNTS_COOKIE_NAME as K, USER_ID_COOKIE_NAME as U, SESSION_COOKIE_NAME as d, appendKnownAccountCookie as f, clearKnownAccountsCookie as g, clearSession as h, createAiRoutes as i, createServiceAiClient as j, getKnownAccountsCookieRaw as k, getKnownAccountsFromRequest as l, getSession as m, getSessionFromRequest as n, normalizeKnownAccountsCookie as o, requireSession as p, resolveAiTarget as q, removeKnownAccountFromCookie as r, withSession as w };
271
+ export type { AiAccountResolver as A, SessionCookieOptions as S, SessionData as a, AiRoutesConfig as b, KnownAccountEntry as c, ServiceAiClientConfig as e };
package/dist/audio.d.mts CHANGED
@@ -335,4 +335,5 @@ declare function ListeningLibrary({ open }: {
335
335
  open?: boolean;
336
336
  }): react_jsx_runtime.JSX.Element;
337
337
 
338
- export { ArticleAudioControls, type ArticleAudioControlsProps, AudioPlayer, type AudioPlayerNarration, type AudioPlayerProps, type AudioPlayerSource, type AudioPlayerVariant, ListeningLibrary, type ListeningPersistence, NarrationHighlighter, type NarrationTimings, type NetworkAudioCommand, type NetworkAudioContextValue, NetworkAudioController, NetworkAudioPlayer, type NetworkAudioPlayerProps, NetworkAudioProvider, type NetworkAudioProviderProps, type NetworkAudioSnapshot, type NetworkAudioTrack, type NetworkPlayerConnection, type NetworkPlayerHostOptions, type ResolveNetworkAudio, SENTENCE_HIGHLIGHT, WORD_HIGHLIGHT, narrationHighlightSupported, parseTimingsPayload, useArticleNarration, useNetworkAudio };
338
+ export { ArticleAudioControls, AudioPlayer, ListeningLibrary, NarrationHighlighter, NetworkAudioController, NetworkAudioPlayer, NetworkAudioProvider, SENTENCE_HIGHLIGHT, WORD_HIGHLIGHT, narrationHighlightSupported, parseTimingsPayload, useArticleNarration, useNetworkAudio };
339
+ export type { ArticleAudioControlsProps, AudioPlayerNarration, AudioPlayerProps, AudioPlayerSource, AudioPlayerVariant, ListeningPersistence, NarrationTimings, NetworkAudioCommand, NetworkAudioContextValue, NetworkAudioPlayerProps, NetworkAudioProviderProps, NetworkAudioSnapshot, NetworkAudioTrack, NetworkPlayerConnection, NetworkPlayerHostOptions, ResolveNetworkAudio };
package/dist/audio.d.ts CHANGED
@@ -335,4 +335,5 @@ declare function ListeningLibrary({ open }: {
335
335
  open?: boolean;
336
336
  }): react_jsx_runtime.JSX.Element;
337
337
 
338
- export { ArticleAudioControls, type ArticleAudioControlsProps, AudioPlayer, type AudioPlayerNarration, type AudioPlayerProps, type AudioPlayerSource, type AudioPlayerVariant, ListeningLibrary, type ListeningPersistence, NarrationHighlighter, type NarrationTimings, type NetworkAudioCommand, type NetworkAudioContextValue, NetworkAudioController, NetworkAudioPlayer, type NetworkAudioPlayerProps, NetworkAudioProvider, type NetworkAudioProviderProps, type NetworkAudioSnapshot, type NetworkAudioTrack, type NetworkPlayerConnection, type NetworkPlayerHostOptions, type ResolveNetworkAudio, SENTENCE_HIGHLIGHT, WORD_HIGHLIGHT, narrationHighlightSupported, parseTimingsPayload, useArticleNarration, useNetworkAudio };
338
+ export { ArticleAudioControls, AudioPlayer, ListeningLibrary, NarrationHighlighter, NetworkAudioController, NetworkAudioPlayer, NetworkAudioProvider, SENTENCE_HIGHLIGHT, WORD_HIGHLIGHT, narrationHighlightSupported, parseTimingsPayload, useArticleNarration, useNetworkAudio };
339
+ export type { ArticleAudioControlsProps, AudioPlayerNarration, AudioPlayerProps, AudioPlayerSource, AudioPlayerVariant, ListeningPersistence, NarrationTimings, NetworkAudioCommand, NetworkAudioContextValue, NetworkAudioPlayerProps, NetworkAudioProviderProps, NetworkAudioSnapshot, NetworkAudioTrack, NetworkPlayerConnection, NetworkPlayerHostOptions, ResolveNetworkAudio };
package/dist/client.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { ac as StorageAdapter, A as ApiError } from './index-BOPHR50i.mjs';
1
+ import { StorageAdapter, ApiError } from './index.mjs';
2
2
 
3
3
  /**
4
4
  * ScaleMule API Client
@@ -237,4 +237,5 @@ declare class ScaleMuleClient {
237
237
  */
238
238
  declare function createClient(config: ClientConfig): ScaleMuleClient;
239
239
 
240
- export { type ClientConfig, type RequestOptions, ScaleMuleClient, type ScaleMuleEnvironment, createClient };
240
+ export { ScaleMuleClient, createClient };
241
+ export type { ClientConfig, RequestOptions, ScaleMuleEnvironment };
package/dist/client.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ac as StorageAdapter, A as ApiError } from './index-BOPHR50i.js';
1
+ import { StorageAdapter, ApiError } from './index.js';
2
2
 
3
3
  /**
4
4
  * ScaleMule API Client
@@ -237,4 +237,5 @@ declare class ScaleMuleClient {
237
237
  */
238
238
  declare function createClient(config: ClientConfig): ScaleMuleClient;
239
239
 
240
- export { type ClientConfig, type RequestOptions, ScaleMuleClient, type ScaleMuleEnvironment, createClient };
240
+ export { ScaleMuleClient, createClient };
241
+ export type { ClientConfig, RequestOptions, ScaleMuleEnvironment };
@@ -983,4 +983,5 @@ interface UseBillingReturn {
983
983
  }) => Promise<string | null>;
984
984
  }
985
985
 
986
- export { type PhoneVerifyRequest as $, type ApiError as A, type BatchTrackRequest as B, type ChangeEmailRequest as C, type DeviceFingerprint as D, type EnhancedAnalyticsEvent as E, type ForgotPasswordRequest as F, type LoginRiskInfo as G, type MFAMethod as H, type MFASMSSetupResponse as I, type MFASetupRequest as J, type KnownAccountInfo as K, type LoginResponse as L, type MFAChallengeResponse as M, type MFAStatus as N, type MFATOTPSetupResponse as O, type MFAVerifyRequest as P, type OAuthCallbackRequest as Q, type OAuthCallbackResponse as R, type ScaleMuleConfig as S, type OAuthConfig as T, type User as U, type OAuthProvider as V, type OAuthStartResponse as W, type PageViewData as X, type PayoutSchedule as Y, type PhoneLoginRequest as Z, type PhoneSendCodeRequest as _, type UseAuthReturn as a, type Profile as a0, type ProxyBearerLoginResponse as a1, type RefreshResponse as a2, type RegisterRequest as a3, type ResetPasswordRequest as a4, ScaleMuleApiError as a5, type ScaleMuleEnvironment as a6, type Session as a7, type SignedUploadCompleteRequest as a8, type SignedUploadRequest as a9, type SignedUploadResponse as aa, type SignedUploadUrl as ab, type StorageAdapter as ac, type StorageFile as ad, type TrackEventResponse as ae, type TransactionSummary as af, type UTMParams as ag, type UpdateProfileRequest as ah, type UploadOptions as ai, type UploadResponse as aj, type VerifyEmailRequest as ak, type UseBillingReturn as b, type ListFilesParams as c, type UseContentReturn as d, type UseUserReturn as e, type UseAnalyticsOptions as f, type UseAnalyticsReturn as g, type AccountBalance as h, type AnalyticsEvent as i, type ApiResponse as j, type AuthLoginResponse as k, type BillingPayment as l, type BillingPayout as m, type BillingRefund as n, type BillingTransaction as o, type ChangePasswordRequest as p, type ClientContext as q, type ConnectedAccount as r, type CookieLoginResponse as s, type CookieOAuthCallbackResponse as t, type DeviceInfo as u, type LinkedAccount as v, type ListFilesResponse as w, type LoginDeviceInfo as x, type LoginRequest as y, type LoginResponseWithMFA as z };
986
+ export { ScaleMuleApiError as a5 };
987
+ export type { PhoneVerifyRequest as $, ApiError as A, BatchTrackRequest as B, ChangeEmailRequest as C, DeviceFingerprint as D, EnhancedAnalyticsEvent as E, ForgotPasswordRequest as F, LoginRiskInfo as G, MFAMethod as H, MFASMSSetupResponse as I, MFASetupRequest as J, KnownAccountInfo as K, LoginResponse as L, MFAChallengeResponse as M, MFAStatus as N, MFATOTPSetupResponse as O, MFAVerifyRequest as P, OAuthCallbackRequest as Q, OAuthCallbackResponse as R, ScaleMuleConfig as S, OAuthConfig as T, User as U, OAuthProvider as V, OAuthStartResponse as W, PageViewData as X, PayoutSchedule as Y, PhoneLoginRequest as Z, PhoneSendCodeRequest as _, UseAuthReturn as a, Profile as a0, ProxyBearerLoginResponse as a1, RefreshResponse as a2, RegisterRequest as a3, ResetPasswordRequest as a4, ScaleMuleEnvironment as a6, Session as a7, SignedUploadCompleteRequest as a8, SignedUploadRequest as a9, SignedUploadResponse as aa, SignedUploadUrl as ab, StorageAdapter as ac, StorageFile as ad, TrackEventResponse as ae, TransactionSummary as af, UTMParams as ag, UpdateProfileRequest as ah, UploadOptions as ai, UploadResponse as aj, VerifyEmailRequest as ak, UseBillingReturn as b, ListFilesParams as c, UseContentReturn as d, UseUserReturn as e, UseAnalyticsOptions as f, UseAnalyticsReturn as g, AccountBalance as h, AnalyticsEvent as i, ApiResponse as j, AuthLoginResponse as k, BillingPayment as l, BillingPayout as m, BillingRefund as n, BillingTransaction as o, ChangePasswordRequest as p, ClientContext as q, ConnectedAccount as r, CookieLoginResponse as s, CookieOAuthCallbackResponse as t, DeviceInfo as u, LinkedAccount as v, ListFilesResponse as w, LoginDeviceInfo as x, LoginRequest as y, LoginResponseWithMFA as z };
@@ -983,4 +983,5 @@ interface UseBillingReturn {
983
983
  }) => Promise<string | null>;
984
984
  }
985
985
 
986
- export { type PhoneVerifyRequest as $, type ApiError as A, type BatchTrackRequest as B, type ChangeEmailRequest as C, type DeviceFingerprint as D, type EnhancedAnalyticsEvent as E, type ForgotPasswordRequest as F, type LoginRiskInfo as G, type MFAMethod as H, type MFASMSSetupResponse as I, type MFASetupRequest as J, type KnownAccountInfo as K, type LoginResponse as L, type MFAChallengeResponse as M, type MFAStatus as N, type MFATOTPSetupResponse as O, type MFAVerifyRequest as P, type OAuthCallbackRequest as Q, type OAuthCallbackResponse as R, type ScaleMuleConfig as S, type OAuthConfig as T, type User as U, type OAuthProvider as V, type OAuthStartResponse as W, type PageViewData as X, type PayoutSchedule as Y, type PhoneLoginRequest as Z, type PhoneSendCodeRequest as _, type UseAuthReturn as a, type Profile as a0, type ProxyBearerLoginResponse as a1, type RefreshResponse as a2, type RegisterRequest as a3, type ResetPasswordRequest as a4, ScaleMuleApiError as a5, type ScaleMuleEnvironment as a6, type Session as a7, type SignedUploadCompleteRequest as a8, type SignedUploadRequest as a9, type SignedUploadResponse as aa, type SignedUploadUrl as ab, type StorageAdapter as ac, type StorageFile as ad, type TrackEventResponse as ae, type TransactionSummary as af, type UTMParams as ag, type UpdateProfileRequest as ah, type UploadOptions as ai, type UploadResponse as aj, type VerifyEmailRequest as ak, type UseBillingReturn as b, type ListFilesParams as c, type UseContentReturn as d, type UseUserReturn as e, type UseAnalyticsOptions as f, type UseAnalyticsReturn as g, type AccountBalance as h, type AnalyticsEvent as i, type ApiResponse as j, type AuthLoginResponse as k, type BillingPayment as l, type BillingPayout as m, type BillingRefund as n, type BillingTransaction as o, type ChangePasswordRequest as p, type ClientContext as q, type ConnectedAccount as r, type CookieLoginResponse as s, type CookieOAuthCallbackResponse as t, type DeviceInfo as u, type LinkedAccount as v, type ListFilesResponse as w, type LoginDeviceInfo as x, type LoginRequest as y, type LoginResponseWithMFA as z };
986
+ export { ScaleMuleApiError as a5 };
987
+ export type { PhoneVerifyRequest as $, ApiError as A, BatchTrackRequest as B, ChangeEmailRequest as C, DeviceFingerprint as D, EnhancedAnalyticsEvent as E, ForgotPasswordRequest as F, LoginRiskInfo as G, MFAMethod as H, MFASMSSetupResponse as I, MFASetupRequest as J, KnownAccountInfo as K, LoginResponse as L, MFAChallengeResponse as M, MFAStatus as N, MFATOTPSetupResponse as O, MFAVerifyRequest as P, OAuthCallbackRequest as Q, OAuthCallbackResponse as R, ScaleMuleConfig as S, OAuthConfig as T, User as U, OAuthProvider as V, OAuthStartResponse as W, PageViewData as X, PayoutSchedule as Y, PhoneLoginRequest as Z, PhoneSendCodeRequest as _, UseAuthReturn as a, Profile as a0, ProxyBearerLoginResponse as a1, RefreshResponse as a2, RegisterRequest as a3, ResetPasswordRequest as a4, ScaleMuleEnvironment as a6, Session as a7, SignedUploadCompleteRequest as a8, SignedUploadRequest as a9, SignedUploadResponse as aa, SignedUploadUrl as ab, StorageAdapter as ac, StorageFile as ad, TrackEventResponse as ae, TransactionSummary as af, UTMParams as ag, UpdateProfileRequest as ah, UploadOptions as ai, UploadResponse as aj, VerifyEmailRequest as ak, UseBillingReturn as b, ListFilesParams as c, UseContentReturn as d, UseUserReturn as e, UseAnalyticsOptions as f, UseAnalyticsReturn as g, AccountBalance as h, AnalyticsEvent as i, ApiResponse as j, AuthLoginResponse as k, BillingPayment as l, BillingPayout as m, BillingRefund as n, BillingTransaction as o, ChangePasswordRequest as p, ClientContext as q, ConnectedAccount as r, CookieLoginResponse as s, CookieOAuthCallbackResponse as t, DeviceInfo as u, LinkedAccount as v, ListFilesResponse as w, LoginDeviceInfo as x, LoginRequest as y, LoginResponseWithMFA as z };
package/dist/index.d.mts CHANGED
@@ -6,8 +6,8 @@ import { MoneyClient } from '@scalemule/money';
6
6
  export { MoneyClient, MoneyClientConfig, createMoneyClient } from '@scalemule/money';
7
7
  import { ScaleMuleClient } from './client.mjs';
8
8
  export { ClientConfig, RequestOptions, createClient } from './client.mjs';
9
- import { S as ScaleMuleConfig, U as User, L as LoginResponse, A as ApiError$1, a as UseAuthReturn, b as UseBillingReturn, c as ListFilesParams, d as UseContentReturn, e as UseUserReturn, f as UseAnalyticsOptions, g as UseAnalyticsReturn } from './index-BOPHR50i.mjs';
10
- export { h as AccountBalance, i as AnalyticsEvent, j as ApiResponse, k as AuthLoginResponse, B as BatchTrackRequest, l as BillingPayment, m as BillingPayout, n as BillingRefund, o as BillingTransaction, C as ChangeEmailRequest, p as ChangePasswordRequest, q as ClientContext, r as ConnectedAccount, s as CookieLoginResponse, t as CookieOAuthCallbackResponse, D as DeviceFingerprint, u as DeviceInfo, E as EnhancedAnalyticsEvent, F as ForgotPasswordRequest, K as KnownAccountInfo, v as LinkedAccount, w as ListFilesResponse, x as LoginDeviceInfo, y as LoginRequest, z as LoginResponseWithMFA, G as LoginRiskInfo, M as MFAChallengeResponse, H as MFAMethod, I as MFASMSSetupResponse, J as MFASetupRequest, N as MFAStatus, O as MFATOTPSetupResponse, P as MFAVerifyRequest, Q as OAuthCallbackRequest, R as OAuthCallbackResponse, T as OAuthConfig, V as OAuthProvider, W as OAuthStartResponse, X as PageViewData, Y as PayoutSchedule, Z as PhoneLoginRequest, _ as PhoneSendCodeRequest, $ as PhoneVerifyRequest, a0 as Profile, a1 as ProxyBearerLoginResponse, a2 as RefreshResponse, a3 as RegisterRequest, a4 as ResetPasswordRequest, a5 as ScaleMuleApiError, a6 as ScaleMuleEnvironment, a7 as Session, a8 as SignedUploadCompleteRequest, a9 as SignedUploadRequest, aa as SignedUploadResponse, ab as SignedUploadUrl, ac as StorageAdapter, ad as StorageFile, ae as TrackEventResponse, af as TransactionSummary, ag as UTMParams, ah as UpdateProfileRequest, ai as UploadOptions, aj as UploadResponse, ak as VerifyEmailRequest } from './index-BOPHR50i.mjs';
9
+ import { S as ScaleMuleConfig, U as User, L as LoginResponse, A as ApiError$1, a as UseAuthReturn, b as UseBillingReturn, c as ListFilesParams, d as UseContentReturn, e as UseUserReturn, f as UseAnalyticsOptions, g as UseAnalyticsReturn } from './index-CCqkMN-C.mjs';
10
+ export { h as AccountBalance, i as AnalyticsEvent, j as ApiResponse, k as AuthLoginResponse, B as BatchTrackRequest, l as BillingPayment, m as BillingPayout, n as BillingRefund, o as BillingTransaction, C as ChangeEmailRequest, p as ChangePasswordRequest, q as ClientContext, r as ConnectedAccount, s as CookieLoginResponse, t as CookieOAuthCallbackResponse, D as DeviceFingerprint, u as DeviceInfo, E as EnhancedAnalyticsEvent, F as ForgotPasswordRequest, K as KnownAccountInfo, v as LinkedAccount, w as ListFilesResponse, x as LoginDeviceInfo, y as LoginRequest, z as LoginResponseWithMFA, G as LoginRiskInfo, M as MFAChallengeResponse, H as MFAMethod, I as MFASMSSetupResponse, J as MFASetupRequest, N as MFAStatus, O as MFATOTPSetupResponse, P as MFAVerifyRequest, Q as OAuthCallbackRequest, R as OAuthCallbackResponse, T as OAuthConfig, V as OAuthProvider, W as OAuthStartResponse, X as PageViewData, Y as PayoutSchedule, Z as PhoneLoginRequest, _ as PhoneSendCodeRequest, $ as PhoneVerifyRequest, a0 as Profile, a1 as ProxyBearerLoginResponse, a2 as RefreshResponse, a3 as RegisterRequest, a4 as ResetPasswordRequest, a5 as ScaleMuleApiError, a6 as ScaleMuleEnvironment, a7 as Session, a8 as SignedUploadCompleteRequest, a9 as SignedUploadRequest, aa as SignedUploadResponse, ab as SignedUploadUrl, ac as StorageAdapter, ad as StorageFile, ae as TrackEventResponse, af as TransactionSummary, ag as UTMParams, ah as UpdateProfileRequest, ai as UploadOptions, aj as UploadResponse, ak as VerifyEmailRequest } from './index-CCqkMN-C.mjs';
11
11
 
12
12
  /**
13
13
  * Tri-state file visibility — `'private' | 'app_public' | 'anonymous_visible'`.
@@ -1351,4 +1351,5 @@ declare function createSafeLogger(prefix: string): {
1351
1351
  error: (message: string, data?: unknown) => void;
1352
1352
  };
1353
1353
 
1354
- export { ApiError$1 as ApiError, type AudioFile, type AudioUploadResult, type ConversationKind, type FeatureFlagEvaluation, type FeatureFlagEvaluation as FeatureFlagResult, type FeedbackItem, type FeedbackItemInput, type FeedbackPriority, type FeedbackStatus, type FeedbackType, FeedbackWidget, type FeedbackWidgetConfig, type FeedbackWidgetProps, type HoneypotFieldName, ListFilesParams, LoginResponse, type MediaPolicy, type MediaUploadResult, NarrationPlayer, type NarrationPlayerAudio, type NarrationPlayerProps, type PasswordValidationResult, type PhoneCountry, type PhoneValidationResult, type RealtimeEvent, type RealtimeMessage, type RealtimeStatus, RegisterHoneypot, type RegisterHoneypotProps, ScaleMuleClient, ScaleMuleConfig, ScaleMuleMedia, type ScaleMuleMediaProps, ScaleMuleProvider, type ScaleMuleProviderProps, type SecurityChallenge, type SecurityChallengePrompt, UseAnalyticsOptions, UseAnalyticsReturn, type UseAudioReturn, type UseAudioUploadOptions, UseAuthReturn, UseBillingReturn, UseContentReturn, type UseExperimentOptions, type UseExperimentReturn, type UseFeatureFlagsOptions, type UseFeatureFlagsReturn, type UseFeedbackOptions, type UseFeedbackResult, type UseFileStatusOptions, type UseFileStatusReturn, type UseFeatureFlagsOptions as UseFlagsOptions, type UseFeatureFlagsReturn as UseFlagsReturn, type UseHoneypotReturn, type UseMediaReturn, type UseMediaUploadOptions, type UsePushNotificationsOptions, type UsePushNotificationsReturn, type UseRealtimeOptions, type UseRealtimeReturn, type UseShareOptions, type UseShareReturn, type UseTtsJobOptions, type UseTtsJobReturn, UseUserReturn, type UseVoteOptions, type UseVoteReturn, User, type UsernameValidationResult, VoteButton, type VoteButtonClassNames, type VoteButtonProps, type VoteState, composePhone, createSafeLogger, normalizePhone, phoneCountries, sanitizeForLog, useAnalytics, useAudio, useAuth, useBilling, useContent, useExperiment, useFeatureFlags, useFeedback, useFileStatus, useHoneypot, useMedia, useMoney, useMoneyClient, usePushNotifications, useRealtime, useScaleMule, useScaleMuleClient, useShare, useTtsJob, useUser, useVote, validateForm, validators };
1354
+ export { ApiError$1 as ApiError, FeedbackWidget, ListFilesParams, LoginResponse, NarrationPlayer, RegisterHoneypot, ScaleMuleClient, ScaleMuleConfig, ScaleMuleMedia, ScaleMuleProvider, UseAnalyticsOptions, UseAnalyticsReturn, UseAuthReturn, UseBillingReturn, UseContentReturn, UseUserReturn, User, VoteButton, composePhone, createSafeLogger, normalizePhone, phoneCountries, sanitizeForLog, useAnalytics, useAudio, useAuth, useBilling, useContent, useExperiment, useFeatureFlags, useFeedback, useFileStatus, useHoneypot, useMedia, useMoney, useMoneyClient, usePushNotifications, useRealtime, useScaleMule, useScaleMuleClient, useShare, useTtsJob, useUser, useVote, validateForm, validators };
1355
+ export type { AudioFile, AudioUploadResult, ConversationKind, FeatureFlagEvaluation, FeatureFlagEvaluation as FeatureFlagResult, FeedbackItem, FeedbackItemInput, FeedbackPriority, FeedbackStatus, FeedbackType, FeedbackWidgetConfig, FeedbackWidgetProps, HoneypotFieldName, MediaPolicy, MediaUploadResult, NarrationPlayerAudio, NarrationPlayerProps, PasswordValidationResult, PhoneCountry, PhoneValidationResult, RealtimeEvent, RealtimeMessage, RealtimeStatus, RegisterHoneypotProps, ScaleMuleMediaProps, ScaleMuleProviderProps, SecurityChallenge, SecurityChallengePrompt, UseAudioReturn, UseAudioUploadOptions, UseExperimentOptions, UseExperimentReturn, UseFeatureFlagsOptions, UseFeatureFlagsReturn, UseFeedbackOptions, UseFeedbackResult, UseFileStatusOptions, UseFileStatusReturn, UseFeatureFlagsOptions as UseFlagsOptions, UseFeatureFlagsReturn as UseFlagsReturn, UseHoneypotReturn, UseMediaReturn, UseMediaUploadOptions, UsePushNotificationsOptions, UsePushNotificationsReturn, UseRealtimeOptions, UseRealtimeReturn, UseShareOptions, UseShareReturn, UseTtsJobOptions, UseTtsJobReturn, UseVoteOptions, UseVoteReturn, UsernameValidationResult, VoteButtonClassNames, VoteButtonProps, VoteState };
package/dist/index.d.ts CHANGED
@@ -6,8 +6,8 @@ import { MoneyClient } from '@scalemule/money';
6
6
  export { MoneyClient, MoneyClientConfig, createMoneyClient } from '@scalemule/money';
7
7
  import { ScaleMuleClient } from './client.js';
8
8
  export { ClientConfig, RequestOptions, createClient } from './client.js';
9
- import { S as ScaleMuleConfig, U as User, L as LoginResponse, A as ApiError$1, a as UseAuthReturn, b as UseBillingReturn, c as ListFilesParams, d as UseContentReturn, e as UseUserReturn, f as UseAnalyticsOptions, g as UseAnalyticsReturn } from './index-BOPHR50i.js';
10
- export { h as AccountBalance, i as AnalyticsEvent, j as ApiResponse, k as AuthLoginResponse, B as BatchTrackRequest, l as BillingPayment, m as BillingPayout, n as BillingRefund, o as BillingTransaction, C as ChangeEmailRequest, p as ChangePasswordRequest, q as ClientContext, r as ConnectedAccount, s as CookieLoginResponse, t as CookieOAuthCallbackResponse, D as DeviceFingerprint, u as DeviceInfo, E as EnhancedAnalyticsEvent, F as ForgotPasswordRequest, K as KnownAccountInfo, v as LinkedAccount, w as ListFilesResponse, x as LoginDeviceInfo, y as LoginRequest, z as LoginResponseWithMFA, G as LoginRiskInfo, M as MFAChallengeResponse, H as MFAMethod, I as MFASMSSetupResponse, J as MFASetupRequest, N as MFAStatus, O as MFATOTPSetupResponse, P as MFAVerifyRequest, Q as OAuthCallbackRequest, R as OAuthCallbackResponse, T as OAuthConfig, V as OAuthProvider, W as OAuthStartResponse, X as PageViewData, Y as PayoutSchedule, Z as PhoneLoginRequest, _ as PhoneSendCodeRequest, $ as PhoneVerifyRequest, a0 as Profile, a1 as ProxyBearerLoginResponse, a2 as RefreshResponse, a3 as RegisterRequest, a4 as ResetPasswordRequest, a5 as ScaleMuleApiError, a6 as ScaleMuleEnvironment, a7 as Session, a8 as SignedUploadCompleteRequest, a9 as SignedUploadRequest, aa as SignedUploadResponse, ab as SignedUploadUrl, ac as StorageAdapter, ad as StorageFile, ae as TrackEventResponse, af as TransactionSummary, ag as UTMParams, ah as UpdateProfileRequest, ai as UploadOptions, aj as UploadResponse, ak as VerifyEmailRequest } from './index-BOPHR50i.js';
9
+ import { S as ScaleMuleConfig, U as User, L as LoginResponse, A as ApiError$1, a as UseAuthReturn, b as UseBillingReturn, c as ListFilesParams, d as UseContentReturn, e as UseUserReturn, f as UseAnalyticsOptions, g as UseAnalyticsReturn } from './index-CCqkMN-C.js';
10
+ export { h as AccountBalance, i as AnalyticsEvent, j as ApiResponse, k as AuthLoginResponse, B as BatchTrackRequest, l as BillingPayment, m as BillingPayout, n as BillingRefund, o as BillingTransaction, C as ChangeEmailRequest, p as ChangePasswordRequest, q as ClientContext, r as ConnectedAccount, s as CookieLoginResponse, t as CookieOAuthCallbackResponse, D as DeviceFingerprint, u as DeviceInfo, E as EnhancedAnalyticsEvent, F as ForgotPasswordRequest, K as KnownAccountInfo, v as LinkedAccount, w as ListFilesResponse, x as LoginDeviceInfo, y as LoginRequest, z as LoginResponseWithMFA, G as LoginRiskInfo, M as MFAChallengeResponse, H as MFAMethod, I as MFASMSSetupResponse, J as MFASetupRequest, N as MFAStatus, O as MFATOTPSetupResponse, P as MFAVerifyRequest, Q as OAuthCallbackRequest, R as OAuthCallbackResponse, T as OAuthConfig, V as OAuthProvider, W as OAuthStartResponse, X as PageViewData, Y as PayoutSchedule, Z as PhoneLoginRequest, _ as PhoneSendCodeRequest, $ as PhoneVerifyRequest, a0 as Profile, a1 as ProxyBearerLoginResponse, a2 as RefreshResponse, a3 as RegisterRequest, a4 as ResetPasswordRequest, a5 as ScaleMuleApiError, a6 as ScaleMuleEnvironment, a7 as Session, a8 as SignedUploadCompleteRequest, a9 as SignedUploadRequest, aa as SignedUploadResponse, ab as SignedUploadUrl, ac as StorageAdapter, ad as StorageFile, ae as TrackEventResponse, af as TransactionSummary, ag as UTMParams, ah as UpdateProfileRequest, ai as UploadOptions, aj as UploadResponse, ak as VerifyEmailRequest } from './index-CCqkMN-C.js';
11
11
 
12
12
  /**
13
13
  * Tri-state file visibility — `'private' | 'app_public' | 'anonymous_visible'`.
@@ -1351,4 +1351,5 @@ declare function createSafeLogger(prefix: string): {
1351
1351
  error: (message: string, data?: unknown) => void;
1352
1352
  };
1353
1353
 
1354
- export { ApiError$1 as ApiError, type AudioFile, type AudioUploadResult, type ConversationKind, type FeatureFlagEvaluation, type FeatureFlagEvaluation as FeatureFlagResult, type FeedbackItem, type FeedbackItemInput, type FeedbackPriority, type FeedbackStatus, type FeedbackType, FeedbackWidget, type FeedbackWidgetConfig, type FeedbackWidgetProps, type HoneypotFieldName, ListFilesParams, LoginResponse, type MediaPolicy, type MediaUploadResult, NarrationPlayer, type NarrationPlayerAudio, type NarrationPlayerProps, type PasswordValidationResult, type PhoneCountry, type PhoneValidationResult, type RealtimeEvent, type RealtimeMessage, type RealtimeStatus, RegisterHoneypot, type RegisterHoneypotProps, ScaleMuleClient, ScaleMuleConfig, ScaleMuleMedia, type ScaleMuleMediaProps, ScaleMuleProvider, type ScaleMuleProviderProps, type SecurityChallenge, type SecurityChallengePrompt, UseAnalyticsOptions, UseAnalyticsReturn, type UseAudioReturn, type UseAudioUploadOptions, UseAuthReturn, UseBillingReturn, UseContentReturn, type UseExperimentOptions, type UseExperimentReturn, type UseFeatureFlagsOptions, type UseFeatureFlagsReturn, type UseFeedbackOptions, type UseFeedbackResult, type UseFileStatusOptions, type UseFileStatusReturn, type UseFeatureFlagsOptions as UseFlagsOptions, type UseFeatureFlagsReturn as UseFlagsReturn, type UseHoneypotReturn, type UseMediaReturn, type UseMediaUploadOptions, type UsePushNotificationsOptions, type UsePushNotificationsReturn, type UseRealtimeOptions, type UseRealtimeReturn, type UseShareOptions, type UseShareReturn, type UseTtsJobOptions, type UseTtsJobReturn, UseUserReturn, type UseVoteOptions, type UseVoteReturn, User, type UsernameValidationResult, VoteButton, type VoteButtonClassNames, type VoteButtonProps, type VoteState, composePhone, createSafeLogger, normalizePhone, phoneCountries, sanitizeForLog, useAnalytics, useAudio, useAuth, useBilling, useContent, useExperiment, useFeatureFlags, useFeedback, useFileStatus, useHoneypot, useMedia, useMoney, useMoneyClient, usePushNotifications, useRealtime, useScaleMule, useScaleMuleClient, useShare, useTtsJob, useUser, useVote, validateForm, validators };
1354
+ export { ApiError$1 as ApiError, FeedbackWidget, ListFilesParams, LoginResponse, NarrationPlayer, RegisterHoneypot, ScaleMuleClient, ScaleMuleConfig, ScaleMuleMedia, ScaleMuleProvider, UseAnalyticsOptions, UseAnalyticsReturn, UseAuthReturn, UseBillingReturn, UseContentReturn, UseUserReturn, User, VoteButton, composePhone, createSafeLogger, normalizePhone, phoneCountries, sanitizeForLog, useAnalytics, useAudio, useAuth, useBilling, useContent, useExperiment, useFeatureFlags, useFeedback, useFileStatus, useHoneypot, useMedia, useMoney, useMoneyClient, usePushNotifications, useRealtime, useScaleMule, useScaleMuleClient, useShare, useTtsJob, useUser, useVote, validateForm, validators };
1355
+ export type { AudioFile, AudioUploadResult, ConversationKind, FeatureFlagEvaluation, FeatureFlagEvaluation as FeatureFlagResult, FeedbackItem, FeedbackItemInput, FeedbackPriority, FeedbackStatus, FeedbackType, FeedbackWidgetConfig, FeedbackWidgetProps, HoneypotFieldName, MediaPolicy, MediaUploadResult, NarrationPlayerAudio, NarrationPlayerProps, PasswordValidationResult, PhoneCountry, PhoneValidationResult, RealtimeEvent, RealtimeMessage, RealtimeStatus, RegisterHoneypotProps, ScaleMuleMediaProps, ScaleMuleProviderProps, SecurityChallenge, SecurityChallengePrompt, UseAudioReturn, UseAudioUploadOptions, UseExperimentOptions, UseExperimentReturn, UseFeatureFlagsOptions, UseFeatureFlagsReturn, UseFeedbackOptions, UseFeedbackResult, UseFileStatusOptions, UseFileStatusReturn, UseFeatureFlagsOptions as UseFlagsOptions, UseFeatureFlagsReturn as UseFlagsReturn, UseHoneypotReturn, UseMediaReturn, UseMediaUploadOptions, UsePushNotificationsOptions, UsePushNotificationsReturn, UseRealtimeOptions, UseRealtimeReturn, UseShareOptions, UseShareReturn, UseTtsJobOptions, UseTtsJobReturn, UseVoteOptions, UseVoteReturn, UsernameValidationResult, VoteButtonClassNames, VoteButtonProps, VoteState };
@@ -41,4 +41,5 @@ declare function createLedveryRoutes(config: LedveryRoutesConfig): {
41
41
  POST: RouteHandler;
42
42
  };
43
43
 
44
- export { type LedveryRoutesConfig as L, SM_LEDVERY_ACCESS_TOKEN_COOKIE as S, type LedverySessionData as a, SM_LEDVERY_ID_TOKEN_COOKIE as b, SM_LEDVERY_NONCE_COOKIE as c, SM_LEDVERY_PKCE_VERIFIER_COOKIE as d, SM_LEDVERY_STATE_COOKIE as e, createLedveryRoutes as f, getLedverySession as g };
44
+ export { SM_LEDVERY_ACCESS_TOKEN_COOKIE as S, SM_LEDVERY_ID_TOKEN_COOKIE as b, SM_LEDVERY_NONCE_COOKIE as c, SM_LEDVERY_PKCE_VERIFIER_COOKIE as d, SM_LEDVERY_STATE_COOKIE as e, createLedveryRoutes as f, getLedverySession as g };
45
+ export type { LedveryRoutesConfig as L, LedverySessionData as a };
@@ -41,4 +41,5 @@ declare function createLedveryRoutes(config: LedveryRoutesConfig): {
41
41
  POST: RouteHandler;
42
42
  };
43
43
 
44
- export { type LedveryRoutesConfig as L, SM_LEDVERY_ACCESS_TOKEN_COOKIE as S, type LedverySessionData as a, SM_LEDVERY_ID_TOKEN_COOKIE as b, SM_LEDVERY_NONCE_COOKIE as c, SM_LEDVERY_PKCE_VERIFIER_COOKIE as d, SM_LEDVERY_STATE_COOKIE as e, createLedveryRoutes as f, getLedverySession as g };
44
+ export { SM_LEDVERY_ACCESS_TOKEN_COOKIE as S, SM_LEDVERY_ID_TOKEN_COOKIE as b, SM_LEDVERY_NONCE_COOKIE as c, SM_LEDVERY_PKCE_VERIFIER_COOKIE as d, SM_LEDVERY_STATE_COOKIE as e, createLedveryRoutes as f, getLedverySession as g };
45
+ export type { LedveryRoutesConfig as L, LedverySessionData as a };
@@ -1,2 +1,2 @@
1
1
  export { ScaleMuleAi } from '@scalemule/ai';
2
- export { A as AiAccountResolver, b as AiRoutesConfig, e as ServiceAiClientConfig, i as createAiRoutes, j as createServiceAiClient, q as resolveAiTarget } from '../ai-DFsYPvk8.mjs';
2
+ export { A as AiAccountResolver, b as AiRoutesConfig, e as ServiceAiClientConfig, i as createAiRoutes, j as createServiceAiClient, q as resolveAiTarget } from '../ai-VzQ-4hdN.mjs';
@@ -1,2 +1,2 @@
1
1
  export { ScaleMuleAi } from '@scalemule/ai';
2
- export { A as AiAccountResolver, b as AiRoutesConfig, e as ServiceAiClientConfig, i as createAiRoutes, j as createServiceAiClient, q as resolveAiTarget } from '../ai-DFsYPvk8.js';
2
+ export { A as AiAccountResolver, b as AiRoutesConfig, e as ServiceAiClientConfig, i as createAiRoutes, j as createServiceAiClient, q as resolveAiTarget } from '../ai-VzQ-4hdN.js';
@@ -1325,7 +1325,7 @@ function isSameOriginRequest(request) {
1325
1325
  }
1326
1326
  return true;
1327
1327
  }
1328
- var SERVICES = /* @__PURE__ */ new Set(["storage", "photo", "video", "audio", "media", "tts", "social", "chat", "realtime", "money", "billing", "flags", "notifications", "search", "presence", "conference", "gallop", "data", "forms", "preferences", "feedback", "referrals"]);
1328
+ var SERVICES = /* @__PURE__ */ new Set(["storage", "photo", "photos", "video", "videos", "audio", "media", "tts", "social", "chat", "realtime", "money", "billing", "flags", "notifications", "search", "presence", "conference", "gallop", "data", "forms", "preferences", "feedback", "referrals"]);
1329
1329
  var AUTH_ROUTES = /* @__PURE__ */ new Set([
1330
1330
  "GET me",
1331
1331
  "GET mfa/status",
@@ -1323,7 +1323,7 @@ function isSameOriginRequest(request) {
1323
1323
  }
1324
1324
  return true;
1325
1325
  }
1326
- var SERVICES = /* @__PURE__ */ new Set(["storage", "photo", "video", "audio", "media", "tts", "social", "chat", "realtime", "money", "billing", "flags", "notifications", "search", "presence", "conference", "gallop", "data", "forms", "preferences", "feedback", "referrals"]);
1326
+ var SERVICES = /* @__PURE__ */ new Set(["storage", "photo", "photos", "video", "videos", "audio", "media", "tts", "social", "chat", "realtime", "money", "billing", "flags", "notifications", "search", "presence", "conference", "gallop", "data", "forms", "preferences", "feedback", "referrals"]);
1327
1327
  var AUTH_ROUTES = /* @__PURE__ */ new Set([
1328
1328
  "GET me",
1329
1329
  "GET mfa/status",
@@ -1,9 +1,9 @@
1
- import { S as ServerConfig } from '../webhook-handler-CoASZNi5.mjs';
2
- export { a as ScaleMuleServer, V as VideoFailedEvent, b as VideoReadyEvent, c as VideoTranscodedEvent, d as VideoUploadedEvent, W as WebhookEvent, e as WebhookRoutesConfig, f as createServerClient, g as createWebhookHandler, h as createWebhookRoutes, p as parseWebhookEvent, r as registerVideoWebhook, i as resolveGatewayUrl, v as verifyWebhookSignature } from '../webhook-handler-CoASZNi5.mjs';
3
- import { q as ClientContext, A as ApiError } from '../index-BOPHR50i.mjs';
4
- import { S as SessionCookieOptions, a as SessionData } from '../ai-DFsYPvk8.mjs';
5
- export { A as AiAccountResolver, b as AiRoutesConfig, K as KNOWN_ACCOUNTS_COOKIE_NAME, c as KnownAccountEntry, d as SESSION_COOKIE_NAME, e as ServiceAiClientConfig, U as USER_ID_COOKIE_NAME, f as appendKnownAccountCookie, g as clearKnownAccountsCookie, h as clearSession, i as createAiRoutes, j as createServiceAiClient, k as getKnownAccountsCookieRaw, l as getKnownAccountsFromRequest, m as getSession, n as getSessionFromRequest, o as normalizeKnownAccountsCookie, r as removeKnownAccountFromCookie, p as requireSession, w as withSession } from '../ai-DFsYPvk8.mjs';
6
- export { L as LedveryRoutesConfig, a as LedverySessionData, S as SM_LEDVERY_ACCESS_TOKEN_COOKIE, b as SM_LEDVERY_ID_TOKEN_COOKIE, c as SM_LEDVERY_NONCE_COOKIE, d as SM_LEDVERY_PKCE_VERIFIER_COOKIE, e as SM_LEDVERY_STATE_COOKIE, f as createLedveryRoutes, g as getLedverySession } from '../ledvery-CxPzZpxP.mjs';
1
+ import { S as ServerConfig } from '../webhook-handler-hPeW76a1.mjs';
2
+ export { a as ScaleMuleServer, V as VideoFailedEvent, b as VideoReadyEvent, c as VideoTranscodedEvent, d as VideoUploadedEvent, W as WebhookEvent, e as WebhookRoutesConfig, f as createServerClient, g as createWebhookHandler, h as createWebhookRoutes, p as parseWebhookEvent, r as registerVideoWebhook, i as resolveGatewayUrl, v as verifyWebhookSignature } from '../webhook-handler-hPeW76a1.mjs';
3
+ import { ClientContext, ApiError } from '../index.mjs';
4
+ import { S as SessionCookieOptions, a as SessionData } from '../ai-VzQ-4hdN.mjs';
5
+ export { A as AiAccountResolver, b as AiRoutesConfig, K as KNOWN_ACCOUNTS_COOKIE_NAME, c as KnownAccountEntry, d as SESSION_COOKIE_NAME, e as ServiceAiClientConfig, U as USER_ID_COOKIE_NAME, f as appendKnownAccountCookie, g as clearKnownAccountsCookie, h as clearSession, i as createAiRoutes, j as createServiceAiClient, k as getKnownAccountsCookieRaw, l as getKnownAccountsFromRequest, m as getSession, n as getSessionFromRequest, o as normalizeKnownAccountsCookie, r as removeKnownAccountFromCookie, p as requireSession, w as withSession } from '../ai-VzQ-4hdN.mjs';
6
+ export { L as LedveryRoutesConfig, a as LedverySessionData, S as SM_LEDVERY_ACCESS_TOKEN_COOKIE, b as SM_LEDVERY_ID_TOKEN_COOKIE, c as SM_LEDVERY_NONCE_COOKIE, d as SM_LEDVERY_PKCE_VERIFIER_COOKIE, e as SM_LEDVERY_STATE_COOKIE, f as createLedveryRoutes, g as getLedverySession } from '../ledvery-Caj1fxvW.mjs';
7
7
  import { NextRequest, NextResponse } from 'next/server';
8
8
  import '@scalemule/sdk';
9
9
  import '@scalemule/money';
@@ -1301,4 +1301,5 @@ declare const DEFAULT_PERMISSIONS_POLICY: PermissionsPolicyMap;
1301
1301
  */
1302
1302
  declare function buildSecurityHeaders(opts?: BuildSecurityHeadersOptions): SecurityHeaderEntry[];
1303
1303
 
1304
- export { type AnalyticsRoutesConfig, type AnalyticsTrackingGateConfig, type AuthMiddlewareConfig, type AuthRoutesConfig, type BuildSecurityHeadersOptions, CSRF_COOKIE_NAME, CSRF_HEADER_NAME, DEFAULT_PERMISSIONS_POLICY, type HandlerContext, type HandlerOptions, type MySqlBundle, type NewsletterRoutesConfig, type NotificationRoutesConfig, OAUTH_STATE_COOKIE_NAME, type OAuthBundle, type PermissionsPolicyMap, type PermissionsPolicyValue, type PostgresBundle, type PushRoutesConfig, type PushTarget, type RedisBundle, type S3Bundle, type SafeRedirectOptions, ScaleMuleError, type SecurityHeaderEntry, ServerConfig, SessionCookieOptions, SessionData, type SmtpBundle, apiHandler, buildClientContextHeaders, buildFlagContext, buildSecurityHeaders, clearOAuthState, configureBundles, configureSecrets, createAnalyticsRoutes, createAuthMiddleware, createAuthRoutes, createNewsletterRoutes, createNotificationRoutes, createPushRoutes, encodePathSegment, errorCodeToStatus, extractClientContext, extractClientContextFromReq, generateCSRFToken, getAppSecret, getAppSecretOrDefault, getBootstrapFlags, getBundle, getCSRFToken, getMySqlBundle, getOAuthBundle, getPostgresBundle, getRedisBundle, getS3Bundle, getSmtpBundle, hasUnsafePathSyntax, invalidateBundleCache, invalidateSecretCache, isSafePathSegment, isSafeRedirect, newsletterRoute, prefetchBundles, prefetchSecrets, requireAppSecret, requireBundle, resolveNotificationTarget, resolvePushTarget, setOAuthState, unwrap, validateCSRFToken, validateCSRFTokenAsync, validateOAuthState, validateOAuthStateAsync, validateSafeRedirect, withAuth, withCSRFProtection, withCSRFToken };
1304
+ export { CSRF_COOKIE_NAME, CSRF_HEADER_NAME, DEFAULT_PERMISSIONS_POLICY, OAUTH_STATE_COOKIE_NAME, ScaleMuleError, ServerConfig, SessionCookieOptions, SessionData, apiHandler, buildClientContextHeaders, buildFlagContext, buildSecurityHeaders, clearOAuthState, configureBundles, configureSecrets, createAnalyticsRoutes, createAuthMiddleware, createAuthRoutes, createNewsletterRoutes, createNotificationRoutes, createPushRoutes, encodePathSegment, errorCodeToStatus, extractClientContext, extractClientContextFromReq, generateCSRFToken, getAppSecret, getAppSecretOrDefault, getBootstrapFlags, getBundle, getCSRFToken, getMySqlBundle, getOAuthBundle, getPostgresBundle, getRedisBundle, getS3Bundle, getSmtpBundle, hasUnsafePathSyntax, invalidateBundleCache, invalidateSecretCache, isSafePathSegment, isSafeRedirect, newsletterRoute, prefetchBundles, prefetchSecrets, requireAppSecret, requireBundle, resolveNotificationTarget, resolvePushTarget, setOAuthState, unwrap, validateCSRFToken, validateCSRFTokenAsync, validateOAuthState, validateOAuthStateAsync, validateSafeRedirect, withAuth, withCSRFProtection, withCSRFToken };
1305
+ export type { AnalyticsRoutesConfig, AnalyticsTrackingGateConfig, AuthMiddlewareConfig, AuthRoutesConfig, BuildSecurityHeadersOptions, HandlerContext, HandlerOptions, MySqlBundle, NewsletterRoutesConfig, NotificationRoutesConfig, OAuthBundle, PermissionsPolicyMap, PermissionsPolicyValue, PostgresBundle, PushRoutesConfig, PushTarget, RedisBundle, S3Bundle, SafeRedirectOptions, SecurityHeaderEntry, SmtpBundle };
@@ -1,9 +1,9 @@
1
- import { S as ServerConfig } from '../webhook-handler-C7XK0Tjs.js';
2
- export { a as ScaleMuleServer, V as VideoFailedEvent, b as VideoReadyEvent, c as VideoTranscodedEvent, d as VideoUploadedEvent, W as WebhookEvent, e as WebhookRoutesConfig, f as createServerClient, g as createWebhookHandler, h as createWebhookRoutes, p as parseWebhookEvent, r as registerVideoWebhook, i as resolveGatewayUrl, v as verifyWebhookSignature } from '../webhook-handler-C7XK0Tjs.js';
3
- import { q as ClientContext, A as ApiError } from '../index-BOPHR50i.js';
4
- import { S as SessionCookieOptions, a as SessionData } from '../ai-DFsYPvk8.js';
5
- export { A as AiAccountResolver, b as AiRoutesConfig, K as KNOWN_ACCOUNTS_COOKIE_NAME, c as KnownAccountEntry, d as SESSION_COOKIE_NAME, e as ServiceAiClientConfig, U as USER_ID_COOKIE_NAME, f as appendKnownAccountCookie, g as clearKnownAccountsCookie, h as clearSession, i as createAiRoutes, j as createServiceAiClient, k as getKnownAccountsCookieRaw, l as getKnownAccountsFromRequest, m as getSession, n as getSessionFromRequest, o as normalizeKnownAccountsCookie, r as removeKnownAccountFromCookie, p as requireSession, w as withSession } from '../ai-DFsYPvk8.js';
6
- export { L as LedveryRoutesConfig, a as LedverySessionData, S as SM_LEDVERY_ACCESS_TOKEN_COOKIE, b as SM_LEDVERY_ID_TOKEN_COOKIE, c as SM_LEDVERY_NONCE_COOKIE, d as SM_LEDVERY_PKCE_VERIFIER_COOKIE, e as SM_LEDVERY_STATE_COOKIE, f as createLedveryRoutes, g as getLedverySession } from '../ledvery-CxPzZpxP.js';
1
+ import { S as ServerConfig } from '../webhook-handler-DZXq9HbA.js';
2
+ export { a as ScaleMuleServer, V as VideoFailedEvent, b as VideoReadyEvent, c as VideoTranscodedEvent, d as VideoUploadedEvent, W as WebhookEvent, e as WebhookRoutesConfig, f as createServerClient, g as createWebhookHandler, h as createWebhookRoutes, p as parseWebhookEvent, r as registerVideoWebhook, i as resolveGatewayUrl, v as verifyWebhookSignature } from '../webhook-handler-DZXq9HbA.js';
3
+ import { ClientContext, ApiError } from '../index.js';
4
+ import { S as SessionCookieOptions, a as SessionData } from '../ai-VzQ-4hdN.js';
5
+ export { A as AiAccountResolver, b as AiRoutesConfig, K as KNOWN_ACCOUNTS_COOKIE_NAME, c as KnownAccountEntry, d as SESSION_COOKIE_NAME, e as ServiceAiClientConfig, U as USER_ID_COOKIE_NAME, f as appendKnownAccountCookie, g as clearKnownAccountsCookie, h as clearSession, i as createAiRoutes, j as createServiceAiClient, k as getKnownAccountsCookieRaw, l as getKnownAccountsFromRequest, m as getSession, n as getSessionFromRequest, o as normalizeKnownAccountsCookie, r as removeKnownAccountFromCookie, p as requireSession, w as withSession } from '../ai-VzQ-4hdN.js';
6
+ export { L as LedveryRoutesConfig, a as LedverySessionData, S as SM_LEDVERY_ACCESS_TOKEN_COOKIE, b as SM_LEDVERY_ID_TOKEN_COOKIE, c as SM_LEDVERY_NONCE_COOKIE, d as SM_LEDVERY_PKCE_VERIFIER_COOKIE, e as SM_LEDVERY_STATE_COOKIE, f as createLedveryRoutes, g as getLedverySession } from '../ledvery-Caj1fxvW.js';
7
7
  import { NextRequest, NextResponse } from 'next/server';
8
8
  import '@scalemule/sdk';
9
9
  import '@scalemule/money';
@@ -1301,4 +1301,5 @@ declare const DEFAULT_PERMISSIONS_POLICY: PermissionsPolicyMap;
1301
1301
  */
1302
1302
  declare function buildSecurityHeaders(opts?: BuildSecurityHeadersOptions): SecurityHeaderEntry[];
1303
1303
 
1304
- export { type AnalyticsRoutesConfig, type AnalyticsTrackingGateConfig, type AuthMiddlewareConfig, type AuthRoutesConfig, type BuildSecurityHeadersOptions, CSRF_COOKIE_NAME, CSRF_HEADER_NAME, DEFAULT_PERMISSIONS_POLICY, type HandlerContext, type HandlerOptions, type MySqlBundle, type NewsletterRoutesConfig, type NotificationRoutesConfig, OAUTH_STATE_COOKIE_NAME, type OAuthBundle, type PermissionsPolicyMap, type PermissionsPolicyValue, type PostgresBundle, type PushRoutesConfig, type PushTarget, type RedisBundle, type S3Bundle, type SafeRedirectOptions, ScaleMuleError, type SecurityHeaderEntry, ServerConfig, SessionCookieOptions, SessionData, type SmtpBundle, apiHandler, buildClientContextHeaders, buildFlagContext, buildSecurityHeaders, clearOAuthState, configureBundles, configureSecrets, createAnalyticsRoutes, createAuthMiddleware, createAuthRoutes, createNewsletterRoutes, createNotificationRoutes, createPushRoutes, encodePathSegment, errorCodeToStatus, extractClientContext, extractClientContextFromReq, generateCSRFToken, getAppSecret, getAppSecretOrDefault, getBootstrapFlags, getBundle, getCSRFToken, getMySqlBundle, getOAuthBundle, getPostgresBundle, getRedisBundle, getS3Bundle, getSmtpBundle, hasUnsafePathSyntax, invalidateBundleCache, invalidateSecretCache, isSafePathSegment, isSafeRedirect, newsletterRoute, prefetchBundles, prefetchSecrets, requireAppSecret, requireBundle, resolveNotificationTarget, resolvePushTarget, setOAuthState, unwrap, validateCSRFToken, validateCSRFTokenAsync, validateOAuthState, validateOAuthStateAsync, validateSafeRedirect, withAuth, withCSRFProtection, withCSRFToken };
1304
+ export { CSRF_COOKIE_NAME, CSRF_HEADER_NAME, DEFAULT_PERMISSIONS_POLICY, OAUTH_STATE_COOKIE_NAME, ScaleMuleError, ServerConfig, SessionCookieOptions, SessionData, apiHandler, buildClientContextHeaders, buildFlagContext, buildSecurityHeaders, clearOAuthState, configureBundles, configureSecrets, createAnalyticsRoutes, createAuthMiddleware, createAuthRoutes, createNewsletterRoutes, createNotificationRoutes, createPushRoutes, encodePathSegment, errorCodeToStatus, extractClientContext, extractClientContextFromReq, generateCSRFToken, getAppSecret, getAppSecretOrDefault, getBootstrapFlags, getBundle, getCSRFToken, getMySqlBundle, getOAuthBundle, getPostgresBundle, getRedisBundle, getS3Bundle, getSmtpBundle, hasUnsafePathSyntax, invalidateBundleCache, invalidateSecretCache, isSafePathSegment, isSafeRedirect, newsletterRoute, prefetchBundles, prefetchSecrets, requireAppSecret, requireBundle, resolveNotificationTarget, resolvePushTarget, setOAuthState, unwrap, validateCSRFToken, validateCSRFTokenAsync, validateOAuthState, validateOAuthStateAsync, validateSafeRedirect, withAuth, withCSRFProtection, withCSRFToken };
1305
+ export type { AnalyticsRoutesConfig, AnalyticsTrackingGateConfig, AuthMiddlewareConfig, AuthRoutesConfig, BuildSecurityHeadersOptions, HandlerContext, HandlerOptions, MySqlBundle, NewsletterRoutesConfig, NotificationRoutesConfig, OAuthBundle, PermissionsPolicyMap, PermissionsPolicyValue, PostgresBundle, PushRoutesConfig, PushTarget, RedisBundle, S3Bundle, SafeRedirectOptions, SecurityHeaderEntry, SmtpBundle };
@@ -1503,7 +1503,7 @@ function isSameOriginRequest(request) {
1503
1503
  }
1504
1504
  return true;
1505
1505
  }
1506
- var SERVICES = /* @__PURE__ */ new Set(["storage", "photo", "video", "audio", "media", "tts", "social", "chat", "realtime", "money", "billing", "flags", "notifications", "search", "presence", "conference", "gallop", "data", "forms", "preferences", "feedback", "referrals"]);
1506
+ var SERVICES = /* @__PURE__ */ new Set(["storage", "photo", "photos", "video", "videos", "audio", "media", "tts", "social", "chat", "realtime", "money", "billing", "flags", "notifications", "search", "presence", "conference", "gallop", "data", "forms", "preferences", "feedback", "referrals"]);
1507
1507
  var AUTH_ROUTES = /* @__PURE__ */ new Set([
1508
1508
  "GET me",
1509
1509
  "GET mfa/status",
@@ -1501,7 +1501,7 @@ function isSameOriginRequest(request) {
1501
1501
  }
1502
1502
  return true;
1503
1503
  }
1504
- var SERVICES = /* @__PURE__ */ new Set(["storage", "photo", "video", "audio", "media", "tts", "social", "chat", "realtime", "money", "billing", "flags", "notifications", "search", "presence", "conference", "gallop", "data", "forms", "preferences", "feedback", "referrals"]);
1504
+ var SERVICES = /* @__PURE__ */ new Set(["storage", "photo", "photos", "video", "videos", "audio", "media", "tts", "social", "chat", "realtime", "money", "billing", "flags", "notifications", "search", "presence", "conference", "gallop", "data", "forms", "preferences", "feedback", "referrals"]);
1505
1505
  var AUTH_ROUTES = /* @__PURE__ */ new Set([
1506
1506
  "GET me",
1507
1507
  "GET mfa/status",
@@ -1 +1 @@
1
- export { L as LedveryRoutesConfig, a as LedverySessionData, f as createLedveryRoutes, g as getLedverySession } from '../ledvery-CxPzZpxP.mjs';
1
+ export { L as LedveryRoutesConfig, a as LedverySessionData, f as createLedveryRoutes, g as getLedverySession } from '../ledvery-Caj1fxvW.mjs';
@@ -1 +1 @@
1
- export { L as LedveryRoutesConfig, a as LedverySessionData, f as createLedveryRoutes, g as getLedverySession } from '../ledvery-CxPzZpxP.js';
1
+ export { L as LedveryRoutesConfig, a as LedverySessionData, f as createLedveryRoutes, g as getLedverySession } from '../ledvery-Caj1fxvW.js';
@@ -1,4 +1,4 @@
1
- export { g as createWebhookHandler } from '../webhook-handler-CoASZNi5.mjs';
1
+ export { g as createWebhookHandler } from '../webhook-handler-hPeW76a1.mjs';
2
2
  import '@scalemule/sdk';
3
3
  import '@scalemule/money';
4
- import '../index-BOPHR50i.mjs';
4
+ import '../index-CCqkMN-C.mjs';
@@ -1,4 +1,4 @@
1
- export { g as createWebhookHandler } from '../webhook-handler-C7XK0Tjs.js';
1
+ export { g as createWebhookHandler } from '../webhook-handler-DZXq9HbA.js';
2
2
  import '@scalemule/sdk';
3
3
  import '@scalemule/money';
4
- import '../index-BOPHR50i.js';
4
+ import '../index-CCqkMN-C.js';
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode } from 'react';
3
- import { U as User, A as ApiError, ad as StorageFile } from './index-BOPHR50i.mjs';
3
+ import { User, ApiError, StorageFile } from './index.mjs';
4
4
 
5
5
  interface MockUserOptions {
6
6
  id?: string;
@@ -106,4 +106,5 @@ declare function MockScaleMuleProvider({ children, user: initialUser, initializi
106
106
  */
107
107
  declare function useMockScaleMule(): MockScaleMuleContextValue;
108
108
 
109
- export { type MockClientConfig, type MockFileOptions, MockScaleMuleClient, MockScaleMuleProvider, type MockScaleMuleProviderProps, type MockUserOptions, createMockFile, createMockUser, useMockScaleMule };
109
+ export { MockScaleMuleClient, MockScaleMuleProvider, createMockFile, createMockUser, useMockScaleMule };
110
+ export type { MockClientConfig, MockFileOptions, MockScaleMuleProviderProps, MockUserOptions };
package/dist/testing.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode } from 'react';
3
- import { U as User, A as ApiError, ad as StorageFile } from './index-BOPHR50i.js';
3
+ import { User, ApiError, StorageFile } from './index.js';
4
4
 
5
5
  interface MockUserOptions {
6
6
  id?: string;
@@ -106,4 +106,5 @@ declare function MockScaleMuleProvider({ children, user: initialUser, initializi
106
106
  */
107
107
  declare function useMockScaleMule(): MockScaleMuleContextValue;
108
108
 
109
- export { type MockClientConfig, type MockFileOptions, MockScaleMuleClient, MockScaleMuleProvider, type MockScaleMuleProviderProps, type MockUserOptions, createMockFile, createMockUser, useMockScaleMule };
109
+ export { MockScaleMuleClient, MockScaleMuleProvider, createMockFile, createMockUser, useMockScaleMule };
110
+ export type { MockClientConfig, MockFileOptions, MockScaleMuleProviderProps, MockUserOptions };
@@ -1,6 +1,6 @@
1
1
  import { ExperimentAssignment } from '@scalemule/sdk';
2
2
  import { MoneyClient } from '@scalemule/money';
3
- import { A as ApiError, a3 as RegisterRequest, q as ClientContext, U as User, L as LoginResponse, y as LoginRequest, c as ListFilesParams, w as ListFilesResponse, ad as StorageFile, aj as UploadResponse } from './index-BOPHR50i.js';
3
+ import { A as ApiError, a3 as RegisterRequest, q as ClientContext, U as User, L as LoginResponse, y as LoginRequest, c as ListFilesParams, w as ListFilesResponse, ad as StorageFile, aj as UploadResponse } from './index-CCqkMN-C.js';
4
4
 
5
5
  /**
6
6
  * Server-Side ScaleMule Client
@@ -855,4 +855,5 @@ type RouteHandler = (request: Request) => Promise<Response>;
855
855
  */
856
856
  declare function createWebhookHandler(config?: WebhookHandlerConfig): RouteHandler;
857
857
 
858
- export { type ServerConfig as S, type VideoFailedEvent as V, type WebhookEvent as W, ScaleMuleServer as a, type VideoReadyEvent as b, type VideoTranscodedEvent as c, type VideoUploadedEvent as d, type WebhookRoutesConfig as e, createServerClient as f, createWebhookHandler as g, createWebhookRoutes as h, resolveGatewayUrl as i, parseWebhookEvent as p, registerVideoWebhook as r, verifyWebhookSignature as v };
858
+ export { ScaleMuleServer as a, createServerClient as f, createWebhookHandler as g, createWebhookRoutes as h, resolveGatewayUrl as i, parseWebhookEvent as p, registerVideoWebhook as r, verifyWebhookSignature as v };
859
+ export type { ServerConfig as S, VideoFailedEvent as V, WebhookEvent as W, VideoReadyEvent as b, VideoTranscodedEvent as c, VideoUploadedEvent as d, WebhookRoutesConfig as e };
@@ -1,6 +1,6 @@
1
1
  import { ExperimentAssignment } from '@scalemule/sdk';
2
2
  import { MoneyClient } from '@scalemule/money';
3
- import { A as ApiError, a3 as RegisterRequest, q as ClientContext, U as User, L as LoginResponse, y as LoginRequest, c as ListFilesParams, w as ListFilesResponse, ad as StorageFile, aj as UploadResponse } from './index-BOPHR50i.mjs';
3
+ import { A as ApiError, a3 as RegisterRequest, q as ClientContext, U as User, L as LoginResponse, y as LoginRequest, c as ListFilesParams, w as ListFilesResponse, ad as StorageFile, aj as UploadResponse } from './index-CCqkMN-C.mjs';
4
4
 
5
5
  /**
6
6
  * Server-Side ScaleMule Client
@@ -855,4 +855,5 @@ type RouteHandler = (request: Request) => Promise<Response>;
855
855
  */
856
856
  declare function createWebhookHandler(config?: WebhookHandlerConfig): RouteHandler;
857
857
 
858
- export { type ServerConfig as S, type VideoFailedEvent as V, type WebhookEvent as W, ScaleMuleServer as a, type VideoReadyEvent as b, type VideoTranscodedEvent as c, type VideoUploadedEvent as d, type WebhookRoutesConfig as e, createServerClient as f, createWebhookHandler as g, createWebhookRoutes as h, resolveGatewayUrl as i, parseWebhookEvent as p, registerVideoWebhook as r, verifyWebhookSignature as v };
858
+ export { ScaleMuleServer as a, createServerClient as f, createWebhookHandler as g, createWebhookRoutes as h, resolveGatewayUrl as i, parseWebhookEvent as p, registerVideoWebhook as r, verifyWebhookSignature as v };
859
+ export type { ServerConfig as S, VideoFailedEvent as V, WebhookEvent as W, VideoReadyEvent as b, VideoTranscodedEvent as c, VideoUploadedEvent as d, WebhookRoutesConfig as e };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scalemule/nextjs",
3
- "version": "0.1.74",
3
+ "version": "0.1.75",
4
4
  "description": "ScaleMule SDK for Next.js applications - authentication, storage, and user management",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -93,7 +93,7 @@
93
93
  "next": "^16.1.6",
94
94
  "react": "^19.2.4",
95
95
  "react-dom": "^19.2.4",
96
- "tsup": "^8.0.0",
96
+ "tsup": "^9.0.0",
97
97
  "typescript": "^5.0.0",
98
98
  "vitest": "^4.0.18"
99
99
  },