@immediately-run/preauth-core 0.1.4 → 0.1.5
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/docLayout.d.ts +0 -4
- package/dist/docLayout.js +1 -5
- package/package.json +1 -1
package/dist/docLayout.d.ts
CHANGED
|
@@ -23,10 +23,6 @@ export declare const GRANT_EXPIRY_MS: number;
|
|
|
23
23
|
* RENAME-1). The stored Firestore path segment is a doc-ID, not a field literally
|
|
24
24
|
* named `principal`, so this rename is code-symbol-only — no data migration. */
|
|
25
25
|
export declare const granteeId: (uid: string) => string;
|
|
26
|
-
/** @deprecated use {@link granteeId}. Kept as an alias for the `userPrincipal →
|
|
27
|
-
* granteeId` migration (the SDK + site-main + backend RENAME-1 track); removed once
|
|
28
|
-
* consumers migrate. */
|
|
29
|
-
export declare const userPrincipal: (uid: string) => string;
|
|
30
26
|
/** Drop undefined values — Firestore rejects them. The two adapters historically
|
|
31
27
|
* each had their own copy of this; sharing it keeps the "omit absent optionals"
|
|
32
28
|
* rule identical on both sides. */
|
package/dist/docLayout.js
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
// `.set()`/`.update()` is the only thing each adapter does itself. Drift is then
|
|
17
17
|
// impossible without editing a helper both consume.
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.netFetchGrantFields = exports.mergeNetFetchHosts = exports.appSpaceGrantFields = exports.appKeyTouchFields = exports.appCountFields = exports.userCountFields = exports.ownerUserSpaceFields = exports.ownerMemberFields = exports.spaceDocFields = exports.appCountPath = exports.userCountPath = exports.appSpacePath = exports.appKeyPath = exports.userSpacePath = exports.memberPath = exports.spacePath = exports.defined = exports.
|
|
19
|
+
exports.netFetchGrantFields = exports.mergeNetFetchHosts = exports.appSpaceGrantFields = exports.appKeyTouchFields = exports.appCountFields = exports.userCountFields = exports.ownerUserSpaceFields = exports.ownerMemberFields = exports.spaceDocFields = exports.appCountPath = exports.userCountPath = exports.appSpacePath = exports.appKeyPath = exports.userSpacePath = exports.memberPath = exports.spacePath = exports.defined = exports.granteeId = exports.GRANT_EXPIRY_MS = exports.grantKey = void 0;
|
|
20
20
|
/** Stable per-user identifier for a grant `(appKey, spaceId)`, used as the value
|
|
21
21
|
* of a delegated grant's `parentGrantId`. `::` is delimiter-safe: `appKey` uses
|
|
22
22
|
* `__` separators and a Firestore `spaceId` is alphanumeric. */
|
|
@@ -33,10 +33,6 @@ exports.GRANT_EXPIRY_MS = 90 * 24 * 60 * 60 * 1000;
|
|
|
33
33
|
* named `principal`, so this rename is code-symbol-only — no data migration. */
|
|
34
34
|
const granteeId = (uid) => `user:${uid}`;
|
|
35
35
|
exports.granteeId = granteeId;
|
|
36
|
-
/** @deprecated use {@link granteeId}. Kept as an alias for the `userPrincipal →
|
|
37
|
-
* granteeId` migration (the SDK + site-main + backend RENAME-1 track); removed once
|
|
38
|
-
* consumers migrate. */
|
|
39
|
-
exports.userPrincipal = exports.granteeId;
|
|
40
36
|
/** Drop undefined values — Firestore rejects them. The two adapters historically
|
|
41
37
|
* each had their own copy of this; sharing it keeps the "omit absent optionals"
|
|
42
38
|
* rule identical on both sides. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@immediately-run/preauth-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "The shared §8.9 pre-auth target check + the single grant-mint path (mintConsentedGrants) + the capability vocabulary + the byte-faithful grant/space/net-fetch document layout. Consumed by site-main (browser Firestore) and the backend (admin Firestore) so there is ONE gate, ONE mint path, ONE wire layout.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {
|