@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.
- package/dist/aggregate/index.js +1 -0
- package/dist/aggregate/index.js.map +1 -1
- package/dist/attestation/index.d.cts +1 -1
- package/dist/attestation/index.d.ts +1 -1
- package/dist/attestation/index.js +4 -3
- package/dist/attestation/index.js.map +1 -1
- package/dist/blobs/index.d.cts +3 -3
- package/dist/blobs/index.d.ts +3 -3
- package/dist/blobs/index.js +2 -1
- package/dist/blobs/index.js.map +1 -1
- package/dist/bundle/index.cjs +16825 -893
- package/dist/bundle/index.cjs.map +1 -1
- package/dist/bundle/index.d.cts +3 -3
- package/dist/bundle/index.d.ts +3 -3
- package/dist/bundle/index.js +2 -1
- package/dist/bundle/index.js.map +1 -1
- package/dist/{chunk-DJO4OYCJ.js → chunk-33EQCZXE.js} +2 -2
- package/dist/{chunk-ZDW22N3E.js → chunk-BVKLJBJJ.js} +694 -191
- package/dist/chunk-BVKLJBJJ.js.map +1 -0
- package/dist/{chunk-REHF3HSJ.js → chunk-K4JID2ZE.js} +16 -3
- package/dist/chunk-K4JID2ZE.js.map +1 -0
- package/dist/{chunk-553CK4E2.js → chunk-OCYFFBZS.js} +2 -2
- package/dist/chunk-PZ5AY32C.js +10 -0
- package/dist/{chunk-45QJXLLS.js → chunk-Y6YUWZTS.js} +2 -2
- package/dist/{chunk-6BSYMFYS.js → chunk-ZK66B5EY.js} +2 -2
- package/dist/{chunk-BITB3T5Z.js → chunk-ZPJSQPQH.js} +2 -2
- package/dist/consent/index.d.cts +2 -2
- package/dist/consent/index.d.ts +2 -2
- package/dist/consent/index.js +1 -0
- package/dist/consent/index.js.map +1 -1
- package/dist/crdt/index.js +1 -0
- package/dist/crdt/index.js.map +1 -1
- package/dist/{crypto-G6XU2V2Y.js → crypto-OSIV2IIW.js} +2 -1
- package/dist/{decrypt-partition-DDSArPPW.d.cts → decrypt-partition-C0iDpbSd.d.cts} +1 -1
- package/dist/{decrypt-partition-5Gt0EcTc.d.ts → decrypt-partition-Mhjh6nnG.d.ts} +1 -1
- package/dist/{delegation-ZEH4LKEM.js → delegation-BQTRJATI.js} +2 -1
- package/dist/derivations/index.d.cts +3 -3
- package/dist/derivations/index.d.ts +3 -3
- package/dist/derivations/index.js +1 -0
- package/dist/{dev-unlock-CIkHrcRm.d.cts → dev-unlock-0Z6yxfS7.d.cts} +1 -1
- package/dist/{dev-unlock-BF9IhLPn.d.ts → dev-unlock-DJ3IhgY9.d.ts} +1 -1
- package/dist/{executor-DWVP4BSJ.js → executor-KYSKFJ2R.js} +2 -1
- package/dist/{executor-HO3SIRSF.js → executor-M7W3NEKR.js} +2 -1
- package/dist/{executor-HB2YMIYC.js → executor-VDTDGWO6.js} +2 -1
- package/dist/{fanout-sidecar-BMT7I6FI.js → fanout-sidecar-AZALISHB.js} +2 -1
- package/dist/{fanout-sidecar-BMT7I6FI.js.map → fanout-sidecar-AZALISHB.js.map} +1 -1
- package/dist/forget/index.js +1 -0
- package/dist/guards/index.d.cts +3 -3
- package/dist/guards/index.d.ts +3 -3
- package/dist/guards/index.js +1 -0
- package/dist/{hash-Jl0qarQx.d.ts → hash-DLwkYf1d.d.ts} +1 -1
- package/dist/{hash-DfhndFcd.d.cts → hash-Db8ncXGr.d.cts} +1 -1
- package/dist/history/index.d.cts +3 -3
- package/dist/history/index.d.ts +3 -3
- package/dist/history/index.js +1 -0
- package/dist/history/index.js.map +1 -1
- package/dist/i18n/index.cjs +15 -2
- package/dist/i18n/index.cjs.map +1 -1
- package/dist/i18n/index.d.cts +2 -2
- package/dist/i18n/index.d.ts +2 -2
- package/dist/i18n/index.js +2 -1
- package/dist/i18n/index.js.map +1 -1
- package/dist/{index-DcxTv3zx.d.ts → index-CMRIx_zx.d.ts} +1 -1
- package/dist/{index-DPG2nFmT.d.cts → index-xJEPkvMb.d.cts} +1 -1
- package/dist/index.cjs +16956 -1011
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -16
- package/dist/index.d.ts +19 -16
- package/dist/index.js +8 -7
- package/dist/index.js.map +1 -1
- package/dist/indexing/index.js +1 -0
- package/dist/indexing/index.js.map +1 -1
- package/dist/{issue-FZRTVGRE.js → issue-DPHRF2TI.js} +2 -1
- package/dist/kernel/index.cjs.map +1 -1
- package/dist/kernel/index.d.cts +2 -2
- package/dist/kernel/index.d.ts +2 -2
- package/dist/kernel/index.js +1 -0
- package/dist/{ledger-PMTR2Q62.js → ledger-CI7GSMLB.js} +2 -1
- package/dist/materialized-views/index.d.cts +3 -3
- package/dist/materialized-views/index.d.ts +3 -3
- package/dist/materialized-views/index.js +2 -1
- package/dist/{mime-magic-BOI-I5dq.d.ts → mime-magic-CacDBwYp.d.ts} +1 -1
- package/dist/{mime-magic-C0TM7FtF.d.cts → mime-magic-sdMzsfVK.d.cts} +1 -1
- package/dist/{noydb-Y3ZLZNXA.js → noydb-5MIBD77B.js} +6 -5
- package/dist/overlay-views/index.d.cts +3 -3
- package/dist/overlay-views/index.d.ts +3 -3
- package/dist/overlay-views/index.js +1 -0
- package/dist/periods/index.d.cts +2 -2
- package/dist/periods/index.d.ts +2 -2
- package/dist/periods/index.js +2 -1
- package/dist/{public-envelope-S2S2VR3F.js → public-envelope-MFMBFJLZ.js} +2 -1
- package/dist/query/index.js +1 -0
- package/dist/{read-only-facade-EX6WZZBP.js → read-only-facade-3OQRZ3VS.js} +2 -1
- package/dist/{registry-DKEXOJVO.js → registry-IX5WKK4F.js} +2 -1
- package/dist/{registry-53A55ZZE.js → registry-LMHO5265.js} +2 -1
- package/dist/{registry-IEU6ATO7.js → registry-TXCKWH26.js} +2 -1
- package/dist/{registry-FKL4SLU4.js → registry-VFEDQSYV.js} +2 -1
- package/dist/{revoke-AOCAVR56.js → revoke-5PUOZPJJ.js} +2 -1
- package/dist/sealed-record/index.js +1 -0
- package/dist/sealed-record/index.js.map +1 -1
- package/dist/session/index.d.cts +3 -3
- package/dist/session/index.d.ts +3 -3
- package/dist/session/index.js +1 -0
- package/dist/session/index.js.map +1 -1
- package/dist/shadow/index.d.cts +2 -2
- package/dist/shadow/index.d.ts +2 -2
- package/dist/shadow/index.js +1 -0
- package/dist/shadow/index.js.map +1 -1
- package/dist/{signer-JMK6W2Y6.js → signer-UB5TQOZ6.js} +2 -1
- package/dist/snapshots/index.d.cts +2 -2
- package/dist/snapshots/index.d.ts +2 -2
- package/dist/snapshots/index.js +1 -0
- package/dist/snapshots/index.js.map +1 -1
- package/dist/{stale-IIIGOHBW.js → stale-J3TUF5C5.js} +3 -2
- package/dist/store/index.d.cts +2 -2
- package/dist/store/index.d.ts +2 -2
- package/dist/store/index.js +1 -0
- package/dist/sync/index.d.cts +1 -1
- package/dist/sync/index.d.ts +1 -1
- package/dist/sync/index.js +1 -0
- package/dist/sync/index.js.map +1 -1
- package/dist/team/index.d.cts +2 -2
- package/dist/team/index.d.ts +2 -2
- package/dist/team/index.js +1 -0
- package/dist/{transition-guard-BixCDmBI.d.ts → transition-guard-J04-jime.d.ts} +1 -1
- package/dist/{transition-guard-DnAlUf9R.d.cts → transition-guard-tWZIsaXe.d.cts} +1 -1
- package/dist/tx/index.d.cts +2 -2
- package/dist/tx/index.d.ts +2 -2
- package/dist/tx/index.js +3 -2
- package/dist/tx/index.js.map +1 -1
- package/dist/{types-Ba1vQ3AY.d.cts → types-CdVfiQgt.d.cts} +444 -161
- package/dist/{types-CUmZYJwN.d.ts → types-DHn9lEP0.d.ts} +444 -161
- package/dist/{ulid-COREQ2RQ.js → ulid-KEPZMD2N.js} +2 -1
- package/dist/ulid-KEPZMD2N.js.map +1 -0
- package/dist/util/index.js +1 -0
- package/dist/util/index.js.map +1 -1
- package/dist/{with-materialized-view-Bjx6VYPc.d.ts → with-materialized-view-DNfzC5lH.d.ts} +1 -1
- package/dist/{with-materialized-view-Z_aHLln6.d.cts → with-materialized-view-DfgPcvi9.d.cts} +1 -1
- package/dist/{with-overlayed-view-pTOFgHRq.d.cts → with-overlayed-view-Cvfkx1lg.d.cts} +1 -1
- package/dist/{with-overlayed-view-B8PkL179.d.ts → with-overlayed-view-qk3lbhOd.d.ts} +1 -1
- package/dist/{with-rollup-Cd3t01Mz.d.ts → with-rollup-Dd3_ZG4b.d.ts} +1 -1
- package/dist/{with-rollup-D9qQoffP.d.cts → with-rollup-nIxo7h9z.d.cts} +1 -1
- package/dist/zod-HAJM7LMS.js +14763 -0
- package/dist/zod-HAJM7LMS.js.map +1 -0
- package/package.json +4 -4
- package/dist/chunk-REHF3HSJ.js.map +0 -1
- package/dist/chunk-ZDW22N3E.js.map +0 -1
- /package/dist/{chunk-DJO4OYCJ.js.map → chunk-33EQCZXE.js.map} +0 -0
- /package/dist/{chunk-553CK4E2.js.map → chunk-OCYFFBZS.js.map} +0 -0
- /package/dist/{crypto-G6XU2V2Y.js.map → chunk-PZ5AY32C.js.map} +0 -0
- /package/dist/{chunk-45QJXLLS.js.map → chunk-Y6YUWZTS.js.map} +0 -0
- /package/dist/{chunk-6BSYMFYS.js.map → chunk-ZK66B5EY.js.map} +0 -0
- /package/dist/{chunk-BITB3T5Z.js.map → chunk-ZPJSQPQH.js.map} +0 -0
- /package/dist/{delegation-ZEH4LKEM.js.map → crypto-OSIV2IIW.js.map} +0 -0
- /package/dist/{executor-DWVP4BSJ.js.map → delegation-BQTRJATI.js.map} +0 -0
- /package/dist/{executor-HB2YMIYC.js.map → executor-KYSKFJ2R.js.map} +0 -0
- /package/dist/{executor-HO3SIRSF.js.map → executor-M7W3NEKR.js.map} +0 -0
- /package/dist/{issue-FZRTVGRE.js.map → executor-VDTDGWO6.js.map} +0 -0
- /package/dist/{ledger-PMTR2Q62.js.map → issue-DPHRF2TI.js.map} +0 -0
- /package/dist/{noydb-Y3ZLZNXA.js.map → ledger-CI7GSMLB.js.map} +0 -0
- /package/dist/{public-envelope-S2S2VR3F.js.map → noydb-5MIBD77B.js.map} +0 -0
- /package/dist/{read-only-facade-EX6WZZBP.js.map → public-envelope-MFMBFJLZ.js.map} +0 -0
- /package/dist/{registry-53A55ZZE.js.map → read-only-facade-3OQRZ3VS.js.map} +0 -0
- /package/dist/{registry-DKEXOJVO.js.map → registry-IX5WKK4F.js.map} +0 -0
- /package/dist/{registry-FKL4SLU4.js.map → registry-LMHO5265.js.map} +0 -0
- /package/dist/{registry-IEU6ATO7.js.map → registry-TXCKWH26.js.map} +0 -0
- /package/dist/{revoke-AOCAVR56.js.map → registry-VFEDQSYV.js.map} +0 -0
- /package/dist/{signer-JMK6W2Y6.js.map → revoke-5PUOZPJJ.js.map} +0 -0
- /package/dist/{stale-IIIGOHBW.js.map → signer-UB5TQOZ6.js.map} +0 -0
- /package/dist/{ulid-COREQ2RQ.js.map → stale-J3TUF5C5.js.map} +0 -0
|
@@ -1902,6 +1902,64 @@ interface PeriodsStrategy {
|
|
|
1902
1902
|
appendPeriodLedgerEntry(ledger: LedgerStore | null, actor: string, envelope: EncryptedEnvelope, periodName: string): Promise<void>;
|
|
1903
1903
|
}
|
|
1904
1904
|
|
|
1905
|
+
/**
|
|
1906
|
+
* Consumer-neutral, data-relatable field descriptors — the canonical,
|
|
1907
|
+
* validator-agnostic authoring channel. Merged by `collection.describe()`.
|
|
1908
|
+
*
|
|
1909
|
+
* Descriptive, never prescriptive: label/semanticType/unit/sensitivity/
|
|
1910
|
+
* aggregate/aliases/displayFor only. Layout, styling, and active-locale
|
|
1911
|
+
* selection stay app-side.
|
|
1912
|
+
*
|
|
1913
|
+
* @module
|
|
1914
|
+
*/
|
|
1915
|
+
/** Known semantic types; the union is open — unknown strings pass through. */
|
|
1916
|
+
type SemanticType = 'date' | 'datetime' | 'email' | 'url' | 'currency' | 'percent' | 'country' | 'vat' | 'iban' | 'entity' | (string & {});
|
|
1917
|
+
interface FieldMeta {
|
|
1918
|
+
/** Human label for any displayable field. Required. */
|
|
1919
|
+
label: string;
|
|
1920
|
+
description?: string;
|
|
1921
|
+
semanticType?: SemanticType;
|
|
1922
|
+
/** Display unit, e.g. '€', '%', 'kg'. */
|
|
1923
|
+
unit?: string;
|
|
1924
|
+
/** Data classification driving redaction/inspector masking. */
|
|
1925
|
+
sensitivity?: 'public' | 'pii' | 'secret';
|
|
1926
|
+
/** Default aggregation for this field. */
|
|
1927
|
+
aggregate?: 'sum' | 'count' | 'distinct' | 'none';
|
|
1928
|
+
/** Canonical search synonyms (data vocabulary, not UI). */
|
|
1929
|
+
aliases?: readonly string[];
|
|
1930
|
+
/** Entity pairing: the field holding the human label for this id (buyerId → buyerName). */
|
|
1931
|
+
displayFor?: string;
|
|
1932
|
+
/**
|
|
1933
|
+
* Override the widget hint derived from semanticType/type.
|
|
1934
|
+
* e.g. 'textarea', 'date', 'money', 'select', 'checkbox', 'number', 'text'.
|
|
1935
|
+
* When absent, the widget is derived automatically by buildDescription.
|
|
1936
|
+
*/
|
|
1937
|
+
widget?: string;
|
|
1938
|
+
}
|
|
1939
|
+
|
|
1940
|
+
/**
|
|
1941
|
+
* Descriptive metadata for the collection and vault levels of the metadata
|
|
1942
|
+
* ladder (field level = FieldMeta). Identity, not structure: label /
|
|
1943
|
+
* description / icon only. Descriptive, never prescriptive.
|
|
1944
|
+
* @module
|
|
1945
|
+
*/
|
|
1946
|
+
/** A collection's own descriptive metadata. */
|
|
1947
|
+
interface CollectionMeta {
|
|
1948
|
+
/** Friendly name; falls back to the humanized collection name. */
|
|
1949
|
+
label?: string;
|
|
1950
|
+
description?: string;
|
|
1951
|
+
/** Semantic icon NAME (e.g. a Lucide key), not styling. */
|
|
1952
|
+
icon?: string;
|
|
1953
|
+
/** Plural form for list headers ("Invoice" → "Invoices"). */
|
|
1954
|
+
pluralLabel?: string;
|
|
1955
|
+
}
|
|
1956
|
+
/** A vault's own descriptive metadata. */
|
|
1957
|
+
interface VaultMeta {
|
|
1958
|
+
label?: string;
|
|
1959
|
+
description?: string;
|
|
1960
|
+
icon?: string;
|
|
1961
|
+
}
|
|
1962
|
+
|
|
1905
1963
|
type EventHandler<T> = (data: T) => void;
|
|
1906
1964
|
/** Typed event emitter for NOYDB events. */
|
|
1907
1965
|
declare class NoydbEventEmitter {
|
|
@@ -2445,27 +2503,44 @@ interface DictKeyDescriptor<Keys extends string = string> {
|
|
|
2445
2503
|
readonly onMissing?: OnMissingPolicy;
|
|
2446
2504
|
/** Ordered preferred-substitute locales for label resolution. */
|
|
2447
2505
|
readonly substitute?: readonly string[];
|
|
2506
|
+
/**
|
|
2507
|
+
* Optional inline display labels (value → label map). A SYNC display
|
|
2508
|
+
* fallback for `describe()` when async `dictLabels` (from `_dict_`) are
|
|
2509
|
+
* not resolved. The async path still wins when available.
|
|
2510
|
+
*/
|
|
2511
|
+
readonly labels?: Record<string, string>;
|
|
2448
2512
|
}
|
|
2449
2513
|
/**
|
|
2450
2514
|
* Create a `DictKeyDescriptor` for a dictionary-backed enum field.
|
|
2451
2515
|
*
|
|
2452
|
-
* @param name
|
|
2453
|
-
* @param
|
|
2454
|
-
*
|
|
2455
|
-
*
|
|
2516
|
+
* @param name The dictionary name (corresponds to `_dict_<name>` collection).
|
|
2517
|
+
* @param keysOrMap Either:
|
|
2518
|
+
* - An `as const` array of valid key literals — narrows the TypeScript type
|
|
2519
|
+
* to a literal union and enables put-time validation.
|
|
2520
|
+
* - A **value→label map** (`{ draft: 'Draft', paid: 'Paid' }`) — keys are
|
|
2521
|
+
* inferred from the map, and the labels are stored as inline display
|
|
2522
|
+
* defaults surfaced by `describe()` without a store read.
|
|
2523
|
+
* @param opts `{ labels?, onMissing?, substitute? }` when the array form
|
|
2524
|
+
* is used; `opts.labels` provides inline display defaults for
|
|
2525
|
+
* specific keys (same semantics as the map form, but
|
|
2526
|
+
* explicit key order from the array is preserved).
|
|
2456
2527
|
*
|
|
2457
2528
|
* @example
|
|
2458
2529
|
* ```ts
|
|
2459
|
-
*
|
|
2460
|
-
*
|
|
2461
|
-
*
|
|
2462
|
-
*
|
|
2463
|
-
* })
|
|
2530
|
+
* // array form (original):
|
|
2531
|
+
* dictKey('status', ['draft', 'open', 'paid'] as const)
|
|
2532
|
+
*
|
|
2533
|
+
* // value→label map form (keys inferred, inline labels for describe()):
|
|
2534
|
+
* dictKey('status', { draft: 'Draft', open: 'Open', paid: 'Paid' })
|
|
2535
|
+
*
|
|
2536
|
+
* // array + opts.labels (preserves explicit order, partial labels OK):
|
|
2537
|
+
* dictKey('status', ['draft', 'open', 'paid'] as const, { labels: { paid: 'Paid' } })
|
|
2464
2538
|
* ```
|
|
2465
2539
|
*/
|
|
2466
|
-
declare function dictKey<Keys extends string>(name: string,
|
|
2540
|
+
declare function dictKey<Keys extends string>(name: string, keysOrMap?: readonly Keys[] | Record<Keys, string>, opts?: {
|
|
2467
2541
|
onMissing?: OnMissingPolicy;
|
|
2468
2542
|
substitute?: readonly string[];
|
|
2543
|
+
labels?: Record<string, string>;
|
|
2469
2544
|
}): DictKeyDescriptor<Keys>;
|
|
2470
2545
|
/** Runtime predicate for detecting a DictKeyDescriptor. */
|
|
2471
2546
|
declare function isDictKeyDescriptor(x: unknown): x is DictKeyDescriptor;
|
|
@@ -3666,6 +3741,268 @@ interface EmbeddingDescriptor {
|
|
|
3666
3741
|
readonly model: string;
|
|
3667
3742
|
}
|
|
3668
3743
|
|
|
3744
|
+
/**
|
|
3745
|
+
* `buildDescription` — pure assembler that merges collection config
|
|
3746
|
+
* (moneyFields / dictKeyFields / refs / computed / fieldMeta) with an
|
|
3747
|
+
* optional validator-derived `zodFields` map into a normalised
|
|
3748
|
+
* {@link CollectionDescription}.
|
|
3749
|
+
*
|
|
3750
|
+
* The sync path (`collection.describe()`) passes `zodFields: undefined`.
|
|
3751
|
+
* The async path (Task 4 — #483) supplies a populated map and validator-
|
|
3752
|
+
* derived type strings.
|
|
3753
|
+
*
|
|
3754
|
+
* @module
|
|
3755
|
+
*/
|
|
3756
|
+
|
|
3757
|
+
interface DescribedField {
|
|
3758
|
+
readonly key: string;
|
|
3759
|
+
/** Sync: inferred from config ('number'|'enum'|'string'|'array'|'unknown'). Async (Task 4): validator-derived. */
|
|
3760
|
+
readonly type: string;
|
|
3761
|
+
readonly optional: boolean;
|
|
3762
|
+
readonly constraints?: Record<string, unknown>;
|
|
3763
|
+
readonly label: string;
|
|
3764
|
+
readonly description?: string;
|
|
3765
|
+
readonly semanticType?: string;
|
|
3766
|
+
readonly unit?: string;
|
|
3767
|
+
readonly sensitivity?: 'public' | 'pii' | 'secret';
|
|
3768
|
+
readonly aggregate?: 'sum' | 'count' | 'distinct' | 'none';
|
|
3769
|
+
readonly aliases?: readonly string[];
|
|
3770
|
+
readonly ref?: {
|
|
3771
|
+
target: string;
|
|
3772
|
+
mode: string;
|
|
3773
|
+
isArray?: true;
|
|
3774
|
+
};
|
|
3775
|
+
readonly displayFor?: string;
|
|
3776
|
+
readonly money?: {
|
|
3777
|
+
mode: 'fixed' | 'multi';
|
|
3778
|
+
currency?: string;
|
|
3779
|
+
scale?: number;
|
|
3780
|
+
rounding?: string;
|
|
3781
|
+
};
|
|
3782
|
+
readonly dict?: {
|
|
3783
|
+
name: string;
|
|
3784
|
+
static: boolean;
|
|
3785
|
+
values?: readonly {
|
|
3786
|
+
value: string;
|
|
3787
|
+
label?: string;
|
|
3788
|
+
}[];
|
|
3789
|
+
};
|
|
3790
|
+
readonly computed?: true;
|
|
3791
|
+
/** i18n metadata for fields declared with i18nText(). Present only when the field is i18n-enabled. */
|
|
3792
|
+
readonly i18n?: {
|
|
3793
|
+
readonly locales?: readonly string[];
|
|
3794
|
+
readonly densify?: boolean;
|
|
3795
|
+
};
|
|
3796
|
+
/** Widget hint derived from semanticType+type, overridable via fieldMeta.widget. */
|
|
3797
|
+
readonly widget: string;
|
|
3798
|
+
/** Whether the field is user-editable. False for computed, id, and provenance-stamped fields. */
|
|
3799
|
+
readonly editable: boolean;
|
|
3800
|
+
}
|
|
3801
|
+
interface CollectionDescription {
|
|
3802
|
+
readonly collection: string;
|
|
3803
|
+
readonly fields: readonly DescribedField[];
|
|
3804
|
+
/** Collection-level descriptive metadata; label falls back to the humanized collection name. */
|
|
3805
|
+
readonly meta: CollectionMeta;
|
|
3806
|
+
}
|
|
3807
|
+
/** Options for the async describe(opts) overload (#483 Task 4). */
|
|
3808
|
+
interface DescribeOptions {
|
|
3809
|
+
/**
|
|
3810
|
+
* When true, resolve dynamic-dict labels from vault.dictionary(name).list()
|
|
3811
|
+
* and populate dict.values[].label for dynamic dictKey fields.
|
|
3812
|
+
*/
|
|
3813
|
+
readonly resolveDictLabels?: boolean;
|
|
3814
|
+
}
|
|
3815
|
+
|
|
3816
|
+
/**
|
|
3817
|
+
* Persisted-schema envelope shape.
|
|
3818
|
+
*
|
|
3819
|
+
* Stored encrypted under `_schemas/<collection>` with the same DEK as the
|
|
3820
|
+
* collection's records. Auditors who can unlock the collection's data can
|
|
3821
|
+
* also read its schema; nothing more.
|
|
3822
|
+
*
|
|
3823
|
+
* @see docs/superpowers/specs/2026-05-22-schema-dump-design.md
|
|
3824
|
+
*
|
|
3825
|
+
* @module
|
|
3826
|
+
*/
|
|
3827
|
+
/** Family of Standard Schema v1 validator the persisted snapshot was derived from. */
|
|
3828
|
+
type PersistedSchemaKind = 'Zod' | 'Valibot' | 'ArkType' | 'Effect' | 'Unknown';
|
|
3829
|
+
/**
|
|
3830
|
+
* Plaintext payload encrypted into the `_data` field of the
|
|
3831
|
+
* `_schemas/<collection>` envelope. The wrapper `EncryptedEnvelope` adds
|
|
3832
|
+
* `_noydb`, `_v`, `_ts`, `_iv`, `_data` per the standard noy-db record
|
|
3833
|
+
* format.
|
|
3834
|
+
*/
|
|
3835
|
+
interface PersistedSchemaEnvelope {
|
|
3836
|
+
readonly _noydb_schema: 1;
|
|
3837
|
+
/** Detected validator family. */
|
|
3838
|
+
readonly kind: PersistedSchemaKind;
|
|
3839
|
+
/**
|
|
3840
|
+
* JSON Schema (Draft 2020-12) derived from the validator. Null when
|
|
3841
|
+
* derivation isn't yet supported for `kind`; in that case `reason` is
|
|
3842
|
+
* populated.
|
|
3843
|
+
*/
|
|
3844
|
+
readonly jsonSchema: object | null;
|
|
3845
|
+
/** SHA-256 (hex) of the canonicalised JSON Schema, or null when unavailable. */
|
|
3846
|
+
readonly hash: string | null;
|
|
3847
|
+
/** Human-readable reason when `jsonSchema` is null. */
|
|
3848
|
+
readonly reason?: string;
|
|
3849
|
+
/** ISO-8601 timestamp of the most recent derivation write. */
|
|
3850
|
+
readonly derivedAt: string;
|
|
3851
|
+
}
|
|
3852
|
+
|
|
3853
|
+
/**
|
|
3854
|
+
* Types for {@link VaultSchemaSnapshot} — the structured object returned
|
|
3855
|
+
* by `vault.dumpSchema()`. Consumed by the upcoming `noydb describe`
|
|
3856
|
+
* CLI to emit human-readable YAML/JSON audit output.
|
|
3857
|
+
*
|
|
3858
|
+
* @see docs/superpowers/specs/2026-05-22-schema-dump-design.md
|
|
3859
|
+
*
|
|
3860
|
+
* @module
|
|
3861
|
+
*/
|
|
3862
|
+
|
|
3863
|
+
/** Flat snapshot of a vault's registered schema. */
|
|
3864
|
+
interface SchemaIntrospection {
|
|
3865
|
+
readonly collections: ReadonlyArray<{
|
|
3866
|
+
name: string;
|
|
3867
|
+
docCount: number;
|
|
3868
|
+
}>;
|
|
3869
|
+
readonly guards: ReadonlyArray<{
|
|
3870
|
+
collection: string;
|
|
3871
|
+
count: number;
|
|
3872
|
+
}>;
|
|
3873
|
+
readonly materializedViews: ReadonlyArray<{
|
|
3874
|
+
name: string;
|
|
3875
|
+
sourceCollections: string[];
|
|
3876
|
+
}>;
|
|
3877
|
+
readonly schemaUpdate: ReadonlyArray<{
|
|
3878
|
+
collection: string;
|
|
3879
|
+
strategies: string[];
|
|
3880
|
+
}>;
|
|
3881
|
+
readonly grants: ReadonlyArray<{
|
|
3882
|
+
collection: string;
|
|
3883
|
+
permission: Permission;
|
|
3884
|
+
}>;
|
|
3885
|
+
}
|
|
3886
|
+
/** Where the field-level info in the snapshot came from. */
|
|
3887
|
+
type FieldSource = 'persisted' | 'live-validator' | 'sampled' | 'unknown';
|
|
3888
|
+
interface FieldDescriptor {
|
|
3889
|
+
/** Inferred type tag: 'string' | 'number' | 'boolean' | 'enum' | 'object' | 'array' | 'null' | 'opaque'. */
|
|
3890
|
+
readonly type: string;
|
|
3891
|
+
/** Where this field info was sourced from. */
|
|
3892
|
+
readonly source: FieldSource;
|
|
3893
|
+
/** Optional constraints — minLength, maxLength, enum values, gt, etc. */
|
|
3894
|
+
readonly constraints?: Record<string, unknown>;
|
|
3895
|
+
/** True when the schema marks this field optional. */
|
|
3896
|
+
readonly optional?: boolean;
|
|
3897
|
+
/** Foreign-key target as `<collection>.<field>` when declared. */
|
|
3898
|
+
readonly references?: string;
|
|
3899
|
+
}
|
|
3900
|
+
interface CollectionStats {
|
|
3901
|
+
readonly records: number;
|
|
3902
|
+
readonly bytes: number;
|
|
3903
|
+
readonly bytesAvg: number;
|
|
3904
|
+
readonly bytesMin: number;
|
|
3905
|
+
readonly bytesMax: number;
|
|
3906
|
+
/** ISO-8601 from min(_ts) across envelopes. Empty string when no records. */
|
|
3907
|
+
readonly oldest: string;
|
|
3908
|
+
/** ISO-8601 from max(_ts) across envelopes. Empty string when no records. */
|
|
3909
|
+
readonly newest: string;
|
|
3910
|
+
}
|
|
3911
|
+
/**
|
|
3912
|
+
* Collection-level configuration options surfaced by `dumpSchema()`.
|
|
3913
|
+
* Only fields that are actively configured are present; the object is
|
|
3914
|
+
* omitted entirely from `CollectionDescriptor.config` when nothing is set.
|
|
3915
|
+
* Reused by Task 5 in-devtools display.
|
|
3916
|
+
*/
|
|
3917
|
+
interface CollectionConfig {
|
|
3918
|
+
readonly i18nFields?: readonly string[];
|
|
3919
|
+
readonly embeddings?: {
|
|
3920
|
+
readonly source: string | readonly string[];
|
|
3921
|
+
readonly dim: number;
|
|
3922
|
+
readonly model?: string;
|
|
3923
|
+
};
|
|
3924
|
+
readonly textIndexes?: readonly string[];
|
|
3925
|
+
readonly textIndexPersist?: boolean;
|
|
3926
|
+
readonly perRecordKeys?: boolean;
|
|
3927
|
+
readonly provenance?: boolean;
|
|
3928
|
+
readonly tiers?: readonly number[];
|
|
3929
|
+
readonly tierMode?: string;
|
|
3930
|
+
readonly crdt?: string;
|
|
3931
|
+
/**
|
|
3932
|
+
* `true` when history is explicitly enabled for this collection.
|
|
3933
|
+
* Omitted when history is not configured or when the default vault-wide
|
|
3934
|
+
* setting applies without explicit per-collection configuration.
|
|
3935
|
+
*/
|
|
3936
|
+
readonly history?: boolean;
|
|
3937
|
+
/**
|
|
3938
|
+
* Present when the collection is registered in `vault.archiveRegistry`
|
|
3939
|
+
* (i.e. an archive policy was declared). `true` = archive policy present.
|
|
3940
|
+
*/
|
|
3941
|
+
readonly archive?: boolean;
|
|
3942
|
+
/**
|
|
3943
|
+
* Strategy names registered for schema updates on this collection.
|
|
3944
|
+
* Present only when at least one strategy is registered.
|
|
3945
|
+
*/
|
|
3946
|
+
readonly schemaUpdate?: readonly string[];
|
|
3947
|
+
}
|
|
3948
|
+
interface CollectionDescriptor {
|
|
3949
|
+
readonly fields: Record<string, FieldDescriptor>;
|
|
3950
|
+
readonly indexes: ReadonlyArray<{
|
|
3951
|
+
readonly fields: ReadonlyArray<string>;
|
|
3952
|
+
readonly unique?: boolean;
|
|
3953
|
+
}>;
|
|
3954
|
+
readonly refs: Record<string, {
|
|
3955
|
+
readonly target: string;
|
|
3956
|
+
readonly mode: 'strict' | 'warn' | 'cascade';
|
|
3957
|
+
}>;
|
|
3958
|
+
readonly validator?: {
|
|
3959
|
+
readonly kind: PersistedSchemaKind;
|
|
3960
|
+
readonly source: 'persisted' | 'live-validator';
|
|
3961
|
+
};
|
|
3962
|
+
readonly stats?: CollectionStats;
|
|
3963
|
+
readonly meta?: CollectionMeta;
|
|
3964
|
+
readonly config?: CollectionConfig;
|
|
3965
|
+
}
|
|
3966
|
+
interface MaterializedViewDescriptor {
|
|
3967
|
+
readonly sources: ReadonlyArray<string>;
|
|
3968
|
+
readonly groupBy?: ReadonlyArray<string>;
|
|
3969
|
+
readonly aggregate?: Record<string, string>;
|
|
3970
|
+
readonly refresh: string;
|
|
3971
|
+
readonly stats?: CollectionStats;
|
|
3972
|
+
}
|
|
3973
|
+
interface OverlayViewDescriptor {
|
|
3974
|
+
readonly base: string;
|
|
3975
|
+
readonly overlay: string;
|
|
3976
|
+
}
|
|
3977
|
+
interface DerivationDescriptor {
|
|
3978
|
+
readonly source: string;
|
|
3979
|
+
readonly outputs: ReadonlyArray<string>;
|
|
3980
|
+
}
|
|
3981
|
+
interface InternalCollectionStats {
|
|
3982
|
+
readonly records: number;
|
|
3983
|
+
readonly bytes: number;
|
|
3984
|
+
}
|
|
3985
|
+
interface VaultSchemaSnapshot {
|
|
3986
|
+
readonly _noydb_snapshot: 1;
|
|
3987
|
+
readonly vault: string;
|
|
3988
|
+
readonly emittedAt: string;
|
|
3989
|
+
readonly subsystems: Record<string, boolean>;
|
|
3990
|
+
readonly aclRoles?: ReadonlyArray<string>;
|
|
3991
|
+
readonly meta?: VaultMeta;
|
|
3992
|
+
readonly collections: Record<string, CollectionDescriptor>;
|
|
3993
|
+
readonly materializedViews: Record<string, MaterializedViewDescriptor>;
|
|
3994
|
+
readonly overlayViews: Record<string, OverlayViewDescriptor>;
|
|
3995
|
+
readonly derivations: Record<string, DerivationDescriptor>;
|
|
3996
|
+
/** Only present when `dumpSchema({ withStats: true })` was called. */
|
|
3997
|
+
readonly internal?: Record<string, InternalCollectionStats>;
|
|
3998
|
+
}
|
|
3999
|
+
interface DumpSchemaOptions {
|
|
4000
|
+
/** When true, walk every collection's envelopes to compute counters. Default `false`. */
|
|
4001
|
+
readonly withStats?: boolean;
|
|
4002
|
+
/** Sample N records per collection lacking a persisted/live schema. Default 50. `0` disables sampling. */
|
|
4003
|
+
readonly sampleSize?: number;
|
|
4004
|
+
}
|
|
4005
|
+
|
|
3669
4006
|
interface LruOptions {
|
|
3670
4007
|
/** Maximum number of entries before eviction. Required if `maxBytes` is unset. */
|
|
3671
4008
|
maxRecords?: number;
|
|
@@ -5623,10 +5960,12 @@ declare class Noydb {
|
|
|
5623
5960
|
* @param opts.locale Default locale for i18n/dictKey field resolution
|
|
5624
5961
|
*. Set here to avoid passing `{ locale }`
|
|
5625
5962
|
* on every individual `get()`/`list()` call.
|
|
5963
|
+
* @param opts.meta Vault descriptive metadata (label, description, etc.). First-wins: applied on first open, ignored on subsequent opens.
|
|
5626
5964
|
*/
|
|
5627
5965
|
openVault(name: string, opts?: {
|
|
5628
5966
|
locale?: string;
|
|
5629
5967
|
create?: boolean;
|
|
5968
|
+
meta?: VaultMeta;
|
|
5630
5969
|
}): Promise<Vault>;
|
|
5631
5970
|
/** Synchronous vault access (must call openVault first, or auto-opens). */
|
|
5632
5971
|
vault(name: string): Vault;
|
|
@@ -9002,156 +9341,6 @@ declare class CustodyApi {
|
|
|
9002
9341
|
liberate(opts: LiberateOptions): Promise<LiberateResult>;
|
|
9003
9342
|
}
|
|
9004
9343
|
|
|
9005
|
-
/**
|
|
9006
|
-
* Persisted-schema envelope shape.
|
|
9007
|
-
*
|
|
9008
|
-
* Stored encrypted under `_schemas/<collection>` with the same DEK as the
|
|
9009
|
-
* collection's records. Auditors who can unlock the collection's data can
|
|
9010
|
-
* also read its schema; nothing more.
|
|
9011
|
-
*
|
|
9012
|
-
* @see docs/superpowers/specs/2026-05-22-schema-dump-design.md
|
|
9013
|
-
*
|
|
9014
|
-
* @module
|
|
9015
|
-
*/
|
|
9016
|
-
/** Family of Standard Schema v1 validator the persisted snapshot was derived from. */
|
|
9017
|
-
type PersistedSchemaKind = 'Zod' | 'Valibot' | 'ArkType' | 'Effect' | 'Unknown';
|
|
9018
|
-
/**
|
|
9019
|
-
* Plaintext payload encrypted into the `_data` field of the
|
|
9020
|
-
* `_schemas/<collection>` envelope. The wrapper `EncryptedEnvelope` adds
|
|
9021
|
-
* `_noydb`, `_v`, `_ts`, `_iv`, `_data` per the standard noy-db record
|
|
9022
|
-
* format.
|
|
9023
|
-
*/
|
|
9024
|
-
interface PersistedSchemaEnvelope {
|
|
9025
|
-
readonly _noydb_schema: 1;
|
|
9026
|
-
/** Detected validator family. */
|
|
9027
|
-
readonly kind: PersistedSchemaKind;
|
|
9028
|
-
/**
|
|
9029
|
-
* JSON Schema (Draft 2020-12) derived from the validator. Null when
|
|
9030
|
-
* derivation isn't yet supported for `kind`; in that case `reason` is
|
|
9031
|
-
* populated.
|
|
9032
|
-
*/
|
|
9033
|
-
readonly jsonSchema: object | null;
|
|
9034
|
-
/** SHA-256 (hex) of the canonicalised JSON Schema, or null when unavailable. */
|
|
9035
|
-
readonly hash: string | null;
|
|
9036
|
-
/** Human-readable reason when `jsonSchema` is null. */
|
|
9037
|
-
readonly reason?: string;
|
|
9038
|
-
/** ISO-8601 timestamp of the most recent derivation write. */
|
|
9039
|
-
readonly derivedAt: string;
|
|
9040
|
-
}
|
|
9041
|
-
|
|
9042
|
-
/**
|
|
9043
|
-
* Types for {@link VaultSchemaSnapshot} — the structured object returned
|
|
9044
|
-
* by `vault.dumpSchema()`. Consumed by the upcoming `noydb describe`
|
|
9045
|
-
* CLI to emit human-readable YAML/JSON audit output.
|
|
9046
|
-
*
|
|
9047
|
-
* @see docs/superpowers/specs/2026-05-22-schema-dump-design.md
|
|
9048
|
-
*
|
|
9049
|
-
* @module
|
|
9050
|
-
*/
|
|
9051
|
-
|
|
9052
|
-
/** Flat snapshot of a vault's registered schema. */
|
|
9053
|
-
interface SchemaIntrospection {
|
|
9054
|
-
readonly collections: ReadonlyArray<{
|
|
9055
|
-
name: string;
|
|
9056
|
-
docCount: number;
|
|
9057
|
-
}>;
|
|
9058
|
-
readonly guards: ReadonlyArray<{
|
|
9059
|
-
collection: string;
|
|
9060
|
-
count: number;
|
|
9061
|
-
}>;
|
|
9062
|
-
readonly materializedViews: ReadonlyArray<{
|
|
9063
|
-
name: string;
|
|
9064
|
-
sourceCollections: string[];
|
|
9065
|
-
}>;
|
|
9066
|
-
readonly schemaUpdate: ReadonlyArray<{
|
|
9067
|
-
collection: string;
|
|
9068
|
-
strategies: string[];
|
|
9069
|
-
}>;
|
|
9070
|
-
readonly grants: ReadonlyArray<{
|
|
9071
|
-
collection: string;
|
|
9072
|
-
permission: Permission;
|
|
9073
|
-
}>;
|
|
9074
|
-
}
|
|
9075
|
-
/** Where the field-level info in the snapshot came from. */
|
|
9076
|
-
type FieldSource = 'persisted' | 'live-validator' | 'sampled' | 'unknown';
|
|
9077
|
-
interface FieldDescriptor {
|
|
9078
|
-
/** Inferred type tag: 'string' | 'number' | 'boolean' | 'enum' | 'object' | 'array' | 'null' | 'opaque'. */
|
|
9079
|
-
readonly type: string;
|
|
9080
|
-
/** Where this field info was sourced from. */
|
|
9081
|
-
readonly source: FieldSource;
|
|
9082
|
-
/** Optional constraints — minLength, maxLength, enum values, gt, etc. */
|
|
9083
|
-
readonly constraints?: Record<string, unknown>;
|
|
9084
|
-
/** True when the schema marks this field optional. */
|
|
9085
|
-
readonly optional?: boolean;
|
|
9086
|
-
/** Foreign-key target as `<collection>.<field>` when declared. */
|
|
9087
|
-
readonly references?: string;
|
|
9088
|
-
}
|
|
9089
|
-
interface CollectionStats {
|
|
9090
|
-
readonly records: number;
|
|
9091
|
-
readonly bytes: number;
|
|
9092
|
-
readonly bytesAvg: number;
|
|
9093
|
-
readonly bytesMin: number;
|
|
9094
|
-
readonly bytesMax: number;
|
|
9095
|
-
/** ISO-8601 from min(_ts) across envelopes. Empty string when no records. */
|
|
9096
|
-
readonly oldest: string;
|
|
9097
|
-
/** ISO-8601 from max(_ts) across envelopes. Empty string when no records. */
|
|
9098
|
-
readonly newest: string;
|
|
9099
|
-
}
|
|
9100
|
-
interface CollectionDescriptor {
|
|
9101
|
-
readonly fields: Record<string, FieldDescriptor>;
|
|
9102
|
-
readonly indexes: ReadonlyArray<{
|
|
9103
|
-
readonly fields: ReadonlyArray<string>;
|
|
9104
|
-
readonly unique?: boolean;
|
|
9105
|
-
}>;
|
|
9106
|
-
readonly refs: Record<string, {
|
|
9107
|
-
readonly target: string;
|
|
9108
|
-
readonly mode: 'strict' | 'warn' | 'cascade';
|
|
9109
|
-
}>;
|
|
9110
|
-
readonly validator?: {
|
|
9111
|
-
readonly kind: PersistedSchemaKind;
|
|
9112
|
-
readonly source: 'persisted' | 'live-validator';
|
|
9113
|
-
};
|
|
9114
|
-
readonly stats?: CollectionStats;
|
|
9115
|
-
}
|
|
9116
|
-
interface MaterializedViewDescriptor {
|
|
9117
|
-
readonly sources: ReadonlyArray<string>;
|
|
9118
|
-
readonly groupBy?: ReadonlyArray<string>;
|
|
9119
|
-
readonly aggregate?: Record<string, string>;
|
|
9120
|
-
readonly refresh: string;
|
|
9121
|
-
readonly stats?: CollectionStats;
|
|
9122
|
-
}
|
|
9123
|
-
interface OverlayViewDescriptor {
|
|
9124
|
-
readonly base: string;
|
|
9125
|
-
readonly overlay: string;
|
|
9126
|
-
}
|
|
9127
|
-
interface DerivationDescriptor {
|
|
9128
|
-
readonly source: string;
|
|
9129
|
-
readonly outputs: ReadonlyArray<string>;
|
|
9130
|
-
}
|
|
9131
|
-
interface InternalCollectionStats {
|
|
9132
|
-
readonly records: number;
|
|
9133
|
-
readonly bytes: number;
|
|
9134
|
-
}
|
|
9135
|
-
interface VaultSchemaSnapshot {
|
|
9136
|
-
readonly _noydb_snapshot: 1;
|
|
9137
|
-
readonly vault: string;
|
|
9138
|
-
readonly emittedAt: string;
|
|
9139
|
-
readonly subsystems: Record<string, boolean>;
|
|
9140
|
-
readonly aclRoles?: ReadonlyArray<string>;
|
|
9141
|
-
readonly collections: Record<string, CollectionDescriptor>;
|
|
9142
|
-
readonly materializedViews: Record<string, MaterializedViewDescriptor>;
|
|
9143
|
-
readonly overlayViews: Record<string, OverlayViewDescriptor>;
|
|
9144
|
-
readonly derivations: Record<string, DerivationDescriptor>;
|
|
9145
|
-
/** Only present when `dumpSchema({ withStats: true })` was called. */
|
|
9146
|
-
readonly internal?: Record<string, InternalCollectionStats>;
|
|
9147
|
-
}
|
|
9148
|
-
interface DumpSchemaOptions {
|
|
9149
|
-
/** When true, walk every collection's envelopes to compute counters. Default `false`. */
|
|
9150
|
-
readonly withStats?: boolean;
|
|
9151
|
-
/** Sample N records per collection lacking a persisted/live schema. Default 50. `0` disables sampling. */
|
|
9152
|
-
readonly sampleSize?: number;
|
|
9153
|
-
}
|
|
9154
|
-
|
|
9155
9344
|
/**
|
|
9156
9345
|
* Orchestrate the structural walk of a Vault, producing a
|
|
9157
9346
|
* {@link VaultSchemaSnapshot}. Called from `Vault.dumpSchema()`.
|
|
@@ -9175,9 +9364,23 @@ interface VaultIntrospectState {
|
|
|
9175
9364
|
/** The active unlocked keyring — role/permissions/userId for access-scoped ops. */
|
|
9176
9365
|
readonly keyring: UnlockedKeyring;
|
|
9177
9366
|
readonly subsystems: Record<string, boolean>;
|
|
9367
|
+
/** Vault-level descriptive metadata, when set via `openVault({meta})`. */
|
|
9368
|
+
readonly vaultMeta?: VaultMeta;
|
|
9178
9369
|
readonly mvRegistry: unknown;
|
|
9179
9370
|
readonly overlayRegistry: unknown;
|
|
9180
9371
|
readonly derivationRegistry: unknown;
|
|
9372
|
+
/**
|
|
9373
|
+
* Returns the registered schema-update strategy names for a collection,
|
|
9374
|
+
* or `undefined` when none are registered. Populated from
|
|
9375
|
+
* `vault.#schemaUpdateNames` in `_introspectState()`.
|
|
9376
|
+
*/
|
|
9377
|
+
readonly getCollectionSchemaUpdateNames?: (col: string) => readonly string[] | undefined;
|
|
9378
|
+
/**
|
|
9379
|
+
* Returns `true` when the collection has an archive policy registered
|
|
9380
|
+
* in `vault.archiveRegistry`, `false` otherwise. Populated from
|
|
9381
|
+
* `vault.archiveRegistry` in `_introspectState()`.
|
|
9382
|
+
*/
|
|
9383
|
+
readonly hasCollectionArchive?: (col: string) => boolean;
|
|
9181
9384
|
}
|
|
9182
9385
|
|
|
9183
9386
|
/** A vault (tenant namespace) containing collections. */
|
|
@@ -9373,6 +9576,12 @@ declare class Vault {
|
|
|
9373
9576
|
* `get()`/`list()` calls.
|
|
9374
9577
|
*/
|
|
9375
9578
|
private locale;
|
|
9579
|
+
/**
|
|
9580
|
+
* Vault-level descriptive metadata. Set once at construction via
|
|
9581
|
+
* `openVault(name, { meta })`. First-wins: re-opening a cached vault
|
|
9582
|
+
* with different meta leaves the original untouched.
|
|
9583
|
+
*/
|
|
9584
|
+
private readonly vaultMeta;
|
|
9376
9585
|
/**
|
|
9377
9586
|
* Current consent scope. Set by `withConsent()` and
|
|
9378
9587
|
* restored in its finally block. When non-null, every collection
|
|
@@ -9490,6 +9699,8 @@ declare class Vault {
|
|
|
9490
9699
|
guardStrategies?: ReadonlyArray<GuardStrategyHandleAny> | undefined;
|
|
9491
9700
|
numberingConfigs?: ReadonlyArray<DeferredNumberingConfig> | undefined;
|
|
9492
9701
|
forgetStrategy?: ForgetStrategy | undefined;
|
|
9702
|
+
/** Vault-level descriptive metadata — set once at construction (first-wins). */
|
|
9703
|
+
meta?: VaultMeta | undefined;
|
|
9493
9704
|
});
|
|
9494
9705
|
/**
|
|
9495
9706
|
* Construct (or reconstruct) the lazy DEK resolver. Captures the
|
|
@@ -9549,6 +9760,10 @@ declare class Vault {
|
|
|
9549
9760
|
textIndexPersist?: boolean;
|
|
9550
9761
|
/** — declare dictKey / staticDict fields for label resolution on reads. */
|
|
9551
9762
|
dictKeyFields?: Record<string, DictKeyDescriptor | StaticDictDescriptor>;
|
|
9763
|
+
/** Consumer-neutral per-field descriptors (label/unit/semanticType/sensitivity…). See collection.describe(). */
|
|
9764
|
+
fieldMeta?: Record<string, FieldMeta>;
|
|
9765
|
+
/** The collection's own descriptive metadata (label/description/icon). See collection.describe(). */
|
|
9766
|
+
meta?: CollectionMeta;
|
|
9552
9767
|
/** — declare money() fields for currency-safe decimal storage/formatting. */
|
|
9553
9768
|
moneyFields?: Record<string, MoneyDescriptor>;
|
|
9554
9769
|
/** — declare computed scalar fields, evaluated on write (schema-owned). */
|
|
@@ -9775,6 +9990,8 @@ declare class Vault {
|
|
|
9775
9990
|
setLocale(locale: string | undefined): void;
|
|
9776
9991
|
/** Return the current vault-default locale. */
|
|
9777
9992
|
getLocale(): string | undefined;
|
|
9993
|
+
/** Return the vault-level descriptive metadata (set-once at construction). */
|
|
9994
|
+
getMeta(): VaultMeta | undefined;
|
|
9778
9995
|
/**
|
|
9779
9996
|
* The user id of the keyring backing this vault session. Useful for
|
|
9780
9997
|
* UI affordances ("you are alice"), audit trails, and orchestration
|
|
@@ -11008,6 +11225,8 @@ declare class Collection<T> {
|
|
|
11008
11225
|
private readonly getDEK;
|
|
11009
11226
|
private readonly onDirty;
|
|
11010
11227
|
private readonly historyConfig;
|
|
11228
|
+
/** True when the caller explicitly provided a `historyConfig` option (vs. inheriting the vault default). */
|
|
11229
|
+
private readonly historyConfigExplicit;
|
|
11011
11230
|
/**
|
|
11012
11231
|
* tree-shake seam — the strategy that backs `collection.blob(id)`.
|
|
11013
11232
|
* Defaults to `NO_BLOBS`, a ~10-line stub that throws with an actionable
|
|
@@ -11160,6 +11379,21 @@ declare class Collection<T> {
|
|
|
11160
11379
|
* fields when a locale is requested.
|
|
11161
11380
|
*/
|
|
11162
11381
|
private readonly dictKeyFields;
|
|
11382
|
+
/**
|
|
11383
|
+
* Consumer-neutral per-field descriptors declared via the `fieldMeta`
|
|
11384
|
+
* collection option. Read by `getFieldMeta()`; merged by `collection.describe()`.
|
|
11385
|
+
*/
|
|
11386
|
+
private fieldMeta;
|
|
11387
|
+
/**
|
|
11388
|
+
* Collection-level descriptive metadata declared via the `meta` collection
|
|
11389
|
+
* option. Read by `getMeta()`; surfaced in `collection.describe()`.
|
|
11390
|
+
*/
|
|
11391
|
+
private meta;
|
|
11392
|
+
/**
|
|
11393
|
+
* Outbound ref declarations for this collection (snapshot from vault
|
|
11394
|
+
* refRegistry at construction time). Used by `describe()` (sync, config-only).
|
|
11395
|
+
*/
|
|
11396
|
+
private readonly _refs;
|
|
11163
11397
|
/**
|
|
11164
11398
|
* Money field descriptors keyed by field path. Declared via the
|
|
11165
11399
|
* `moneyFields` collection option: `put()` quantizes to a scaled-int
|
|
@@ -11342,6 +11576,12 @@ declare class Collection<T> {
|
|
|
11342
11576
|
activeTxId?: (() => string | null) | undefined;
|
|
11343
11577
|
getDEK: (collectionName: string) => Promise<CryptoKey>;
|
|
11344
11578
|
historyConfig?: HistoryConfig | undefined;
|
|
11579
|
+
/**
|
|
11580
|
+
* When `true`, the caller explicitly provided `historyConfig` rather than
|
|
11581
|
+
* inheriting the vault-wide default. Used by `getConfig()` to decide
|
|
11582
|
+
* whether to surface `history: true` in the schema dump.
|
|
11583
|
+
*/
|
|
11584
|
+
historyConfigExplicit?: boolean | undefined;
|
|
11345
11585
|
onDirty?: OnDirtyCallback | undefined;
|
|
11346
11586
|
/**
|
|
11347
11587
|
* tree-shake seam. When omitted, `collection.blob(id)` throws
|
|
@@ -11455,7 +11695,13 @@ declare class Collection<T> {
|
|
|
11455
11695
|
textIndexPersist?: boolean | undefined;
|
|
11456
11696
|
/** — dictKey field descriptors for label resolution on reads. */
|
|
11457
11697
|
dictKeyFields?: Record<string, DictKeyDescriptor | StaticDictDescriptor> | undefined;
|
|
11698
|
+
/** — consumer-neutral per-field descriptors. Read via getFieldMeta(). */
|
|
11699
|
+
fieldMeta?: Record<string, FieldMeta> | undefined;
|
|
11700
|
+
/** — collection-level descriptive metadata. Read via getMeta(). */
|
|
11701
|
+
meta?: CollectionMeta | undefined;
|
|
11458
11702
|
moneyFields?: Record<string, MoneyDescriptor> | undefined;
|
|
11703
|
+
/** — outbound ref declarations (snapshot from vault refRegistry). Used by describe(). */
|
|
11704
|
+
declaredRefs?: Record<string, RefDescriptor> | undefined;
|
|
11459
11705
|
computed?: ComputedFields | undefined;
|
|
11460
11706
|
/**
|
|
11461
11707
|
* async callback that resolves a dict key to its label
|
|
@@ -11638,6 +11884,39 @@ declare class Collection<T> {
|
|
|
11638
11884
|
* reference — callers must treat it as immutable.
|
|
11639
11885
|
*/
|
|
11640
11886
|
getSchema(): StandardSchemaV1<unknown, T> | undefined;
|
|
11887
|
+
/** The declared consumer-neutral field metadata channel (canonical). */
|
|
11888
|
+
getFieldMeta(): Record<string, FieldMeta> | undefined;
|
|
11889
|
+
/** The collection's declared descriptive metadata. */
|
|
11890
|
+
getMeta(): CollectionMeta | undefined;
|
|
11891
|
+
/**
|
|
11892
|
+
* Aggregate all collection-level configuration options that are actively set
|
|
11893
|
+
* into a {@link CollectionConfig} snapshot. Returns `undefined` when no options
|
|
11894
|
+
* are configured (omitting the `config` block from `dumpSchema()` output).
|
|
11895
|
+
* Consumed by `walk.ts` to populate `CollectionDescriptor.config`.
|
|
11896
|
+
*/
|
|
11897
|
+
getConfig(): CollectionConfig | undefined;
|
|
11898
|
+
/**
|
|
11899
|
+
* Describe the collection's field schema from in-memory config — zero store I/O.
|
|
11900
|
+
*
|
|
11901
|
+
* Sync overload (no args): merges moneyFields / dictKeyFields / refs /
|
|
11902
|
+
* computed / fieldMeta into a {@link CollectionDescription}. Field types are
|
|
11903
|
+
* inferred from config (money→'number', ref→'string'/'array', dict→'enum',
|
|
11904
|
+
* others→'unknown'). Validator-derived types require the async overload (Task 4).
|
|
11905
|
+
*
|
|
11906
|
+
* Async overload (Task 4 #483): resolves validator-derived types + dynamic dict
|
|
11907
|
+
* labels before building the description.
|
|
11908
|
+
*/
|
|
11909
|
+
describe(): CollectionDescription;
|
|
11910
|
+
describe(opts: DescribeOptions): Promise<CollectionDescription>;
|
|
11911
|
+
/**
|
|
11912
|
+
* Async describe implementation (#483 Task 4).
|
|
11913
|
+
* Derives validator-exact types via deriveZodFields (lazy, no static zod import),
|
|
11914
|
+
* optionally resolves dynamic-dict labels from vault.dictionary(name).list(),
|
|
11915
|
+
* then delegates to buildDescription which also runs fieldMeta key-validation.
|
|
11916
|
+
*/
|
|
11917
|
+
private describeAsync;
|
|
11918
|
+
/** JSON Schema for this collection with describe() metadata as x- extensions. */
|
|
11919
|
+
toJSONSchema(): Promise<object>;
|
|
11641
11920
|
/**
|
|
11642
11921
|
* @internal — attach money descriptors post-construction. MV dependency
|
|
11643
11922
|
* analysis auto-creates a source collection (without options) during
|
|
@@ -11647,6 +11926,10 @@ declare class Collection<T> {
|
|
|
11647
11926
|
_applyMoneyFields(moneyFields: Record<string, MoneyDescriptor>): void;
|
|
11648
11927
|
/** @internal — attach computed fields post-construction. See {@link _applyMoneyFields}. */
|
|
11649
11928
|
_applyComputed(computed: ComputedFields): void;
|
|
11929
|
+
/** @internal — attach fieldMeta post-construction. See {@link _applyMoneyFields}. First-wins. */
|
|
11930
|
+
_applyFieldMeta(fieldMeta: Record<string, FieldMeta>): void;
|
|
11931
|
+
/** @internal — attach collection-level meta post-construction. See {@link _applyMoneyFields}. First-wins. */
|
|
11932
|
+
_applyMeta(meta: CollectionMeta): void;
|
|
11650
11933
|
/**
|
|
11651
11934
|
* Get a single record by ID.
|
|
11652
11935
|
*
|
|
@@ -14989,4 +15272,4 @@ interface DeleteManyResult {
|
|
|
14989
15272
|
}>;
|
|
14990
15273
|
}
|
|
14991
15274
|
|
|
14992
|
-
export { type VersionRecord as $, type BlobPutOptions as A, type BlobStrategy as B, type BlobResponseOptions as C, DICT_COLLECTION_PREFIX as D, BlobSet as E, type BlobStrategyOpenArgs as F, type CompactRunOptions as G, type CompactionContext as H, type I18nStrategy as I, type CompactionResult as J, DEFAULT_CHUNK_SIZE as K, EXPORT_AUDIT_COLLECTION as L, ExportBlobsAbortedError as M, type ExportBlobsAuditEntry as N, type ExportBlobsHandle as O, PolicyEnforcer as P, type ExportBlobsOptions as Q, type ExportedBlob as R, type ScriptWarning as S, type ObjectListEntry as T, type ObjectMeta as U, type ObjectProjection as V, type ObjectUrlOptions as W, type PutObjectOptions as X, type PutUrlOptions as Y, type SlotInfo as Z, type SlotRecord as _, type DictEntry as a, type ChangeType as a$, createExportBlobsHandle as a0, memoryObjectProjection as a1, runCompaction as a2, type ConsentStrategy as a3, CONSENT_AUDIT_COLLECTION as a4, type ConsentAuditEntry as a5, type ConsentAuditFilter as a6, type ConsentContext as a7, type ConsentOp as a8, loadConsentEntries as a9, type SnapshotMeta as aA, type SnapshotMode as aB, type DerivationStrategy as aC, type DerivationContext as aD, type ArrayOutputSpec as aE, DerivationRegistry as aF, type DerivationStrategyHandle as aG, type DerivedFromMeta as aH, type OutputSpec as aI, type RecordOutputSpec as aJ, type MaterializedViewStrategy as aK, type MaterializedViewStrategyHandle as aL, type OverlayedViewStrategy as aM, Collection as aN, type OverlayFieldMergeMode as aO, type OverlayFieldMergeRule as aP, OverlayedViewRegistry as aQ, type OverlayedViewStrategyHandle as aR, type SyncStrategy as aS, type Role as aT, type UnlockedKeyring as aU, type HistoryStrategy as aV, type NoydbStore as aW, type HistoryOptions as aX, type EncryptedEnvelope as aY, type PruneOptions as aZ, type AppendInput as a_, writeConsentEntry as aa, type PeriodsStrategy as ab, type CarryForwardContext as ac, type ClosePeriodOptions as ad, type OpenPeriodOptions as ae, PERIODS_COLLECTION as af, type PeriodRecord as ag, type ReadOnlyCollection as ah, appendPeriodLedgerEntry as ai, assertTsWritable as aj, chainAnchor as ak, loadPeriods as al, validatePeriodName as am, type GuardStrategy as an, type GuardChange as ao, type GuardContext as ap, GuardRegistry as aq, type GuardStrategyHandle as ar, ReadOnlyVaultFacade as as, type ShadowStrategy as at, CollectionFrame as au, VaultFrame as av, type NoydbBundleStore as aw, type RetentionPolicy as ax, type SnapshotPolicy as ay, type SnapshotStrategy as az, type DictKeyDescriptor as b, CustodyApi as b$, CollectionInstant as b0, type DiffEntry as b1, type JsonPatch as b2, type JsonPatchOp as b3, LedgerStore as b4, type VaultEngine as b5, VaultInstant as b6, type VerifyResult as b7, applyPatch as b8, computePatch as b9, type PersistedSchemaEnvelope as bA, type UpdateDecision as bB, type DirectoryConfig as bC, type UserVisibility as bD, type AccessibleVault as bE, type AffectedDocument as bF, type ApproveWithdrawalOptions as bG, type ArchivePolicy as bH, type ArchiveResult as bI, type ArchiveRunOptions as bJ, type ArchiveStrategy as bK, BUNDLE_STORE_POLICY as bL, type BuiltInGateName as bM, type CacheOptions as bN, type CacheStats as bO, type ChangeEvent as bP, type CollectionChangeEvent as bQ, type CollectionConflictResolver as bR, type CollectionDescriptor as bS, type CollectionStats as bT, ComputedFieldError as bU, type ComputedFields as bV, type ComputedFn as bW, type Conflict as bX, type ConflictPolicy as bY, type ConflictStrategy as bZ, type CrossTierAccessEvent as b_, diff as ba, formatDiff as bb, type PublicEnvelope as bc, type SealingKeyProvider as bd, type BundleRecipient as be, type RecipientSealer as bf, type RecipientHint as bg, Vault as bh, type RecoveryEnrollmentInput as bi, type ShamirRecoveryProvider as bj, TxContext as bk, type MVQueryContext as bl, type RegisteredMV as bm, MaterializedViewRegistry as bn, type MaterializedFromMeta as bo, type MaterializedViewOutput as bp, type UnionArmJoin as bq, type UnionSource as br, type UserEnvelope as bs, type GateName as bt, type GatePolicy as bu, type VaultPolicy as bv, type ActiveTier as bw, type FactorProof as bx, type SchemaUpdateStrategy as by, type TransformFn as bz, DictionaryHandle as c, type LruOptions as c$, DEFAULT_PUBLIC_ENVELOPE_SCHEMA as c0, DELEGATIONS_COLLECTION as c1, type DeepPartial as c2, type DeepPartialOrNull as c3, type DeferredNumberingConfig as c4, type DelegationToken as c5, type DeleteManyResult as c6, type DerivationDescriptor as c7, type DirtyEntry as c8, type DryRunResult as c9, type GuardViolation as cA, type HistoryConfig as cB, type HistoryEntry as cC, INDEXED_STORE_POLICY as cD, type ImportCapability as cE, type InferOutput as cF, type InternalCollectionStats as cG, type IssueDelegationOptions as cH, type IssueMagicLinkGrantOptions as cI, type KeyringAuthenticator as cJ, type KeyringAuthenticatorWrappingDEKs as cK, type KeyringAuthenticatorWrappingKEK as cL, type KeyringFile as cM, type LiberateOptions as cN, type LiberateResult as cO, LinkEndpointError as cP, LinkIntegrityError as cQ, type LinkOnDelete as cR, type LinkRow as cS, type LinkSetHandle as cT, type LinkSpec as cU, type ListAccessibleVaultsOptions as cV, type ListPageResult as cW, type ListUsersOptions as cX, type LiveUserEnvelope as cY, type LocaleReadOptions as cZ, Lru as c_, type DumpSchemaOptions as ca, ELEVATION_AUDIT_COLLECTION as cb, ElevatedHandle as cc, type EmbeddingDescriptor as cd, type EnrollAuthenticatorOptions as ce, type EnrollAuthenticatorWrappingDEKsOptions as cf, type EnrollAuthenticatorWrappingKEKOptions as cg, type EnrollRecoveryResult as ch, type ExportAccessibleOptions as ci, type ExportCapability as cj, type ExportChunk as ck, type ExportFormat as cl, type ExportStreamOptions as cm, type FactorKind as cn, type FactorProofBundle as co, type FactorRequirement as cp, type FenceDoc as cq, type FenceState$1 as cr, type FieldChange as cs, type FieldDescriptor as ct, type FieldSource as cu, type FormattedSequenceHandle as cv, type FrozenSnapshotRef as cw, type GhostRecord as cx, type GrantCustodianOptions as cy, type GrantOptions as cz, type DictionaryOptions as d, type RotateRecoveryOptions as d$, type LruStats as d0, MAGIC_LINK_CONTENT_INFO_PREFIX as d1, MAGIC_LINK_GRANTS_COLLECTION as d2, MAGIC_LINK_KEK_INFO_PREFIX as d3, type MagicLinkGrantPayload as d4, type MagicLinkGrantRecord as d5, type MaterializedViewDescriptor as d6, MemoryRecipientSealer as d7, MemorySealingKeyProvider as d8, NOYDB_BACKUP_VERSION as d9, type PullOptions as dA, type PullPolicy as dB, type PullResult as dC, type PushMode as dD, type PushOptions as dE, type PushPolicy as dF, type PushResult as dG, type PutManyItemOptions as dH, type PutManyOptions as dI, type PutManyResult as dJ, type QueryAcrossOptions as dK, type QueryAcrossResult as dL, type QuickUnlockState as dM, QuickUnlockStore as dN, type ReAuthOperation as dO, type RecoverPassphraseInput as dP, type RecoverPassphraseResult as dQ, type RecoverUserOptions as dR, type RecoveryProof as dS, type RejectWithdrawalOptions as dT, type RequestWithdrawalOptions as dU, type RequestWithdrawalResult as dV, type ResolvedPublicEnvelopeSchema as dW, type RetrieveHit as dX, type RetrieveOptions as dY, type RevokeOptions as dZ, type RotatePassphraseInput as d_, NOYDB_FORMAT_VERSION as da, NOYDB_KEYRING_VERSION as db, NOYDB_SYNC_VERSION as dc, type NextOptions as dd, Noydb as de, type NoydbEventMap as df, type NoydbOptions as dg, type Assignment as dh, type OverlayViewDescriptor as di, PUBLIC_ENVELOPE_FIELDS as dj, type PaperRecoveryDoc as dk, type PaperRecoveryEntry as dl, type PassphrasePolicy as dm, type PassphraseValidationResult as dn, type Permission as dp, type Permissions as dq, type PersistedSchemaKind as dr, type PlaintextTranslatorContext as ds, type PlaintextTranslatorFn as dt, PresenceHandle as du, type PresencePeer as dv, type PublicEnvelopeField as dw, type PublicEnvelopeSchema as dx, type PublicEnvelopeText as dy, type PullMode as dz, type StaticDictDescriptor as e, type WeakPassphraseReason as e$, type RotateRecoveryResult as e0, SEALED_PASSPHRASE_RECORD_ID as e1, type SchemaDelta as e2, type SchemaIntrospection as e3, type SealedEnvelope as e4, type SealedPassphrase as e5, type SearchEntry as e6, type SearchOptions as e7, type SearchResult as e8, type SequenceHandle as e9, type TabCoordinationOptions as eA, type TabLockManager as eB, type TabPresence as eC, type TabRole as eD, type TierMode as eE, type TransactionInvariant as eF, type TranslatorAuditEntry as eG, TxCollection as eH, type TxOp as eI, TxVault as eJ, USER_ENVELOPE_COLLECTION as eK, USER_ENVELOPE_MAX_BYTES as eL, type Unsubscribe as eM, type UpdateAuthenticatorOptions as eN, type UpdateContext as eO, type UpdateUserOptions as eP, UserApi as eQ, type UserEnvelopeCheckGate as eR, UserEnvelopeOversizedError as eS, type UserEnvelopePresented as eT, type UserInfo as eU, type VaultBackup as eV, type VaultPolicyOnDisk as eW, type VaultSchemaSnapshot as eX, type VaultSnapshot as eY, type WarningRules as eZ, WeakPassphraseError as e_, type SequenceOptions as ea, SequenceStore as eb, type SessionPolicy as ec, type SetPublicEnvelopeInput as ed, type ShamirRecoveryDoc as ee, type ShamirRecoveryEntry as ef, type SlotRewrapCeremony as eg, type SlotRewrapContext as eh, type StandardSchemaV1 as ei, type StandardSchemaV1Issue as ej, type StandardSchemaV1SyncResult as ek, type StoreAuth as el, type StoreAuthKind as em, type StoreCapabilities as en, type StoreTime as eo, SyncEngine as ep, type SyncMetadata as eq, type SyncPolicy as er, SyncScheduler as es, type SyncSchedulerStatus as et, type SyncStatus as eu, type SyncTarget as ev, type SyncTargetRole as ew, SyncTransaction as ex, type SyncTransactionResult as ey, type TabChannel as ez, dictCollectionName as f, saveShamirRecoveryEntries as f$, type WithArchiveOptions as f0, type WithdrawAccessibleOptions as f1, type WithdrawResult as f2, type WithdrawalRequest as f3, WithdrawalRequestError as f4, type WithdrawalRequestStatus as f5, type WrappedDeksBlob as f6, type WriteConflict as f7, type WriteEvent as f8, type WriteHook as f9, liberateVault as fA, listMagicLinkGrants as fB, listUsers as fC, listUsersWithEnvelopes as fD, listWithdrawalRequests as fE, loadActiveDelegations as fF, loadPaperRecoveryEntries as fG, loadSealedPassphrase as fH, loadShamirRecoveryEntries as fI, magicLinkGrantRecordId as fJ, mintPaperRecoveryEntry as fK, mintShamirRecoveryEntry as fL, mintWrappedDeksBlob as fM, parseRsaOaepTlv as fN, parseSealedEnvelope as fO, readMagicLinkGrantRecord as fP, recoverUser as fQ, rejectWithdrawal as fR, removeAuthenticator as fS, requestWithdrawal as fT, resolveSchema as fU, resolveSequenceKey as fV, revokeDelegation as fW, revokeMagicLinkGrant as fX, runTransaction as fY, savePaperRecoveryEntries as fZ, saveSealedPassphrase as f_, type WriteQueue as fa, aesGcmOpen as fb, approveWithdrawal as fc, assertStrongPassphrase as fd, buildRecipientKeyringFile as fe, burnPaperRecoveryEntry as ff, compileSequenceFormat as fg, createNoydb as fh, createStore as fi, deriveMagicLinkContentKey as fj, enrollAuthenticator as fk, estimateEntropy as fl, evalComputedFields as fm, evaluateExportCapability as fn, evaluateImportCapability as fo, exportAccessibleData as fp, findAuthenticator as fq, hasExportCapability as fr, hasImportCapability as fs, hasRecoveryEnrolled as ft, isLinkCollectionName as fu, isMagicLinkGrantExpired as fv, isPublicEnvelope as fw, issueDelegation as fx, recoverPassphrase as fy, rotatePassphrase as fz, dictKey as g, sealRsaOaepTlv as g0, unwrapDeksFromBlob as g1, unwrapDeksFromPaperEntry as g2, unwrapDeksFromShamirEntry as g3, unwrapMagicLinkGrant as g4, validatePassphrase as g5, validatePublicEnvelopeInput as g6, validateSchemaInput as g7, validateSchemaOutput as g8, withArchive as g9, withDeferredNumbering as ga, withdrawAccessibleData as gb, writeMagicLinkGrant as gc, changeSecret as gd, createOwnerKeyring as ge, ensureCollectionDEK as gf, grant as gg, loadKeyring as gh, persistKeyring as gi, revoke as gj, updateAuthenticator as gk, updateKeyringIdentity as gl, type TxStrategy as gm, type AmendmentTxOptions as gn, type CoordinationProvider as go, type DrainBarrierOptions as gp, type FenceState as gq, type WriterPresence as gr, isQuorum as gs, runDrainBarrier as gt, enforceScript as h, inferScripts as i, isDictCollectionName as j, isDictKeyDescriptor as k, isStaticDictDescriptor as l, type SessionStrategy as m, createEnforcer as n, BLOB_CHUNKS_COLLECTION as o, BLOB_COLLECTION as p, BLOB_EVICTION_AUDIT_COLLECTION as q, BLOB_INDEX_COLLECTION as r, staticDict as s, BLOB_SLOTS_PREFIX as t, BLOB_VERSIONS_PREFIX as u, validateSessionPolicy as v, type BlobEvictionEntry as w, type BlobFieldPolicy as x, type BlobFieldsConfig as y, type BlobObject as z };
|
|
15275
|
+
export { type VersionRecord as $, type BlobPutOptions as A, type BlobStrategy as B, type BlobResponseOptions as C, DICT_COLLECTION_PREFIX as D, BlobSet as E, type BlobStrategyOpenArgs as F, type CompactRunOptions as G, type CompactionContext as H, type I18nStrategy as I, type CompactionResult as J, DEFAULT_CHUNK_SIZE as K, EXPORT_AUDIT_COLLECTION as L, ExportBlobsAbortedError as M, type ExportBlobsAuditEntry as N, type ExportBlobsHandle as O, PolicyEnforcer as P, type ExportBlobsOptions as Q, type ExportedBlob as R, type ScriptWarning as S, type ObjectListEntry as T, type ObjectMeta as U, type ObjectProjection as V, type ObjectUrlOptions as W, type PutObjectOptions as X, type PutUrlOptions as Y, type SlotInfo as Z, type SlotRecord as _, type DictEntry as a, type ChangeType as a$, createExportBlobsHandle as a0, memoryObjectProjection as a1, runCompaction as a2, type ConsentStrategy as a3, CONSENT_AUDIT_COLLECTION as a4, type ConsentAuditEntry as a5, type ConsentAuditFilter as a6, type ConsentContext as a7, type ConsentOp as a8, loadConsentEntries as a9, type SnapshotMeta as aA, type SnapshotMode as aB, type DerivationStrategy as aC, type DerivationContext as aD, type ArrayOutputSpec as aE, DerivationRegistry as aF, type DerivationStrategyHandle as aG, type DerivedFromMeta as aH, type OutputSpec as aI, type RecordOutputSpec as aJ, type MaterializedViewStrategy as aK, type MaterializedViewStrategyHandle as aL, type OverlayedViewStrategy as aM, Collection as aN, type OverlayFieldMergeMode as aO, type OverlayFieldMergeRule as aP, OverlayedViewRegistry as aQ, type OverlayedViewStrategyHandle as aR, type SyncStrategy as aS, type Role as aT, type UnlockedKeyring as aU, type HistoryStrategy as aV, type NoydbStore as aW, type HistoryOptions as aX, type EncryptedEnvelope as aY, type PruneOptions as aZ, type AppendInput as a_, writeConsentEntry as aa, type PeriodsStrategy as ab, type CarryForwardContext as ac, type ClosePeriodOptions as ad, type OpenPeriodOptions as ae, PERIODS_COLLECTION as af, type PeriodRecord as ag, type ReadOnlyCollection as ah, appendPeriodLedgerEntry as ai, assertTsWritable as aj, chainAnchor as ak, loadPeriods as al, validatePeriodName as am, type GuardStrategy as an, type GuardChange as ao, type GuardContext as ap, GuardRegistry as aq, type GuardStrategyHandle as ar, ReadOnlyVaultFacade as as, type ShadowStrategy as at, CollectionFrame as au, VaultFrame as av, type NoydbBundleStore as aw, type RetentionPolicy as ax, type SnapshotPolicy as ay, type SnapshotStrategy as az, type DictKeyDescriptor as b, type ConflictPolicy as b$, CollectionInstant as b0, type DiffEntry as b1, type JsonPatch as b2, type JsonPatchOp as b3, LedgerStore as b4, type VaultEngine as b5, VaultInstant as b6, type VerifyResult as b7, applyPatch as b8, computePatch as b9, type PersistedSchemaEnvelope as bA, type UpdateDecision as bB, type DirectoryConfig as bC, type UserVisibility as bD, type AccessibleVault as bE, type AffectedDocument as bF, type ApproveWithdrawalOptions as bG, type ArchivePolicy as bH, type ArchiveResult as bI, type ArchiveRunOptions as bJ, type ArchiveStrategy as bK, BUNDLE_STORE_POLICY as bL, type BuiltInGateName as bM, type CacheOptions as bN, type CacheStats as bO, type ChangeEvent as bP, type CollectionChangeEvent as bQ, type CollectionConfig as bR, type CollectionConflictResolver as bS, type CollectionDescription as bT, type CollectionDescriptor as bU, type CollectionMeta as bV, type CollectionStats as bW, ComputedFieldError as bX, type ComputedFields as bY, type ComputedFn as bZ, type Conflict as b_, diff as ba, formatDiff as bb, type PublicEnvelope as bc, type SealingKeyProvider as bd, type BundleRecipient as be, type RecipientSealer as bf, type RecipientHint as bg, Vault as bh, type RecoveryEnrollmentInput as bi, type ShamirRecoveryProvider as bj, TxContext as bk, type MVQueryContext as bl, type RegisteredMV as bm, MaterializedViewRegistry as bn, type MaterializedFromMeta as bo, type MaterializedViewOutput as bp, type UnionArmJoin as bq, type UnionSource as br, type UserEnvelope as bs, type GateName as bt, type GatePolicy as bu, type VaultPolicy as bv, type ActiveTier as bw, type FactorProof as bx, type SchemaUpdateStrategy as by, type TransformFn as bz, DictionaryHandle as c, type ListAccessibleVaultsOptions as c$, type ConflictStrategy as c0, type CrossTierAccessEvent as c1, CustodyApi as c2, DEFAULT_PUBLIC_ENVELOPE_SCHEMA as c3, DELEGATIONS_COLLECTION as c4, type DeepPartial as c5, type DeepPartialOrNull as c6, type DeferredNumberingConfig as c7, type DelegationToken as c8, type DeleteManyResult as c9, type FieldSource as cA, type FormattedSequenceHandle as cB, type FrozenSnapshotRef as cC, type GhostRecord as cD, type GrantCustodianOptions as cE, type GrantOptions as cF, type GuardViolation as cG, type HistoryConfig as cH, type HistoryEntry as cI, INDEXED_STORE_POLICY as cJ, type ImportCapability as cK, type InferOutput as cL, type InternalCollectionStats as cM, type IssueDelegationOptions as cN, type IssueMagicLinkGrantOptions as cO, type KeyringAuthenticator as cP, type KeyringAuthenticatorWrappingDEKs as cQ, type KeyringAuthenticatorWrappingKEK as cR, type KeyringFile as cS, type LiberateOptions as cT, type LiberateResult as cU, LinkEndpointError as cV, LinkIntegrityError as cW, type LinkOnDelete as cX, type LinkRow as cY, type LinkSetHandle as cZ, type LinkSpec as c_, type DerivationDescriptor as ca, type DescribeOptions as cb, type DescribedField as cc, type DirtyEntry as cd, type DryRunResult as ce, type DumpSchemaOptions as cf, ELEVATION_AUDIT_COLLECTION as cg, ElevatedHandle as ch, type EmbeddingDescriptor as ci, type EnrollAuthenticatorOptions as cj, type EnrollAuthenticatorWrappingDEKsOptions as ck, type EnrollAuthenticatorWrappingKEKOptions as cl, type EnrollRecoveryResult as cm, type ExportAccessibleOptions as cn, type ExportCapability as co, type ExportChunk as cp, type ExportFormat as cq, type ExportStreamOptions as cr, type FactorKind as cs, type FactorProofBundle as ct, type FactorRequirement as cu, type FenceDoc as cv, type FenceState$1 as cw, type FieldChange as cx, type FieldDescriptor as cy, type FieldMeta as cz, type DictionaryOptions as d, type RequestWithdrawalResult as d$, type ListPageResult as d0, type ListUsersOptions as d1, type LiveUserEnvelope as d2, type LocaleReadOptions as d3, Lru as d4, type LruOptions as d5, type LruStats as d6, MAGIC_LINK_CONTENT_INFO_PREFIX as d7, MAGIC_LINK_GRANTS_COLLECTION as d8, MAGIC_LINK_KEK_INFO_PREFIX as d9, PresenceHandle as dA, type PresencePeer as dB, type PublicEnvelopeField as dC, type PublicEnvelopeSchema as dD, type PublicEnvelopeText as dE, type PullMode as dF, type PullOptions as dG, type PullPolicy as dH, type PullResult as dI, type PushMode as dJ, type PushOptions as dK, type PushPolicy as dL, type PushResult as dM, type PutManyItemOptions as dN, type PutManyOptions as dO, type PutManyResult as dP, type QueryAcrossOptions as dQ, type QueryAcrossResult as dR, type QuickUnlockState as dS, QuickUnlockStore as dT, type ReAuthOperation as dU, type RecoverPassphraseInput as dV, type RecoverPassphraseResult as dW, type RecoverUserOptions as dX, type RecoveryProof as dY, type RejectWithdrawalOptions as dZ, type RequestWithdrawalOptions as d_, type MagicLinkGrantPayload as da, type MagicLinkGrantRecord as db, type MaterializedViewDescriptor as dc, MemoryRecipientSealer as dd, MemorySealingKeyProvider as de, NOYDB_BACKUP_VERSION as df, NOYDB_FORMAT_VERSION as dg, NOYDB_KEYRING_VERSION as dh, NOYDB_SYNC_VERSION as di, type NextOptions as dj, Noydb as dk, type NoydbEventMap as dl, type NoydbOptions as dm, type Assignment as dn, type OverlayViewDescriptor as dp, PUBLIC_ENVELOPE_FIELDS as dq, type PaperRecoveryDoc as dr, type PaperRecoveryEntry as ds, type PassphrasePolicy as dt, type PassphraseValidationResult as du, type Permission as dv, type Permissions as dw, type PersistedSchemaKind as dx, type PlaintextTranslatorContext as dy, type PlaintextTranslatorFn as dz, type StaticDictDescriptor as e, type UserInfo as e$, type ResolvedPublicEnvelopeSchema as e0, type RetrieveHit as e1, type RetrieveOptions as e2, type RevokeOptions as e3, type RotatePassphraseInput as e4, type RotateRecoveryOptions as e5, type RotateRecoveryResult as e6, SEALED_PASSPHRASE_RECORD_ID as e7, type SchemaDelta as e8, type SchemaIntrospection as e9, type SyncSchedulerStatus as eA, type SyncStatus as eB, type SyncTarget as eC, type SyncTargetRole as eD, SyncTransaction as eE, type SyncTransactionResult as eF, type TabChannel as eG, type TabCoordinationOptions as eH, type TabLockManager as eI, type TabPresence as eJ, type TabRole as eK, type TierMode as eL, type TransactionInvariant as eM, type TranslatorAuditEntry as eN, TxCollection as eO, type TxOp as eP, TxVault as eQ, USER_ENVELOPE_COLLECTION as eR, USER_ENVELOPE_MAX_BYTES as eS, type Unsubscribe as eT, type UpdateAuthenticatorOptions as eU, type UpdateContext as eV, type UpdateUserOptions as eW, UserApi as eX, type UserEnvelopeCheckGate as eY, UserEnvelopeOversizedError as eZ, type UserEnvelopePresented as e_, type SealedEnvelope as ea, type SealedPassphrase as eb, type SearchEntry as ec, type SearchOptions as ed, type SearchResult as ee, type SemanticType as ef, type SequenceHandle as eg, type SequenceOptions as eh, SequenceStore as ei, type SessionPolicy as ej, type SetPublicEnvelopeInput as ek, type ShamirRecoveryDoc as el, type ShamirRecoveryEntry as em, type SlotRewrapCeremony as en, type SlotRewrapContext as eo, type StandardSchemaV1 as ep, type StandardSchemaV1Issue as eq, type StandardSchemaV1SyncResult as er, type StoreAuth as es, type StoreAuthKind as et, type StoreCapabilities as eu, type StoreTime as ev, SyncEngine as ew, type SyncMetadata as ex, type SyncPolicy as ey, SyncScheduler as ez, dictCollectionName as f, requestWithdrawal as f$, type VaultBackup as f0, type VaultMeta as f1, type VaultPolicyOnDisk as f2, type VaultSchemaSnapshot as f3, type VaultSnapshot as f4, type WarningRules as f5, WeakPassphraseError as f6, type WeakPassphraseReason as f7, type WithArchiveOptions as f8, type WithdrawAccessibleOptions as f9, hasImportCapability as fA, hasRecoveryEnrolled as fB, isLinkCollectionName as fC, isMagicLinkGrantExpired as fD, isPublicEnvelope as fE, issueDelegation as fF, recoverPassphrase as fG, rotatePassphrase as fH, liberateVault as fI, listMagicLinkGrants as fJ, listUsers as fK, listUsersWithEnvelopes as fL, listWithdrawalRequests as fM, loadActiveDelegations as fN, loadPaperRecoveryEntries as fO, loadSealedPassphrase as fP, loadShamirRecoveryEntries as fQ, magicLinkGrantRecordId as fR, mintPaperRecoveryEntry as fS, mintShamirRecoveryEntry as fT, mintWrappedDeksBlob as fU, parseRsaOaepTlv as fV, parseSealedEnvelope as fW, readMagicLinkGrantRecord as fX, recoverUser as fY, rejectWithdrawal as fZ, removeAuthenticator as f_, type WithdrawResult as fa, type WithdrawalRequest as fb, WithdrawalRequestError as fc, type WithdrawalRequestStatus as fd, type WrappedDeksBlob as fe, type WriteConflict as ff, type WriteEvent as fg, type WriteHook as fh, type WriteQueue as fi, aesGcmOpen as fj, approveWithdrawal as fk, assertStrongPassphrase as fl, buildRecipientKeyringFile as fm, burnPaperRecoveryEntry as fn, compileSequenceFormat as fo, createNoydb as fp, createStore as fq, deriveMagicLinkContentKey as fr, enrollAuthenticator as fs, estimateEntropy as ft, evalComputedFields as fu, evaluateExportCapability as fv, evaluateImportCapability as fw, exportAccessibleData as fx, findAuthenticator as fy, hasExportCapability as fz, dictKey as g, resolveSchema as g0, resolveSequenceKey as g1, revokeDelegation as g2, revokeMagicLinkGrant as g3, runTransaction as g4, savePaperRecoveryEntries as g5, saveSealedPassphrase as g6, saveShamirRecoveryEntries as g7, sealRsaOaepTlv as g8, unwrapDeksFromBlob as g9, isQuorum as gA, runDrainBarrier as gB, unwrapDeksFromPaperEntry as ga, unwrapDeksFromShamirEntry as gb, unwrapMagicLinkGrant as gc, validatePassphrase as gd, validatePublicEnvelopeInput as ge, validateSchemaInput as gf, validateSchemaOutput as gg, withArchive as gh, withDeferredNumbering as gi, withdrawAccessibleData as gj, writeMagicLinkGrant as gk, changeSecret as gl, createOwnerKeyring as gm, ensureCollectionDEK as gn, grant as go, loadKeyring as gp, persistKeyring as gq, revoke as gr, updateAuthenticator as gs, updateKeyringIdentity as gt, type TxStrategy as gu, type AmendmentTxOptions as gv, type CoordinationProvider as gw, type DrainBarrierOptions as gx, type FenceState as gy, type WriterPresence as gz, enforceScript as h, inferScripts as i, isDictCollectionName as j, isDictKeyDescriptor as k, isStaticDictDescriptor as l, type SessionStrategy as m, createEnforcer as n, BLOB_CHUNKS_COLLECTION as o, BLOB_COLLECTION as p, BLOB_EVICTION_AUDIT_COLLECTION as q, BLOB_INDEX_COLLECTION as r, staticDict as s, BLOB_SLOTS_PREFIX as t, BLOB_VERSIONS_PREFIX as u, validateSessionPolicy as v, type BlobEvictionEntry as w, type BlobFieldPolicy as x, type BlobFieldsConfig as y, type BlobObject as z };
|