@dbsp/adapter-pgsql 3.5.0 → 4.0.0

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.
@@ -0,0 +1,34 @@
1
+ import { q as PgLedgerTarget, T as TransitionJournalQueryable, av as PgOrderedLedgerLocks, aw as PgLedgerShapeAllowance, ax as PgLedgerPhysicalShapeOutcome, a5 as readPgLedgerScopeCurrency } from './outcome-protocol-CACJDzli.js';
2
+ export { ay as PgCommitAcknowledgementAmbiguousError, az as appendPgLedgerClaim, aA as appendPgLedgerClaimGroup, aB as appendPgLedgerProgress, aC as appendPgLedgerRelease, aD as appendPgLedgerResolution, aE as appendPgLedgerResolutionGroup, aF as appendPgOutcomeResolution, aG as classifyPgLedgerPhysicalShape, aH as createPgLedgerShapeAllowance, aI as executePgDestructiveOutcome, aJ as lockPgJournalRun, aK as openPgOutcomeClaim, aL as openPgOutcomeClaimGroup, aM as readPgLedgerReservationsForPair, aN as recoverPgAdmittedReaddressPair, aO as recoverPgOutcomeClaim, aP as resolvePgDestructiveOutcome, aQ as resolvePgOutcomeClaimGroup } from './outcome-protocol-CACJDzli.js';
3
+ import '@dbsp/core';
4
+ import '@dbsp/core/internal';
5
+ import '@dbsp/types';
6
+
7
+ declare const postLockAdmissionEvidenceBrand: unique symbol;
8
+ /**
9
+ * Evidence that this session held the ordered ledger locks while it observed
10
+ * both the reference shape and marker/lineage currency.
11
+ */
12
+ interface PostLockAdmissionEvidence {
13
+ readonly homes: readonly PgLedgerTarget[];
14
+ readonly backendId: string;
15
+ readonly transactionId: string | undefined;
16
+ readonly [postLockAdmissionEvidenceBrand]: 'dbsp-post-lock-admission-evidence';
17
+ }
18
+ type PostLockAdmissionEvidenceSeams = {
19
+ readonly classifyShape: (executor: TransitionJournalQueryable, home: PgLedgerTarget, allowance?: PgLedgerShapeAllowance) => Promise<PgLedgerPhysicalShapeOutcome>;
20
+ readonly readCurrency: typeof readPgLedgerScopeCurrency;
21
+ readonly readSessionIdentity: (executor: TransitionJournalQueryable) => Promise<{
22
+ readonly backendId: string;
23
+ readonly transactionId: string | undefined;
24
+ }>;
25
+ };
26
+ /**
27
+ * The only constructor. It deliberately requires the opaque lock proof rather
28
+ * than a list of homes, so callers cannot claim a post-lock observation from
29
+ * plain JavaScript with a structural lookalike.
30
+ */
31
+ declare function createPostLockAdmissionEvidence(executor: TransitionJournalQueryable, locks: PgOrderedLedgerLocks, seams?: PostLockAdmissionEvidenceSeams, allowance?: PgLedgerShapeAllowance): Promise<PostLockAdmissionEvidence>;
32
+ declare function isPostLockAdmissionEvidence(value: unknown): value is PostLockAdmissionEvidence;
33
+
34
+ export { PgLedgerPhysicalShapeOutcome, PgLedgerShapeAllowance, type PostLockAdmissionEvidence, createPostLockAdmissionEvidence, isPostLockAdmissionEvidence };
@@ -0,0 +1,47 @@
1
+ import {
2
+ PgCommitAcknowledgementAmbiguousError,
3
+ appendPgLedgerClaim,
4
+ appendPgLedgerClaimGroup,
5
+ appendPgLedgerProgress,
6
+ appendPgLedgerRelease,
7
+ appendPgLedgerResolution,
8
+ appendPgLedgerResolutionGroup,
9
+ appendPgOutcomeResolution,
10
+ classifyPgLedgerPhysicalShape,
11
+ createPgLedgerShapeAllowance,
12
+ createPostLockAdmissionEvidence,
13
+ executePgDestructiveOutcome,
14
+ isPostLockAdmissionEvidence,
15
+ lockPgJournalRun,
16
+ openPgOutcomeClaim,
17
+ openPgOutcomeClaimGroup,
18
+ readPgLedgerReservationsForPair,
19
+ recoverPgAdmittedReaddressPair,
20
+ recoverPgOutcomeClaim,
21
+ resolvePgDestructiveOutcome,
22
+ resolvePgOutcomeClaimGroup
23
+ } from "./chunk-KZ3NLIZ5.js";
24
+ export {
25
+ PgCommitAcknowledgementAmbiguousError,
26
+ appendPgLedgerClaim,
27
+ appendPgLedgerClaimGroup,
28
+ appendPgLedgerProgress,
29
+ appendPgLedgerRelease,
30
+ appendPgLedgerResolution,
31
+ appendPgLedgerResolutionGroup,
32
+ appendPgOutcomeResolution,
33
+ classifyPgLedgerPhysicalShape,
34
+ createPgLedgerShapeAllowance,
35
+ createPostLockAdmissionEvidence,
36
+ executePgDestructiveOutcome,
37
+ isPostLockAdmissionEvidence,
38
+ lockPgJournalRun,
39
+ openPgOutcomeClaim,
40
+ openPgOutcomeClaimGroup,
41
+ readPgLedgerReservationsForPair,
42
+ recoverPgAdmittedReaddressPair,
43
+ recoverPgOutcomeClaim,
44
+ resolvePgDestructiveOutcome,
45
+ resolvePgOutcomeClaimGroup
46
+ };
47
+ //# sourceMappingURL=internal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}