@nicia-ai/typegraph 0.35.0 → 0.37.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.
- package/dist/backend/postgres/index.cjs +24 -24
- package/dist/backend/postgres/index.d.cts +6 -6
- package/dist/backend/postgres/index.d.ts +6 -6
- package/dist/backend/postgres/index.js +11 -11
- package/dist/backend/postgres/pglite.cjs +16 -16
- package/dist/backend/postgres/pglite.d.cts +3 -3
- package/dist/backend/postgres/pglite.d.ts +3 -3
- package/dist/backend/postgres/pglite.js +11 -11
- package/dist/backend/sqlite/index.cjs +22 -21
- package/dist/backend/sqlite/index.d.cts +11 -9
- package/dist/backend/sqlite/index.d.ts +11 -9
- package/dist/backend/sqlite/index.js +10 -9
- package/dist/backend/sqlite/libsql.cjs +15 -14
- package/dist/backend/sqlite/libsql.cjs.map +1 -1
- package/dist/backend/sqlite/libsql.d.cts +3 -3
- package/dist/backend/sqlite/libsql.d.ts +3 -3
- package/dist/backend/sqlite/libsql.js +11 -10
- package/dist/backend/sqlite/libsql.js.map +1 -1
- package/dist/backend/sqlite/local.cjs +30 -23
- package/dist/backend/sqlite/local.cjs.map +1 -1
- package/dist/backend/sqlite/local.d.cts +3 -3
- package/dist/backend/sqlite/local.d.ts +3 -3
- package/dist/backend/sqlite/local.js +18 -11
- package/dist/backend/sqlite/local.js.map +1 -1
- package/dist/{chunk-TCOCYN2P.cjs → chunk-27SSDCEP.cjs} +14 -14
- package/dist/{chunk-TCOCYN2P.cjs.map → chunk-27SSDCEP.cjs.map} +1 -1
- package/dist/{chunk-5AQIKK56.cjs → chunk-2N6EOBTH.cjs} +16 -16
- package/dist/{chunk-5AQIKK56.cjs.map → chunk-2N6EOBTH.cjs.map} +1 -1
- package/dist/{chunk-FN35DLCN.cjs → chunk-3C2RYI6L.cjs} +13 -107
- package/dist/chunk-3C2RYI6L.cjs.map +1 -0
- package/dist/{chunk-4JEZZJ6S.cjs → chunk-3DS7Z4T4.cjs} +39 -39
- package/dist/{chunk-4JEZZJ6S.cjs.map → chunk-3DS7Z4T4.cjs.map} +1 -1
- package/dist/{chunk-BLZDPRXT.cjs → chunk-3GH67G4Z.cjs} +5 -5
- package/dist/{chunk-BLZDPRXT.cjs.map → chunk-3GH67G4Z.cjs.map} +1 -1
- package/dist/{chunk-K3PPLHY7.js → chunk-3RWZPJKV.js} +24 -9
- package/dist/chunk-3RWZPJKV.js.map +1 -0
- package/dist/{chunk-QWEUYILR.js → chunk-3SLPDKHQ.js} +4 -4
- package/dist/chunk-3SLPDKHQ.js.map +1 -0
- package/dist/{chunk-5A6FNS6N.cjs → chunk-3XXGYU62.cjs} +11 -11
- package/dist/{chunk-5A6FNS6N.cjs.map → chunk-3XXGYU62.cjs.map} +1 -1
- package/dist/{chunk-JBTOYDMN.js → chunk-44TA22QT.js} +58 -11
- package/dist/chunk-44TA22QT.js.map +1 -0
- package/dist/{chunk-UES55P7G.js → chunk-552KNYQJ.js} +2652 -409
- package/dist/chunk-552KNYQJ.js.map +1 -0
- package/dist/{chunk-VPYHY3LJ.cjs → chunk-5KEQ74YU.cjs} +14 -14
- package/dist/chunk-5KEQ74YU.cjs.map +1 -0
- package/dist/{chunk-Q5TEXCTB.js → chunk-5KPNWT6X.js} +3 -3
- package/dist/{chunk-Q5TEXCTB.js.map → chunk-5KPNWT6X.js.map} +1 -1
- package/dist/{chunk-MP2JQKSG.js → chunk-5PNMDJ7J.js} +108 -5
- package/dist/chunk-5PNMDJ7J.js.map +1 -0
- package/dist/{chunk-AW4A3P5A.cjs → chunk-5VQM6VWP.cjs} +2 -2
- package/dist/{chunk-AW4A3P5A.cjs.map → chunk-5VQM6VWP.cjs.map} +1 -1
- package/dist/{chunk-A3W7QG7K.js → chunk-5WWVZMVX.js} +2 -2
- package/dist/{chunk-A3W7QG7K.js.map → chunk-5WWVZMVX.js.map} +1 -1
- package/dist/{chunk-FACJJWGF.cjs → chunk-6EEO3OVU.cjs} +7 -7
- package/dist/{chunk-FACJJWGF.cjs.map → chunk-6EEO3OVU.cjs.map} +1 -1
- package/dist/{chunk-LGEALRC6.cjs → chunk-BVRDGYXQ.cjs} +113 -4
- package/dist/chunk-BVRDGYXQ.cjs.map +1 -0
- package/dist/{chunk-GSQ6NPH6.cjs → chunk-DEFQM7JU.cjs} +7 -7
- package/dist/{chunk-GSQ6NPH6.cjs.map → chunk-DEFQM7JU.cjs.map} +1 -1
- package/dist/{chunk-EM3CWPND.cjs → chunk-DIQ3AV5W.cjs} +574 -268
- package/dist/chunk-DIQ3AV5W.cjs.map +1 -0
- package/dist/{chunk-FPIZFYHE.js → chunk-EXU3RASM.js} +74 -15
- package/dist/chunk-EXU3RASM.js.map +1 -0
- package/dist/{chunk-H7YNSMA7.cjs → chunk-HAHNRASW.cjs} +20 -2
- package/dist/chunk-HAHNRASW.cjs.map +1 -0
- package/dist/{chunk-FL472AMI.cjs → chunk-IP3CGGPA.cjs} +8 -8
- package/dist/{chunk-FL472AMI.cjs.map → chunk-IP3CGGPA.cjs.map} +1 -1
- package/dist/{chunk-4TOD4LBZ.cjs → chunk-IPSVVTWT.cjs} +94 -35
- package/dist/chunk-IPSVVTWT.cjs.map +1 -0
- package/dist/{chunk-RGP33ZJ5.js → chunk-IXGYRP2P.js} +184 -92
- package/dist/chunk-IXGYRP2P.js.map +1 -0
- package/dist/{chunk-3TWF3SH4.js → chunk-J4IUSYFF.js} +251 -121
- package/dist/chunk-J4IUSYFF.js.map +1 -0
- package/dist/{chunk-O7UN7OXA.cjs → chunk-JBNOGRKW.cjs} +318 -188
- package/dist/chunk-JBNOGRKW.cjs.map +1 -0
- package/dist/{chunk-WDBCBWC4.js → chunk-K3Q3LJY3.js} +520 -221
- package/dist/chunk-K3Q3LJY3.js.map +1 -0
- package/dist/{chunk-OR5ZA5WP.js → chunk-K5UBVGJN.js} +4 -4
- package/dist/{chunk-OR5ZA5WP.js.map → chunk-K5UBVGJN.js.map} +1 -1
- package/dist/{chunk-UZV3AZKF.js → chunk-KQJ54OG5.js} +3 -3
- package/dist/{chunk-UZV3AZKF.js.map → chunk-KQJ54OG5.js.map} +1 -1
- package/dist/{chunk-QOTI55H7.js → chunk-L7HQ2OSI.js} +4 -4
- package/dist/{chunk-QOTI55H7.js.map → chunk-L7HQ2OSI.js.map} +1 -1
- package/dist/{chunk-55MZDDZV.js → chunk-M6VES7V6.js} +4 -4
- package/dist/{chunk-55MZDDZV.js.map → chunk-M6VES7V6.js.map} +1 -1
- package/dist/{chunk-J7WFGBJR.cjs → chunk-NBP2WTJW.cjs} +3249 -1006
- package/dist/chunk-NBP2WTJW.cjs.map +1 -0
- package/dist/{chunk-CK5BVQOW.cjs → chunk-NUIG3BCV.cjs} +100 -85
- package/dist/chunk-NUIG3BCV.cjs.map +1 -0
- package/dist/{chunk-EMF62TZG.cjs → chunk-NXQFATMF.cjs} +269 -177
- package/dist/chunk-NXQFATMF.cjs.map +1 -0
- package/dist/{chunk-KBGQIPRQ.js → chunk-PC2UBAUB.js} +20 -3
- package/dist/chunk-PC2UBAUB.js.map +1 -0
- package/dist/chunk-QARBLBXT.cjs +219 -0
- package/dist/chunk-QARBLBXT.cjs.map +1 -0
- package/dist/{chunk-6FR2MMS6.js → chunk-QERAIDRJ.js} +45 -4
- package/dist/chunk-QERAIDRJ.js.map +1 -0
- package/dist/chunk-QSXTWU4U.cjs +12 -0
- package/dist/{chunk-GUR2FNB5.cjs.map → chunk-QSXTWU4U.cjs.map} +1 -1
- package/dist/{chunk-QNKSQTKQ.js → chunk-RCVLFTCT.js} +49 -19
- package/dist/chunk-RCVLFTCT.js.map +1 -0
- package/dist/{chunk-VSPCZAXF.js → chunk-RRSNR3TP.js} +3 -3
- package/dist/{chunk-VSPCZAXF.js.map → chunk-RRSNR3TP.js.map} +1 -1
- package/dist/{chunk-WJT7OU7E.cjs → chunk-TGOMW4MB.cjs} +129 -98
- package/dist/chunk-TGOMW4MB.cjs.map +1 -0
- package/dist/{chunk-KMI7LYAF.js → chunk-TKT2XHED.js} +8 -8
- package/dist/{chunk-KMI7LYAF.js.map → chunk-TKT2XHED.js.map} +1 -1
- package/dist/{chunk-RGPG7EOJ.js → chunk-TPF25IG6.js} +3 -3
- package/dist/{chunk-RGPG7EOJ.js.map → chunk-TPF25IG6.js.map} +1 -1
- package/dist/{chunk-5SEGFTZX.js → chunk-UGZUAYAR.js} +3 -3
- package/dist/{chunk-5SEGFTZX.js.map → chunk-UGZUAYAR.js.map} +1 -1
- package/dist/{chunk-VHMPG6UL.js → chunk-UXLSNRYL.js} +11 -105
- package/dist/chunk-UXLSNRYL.js.map +1 -0
- package/dist/{chunk-FRV5Q5IO.js → chunk-UYQMBBWJ.js} +3 -3
- package/dist/{chunk-FRV5Q5IO.js.map → chunk-UYQMBBWJ.js.map} +1 -1
- package/dist/{chunk-UUT7UN2N.cjs → chunk-VGDDG3XJ.cjs} +7 -7
- package/dist/{chunk-UUT7UN2N.cjs.map → chunk-VGDDG3XJ.cjs.map} +1 -1
- package/dist/{chunk-CZQ3FO2Q.js → chunk-VKGKDOKR.js} +56 -21
- package/dist/chunk-VKGKDOKR.js.map +1 -0
- package/dist/{chunk-CTTSDJLY.cjs → chunk-VL2V6PEN.cjs} +11 -11
- package/dist/{chunk-CTTSDJLY.cjs.map → chunk-VL2V6PEN.cjs.map} +1 -1
- package/dist/{chunk-XOX22WHL.cjs → chunk-WOJMKB3N.cjs} +125 -90
- package/dist/chunk-WOJMKB3N.cjs.map +1 -0
- package/dist/{chunk-UMDVATGY.cjs → chunk-WWFHO375.cjs} +6 -6
- package/dist/{chunk-UMDVATGY.cjs.map → chunk-WWFHO375.cjs.map} +1 -1
- package/dist/{chunk-I7ZUZKFD.js → chunk-XGPUQ56G.js} +3 -3
- package/dist/{chunk-I7ZUZKFD.js.map → chunk-XGPUQ56G.js.map} +1 -1
- package/dist/{chunk-D7ZEOS56.cjs → chunk-XGU7DZDA.cjs} +74 -14
- package/dist/chunk-XGU7DZDA.cjs.map +1 -0
- package/dist/{chunk-S55OV6PW.cjs → chunk-XPCZADMT.cjs} +54 -11
- package/dist/chunk-XPCZADMT.cjs.map +1 -0
- package/dist/{chunk-T2WUSPDA.js → chunk-XWV4JT34.js} +3 -3
- package/dist/{chunk-T2WUSPDA.js.map → chunk-XWV4JT34.js.map} +1 -1
- package/dist/chunk-YTSN73ND.js +212 -0
- package/dist/chunk-YTSN73ND.js.map +1 -0
- package/dist/{ddl-CZz7a0E8.d.cts → ddl-BD-ZfKeX.d.cts} +3 -3
- package/dist/{ddl-C2rZ-Aen.d.ts → ddl-CS0KUVwB.d.ts} +3 -3
- package/dist/{extension-types-ixRpJVUp.d.cts → extension-types-BM2ACfYO.d.cts} +6 -1
- package/dist/{extension-types-ixRpJVUp.d.ts → extension-types-BM2ACfYO.d.ts} +6 -1
- package/dist/{fulltext-strategy-CDkSSYhq.d.cts → fulltext-strategy-C27vXaeB.d.cts} +127 -8
- package/dist/{fulltext-strategy-B57yvC5Q.d.ts → fulltext-strategy-DebsMrqg.d.ts} +127 -8
- package/dist/graph-extension/index.cjs +19 -19
- package/dist/graph-extension/index.d.cts +4 -4
- package/dist/graph-extension/index.d.ts +4 -4
- package/dist/graph-extension/index.js +4 -4
- package/dist/graph-merge/index.cjs +88 -88
- package/dist/graph-merge/index.cjs.map +1 -1
- package/dist/graph-merge/index.d.cts +6 -6
- package/dist/graph-merge/index.d.ts +6 -6
- package/dist/graph-merge/index.js +19 -19
- package/dist/graph-merge/index.js.map +1 -1
- package/dist/{index-Bks_3HHK.d.cts → index-BPM59vsg.d.cts} +119 -7
- package/dist/{index-6CSUAq-x.d.ts → index-BeacbPoe.d.ts} +119 -7
- package/dist/index.cjs +230 -185
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -11
- package/dist/index.d.ts +11 -11
- package/dist/index.js +53 -40
- package/dist/index.js.map +1 -1
- package/dist/indexes/index.cjs +30 -21
- package/dist/indexes/index.d.cts +5 -5
- package/dist/indexes/index.d.ts +5 -5
- package/dist/indexes/index.js +8 -7
- package/dist/interchange/index.cjs +208 -30
- package/dist/interchange/index.cjs.map +1 -1
- package/dist/interchange/index.d.cts +25 -8
- package/dist/interchange/index.d.ts +25 -8
- package/dist/interchange/index.js +191 -11
- package/dist/interchange/index.js.map +1 -1
- package/dist/{manager-DwQi8eV0.d.cts → manager-D00_NXvT.d.ts} +11 -2
- package/dist/{manager-ejUCB52T.d.ts → manager-nU1vTJLy.d.cts} +11 -2
- package/dist/{materialize-indexes-B4e9360H.d.cts → materialize-indexes-CuR3gAZb.d.cts} +8 -2
- package/dist/{materialize-indexes-te9TPMMJ.d.ts → materialize-indexes-zK2J_flP.d.ts} +8 -2
- package/dist/{postgres-DQ5R6rzV.d.ts → postgres-IaBA4RgE.d.ts} +1 -1
- package/dist/{postgres-CfEqsRMp.d.cts → postgres-YrYmPlaU.d.cts} +1 -1
- package/dist/profiler/index.cjs +3 -3
- package/dist/profiler/index.d.cts +7 -7
- package/dist/profiler/index.d.ts +7 -7
- package/dist/profiler/index.js +2 -2
- package/dist/provenance/index.cjs +32 -33
- package/dist/provenance/index.cjs.map +1 -1
- package/dist/provenance/index.d.cts +5 -5
- package/dist/provenance/index.d.ts +5 -5
- package/dist/provenance/index.js +5 -6
- package/dist/provenance/index.js.map +1 -1
- package/dist/schema/index.cjs +35 -35
- package/dist/schema/index.d.cts +7 -7
- package/dist/schema/index.d.ts +7 -7
- package/dist/schema/index.js +11 -11
- package/dist/{sqlite-DvQndLky.d.ts → sqlite-BUOHPx7p.d.ts} +1 -1
- package/dist/{sqlite-D7zBinNR.d.cts → sqlite-Pp8O19WE.d.cts} +1 -1
- package/dist/{store-view-CKbHFRnn.d.ts → store-view-ANL6mTph.d.ts} +457 -57
- package/dist/{store-view-BSpqvAxK.d.cts → store-view-X96Rd00T.d.cts} +457 -57
- package/dist/{types-Bv9DcS_E.d.cts → types-r-Zyq2Hz.d.cts} +2 -2
- package/dist/{types-CoxuV7EJ.d.ts → types-wsvuBgPK.d.ts} +2 -2
- package/dist/where-CJOpJj3a.d.ts +36 -0
- package/dist/where-K3uBP33l.d.cts +36 -0
- package/package.json +1 -1
- package/dist/chunk-3TWF3SH4.js.map +0 -1
- package/dist/chunk-4TOD4LBZ.cjs.map +0 -1
- package/dist/chunk-6FR2MMS6.js.map +0 -1
- package/dist/chunk-CK5BVQOW.cjs.map +0 -1
- package/dist/chunk-CZQ3FO2Q.js.map +0 -1
- package/dist/chunk-D7ZEOS56.cjs.map +0 -1
- package/dist/chunk-EM3CWPND.cjs.map +0 -1
- package/dist/chunk-EMF62TZG.cjs.map +0 -1
- package/dist/chunk-EOLERH7Y.cjs +0 -40
- package/dist/chunk-EOLERH7Y.cjs.map +0 -1
- package/dist/chunk-FN35DLCN.cjs.map +0 -1
- package/dist/chunk-FPIZFYHE.js.map +0 -1
- package/dist/chunk-GUR2FNB5.cjs +0 -12
- package/dist/chunk-H7YNSMA7.cjs.map +0 -1
- package/dist/chunk-J7WFGBJR.cjs.map +0 -1
- package/dist/chunk-JBTOYDMN.js.map +0 -1
- package/dist/chunk-K3PPLHY7.js.map +0 -1
- package/dist/chunk-KBGQIPRQ.js.map +0 -1
- package/dist/chunk-LGEALRC6.cjs.map +0 -1
- package/dist/chunk-MP2JQKSG.js.map +0 -1
- package/dist/chunk-O7UN7OXA.cjs.map +0 -1
- package/dist/chunk-QNKSQTKQ.js.map +0 -1
- package/dist/chunk-QWEUYILR.js.map +0 -1
- package/dist/chunk-RGP33ZJ5.js.map +0 -1
- package/dist/chunk-S55OV6PW.cjs.map +0 -1
- package/dist/chunk-UES55P7G.js.map +0 -1
- package/dist/chunk-UT3S4SEN.js +0 -31
- package/dist/chunk-UT3S4SEN.js.map +0 -1
- package/dist/chunk-VHMPG6UL.js.map +0 -1
- package/dist/chunk-VPYHY3LJ.cjs.map +0 -1
- package/dist/chunk-WDBCBWC4.js.map +0 -1
- package/dist/chunk-WJT7OU7E.cjs.map +0 -1
- package/dist/chunk-XOX22WHL.cjs.map +0 -1
- package/dist/where-7RKFOsXt.d.ts +0 -11
- package/dist/where-DdMIXOtH.d.cts +0 -11
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { K as KindEntity } from './extension-types-
|
|
2
|
-
import { M as MaterializeIndexesResult } from './materialize-indexes-
|
|
1
|
+
import { K as KindEntity } from './extension-types-BM2ACfYO.cjs';
|
|
2
|
+
import { M as MaterializeIndexesResult } from './materialize-indexes-CuR3gAZb.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* TypeGraph Error Hierarchy
|
|
@@ -501,6 +501,118 @@ declare class ConfigurationError extends TypeGraphError {
|
|
|
501
501
|
suggestion?: string;
|
|
502
502
|
});
|
|
503
503
|
}
|
|
504
|
+
/**
|
|
505
|
+
* Thrown when an iterative graph algorithm exhausts its caller-visible round
|
|
506
|
+
* budget before reaching its convergence predicate.
|
|
507
|
+
*/
|
|
508
|
+
declare class GraphAlgorithmConvergenceError extends TypeGraphError {
|
|
509
|
+
constructor(algorithm: string, maxIterations: number);
|
|
510
|
+
}
|
|
511
|
+
/** Stable reasons a weighted traversal can reject an edge's weight value. */
|
|
512
|
+
type InvalidEdgeWeightReason = "missing" | "negative" | "non_numeric" | "out_of_range";
|
|
513
|
+
/** Details for InvalidEdgeWeightError. */
|
|
514
|
+
type InvalidEdgeWeightErrorDetails = Readonly<{
|
|
515
|
+
/** Id of the first offending edge, in binary-collation order. */
|
|
516
|
+
edgeId: string;
|
|
517
|
+
/** Kind of the offending edge. */
|
|
518
|
+
edgeKind: string;
|
|
519
|
+
/** The audited weight property. */
|
|
520
|
+
property: string;
|
|
521
|
+
/** Why the weight was rejected. */
|
|
522
|
+
reason: InvalidEdgeWeightReason;
|
|
523
|
+
/** The offending value, when one was present and renderable. */
|
|
524
|
+
value?: string;
|
|
525
|
+
}>;
|
|
526
|
+
/**
|
|
527
|
+
* Thrown when a weighted graph algorithm finds an edge whose weight property
|
|
528
|
+
* violates the weighted-traversal contract (missing without a default,
|
|
529
|
+
* non-numeric, or negative). Raised before any traversal rounds run, so a
|
|
530
|
+
* weighted call either observes a fully valid weight domain or fails fast.
|
|
531
|
+
*/
|
|
532
|
+
declare class InvalidEdgeWeightError extends TypeGraphError {
|
|
533
|
+
readonly details: InvalidEdgeWeightErrorDetails;
|
|
534
|
+
constructor(details: InvalidEdgeWeightErrorDetails);
|
|
535
|
+
}
|
|
536
|
+
/** Thrown when an operation requires a backend capability it does not expose. */
|
|
537
|
+
declare class UnsupportedBackendCapabilityError extends TypeGraphError {
|
|
538
|
+
constructor(operation: string, capability: string, details?: Readonly<Record<string, unknown>>, suggestion?: string);
|
|
539
|
+
}
|
|
540
|
+
/** Stable reasons an intentionally trusted initial import can be rejected. */
|
|
541
|
+
type TrustedImportErrorReason = "backend_unsupported" | "database_not_empty" | "fulltext_unsupported" | "history_unsupported" | "invalid_stream" | "revision_tracking_unsupported" | "uniqueness_unsupported" | "vector_unsupported";
|
|
542
|
+
/** Thrown when the trusted initial-import contract is unavailable or violated. */
|
|
543
|
+
declare class TrustedImportError extends TypeGraphError {
|
|
544
|
+
constructor(message: string, reason: TrustedImportErrorReason, details?: Readonly<Record<string, unknown>>, options?: Readonly<{
|
|
545
|
+
cause?: unknown;
|
|
546
|
+
suggestion?: string;
|
|
547
|
+
}>);
|
|
548
|
+
}
|
|
549
|
+
/**
|
|
550
|
+
* The stable `details.code` values raised by the recorded-capture guards on a
|
|
551
|
+
* history- or revision-tracked store. These are the sanctioned branch points
|
|
552
|
+
* for a portable caller that must pick a transaction strategy without
|
|
553
|
+
* substring-matching {@link ConfigurationError} messages.
|
|
554
|
+
*
|
|
555
|
+
* - `RECORDED_CAPTURE_REQUIRES_CALLBACK_TRANSACTION`: `store.withTransaction`
|
|
556
|
+
* was called on a history-enabled store, which has no flush point before the
|
|
557
|
+
* caller commits — use `store.withRecordedTransaction` instead.
|
|
558
|
+
* - `RECORDED_CAPTURE_RAW_SQL_DISABLED`: a raw SQL escape (`tx.sql`,
|
|
559
|
+
* `backend.executeStatement`/`executeDdl`) was reached on a history-enabled
|
|
560
|
+
* store, where it would bypass recorded-time capture.
|
|
561
|
+
* - `REVISION_TRACKING_RAW_SQL_DISABLED`: the same raw SQL escape on a
|
|
562
|
+
* revision-tracked store, where it would bypass the revision anchor.
|
|
563
|
+
*
|
|
564
|
+
* @see isRecordedCaptureGuardError
|
|
565
|
+
*/
|
|
566
|
+
declare const RECORDED_CAPTURE_GUARD_CODES: readonly ["RECORDED_CAPTURE_REQUIRES_CALLBACK_TRANSACTION", "RECORDED_CAPTURE_RAW_SQL_DISABLED", "REVISION_TRACKING_RAW_SQL_DISABLED"];
|
|
567
|
+
/** A stable, branchable code raised by a recorded-capture guard. */
|
|
568
|
+
type RecordedCaptureGuardCode = (typeof RECORDED_CAPTURE_GUARD_CODES)[number];
|
|
569
|
+
/**
|
|
570
|
+
* A {@link ConfigurationError} narrowed to carry a {@link RecordedCaptureGuardCode}
|
|
571
|
+
* in `details.code` — the shape {@link isRecordedCaptureGuardError} guarantees.
|
|
572
|
+
* `C` narrows `details.code` to a single code when the guard was called with a
|
|
573
|
+
* specific one; it defaults to the full union.
|
|
574
|
+
*/
|
|
575
|
+
type RecordedCaptureGuardError<C extends RecordedCaptureGuardCode = RecordedCaptureGuardCode> = ConfigurationError & Readonly<{
|
|
576
|
+
details: Readonly<{
|
|
577
|
+
code: C;
|
|
578
|
+
}>;
|
|
579
|
+
}>;
|
|
580
|
+
/**
|
|
581
|
+
* Type guard for the recorded-capture guard errors, so a portable caller can
|
|
582
|
+
* branch on the invariant a store enforced instead of substring-matching the
|
|
583
|
+
* message. Pass `code` to narrow to a single guard; omit it to match any.
|
|
584
|
+
*
|
|
585
|
+
* Distinguishes "history capture forbids raw SQL here" from "this backend has
|
|
586
|
+
* no transactions" (the latter carries no guard code — see
|
|
587
|
+
* `TransactionContext.sqlAvailability` for the capability discriminant).
|
|
588
|
+
*
|
|
589
|
+
* Passing `code` also narrows `details.code` to that literal on the guarded
|
|
590
|
+
* branch, so a caller can read the payload without re-checking.
|
|
591
|
+
*
|
|
592
|
+
* @example
|
|
593
|
+
* ```typescript
|
|
594
|
+
* // `withTransaction` is a compile error on a history-enabled store, so widen
|
|
595
|
+
* // to the base Store surface to reach the runtime guard this branches on.
|
|
596
|
+
* const store: Store<typeof graph> = historyStore;
|
|
597
|
+
* try {
|
|
598
|
+
* store.withTransaction(externalTx);
|
|
599
|
+
* } catch (error) {
|
|
600
|
+
* if (
|
|
601
|
+
* isRecordedCaptureGuardError(
|
|
602
|
+
* error,
|
|
603
|
+
* "RECORDED_CAPTURE_REQUIRES_CALLBACK_TRANSACTION",
|
|
604
|
+
* )
|
|
605
|
+
* ) {
|
|
606
|
+
* // error.details.code is now the literal, not the union.
|
|
607
|
+
* await historyStore.withRecordedTransaction(externalTx, run);
|
|
608
|
+
* } else {
|
|
609
|
+
* throw error;
|
|
610
|
+
* }
|
|
611
|
+
* }
|
|
612
|
+
* ```
|
|
613
|
+
*/
|
|
614
|
+
declare function isRecordedCaptureGuardError<C extends RecordedCaptureGuardCode>(error: unknown, code: C): error is RecordedCaptureGuardError<C>;
|
|
615
|
+
declare function isRecordedCaptureGuardError(error: unknown): error is RecordedCaptureGuardError;
|
|
504
616
|
/**
|
|
505
617
|
* Why a store's strategy-owned storage is not usable on the current
|
|
506
618
|
* connection. Drives the {@link StoreNotInitializedError} message and
|
|
@@ -525,14 +637,14 @@ type StoreNotInitializedErrorDetails = Readonly<{
|
|
|
525
637
|
reason: StoreNotInitializedReason;
|
|
526
638
|
}> & Readonly<Record<string, unknown>>;
|
|
527
639
|
/**
|
|
528
|
-
* Thrown when a fulltext-dependent operation runs against a
|
|
529
|
-
* whose strategy-owned storage has not been durably materialized.
|
|
640
|
+
* Thrown when a fulltext- or vector-dependent operation runs against a
|
|
641
|
+
* connection whose strategy-owned storage has not been durably materialized.
|
|
530
642
|
*
|
|
531
643
|
* `createStore()` is a synchronous, zero-I/O attach: it never creates
|
|
532
644
|
* tables, repairs DDL, or writes materialization markers. The durable
|
|
533
645
|
* marker is written exclusively by the async boot path
|
|
534
|
-
* (`createStoreWithSchema`). When a fulltext read/write — or
|
|
535
|
-
* adopted/business transaction — observes no valid marker, it refuses
|
|
646
|
+
* (`createStoreWithSchema`). When a fulltext or embedding read/write — or
|
|
647
|
+
* an adopted/business transaction — observes no valid marker, it refuses
|
|
536
648
|
* loudly here instead of lazily emitting DDL on the hot path.
|
|
537
649
|
*/
|
|
538
650
|
declare class StoreNotInitializedError extends TypeGraphError {
|
|
@@ -698,4 +810,4 @@ declare function isConstraintError(error: unknown): boolean;
|
|
|
698
810
|
*/
|
|
699
811
|
declare function getErrorSuggestion(error: unknown): string | undefined;
|
|
700
812
|
|
|
701
|
-
export {
|
|
813
|
+
export { type TrustedImportErrorReason as $, type RecordedCaptureGuardCode as A, BackendDisposedError as B, CardinalityError as C, DatabaseOperationError as D, EagerMaterializationError as E, type RecordedCaptureGuardError as F, GraphAlgorithmConvergenceError as G, RestrictedDeleteError as H, InvalidEdgeWeightError as I, type RestrictedDeleteErrorDetails as J, KindNotFoundError as K, type SchemaContentConflictErrorDetails as L, MigrationError as M, NodeConstraintNotFoundError as N, SchemaMismatchError as O, type SchemaMismatchErrorDetails as P, StaleVersionError as Q, RECORDED_CAPTURE_GUARD_CODES as R, SchemaContentConflictError as S, TypeGraphError as T, type StaleVersionErrorDetails as U, type ValidationIssue as V, StoreNotInitializedError as W, type StoreNotInitializedErrorDetails as X, type StoreNotInitializedReason as Y, TransactionClosedError as Z, TrustedImportError as _, ValidationError as a, type TypeGraphErrorOptions as a0, UniquenessError as a1, type UniquenessErrorDetails as a2, UnsupportedBackendCapabilityError as a3, UnsupportedPredicateError as a4, type ValidationErrorDetails as a5, VersionConflictError as a6, type VersionConflictErrorDetails as a7, getErrorSuggestion as a8, isConstraintError as a9, isRecordedCaptureGuardError as aa, isSystemError as ab, isTypeGraphError as ac, isUserRecoverable as ad, type CardinalityErrorDetails as b, CompilerInvariantError as c, ConfigurationError as d, type DatabaseOperationErrorDetails as e, DisjointError as f, type DisjointErrorDetails as g, type EagerMaterializationErrorDetails as h, EdgeNotFoundError as i, type EdgeNotFoundErrorDetails as j, EmbeddingDimensionChangedError as k, type EmbeddingDimensionChangedErrorDetails as l, EndpointError as m, type EndpointErrorDetails as n, EndpointNotFoundError as o, type EndpointNotFoundErrorDetails as p, type ErrorCategory as q, type InvalidEdgeWeightErrorDetails as r, type InvalidEdgeWeightReason as s, type KindNotFoundErrorDetails as t, type MigrationErrorDetails as u, type NodeConstraintNotFoundErrorDetails as v, NodeIndexNotFoundError as w, type NodeIndexNotFoundErrorDetails as x, NodeNotFoundError as y, type NodeNotFoundErrorDetails as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { K as KindEntity } from './extension-types-
|
|
2
|
-
import { M as MaterializeIndexesResult } from './materialize-indexes-
|
|
1
|
+
import { K as KindEntity } from './extension-types-BM2ACfYO.js';
|
|
2
|
+
import { M as MaterializeIndexesResult } from './materialize-indexes-zK2J_flP.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* TypeGraph Error Hierarchy
|
|
@@ -501,6 +501,118 @@ declare class ConfigurationError extends TypeGraphError {
|
|
|
501
501
|
suggestion?: string;
|
|
502
502
|
});
|
|
503
503
|
}
|
|
504
|
+
/**
|
|
505
|
+
* Thrown when an iterative graph algorithm exhausts its caller-visible round
|
|
506
|
+
* budget before reaching its convergence predicate.
|
|
507
|
+
*/
|
|
508
|
+
declare class GraphAlgorithmConvergenceError extends TypeGraphError {
|
|
509
|
+
constructor(algorithm: string, maxIterations: number);
|
|
510
|
+
}
|
|
511
|
+
/** Stable reasons a weighted traversal can reject an edge's weight value. */
|
|
512
|
+
type InvalidEdgeWeightReason = "missing" | "negative" | "non_numeric" | "out_of_range";
|
|
513
|
+
/** Details for InvalidEdgeWeightError. */
|
|
514
|
+
type InvalidEdgeWeightErrorDetails = Readonly<{
|
|
515
|
+
/** Id of the first offending edge, in binary-collation order. */
|
|
516
|
+
edgeId: string;
|
|
517
|
+
/** Kind of the offending edge. */
|
|
518
|
+
edgeKind: string;
|
|
519
|
+
/** The audited weight property. */
|
|
520
|
+
property: string;
|
|
521
|
+
/** Why the weight was rejected. */
|
|
522
|
+
reason: InvalidEdgeWeightReason;
|
|
523
|
+
/** The offending value, when one was present and renderable. */
|
|
524
|
+
value?: string;
|
|
525
|
+
}>;
|
|
526
|
+
/**
|
|
527
|
+
* Thrown when a weighted graph algorithm finds an edge whose weight property
|
|
528
|
+
* violates the weighted-traversal contract (missing without a default,
|
|
529
|
+
* non-numeric, or negative). Raised before any traversal rounds run, so a
|
|
530
|
+
* weighted call either observes a fully valid weight domain or fails fast.
|
|
531
|
+
*/
|
|
532
|
+
declare class InvalidEdgeWeightError extends TypeGraphError {
|
|
533
|
+
readonly details: InvalidEdgeWeightErrorDetails;
|
|
534
|
+
constructor(details: InvalidEdgeWeightErrorDetails);
|
|
535
|
+
}
|
|
536
|
+
/** Thrown when an operation requires a backend capability it does not expose. */
|
|
537
|
+
declare class UnsupportedBackendCapabilityError extends TypeGraphError {
|
|
538
|
+
constructor(operation: string, capability: string, details?: Readonly<Record<string, unknown>>, suggestion?: string);
|
|
539
|
+
}
|
|
540
|
+
/** Stable reasons an intentionally trusted initial import can be rejected. */
|
|
541
|
+
type TrustedImportErrorReason = "backend_unsupported" | "database_not_empty" | "fulltext_unsupported" | "history_unsupported" | "invalid_stream" | "revision_tracking_unsupported" | "uniqueness_unsupported" | "vector_unsupported";
|
|
542
|
+
/** Thrown when the trusted initial-import contract is unavailable or violated. */
|
|
543
|
+
declare class TrustedImportError extends TypeGraphError {
|
|
544
|
+
constructor(message: string, reason: TrustedImportErrorReason, details?: Readonly<Record<string, unknown>>, options?: Readonly<{
|
|
545
|
+
cause?: unknown;
|
|
546
|
+
suggestion?: string;
|
|
547
|
+
}>);
|
|
548
|
+
}
|
|
549
|
+
/**
|
|
550
|
+
* The stable `details.code` values raised by the recorded-capture guards on a
|
|
551
|
+
* history- or revision-tracked store. These are the sanctioned branch points
|
|
552
|
+
* for a portable caller that must pick a transaction strategy without
|
|
553
|
+
* substring-matching {@link ConfigurationError} messages.
|
|
554
|
+
*
|
|
555
|
+
* - `RECORDED_CAPTURE_REQUIRES_CALLBACK_TRANSACTION`: `store.withTransaction`
|
|
556
|
+
* was called on a history-enabled store, which has no flush point before the
|
|
557
|
+
* caller commits — use `store.withRecordedTransaction` instead.
|
|
558
|
+
* - `RECORDED_CAPTURE_RAW_SQL_DISABLED`: a raw SQL escape (`tx.sql`,
|
|
559
|
+
* `backend.executeStatement`/`executeDdl`) was reached on a history-enabled
|
|
560
|
+
* store, where it would bypass recorded-time capture.
|
|
561
|
+
* - `REVISION_TRACKING_RAW_SQL_DISABLED`: the same raw SQL escape on a
|
|
562
|
+
* revision-tracked store, where it would bypass the revision anchor.
|
|
563
|
+
*
|
|
564
|
+
* @see isRecordedCaptureGuardError
|
|
565
|
+
*/
|
|
566
|
+
declare const RECORDED_CAPTURE_GUARD_CODES: readonly ["RECORDED_CAPTURE_REQUIRES_CALLBACK_TRANSACTION", "RECORDED_CAPTURE_RAW_SQL_DISABLED", "REVISION_TRACKING_RAW_SQL_DISABLED"];
|
|
567
|
+
/** A stable, branchable code raised by a recorded-capture guard. */
|
|
568
|
+
type RecordedCaptureGuardCode = (typeof RECORDED_CAPTURE_GUARD_CODES)[number];
|
|
569
|
+
/**
|
|
570
|
+
* A {@link ConfigurationError} narrowed to carry a {@link RecordedCaptureGuardCode}
|
|
571
|
+
* in `details.code` — the shape {@link isRecordedCaptureGuardError} guarantees.
|
|
572
|
+
* `C` narrows `details.code` to a single code when the guard was called with a
|
|
573
|
+
* specific one; it defaults to the full union.
|
|
574
|
+
*/
|
|
575
|
+
type RecordedCaptureGuardError<C extends RecordedCaptureGuardCode = RecordedCaptureGuardCode> = ConfigurationError & Readonly<{
|
|
576
|
+
details: Readonly<{
|
|
577
|
+
code: C;
|
|
578
|
+
}>;
|
|
579
|
+
}>;
|
|
580
|
+
/**
|
|
581
|
+
* Type guard for the recorded-capture guard errors, so a portable caller can
|
|
582
|
+
* branch on the invariant a store enforced instead of substring-matching the
|
|
583
|
+
* message. Pass `code` to narrow to a single guard; omit it to match any.
|
|
584
|
+
*
|
|
585
|
+
* Distinguishes "history capture forbids raw SQL here" from "this backend has
|
|
586
|
+
* no transactions" (the latter carries no guard code — see
|
|
587
|
+
* `TransactionContext.sqlAvailability` for the capability discriminant).
|
|
588
|
+
*
|
|
589
|
+
* Passing `code` also narrows `details.code` to that literal on the guarded
|
|
590
|
+
* branch, so a caller can read the payload without re-checking.
|
|
591
|
+
*
|
|
592
|
+
* @example
|
|
593
|
+
* ```typescript
|
|
594
|
+
* // `withTransaction` is a compile error on a history-enabled store, so widen
|
|
595
|
+
* // to the base Store surface to reach the runtime guard this branches on.
|
|
596
|
+
* const store: Store<typeof graph> = historyStore;
|
|
597
|
+
* try {
|
|
598
|
+
* store.withTransaction(externalTx);
|
|
599
|
+
* } catch (error) {
|
|
600
|
+
* if (
|
|
601
|
+
* isRecordedCaptureGuardError(
|
|
602
|
+
* error,
|
|
603
|
+
* "RECORDED_CAPTURE_REQUIRES_CALLBACK_TRANSACTION",
|
|
604
|
+
* )
|
|
605
|
+
* ) {
|
|
606
|
+
* // error.details.code is now the literal, not the union.
|
|
607
|
+
* await historyStore.withRecordedTransaction(externalTx, run);
|
|
608
|
+
* } else {
|
|
609
|
+
* throw error;
|
|
610
|
+
* }
|
|
611
|
+
* }
|
|
612
|
+
* ```
|
|
613
|
+
*/
|
|
614
|
+
declare function isRecordedCaptureGuardError<C extends RecordedCaptureGuardCode>(error: unknown, code: C): error is RecordedCaptureGuardError<C>;
|
|
615
|
+
declare function isRecordedCaptureGuardError(error: unknown): error is RecordedCaptureGuardError;
|
|
504
616
|
/**
|
|
505
617
|
* Why a store's strategy-owned storage is not usable on the current
|
|
506
618
|
* connection. Drives the {@link StoreNotInitializedError} message and
|
|
@@ -525,14 +637,14 @@ type StoreNotInitializedErrorDetails = Readonly<{
|
|
|
525
637
|
reason: StoreNotInitializedReason;
|
|
526
638
|
}> & Readonly<Record<string, unknown>>;
|
|
527
639
|
/**
|
|
528
|
-
* Thrown when a fulltext-dependent operation runs against a
|
|
529
|
-
* whose strategy-owned storage has not been durably materialized.
|
|
640
|
+
* Thrown when a fulltext- or vector-dependent operation runs against a
|
|
641
|
+
* connection whose strategy-owned storage has not been durably materialized.
|
|
530
642
|
*
|
|
531
643
|
* `createStore()` is a synchronous, zero-I/O attach: it never creates
|
|
532
644
|
* tables, repairs DDL, or writes materialization markers. The durable
|
|
533
645
|
* marker is written exclusively by the async boot path
|
|
534
|
-
* (`createStoreWithSchema`). When a fulltext read/write — or
|
|
535
|
-
* adopted/business transaction — observes no valid marker, it refuses
|
|
646
|
+
* (`createStoreWithSchema`). When a fulltext or embedding read/write — or
|
|
647
|
+
* an adopted/business transaction — observes no valid marker, it refuses
|
|
536
648
|
* loudly here instead of lazily emitting DDL on the hot path.
|
|
537
649
|
*/
|
|
538
650
|
declare class StoreNotInitializedError extends TypeGraphError {
|
|
@@ -698,4 +810,4 @@ declare function isConstraintError(error: unknown): boolean;
|
|
|
698
810
|
*/
|
|
699
811
|
declare function getErrorSuggestion(error: unknown): string | undefined;
|
|
700
812
|
|
|
701
|
-
export {
|
|
813
|
+
export { type TrustedImportErrorReason as $, type RecordedCaptureGuardCode as A, BackendDisposedError as B, CardinalityError as C, DatabaseOperationError as D, EagerMaterializationError as E, type RecordedCaptureGuardError as F, GraphAlgorithmConvergenceError as G, RestrictedDeleteError as H, InvalidEdgeWeightError as I, type RestrictedDeleteErrorDetails as J, KindNotFoundError as K, type SchemaContentConflictErrorDetails as L, MigrationError as M, NodeConstraintNotFoundError as N, SchemaMismatchError as O, type SchemaMismatchErrorDetails as P, StaleVersionError as Q, RECORDED_CAPTURE_GUARD_CODES as R, SchemaContentConflictError as S, TypeGraphError as T, type StaleVersionErrorDetails as U, type ValidationIssue as V, StoreNotInitializedError as W, type StoreNotInitializedErrorDetails as X, type StoreNotInitializedReason as Y, TransactionClosedError as Z, TrustedImportError as _, ValidationError as a, type TypeGraphErrorOptions as a0, UniquenessError as a1, type UniquenessErrorDetails as a2, UnsupportedBackendCapabilityError as a3, UnsupportedPredicateError as a4, type ValidationErrorDetails as a5, VersionConflictError as a6, type VersionConflictErrorDetails as a7, getErrorSuggestion as a8, isConstraintError as a9, isRecordedCaptureGuardError as aa, isSystemError as ab, isTypeGraphError as ac, isUserRecoverable as ad, type CardinalityErrorDetails as b, CompilerInvariantError as c, ConfigurationError as d, type DatabaseOperationErrorDetails as e, DisjointError as f, type DisjointErrorDetails as g, type EagerMaterializationErrorDetails as h, EdgeNotFoundError as i, type EdgeNotFoundErrorDetails as j, EmbeddingDimensionChangedError as k, type EmbeddingDimensionChangedErrorDetails as l, EndpointError as m, type EndpointErrorDetails as n, EndpointNotFoundError as o, type EndpointNotFoundErrorDetails as p, type ErrorCategory as q, type InvalidEdgeWeightErrorDetails as r, type InvalidEdgeWeightReason as s, type KindNotFoundErrorDetails as t, type MigrationErrorDetails as u, type NodeConstraintNotFoundErrorDetails as v, NodeIndexNotFoundError as w, type NodeIndexNotFoundErrorDetails as x, NodeNotFoundError as y, type NodeNotFoundErrorDetails as z };
|