@zuzjs/flare 0.2.24 → 0.2.26
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/grpc.d.cts +1 -1
- package/dist/grpc.d.ts +1 -1
- package/dist/{index-D53u7tRA.d.cts → index-CnmBBd-u.d.cts} +6 -1
- package/dist/{index-CXCOH5iN.d.ts → index-DPlKzY-d.d.ts} +6 -1
- package/dist/{index-18tMqAtM.d.cts → index-J1xVXysN.d.cts} +4 -0
- package/dist/{index-18tMqAtM.d.ts → index-J1xVXysN.d.ts} +4 -0
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/react.d.cts +2 -2
- package/dist/react.d.ts +2 -2
- package/package.json +2 -2
package/dist/grpc.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FlareConfig, aR as StructuredQuery } from './index-
|
|
1
|
+
import { F as FlareConfig, aR as StructuredQuery } from './index-J1xVXysN.cjs';
|
|
2
2
|
import '@zuzjs/auth';
|
|
3
3
|
|
|
4
4
|
declare function runGrpcQuery<T = Record<string, unknown>>(config: FlareConfig, collection: string, query: StructuredQuery): Promise<T[] | null>;
|
package/dist/grpc.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FlareConfig, aR as StructuredQuery } from './index-
|
|
1
|
+
import { F as FlareConfig, aR as StructuredQuery } from './index-J1xVXysN.js';
|
|
2
2
|
import '@zuzjs/auth';
|
|
3
3
|
|
|
4
4
|
declare function runGrpcQuery<T = Record<string, unknown>>(config: FlareConfig, collection: string, query: StructuredQuery): Promise<T[] | null>;
|
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-J1xVXysN.cjs';
|
|
2
2
|
import { AuthGuard, AuthToken, ProviderId } from '@zuzjs/auth';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -554,6 +554,7 @@ declare class FlareBase<TPresetMap extends QueryPresetMap = {}> {
|
|
|
554
554
|
|
|
555
555
|
interface FlareStorageTransport {
|
|
556
556
|
readonly appId: string;
|
|
557
|
+
readonly storageRulesHomeBucket?: string;
|
|
557
558
|
readonly transferManager?: FlareStorageTransferManagerConfig;
|
|
558
559
|
call(topic: string, payload?: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
559
560
|
subscribe(subId: string, collection: string, docId: string | undefined, query: unknown, callback: (event: any) => void, options?: {
|
|
@@ -582,6 +583,10 @@ declare class FlareStorage {
|
|
|
582
583
|
constructor(transport: FlareStorageTransport);
|
|
583
584
|
private _scheduleUpload;
|
|
584
585
|
private _scheduleDownload;
|
|
586
|
+
private _normalizeBucketName;
|
|
587
|
+
private _storageHomeBucket;
|
|
588
|
+
private _resolveStorageBucketName;
|
|
589
|
+
private _storageObjectPath;
|
|
585
590
|
private _ensureBuckets;
|
|
586
591
|
private _loadBuckets;
|
|
587
592
|
private _invalidateBucketCache;
|
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-J1xVXysN.js';
|
|
2
2
|
import { AuthGuard, AuthToken, ProviderId } from '@zuzjs/auth';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -554,6 +554,7 @@ declare class FlareBase<TPresetMap extends QueryPresetMap = {}> {
|
|
|
554
554
|
|
|
555
555
|
interface FlareStorageTransport {
|
|
556
556
|
readonly appId: string;
|
|
557
|
+
readonly storageRulesHomeBucket?: string;
|
|
557
558
|
readonly transferManager?: FlareStorageTransferManagerConfig;
|
|
558
559
|
call(topic: string, payload?: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
559
560
|
subscribe(subId: string, collection: string, docId: string | undefined, query: unknown, callback: (event: any) => void, options?: {
|
|
@@ -582,6 +583,10 @@ declare class FlareStorage {
|
|
|
582
583
|
constructor(transport: FlareStorageTransport);
|
|
583
584
|
private _scheduleUpload;
|
|
584
585
|
private _scheduleDownload;
|
|
586
|
+
private _normalizeBucketName;
|
|
587
|
+
private _storageHomeBucket;
|
|
588
|
+
private _resolveStorageBucketName;
|
|
589
|
+
private _storageObjectPath;
|
|
585
590
|
private _ensureBuckets;
|
|
586
591
|
private _loadBuckets;
|
|
587
592
|
private _invalidateBucketCache;
|
|
@@ -110,6 +110,7 @@ interface FlareAuthConfig {
|
|
|
110
110
|
needsEmailVerification?: boolean;
|
|
111
111
|
autoSendVerificationEmail?: boolean;
|
|
112
112
|
redirectUri?: string;
|
|
113
|
+
storageRulesHomeBucket?: string | null;
|
|
113
114
|
csrfToken?: string;
|
|
114
115
|
cookie?: {
|
|
115
116
|
accessTokenName?: string;
|
|
@@ -419,6 +420,9 @@ interface PutObjectResult {
|
|
|
419
420
|
bucket: string;
|
|
420
421
|
key: string;
|
|
421
422
|
access: "public" | "private";
|
|
423
|
+
/** Alias of contentType for compatibility with legacy callers. */
|
|
424
|
+
type?: string;
|
|
425
|
+
contentType?: string;
|
|
422
426
|
url?: string;
|
|
423
427
|
size: number;
|
|
424
428
|
encrypted: boolean;
|
|
@@ -110,6 +110,7 @@ interface FlareAuthConfig {
|
|
|
110
110
|
needsEmailVerification?: boolean;
|
|
111
111
|
autoSendVerificationEmail?: boolean;
|
|
112
112
|
redirectUri?: string;
|
|
113
|
+
storageRulesHomeBucket?: string | null;
|
|
113
114
|
csrfToken?: string;
|
|
114
115
|
cookie?: {
|
|
115
116
|
accessTokenName?: string;
|
|
@@ -419,6 +420,9 @@ interface PutObjectResult {
|
|
|
419
420
|
bucket: string;
|
|
420
421
|
key: string;
|
|
421
422
|
access: "public" | "private";
|
|
423
|
+
/** Alias of contentType for compatibility with legacy callers. */
|
|
424
|
+
type?: string;
|
|
425
|
+
contentType?: string;
|
|
422
426
|
url?: string;
|
|
423
427
|
size: number;
|
|
424
428
|
encrypted: boolean;
|