@noy-db/hub 0.2.0-pre.10 → 0.2.0-pre.11

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.
Files changed (125) hide show
  1. package/dist/attestation/index.cjs.map +1 -1
  2. package/dist/attestation/index.d.cts +1 -1
  3. package/dist/attestation/index.d.ts +1 -1
  4. package/dist/attestation/index.js +4 -4
  5. package/dist/blobs/index.cjs.map +1 -1
  6. package/dist/blobs/index.d.cts +2 -2
  7. package/dist/blobs/index.d.ts +2 -2
  8. package/dist/blobs/index.js +3 -3
  9. package/dist/bundle/index.cjs +16 -3
  10. package/dist/bundle/index.cjs.map +1 -1
  11. package/dist/bundle/index.d.cts +3 -3
  12. package/dist/bundle/index.d.ts +3 -3
  13. package/dist/bundle/index.js +7 -7
  14. package/dist/{chunk-3LPV6BXR.js → chunk-3DGHRDCX.js} +2 -2
  15. package/dist/{chunk-4CLICFEY.js → chunk-6MFH4BMK.js} +2 -2
  16. package/dist/{chunk-5IXJGFF2.js → chunk-73YLDCNF.js} +3 -3
  17. package/dist/{chunk-DRXIZOFV.js → chunk-77DWLQRY.js} +2 -2
  18. package/dist/{chunk-TY32C732.js → chunk-EBVBE7UK.js} +3 -3
  19. package/dist/{chunk-HHOO7HGH.js → chunk-GKI4SDP7.js} +2 -2
  20. package/dist/{chunk-2N62W5YP.js → chunk-JQ4NEJJ6.js} +2 -2
  21. package/dist/{chunk-PM3QYWUU.js → chunk-LJXYPGRH.js} +2 -2
  22. package/dist/{chunk-4USCAEDT.js → chunk-MPOLUAMI.js} +25 -23
  23. package/dist/{chunk-4USCAEDT.js.map → chunk-MPOLUAMI.js.map} +1 -1
  24. package/dist/{chunk-5OX6XVNS.js → chunk-PC3ZZBTO.js} +3 -3
  25. package/dist/{chunk-HQSQC2XL.js → chunk-QCXNMCHN.js} +15 -2
  26. package/dist/chunk-QCXNMCHN.js.map +1 -0
  27. package/dist/{chunk-WIRRPTFH.js → chunk-SLV4LAKX.js} +1 -1
  28. package/dist/{chunk-WIRRPTFH.js.map → chunk-SLV4LAKX.js.map} +1 -1
  29. package/dist/{chunk-BB27JMWB.js → chunk-TGALXXLV.js} +2 -2
  30. package/dist/{chunk-6EOXTJS2.js → chunk-V2PZC6AW.js} +2 -2
  31. package/dist/{chunk-PXTQPZO4.js → chunk-YVZRTCGG.js} +3 -3
  32. package/dist/{chunk-DJRWA3Q5.js → chunk-YW5DBAPG.js} +2 -2
  33. package/dist/{chunk-GNHAC43Q.js → chunk-ZBBW7YQN.js} +3 -3
  34. package/dist/consent/index.d.cts +2 -2
  35. package/dist/consent/index.d.ts +2 -2
  36. package/dist/derivations/index.d.cts +3 -3
  37. package/dist/derivations/index.d.ts +3 -3
  38. package/dist/{dev-unlock-BOEYl1xl.d.ts → dev-unlock-BH6y3Hx0.d.ts} +1 -1
  39. package/dist/{dev-unlock-AglVnkPY.d.cts → dev-unlock-H1Xwxc3U.d.cts} +1 -1
  40. package/dist/{fanout-sidecar-OKPMMPLG.js → fanout-sidecar-F3ZRFU4H.js} +2 -2
  41. package/dist/guards/index.d.cts +3 -3
  42. package/dist/guards/index.d.ts +3 -3
  43. package/dist/{hash-B9m3_fhj.d.ts → hash-D89JdDbj.d.ts} +1 -1
  44. package/dist/{hash-RVqz2zi8.d.cts → hash-_sDFvtmX.d.cts} +1 -1
  45. package/dist/history/index.cjs.map +1 -1
  46. package/dist/history/index.d.cts +3 -3
  47. package/dist/history/index.d.ts +3 -3
  48. package/dist/history/index.js +2 -2
  49. package/dist/i18n/index.cjs.map +1 -1
  50. package/dist/i18n/index.d.cts +2 -2
  51. package/dist/i18n/index.d.ts +2 -2
  52. package/dist/i18n/index.js +3 -3
  53. package/dist/index.cjs +16 -3
  54. package/dist/index.cjs.map +1 -1
  55. package/dist/index.d.cts +9 -9
  56. package/dist/index.d.ts +9 -9
  57. package/dist/index.js +14 -14
  58. package/dist/{issue-3W6IVLKH.js → issue-IVTVSKWW.js} +4 -4
  59. package/dist/{ledger-O7FXOG3D.js → ledger-NYCGJX2D.js} +3 -3
  60. package/dist/materialized-views/index.d.cts +3 -3
  61. package/dist/materialized-views/index.d.ts +3 -3
  62. package/dist/{noydb-YAZNH5TI.js → noydb-SH4RLE47.js} +11 -11
  63. package/dist/overlay-views/index.d.cts +3 -3
  64. package/dist/overlay-views/index.d.ts +3 -3
  65. package/dist/periods/index.cjs.map +1 -1
  66. package/dist/periods/index.d.cts +2 -2
  67. package/dist/periods/index.d.ts +2 -2
  68. package/dist/periods/index.js +3 -3
  69. package/dist/{public-envelope-HMYHZIRH.js → public-envelope-QOXZEHKH.js} +3 -3
  70. package/dist/{revoke-S6JMSLUN.js → revoke-RT7QYB4G.js} +4 -4
  71. package/dist/session/index.d.cts +3 -3
  72. package/dist/session/index.d.ts +3 -3
  73. package/dist/shadow/index.d.cts +2 -2
  74. package/dist/shadow/index.d.ts +2 -2
  75. package/dist/{signer-7NPTB3SQ.js → signer-QNU66JF5.js} +3 -3
  76. package/dist/snapshots/index.d.cts +2 -2
  77. package/dist/snapshots/index.d.ts +2 -2
  78. package/dist/snapshots/index.js +3 -3
  79. package/dist/store/index.d.cts +2 -2
  80. package/dist/store/index.d.ts +2 -2
  81. package/dist/sync/index.cjs.map +1 -1
  82. package/dist/sync/index.d.cts +1 -1
  83. package/dist/sync/index.d.ts +1 -1
  84. package/dist/sync/index.js +2 -2
  85. package/dist/team/index.cjs.map +1 -1
  86. package/dist/team/index.d.cts +2 -2
  87. package/dist/team/index.d.ts +2 -2
  88. package/dist/team/index.js +5 -5
  89. package/dist/tx/index.d.cts +2 -2
  90. package/dist/tx/index.d.ts +2 -2
  91. package/dist/{types-CaNQm4i8.d.ts → types-CD8mc8zR.d.ts} +9 -0
  92. package/dist/{types-n2_IfwlQ.d.cts → types-DiSXn3a4.d.cts} +9 -0
  93. package/dist/{ulid-B9SMWj5i.d.ts → ulid-8p83wbR4.d.ts} +1 -1
  94. package/dist/{ulid-CLMjmyhG.d.cts → ulid-DQ1hcJvZ.d.cts} +1 -1
  95. package/dist/{with-derivation-aKrtS7Jj.d.cts → with-derivation-CVT7-dUt.d.cts} +1 -1
  96. package/dist/{with-derivation-CVIOPTUf.d.ts → with-derivation-DWMTpgEH.d.ts} +1 -1
  97. package/dist/{with-guard-DseETUrF.d.ts → with-guard-BRvt53da.d.ts} +1 -1
  98. package/dist/{with-guard-DZQbPzoP.d.cts → with-guard-Dx2zZnTA.d.cts} +1 -1
  99. package/dist/{with-materialized-view-C1eA1_T_.d.cts → with-materialized-view-BTTU3BNK.d.cts} +1 -1
  100. package/dist/{with-materialized-view-DaYaE8-Q.d.ts → with-materialized-view-X0CoL8-L.d.ts} +1 -1
  101. package/dist/{with-overlayed-view-DQsh2p8H.d.ts → with-overlayed-view-DQjO_DSG.d.ts} +1 -1
  102. package/dist/{with-overlayed-view-DleJfKcV.d.cts → with-overlayed-view-DcacRRsS.d.cts} +1 -1
  103. package/package.json +3 -3
  104. package/dist/chunk-HQSQC2XL.js.map +0 -1
  105. /package/dist/{chunk-3LPV6BXR.js.map → chunk-3DGHRDCX.js.map} +0 -0
  106. /package/dist/{chunk-4CLICFEY.js.map → chunk-6MFH4BMK.js.map} +0 -0
  107. /package/dist/{chunk-5IXJGFF2.js.map → chunk-73YLDCNF.js.map} +0 -0
  108. /package/dist/{chunk-DRXIZOFV.js.map → chunk-77DWLQRY.js.map} +0 -0
  109. /package/dist/{chunk-TY32C732.js.map → chunk-EBVBE7UK.js.map} +0 -0
  110. /package/dist/{chunk-HHOO7HGH.js.map → chunk-GKI4SDP7.js.map} +0 -0
  111. /package/dist/{chunk-2N62W5YP.js.map → chunk-JQ4NEJJ6.js.map} +0 -0
  112. /package/dist/{chunk-PM3QYWUU.js.map → chunk-LJXYPGRH.js.map} +0 -0
  113. /package/dist/{chunk-5OX6XVNS.js.map → chunk-PC3ZZBTO.js.map} +0 -0
  114. /package/dist/{chunk-BB27JMWB.js.map → chunk-TGALXXLV.js.map} +0 -0
  115. /package/dist/{chunk-6EOXTJS2.js.map → chunk-V2PZC6AW.js.map} +0 -0
  116. /package/dist/{chunk-PXTQPZO4.js.map → chunk-YVZRTCGG.js.map} +0 -0
  117. /package/dist/{chunk-DJRWA3Q5.js.map → chunk-YW5DBAPG.js.map} +0 -0
  118. /package/dist/{chunk-GNHAC43Q.js.map → chunk-ZBBW7YQN.js.map} +0 -0
  119. /package/dist/{fanout-sidecar-OKPMMPLG.js.map → fanout-sidecar-F3ZRFU4H.js.map} +0 -0
  120. /package/dist/{issue-3W6IVLKH.js.map → issue-IVTVSKWW.js.map} +0 -0
  121. /package/dist/{ledger-O7FXOG3D.js.map → ledger-NYCGJX2D.js.map} +0 -0
  122. /package/dist/{noydb-YAZNH5TI.js.map → noydb-SH4RLE47.js.map} +0 -0
  123. /package/dist/{public-envelope-HMYHZIRH.js.map → public-envelope-QOXZEHKH.js.map} +0 -0
  124. /package/dist/{revoke-S6JMSLUN.js.map → revoke-RT7QYB4G.js.map} +0 -0
  125. /package/dist/{signer-7NPTB3SQ.js.map → signer-QNU66JF5.js.map} +0 -0
