@noy-db/hub 0.2.0-pre.29 → 0.2.0-pre.30

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 (170) hide show
  1. package/dist/aggregate/index.js +1 -0
  2. package/dist/aggregate/index.js.map +1 -1
  3. package/dist/attestation/index.d.cts +1 -1
  4. package/dist/attestation/index.d.ts +1 -1
  5. package/dist/attestation/index.js +4 -3
  6. package/dist/attestation/index.js.map +1 -1
  7. package/dist/blobs/index.d.cts +3 -3
  8. package/dist/blobs/index.d.ts +3 -3
  9. package/dist/blobs/index.js +2 -1
  10. package/dist/blobs/index.js.map +1 -1
  11. package/dist/bundle/index.cjs +16825 -893
  12. package/dist/bundle/index.cjs.map +1 -1
  13. package/dist/bundle/index.d.cts +3 -3
  14. package/dist/bundle/index.d.ts +3 -3
  15. package/dist/bundle/index.js +2 -1
  16. package/dist/bundle/index.js.map +1 -1
  17. package/dist/{chunk-DJO4OYCJ.js → chunk-33EQCZXE.js} +2 -2
  18. package/dist/{chunk-ZDW22N3E.js → chunk-BVKLJBJJ.js} +694 -191
  19. package/dist/chunk-BVKLJBJJ.js.map +1 -0
  20. package/dist/{chunk-REHF3HSJ.js → chunk-K4JID2ZE.js} +16 -3
  21. package/dist/chunk-K4JID2ZE.js.map +1 -0
  22. package/dist/{chunk-553CK4E2.js → chunk-OCYFFBZS.js} +2 -2
  23. package/dist/chunk-PZ5AY32C.js +10 -0
  24. package/dist/{chunk-45QJXLLS.js → chunk-Y6YUWZTS.js} +2 -2
  25. package/dist/{chunk-6BSYMFYS.js → chunk-ZK66B5EY.js} +2 -2
  26. package/dist/{chunk-BITB3T5Z.js → chunk-ZPJSQPQH.js} +2 -2
  27. package/dist/consent/index.d.cts +2 -2
  28. package/dist/consent/index.d.ts +2 -2
  29. package/dist/consent/index.js +1 -0
  30. package/dist/consent/index.js.map +1 -1
  31. package/dist/crdt/index.js +1 -0
  32. package/dist/crdt/index.js.map +1 -1
  33. package/dist/{crypto-G6XU2V2Y.js → crypto-OSIV2IIW.js} +2 -1
  34. package/dist/{decrypt-partition-DDSArPPW.d.cts → decrypt-partition-C0iDpbSd.d.cts} +1 -1
  35. package/dist/{decrypt-partition-5Gt0EcTc.d.ts → decrypt-partition-Mhjh6nnG.d.ts} +1 -1
  36. package/dist/{delegation-ZEH4LKEM.js → delegation-BQTRJATI.js} +2 -1
  37. package/dist/derivations/index.d.cts +3 -3
  38. package/dist/derivations/index.d.ts +3 -3
  39. package/dist/derivations/index.js +1 -0
  40. package/dist/{dev-unlock-CIkHrcRm.d.cts → dev-unlock-0Z6yxfS7.d.cts} +1 -1
  41. package/dist/{dev-unlock-BF9IhLPn.d.ts → dev-unlock-DJ3IhgY9.d.ts} +1 -1
  42. package/dist/{executor-DWVP4BSJ.js → executor-KYSKFJ2R.js} +2 -1
  43. package/dist/{executor-HO3SIRSF.js → executor-M7W3NEKR.js} +2 -1
  44. package/dist/{executor-HB2YMIYC.js → executor-VDTDGWO6.js} +2 -1
  45. package/dist/{fanout-sidecar-BMT7I6FI.js → fanout-sidecar-AZALISHB.js} +2 -1
  46. package/dist/{fanout-sidecar-BMT7I6FI.js.map → fanout-sidecar-AZALISHB.js.map} +1 -1
  47. package/dist/forget/index.js +1 -0
  48. package/dist/guards/index.d.cts +3 -3
  49. package/dist/guards/index.d.ts +3 -3
  50. package/dist/guards/index.js +1 -0
  51. package/dist/{hash-Jl0qarQx.d.ts → hash-DLwkYf1d.d.ts} +1 -1
  52. package/dist/{hash-DfhndFcd.d.cts → hash-Db8ncXGr.d.cts} +1 -1
  53. package/dist/history/index.d.cts +3 -3
  54. package/dist/history/index.d.ts +3 -3
  55. package/dist/history/index.js +1 -0
  56. package/dist/history/index.js.map +1 -1
  57. package/dist/i18n/index.cjs +15 -2
  58. package/dist/i18n/index.cjs.map +1 -1
  59. package/dist/i18n/index.d.cts +2 -2
  60. package/dist/i18n/index.d.ts +2 -2
  61. package/dist/i18n/index.js +2 -1
  62. package/dist/i18n/index.js.map +1 -1
  63. package/dist/{index-DcxTv3zx.d.ts → index-CMRIx_zx.d.ts} +1 -1
  64. package/dist/{index-DPG2nFmT.d.cts → index-xJEPkvMb.d.cts} +1 -1
  65. package/dist/index.cjs +16956 -1011
  66. package/dist/index.cjs.map +1 -1
  67. package/dist/index.d.cts +19 -16
  68. package/dist/index.d.ts +19 -16
  69. package/dist/index.js +8 -7
  70. package/dist/index.js.map +1 -1
  71. package/dist/indexing/index.js +1 -0
  72. package/dist/indexing/index.js.map +1 -1
  73. package/dist/{issue-FZRTVGRE.js → issue-DPHRF2TI.js} +2 -1
  74. package/dist/kernel/index.cjs.map +1 -1
  75. package/dist/kernel/index.d.cts +2 -2
  76. package/dist/kernel/index.d.ts +2 -2
  77. package/dist/kernel/index.js +1 -0
  78. package/dist/{ledger-PMTR2Q62.js → ledger-CI7GSMLB.js} +2 -1
  79. package/dist/materialized-views/index.d.cts +3 -3
  80. package/dist/materialized-views/index.d.ts +3 -3
  81. package/dist/materialized-views/index.js +2 -1
  82. package/dist/{mime-magic-BOI-I5dq.d.ts → mime-magic-CacDBwYp.d.ts} +1 -1
  83. package/dist/{mime-magic-C0TM7FtF.d.cts → mime-magic-sdMzsfVK.d.cts} +1 -1
  84. package/dist/{noydb-Y3ZLZNXA.js → noydb-5MIBD77B.js} +6 -5
  85. package/dist/overlay-views/index.d.cts +3 -3
  86. package/dist/overlay-views/index.d.ts +3 -3
  87. package/dist/overlay-views/index.js +1 -0
  88. package/dist/periods/index.d.cts +2 -2
  89. package/dist/periods/index.d.ts +2 -2
  90. package/dist/periods/index.js +2 -1
  91. package/dist/{public-envelope-S2S2VR3F.js → public-envelope-MFMBFJLZ.js} +2 -1
  92. package/dist/query/index.js +1 -0
  93. package/dist/{read-only-facade-EX6WZZBP.js → read-only-facade-3OQRZ3VS.js} +2 -1
  94. package/dist/{registry-DKEXOJVO.js → registry-IX5WKK4F.js} +2 -1
  95. package/dist/{registry-53A55ZZE.js → registry-LMHO5265.js} +2 -1
  96. package/dist/{registry-IEU6ATO7.js → registry-TXCKWH26.js} +2 -1
  97. package/dist/{registry-FKL4SLU4.js → registry-VFEDQSYV.js} +2 -1
  98. package/dist/{revoke-AOCAVR56.js → revoke-5PUOZPJJ.js} +2 -1
  99. package/dist/sealed-record/index.js +1 -0
  100. package/dist/sealed-record/index.js.map +1 -1
  101. package/dist/session/index.d.cts +3 -3
  102. package/dist/session/index.d.ts +3 -3
  103. package/dist/session/index.js +1 -0
  104. package/dist/session/index.js.map +1 -1
  105. package/dist/shadow/index.d.cts +2 -2
  106. package/dist/shadow/index.d.ts +2 -2
  107. package/dist/shadow/index.js +1 -0
  108. package/dist/shadow/index.js.map +1 -1
  109. package/dist/{signer-JMK6W2Y6.js → signer-UB5TQOZ6.js} +2 -1
  110. package/dist/snapshots/index.d.cts +2 -2
  111. package/dist/snapshots/index.d.ts +2 -2
  112. package/dist/snapshots/index.js +1 -0
  113. package/dist/snapshots/index.js.map +1 -1
  114. package/dist/{stale-IIIGOHBW.js → stale-J3TUF5C5.js} +3 -2
  115. package/dist/store/index.d.cts +2 -2
  116. package/dist/store/index.d.ts +2 -2
  117. package/dist/store/index.js +1 -0
  118. package/dist/sync/index.d.cts +1 -1
  119. package/dist/sync/index.d.ts +1 -1
  120. package/dist/sync/index.js +1 -0
  121. package/dist/sync/index.js.map +1 -1
  122. package/dist/team/index.d.cts +2 -2
  123. package/dist/team/index.d.ts +2 -2
  124. package/dist/team/index.js +1 -0
  125. package/dist/{transition-guard-BixCDmBI.d.ts → transition-guard-J04-jime.d.ts} +1 -1
  126. package/dist/{transition-guard-DnAlUf9R.d.cts → transition-guard-tWZIsaXe.d.cts} +1 -1
  127. package/dist/tx/index.d.cts +2 -2
  128. package/dist/tx/index.d.ts +2 -2
  129. package/dist/tx/index.js +3 -2
  130. package/dist/tx/index.js.map +1 -1
  131. package/dist/{types-Ba1vQ3AY.d.cts → types-CdVfiQgt.d.cts} +444 -161
  132. package/dist/{types-CUmZYJwN.d.ts → types-DHn9lEP0.d.ts} +444 -161
  133. package/dist/{ulid-COREQ2RQ.js → ulid-KEPZMD2N.js} +2 -1
  134. package/dist/ulid-KEPZMD2N.js.map +1 -0
  135. package/dist/util/index.js +1 -0
  136. package/dist/util/index.js.map +1 -1
  137. package/dist/{with-materialized-view-Bjx6VYPc.d.ts → with-materialized-view-DNfzC5lH.d.ts} +1 -1
  138. package/dist/{with-materialized-view-Z_aHLln6.d.cts → with-materialized-view-DfgPcvi9.d.cts} +1 -1
  139. package/dist/{with-overlayed-view-pTOFgHRq.d.cts → with-overlayed-view-Cvfkx1lg.d.cts} +1 -1
  140. package/dist/{with-overlayed-view-B8PkL179.d.ts → with-overlayed-view-qk3lbhOd.d.ts} +1 -1
  141. package/dist/{with-rollup-Cd3t01Mz.d.ts → with-rollup-Dd3_ZG4b.d.ts} +1 -1
  142. package/dist/{with-rollup-D9qQoffP.d.cts → with-rollup-nIxo7h9z.d.cts} +1 -1
  143. package/dist/zod-HAJM7LMS.js +14763 -0
  144. package/dist/zod-HAJM7LMS.js.map +1 -0
  145. package/package.json +4 -4
  146. package/dist/chunk-REHF3HSJ.js.map +0 -1
  147. package/dist/chunk-ZDW22N3E.js.map +0 -1
  148. /package/dist/{chunk-DJO4OYCJ.js.map → chunk-33EQCZXE.js.map} +0 -0
  149. /package/dist/{chunk-553CK4E2.js.map → chunk-OCYFFBZS.js.map} +0 -0
  150. /package/dist/{crypto-G6XU2V2Y.js.map → chunk-PZ5AY32C.js.map} +0 -0
  151. /package/dist/{chunk-45QJXLLS.js.map → chunk-Y6YUWZTS.js.map} +0 -0
  152. /package/dist/{chunk-6BSYMFYS.js.map → chunk-ZK66B5EY.js.map} +0 -0
  153. /package/dist/{chunk-BITB3T5Z.js.map → chunk-ZPJSQPQH.js.map} +0 -0
  154. /package/dist/{delegation-ZEH4LKEM.js.map → crypto-OSIV2IIW.js.map} +0 -0
  155. /package/dist/{executor-DWVP4BSJ.js.map → delegation-BQTRJATI.js.map} +0 -0
  156. /package/dist/{executor-HB2YMIYC.js.map → executor-KYSKFJ2R.js.map} +0 -0
  157. /package/dist/{executor-HO3SIRSF.js.map → executor-M7W3NEKR.js.map} +0 -0
  158. /package/dist/{issue-FZRTVGRE.js.map → executor-VDTDGWO6.js.map} +0 -0
  159. /package/dist/{ledger-PMTR2Q62.js.map → issue-DPHRF2TI.js.map} +0 -0
  160. /package/dist/{noydb-Y3ZLZNXA.js.map → ledger-CI7GSMLB.js.map} +0 -0
  161. /package/dist/{public-envelope-S2S2VR3F.js.map → noydb-5MIBD77B.js.map} +0 -0
  162. /package/dist/{read-only-facade-EX6WZZBP.js.map → public-envelope-MFMBFJLZ.js.map} +0 -0
  163. /package/dist/{registry-53A55ZZE.js.map → read-only-facade-3OQRZ3VS.js.map} +0 -0
  164. /package/dist/{registry-DKEXOJVO.js.map → registry-IX5WKK4F.js.map} +0 -0
  165. /package/dist/{registry-FKL4SLU4.js.map → registry-LMHO5265.js.map} +0 -0
  166. /package/dist/{registry-IEU6ATO7.js.map → registry-TXCKWH26.js.map} +0 -0
  167. /package/dist/{revoke-AOCAVR56.js.map → registry-VFEDQSYV.js.map} +0 -0
  168. /package/dist/{signer-JMK6W2Y6.js.map → revoke-5PUOZPJJ.js.map} +0 -0
  169. /package/dist/{stale-IIIGOHBW.js.map → signer-UB5TQOZ6.js.map} +0 -0
  170. /package/dist/{ulid-COREQ2RQ.js.map → stale-J3TUF5C5.js.map} +0 -0
