@scalemule/nextjs 0.1.73 → 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';
@@ -383,9 +383,10 @@ var ScaleMuleServer = class {
383
383
  * ```
384
384
  */
385
385
  set: async (key, value) => {
386
- return this.request("PUT", `/v1/vault/secrets/${encodeURIComponent(key)}`, {
386
+ const written = await this.request("PUT", `/v1/vault/secrets/${encodeURIComponent(key)}`, {
387
387
  body: { value }
388
388
  });
389
+ return { value, version: written.version };
389
390
  },
390
391
  /**
391
392
  * Delete a secret from the tenant vault
@@ -412,21 +413,27 @@ var ScaleMuleServer = class {
412
413
  * Rollback to a specific version
413
414
  */
414
415
  rollback: async (key, version) => {
415
- return this.request(
416
+ const written = await this.request(
416
417
  "POST",
417
418
  `/v1/vault/actions/rollback/${encodeURIComponent(key)}`,
418
419
  { body: { version } }
419
420
  );
421
+ const current = await this.request(
422
+ "GET",
423
+ `/v1/vault/secrets/${encodeURIComponent(key)}`
424
+ );
425
+ return { value: current.value, version: written.version ?? current.version };
420
426
  },
421
427
  /**
422
428
  * Rotate a secret (copy current version as new version)
423
429
  */
424
430
  rotate: async (key, newValue) => {
425
- return this.request(
431
+ const rotated = await this.request(
426
432
  "POST",
427
433
  `/v1/vault/actions/rotate/${encodeURIComponent(key)}`,
428
434
  { body: { value: newValue } }
429
435
  );
436
+ return { value: newValue, version: rotated.new_version ?? rotated.version };
430
437
  }
431
438
  };
432
439
  // ==========================================================================
@@ -480,7 +487,7 @@ var ScaleMuleServer = class {
480
487
  * ```
481
488
  */
482
489
  set: async (key, type, data, inheritsFrom) => {
483
- return this.request(
490
+ const written = await this.request(
484
491
  "PUT",
485
492
  `/v1/vault/bundles/${encodeURIComponent(key)}`,
486
493
  {
@@ -491,6 +498,7 @@ var ScaleMuleServer = class {
491
498
  }
492
499
  }
493
500
  );
501
+ return { type, data, version: written.version };
494
502
  },
495
503
  /**
496
504
  * Delete a bundle
@@ -1317,7 +1325,7 @@ function isSameOriginRequest(request) {
1317
1325
  }
1318
1326
  return true;
1319
1327
  }
1320
- 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"]);
1321
1329
  var AUTH_ROUTES = /* @__PURE__ */ new Set([
1322
1330
  "GET me",
1323
1331
  "GET mfa/status",
@@ -381,9 +381,10 @@ var ScaleMuleServer = class {
381
381
  * ```
382
382
  */
383
383
  set: async (key, value) => {
384
- return this.request("PUT", `/v1/vault/secrets/${encodeURIComponent(key)}`, {
384
+ const written = await this.request("PUT", `/v1/vault/secrets/${encodeURIComponent(key)}`, {
385
385
  body: { value }
386
386
  });
387
+ return { value, version: written.version };
387
388
  },
388
389
  /**
389
390
  * Delete a secret from the tenant vault
@@ -410,21 +411,27 @@ var ScaleMuleServer = class {
410
411
  * Rollback to a specific version
411
412
  */
412
413
  rollback: async (key, version) => {
413
- return this.request(
414
+ const written = await this.request(
414
415
  "POST",
415
416
  `/v1/vault/actions/rollback/${encodeURIComponent(key)}`,
416
417
  { body: { version } }
417
418
  );
419
+ const current = await this.request(
420
+ "GET",
421
+ `/v1/vault/secrets/${encodeURIComponent(key)}`
422
+ );
423
+ return { value: current.value, version: written.version ?? current.version };
418
424
  },
419
425
  /**
420
426
  * Rotate a secret (copy current version as new version)
421
427
  */
422
428
  rotate: async (key, newValue) => {
423
- return this.request(
429
+ const rotated = await this.request(
424
430
  "POST",
425
431
  `/v1/vault/actions/rotate/${encodeURIComponent(key)}`,
426
432
  { body: { value: newValue } }
427
433
  );
434
+ return { value: newValue, version: rotated.new_version ?? rotated.version };
428
435
  }
429
436
  };
430
437
  // ==========================================================================
@@ -478,7 +485,7 @@ var ScaleMuleServer = class {
478
485
  * ```
479
486
  */
480
487
  set: async (key, type, data, inheritsFrom) => {
481
- return this.request(
488
+ const written = await this.request(
482
489
  "PUT",
483
490
  `/v1/vault/bundles/${encodeURIComponent(key)}`,
484
491
  {
@@ -489,6 +496,7 @@ var ScaleMuleServer = class {
489
496
  }
490
497
  }
491
498
  );
499
+ return { type, data, version: written.version };
492
500
  },
493
501
  /**
494
502
  * Delete a bundle
@@ -1315,7 +1323,7 @@ function isSameOriginRequest(request) {
1315
1323
  }
1316
1324
  return true;
1317
1325
  }
1318
- 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"]);
1319
1327
  var AUTH_ROUTES = /* @__PURE__ */ new Set([
1320
1328
  "GET me",
1321
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 };
@@ -464,9 +464,10 @@ var ScaleMuleServer = class {
464
464
  * ```
465
465
  */
466
466
  set: async (key, value) => {
467
- return this.request("PUT", `/v1/vault/secrets/${encodeURIComponent(key)}`, {
467
+ const written = await this.request("PUT", `/v1/vault/secrets/${encodeURIComponent(key)}`, {
468
468
  body: { value }
469
469
  });
470
+ return { value, version: written.version };
470
471
  },
471
472
  /**
472
473
  * Delete a secret from the tenant vault
@@ -493,21 +494,27 @@ var ScaleMuleServer = class {
493
494
  * Rollback to a specific version
494
495
  */
495
496
  rollback: async (key, version) => {
496
- return this.request(
497
+ const written = await this.request(
497
498
  "POST",
498
499
  `/v1/vault/actions/rollback/${encodeURIComponent(key)}`,
499
500
  { body: { version } }
500
501
  );
502
+ const current = await this.request(
503
+ "GET",
504
+ `/v1/vault/secrets/${encodeURIComponent(key)}`
505
+ );
506
+ return { value: current.value, version: written.version ?? current.version };
501
507
  },
502
508
  /**
503
509
  * Rotate a secret (copy current version as new version)
504
510
  */
505
511
  rotate: async (key, newValue) => {
506
- return this.request(
512
+ const rotated = await this.request(
507
513
  "POST",
508
514
  `/v1/vault/actions/rotate/${encodeURIComponent(key)}`,
509
515
  { body: { value: newValue } }
510
516
  );
517
+ return { value: newValue, version: rotated.new_version ?? rotated.version };
511
518
  }
512
519
  };
513
520
  // ==========================================================================
@@ -561,7 +568,7 @@ var ScaleMuleServer = class {
561
568
  * ```
562
569
  */
563
570
  set: async (key, type, data, inheritsFrom) => {
564
- return this.request(
571
+ const written = await this.request(
565
572
  "PUT",
566
573
  `/v1/vault/bundles/${encodeURIComponent(key)}`,
567
574
  {
@@ -572,6 +579,7 @@ var ScaleMuleServer = class {
572
579
  }
573
580
  }
574
581
  );
582
+ return { type, data, version: written.version };
575
583
  },
576
584
  /**
577
585
  * Delete a bundle
@@ -1495,7 +1503,7 @@ function isSameOriginRequest(request) {
1495
1503
  }
1496
1504
  return true;
1497
1505
  }
1498
- 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"]);
1499
1507
  var AUTH_ROUTES = /* @__PURE__ */ new Set([
1500
1508
  "GET me",
1501
1509
  "GET mfa/status",
@@ -462,9 +462,10 @@ var ScaleMuleServer = class {
462
462
  * ```
463
463
  */
464
464
  set: async (key, value) => {
465
- return this.request("PUT", `/v1/vault/secrets/${encodeURIComponent(key)}`, {
465
+ const written = await this.request("PUT", `/v1/vault/secrets/${encodeURIComponent(key)}`, {
466
466
  body: { value }
467
467
  });
468
+ return { value, version: written.version };
468
469
  },
469
470
  /**
470
471
  * Delete a secret from the tenant vault
@@ -491,21 +492,27 @@ var ScaleMuleServer = class {
491
492
  * Rollback to a specific version
492
493
  */
493
494
  rollback: async (key, version) => {
494
- return this.request(
495
+ const written = await this.request(
495
496
  "POST",
496
497
  `/v1/vault/actions/rollback/${encodeURIComponent(key)}`,
497
498
  { body: { version } }
498
499
  );
500
+ const current = await this.request(
501
+ "GET",
502
+ `/v1/vault/secrets/${encodeURIComponent(key)}`
503
+ );
504
+ return { value: current.value, version: written.version ?? current.version };
499
505
  },
500
506
  /**
501
507
  * Rotate a secret (copy current version as new version)
502
508
  */
503
509
  rotate: async (key, newValue) => {
504
- return this.request(
510
+ const rotated = await this.request(
505
511
  "POST",
506
512
  `/v1/vault/actions/rotate/${encodeURIComponent(key)}`,
507
513
  { body: { value: newValue } }
508
514
  );
515
+ return { value: newValue, version: rotated.new_version ?? rotated.version };
509
516
  }
510
517
  };
511
518
  // ==========================================================================
@@ -559,7 +566,7 @@ var ScaleMuleServer = class {
559
566
  * ```
560
567
  */
561
568
  set: async (key, type, data, inheritsFrom) => {
562
- return this.request(
569
+ const written = await this.request(
563
570
  "PUT",
564
571
  `/v1/vault/bundles/${encodeURIComponent(key)}`,
565
572
  {
@@ -570,6 +577,7 @@ var ScaleMuleServer = class {
570
577
  }
571
578
  }
572
579
  );
580
+ return { type, data, version: written.version };
573
581
  },
574
582
  /**
575
583
  * Delete a bundle
@@ -1493,7 +1501,7 @@ function isSameOriginRequest(request) {
1493
1501
  }
1494
1502
  return true;
1495
1503
  }
1496
- 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"]);
1497
1505
  var AUTH_ROUTES = /* @__PURE__ */ new Set([
1498
1506
  "GET me",
1499
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.73",
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
  },