@@ -1,6 +1,6 @@
1
- import { T as TransferSealPayload } from '../ulid-CLMjmyhG.cjs';
2
- export { C as COMPRESSION_BROTLI, a as COMPRESSION_GZIP, b as COMPRESSION_NONE, c as CompressionAlgo, F as FLAG_COMPRESSED, d as FLAG_HAS_INTEGRITY_HASH, N as NOYDB_BUNDLE_FORMAT_VERSION, e as NOYDB_BUNDLE_MAGIC, f as NOYDB_BUNDLE_PREFIX_BYTES, g as NoydbBundleHeader, h as NoydbBundleReadResult, R as ReadNoydbBundleOptions, W as WriteNoydbBundleOptions, i as encodeBundleHeader, j as generateULID, k as isULID, r as readNoydbBundle, l as readNoydbBundleHeader, m as resetBrotliSupportCache, v as validateBundleHeader, w as writeNoydbBundle } from '../ulid-CLMjmyhG.cjs';
3
- import { bw as Vault, b3 as NoydbStore, bs as SealingKeyProvider, bx as RecoveryEnrollmentInput, by as ShamirRecoveryProvider } from '../types-n2_IfwlQ.cjs';
1
+ import { T as TransferSealPayload } from '../ulid-DQ1hcJvZ.cjs';
2
+ export { C as COMPRESSION_BROTLI, a as COMPRESSION_GZIP, b as COMPRESSION_NONE, c as CompressionAlgo, F as FLAG_COMPRESSED, d as FLAG_HAS_INTEGRITY_HASH, N as NOYDB_BUNDLE_FORMAT_VERSION, e as NOYDB_BUNDLE_MAGIC, f as NOYDB_BUNDLE_PREFIX_BYTES, g as NoydbBundleHeader, h as NoydbBundleReadResult, R as ReadNoydbBundleOptions, W as WriteNoydbBundleOptions, i as encodeBundleHeader, j as generateULID, k as isULID, r as readNoydbBundle, l as readNoydbBundleHeader, m as resetBrotliSupportCache, v as validateBundleHeader, w as writeNoydbBundle } from '../ulid-DQ1hcJvZ.cjs';
3
+ import { bw as Vault, b3 as NoydbStore, bs as SealingKeyProvider, bx as RecoveryEnrollmentInput, by as ShamirRecoveryProvider } from '../types-DiSXn3a4.cjs';
4
4
  export { p as AdoptionStateError, B as BackupCorruptedError, q as BackupLedgerError, r as BundleIntegrityError, s as BundleSealMismatchError, t as BundleVersionConflictError, P as PartitionExtractionError, u as TransferSealError } from '../index-B8bjExET.cjs';