@@ -20,6 +20,7 @@ import {
20
20
  import "../chunk-KJ3K5VZM.js";
21
21
  import "../chunk-QXWJQ7UU.js";
22
22
  import "../chunk-JZ5DS4DP.js";
23
+ import "../chunk-PZ5AY32C.js";
23
24
 
24
25
  // src/aggregate/active.ts
25
26
  function withAggregate() {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/aggregate/active.ts"],"sourcesContent":["/**\n * Active aggregate strategy factory. Calling `withAggregate()` returns\n * an `AggregateStrategy` whose methods construct real `Aggregation` /\n * `GroupedQuery` instances and run the streaming reducer protocol.\n *\n * This module is only reachable through the `@noy-db/hub/aggregate`\n * subpath — a consumer that never imports the subpath ships none of\n * this (ESM tree-shaking + hub's `\"sideEffects\": false`).\n */\n\nimport { Aggregation, reduceRecords } from './aggregation.js'\nimport type { AggregateSpec, AggregateResult } from './aggregation.js'\nimport { GroupedQuery, GroupedQueryN } from './groupby.js'\nimport type { AggregateStrategy } from './strategy.js'\n\n/**\n * Build the default aggregate strategy. Pass into\n * `createNoydb({ aggregateStrategy: withAggregate() })` to light up\n * `.aggregate()` and `.groupBy()` on `Query` and `ScanBuilder`.\n *\n * @example\n * ```ts\n * import { createNoydb } from '@noy-db/hub'\n * import { withAggregate, sum, count } from '@noy-db/hub/aggregate'\n *\n * const db = await createNoydb({\n * store, user, secret,\n * aggregateStrategy: withAggregate(),\n * })\n *\n * const totals = invoices.query()\n * .where('status', '==', 'paid')\n * .groupBy('clientId')\n * .aggregate({ amount: sum('amount'), n: count() })\n * .run()\n * ```\n */\nexport function withAggregate(): AggregateStrategy {\n return {\n aggregate(executeRecords, spec, upstreams) {\n return new Aggregation(executeRecords, spec as unknown as AggregateSpec, upstreams) as unknown as Aggregation<AggregateResult<typeof spec>>\n },\n groupBy(executeRecords, field, upstreams, dictLabelResolver, moneyFields) {\n return new GroupedQuery(executeRecords, field, upstreams, dictLabelResolver, moneyFields)\n },\n groupByN(executeRecords, fields, upstreams, moneyFields) {\n return new GroupedQueryN(executeRecords, fields, upstreams, undefined, moneyFields)\n },\n async scanAggregate(iter, spec) {\n const collected: unknown[] = []\n for await (const record of iter) collected.push(record)\n return reduceRecords(collected, spec as unknown as AggregateSpec) as unknown as AggregateResult<typeof spec>\n },\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAqCO,SAAS,gBAAmC;AACjD,SAAO;AAAA,IACL,UAAU,gBAAgB,MAAM,WAAW;AACzC,aAAO,IAAI,YAAY,gBAAgB,MAAkC,SAAS;AAAA,IACpF;AAAA,IACA,QAAQ,gBAAgB,OAAO,WAAW,mBAAmB,aAAa;AACxE,aAAO,IAAI,aAAa,gBAAgB,OAAO,WAAW,mBAAmB,WAAW;AAAA,IAC1F;AAAA,IACA,SAAS,gBAAgB,QAAQ,WAAW,aAAa;AACvD,aAAO,IAAI,cAAc,gBAAgB,QAAQ,WAAW,QAAW,WAAW;AAAA,IACpF;AAAA,IACA,MAAM,cAAc,MAAM,MAAM;AAC9B,YAAM,YAAuB,CAAC;AAC9B,uBAAiB,UAAU,KAAM,WAAU,KAAK,MAAM;AACtD,aAAO,cAAc,WAAW,IAAgC;AAAA,IAClE;AAAA,EACF;AACF;","names":[]}
1
+ {"version":3,"sources":["../../src/aggregate/active.ts"],"sourcesContent":["/**\n * Active aggregate strategy factory. Calling `withAggregate()` returns\n * an `AggregateStrategy` whose methods construct real `Aggregation` /\n * `GroupedQuery` instances and run the streaming reducer protocol.\n *\n * This module is only reachable through the `@noy-db/hub/aggregate`\n * subpath — a consumer that never imports the subpath ships none of\n * this (ESM tree-shaking + hub's `\"sideEffects\": false`).\n */\n\nimport { Aggregation, reduceRecords } from './aggregation.js'\nimport type { AggregateSpec, AggregateResult } from './aggregation.js'\nimport { GroupedQuery, GroupedQueryN } from './groupby.js'\nimport type { AggregateStrategy } from './strategy.js'\n\n/**\n * Build the default aggregate strategy. Pass into\n * `createNoydb({ aggregateStrategy: withAggregate() })` to light up\n * `.aggregate()` and `.groupBy()` on `Query` and `ScanBuilder`.\n *\n * @example\n * ```ts\n * import { createNoydb } from '@noy-db/hub'\n * import { withAggregate, sum, count } from '@noy-db/hub/aggregate'\n *\n * const db = await createNoydb({\n * store, user, secret,\n * aggregateStrategy: withAggregate(),\n * })\n *\n * const totals = invoices.query()\n * .where('status', '==', 'paid')\n * .groupBy('clientId')\n * .aggregate({ amount: sum('amount'), n: count() })\n * .run()\n * ```\n */\nexport function withAggregate(): AggregateStrategy {\n return {\n aggregate(executeRecords, spec, upstreams) {\n return new Aggregation(executeRecords, spec as unknown as AggregateSpec, upstreams) as unknown as Aggregation<AggregateResult<typeof spec>>\n },\n groupBy(executeRecords, field, upstreams, dictLabelResolver, moneyFields) {\n return new GroupedQuery(executeRecords, field, upstreams, dictLabelResolver, moneyFields)\n },\n groupByN(executeRecords, fields, upstreams, moneyFields) {\n return new GroupedQueryN(executeRecords, fields, upstreams, undefined, moneyFields)\n },\n async scanAggregate(iter, spec) {\n const collected: unknown[] = []\n for await (const record of iter) collected.push(record)\n return reduceRecords(collected, spec as unknown as AggregateSpec) as unknown as AggregateResult<typeof spec>\n },\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAqCO,SAAS,gBAAmC;AACjD,SAAO;AAAA,IACL,UAAU,gBAAgB,MAAM,WAAW;AACzC,aAAO,IAAI,YAAY,gBAAgB,MAAkC,SAAS;AAAA,IACpF;AAAA,IACA,QAAQ,gBAAgB,OAAO,WAAW,mBAAmB,aAAa;AACxE,aAAO,IAAI,aAAa,gBAAgB,OAAO,WAAW,mBAAmB,WAAW;AAAA,IAC1F;AAAA,IACA,SAAS,gBAAgB,QAAQ,WAAW,aAAa;AACvD,aAAO,IAAI,cAAc,gBAAgB,QAAQ,WAAW,QAAW,WAAW;AAAA,IACpF;AAAA,IACA,MAAM,cAAc,MAAM,MAAM;AAC9B,YAAM,YAAuB,CAAC;AAC9B,uBAAiB,UAAU,KAAM,WAAU,KAAK,MAAM;AACtD,aAAO,cAAc,WAAW,IAAgC;AAAA,IAClE;AAAA,EACF;AACF;","names":[]}
@@ -1,4 +1,4 @@
1
- import { aW as NoydbStore } from '../types-Ba1vQ3AY.cjs';
1
+ import { aW as NoydbStore } from '../types-CdVfiQgt.cjs';
2
2
  import { AttestationFieldSchema, QrPayload, RevocationList } from '@noy-db/attestation';
3
3
  export { AttestationFieldSchema, QrPayload, RevocationList, VerifyInput, VerifyResult, decodeQr, isRevoked, signRevocationList, verifyAttestation, verifyRevocationList } from '@noy-db/attestation';
4
4
  export { s as AttestationError } from '../errors-BAWO5Z5a.cjs';
@@ -1,4 +1,4 @@
1
- import { aW as NoydbStore } from '../types-CUmZYJwN.js';
1
+ import { aW as NoydbStore } from '../types-DHn9lEP0.js';
2
2
  import { AttestationFieldSchema, QrPayload, RevocationList } from '@noy-db/attestation';
3
3
  export { AttestationFieldSchema, QrPayload, RevocationList, VerifyInput, VerifyResult, decodeQr, isRevoked, signRevocationList, verifyAttestation, verifyRevocationList } from '@noy-db/attestation';
4
4
  export { s as AttestationError } from '../errors-BAWO5Z5a.js';
@@ -1,12 +1,12 @@
1
- import {
2
- issueAttestationCore
3
- } from "../chunk-2QDWRK3B.js";
4
1
  import {
5
2
  getRevokedDocIdsCore,
6
3
  publishRevocationListCore,
7
4
  revokeDocCore,
8
5
  unrevokeDocCore
9
6
  } from "../chunk-JOJPBZSZ.js";
7
+ import {
8
+ issueAttestationCore
9
+ } from "../chunk-2QDWRK3B.js";
10
10
  import {
11
11
  ATTESTATIONS_COLLECTION
12
12
  } from "../chunk-5PTX7PKD.js";
@@ -16,6 +16,7 @@ import "../chunk-E2MDPPOC.js";
16
16
  import {
17
17
  AttestationError
18
18
  } from "../chunk-JZ5DS4DP.js";
19
+ import "../chunk-PZ5AY32C.js";
19
20
 
20
21
  // src/attestation/index.ts
21
22
  import { verifyAttestation, decodeQr, verifyRevocationList, isRevoked, signRevocationList } from "@noy-db/attestation";
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/attestation/index.ts"],"sourcesContent":["/**\n * @category capability\n * Document attestation — issue side. Mint a signed, per-field commitment\n * for a record and emit a QR credential verifiable offline via\n * `@noy-db/attestation`. See docs/superpowers/specs/2026-05-29-attestation-core-and-issue-design.md.\n */\nexport { issueAttestationCore } from './issue.js'\nexport type { IssueContext, IssueArgs, IssueResult } from './issue.js'\nexport { ATTESTATIONS_COLLECTION } from './signer.js'\nexport { revokeDocCore, unrevokeDocCore, getRevokedDocIdsCore, publishRevocationListCore } from './revoke.js'\nexport type { RevokeContext } from './revoke.js'\nexport { AttestationError } from '../errors.js'\n// Re-export the pure verifier surface so consumers can verify from one import:\nexport { verifyAttestation, decodeQr, verifyRevocationList, isRevoked, signRevocationList, type QrPayload, type AttestationFieldSchema, type VerifyResult, type VerifyInput, type RevocationList } from '@noy-db/attestation'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAaA,SAAS,mBAAmB,UAAU,sBAAsB,WAAW,0BAAiI;","names":[]}
1
+ {"version":3,"sources":["../../src/attestation/index.ts"],"sourcesContent":["/**\n * @category capability\n * Document attestation — issue side. Mint a signed, per-field commitment\n * for a record and emit a QR credential verifiable offline via\n * `@noy-db/attestation`. See docs/superpowers/specs/2026-05-29-attestation-core-and-issue-design.md.\n */\nexport { issueAttestationCore } from './issue.js'\nexport type { IssueContext, IssueArgs, IssueResult } from './issue.js'\nexport { ATTESTATIONS_COLLECTION } from './signer.js'\nexport { revokeDocCore, unrevokeDocCore, getRevokedDocIdsCore, publishRevocationListCore } from './revoke.js'\nexport type { RevokeContext } from './revoke.js'\nexport { AttestationError } from '../errors.js'\n// Re-export the pure verifier surface so consumers can verify from one import:\nexport { verifyAttestation, decodeQr, verifyRevocationList, isRevoked, signRevocationList, type QrPayload, type AttestationFieldSchema, type VerifyResult, type VerifyInput, type RevocationList } from '@noy-db/attestation'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAaA,SAAS,mBAAmB,UAAU,sBAAsB,WAAW,0BAAiI;","names":[]}
@@ -1,6 +1,6 @@
1
- import { B as BlobStrategy } from '../types-Ba1vQ3AY.cjs';
2
- export { o as BLOB_CHUNKS_COLLECTION, p as BLOB_COLLECTION, q as BLOB_EVICTION_AUDIT_COLLECTION, r as BLOB_INDEX_COLLECTION, t as BLOB_SLOTS_PREFIX, u as BLOB_VERSIONS_PREFIX, w as BlobEvictionEntry, x as BlobFieldPolicy, y as BlobFieldsConfig, z as BlobObject, A as BlobPutOptions, C as BlobResponseOptions, E as BlobSet, F as BlobStrategyOpenArgs, G as CompactRunOptions, H as CompactionContext, J as CompactionResult, K as DEFAULT_CHUNK_SIZE, L as EXPORT_AUDIT_COLLECTION, M as ExportBlobsAbortedError, N as ExportBlobsAuditEntry, O as ExportBlobsHandle, Q as ExportBlobsOptions, R as ExportedBlob, T as ObjectListEntry, U as ObjectMeta, V as ObjectProjection, W as ObjectUrlOptions, X as PutObjectOptions, Y as PutUrlOptions, Z as SlotInfo, _ as SlotRecord, $ as VersionRecord, a0 as createExportBlobsHandle, a1 as memoryObjectProjection, a2 as runCompaction } from '../types-Ba1vQ3AY.cjs';
3
- export { I as ImportExternalOptions, a as ImportExternalResult, b as ImportableCollection, d as detectMagic, c as detectMimeType, i as importExternalObjects, e as isPreCompressed } from '../mime-magic-C0TM7FtF.cjs';
1
+ import { B as BlobStrategy } from '../types-CdVfiQgt.cjs';
2
+ export { o as BLOB_CHUNKS_COLLECTION, p as BLOB_COLLECTION, q as BLOB_EVICTION_AUDIT_COLLECTION, r as BLOB_INDEX_COLLECTION, t as BLOB_SLOTS_PREFIX, u as BLOB_VERSIONS_PREFIX, w as BlobEvictionEntry, x as BlobFieldPolicy, y as BlobFieldsConfig, z as BlobObject, A as BlobPutOptions, C as BlobResponseOptions, E as BlobSet, F as BlobStrategyOpenArgs, G as CompactRunOptions, H as CompactionContext, J as CompactionResult, K as DEFAULT_CHUNK_SIZE, L as EXPORT_AUDIT_COLLECTION, M as ExportBlobsAbortedError, N as ExportBlobsAuditEntry, O as ExportBlobsHandle, Q as ExportBlobsOptions, R as ExportedBlob, T as ObjectListEntry, U as ObjectMeta, V as ObjectProjection, W as ObjectUrlOptions, X as PutObjectOptions, Y as PutUrlOptions, Z as SlotInfo, _ as SlotRecord, $ as VersionRecord, a0 as createExportBlobsHandle, a1 as memoryObjectProjection, a2 as runCompaction } from '../types-CdVfiQgt.cjs';
3
+ export { I as ImportExternalOptions, a as ImportExternalResult, b as ImportableCollection, d as detectMagic, c as detectMimeType, i as importExternalObjects, e as isPreCompressed } from '../mime-magic-sdMzsfVK.cjs';
4
4
  import '../lazy-builder-eYZzLEL1.cjs';
5
5
  import '../predicate-BmhBSPCH.cjs';
6
6
  import '../strategy-mJExw4LQ.cjs';
@@ -1,6 +1,6 @@
1
- import { B as BlobStrategy } from '../types-CUmZYJwN.js';
2
- export { o as BLOB_CHUNKS_COLLECTION, p as BLOB_COLLECTION, q as BLOB_EVICTION_AUDIT_COLLECTION, r as BLOB_INDEX_COLLECTION, t as BLOB_SLOTS_PREFIX, u as BLOB_VERSIONS_PREFIX, w as BlobEvictionEntry, x as BlobFieldPolicy, y as BlobFieldsConfig, z as BlobObject, A as BlobPutOptions, C as BlobResponseOptions, E as BlobSet, F as BlobStrategyOpenArgs, G as CompactRunOptions, H as CompactionContext, J as CompactionResult, K as DEFAULT_CHUNK_SIZE, L as EXPORT_AUDIT_COLLECTION, M as ExportBlobsAbortedError, N as ExportBlobsAuditEntry, O as ExportBlobsHandle, Q as ExportBlobsOptions, R as ExportedBlob, T as ObjectListEntry, U as ObjectMeta, V as ObjectProjection, W as ObjectUrlOptions, X as PutObjectOptions, Y as PutUrlOptions, Z as SlotInfo, _ as SlotRecord, $ as VersionRecord, a0 as createExportBlobsHandle, a1 as memoryObjectProjection, a2 as runCompaction } from '../types-CUmZYJwN.js';
3
- export { I as ImportExternalOptions, a as ImportExternalResult, b as ImportableCollection, d as detectMagic, c as detectMimeType, i as importExternalObjects, e as isPreCompressed } from '../mime-magic-BOI-I5dq.js';
1
+ import { B as BlobStrategy } from '../types-DHn9lEP0.js';
2
+ export { o as BLOB_CHUNKS_COLLECTION, p as BLOB_COLLECTION, q as BLOB_EVICTION_AUDIT_COLLECTION, r as BLOB_INDEX_COLLECTION, t as BLOB_SLOTS_PREFIX, u as BLOB_VERSIONS_PREFIX, w as BlobEvictionEntry, x as BlobFieldPolicy, y as BlobFieldsConfig, z as BlobObject, A as BlobPutOptions, C as BlobResponseOptions, E as BlobSet, F as BlobStrategyOpenArgs, G as CompactRunOptions, H as CompactionContext, J as CompactionResult, K as DEFAULT_CHUNK_SIZE, L as EXPORT_AUDIT_COLLECTION, M as ExportBlobsAbortedError, N as ExportBlobsAuditEntry, O as ExportBlobsHandle, Q as ExportBlobsOptions, R as ExportedBlob, T as ObjectListEntry, U as ObjectMeta, V as ObjectProjection, W as ObjectUrlOptions, X as PutObjectOptions, Y as PutUrlOptions, Z as SlotInfo, _ as SlotRecord, $ as VersionRecord, a0 as createExportBlobsHandle, a1 as memoryObjectProjection, a2 as runCompaction } from '../types-DHn9lEP0.js';
3
+ export { I as ImportExternalOptions, a as ImportExternalResult, b as ImportableCollection, d as detectMagic, c as detectMimeType, i as importExternalObjects, e as isPreCompressed } from '../mime-magic-CacDBwYp.js';
4
4
  import '../lazy-builder-ChSqcF5t.js';
5
5
  import '../predicate-BmhBSPCH.js';
6
6
  import '../strategy-8QGs5KQE.js';
@@ -11,7 +11,7 @@ import {
11
11
  importExternalObjects,
12
12
  isPreCompressed,
13
13
  memoryObjectProjection
14
- } from "../chunk-6BSYMFYS.js";
14
+ } from "../chunk-ZK66B5EY.js";
15
15
  import {
16
16
  BLOB_EVICTION_AUDIT_COLLECTION,
17
17
  EXPORT_AUDIT_COLLECTION,
@@ -23,6 +23,7 @@ import "../chunk-LXKBG52H.js";
23
23
  import "../chunk-A7DNZVAV.js";
24
24
  import "../chunk-E2MDPPOC.js";
25
25
  import "../chunk-JZ5DS4DP.js";
26
+ import "../chunk-PZ5AY32C.js";
26
27
 
27
28
  // src/blobs/active.ts
28
29
  function withBlobs() {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/blobs/active.ts"],"sourcesContent":["/**\n * Active blob strategy factory. Calling `blobs()` returns a\n * `BlobStrategy` whose `openSlot` constructs a real `BlobSet` bound\n * to the caller's record. The returned strategy is passed into\n * `createNoydb({ blobStrategy: blobs() })` to light up the\n * `collection.blob(id)` path.\n *\n * This module is only reachable through the `@noy-db/hub/blobs`\n * subpath — a consumer that never imports the subpath ships none of\n * this (ESM tree-shaking + hub's `\"sideEffects\": false`).\n */\n\nimport { BlobSet } from './blob-set.js'\nimport type { BlobStrategy } from './strategy.js'\n\n/**\n * Build a default `BlobStrategy` ready to pass into `createNoydb`.\n *\n * Named `withBlobs` (plugin-pattern canonical) rather than `blobs` to\n * avoid shadowing the very common local idiom\n * `const blobs = invoices.blob(id)` in user code.\n *\n * @example\n * ```ts\n * import { createNoydb } from '@noy-db/hub'\n * import { withBlobs } from '@noy-db/hub/blobs'\n *\n * const db = await createNoydb({\n * store, user, secret,\n * blobStrategy: withBlobs(),\n * })\n *\n * // Now live — delegates to BlobSet.\n * await db.vault('acme').collection('invoices').blob('inv-1').put('receipt.pdf', bytes)\n * ```\n */\nexport function withBlobs(): BlobStrategy {\n return {\n openSlot(args) {\n return new BlobSet(args)\n },\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCO,SAAS,YAA0B;AACxC,SAAO;AAAA,IACL,SAAS,MAAM;AACb,aAAO,IAAI,QAAQ,IAAI;AAAA,IACzB;AAAA,EACF;AACF;","names":[]}
1
+ {"version":3,"sources":["../../src/blobs/active.ts"],"sourcesContent":["/**\n * Active blob strategy factory. Calling `blobs()` returns a\n * `BlobStrategy` whose `openSlot` constructs a real `BlobSet` bound\n * to the caller's record. The returned strategy is passed into\n * `createNoydb({ blobStrategy: blobs() })` to light up the\n * `collection.blob(id)` path.\n *\n * This module is only reachable through the `@noy-db/hub/blobs`\n * subpath — a consumer that never imports the subpath ships none of\n * this (ESM tree-shaking + hub's `\"sideEffects\": false`).\n */\n\nimport { BlobSet } from './blob-set.js'\nimport type { BlobStrategy } from './strategy.js'\n\n/**\n * Build a default `BlobStrategy` ready to pass into `createNoydb`.\n *\n * Named `withBlobs` (plugin-pattern canonical) rather than `blobs` to\n * avoid shadowing the very common local idiom\n * `const blobs = invoices.blob(id)` in user code.\n *\n * @example\n * ```ts\n * import { createNoydb } from '@noy-db/hub'\n * import { withBlobs } from '@noy-db/hub/blobs'\n *\n * const db = await createNoydb({\n * store, user, secret,\n * blobStrategy: withBlobs(),\n * })\n *\n * // Now live — delegates to BlobSet.\n * await db.vault('acme').collection('invoices').blob('inv-1').put('receipt.pdf', bytes)\n * ```\n */\nexport function withBlobs(): BlobStrategy {\n return {\n openSlot(args) {\n return new BlobSet(args)\n },\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCO,SAAS,YAA0B;AACxC,SAAO;AAAA,IACL,SAAS,MAAM;AACb,aAAO,IAAI,QAAQ,IAAI;AAAA,IACzB;AAAA,EACF;AACF;","names":[]}