@noy-db/hub 0.7.0-pre.4 → 0.7.0-pre.6
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/CHANGELOG.md +45 -0
- package/dist/{api-ENZ2ADVW.js → api-OAZLPNVV.js} +4 -4
- package/dist/as/index.js +3 -3
- package/dist/at/index.js +1 -1
- package/dist/attestation/index.js +10 -10
- package/dist/{backup-PT7L6TP7.js → backup-SZBDQQSL.js} +4 -4
- package/dist/blobs/index.js +3 -3
- package/dist/broker/index.js +4 -4
- package/dist/cargo/index.js +14 -14
- package/dist/{chunk-HO6F7YBI.js → chunk-26W5VETY.js} +2 -2
- package/dist/{chunk-OMF7MYHL.js → chunk-4FPEWQKF.js} +3 -3
- package/dist/{chunk-APUCE47B.js → chunk-4JDIRUTT.js} +2 -2
- package/dist/{chunk-RBRNSXPE.js → chunk-4MZEZ37W.js} +3 -3
- package/dist/{chunk-A7FUC6HA.js → chunk-4TZUFNXL.js} +2 -2
- package/dist/{chunk-RK4FY5C5.js → chunk-626TSARM.js} +2 -2
- package/dist/{chunk-XZ2PWHVM.js → chunk-672U6STZ.js} +3 -3
- package/dist/{chunk-K4W6XBMO.js → chunk-6AQIFBSP.js} +2 -2
- package/dist/{chunk-UHM3GMBN.js → chunk-6NRVFD55.js} +3 -3
- package/dist/{chunk-C5JIS3OC.js → chunk-7CWII4BL.js} +6 -6
- package/dist/{chunk-6K7AID3U.js → chunk-7XODKGTW.js} +2 -2
- package/dist/{chunk-B7SJ52ZG.js → chunk-BOFRKAUS.js} +2 -2
- package/dist/{chunk-CSNKE6OP.js → chunk-BWWUXE3L.js} +3 -3
- package/dist/{chunk-PE4LXIRT.js → chunk-BYBB4ABD.js} +13 -1
- package/dist/chunk-BYBB4ABD.js.map +1 -0
- package/dist/{chunk-4Q6V62GF.js → chunk-EO2KGKEJ.js} +2 -2
- package/dist/{chunk-2YI35ZXY.js → chunk-EXDIHWFO.js} +3 -3
- package/dist/{chunk-4H3KXLCM.js → chunk-FKFIEEY6.js} +8 -8
- package/dist/{chunk-LQPPIZFH.js → chunk-HQINBNHM.js} +5 -5
- package/dist/{chunk-J5HTPDT6.js → chunk-HSGEIMJS.js} +3 -3
- package/dist/{chunk-FH5GFLUY.js → chunk-IF56DYJK.js} +2 -2
- package/dist/{chunk-GJZPDSHN.js → chunk-ILSR22WM.js} +3 -3
- package/dist/{chunk-5D5VN3EH.js → chunk-JHLJQUXU.js} +2 -2
- package/dist/{chunk-4NAPXEWY.js → chunk-JJZIIJSA.js} +2 -2
- package/dist/{chunk-7CHX7QON.js → chunk-L3FHEWA3.js} +3 -3
- package/dist/{chunk-OIHSOAZO.js → chunk-LFDMKZIP.js} +2 -2
- package/dist/{chunk-HG2VWXNA.js → chunk-OMHHGOG4.js} +8 -8
- package/dist/{chunk-WMWTBSYJ.js → chunk-PRHCMEUK.js} +47 -47
- package/dist/{chunk-ILEIIFSK.js → chunk-Q7GEDVHC.js} +4 -4
- package/dist/{chunk-SKYA4D2G.js → chunk-RJ7RIIX6.js} +2 -2
- package/dist/{chunk-ACAQXGRE.js → chunk-S3I7VKID.js} +2 -2
- package/dist/{chunk-TFV37WMH.js → chunk-S6YB5ZRP.js} +2 -2
- package/dist/{chunk-T6QCNQWR.js → chunk-U6GCYG2T.js} +2 -2
- package/dist/{chunk-ITWVPY2S.js → chunk-UPJMBMCR.js} +3 -3
- package/dist/{chunk-ZMBYGJ5Z.js → chunk-VSLUSXVK.js} +4 -4
- package/dist/{chunk-4LG3NFY6.js → chunk-VVAVTSTR.js} +2 -2
- package/dist/{chunk-25KT7D4D.js → chunk-WLFABTZ6.js} +2 -2
- package/dist/{chunk-52FMTGNW.js → chunk-XBFEKTIY.js} +2 -2
- package/dist/{chunk-M47AGN7E.js → chunk-XLPXGN66.js} +2 -2
- package/dist/{chunk-UT7IVDZK.js → chunk-XWNLKG6R.js} +2 -2
- package/dist/{chunk-S5ALTM5R.js → chunk-Y3XWRDAM.js} +2 -2
- package/dist/{chunk-N5TIYKHI.js → chunk-ZKRRBRSZ.js} +3 -3
- package/dist/{chunk-UNOIEPF7.js → chunk-ZQ2UUHSL.js} +2 -2
- package/dist/{chunk-NHW3K44E.js → chunk-ZTYG36DH.js} +3 -3
- package/dist/{classified-marker-DXXL4GJR.js → classified-marker-KL4YXUXD.js} +3 -3
- package/dist/{collection-facade-A6PZRPIG.js → collection-facade-6IY2LW6W.js} +6 -6
- package/dist/consent/index.js +2 -2
- package/dist/cover/index.js +1 -1
- package/dist/custody/index.js +4 -4
- package/dist/{dead-filter-44J3VS2H.js → dead-filter-ZGRFZKYE.js} +2 -2
- package/dist/{delegation-SYFTV7VJ.js → delegation-2DO3VI5E.js} +2 -2
- package/dist/derivations/index.js +1 -1
- package/dist/{derive-LLBU7OWV.js → derive-TCTS7ULE.js} +2 -2
- package/dist/directory/index.js +3 -3
- package/dist/{dispatch-LVYPWQUW.js → dispatch-FNCCONFK.js} +7 -7
- package/dist/{dispatch-J2GRCTZO.js → dispatch-M62IAL2S.js} +5 -5
- package/dist/{enclave-IYWCFSEW.js → enclave-4P4KH5ZW.js} +2 -2
- package/dist/{executor-RLWZDSEZ.js → executor-CDIMJVE2.js} +6 -6
- package/dist/{export-accessible-GZDRYMZ6.js → export-accessible-WADNWX35.js} +4 -4
- package/dist/{extract-partition-Y3M2QMFC.js → extract-partition-SHQYQSWE.js} +7 -7
- package/dist/{fanout-sidecar-TL4HROM7.js → fanout-sidecar-BRQHWTZQ.js} +2 -2
- package/dist/forget/index.js +2 -2
- package/dist/history/index.js +5 -5
- package/dist/i18n/index.js +4 -4
- package/dist/index.js +39 -39
- package/dist/introspection/index.js +3 -3
- package/dist/{issue-J5IPOKLJ.js → issue-2DGG7NKE.js} +4 -4
- package/dist/{ledger-APEU3ZIW.js → ledger-4X5ZH43X.js} +4 -4
- package/dist/{liberate-DGWJ27ZG.js → liberate-7NEPRE52.js} +8 -8
- package/dist/{link-set-LGKK7ZSX.js → link-set-WHTYVTOV.js} +3 -3
- package/dist/{managed-secret-VK2AVMD4.js → managed-secret-CXALLEUB.js} +2 -2
- package/dist/materialized-views/index.js +6 -6
- package/dist/{noydb-KYOB6GMT.js → noydb-BQ3ZTN2Z.js} +21 -21
- package/dist/periods/index.js +4 -4
- package/dist/pod/index.js +23 -23
- package/dist/{pod-handle-3VWCC2UD.js → pod-handle-DHEYBTJ2.js} +2 -2
- package/dist/policy/index.js +1 -1
- package/dist/port/to/index.d.ts +1 -0
- package/dist/portability/index.js +6 -6
- package/dist/{post-register-ZJZXBTU6.js → post-register-4DXRYGTU.js} +4 -4
- package/dist/{register-KN24ZO5F.js → register-GLCOH73C.js} +7 -7
- package/dist/{registry-F7W2E5I5.js → registry-GWGHZWGP.js} +2 -2
- package/dist/{registry-2FS3FLJH.js → registry-T346IZCF.js} +2 -2
- package/dist/{request-withdrawal-S23VE65P.js → request-withdrawal-2RERJECX.js} +6 -6
- package/dist/{revoke-G63G7D23.js → revoke-4NRSCPNW.js} +4 -4
- package/dist/sealed-record/index.js +4 -4
- package/dist/search/index.js +1 -1
- package/dist/{seed-ILBQJVRT.js → seed-IX5NFSH5.js} +4 -4
- package/dist/sequence/index.js +2 -2
- package/dist/session/index.js +1 -1
- package/dist/{signer-K2GEB47Y.js → signer-HJHTGX7X.js} +3 -3
- package/dist/snapshots/index.js +2 -2
- package/dist/{stale-LOHOLOUO.js → stale-5I36LPVK.js} +3 -3
- package/dist/{storage-G7KULLIS.js → storage-ZYYAB3J3.js} +3 -3
- package/dist/{store-coordination-provider-KBU45JWQ.js → store-coordination-provider-OLPNRMFO.js} +2 -2
- package/dist/sync/index.js +2 -2
- package/dist/team/index.js +5 -5
- package/dist/tiers/index.js +2 -2
- package/dist/to/index.js +3 -1
- package/dist/to/index.js.map +1 -1
- package/dist/vault-head/index.js +1 -1
- package/dist/{walk-GJCICW4M.js → walk-LTV7LOCN.js} +4 -4
- package/dist/{withdraw-accessible-I7FPHFLH.js → withdraw-accessible-V4XCPH7U.js} +5 -5
- package/package.json +3 -3
- package/dist/chunk-PE4LXIRT.js.map +0 -1
- /package/dist/{api-ENZ2ADVW.js.map → api-OAZLPNVV.js.map} +0 -0
- /package/dist/{backup-PT7L6TP7.js.map → backup-SZBDQQSL.js.map} +0 -0
- /package/dist/{chunk-HO6F7YBI.js.map → chunk-26W5VETY.js.map} +0 -0
- /package/dist/{chunk-OMF7MYHL.js.map → chunk-4FPEWQKF.js.map} +0 -0
- /package/dist/{chunk-APUCE47B.js.map → chunk-4JDIRUTT.js.map} +0 -0
- /package/dist/{chunk-RBRNSXPE.js.map → chunk-4MZEZ37W.js.map} +0 -0
- /package/dist/{chunk-A7FUC6HA.js.map → chunk-4TZUFNXL.js.map} +0 -0
- /package/dist/{chunk-RK4FY5C5.js.map → chunk-626TSARM.js.map} +0 -0
- /package/dist/{chunk-XZ2PWHVM.js.map → chunk-672U6STZ.js.map} +0 -0
- /package/dist/{chunk-K4W6XBMO.js.map → chunk-6AQIFBSP.js.map} +0 -0
- /package/dist/{chunk-UHM3GMBN.js.map → chunk-6NRVFD55.js.map} +0 -0
- /package/dist/{chunk-C5JIS3OC.js.map → chunk-7CWII4BL.js.map} +0 -0
- /package/dist/{chunk-6K7AID3U.js.map → chunk-7XODKGTW.js.map} +0 -0
- /package/dist/{chunk-B7SJ52ZG.js.map → chunk-BOFRKAUS.js.map} +0 -0
- /package/dist/{chunk-CSNKE6OP.js.map → chunk-BWWUXE3L.js.map} +0 -0
- /package/dist/{chunk-4Q6V62GF.js.map → chunk-EO2KGKEJ.js.map} +0 -0
- /package/dist/{chunk-2YI35ZXY.js.map → chunk-EXDIHWFO.js.map} +0 -0
- /package/dist/{chunk-4H3KXLCM.js.map → chunk-FKFIEEY6.js.map} +0 -0
- /package/dist/{chunk-LQPPIZFH.js.map → chunk-HQINBNHM.js.map} +0 -0
- /package/dist/{chunk-J5HTPDT6.js.map → chunk-HSGEIMJS.js.map} +0 -0
- /package/dist/{chunk-FH5GFLUY.js.map → chunk-IF56DYJK.js.map} +0 -0
- /package/dist/{chunk-GJZPDSHN.js.map → chunk-ILSR22WM.js.map} +0 -0
- /package/dist/{chunk-5D5VN3EH.js.map → chunk-JHLJQUXU.js.map} +0 -0
- /package/dist/{chunk-4NAPXEWY.js.map → chunk-JJZIIJSA.js.map} +0 -0
- /package/dist/{chunk-7CHX7QON.js.map → chunk-L3FHEWA3.js.map} +0 -0
- /package/dist/{chunk-OIHSOAZO.js.map → chunk-LFDMKZIP.js.map} +0 -0
- /package/dist/{chunk-HG2VWXNA.js.map → chunk-OMHHGOG4.js.map} +0 -0
- /package/dist/{chunk-WMWTBSYJ.js.map → chunk-PRHCMEUK.js.map} +0 -0
- /package/dist/{chunk-ILEIIFSK.js.map → chunk-Q7GEDVHC.js.map} +0 -0
- /package/dist/{chunk-SKYA4D2G.js.map → chunk-RJ7RIIX6.js.map} +0 -0
- /package/dist/{chunk-ACAQXGRE.js.map → chunk-S3I7VKID.js.map} +0 -0
- /package/dist/{chunk-TFV37WMH.js.map → chunk-S6YB5ZRP.js.map} +0 -0
- /package/dist/{chunk-T6QCNQWR.js.map → chunk-U6GCYG2T.js.map} +0 -0
- /package/dist/{chunk-ITWVPY2S.js.map → chunk-UPJMBMCR.js.map} +0 -0
- /package/dist/{chunk-ZMBYGJ5Z.js.map → chunk-VSLUSXVK.js.map} +0 -0
- /package/dist/{chunk-4LG3NFY6.js.map → chunk-VVAVTSTR.js.map} +0 -0
- /package/dist/{chunk-25KT7D4D.js.map → chunk-WLFABTZ6.js.map} +0 -0
- /package/dist/{chunk-52FMTGNW.js.map → chunk-XBFEKTIY.js.map} +0 -0
- /package/dist/{chunk-M47AGN7E.js.map → chunk-XLPXGN66.js.map} +0 -0
- /package/dist/{chunk-UT7IVDZK.js.map → chunk-XWNLKG6R.js.map} +0 -0
- /package/dist/{chunk-S5ALTM5R.js.map → chunk-Y3XWRDAM.js.map} +0 -0
- /package/dist/{chunk-N5TIYKHI.js.map → chunk-ZKRRBRSZ.js.map} +0 -0
- /package/dist/{chunk-UNOIEPF7.js.map → chunk-ZQ2UUHSL.js.map} +0 -0
- /package/dist/{chunk-NHW3K44E.js.map → chunk-ZTYG36DH.js.map} +0 -0
- /package/dist/{classified-marker-DXXL4GJR.js.map → classified-marker-KL4YXUXD.js.map} +0 -0
- /package/dist/{collection-facade-A6PZRPIG.js.map → collection-facade-6IY2LW6W.js.map} +0 -0
- /package/dist/{dead-filter-44J3VS2H.js.map → dead-filter-ZGRFZKYE.js.map} +0 -0
- /package/dist/{delegation-SYFTV7VJ.js.map → delegation-2DO3VI5E.js.map} +0 -0
- /package/dist/{derive-LLBU7OWV.js.map → derive-TCTS7ULE.js.map} +0 -0
- /package/dist/{dispatch-LVYPWQUW.js.map → dispatch-FNCCONFK.js.map} +0 -0
- /package/dist/{dispatch-J2GRCTZO.js.map → dispatch-M62IAL2S.js.map} +0 -0
- /package/dist/{enclave-IYWCFSEW.js.map → enclave-4P4KH5ZW.js.map} +0 -0
- /package/dist/{executor-RLWZDSEZ.js.map → executor-CDIMJVE2.js.map} +0 -0
- /package/dist/{export-accessible-GZDRYMZ6.js.map → export-accessible-WADNWX35.js.map} +0 -0
- /package/dist/{extract-partition-Y3M2QMFC.js.map → extract-partition-SHQYQSWE.js.map} +0 -0
- /package/dist/{fanout-sidecar-TL4HROM7.js.map → fanout-sidecar-BRQHWTZQ.js.map} +0 -0
- /package/dist/{issue-J5IPOKLJ.js.map → issue-2DGG7NKE.js.map} +0 -0
- /package/dist/{ledger-APEU3ZIW.js.map → ledger-4X5ZH43X.js.map} +0 -0
- /package/dist/{liberate-DGWJ27ZG.js.map → liberate-7NEPRE52.js.map} +0 -0
- /package/dist/{link-set-LGKK7ZSX.js.map → link-set-WHTYVTOV.js.map} +0 -0
- /package/dist/{managed-secret-VK2AVMD4.js.map → managed-secret-CXALLEUB.js.map} +0 -0
- /package/dist/{noydb-KYOB6GMT.js.map → noydb-BQ3ZTN2Z.js.map} +0 -0
- /package/dist/{pod-handle-3VWCC2UD.js.map → pod-handle-DHEYBTJ2.js.map} +0 -0
- /package/dist/{post-register-ZJZXBTU6.js.map → post-register-4DXRYGTU.js.map} +0 -0
- /package/dist/{register-KN24ZO5F.js.map → register-GLCOH73C.js.map} +0 -0
- /package/dist/{registry-2FS3FLJH.js.map → registry-GWGHZWGP.js.map} +0 -0
- /package/dist/{registry-F7W2E5I5.js.map → registry-T346IZCF.js.map} +0 -0
- /package/dist/{request-withdrawal-S23VE65P.js.map → request-withdrawal-2RERJECX.js.map} +0 -0
- /package/dist/{revoke-G63G7D23.js.map → revoke-4NRSCPNW.js.map} +0 -0
- /package/dist/{seed-ILBQJVRT.js.map → seed-IX5NFSH5.js.map} +0 -0
- /package/dist/{signer-K2GEB47Y.js.map → signer-HJHTGX7X.js.map} +0 -0
- /package/dist/{stale-LOHOLOUO.js.map → stale-5I36LPVK.js.map} +0 -0
- /package/dist/{storage-G7KULLIS.js.map → storage-ZYYAB3J3.js.map} +0 -0
- /package/dist/{store-coordination-provider-KBU45JWQ.js.map → store-coordination-provider-OLPNRMFO.js.map} +0 -0
- /package/dist/{walk-GJCICW4M.js.map → walk-LTV7LOCN.js.map} +0 -0
- /package/dist/{withdraw-accessible-I7FPHFLH.js.map → withdraw-accessible-V4XCPH7U.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,50 @@
|
|
|
1
1
|
# Changelog — hub
|
|
2
2
|
|
|
3
|
+
## 0.7.0-pre.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Correct a factual claim in the `0.7.0-pre.5` changelog entry: the cached read path returned `undefined`, not `null`.
|
|
8
|
+
|
|
9
|
+
That entry described the #1220 failure as _"the cached path returned `null`, indistinguishable from no such record."_ The value is wrong. Measured on published `0.7.0-pre.4` with `to-memory@0.7.0-pre.4`, correct arity throughout:
|
|
10
|
+
|
|
11
|
+
| read | value |
|
|
12
|
+
| --------------------------------- | ------------------------------------------- |
|
|
13
|
+
| genuinely absent id | `null` |
|
|
14
|
+
| empty-sealed record, cached path | **`undefined`** |
|
|
15
|
+
| empty-sealed record, hydrate path | `SyntaxError: Unexpected end of JSON input` |
|
|
16
|
+
|
|
17
|
+
**The argument the entry made is unaffected — it gets stronger.** `undefined` is off `get()`'s declared `T | null` contract, so a caller writing `if (!rec)` or `?? fallback` folds it into _"no such record"_ exactly as it would fold `null`, **and** a caller writing `rec === null` fails to catch it as well. The collapse of distinguishable states is wider than the original sentence claimed, not narrower.
|
|
18
|
+
|
|
19
|
+
`0.7.0-pre.5`'s entry is left standing as the record of what that release said — its tarball is immutable, so amending it would only make later tarballs disagree with the shipped one. This is the correction published alongside, the same move `0.7.0-pre.4` made for `0.7.0-pre.3`.
|
|
20
|
+
|
|
21
|
+
Scope: the incorrect sentence appeared only in `CHANGELOG.md` on the published surface — it was not in any shipped `.d.ts`. No code, type, or behaviour change. The guards added in `0.7.0-pre.5` are unaffected, and note they prevent such a record being **created**, not **read**: a record sealed by an earlier build still throws on the hydrate path today.
|
|
22
|
+
|
|
23
|
+
- Export `isConflictError` from `@noy-db/hub/to` (#1224).
|
|
24
|
+
|
|
25
|
+
The predicate was reachable only from the root barrel, while `/to` exported the `ConflictError` **class**. That is the wrong way round for the one seam that needs it: `isConflictError` exists precisely because a store may bind a different copy of `@noy-db/hub/to` than its caller, making `instanceof` against that class silently miss (#935) — CAS retry loops rethrow instead of retrying, and the sync engine misfiles the conflict with no resolution run.
|
|
26
|
+
|
|
27
|
+
A store binds `/to` and nothing else, so store authors were told by the predicate's own documentation to use something they could not import, and the obvious fallback — `instanceof ConflictError` off `/to` — is exactly the defect the predicate prevents.
|
|
28
|
+
|
|
29
|
+
Additive: an existing function on an existing subpath. Nothing is removed or renamed, and the root barrel export is unchanged.
|
|
30
|
+
|
|
31
|
+
Guarded by an invariant rather than an enumeration: a test parses `kernel/errors.ts` for any `is*` predicate whose contract mentions the store seam and asserts each is reachable from `/to`, so a future sibling cannot repeat this. `/to`'s golden surface baseline moves by one entry.
|
|
32
|
+
|
|
33
|
+
## 0.7.0-pre.5
|
|
34
|
+
|
|
35
|
+
### Patch Changes
|
|
36
|
+
|
|
37
|
+
- Refuse to seal a record against a coerced address or over an empty plaintext (#1220).
|
|
38
|
+
|
|
39
|
+
Two boundary values were accepted silently and produced envelopes that are **valid and undecodable** — sealed correctly, addressed or filled with nothing. Both are now `TypeError`s at the seal, stated as output-domain invariants so they hold for every caller rather than for the two calls that surfaced them:
|
|
40
|
+
|
|
41
|
+
- **`buildRecordAad` refuses a non-string `collection` or `id`.** `String({})` is `"[object Object]"` and `String(undefined)` is `"undefined"`; both make perfectly good AAD, so a record sealed against one is stored at an address nothing queries. Sibling of the `version` assertion already in that function, and there for the same reason: it can only fire for a caller TypeScript never saw.
|
|
42
|
+
- **`RecordCodec.encryptJsonString` refuses a non-string plaintext.** `JSON.stringify(undefined)` is `undefined`, so an undefined record sealed over _nothing_ — `_data` a bare GCM tag over zero ciphertext.
|
|
43
|
+
|
|
44
|
+
Why this was worth a guard rather than a documentation note: the two read paths disagreed about the same bytes and neither named the cause. The cached path returned `null`, indistinguishable from _no such record_; the hydrate path threw `SyntaxError` out of `decryptRecord`, indistinguishable from _your store returned corrupt bytes_. A `to-*` author or daemon operator meeting that would reasonably suspect their store, indefinitely, over a caller mistake made days earlier.
|
|
45
|
+
|
|
46
|
+
No format, encryption, or integrity change: envelopes that seal continue to seal identically, and `NOYDB_ENVELOPE_GENERATION` is unaffected. This only refuses inputs that previously produced unreadable records.
|
|
47
|
+
|
|
3
48
|
## 0.7.0-pre.4
|
|
4
49
|
|
|
5
50
|
### Patch Changes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UserApi,
|
|
3
3
|
createUserApi
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-JHLJQUXU.js";
|
|
5
|
+
import "./chunk-26W5VETY.js";
|
|
6
|
+
import "./chunk-BYBB4ABD.js";
|
|
7
7
|
import "./chunk-QU3YUP2X.js";
|
|
8
8
|
import "./chunk-FOG7YEJP.js";
|
|
9
9
|
import "./chunk-KDJGJR7F.js";
|
|
@@ -17,4 +17,4 @@ export {
|
|
|
17
17
|
UserApi,
|
|
18
18
|
createUserApi
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=api-
|
|
20
|
+
//# sourceMappingURL=api-OAZLPNVV.js.map
|
package/dist/as/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "../chunk-UBSFPGVJ.js";
|
|
2
|
-
import "../chunk-
|
|
2
|
+
import "../chunk-XWNLKG6R.js";
|
|
3
3
|
import {
|
|
4
4
|
applyListProjection
|
|
5
5
|
} from "../chunk-VG2ZSFYD.js";
|
|
6
6
|
import "../chunk-KHKKD62N.js";
|
|
7
7
|
import "../chunk-P6ASQOZR.js";
|
|
8
8
|
import "../chunk-Y2NBBT6K.js";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-626TSARM.js";
|
|
10
|
+
import "../chunk-BYBB4ABD.js";
|
|
11
11
|
import "../chunk-QU3YUP2X.js";
|
|
12
12
|
import "../chunk-FOG7YEJP.js";
|
|
13
13
|
import "../chunk-KDJGJR7F.js";
|
package/dist/at/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
issueAttestationCore
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-L3FHEWA3.js";
|
|
4
4
|
import {
|
|
5
5
|
getRevokedDocIdsCore,
|
|
6
6
|
publishRevocationListCore,
|
|
7
7
|
revokeDocCore,
|
|
8
8
|
unrevokeDocCore
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-BWWUXE3L.js";
|
|
10
10
|
import {
|
|
11
11
|
ATTESTATIONS_COLLECTION
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-LFDMKZIP.js";
|
|
13
13
|
import {
|
|
14
14
|
NO_ATTESTATION
|
|
15
15
|
} from "../chunk-E6YA6UAP.js";
|
|
16
16
|
import "../chunk-4AOERLTV.js";
|
|
17
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-BYBB4ABD.js";
|
|
18
18
|
import "../chunk-QU3YUP2X.js";
|
|
19
19
|
import "../chunk-FOG7YEJP.js";
|
|
20
20
|
import "../chunk-KDJGJR7F.js";
|
|
@@ -32,11 +32,11 @@ import "../chunk-PZ5AY32C.js";
|
|
|
32
32
|
function withAttestation() {
|
|
33
33
|
return {
|
|
34
34
|
async issueAttestation(ctx, args) {
|
|
35
|
-
const { issueAttestationCore: issueAttestationCore2 } = await import("../issue-
|
|
35
|
+
const { issueAttestationCore: issueAttestationCore2 } = await import("../issue-2DGG7NKE.js");
|
|
36
36
|
return issueAttestationCore2(ctx, args);
|
|
37
37
|
},
|
|
38
38
|
async getDocumentSigningPublicKey(deps) {
|
|
39
|
-
const { loadSigner, loadOrCreateSigner } = await import("../signer-
|
|
39
|
+
const { loadSigner, loadOrCreateSigner } = await import("../signer-HJHTGX7X.js");
|
|
40
40
|
const existing = await loadSigner(deps.adapter, deps.vault, deps.getDEK);
|
|
41
41
|
if (existing) return { keyId: existing.keyId, publicKeyB64: existing.publicKeyB64 };
|
|
42
42
|
if (deps.role !== "owner") {
|
|
@@ -46,19 +46,19 @@ function withAttestation() {
|
|
|
46
46
|
return { keyId: signer.keyId, publicKeyB64: signer.publicKeyB64 };
|
|
47
47
|
},
|
|
48
48
|
async revokeAttestation(ctx, docId) {
|
|
49
|
-
const { revokeDocCore: revokeDocCore2 } = await import("../revoke-
|
|
49
|
+
const { revokeDocCore: revokeDocCore2 } = await import("../revoke-4NRSCPNW.js");
|
|
50
50
|
return revokeDocCore2(ctx, docId);
|
|
51
51
|
},
|
|
52
52
|
async unrevokeAttestation(ctx, docId) {
|
|
53
|
-
const { unrevokeDocCore: unrevokeDocCore2 } = await import("../revoke-
|
|
53
|
+
const { unrevokeDocCore: unrevokeDocCore2 } = await import("../revoke-4NRSCPNW.js");
|
|
54
54
|
return unrevokeDocCore2(ctx, docId);
|
|
55
55
|
},
|
|
56
56
|
async getRevokedDocIds(ctx) {
|
|
57
|
-
const { getRevokedDocIdsCore: getRevokedDocIdsCore2 } = await import("../revoke-
|
|
57
|
+
const { getRevokedDocIdsCore: getRevokedDocIdsCore2 } = await import("../revoke-4NRSCPNW.js");
|
|
58
58
|
return getRevokedDocIdsCore2(ctx);
|
|
59
59
|
},
|
|
60
60
|
async publishRevocationList(ctx) {
|
|
61
|
-
const { publishRevocationListCore: publishRevocationListCore2 } = await import("../revoke-
|
|
61
|
+
const { publishRevocationListCore: publishRevocationListCore2 } = await import("../revoke-4NRSCPNW.js");
|
|
62
62
|
return publishRevocationListCore2(ctx);
|
|
63
63
|
}
|
|
64
64
|
};
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-EPFF7LOX.js";
|
|
4
4
|
import {
|
|
5
5
|
SCHEMAS_COLLECTION
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-626TSARM.js";
|
|
7
7
|
import {
|
|
8
8
|
SEQUENCE_COLLECTION
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-S3I7VKID.js";
|
|
10
10
|
import {
|
|
11
11
|
PERIODS_COLLECTION,
|
|
12
12
|
PERIOD_ARCHIVES_COLLECTION,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
LEDGER_COLLECTION,
|
|
19
19
|
LEDGER_DELTAS_COLLECTION
|
|
20
20
|
} from "./chunk-I7FD46FF.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-BYBB4ABD.js";
|
|
22
22
|
import {
|
|
23
23
|
buildRecordEnvelope
|
|
24
24
|
} from "./chunk-QU3YUP2X.js";
|
|
@@ -262,4 +262,4 @@ export {
|
|
|
262
262
|
loadVault,
|
|
263
263
|
verifyBackupIntegrity
|
|
264
264
|
};
|
|
265
|
-
//# sourceMappingURL=backup-
|
|
265
|
+
//# sourceMappingURL=backup-SZBDQQSL.js.map
|
package/dist/blobs/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
createExportBlobsHandle,
|
|
11
11
|
reportOrphanBlobChunks,
|
|
12
12
|
runCompaction
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-ZKRRBRSZ.js";
|
|
14
14
|
import {
|
|
15
15
|
BLOB_CHUNKS_COLLECTION,
|
|
16
16
|
BLOB_COLLECTION,
|
|
@@ -25,11 +25,11 @@ import {
|
|
|
25
25
|
detectMimeType,
|
|
26
26
|
isPreCompressed,
|
|
27
27
|
memoryBlobPinStore
|
|
28
|
-
} from "../chunk-
|
|
28
|
+
} from "../chunk-ZQ2UUHSL.js";
|
|
29
29
|
import "../chunk-XDVVBETV.js";
|
|
30
30
|
import "../chunk-HTGRQZFB.js";
|
|
31
31
|
import "../chunk-POS53FG6.js";
|
|
32
|
-
import "../chunk-
|
|
32
|
+
import "../chunk-BYBB4ABD.js";
|
|
33
33
|
import "../chunk-QU3YUP2X.js";
|
|
34
34
|
import "../chunk-FOG7YEJP.js";
|
|
35
35
|
import "../chunk-KDJGJR7F.js";
|
package/dist/broker/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
issueChallenge,
|
|
6
6
|
verifyBrokerProof
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-BYBB4ABD.js";
|
|
8
8
|
import "../chunk-QU3YUP2X.js";
|
|
9
9
|
import "../chunk-FOG7YEJP.js";
|
|
10
10
|
import "../chunk-KDJGJR7F.js";
|
|
@@ -30,7 +30,7 @@ function withBroker(config) {
|
|
|
30
30
|
const cache = /* @__PURE__ */ new Map();
|
|
31
31
|
return {
|
|
32
32
|
async enroll(ctx) {
|
|
33
|
-
const { enrollSeed } = await import("../seed-
|
|
33
|
+
const { enrollSeed } = await import("../seed-IX5NFSH5.js");
|
|
34
34
|
return enrollSeed({ ...ctx, config });
|
|
35
35
|
},
|
|
36
36
|
async rotate(ctx) {
|
|
@@ -39,7 +39,7 @@ function withBroker(config) {
|
|
|
39
39
|
const inFlight = scoped.map(([, e]) => e.inFlight).filter((p) => p !== void 0);
|
|
40
40
|
await Promise.allSettled(inFlight);
|
|
41
41
|
for (const [key] of scoped) cache.delete(key);
|
|
42
|
-
const { rotateSeed } = await import("../seed-
|
|
42
|
+
const { rotateSeed } = await import("../seed-IX5NFSH5.js");
|
|
43
43
|
return rotateSeed({ ...ctx, config });
|
|
44
44
|
},
|
|
45
45
|
credentialSource(ctx, profile) {
|
|
@@ -56,7 +56,7 @@ function withBroker(config) {
|
|
|
56
56
|
const skewMs = config.skewMs ?? DEFAULT_SKEW_MS;
|
|
57
57
|
const capturedEntry = entry;
|
|
58
58
|
const inFlight = (async () => {
|
|
59
|
-
const { mintStoreCredentials } = await import("../seed-
|
|
59
|
+
const { mintStoreCredentials } = await import("../seed-IX5NFSH5.js");
|
|
60
60
|
const creds = await mintStoreCredentials({ ...ctx, config }, profile);
|
|
61
61
|
capturedEntry.cached = { creds, validUntil: cacheFloor(creds, skewMs) };
|
|
62
62
|
return creds;
|
package/dist/cargo/index.js
CHANGED
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
describeExtraction,
|
|
6
6
|
unsealDeks,
|
|
7
7
|
withCargo
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-OMHHGOG4.js";
|
|
9
9
|
import {
|
|
10
10
|
extractPartition,
|
|
11
11
|
walkClosure
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-7CWII4BL.js";
|
|
13
13
|
import {
|
|
14
14
|
diffVault
|
|
15
15
|
} from "../chunk-LFUID7OW.js";
|
|
@@ -18,9 +18,9 @@ import {
|
|
|
18
18
|
isDeedVault,
|
|
19
19
|
liberateVault,
|
|
20
20
|
loadDeedMarker
|
|
21
|
-
} from "../chunk-
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
21
|
+
} from "../chunk-4MZEZ37W.js";
|
|
22
|
+
import "../chunk-7XODKGTW.js";
|
|
23
|
+
import "../chunk-4TZUFNXL.js";
|
|
24
24
|
import {
|
|
25
25
|
NO_CARGO
|
|
26
26
|
} from "../chunk-XJ3FEKEY.js";
|
|
@@ -29,16 +29,16 @@ import {
|
|
|
29
29
|
isQuorum,
|
|
30
30
|
runDrainBarrier
|
|
31
31
|
} from "../chunk-CBRS2NEK.js";
|
|
32
|
-
import "../chunk-
|
|
32
|
+
import "../chunk-626TSARM.js";
|
|
33
33
|
import {
|
|
34
34
|
CustodyApi
|
|
35
|
-
} from "../chunk-
|
|
36
|
-
import "../chunk-
|
|
35
|
+
} from "../chunk-672U6STZ.js";
|
|
36
|
+
import "../chunk-6AQIFBSP.js";
|
|
37
37
|
import "../chunk-44C2URL7.js";
|
|
38
38
|
import {
|
|
39
39
|
fuseRetrieval
|
|
40
40
|
} from "../chunk-AURFOK3D.js";
|
|
41
|
-
import "../chunk-
|
|
41
|
+
import "../chunk-ZQ2UUHSL.js";
|
|
42
42
|
import {
|
|
43
43
|
groupAndReduce,
|
|
44
44
|
reduceRecords
|
|
@@ -50,18 +50,18 @@ import {
|
|
|
50
50
|
} from "../chunk-NSITFOCJ.js";
|
|
51
51
|
import "../chunk-X67FCULK.js";
|
|
52
52
|
import "../chunk-XDVVBETV.js";
|
|
53
|
-
import "../chunk-
|
|
54
|
-
import "../chunk-
|
|
53
|
+
import "../chunk-ZTYG36DH.js";
|
|
54
|
+
import "../chunk-26W5VETY.js";
|
|
55
55
|
import "../chunk-HTGRQZFB.js";
|
|
56
56
|
import {
|
|
57
57
|
generateULID
|
|
58
58
|
} from "../chunk-4AOERLTV.js";
|
|
59
59
|
import "../chunk-SVLR4POP.js";
|
|
60
|
-
import "../chunk-
|
|
60
|
+
import "../chunk-UPJMBMCR.js";
|
|
61
61
|
import "../chunk-I7FD46FF.js";
|
|
62
|
-
import "../chunk-
|
|
62
|
+
import "../chunk-WLFABTZ6.js";
|
|
63
63
|
import "../chunk-POS53FG6.js";
|
|
64
|
-
import "../chunk-
|
|
64
|
+
import "../chunk-BYBB4ABD.js";
|
|
65
65
|
import "../chunk-QU3YUP2X.js";
|
|
66
66
|
import "../chunk-FOG7YEJP.js";
|
|
67
67
|
import "../chunk-KDJGJR7F.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildRecordAad,
|
|
3
3
|
openEnvelopeJson
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BYBB4ABD.js";
|
|
5
5
|
import {
|
|
6
6
|
buildRecordEnvelope
|
|
7
7
|
} from "./chunk-QU3YUP2X.js";
|
|
@@ -142,4 +142,4 @@ export {
|
|
|
142
142
|
deleteUserEnvelope,
|
|
143
143
|
listUserEnvelopeIds
|
|
144
144
|
};
|
|
145
|
-
//# sourceMappingURL=chunk-
|
|
145
|
+
//# sourceMappingURL=chunk-26W5VETY.js.map
|
|
@@ -13,14 +13,14 @@ import {
|
|
|
13
13
|
persistKeyring,
|
|
14
14
|
readKeyringFile,
|
|
15
15
|
requireRosterKey
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ZTYG36DH.js";
|
|
17
17
|
import {
|
|
18
18
|
dekKey
|
|
19
19
|
} from "./chunk-POS53FG6.js";
|
|
20
20
|
import {
|
|
21
21
|
buildRecordAad,
|
|
22
22
|
openEnvelopeJson
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-BYBB4ABD.js";
|
|
24
24
|
import {
|
|
25
25
|
buildRecordEnvelope
|
|
26
26
|
} from "./chunk-QU3YUP2X.js";
|
|
@@ -965,4 +965,4 @@ export {
|
|
|
965
965
|
removeAuthenticator,
|
|
966
966
|
findAuthenticator
|
|
967
967
|
};
|
|
968
|
-
//# sourceMappingURL=chunk-
|
|
968
|
+
//# sourceMappingURL=chunk-4FPEWQKF.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LookupHandle
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XBFEKTIY.js";
|
|
4
4
|
|
|
5
5
|
// src/via/lookup/active.ts
|
|
6
6
|
function withLookup() {
|
|
@@ -33,4 +33,4 @@ function withLookup() {
|
|
|
33
33
|
export {
|
|
34
34
|
withLookup
|
|
35
35
|
};
|
|
36
|
-
//# sourceMappingURL=chunk-
|
|
36
|
+
//# sourceMappingURL=chunk-4JDIRUTT.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
freezeSnapshotOnly
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7XODKGTW.js";
|
|
4
4
|
import {
|
|
5
5
|
resolveManagedSecret
|
|
6
6
|
} from "./chunk-2QNKXGUS.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
createOwnerKeyring,
|
|
10
10
|
mintRosterTag,
|
|
11
11
|
requireRosterKey
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZTYG36DH.js";
|
|
13
13
|
import {
|
|
14
14
|
buildRecordEnvelope
|
|
15
15
|
} from "./chunk-QU3YUP2X.js";
|
|
@@ -135,4 +135,4 @@ export {
|
|
|
135
135
|
isDeedVault,
|
|
136
136
|
liberateVault
|
|
137
137
|
};
|
|
138
|
-
//# sourceMappingURL=chunk-
|
|
138
|
+
//# sourceMappingURL=chunk-4MZEZ37W.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writePod
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6AQIFBSP.js";
|
|
4
4
|
|
|
5
5
|
// src/with-audit/portability/export-accessible.ts
|
|
6
6
|
function resolveAccessibleCollections(keyring, scope, writableOnly = false) {
|
|
@@ -42,4 +42,4 @@ export {
|
|
|
42
42
|
buildAccessibleBundle,
|
|
43
43
|
exportAccessibleData
|
|
44
44
|
};
|
|
45
|
-
//# sourceMappingURL=chunk-
|
|
45
|
+
//# sourceMappingURL=chunk-4TZUFNXL.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildRecordAad,
|
|
3
3
|
openEnvelopeJson
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BYBB4ABD.js";
|
|
5
5
|
import {
|
|
6
6
|
buildRecordEnvelope
|
|
7
7
|
} from "./chunk-QU3YUP2X.js";
|
|
@@ -45,4 +45,4 @@ export {
|
|
|
45
45
|
loadPersistedSchema,
|
|
46
46
|
savePersistedSchema
|
|
47
47
|
};
|
|
48
|
-
//# sourceMappingURL=chunk-
|
|
48
|
+
//# sourceMappingURL=chunk-626TSARM.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
grant,
|
|
3
3
|
revoke
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZTYG36DH.js";
|
|
5
5
|
import {
|
|
6
6
|
CustodyNotEnabledError
|
|
7
7
|
} from "./chunk-JBIV4FLR.js";
|
|
@@ -16,7 +16,7 @@ function withCustody() {
|
|
|
16
16
|
return host._revokeCustodianImpl(revoke, vault, options, factors);
|
|
17
17
|
},
|
|
18
18
|
async liberate(vault, opts) {
|
|
19
|
-
const { liberateVault } = await import("./liberate-
|
|
19
|
+
const { liberateVault } = await import("./liberate-7NEPRE52.js");
|
|
20
20
|
return liberateVault(vault, opts);
|
|
21
21
|
}
|
|
22
22
|
};
|
|
@@ -74,4 +74,4 @@ export {
|
|
|
74
74
|
withCustody,
|
|
75
75
|
CustodyApi
|
|
76
76
|
};
|
|
77
|
-
//# sourceMappingURL=chunk-
|
|
77
|
+
//# sourceMappingURL=chunk-672U6STZ.js.map
|
|
@@ -812,7 +812,7 @@ async function applySatelliteLivenessFilter(vault, dumpJson) {
|
|
|
812
812
|
if (!backup.collections || typeof backup.collections !== "object") return dumpJson;
|
|
813
813
|
if (typeof vault._introspectState !== "function") return dumpJson;
|
|
814
814
|
const { adapter, name, getDEK } = vault._introspectState();
|
|
815
|
-
const { liveBaseIdSetsForBundle } = await import("./dead-filter-
|
|
815
|
+
const { liveBaseIdSetsForBundle } = await import("./dead-filter-ZGRFZKYE.js");
|
|
816
816
|
const satLive = await liveBaseIdSetsForBundle(adapter, name, Object.keys(backup.collections), getDEK);
|
|
817
817
|
if (satLive.size === 0) return dumpJson;
|
|
818
818
|
const next = {};
|
|
@@ -1059,4 +1059,4 @@ export {
|
|
|
1059
1059
|
readPodRedirect,
|
|
1060
1060
|
readPod
|
|
1061
1061
|
};
|
|
1062
|
-
//# sourceMappingURL=chunk-
|
|
1062
|
+
//# sourceMappingURL=chunk-6AQIFBSP.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
canonicalJson,
|
|
6
6
|
sha256Hex
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WLFABTZ6.js";
|
|
8
8
|
import {
|
|
9
9
|
isDeleteMarker
|
|
10
10
|
} from "./chunk-QU3YUP2X.js";
|
|
@@ -124,7 +124,7 @@ function validatePeriodName(name, existing, partition) {
|
|
|
124
124
|
}
|
|
125
125
|
async function appendPeriodLedgerEntry(ledger, actor, envelope, name, collection = PERIODS_COLLECTION) {
|
|
126
126
|
if (!ledger) return;
|
|
127
|
-
const { envelopePayloadHash } = await import("./ledger-
|
|
127
|
+
const { envelopePayloadHash } = await import("./ledger-4X5ZH43X.js");
|
|
128
128
|
await ledger.append({
|
|
129
129
|
op: "put",
|
|
130
130
|
collection,
|
|
@@ -198,4 +198,4 @@ export {
|
|
|
198
198
|
purgeMarkersOn,
|
|
199
199
|
withPeriods
|
|
200
200
|
};
|
|
201
|
-
//# sourceMappingURL=chunk-
|
|
201
|
+
//# sourceMappingURL=chunk-6NRVFD55.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SCHEMAS_COLLECTION
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-626TSARM.js";
|
|
4
4
|
import {
|
|
5
5
|
assemblePodContainer,
|
|
6
6
|
buildExtractedPartitionWrapper
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6AQIFBSP.js";
|
|
8
8
|
import {
|
|
9
9
|
BLOB_CHUNKS_COLLECTION,
|
|
10
10
|
BLOB_COLLECTION,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
BLOB_INTENT_COLLECTION,
|
|
13
13
|
BLOB_SLOTS_PREFIX,
|
|
14
14
|
BLOB_VERSIONS_PREFIX
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ZQ2UUHSL.js";
|
|
16
16
|
import {
|
|
17
17
|
generateULID
|
|
18
18
|
} from "./chunk-4AOERLTV.js";
|
|
@@ -23,13 +23,13 @@ import {
|
|
|
23
23
|
canonicalJson,
|
|
24
24
|
envelopePayloadHash,
|
|
25
25
|
hashEntry
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-WLFABTZ6.js";
|
|
27
27
|
import {
|
|
28
28
|
buildRecordAad,
|
|
29
29
|
openEnvelopeJson,
|
|
30
30
|
recordAadFor,
|
|
31
31
|
writeEnvelopeBody
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-BYBB4ABD.js";
|
|
33
33
|
import {
|
|
34
34
|
buildRecordEnvelope
|
|
35
35
|
} from "./chunk-QU3YUP2X.js";
|
|
@@ -494,4 +494,4 @@ export {
|
|
|
494
494
|
extractPartition,
|
|
495
495
|
extractPartitionCore
|
|
496
496
|
};
|
|
497
|
-
//# sourceMappingURL=chunk-
|
|
497
|
+
//# sourceMappingURL=chunk-7CWII4BL.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildAccessibleBundle,
|
|
3
3
|
resolveAccessibleCollections
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4TZUFNXL.js";
|
|
5
5
|
import {
|
|
6
6
|
buildRecordEnvelope
|
|
7
7
|
} from "./chunk-QU3YUP2X.js";
|
|
@@ -117,4 +117,4 @@ export {
|
|
|
117
117
|
freezeAndDeleteClosure,
|
|
118
118
|
withdrawAccessibleData
|
|
119
119
|
};
|
|
120
|
-
//# sourceMappingURL=chunk-
|
|
120
|
+
//# sourceMappingURL=chunk-7XODKGTW.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
buildRecordAad,
|
|
7
7
|
openEnvelopeJson
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BYBB4ABD.js";
|
|
9
9
|
import {
|
|
10
10
|
buildRecordEnvelope
|
|
11
11
|
} from "./chunk-QU3YUP2X.js";
|
|
@@ -130,4 +130,4 @@ export {
|
|
|
130
130
|
LinkSet,
|
|
131
131
|
LinkEndpointError
|
|
132
132
|
};
|
|
133
|
-
//# sourceMappingURL=chunk-
|
|
133
|
+
//# sourceMappingURL=chunk-BOFRKAUS.js.map
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
ATTESTATIONS_COLLECTION,
|
|
3
3
|
REVOKED_RECORD_ID,
|
|
4
4
|
loadOrCreateSigner
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-LFDMKZIP.js";
|
|
6
6
|
import {
|
|
7
7
|
buildRecordAad,
|
|
8
8
|
openEnvelopeJson
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BYBB4ABD.js";
|
|
10
10
|
import {
|
|
11
11
|
buildRecordEnvelope
|
|
12
12
|
} from "./chunk-QU3YUP2X.js";
|
|
@@ -81,4 +81,4 @@ export {
|
|
|
81
81
|
getRevokedDocIdsCore,
|
|
82
82
|
publishRevocationListCore
|
|
83
83
|
};
|
|
84
|
-
//# sourceMappingURL=chunk-
|
|
84
|
+
//# sourceMappingURL=chunk-BWWUXE3L.js.map
|
|
@@ -59,6 +59,13 @@ function buildRecordAad(identity) {
|
|
|
59
59
|
`record AAD: version must be a finite number for "${identity.collection}/${identity.id}", received ${String(identity.version)}. Sealing without one produces a record no reader can open.`
|
|
60
60
|
);
|
|
61
61
|
}
|
|
62
|
+
for (const [field, value] of [["collection", identity.collection], ["id", identity.id]]) {
|
|
63
|
+
if (typeof value !== "string") {
|
|
64
|
+
throw new TypeError(
|
|
65
|
+
`record AAD: ${field} must be a string, received ${String(value)} (${typeof value}). Sealing against a coerced address produces a record no reader can open, and the failure surfaces on the READ path.`
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
62
69
|
const parts = [encoder.encode(SCHEME)];
|
|
63
70
|
const pushField = (value) => {
|
|
64
71
|
const bytes = encoder.encode(value);
|
|
@@ -546,6 +553,11 @@ var RecordCodec = class _RecordCodec {
|
|
|
546
553
|
* migration.
|
|
547
554
|
*/
|
|
548
555
|
async encryptJsonString(ref, json, version, cek, source, sourceTs) {
|
|
556
|
+
if (typeof json !== "string") {
|
|
557
|
+
throw new TypeError(
|
|
558
|
+
`record seal: plaintext must be a string for "${String(ref.collection)}/${String(ref.id)}", received ${String(json)} (${typeof json}). Sealing over an empty plaintext produces an envelope that is valid and undecodable.`
|
|
559
|
+
);
|
|
560
|
+
}
|
|
549
561
|
const identity = { ...ref, version, by: this.ctx.actor };
|
|
550
562
|
const provenance = this.ctx.provenance && source !== void 0 ? { source, sourceTs: sourceTs ?? (/* @__PURE__ */ new Date()).toISOString() } : void 0;
|
|
551
563
|
if (!this.ctx.storeCiphertext) {
|
|
@@ -1352,4 +1364,4 @@ export {
|
|
|
1352
1364
|
issueChallenge,
|
|
1353
1365
|
verifyBrokerProof
|
|
1354
1366
|
};
|
|
1355
|
-
//# sourceMappingURL=chunk-
|
|
1367
|
+
//# sourceMappingURL=chunk-BYBB4ABD.js.map
|