5
5
  import '../lazy-builder-Ci5_YG73.cjs';
6
6
  import '../predicate-Bt5ft-9c.cjs';
@@ -1,6 +1,6 @@
1
- import { T as TransferSealPayload } from '../ulid-B9SMWj5i.js';
2
- export { C as COMPRESSION_BROTLI, a as COMPRESSION_GZIP, b as COMPRESSION_NONE, c as CompressionAlgo, F as FLAG_COMPRESSED, d as FLAG_HAS_INTEGRITY_HASH, N as NOYDB_BUNDLE_FORMAT_VERSION, e as NOYDB_BUNDLE_MAGIC, f as NOYDB_BUNDLE_PREFIX_BYTES, g as NoydbBundleHeader, h as NoydbBundleReadResult, R as ReadNoydbBundleOptions, W as WriteNoydbBundleOptions, i as encodeBundleHeader, j as generateULID, k as isULID, r as readNoydbBundle, l as readNoydbBundleHeader, m as resetBrotliSupportCache, v as validateBundleHeader, w as writeNoydbBundle } from '../ulid-B9SMWj5i.js';
3
- import { bw as Vault, b3 as NoydbStore, bs as SealingKeyProvider, bx as RecoveryEnrollmentInput, by as ShamirRecoveryProvider } from '../types-CaNQm4i8.js';
1
+ import { T as TransferSealPayload } from '../ulid-8p83wbR4.js';
2
+ export { C as COMPRESSION_BROTLI, a as COMPRESSION_GZIP, b as COMPRESSION_NONE, c as CompressionAlgo, F as FLAG_COMPRESSED, d as FLAG_HAS_INTEGRITY_HASH, N as NOYDB_BUNDLE_FORMAT_VERSION, e as NOYDB_BUNDLE_MAGIC, f as NOYDB_BUNDLE_PREFIX_BYTES, g as NoydbBundleHeader, h as NoydbBundleReadResult, R as ReadNoydbBundleOptions, W as WriteNoydbBundleOptions, i as encodeBundleHeader, j as generateULID, k as isULID, r as readNoydbBundle, l as readNoydbBundleHeader, m as resetBrotliSupportCache, v as validateBundleHeader, w as writeNoydbBundle } from '../ulid-8p83wbR4.js';
3
+ import { bw as Vault, b3 as NoydbStore, bs as SealingKeyProvider, bx as RecoveryEnrollmentInput, by as ShamirRecoveryProvider } from '../types-CD8mc8zR.js';
4
4
  export { p as AdoptionStateError, B as BackupCorruptedError, q as BackupLedgerError, r as BundleIntegrityError, s as BundleSealMismatchError, t as BundleVersionConflictError, P as PartitionExtractionError, u as TransferSealError } from '../index-DfUbNad8.js';
