@scalemule/nextjs 0.0.36 → 0.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.mts +5 -1
- package/dist/client.d.ts +5 -1
- package/dist/index.d.mts +7 -3
- package/dist/index.d.ts +7 -3
- package/dist/index.js +439 -78
- package/dist/index.mjs +439 -78
- package/dist/server/auth.js +266 -6
- package/dist/server/auth.mjs +266 -6
- package/dist/server/index.d.mts +68 -4
- package/dist/server/index.d.ts +68 -4
- package/dist/server/index.js +273 -6
- package/dist/server/index.mjs +267 -7
- package/dist/server/webhook-handler.d.mts +2 -2
- package/dist/server/webhook-handler.d.ts +2 -2
- package/dist/testing.d.mts +1 -1
- package/dist/testing.d.ts +1 -1
- package/package.json +1 -1
- package/dist/index-BoENfro3.d.mts +0 -845
- package/dist/index-BoENfro3.d.ts +0 -845
- package/dist/webhook-handler-CjSSCdvI.d.ts +0 -779
- package/dist/webhook-handler-Cz9jtet2.d.mts +0 -779
package/dist/client.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a8 as StorageAdapter } from './index-BIIUrnPr.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* ScaleMule API Client
|
|
@@ -34,6 +34,10 @@ interface ClientConfig {
|
|
|
34
34
|
* preventing race conditions where requests fire before the auth token is available.
|
|
35
35
|
*/
|
|
36
36
|
pendingSessionInit?: boolean;
|
|
37
|
+
/** Enable the account switcher */
|
|
38
|
+
enableAccountSwitcher?: boolean;
|
|
39
|
+
/** Privacy level for account switcher */
|
|
40
|
+
accountSwitcherPrivacy?: 'full' | 'masked' | 'minimal';
|
|
37
41
|
}
|
|
38
42
|
interface RequestOptions extends RequestInit {
|
|
39
43
|
/** Skip adding auth headers (for public endpoints) */
|
package/dist/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a8 as StorageAdapter } from './index-BIIUrnPr.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* ScaleMule API Client
|
|
@@ -34,6 +34,10 @@ interface ClientConfig {
|
|
|
34
34
|
* preventing race conditions where requests fire before the auth token is available.
|
|
35
35
|
*/
|
|
36
36
|
pendingSessionInit?: boolean;
|
|
37
|
+
/** Enable the account switcher */
|
|
38
|
+
enableAccountSwitcher?: boolean;
|
|
39
|
+
/** Privacy level for account switcher */
|
|
40
|
+
accountSwitcherPrivacy?: 'full' | 'masked' | 'minimal';
|
|
37
41
|
}
|
|
38
42
|
interface RequestOptions extends RequestInit {
|
|
39
43
|
/** Skip adding auth headers (for public endpoints) */
|
package/dist/index.d.mts
CHANGED
|
@@ -3,8 +3,8 @@ import { ReactNode } from 'react';
|
|
|
3
3
|
import { RealtimeService } from '@scalemule/sdk';
|
|
4
4
|
import { ScaleMuleClient } from './client.mjs';
|
|
5
5
|
export { ClientConfig, RequestOptions, createClient } from './client.mjs';
|
|
6
|
-
import { S as ScaleMuleConfig, U as User, L as LoginResponse, A as ApiError, a as UseAuthReturn, b as UseBillingReturn, c as ListFilesParams, d as UseContentReturn, e as UseUserReturn, f as UseAnalyticsOptions, g as UseAnalyticsReturn } from './index-
|
|
7
|
-
export { h as AccountBalance, i as AnalyticsEvent, j as ApiResponse, B as BatchTrackRequest, k as BillingPayment, l as BillingPayout, m as BillingRefund, n as BillingTransaction, C as ChangeEmailRequest, o as ChangePasswordRequest, p as ClientContext, q as ConnectedAccount, D as DeviceFingerprint, r as DeviceInfo, E as EnhancedAnalyticsEvent, F as ForgotPasswordRequest, s as LinkedAccount, t as ListFilesResponse, u as LoginDeviceInfo, v as LoginRequest, w as LoginResponseWithMFA, x as LoginRiskInfo, M as MFAChallengeResponse, y as MFAMethod, z as MFASMSSetupResponse, G as MFASetupRequest, H as MFAStatus, I as MFATOTPSetupResponse, J as MFAVerifyRequest, O as OAuthCallbackRequest,
|
|
6
|
+
import { S as ScaleMuleConfig, U as User, L as LoginResponse, A as ApiError, a as UseAuthReturn, b as UseBillingReturn, c as ListFilesParams, d as UseContentReturn, e as UseUserReturn, f as UseAnalyticsOptions, g as UseAnalyticsReturn } from './index-BIIUrnPr.mjs';
|
|
7
|
+
export { h as AccountBalance, i as AnalyticsEvent, j as ApiResponse, B as BatchTrackRequest, k as BillingPayment, l as BillingPayout, m as BillingRefund, n as BillingTransaction, C as ChangeEmailRequest, o as ChangePasswordRequest, p as ClientContext, q as ConnectedAccount, D as DeviceFingerprint, r as DeviceInfo, E as EnhancedAnalyticsEvent, F as ForgotPasswordRequest, K as KnownAccountInfo, s as LinkedAccount, t as ListFilesResponse, u as LoginDeviceInfo, v as LoginRequest, w as LoginResponseWithMFA, x as LoginRiskInfo, M as MFAChallengeResponse, y as MFAMethod, z as MFASMSSetupResponse, G as MFASetupRequest, H as MFAStatus, I as MFATOTPSetupResponse, J as MFAVerifyRequest, O as OAuthCallbackRequest, N as OAuthCallbackResponse, P as OAuthConfig, Q as OAuthProvider, R as OAuthStartResponse, T as PageViewData, V as PayoutSchedule, W as PhoneLoginRequest, X as PhoneSendCodeRequest, Y as PhoneVerifyRequest, Z as Profile, _ as RefreshResponse, $ as RegisterRequest, a0 as ResetPasswordRequest, a1 as ScaleMuleApiError, a2 as ScaleMuleEnvironment, a3 as Session, a4 as SignedUploadCompleteRequest, a5 as SignedUploadRequest, a6 as SignedUploadResponse, a7 as SignedUploadUrl, a8 as StorageAdapter, a9 as StorageFile, aa as TrackEventResponse, ab as TransactionSummary, ac as UTMParams, ad as UpdateProfileRequest, ae as UploadOptions, af as UploadResponse, ag as VerifyEmailRequest } from './index-BIIUrnPr.mjs';
|
|
8
8
|
|
|
9
9
|
interface ScaleMuleContextValue {
|
|
10
10
|
/** The API client instance */
|
|
@@ -31,6 +31,10 @@ interface ScaleMuleContextValue {
|
|
|
31
31
|
gatewayUrl?: string;
|
|
32
32
|
/** Configured environment ('dev' or 'prod') */
|
|
33
33
|
environment?: string;
|
|
34
|
+
/** Whether the account switcher is enabled */
|
|
35
|
+
enableAccountSwitcher?: boolean;
|
|
36
|
+
/** Privacy level for account switcher */
|
|
37
|
+
accountSwitcherPrivacy?: string;
|
|
34
38
|
/** Server-evaluated flag values to bootstrap the client (eliminates loading flash) */
|
|
35
39
|
bootstrapFlags?: Record<string, unknown>;
|
|
36
40
|
}
|
|
@@ -45,7 +49,7 @@ interface ScaleMuleProviderProps extends ScaleMuleConfig {
|
|
|
45
49
|
/** Server-evaluated flag values to bootstrap the client (eliminates loading flash) */
|
|
46
50
|
bootstrapFlags?: Record<string, unknown>;
|
|
47
51
|
}
|
|
48
|
-
declare function ScaleMuleProvider({ apiKey, applicationId, environment, gatewayUrl, debug, storage, analyticsProxyUrl, authProxyUrl, publishableKey, children, onLogin, onLogout, onAuthError, bootstrapFlags, }: ScaleMuleProviderProps): react_jsx_runtime.JSX.Element;
|
|
52
|
+
declare function ScaleMuleProvider({ apiKey, applicationId, environment, gatewayUrl, debug, storage, analyticsProxyUrl, authProxyUrl, publishableKey, enableAccountSwitcher, accountSwitcherPrivacy, children, onLogin, onLogout, onAuthError, bootstrapFlags, }: ScaleMuleProviderProps): react_jsx_runtime.JSX.Element;
|
|
49
53
|
declare function useScaleMule(): ScaleMuleContextValue;
|
|
50
54
|
declare function useScaleMuleClient(): ScaleMuleClient;
|
|
51
55
|
|
package/dist/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { ReactNode } from 'react';
|
|
|
3
3
|
import { RealtimeService } from '@scalemule/sdk';
|
|
4
4
|
import { ScaleMuleClient } from './client.js';
|
|
5
5
|
export { ClientConfig, RequestOptions, createClient } from './client.js';
|
|
6
|
-
import { S as ScaleMuleConfig, U as User, L as LoginResponse, A as ApiError, a as UseAuthReturn, b as UseBillingReturn, c as ListFilesParams, d as UseContentReturn, e as UseUserReturn, f as UseAnalyticsOptions, g as UseAnalyticsReturn } from './index-
|
|
7
|
-
export { h as AccountBalance, i as AnalyticsEvent, j as ApiResponse, B as BatchTrackRequest, k as BillingPayment, l as BillingPayout, m as BillingRefund, n as BillingTransaction, C as ChangeEmailRequest, o as ChangePasswordRequest, p as ClientContext, q as ConnectedAccount, D as DeviceFingerprint, r as DeviceInfo, E as EnhancedAnalyticsEvent, F as ForgotPasswordRequest, s as LinkedAccount, t as ListFilesResponse, u as LoginDeviceInfo, v as LoginRequest, w as LoginResponseWithMFA, x as LoginRiskInfo, M as MFAChallengeResponse, y as MFAMethod, z as MFASMSSetupResponse, G as MFASetupRequest, H as MFAStatus, I as MFATOTPSetupResponse, J as MFAVerifyRequest, O as OAuthCallbackRequest,
|
|
6
|
+
import { S as ScaleMuleConfig, U as User, L as LoginResponse, A as ApiError, a as UseAuthReturn, b as UseBillingReturn, c as ListFilesParams, d as UseContentReturn, e as UseUserReturn, f as UseAnalyticsOptions, g as UseAnalyticsReturn } from './index-BIIUrnPr.js';
|
|
7
|
+
export { h as AccountBalance, i as AnalyticsEvent, j as ApiResponse, B as BatchTrackRequest, k as BillingPayment, l as BillingPayout, m as BillingRefund, n as BillingTransaction, C as ChangeEmailRequest, o as ChangePasswordRequest, p as ClientContext, q as ConnectedAccount, D as DeviceFingerprint, r as DeviceInfo, E as EnhancedAnalyticsEvent, F as ForgotPasswordRequest, K as KnownAccountInfo, s as LinkedAccount, t as ListFilesResponse, u as LoginDeviceInfo, v as LoginRequest, w as LoginResponseWithMFA, x as LoginRiskInfo, M as MFAChallengeResponse, y as MFAMethod, z as MFASMSSetupResponse, G as MFASetupRequest, H as MFAStatus, I as MFATOTPSetupResponse, J as MFAVerifyRequest, O as OAuthCallbackRequest, N as OAuthCallbackResponse, P as OAuthConfig, Q as OAuthProvider, R as OAuthStartResponse, T as PageViewData, V as PayoutSchedule, W as PhoneLoginRequest, X as PhoneSendCodeRequest, Y as PhoneVerifyRequest, Z as Profile, _ as RefreshResponse, $ as RegisterRequest, a0 as ResetPasswordRequest, a1 as ScaleMuleApiError, a2 as ScaleMuleEnvironment, a3 as Session, a4 as SignedUploadCompleteRequest, a5 as SignedUploadRequest, a6 as SignedUploadResponse, a7 as SignedUploadUrl, a8 as StorageAdapter, a9 as StorageFile, aa as TrackEventResponse, ab as TransactionSummary, ac as UTMParams, ad as UpdateProfileRequest, ae as UploadOptions, af as UploadResponse, ag as VerifyEmailRequest } from './index-BIIUrnPr.js';
|
|
8
8
|
|
|
9
9
|
interface ScaleMuleContextValue {
|
|
10
10
|
/** The API client instance */
|
|
@@ -31,6 +31,10 @@ interface ScaleMuleContextValue {
|
|
|
31
31
|
gatewayUrl?: string;
|
|
32
32
|
/** Configured environment ('dev' or 'prod') */
|
|
33
33
|
environment?: string;
|
|
34
|
+
/** Whether the account switcher is enabled */
|
|
35
|
+
enableAccountSwitcher?: boolean;
|
|
36
|
+
/** Privacy level for account switcher */
|
|
37
|
+
accountSwitcherPrivacy?: string;
|
|
34
38
|
/** Server-evaluated flag values to bootstrap the client (eliminates loading flash) */
|
|
35
39
|
bootstrapFlags?: Record<string, unknown>;
|
|
36
40
|
}
|
|
@@ -45,7 +49,7 @@ interface ScaleMuleProviderProps extends ScaleMuleConfig {
|
|
|
45
49
|
/** Server-evaluated flag values to bootstrap the client (eliminates loading flash) */
|
|
46
50
|
bootstrapFlags?: Record<string, unknown>;
|
|
47
51
|
}
|
|
48
|
-
declare function ScaleMuleProvider({ apiKey, applicationId, environment, gatewayUrl, debug, storage, analyticsProxyUrl, authProxyUrl, publishableKey, children, onLogin, onLogout, onAuthError, bootstrapFlags, }: ScaleMuleProviderProps): react_jsx_runtime.JSX.Element;
|
|
52
|
+
declare function ScaleMuleProvider({ apiKey, applicationId, environment, gatewayUrl, debug, storage, analyticsProxyUrl, authProxyUrl, publishableKey, enableAccountSwitcher, accountSwitcherPrivacy, children, onLogin, onLogout, onAuthError, bootstrapFlags, }: ScaleMuleProviderProps): react_jsx_runtime.JSX.Element;
|
|
49
53
|
declare function useScaleMule(): ScaleMuleContextValue;
|
|
50
54
|
declare function useScaleMuleClient(): ScaleMuleClient;
|
|
51
55
|
|