@zuzjs/flare 0.2.23 → 0.2.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-CRByt4Qw.d.ts → index-CXCOH5iN.d.ts} +36 -1
- package/dist/{index-DOaU2Hxo.d.cts → index-D53u7tRA.d.cts} +36 -1
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/react.d.cts +1 -1
- package/dist/react.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b0 as WhereCondition, aT as SubscriptionCallback, aw as QueryConfig, J as DocUpdatedCallback, I as DocDeletedCallback, H as DocChangedCallback, ay as QueryPresetMap, az as QueryPresetParams, aA as QueryPresetRow, a as AggregateSpec, ae as HavingClause, ah as JoinClause, a_ as VectorSearchClause, aR as StructuredQuery, aX as SubscriptionHandle, u as CollectionStreamOptions, r as CollectionStream, q as CollectionExternalStore, G as DocAddedCallback, m as BulkWriteOptions, o as BulkWriteResult, aY as UpdateManyItem, F as FlareConfig, aS as SubscribeOptions, aW as SubscriptionErrorCallback, aV as SubscriptionError, v as ConnectionState, ap as PresenceCallback, aq as PresenceJoinCallback, ar as PresenceLeaveCallback, aZ as VectorFieldConfig, aB as QueryPresetSpec, a8 as FlareStorageTransferManagerConfig, aN as StorageProgress, aL as StorageBucketInput, aK as StorageBucket, k as BucketPolicyInput, a1 as FlareStorageRulesPolicy, j as BucketCorsRule, a0 as FlareStorageRulesHistoryResult, au as PutObjectInput, av as PutObjectResult, aa as GetObjectInput, ab as GetObjectResult, ac as GetObjectUrlInput, L as DownloadObjectInput, M as DownloadObjectResult, af as HeadObjectInput, aM as StorageObjectMeta, ag as HeadObjectsInput, aj as ListObjectsInput, ak as ListObjectsResult, w as CopyObjectInput, z as DeleteObjectInput, E as DeleteObjectsInput, aO as StorageSignedUrlInput, a7 as FlareStorageSignedUrlResult, P as FlareAuthConfig, f as AuthStateListener, d as AuthConfigListener, U as FlareAuthSession, V as FlareAuthUser, Q as FlareAuthHydrationInput, R as FlareAuthHydrationOptions, i as BrowserPushTokenOptions, B as BrowserPushRegistrationOptions, aD as RegisterPushTokenInput, aI as SendPushNotificationInput, at as PushSendResult, e as AuthResult } from './index-18tMqAtM.js';
|
|
2
|
-
import { AuthToken } from '@zuzjs/auth';
|
|
2
|
+
import { AuthGuard, AuthToken, ProviderId } from '@zuzjs/auth';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Parse ORM-style where condition: { age: ">= 25", role: "admin" }
|
|
@@ -729,6 +729,7 @@ declare class FlareAuth<TPresetMap extends QueryPresetMap = {}> extends FlareBas
|
|
|
729
729
|
protected authBootstrapAttempted: boolean;
|
|
730
730
|
protected authBootstrapPromise?: Promise<void>;
|
|
731
731
|
protected socketAuthSyncPromise?: Promise<void>;
|
|
732
|
+
protected authGuard?: AuthGuard;
|
|
732
733
|
/** In-memory CSRF token extracted from the `x-flare-csrf` response header */
|
|
733
734
|
protected csrfToken?: string;
|
|
734
735
|
protected csrfBootstrapAttempted: boolean;
|
|
@@ -1064,6 +1065,40 @@ declare class FlareAuth<TPresetMap extends QueryPresetMap = {}> extends FlareBas
|
|
|
1064
1065
|
email: string;
|
|
1065
1066
|
sessionsRevoked?: number;
|
|
1066
1067
|
}>;
|
|
1068
|
+
signIn(providerId: ProviderId, options?: {
|
|
1069
|
+
returnTo?: string;
|
|
1070
|
+
metaTag?: string;
|
|
1071
|
+
}): Promise<any>;
|
|
1072
|
+
signIn(authGuard: Pick<AuthGuard, 'signIn'>, providerId: ProviderId, options?: {
|
|
1073
|
+
returnTo?: string;
|
|
1074
|
+
metaTag?: string;
|
|
1075
|
+
}): Promise<any>;
|
|
1076
|
+
signInWithGoogle(options?: {
|
|
1077
|
+
returnTo?: string;
|
|
1078
|
+
metaTag?: string;
|
|
1079
|
+
}): Promise<any>;
|
|
1080
|
+
signInWithGitHub(options?: {
|
|
1081
|
+
returnTo?: string;
|
|
1082
|
+
metaTag?: string;
|
|
1083
|
+
}): Promise<any>;
|
|
1084
|
+
signInWithFacebook(options?: {
|
|
1085
|
+
returnTo?: string;
|
|
1086
|
+
metaTag?: string;
|
|
1087
|
+
}): Promise<any>;
|
|
1088
|
+
signInWithDropbox(options?: {
|
|
1089
|
+
returnTo?: string;
|
|
1090
|
+
metaTag?: string;
|
|
1091
|
+
}): Promise<any>;
|
|
1092
|
+
handleSignInRedirect(autoRedirect?: boolean): Promise<(AuthResult & {
|
|
1093
|
+
authToken: AuthToken;
|
|
1094
|
+
provider?: ProviderId;
|
|
1095
|
+
}) | null>;
|
|
1096
|
+
handleSignInRedirect(authGuard: Pick<AuthGuard, 'handleRedirect'>, autoRedirect?: boolean): Promise<(AuthResult & {
|
|
1097
|
+
authToken: AuthToken;
|
|
1098
|
+
provider?: ProviderId;
|
|
1099
|
+
}) | null>;
|
|
1100
|
+
private exchangeProviderToken;
|
|
1101
|
+
protected getAuthGuard(): Promise<AuthGuard>;
|
|
1067
1102
|
signOut(): Promise<void>;
|
|
1068
1103
|
protected registerWithEmail(email: string, password: string, options?: {
|
|
1069
1104
|
scope?: string[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b0 as WhereCondition, aT as SubscriptionCallback, aw as QueryConfig, J as DocUpdatedCallback, I as DocDeletedCallback, H as DocChangedCallback, ay as QueryPresetMap, az as QueryPresetParams, aA as QueryPresetRow, a as AggregateSpec, ae as HavingClause, ah as JoinClause, a_ as VectorSearchClause, aR as StructuredQuery, aX as SubscriptionHandle, u as CollectionStreamOptions, r as CollectionStream, q as CollectionExternalStore, G as DocAddedCallback, m as BulkWriteOptions, o as BulkWriteResult, aY as UpdateManyItem, F as FlareConfig, aS as SubscribeOptions, aW as SubscriptionErrorCallback, aV as SubscriptionError, v as ConnectionState, ap as PresenceCallback, aq as PresenceJoinCallback, ar as PresenceLeaveCallback, aZ as VectorFieldConfig, aB as QueryPresetSpec, a8 as FlareStorageTransferManagerConfig, aN as StorageProgress, aL as StorageBucketInput, aK as StorageBucket, k as BucketPolicyInput, a1 as FlareStorageRulesPolicy, j as BucketCorsRule, a0 as FlareStorageRulesHistoryResult, au as PutObjectInput, av as PutObjectResult, aa as GetObjectInput, ab as GetObjectResult, ac as GetObjectUrlInput, L as DownloadObjectInput, M as DownloadObjectResult, af as HeadObjectInput, aM as StorageObjectMeta, ag as HeadObjectsInput, aj as ListObjectsInput, ak as ListObjectsResult, w as CopyObjectInput, z as DeleteObjectInput, E as DeleteObjectsInput, aO as StorageSignedUrlInput, a7 as FlareStorageSignedUrlResult, P as FlareAuthConfig, f as AuthStateListener, d as AuthConfigListener, U as FlareAuthSession, V as FlareAuthUser, Q as FlareAuthHydrationInput, R as FlareAuthHydrationOptions, i as BrowserPushTokenOptions, B as BrowserPushRegistrationOptions, aD as RegisterPushTokenInput, aI as SendPushNotificationInput, at as PushSendResult, e as AuthResult } from './index-18tMqAtM.cjs';
|
|
2
|
-
import { AuthToken } from '@zuzjs/auth';
|
|
2
|
+
import { AuthGuard, AuthToken, ProviderId } from '@zuzjs/auth';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Parse ORM-style where condition: { age: ">= 25", role: "admin" }
|
|
@@ -729,6 +729,7 @@ declare class FlareAuth<TPresetMap extends QueryPresetMap = {}> extends FlareBas
|
|
|
729
729
|
protected authBootstrapAttempted: boolean;
|
|
730
730
|
protected authBootstrapPromise?: Promise<void>;
|
|
731
731
|
protected socketAuthSyncPromise?: Promise<void>;
|
|
732
|
+
protected authGuard?: AuthGuard;
|
|
732
733
|
/** In-memory CSRF token extracted from the `x-flare-csrf` response header */
|
|
733
734
|
protected csrfToken?: string;
|
|
734
735
|
protected csrfBootstrapAttempted: boolean;
|
|
@@ -1064,6 +1065,40 @@ declare class FlareAuth<TPresetMap extends QueryPresetMap = {}> extends FlareBas
|
|
|
1064
1065
|
email: string;
|
|
1065
1066
|
sessionsRevoked?: number;
|
|
1066
1067
|
}>;
|
|
1068
|
+
signIn(providerId: ProviderId, options?: {
|
|
1069
|
+
returnTo?: string;
|
|
1070
|
+
metaTag?: string;
|
|
1071
|
+
}): Promise<any>;
|
|
1072
|
+
signIn(authGuard: Pick<AuthGuard, 'signIn'>, providerId: ProviderId, options?: {
|
|
1073
|
+
returnTo?: string;
|
|
1074
|
+
metaTag?: string;
|
|
1075
|
+
}): Promise<any>;
|
|
1076
|
+
signInWithGoogle(options?: {
|
|
1077
|
+
returnTo?: string;
|
|
1078
|
+
metaTag?: string;
|
|
1079
|
+
}): Promise<any>;
|
|
1080
|
+
signInWithGitHub(options?: {
|
|
1081
|
+
returnTo?: string;
|
|
1082
|
+
metaTag?: string;
|
|
1083
|
+
}): Promise<any>;
|
|
1084
|
+
signInWithFacebook(options?: {
|
|
1085
|
+
returnTo?: string;
|
|
1086
|
+
metaTag?: string;
|
|
1087
|
+
}): Promise<any>;
|
|
1088
|
+
signInWithDropbox(options?: {
|
|
1089
|
+
returnTo?: string;
|
|
1090
|
+
metaTag?: string;
|
|
1091
|
+
}): Promise<any>;
|
|
1092
|
+
handleSignInRedirect(autoRedirect?: boolean): Promise<(AuthResult & {
|
|
1093
|
+
authToken: AuthToken;
|
|
1094
|
+
provider?: ProviderId;
|
|
1095
|
+
}) | null>;
|
|
1096
|
+
handleSignInRedirect(authGuard: Pick<AuthGuard, 'handleRedirect'>, autoRedirect?: boolean): Promise<(AuthResult & {
|
|
1097
|
+
authToken: AuthToken;
|
|
1098
|
+
provider?: ProviderId;
|
|
1099
|
+
}) | null>;
|
|
1100
|
+
private exchangeProviderToken;
|
|
1101
|
+
protected getAuthGuard(): Promise<AuthGuard>;
|
|
1067
1102
|
signOut(): Promise<void>;
|
|
1068
1103
|
protected registerWithEmail(email: string, password: string, options?: {
|
|
1069
1104
|
scope?: string[];
|