5
5
  import '../lazy-builder-D5GU14TS.js';
6
6
  import '../predicate-Bt5ft-9c.js';
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  SCHEMAS_COLLECTION,
3
3
  resolveManagedSecret
4
- } from "../chunk-PM3QYWUU.js";
4
+ } from "../chunk-LJXYPGRH.js";
5
5
  import {
6
6
  COMPRESSION_BROTLI,
7
7
  COMPRESSION_GZIP,
@@ -20,11 +20,11 @@ import {
20
20
  resetBrotliSupportCache,
21
21
  validateBundleHeader,
22
22
  writeNoydbBundle
23
- } from "../chunk-BB27JMWB.js";
24
- import "../chunk-2N62W5YP.js";
23
+ } from "../chunk-TGALXXLV.js";
24
+ import "../chunk-JQ4NEJJ6.js";
25
25
  import {
26
26
  createOwnerKeyring
27
- } from "../chunk-HQSQC2XL.js";
27
+ } from "../chunk-QCXNMCHN.js";
28
28
  import {
29
29
  generateULID,
30
30
  isULID
@@ -32,7 +32,7 @@ import {
32
32
  import {
33
33
  LEDGER_COLLECTION,
34
34
  LedgerStore
35
- } from "../chunk-4CLICFEY.js";
35
+ } from "../chunk-6MFH4BMK.js";
36
36
  import {
37
37
  canonicalJson,
38
38
  envelopePayloadHash,
@@ -41,7 +41,7 @@ import {
41
41
  import {
42
42
  NOYDB_BACKUP_VERSION,
43
43
  NOYDB_FORMAT_VERSION
44
- } from "../chunk-WIRRPTFH.js";
44
+ } from "../chunk-SLV4LAKX.js";
45
45
  import {
46
46
  base64ToBuffer,
47
47
  bufferToBase64,
@@ -532,7 +532,7 @@ async function createOwnerOnAdoptedPartition(store, vaultName, opts) {
532
532
  }
533
533
  }
534
534
  if (isManaged(opts)) {
535
- const { createNoydb } = await import("../noydb-YAZNH5TI.js");
535
+ const { createNoydb } = await import("../noydb-SH4RLE47.js");
536
536
  const db = await createNoydb({
537
537
  store,
538
538
  user: userId,
@@ -56,7 +56,7 @@ function validatePeriodName(name, existing) {
56
56
  }
57
57
  async function appendPeriodLedgerEntry(ledger, actor, envelope, name) {
58
58
  if (!ledger) return;
59
- const { envelopePayloadHash } = await import("./ledger-O7FXOG3D.js");
59
+ const { envelopePayloadHash } = await import("./ledger-NYCGJX2D.js");
60
60
  await ledger.append({
61
61
  op: "put",
62
62
  collection: PERIODS_COLLECTION,
@@ -87,4 +87,4 @@ export {
87
87
  appendPeriodLedgerEntry,
88
88
  withPeriods
89
89
  };
90
- //# sourceMappingURL=chunk-3LPV6BXR.js.map
90
+ //# sourceMappingURL=chunk-3DGHRDCX.js.map
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-Z6FNBOTC.js";
7
7
  import {
8
8
  NOYDB_FORMAT_VERSION
9
- } from "./chunk-WIRRPTFH.js";
9
+ } from "./chunk-SLV4LAKX.js";
10
10
  import {
11
11
  decrypt,
12
12
  encrypt
@@ -683,4 +683,4 @@ export {
683
683
  LEDGER_DELTAS_COLLECTION,
684
684
  LedgerStore
685
685
  };
686
- //# sourceMappingURL=chunk-4CLICFEY.js.map
686
+ //# sourceMappingURL=chunk-6MFH4BMK.js.map
@@ -2,10 +2,10 @@ import {
2
2
  ATTESTATIONS_COLLECTION,
3
3
  REVOKED_RECORD_ID,
4
4
  loadOrCreateSigner
5
- } from "./chunk-HHOO7HGH.js";
5
+ } from "./chunk-GKI4SDP7.js";
6
6
  import {
7
7
  NOYDB_FORMAT_VERSION
8
- } from "./chunk-WIRRPTFH.js";
8
+ } from "./chunk-SLV4LAKX.js";
9
9
  import {
10
10
  decrypt,
11
11
  encrypt
@@ -80,4 +80,4 @@ export {
80
80
  getRevokedDocIdsCore,
81
81
  publishRevocationListCore
82
82
  };
83
- //# sourceMappingURL=chunk-5IXJGFF2.js.map
83
+ //# sourceMappingURL=chunk-73YLDCNF.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  NOYDB_FORMAT_VERSION
3
- } from "./chunk-WIRRPTFH.js";
3
+ } from "./chunk-SLV4LAKX.js";
4
4
  import {
5
5
  encrypt
6
6
  } from "./chunk-R233SLY3.js";
@@ -230,4 +230,4 @@ export {
230
230
  BLOB_EVICTION_AUDIT_COLLECTION,
231
231
  runCompaction
232
232
  };
233
- //# sourceMappingURL=chunk-DRXIZOFV.js.map
233
+ //# sourceMappingURL=chunk-77DWLQRY.js.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  ATTESTATIONS_COLLECTION,
3
3
  loadOrCreateSigner
4
- } from "./chunk-HHOO7HGH.js";
4
+ } from "./chunk-GKI4SDP7.js";
5
5
  import {
6
6
  generateULID
7
7
  } from "./chunk-FZU343FL.js";
8
8
  import {
9
9
  NOYDB_FORMAT_VERSION
10
- } from "./chunk-WIRRPTFH.js";
10
+ } from "./chunk-SLV4LAKX.js";
11
11
  import {
12
12
  encrypt
13
13
  } from "./chunk-R233SLY3.js";
@@ -56,4 +56,4 @@ async function issueAttestationCore(ctx, args) {
56
56
  export {
57
57
  issueAttestationCore
58
58
  };
59
- //# sourceMappingURL=chunk-TY32C732.js.map
59
+ //# sourceMappingURL=chunk-EBVBE7UK.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  NOYDB_FORMAT_VERSION
3
- } from "./chunk-WIRRPTFH.js";
3
+ } from "./chunk-SLV4LAKX.js";
4
4
  import {
5
5
  decrypt,
6
6
  encrypt
@@ -54,4 +54,4 @@ export {
54
54
  loadSigner,
55
55
  loadOrCreateSigner
56
56
  };
57
- //# sourceMappingURL=chunk-HHOO7HGH.js.map
57
+ //# sourceMappingURL=chunk-GKI4SDP7.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  NOYDB_FORMAT_VERSION
3
- } from "./chunk-WIRRPTFH.js";
3
+ } from "./chunk-SLV4LAKX.js";
4
4
  import {
5
5
  ValidationError
6
6
  } from "./chunk-O6EJ6WTI.js";
@@ -152,4 +152,4 @@ export {
152
152
  resolveLocale,
153
153
  pickLocale
154
154
  };
155
- //# sourceMappingURL=chunk-2N62W5YP.js.map
155
+ //# sourceMappingURL=chunk-JQ4NEJJ6.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  NOYDB_FORMAT_VERSION
3
- } from "./chunk-WIRRPTFH.js";
3
+ } from "./chunk-SLV4LAKX.js";
4
4
  import {
5
5
  decrypt,
6
6
  encrypt
@@ -248,4 +248,4 @@ export {
248
248
  loadSealedPassphrase,
249
249
  resolveManagedSecret
250
250
  };
251
- //# sourceMappingURL=chunk-PM3QYWUU.js.map
251
+ //# sourceMappingURL=chunk-LJXYPGRH.js.map
@@ -19,22 +19,22 @@ import {
19
19
  resolveManagedSecret,
20
20
  savePersistedSchema,
21
21
  saveSealedPassphrase
22
- } from "./chunk-PM3QYWUU.js";
22
+ } from "./chunk-LJXYPGRH.js";
23
23
  import {
24
24
  loadPublicEnvelope,
25
25
  readPublicEnvelope,
26
26
  savePublicEnvelope,
27
27
  validatePublicEnvelopeInput
28
- } from "./chunk-2N62W5YP.js";
28
+ } from "./chunk-JQ4NEJJ6.js";
29
29
  import {
30
30
  PERIODS_COLLECTION
31
- } from "./chunk-3LPV6BXR.js";
31
+ } from "./chunk-3DGHRDCX.js";
32
32
  import {
33
33
  getAtPath,
34
34
  isDictCollectionName,
35
35
  resolvePolicy,
36
36
  setAtPathInPlace
37
- } from "./chunk-GNHAC43Q.js";
37
+ } from "./chunk-ZBBW7YQN.js";
38
38
  import {
39
39
  ManagedRecoveryNotEnrolledError,
40
40
  PolicyDeniedError,
@@ -56,13 +56,14 @@ import {
56
56
  saveShamirRecoveryEntries,
57
57
  updateAuthenticator,
58
58
  writeMagicLinkGrant
59
- } from "./chunk-PXTQPZO4.js";
59
+ } from "./chunk-YVZRTCGG.js";
60
60
  import {
61
61
  assertTierAccess,
62
62
  dekKey
63
63
  } from "./chunk-CXFOITNS.js";
64
64
  import {
65
65
  USER_ENVELOPE_COLLECTION,
66
+ assertKeyringOpenAllowed,
66
67
  buildRecipientKeyringFile,
67
68
  changeSecret,
68
69
  createOwnerKeyring,
@@ -84,7 +85,7 @@ import {
84
85
  rotateKeys,
85
86
  saveUserEnvelope,
86
87
  updateKeyringIdentity
87
- } from "./chunk-HQSQC2XL.js";
88
+ } from "./chunk-QCXNMCHN.js";
88
89
  import {
89
90
  INDEXED_STORE_POLICY
90
91
  } from "./chunk-2QR2PQTT.js";
@@ -94,7 +95,7 @@ import {
94
95
  import {
95
96
  LEDGER_COLLECTION,
96
97
  LEDGER_DELTAS_COLLECTION
97
- } from "./chunk-4CLICFEY.js";
98
+ } from "./chunk-6MFH4BMK.js";
98
99
  import {
99
100
  sha256Hex as sha256Hex2
100
101
  } from "./chunk-Z6FNBOTC.js";
@@ -113,11 +114,11 @@ import {
113
114
  EXPORT_AUDIT_COLLECTION,
114
115
  createExportBlobsHandle,
115
116
  runCompaction
116
- } from "./chunk-DRXIZOFV.js";
117
+ } from "./chunk-77DWLQRY.js";
117
118
  import {
118
119
  NOYDB_BACKUP_VERSION,
119
120
  NOYDB_FORMAT_VERSION
120
- } from "./chunk-WIRRPTFH.js";
121
+ } from "./chunk-SLV4LAKX.js";
121
122
  import {
122
123
  decrypt,
123
124
  encrypt,
@@ -1693,7 +1694,7 @@ var Collection = class {
1693
1694
  const outputCollection = this.derivationSource.getCollection(outSpec.collection);
1694
1695
  const txCtx = this.derivationSource.getActiveTxContext();
1695
1696
  if (out.kind === "array") {
1696
- const { loadFanoutSidecar, saveFanoutSidecar } = await import("./fanout-sidecar-OKPMMPLG.js");
1697
+ const { loadFanoutSidecar, saveFanoutSidecar } = await import("./fanout-sidecar-F3ZRFU4H.js");
1697
1698
  const prior = await loadFanoutSidecar(
1698
1699
  this.adapter,
1699
1700
  this.vault,
@@ -1986,7 +1987,7 @@ var Collection = class {
1986
1987
  for (const [outputKey, outSpec] of Object.entries(spec.outputs)) {
1987
1988
  if (outSpec.shape !== "array") continue;
1988
1989
  if (helpers === null) {
1989
- helpers = await import("./fanout-sidecar-OKPMMPLG.js");
1990
+ helpers = await import("./fanout-sidecar-F3ZRFU4H.js");
1990
1991
  }
1991
1992
  const sidecar = await helpers.loadFanoutSidecar(
1992
1993
  this.adapter,
@@ -5595,12 +5596,12 @@ var Vault = class {
5595
5596
  if (!fieldSchema) {
5596
5597
  throw new AttestationError(`issueAttestation: collection '${collectionName}' has no attestation field-schema. Declare it via vault.collection('${collectionName}', { attestation: { fields: [...] } }).`);
5597
5598
  }
5598
- const { issueAttestationCore } = await import("./issue-3W6IVLKH.js");
5599
+ const { issueAttestationCore } = await import("./issue-IVTVSKWW.js");
5599
5600
  const out = await issueAttestationCore(this.makeIssueContext(), { collection: collectionName, id, fieldSchema });
5600
5601
  return { docId: out.docId, qr: out.qr, keyId: out.keyId, publicKeyB64: out.publicKeyB64 };
5601
5602
  }
5602
5603
  async getDocumentSigningPublicKey() {
5603
- const { loadSigner, loadOrCreateSigner } = await import("./signer-7NPTB3SQ.js");
5604
+ const { loadSigner, loadOrCreateSigner } = await import("./signer-QNU66JF5.js");
5604
5605
  const existing = await loadSigner(this.adapter, this.name, this.getDEK);
5605
5606
  if (existing) return { keyId: existing.keyId, publicKeyB64: existing.publicKeyB64 };
5606
5607
  if (this.keyring.role !== "owner") {
@@ -5626,19 +5627,19 @@ var Vault = class {
5626
5627
  };
5627
5628
  }
5628
5629
  async revokeAttestation(docId) {
5629
- const { revokeDocCore } = await import("./revoke-S6JMSLUN.js");
5630
+ const { revokeDocCore } = await import("./revoke-RT7QYB4G.js");
5630
5631
  await revokeDocCore(this.makeRevokeContext(), docId);
5631
5632
  }
5632
5633
  async unrevokeAttestation(docId) {
5633
- const { unrevokeDocCore } = await import("./revoke-S6JMSLUN.js");
5634
+ const { unrevokeDocCore } = await import("./revoke-RT7QYB4G.js");
5634
5635
  await unrevokeDocCore(this.makeRevokeContext(), docId);
5635
5636
  }
5636
5637
  async getRevokedDocIds() {
5637
- const { getRevokedDocIdsCore } = await import("./revoke-S6JMSLUN.js");
5638
+ const { getRevokedDocIdsCore } = await import("./revoke-RT7QYB4G.js");
5638
5639
  return getRevokedDocIdsCore(this.makeRevokeContext());
5639
5640
  }
5640
5641
  async publishRevocationList() {
5641
- const { publishRevocationListCore } = await import("./revoke-S6JMSLUN.js");
5642
+ const { publishRevocationListCore } = await import("./revoke-RT7QYB4G.js");
5642
5643
  return publishRevocationListCore(this.makeRevokeContext());
5643
5644
  }
5644
5645
  makeRevokeContext() {
@@ -6104,7 +6105,7 @@ var Vault = class {
6104
6105
  if (!outSpec) continue;
6105
6106
  const outputColl = this.collection(outSpec.collection);
6106
6107
  if (out.kind === "array") {
6107
- const { loadFanoutSidecar, saveFanoutSidecar } = await import("./fanout-sidecar-OKPMMPLG.js");
6108
+ const { loadFanoutSidecar, saveFanoutSidecar } = await import("./fanout-sidecar-F3ZRFU4H.js");
6108
6109
  const prior = await loadFanoutSidecar(this.adapter, this.name, spec.source, id, key);
6109
6110
  const prevKeys = new Set(prior?.keys ?? []);
6110
6111
  const newKeysList = out.entries.map((e) => e.key);
@@ -6816,7 +6817,7 @@ var Vault = class {
6816
6817
  * @see docs/subsystems/public-envelope.md
6817
6818
  */
6818
6819
  async getPublicEnvelope(opts = {}) {
6819
- const { readPublicEnvelope: readPublicEnvelope2 } = await import("./public-envelope-HMYHZIRH.js");
6820
+ const { readPublicEnvelope: readPublicEnvelope2 } = await import("./public-envelope-QOXZEHKH.js");
6820
6821
  return readPublicEnvelope2(this.adapter, this.name, opts);
6821
6822
  }
6822
6823
  /**
@@ -8548,7 +8549,7 @@ var Noydb = class {
8548
8549
  }
8549
8550
  return comp;
8550
8551
  }
8551
- const keyring = await this.getKeyringInternal(name);
8552
+ const keyring = await this.getKeyringInternal(name, { create: opts?.create !== false });
8552
8553
  if (!this.activeTier.has(name)) {
8553
8554
  this.activeTier.set(name, 1);
8554
8555
  }
@@ -8976,7 +8977,7 @@ var Noydb = class {
8976
8977
  const vaultId = vaultIds[idx];
8977
8978
  const task = (async () => {
8978
8979
  try {
8979
- const comp = await this.openVault(vaultId);
8980
+ const comp = await this.openVault(vaultId, { create: options.create !== false });
8980
8981
  const result = await fn(comp);
8981
8982
  results[idx] = { vault: vaultId, result };
8982
8983
  } catch (err) {
@@ -10318,7 +10319,7 @@ var Noydb = class {
10318
10319
  * accesses see them. Not exposed publicly — callers outside hub
10319
10320
  * should use {@link getKeyring}, which returns a defensive copy.
10320
10321
  */
10321
- async getKeyringInternal(vault) {
10322
+ async getKeyringInternal(vault, opts = { create: true }) {
10322
10323
  if (this.options.encrypt === false) {
10323
10324
  return createPlaintextKeyring(this.options.user);
10324
10325
  }
@@ -10329,6 +10330,7 @@ var Noydb = class {
10329
10330
  this.keyringCache.set(vault, keyring2);
10330
10331
  return keyring2;
10331
10332
  }
10333
+ await assertKeyringOpenAllowed(this.options.store, vault, this.options.user, opts.create);
10332
10334
  let effectiveSecret;
10333
10335
  if (this.options.passphraseMode === "managed") {
10334
10336
  effectiveSecret = await resolveManagedSecret(
@@ -10526,4 +10528,4 @@ export {
10526
10528
  Noydb,
10527
10529
  createNoydb
10528
10530
  };
10529
- //# sourceMappingURL=chunk-4USCAEDT.js.map
10531
+ //# sourceMappingURL=chunk-MPOLUAMI.js.map