@sequenceholdings/orm 2.10.0 → 2.11.1
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/README.md +74 -4
- package/dist/authoring.cjs +796 -7
- package/dist/authoring.cjs.map +1 -1
- package/dist/authoring.d.cts +10 -1
- package/dist/authoring.d.ts +10 -1
- package/dist/authoring.js +796 -7
- package/dist/authoring.js.map +1 -1
- package/dist/canonical.cjs +777 -6
- package/dist/canonical.cjs.map +1 -1
- package/dist/canonical.js +777 -6
- package/dist/canonical.js.map +1 -1
- package/dist/cli.cjs +7697 -7686
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +7698 -7687
- package/dist/cli.js.map +1 -1
- package/dist/client.cjs +5 -10
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +2 -13
- package/dist/client.d.ts +2 -13
- package/dist/client.js +6 -10
- package/dist/client.js.map +1 -1
- package/dist/compiler.cjs +815 -100
- package/dist/compiler.cjs.map +1 -1
- package/dist/compiler.d.cts +5 -16
- package/dist/compiler.d.ts +5 -16
- package/dist/compiler.js +817 -99
- package/dist/compiler.js.map +1 -1
- package/dist/index.cjs +3611 -3287
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +577 -7
- package/dist/index.d.ts +577 -7
- package/dist/index.js +3600 -3285
- package/dist/index.js.map +1 -1
- package/dist/ir.cjs +784 -18
- package/dist/ir.cjs.map +1 -1
- package/dist/ir.d.cts +3 -6
- package/dist/ir.d.ts +3 -6
- package/dist/ir.js +784 -18
- package/dist/ir.js.map +1 -1
- package/dist/predicate-v2.cjs +796 -31
- package/dist/predicate-v2.cjs.map +1 -1
- package/dist/predicate-v2.js +796 -31
- package/dist/predicate-v2.js.map +1 -1
- package/dist/sdl.cjs +790 -28
- package/dist/sdl.cjs.map +1 -1
- package/dist/sdl.d.cts +1 -5
- package/dist/sdl.d.ts +1 -5
- package/dist/sdl.js +790 -28
- package/dist/sdl.js.map +1 -1
- package/package.json +1 -1
- package/src/codegen-gql/server-fns.cjs +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ export { CANONICAL_FORMAT, CanonicalColumn, CanonicalEnum, CanonicalLink, Canoni
|
|
|
5
5
|
import { CustomRolesBlock } from '@sequenceholdings/custom-roles-manifest';
|
|
6
6
|
export { CustomRolesBlock, capabilityPinsSchema, customRolesBlockSchema, customRolesDeclared, parseCapabilityPin, validateCapabilityPins } from '@sequenceholdings/custom-roles-manifest';
|
|
7
7
|
import { z } from 'zod';
|
|
8
|
-
import { PredIr, TableMetaIr } from './ir.js';
|
|
9
|
-
export { CLAIMS_CONTRACT, CMP_OPS, COMPOSED_IR_VERSION, CellSelectionIr, ClaimKey, CmpOp, CompiledArtifact, CompiledOperation, DATE_BUCKETS, DateBucket, EXTERNAL_POLICY_CLAIM_KEYS, ExternalPolicyClaimKey, GUARDED_IR_VERSION, GroupByKeyIr, INPUT_REF_KINDS, IR_VERSION, InputRefKind, IrVersionError, LEGACY_IR_VERSION, LimitIr, OrderIr, PrefetchPlanIr, RUNTIME_SQL_IR_VERSION, ResolvedMetaIr, ResolvedSourceIr, RootIr, SERVICE_PRINCIPAL_IR_VERSION, SQL_IR_VERSION,
|
|
8
|
+
import { PredIr, TableMetaIr, SelectionIr } from './ir.js';
|
|
9
|
+
export { CLAIMS_CONTRACT, CMP_OPS, COMPOSED_IR_VERSION, CellSelectionIr, ClaimKey, CmpOp, CompiledArtifact, CompiledOperation, DATE_BUCKETS, DateBucket, EXTERNAL_POLICY_CLAIM_KEYS, ExternalPolicyClaimKey, GUARDED_IR_VERSION, GroupByKeyIr, INPUT_REF_KINDS, IR_VERSION, InputRefKind, IrVersionError, LEGACY_IR_VERSION, LimitIr, OrderIr, PrefetchPlanIr, RUNTIME_SQL_IR_VERSION, ResolvedMetaIr, ResolvedSourceIr, RootIr, SERVICE_PRINCIPAL_IR_VERSION, SQL_IR_VERSION, ValueIr, VariableDefaultIr, VariableIr, compiledArtifactSchema, compiledOperationSchema, indexByName, isExternalPolicyClaimKey, limitIrSchema, normalizeIr, orderIrSchema, predIrSchema, prefetchPlanIrSchema, requiredArtifactIrVersion, resolvedMetaIrSchema, resolvedSourceIrSchema, rootIrSchema, selectionIrSchema, sqlObjectIrSchema, tableMetaIrSchema, usesServicePrincipal, valueIrSchema, variableDefaultIrSchema, variableIrSchema } from './ir.js';
|
|
10
10
|
export { e as CAPABILITY_KEY_PATTERN, C as CELLS_FIELD, a as CELL_PARTS, f as CELL_PART_SUFFIX, g as CLAIM_KEY_PATTERN, h as COLUMN_IDENTIFIER_PATTERN, i as CONSUMER_ROLE_SUFFIX, b as CellPart, D as DEFINITION_FILE_EXTENSIONS, H as HASH_DOMAIN, I as IDENTIFIER_PATTERN, M as MATERIALIZE_ACTOR, j as MATERIALIZE_CLAIMS_JSON, k as MAX_DEFINITION_FILE_BYTES, l as MAX_GENERATED_SDL_BYTES, m as MAX_IDENTIFIER_LENGTH, n as MAX_PERSISTED_READ_ROWS, o as MAX_TRACKED_COLUMN_NAME, p as NAMESPACE_CONFIG_FILENAMES, N as NAMESPACE_PATTERN, q as OPERATION_DOCUMENTS_FILE, r as OPERATION_DOCUMENTS_VERSION, O as ORM_DATA_TOKEN_HEADER, s as ORM_REGISTRATION_MAX_BYTES, t as ORM_SCHEMA_PREFIX, d as ORM_SERVICE_DATA_TOKEN_HEADER, Q as QUALIFIED_TABLE_PATTERN, R as RESERVED_COLUMN_NAMES, u as RESERVED_TABLE_NAMES, S as SYNCED_SOURCE_PATTERN, c as cellColumnName, v as consumerRoleName, w as materializeLockKey, x as materializedRefreshFunctionName, y as ormSchemaName } from './constants-D2o0vK6U.js';
|
|
11
11
|
import { generateDrizzleJson } from 'drizzle-kit/api';
|
|
12
12
|
import { PgTableWithColumns } from 'drizzle-orm/pg-core';
|
|
@@ -468,6 +468,52 @@ interface MigrationHints {
|
|
|
468
468
|
*/
|
|
469
469
|
declare function applyMigrationHints(previous: NamespaceSnapshot, definition: NamespaceDefinition): MigrationHints;
|
|
470
470
|
|
|
471
|
+
interface DeclaredSyncedIndex {
|
|
472
|
+
readonly namespace: string;
|
|
473
|
+
readonly table: string;
|
|
474
|
+
readonly name: string;
|
|
475
|
+
/** Physical column names, in key order. */
|
|
476
|
+
readonly columns: readonly string[];
|
|
477
|
+
}
|
|
478
|
+
/** The synced table → physical relation binding apply resolved for this environment. */
|
|
479
|
+
interface SyncedIndexBacking {
|
|
480
|
+
readonly table: string;
|
|
481
|
+
readonly physicalRelation: string;
|
|
482
|
+
}
|
|
483
|
+
/** Every secondary index the definition declares on a synced table. */
|
|
484
|
+
declare function declaredSyncedIndexes(canonical: CanonicalDefinition): DeclaredSyncedIndex[];
|
|
485
|
+
/** Whether apply emitted this statement to manage a synced-table index (it must start as the applying identity). */
|
|
486
|
+
declare function isSyncedIndexStatement(sql: string): boolean;
|
|
487
|
+
/**
|
|
488
|
+
* Idempotent statements that converge the bound physical relations onto the
|
|
489
|
+
* declared synced indexes: first an idempotent create of the ownership ledger;
|
|
490
|
+
* then guarded drops for indexes `previous` declared that are gone, changed or
|
|
491
|
+
* rebound, on the relation they previously lived on; per declared index, a
|
|
492
|
+
* guarded drop of an owned stale copy on the same relation (invalid build,
|
|
493
|
+
* different keys or access method) and then a create-if-absent that records
|
|
494
|
+
* the new index's OID in the ledger; finally, per declared index, a check that
|
|
495
|
+
* it is the owned, declared btree on its relation (a same-named index
|
|
496
|
+
* elsewhere or one the ORM did not create fails it). The check raises 55000,
|
|
497
|
+
* which apply's idempotent-heal path never skips. Tables without a backing are
|
|
498
|
+
* skipped; apply fails earlier when a declared synced table has none.
|
|
499
|
+
*/
|
|
500
|
+
declare function syncedIndexStatements({ canonical, previous, backings, previousBackings, }: {
|
|
501
|
+
/** Undefined when the target definition has no synced tables left. */
|
|
502
|
+
canonical: CanonicalDefinition | undefined;
|
|
503
|
+
/** The definition the environment last applied; its removed or changed indexes are dropped. */
|
|
504
|
+
previous?: CanonicalDefinition;
|
|
505
|
+
backings: readonly SyncedIndexBacking[];
|
|
506
|
+
/** Where a table no longer bound (removed or rebound) previously lived — lets its indexes be dropped. */
|
|
507
|
+
previousBackings?: readonly SyncedIndexBacking[];
|
|
508
|
+
}): string[];
|
|
509
|
+
/** A declared synced index on the physical relation its table is bound to. */
|
|
510
|
+
interface PlacedSyncedIndex extends DeclaredSyncedIndex {
|
|
511
|
+
readonly relation: {
|
|
512
|
+
readonly schema: string;
|
|
513
|
+
readonly table: string;
|
|
514
|
+
};
|
|
515
|
+
}
|
|
516
|
+
|
|
471
517
|
/**
|
|
472
518
|
* Whether a kit-emitted statement is one the security pass owns (and so is
|
|
473
519
|
* excluded from the convergence verdict). Exported for direct testing of the
|
|
@@ -494,6 +540,25 @@ declare function pendingKitStatementsV2({ canonical, db, }: {
|
|
|
494
540
|
/** A drizzle PgDatabase over the target — typed loose because pushSchema's own parameter is `PgDatabase<any>`. */
|
|
495
541
|
db: unknown;
|
|
496
542
|
}): Promise<string[]>;
|
|
543
|
+
/**
|
|
544
|
+
* Synced-index drift: the `CREATE INDEX` statements a re-apply would need
|
|
545
|
+
* because a declared index is missing from its bound physical relation (for
|
|
546
|
+
* example after the pipeline dropped and recreated the synced table), is
|
|
547
|
+
* invalid, is not a btree, was not created by the ORM for this table (no
|
|
548
|
+
* ledger row records its current OID), or no longer matches the declared key
|
|
549
|
+
* columns. Empty means every declared synced index is in place. Drizzle-kit
|
|
550
|
+
* never sees these relations, so pendingKitStatementsV2 cannot report them.
|
|
551
|
+
*
|
|
552
|
+
* Runs in one transaction: the catalog is read as the caller, then the ledger
|
|
553
|
+
* as the namespace schema's owner (a transaction-local role switch, the same
|
|
554
|
+
* one apply's statements make).
|
|
555
|
+
*/
|
|
556
|
+
declare function pendingSyncedIndexStatements({ canonical, backings, db, }: {
|
|
557
|
+
canonical: CanonicalDefinition;
|
|
558
|
+
backings: readonly SyncedIndexBacking[];
|
|
559
|
+
/** A drizzle PgDatabase over the target. */
|
|
560
|
+
db: unknown;
|
|
561
|
+
}): Promise<string[]>;
|
|
497
562
|
|
|
498
563
|
interface DrizzleEntities {
|
|
499
564
|
/** The in-memory schema bag drizzle-kit snapshots (`generateDrizzleJson(imports)`). */
|
|
@@ -619,6 +684,29 @@ declare function syncedViewStatements({ definition, backings, readPolicyIrByTabl
|
|
|
619
684
|
/** False reproduces the previous compiler solely to verify existing view definitions. */
|
|
620
685
|
statementClaimChecks?: boolean;
|
|
621
686
|
}): string[];
|
|
687
|
+
/**
|
|
688
|
+
* Stand-in views for synced tables whose pipeline has not been deployed to
|
|
689
|
+
* this environment yet, so the rest of the namespace can still apply.
|
|
690
|
+
*
|
|
691
|
+
* Each view keeps the declared columns and types, so managed views, links,
|
|
692
|
+
* and policies that reference it still compile, and a later apply replaces it
|
|
693
|
+
* in place with the real view. Reading it raises instead of returning no
|
|
694
|
+
* rows: an empty stand-in would silently change the result of any policy that
|
|
695
|
+
* checks it (an insider exclusion would stop excluding), so the table and
|
|
696
|
+
* everything that reads it fail closed until the pipeline exists.
|
|
697
|
+
*
|
|
698
|
+
* Every column is a volatile guard call, not a typed NULL. The planner folds
|
|
699
|
+
* a constant NULL column through a dependent join or EXISTS (`NULL = x` is
|
|
700
|
+
* never true), drops the stand-in from the plan, and returns a result without
|
|
701
|
+
* ever reaching a guard in its WHERE — failing open. A volatile call cannot be
|
|
702
|
+
* folded or pruned, so any read that touches the relation raises.
|
|
703
|
+
*/
|
|
704
|
+
declare function syncedViewUnbackedStatements({ definition, tables, columnTypesByTable, }: {
|
|
705
|
+
definition: NamespaceDefinition;
|
|
706
|
+
tables: readonly string[];
|
|
707
|
+
/** Canonical types: the TableFile adapter downgrades enums to text, which a dependent view's type check rejects. */
|
|
708
|
+
columnTypesByTable?: ReadonlyMap<string, SyncedPredicateColumnTypes>;
|
|
709
|
+
}): string[];
|
|
622
710
|
/**
|
|
623
711
|
* Drop synced views — idempotent cleanup for apply retries and removal.
|
|
624
712
|
*/
|
|
@@ -635,6 +723,25 @@ declare function syncedBackingRevokeStatements({ backings, executionOwnerRole, }
|
|
|
635
723
|
executionOwnerRole?: string;
|
|
636
724
|
}): string[];
|
|
637
725
|
|
|
726
|
+
/**
|
|
727
|
+
* The contract between a disabled synced table's stand-in view, which raises
|
|
728
|
+
* when read, and the data plane, which turns that raise into a clear
|
|
729
|
+
* `OBJECT_UNAVAILABLE` instead of an opaque internal error. The message is
|
|
730
|
+
* written and parsed here so the two cannot drift.
|
|
731
|
+
*/
|
|
732
|
+
/** Schema-local guard every unbacked synced view calls; see `syncedViewUnbackedStatements`. */
|
|
733
|
+
declare const SYNCED_BACKING_ABSENT_FUNCTION = "orm_synced_backing_absent";
|
|
734
|
+
/** SQLSTATE an unbacked synced view raises: object_not_in_prerequisite_state. */
|
|
735
|
+
declare const SYNCED_BACKING_ABSENT_SQLSTATE = "55000";
|
|
736
|
+
/**
|
|
737
|
+
* The disabled object behind a database error, or null for any other error.
|
|
738
|
+
* 55000 alone is not enough: Postgres raises it for unrelated prerequisite
|
|
739
|
+
* failures, so the guard's own message must match too.
|
|
740
|
+
*/
|
|
741
|
+
declare function disabledSyncedObjectFromError(error: unknown): string | null;
|
|
742
|
+
/** Caller-facing message for a disabled object. */
|
|
743
|
+
declare function disabledSyncedObjectMessage(object: string): string;
|
|
744
|
+
|
|
638
745
|
/**
|
|
639
746
|
* Prove a stored synced view still has an exact compiler definition before
|
|
640
747
|
* replacing its policy. This is deliberately narrower than SQL equivalence.
|
|
@@ -698,8 +805,10 @@ declare function generateSnapshotV2(definition: CanonicalDefinition, previousId?
|
|
|
698
805
|
* we emit the statement ourselves and rewrite the previous snapshot to match,
|
|
699
806
|
* so drizzle-kit never faces a create+drop ambiguity (its API resolves those
|
|
700
807
|
* interactively — fatal in a service). Semantics mirror engine/snapshot.ts
|
|
701
|
-
* applyMigrationHints
|
|
702
|
-
* (applied FIRST, so column hints find the table under its new name)
|
|
808
|
+
* applyMigrationHints, plus two v2-only cases: the table-level `renamedFrom`
|
|
809
|
+
* (applied FIRST, so column hints find the table under its new name), and a
|
|
810
|
+
* spent rename-and-reuse column hint (v1's YAML refuses a `renamed_from` that
|
|
811
|
+
* names a column it still declares, so it never reaches its twin).
|
|
703
812
|
*
|
|
704
813
|
* This is a sibling of the v1 function rather than a wrapper: the v1 one is
|
|
705
814
|
* keyed to `NamespaceDefinition`'s record-shaped columns and cannot express
|
|
@@ -1566,8 +1675,469 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
1566
1675
|
contents: z.ZodString;
|
|
1567
1676
|
}, z.core.$strict>>;
|
|
1568
1677
|
client_manifest: z.ZodObject<{
|
|
1569
|
-
|
|
1570
|
-
|
|
1678
|
+
operations: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1679
|
+
language: z.ZodOptional<z.ZodLiteral<"sql">>;
|
|
1680
|
+
sqlQuery: z.ZodOptional<z.ZodObject<{
|
|
1681
|
+
catalog: z.ZodObject<{
|
|
1682
|
+
identity: z.ZodString;
|
|
1683
|
+
objects: z.ZodArray<z.ZodObject<{
|
|
1684
|
+
ref: z.ZodString;
|
|
1685
|
+
table: z.ZodString;
|
|
1686
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
1687
|
+
name: z.ZodString;
|
|
1688
|
+
nullable: z.ZodBoolean;
|
|
1689
|
+
type: z.ZodString;
|
|
1690
|
+
}, z.core.$strip>>;
|
|
1691
|
+
scan: z.ZodString;
|
|
1692
|
+
read: z.ZodArray<z.ZodString>;
|
|
1693
|
+
}, z.core.$strict>>;
|
|
1694
|
+
}, z.core.$strict>;
|
|
1695
|
+
read: z.ZodArray<z.ZodString>;
|
|
1696
|
+
maxRows: z.ZodNumber;
|
|
1697
|
+
}, z.core.$strict>>;
|
|
1698
|
+
sql: z.ZodOptional<z.ZodObject<{
|
|
1699
|
+
text: z.ZodString;
|
|
1700
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
1701
|
+
name: z.ZodString;
|
|
1702
|
+
type: z.ZodEnum<{
|
|
1703
|
+
bigint: "bigint";
|
|
1704
|
+
boolean: "boolean";
|
|
1705
|
+
date: "date";
|
|
1706
|
+
uuid: "uuid";
|
|
1707
|
+
text: "text";
|
|
1708
|
+
integer: "integer";
|
|
1709
|
+
numeric: "numeric";
|
|
1710
|
+
double: "double";
|
|
1711
|
+
timestamptz: "timestamptz";
|
|
1712
|
+
jsonb: "jsonb";
|
|
1713
|
+
}>;
|
|
1714
|
+
nullable: z.ZodBoolean;
|
|
1715
|
+
}, z.core.$strip>>;
|
|
1716
|
+
parameters: z.ZodArray<z.ZodString>;
|
|
1717
|
+
read: z.ZodArray<z.ZodString>;
|
|
1718
|
+
maxRows: z.ZodNumber;
|
|
1719
|
+
}, z.core.$strict>>;
|
|
1720
|
+
irVersion: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>]>;
|
|
1721
|
+
name: z.ZodString;
|
|
1722
|
+
kind: z.ZodEnum<{
|
|
1723
|
+
mutation: "mutation";
|
|
1724
|
+
query: "query";
|
|
1725
|
+
}>;
|
|
1726
|
+
requires: z.ZodNullable<z.ZodObject<{
|
|
1727
|
+
capability: z.ZodOptional<z.ZodString>;
|
|
1728
|
+
role: z.ZodOptional<z.ZodString>;
|
|
1729
|
+
}, z.core.$strip>>;
|
|
1730
|
+
variables: z.ZodArray<z.ZodObject<{
|
|
1731
|
+
name: z.ZodString;
|
|
1732
|
+
type: z.ZodUnion<readonly [z.ZodObject<{
|
|
1733
|
+
kind: z.ZodLiteral<"scalar">;
|
|
1734
|
+
scalar: z.ZodEnum<{
|
|
1735
|
+
bigint: "bigint";
|
|
1736
|
+
boolean: "boolean";
|
|
1737
|
+
date: "date";
|
|
1738
|
+
uuid: "uuid";
|
|
1739
|
+
text: "text";
|
|
1740
|
+
integer: "integer";
|
|
1741
|
+
numeric: "numeric";
|
|
1742
|
+
double: "double";
|
|
1743
|
+
timestamptz: "timestamptz";
|
|
1744
|
+
jsonb: "jsonb";
|
|
1745
|
+
}>;
|
|
1746
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1747
|
+
kind: z.ZodLiteral<"enum">;
|
|
1748
|
+
name: z.ZodString;
|
|
1749
|
+
values: z.ZodArray<z.ZodString>;
|
|
1750
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1751
|
+
kind: z.ZodLiteral<"inputRef">;
|
|
1752
|
+
input: z.ZodEnum<{
|
|
1753
|
+
orderBy: "orderBy";
|
|
1754
|
+
onConflict: "onConflict";
|
|
1755
|
+
boolExp: "boolExp";
|
|
1756
|
+
selectColumn: "selectColumn";
|
|
1757
|
+
insertInput: "insertInput";
|
|
1758
|
+
setInput: "setInput";
|
|
1759
|
+
appendInput: "appendInput";
|
|
1760
|
+
}>;
|
|
1761
|
+
table: z.ZodString;
|
|
1762
|
+
}, z.core.$strip>]>;
|
|
1763
|
+
nullable: z.ZodBoolean;
|
|
1764
|
+
list: z.ZodBoolean;
|
|
1765
|
+
defaultValue: z.ZodOptional<z.ZodObject<{
|
|
1766
|
+
value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
|
|
1767
|
+
}, z.core.$strip>>;
|
|
1768
|
+
}, z.core.$strip>>;
|
|
1769
|
+
tableSet: z.ZodArray<z.ZodString>;
|
|
1770
|
+
roots: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1771
|
+
kind: z.ZodLiteral<"select">;
|
|
1772
|
+
alias: z.ZodString;
|
|
1773
|
+
table: z.ZodString;
|
|
1774
|
+
selection: z.ZodType<SelectionIr, unknown, z.core.$ZodTypeInternals<SelectionIr, unknown>>;
|
|
1775
|
+
where: z.ZodType<PredIr, unknown, z.core.$ZodTypeInternals<PredIr, unknown>>;
|
|
1776
|
+
orderBy: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1777
|
+
kind: z.ZodLiteral<"column">;
|
|
1778
|
+
column: z.ZodString;
|
|
1779
|
+
link: z.ZodOptional<z.ZodString>;
|
|
1780
|
+
direction: z.ZodEnum<{
|
|
1781
|
+
asc: "asc";
|
|
1782
|
+
desc: "desc";
|
|
1783
|
+
}>;
|
|
1784
|
+
nulls: z.ZodOptional<z.ZodEnum<{
|
|
1785
|
+
first: "first";
|
|
1786
|
+
last: "last";
|
|
1787
|
+
}>>;
|
|
1788
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1789
|
+
kind: z.ZodLiteral<"dynamic">;
|
|
1790
|
+
slot: z.ZodString;
|
|
1791
|
+
}, z.core.$strip>], "kind">>>;
|
|
1792
|
+
distinctOn: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodObject<{
|
|
1793
|
+
slot: z.ZodString;
|
|
1794
|
+
}, z.core.$strip>]>>;
|
|
1795
|
+
limit: z.ZodObject<{
|
|
1796
|
+
variable: z.ZodOptional<z.ZodString>;
|
|
1797
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
1798
|
+
default: z.ZodNumber;
|
|
1799
|
+
max: z.ZodNumber;
|
|
1800
|
+
}, z.core.$strip>;
|
|
1801
|
+
offset: z.ZodOptional<z.ZodObject<{
|
|
1802
|
+
variable: z.ZodOptional<z.ZodString>;
|
|
1803
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
1804
|
+
}, z.core.$strip>>;
|
|
1805
|
+
includeIf: z.ZodOptional<z.ZodObject<{
|
|
1806
|
+
variable: z.ZodString;
|
|
1807
|
+
negated: z.ZodBoolean;
|
|
1808
|
+
}, z.core.$strip>>;
|
|
1809
|
+
prefetch: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1810
|
+
source: z.ZodString;
|
|
1811
|
+
maxStalenessMs: z.ZodOptional<z.ZodNumber>;
|
|
1812
|
+
key: z.ZodUnion<readonly [z.ZodObject<{
|
|
1813
|
+
one: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1814
|
+
kind: z.ZodLiteral<"literal">;
|
|
1815
|
+
value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
|
|
1816
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1817
|
+
kind: z.ZodLiteral<"variable">;
|
|
1818
|
+
name: z.ZodString;
|
|
1819
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1820
|
+
kind: z.ZodLiteral<"claim">;
|
|
1821
|
+
key: z.ZodEnum<{
|
|
1822
|
+
ext_subject: "ext_subject";
|
|
1823
|
+
ext_email: "ext_email";
|
|
1824
|
+
sub: "sub";
|
|
1825
|
+
org: "org";
|
|
1826
|
+
}>;
|
|
1827
|
+
}, z.core.$strip>], "kind">;
|
|
1828
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1829
|
+
many: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1830
|
+
kind: z.ZodLiteral<"literal">;
|
|
1831
|
+
value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
|
|
1832
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1833
|
+
kind: z.ZodLiteral<"variable">;
|
|
1834
|
+
name: z.ZodString;
|
|
1835
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1836
|
+
kind: z.ZodLiteral<"claim">;
|
|
1837
|
+
key: z.ZodEnum<{
|
|
1838
|
+
ext_subject: "ext_subject";
|
|
1839
|
+
ext_email: "ext_email";
|
|
1840
|
+
sub: "sub";
|
|
1841
|
+
org: "org";
|
|
1842
|
+
}>;
|
|
1843
|
+
}, z.core.$strip>], "kind">;
|
|
1844
|
+
}, z.core.$strip>]>;
|
|
1845
|
+
}, z.core.$strip>>>;
|
|
1846
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1847
|
+
kind: z.ZodLiteral<"byPk">;
|
|
1848
|
+
alias: z.ZodString;
|
|
1849
|
+
table: z.ZodString;
|
|
1850
|
+
selection: z.ZodType<SelectionIr, unknown, z.core.$ZodTypeInternals<SelectionIr, unknown>>;
|
|
1851
|
+
pk: z.ZodArray<z.ZodObject<{
|
|
1852
|
+
column: z.ZodString;
|
|
1853
|
+
value: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1854
|
+
kind: z.ZodLiteral<"literal">;
|
|
1855
|
+
value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
|
|
1856
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1857
|
+
kind: z.ZodLiteral<"variable">;
|
|
1858
|
+
name: z.ZodString;
|
|
1859
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1860
|
+
kind: z.ZodLiteral<"claim">;
|
|
1861
|
+
key: z.ZodEnum<{
|
|
1862
|
+
ext_subject: "ext_subject";
|
|
1863
|
+
ext_email: "ext_email";
|
|
1864
|
+
sub: "sub";
|
|
1865
|
+
org: "org";
|
|
1866
|
+
}>;
|
|
1867
|
+
}, z.core.$strip>], "kind">;
|
|
1868
|
+
}, z.core.$strip>>;
|
|
1869
|
+
where: z.ZodType<PredIr, unknown, z.core.$ZodTypeInternals<PredIr, unknown>>;
|
|
1870
|
+
includeIf: z.ZodOptional<z.ZodObject<{
|
|
1871
|
+
variable: z.ZodString;
|
|
1872
|
+
negated: z.ZodBoolean;
|
|
1873
|
+
}, z.core.$strip>>;
|
|
1874
|
+
prefetch: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1875
|
+
source: z.ZodString;
|
|
1876
|
+
maxStalenessMs: z.ZodOptional<z.ZodNumber>;
|
|
1877
|
+
key: z.ZodUnion<readonly [z.ZodObject<{
|
|
1878
|
+
one: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1879
|
+
kind: z.ZodLiteral<"literal">;
|
|
1880
|
+
value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
|
|
1881
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1882
|
+
kind: z.ZodLiteral<"variable">;
|
|
1883
|
+
name: z.ZodString;
|
|
1884
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1885
|
+
kind: z.ZodLiteral<"claim">;
|
|
1886
|
+
key: z.ZodEnum<{
|
|
1887
|
+
ext_subject: "ext_subject";
|
|
1888
|
+
ext_email: "ext_email";
|
|
1889
|
+
sub: "sub";
|
|
1890
|
+
org: "org";
|
|
1891
|
+
}>;
|
|
1892
|
+
}, z.core.$strip>], "kind">;
|
|
1893
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1894
|
+
many: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1895
|
+
kind: z.ZodLiteral<"literal">;
|
|
1896
|
+
value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
|
|
1897
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1898
|
+
kind: z.ZodLiteral<"variable">;
|
|
1899
|
+
name: z.ZodString;
|
|
1900
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1901
|
+
kind: z.ZodLiteral<"claim">;
|
|
1902
|
+
key: z.ZodEnum<{
|
|
1903
|
+
ext_subject: "ext_subject";
|
|
1904
|
+
ext_email: "ext_email";
|
|
1905
|
+
sub: "sub";
|
|
1906
|
+
org: "org";
|
|
1907
|
+
}>;
|
|
1908
|
+
}, z.core.$strip>], "kind">;
|
|
1909
|
+
}, z.core.$strip>]>;
|
|
1910
|
+
}, z.core.$strip>>>;
|
|
1911
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1912
|
+
kind: z.ZodLiteral<"aggregate">;
|
|
1913
|
+
alias: z.ZodString;
|
|
1914
|
+
table: z.ZodString;
|
|
1915
|
+
where: z.ZodType<PredIr, unknown, z.core.$ZodTypeInternals<PredIr, unknown>>;
|
|
1916
|
+
count: z.ZodOptional<z.ZodObject<{
|
|
1917
|
+
columns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1918
|
+
distinct: z.ZodOptional<z.ZodBoolean>;
|
|
1919
|
+
}, z.core.$strip>>;
|
|
1920
|
+
sum: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1921
|
+
avg: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1922
|
+
nodes: z.ZodOptional<z.ZodType<SelectionIr, unknown, z.core.$ZodTypeInternals<SelectionIr, unknown>>>;
|
|
1923
|
+
includeIf: z.ZodOptional<z.ZodObject<{
|
|
1924
|
+
variable: z.ZodString;
|
|
1925
|
+
negated: z.ZodBoolean;
|
|
1926
|
+
}, z.core.$strip>>;
|
|
1927
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1928
|
+
kind: z.ZodLiteral<"aggregateGroups">;
|
|
1929
|
+
alias: z.ZodString;
|
|
1930
|
+
table: z.ZodString;
|
|
1931
|
+
where: z.ZodType<PredIr, unknown, z.core.$ZodTypeInternals<PredIr, unknown>>;
|
|
1932
|
+
groupBy: z.ZodArray<z.ZodObject<{
|
|
1933
|
+
column: z.ZodString;
|
|
1934
|
+
bucket: z.ZodOptional<z.ZodEnum<{
|
|
1935
|
+
year: "year";
|
|
1936
|
+
quarter: "quarter";
|
|
1937
|
+
month: "month";
|
|
1938
|
+
week: "week";
|
|
1939
|
+
day: "day";
|
|
1940
|
+
hour: "hour";
|
|
1941
|
+
}>>;
|
|
1942
|
+
}, z.core.$strip>>;
|
|
1943
|
+
key: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1944
|
+
alias: z.ZodString;
|
|
1945
|
+
column: z.ZodString;
|
|
1946
|
+
}, z.core.$strip>>>;
|
|
1947
|
+
count: z.ZodOptional<z.ZodObject<{
|
|
1948
|
+
columns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1949
|
+
distinct: z.ZodOptional<z.ZodBoolean>;
|
|
1950
|
+
}, z.core.$strip>>;
|
|
1951
|
+
sum: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1952
|
+
avg: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1953
|
+
limit: z.ZodObject<{
|
|
1954
|
+
variable: z.ZodOptional<z.ZodString>;
|
|
1955
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
1956
|
+
default: z.ZodNumber;
|
|
1957
|
+
max: z.ZodNumber;
|
|
1958
|
+
}, z.core.$strip>;
|
|
1959
|
+
offset: z.ZodOptional<z.ZodObject<{
|
|
1960
|
+
variable: z.ZodOptional<z.ZodString>;
|
|
1961
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
1962
|
+
}, z.core.$strip>>;
|
|
1963
|
+
includeIf: z.ZodOptional<z.ZodObject<{
|
|
1964
|
+
variable: z.ZodString;
|
|
1965
|
+
negated: z.ZodBoolean;
|
|
1966
|
+
}, z.core.$strip>>;
|
|
1967
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1968
|
+
kind: z.ZodLiteral<"mutation">;
|
|
1969
|
+
op: z.ZodEnum<{
|
|
1970
|
+
insert: "insert";
|
|
1971
|
+
insertOne: "insertOne";
|
|
1972
|
+
update: "update";
|
|
1973
|
+
updateByPk: "updateByPk";
|
|
1974
|
+
delete: "delete";
|
|
1975
|
+
deleteByPk: "deleteByPk";
|
|
1976
|
+
cowOverride: "cowOverride";
|
|
1977
|
+
cowRevert: "cowRevert";
|
|
1978
|
+
resolvedWrite: "resolvedWrite";
|
|
1979
|
+
}>;
|
|
1980
|
+
resolvedAction: z.ZodOptional<z.ZodEnum<{
|
|
1981
|
+
insert: "insert";
|
|
1982
|
+
update: "update";
|
|
1983
|
+
delete: "delete";
|
|
1984
|
+
revert: "revert";
|
|
1985
|
+
}>>;
|
|
1986
|
+
revertColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1987
|
+
writeback: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1988
|
+
source: z.ZodString;
|
|
1989
|
+
mode: z.ZodEnum<{
|
|
1990
|
+
sync: "sync";
|
|
1991
|
+
async: "async";
|
|
1992
|
+
}>;
|
|
1993
|
+
}, z.core.$strip>>>;
|
|
1994
|
+
localOnly: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1995
|
+
alias: z.ZodString;
|
|
1996
|
+
table: z.ZodString;
|
|
1997
|
+
cowSynced: z.ZodOptional<z.ZodString>;
|
|
1998
|
+
cowCopyColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1999
|
+
cowCopyCheck: z.ZodOptional<z.ZodType<PredIr, unknown, z.core.$ZodTypeInternals<PredIr, unknown>>>;
|
|
2000
|
+
objects: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
2001
|
+
slot: z.ZodString;
|
|
2002
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2003
|
+
rows: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
2004
|
+
column: z.ZodString;
|
|
2005
|
+
value: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2006
|
+
kind: z.ZodLiteral<"literal">;
|
|
2007
|
+
value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
|
|
2008
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2009
|
+
kind: z.ZodLiteral<"variable">;
|
|
2010
|
+
name: z.ZodString;
|
|
2011
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2012
|
+
kind: z.ZodLiteral<"claim">;
|
|
2013
|
+
key: z.ZodEnum<{
|
|
2014
|
+
ext_subject: "ext_subject";
|
|
2015
|
+
ext_email: "ext_email";
|
|
2016
|
+
sub: "sub";
|
|
2017
|
+
org: "org";
|
|
2018
|
+
}>;
|
|
2019
|
+
}, z.core.$strip>], "kind">;
|
|
2020
|
+
}, z.core.$strip>>>;
|
|
2021
|
+
}, z.core.$strip>]>>;
|
|
2022
|
+
pinnedColumns: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2023
|
+
column: z.ZodString;
|
|
2024
|
+
value: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2025
|
+
kind: z.ZodLiteral<"literal">;
|
|
2026
|
+
value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
|
|
2027
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2028
|
+
kind: z.ZodLiteral<"variable">;
|
|
2029
|
+
name: z.ZodString;
|
|
2030
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2031
|
+
kind: z.ZodLiteral<"claim">;
|
|
2032
|
+
key: z.ZodEnum<{
|
|
2033
|
+
ext_subject: "ext_subject";
|
|
2034
|
+
ext_email: "ext_email";
|
|
2035
|
+
sub: "sub";
|
|
2036
|
+
org: "org";
|
|
2037
|
+
}>;
|
|
2038
|
+
}, z.core.$strip>], "kind">;
|
|
2039
|
+
}, z.core.$strip>>>;
|
|
2040
|
+
onConflict: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
2041
|
+
slot: z.ZodString;
|
|
2042
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2043
|
+
constraint: z.ZodString;
|
|
2044
|
+
updateColumns: z.ZodArray<z.ZodString>;
|
|
2045
|
+
}, z.core.$strip>]>>;
|
|
2046
|
+
set: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
2047
|
+
slot: z.ZodString;
|
|
2048
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2049
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
2050
|
+
column: z.ZodString;
|
|
2051
|
+
value: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2052
|
+
kind: z.ZodLiteral<"literal">;
|
|
2053
|
+
value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
|
|
2054
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2055
|
+
kind: z.ZodLiteral<"variable">;
|
|
2056
|
+
name: z.ZodString;
|
|
2057
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2058
|
+
kind: z.ZodLiteral<"claim">;
|
|
2059
|
+
key: z.ZodEnum<{
|
|
2060
|
+
ext_subject: "ext_subject";
|
|
2061
|
+
ext_email: "ext_email";
|
|
2062
|
+
sub: "sub";
|
|
2063
|
+
org: "org";
|
|
2064
|
+
}>;
|
|
2065
|
+
}, z.core.$strip>], "kind">;
|
|
2066
|
+
}, z.core.$strip>>;
|
|
2067
|
+
}, z.core.$strip>]>>;
|
|
2068
|
+
append: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
2069
|
+
slot: z.ZodString;
|
|
2070
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2071
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
2072
|
+
column: z.ZodString;
|
|
2073
|
+
value: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2074
|
+
kind: z.ZodLiteral<"literal">;
|
|
2075
|
+
value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
|
|
2076
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2077
|
+
kind: z.ZodLiteral<"variable">;
|
|
2078
|
+
name: z.ZodString;
|
|
2079
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2080
|
+
kind: z.ZodLiteral<"claim">;
|
|
2081
|
+
key: z.ZodEnum<{
|
|
2082
|
+
ext_subject: "ext_subject";
|
|
2083
|
+
ext_email: "ext_email";
|
|
2084
|
+
sub: "sub";
|
|
2085
|
+
org: "org";
|
|
2086
|
+
}>;
|
|
2087
|
+
}, z.core.$strip>], "kind">;
|
|
2088
|
+
}, z.core.$strip>>;
|
|
2089
|
+
}, z.core.$strip>]>>;
|
|
2090
|
+
inc: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
2091
|
+
slot: z.ZodString;
|
|
2092
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2093
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
2094
|
+
column: z.ZodString;
|
|
2095
|
+
value: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2096
|
+
kind: z.ZodLiteral<"literal">;
|
|
2097
|
+
value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
|
|
2098
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2099
|
+
kind: z.ZodLiteral<"variable">;
|
|
2100
|
+
name: z.ZodString;
|
|
2101
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2102
|
+
kind: z.ZodLiteral<"claim">;
|
|
2103
|
+
key: z.ZodEnum<{
|
|
2104
|
+
ext_subject: "ext_subject";
|
|
2105
|
+
ext_email: "ext_email";
|
|
2106
|
+
sub: "sub";
|
|
2107
|
+
org: "org";
|
|
2108
|
+
}>;
|
|
2109
|
+
}, z.core.$strip>], "kind">;
|
|
2110
|
+
}, z.core.$strip>>;
|
|
2111
|
+
}, z.core.$strip>]>>;
|
|
2112
|
+
where: z.ZodOptional<z.ZodType<PredIr, unknown, z.core.$ZodTypeInternals<PredIr, unknown>>>;
|
|
2113
|
+
pk: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2114
|
+
column: z.ZodString;
|
|
2115
|
+
value: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2116
|
+
kind: z.ZodLiteral<"literal">;
|
|
2117
|
+
value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
|
|
2118
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2119
|
+
kind: z.ZodLiteral<"variable">;
|
|
2120
|
+
name: z.ZodString;
|
|
2121
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2122
|
+
kind: z.ZodLiteral<"claim">;
|
|
2123
|
+
key: z.ZodEnum<{
|
|
2124
|
+
ext_subject: "ext_subject";
|
|
2125
|
+
ext_email: "ext_email";
|
|
2126
|
+
sub: "sub";
|
|
2127
|
+
org: "org";
|
|
2128
|
+
}>;
|
|
2129
|
+
}, z.core.$strip>], "kind">;
|
|
2130
|
+
}, z.core.$strip>>>;
|
|
2131
|
+
insertCheck: z.ZodOptional<z.ZodType<PredIr, unknown, z.core.$ZodTypeInternals<PredIr, unknown>>>;
|
|
2132
|
+
returning: z.ZodNullable<z.ZodType<SelectionIr, unknown, z.core.$ZodTypeInternals<SelectionIr, unknown>>>;
|
|
2133
|
+
affectedRows: z.ZodDefault<z.ZodBoolean>;
|
|
2134
|
+
assertAffectedRows: z.ZodOptional<z.ZodNumber>;
|
|
2135
|
+
includeIf: z.ZodOptional<z.ZodObject<{
|
|
2136
|
+
variable: z.ZodString;
|
|
2137
|
+
negated: z.ZodBoolean;
|
|
2138
|
+
}, z.core.$strip>>;
|
|
2139
|
+
}, z.core.$strip>], "kind">>;
|
|
2140
|
+
}, z.core.$strip>>;
|
|
1571
2141
|
}, z.core.$strict>;
|
|
1572
2142
|
sdl: z.ZodString;
|
|
1573
2143
|
schema_snapshot: z.ZodJSONSchema;
|
|
@@ -1880,4 +2450,4 @@ declare function planTableImport({ definition, spec, after, }: {
|
|
|
1880
2450
|
after?: string;
|
|
1881
2451
|
}): ImportPlanResult;
|
|
1882
2452
|
|
|
1883
|
-
export { ACTION_REQUIRES_DENIED_SQLSTATE, ACTION_VALIDATES_FAILED_SQLSTATE, AUDIT_ACTIONS, type ActionDefinition, CAPABILITIES_CLAIM_KEY, CLAIMS_SETTING, COLUMN_TYPES, COMPARE_OPS, CanonicalDefinition, type ColumnDefault, type ColumnDefinition, type ColumnType, type CommittedChainEntry, type CommittedMigration, type CompareOp, type CompilePredIrToSqlOptions, type CompiledStatement, type DefinitionFile, type DefinitionSource, type DestructiveStatement, type DiffOptions, type DrizzleEntities, IMPORT_CONFLICT_MODES, type ImportConflictMode, type ImportPlan, type ImportPlanResult, type ImportSpec, type IndexDefinition, type JournalEntry, type LinkDefinition, type LoadedNamespace, MIGRATIONS_DIRNAME, type MigrationJournal, type MigrationWorkspace, type NamespaceCapabilities, type NamespaceConfig, type NamespaceDefinition, type NamespaceSnapshot, ORM_MIGRATION_EXPORT_FILE, ORM_MIGRATION_EXPORT_MAX_BYTES, type Operand, OrmDefinitionError, type OrmMigrationExport, type ParsedPredicate, type PlannedMigration, PredIr, type Predicate, type PredicateColumnTypes, PredicateParseError, ROLES_CLAIM_KEY, type RebaseEntry, type RebaseEntryInput, type RebaseNoopOptions, STATEMENT_KINDS, SYNCED_VIEW_EXECUTION_OWNER_ROLE, type StatementKind, type SyncedBacking, type SyncedColumnType, type SyncedPredicateColumnTypes, type TableFile, TableMetaIr, type ValidatesEntry, type WrittenMigration, actionFunctionName, actionFunctionStatements, actionParamArg, actionParamOrder, actionParamSchema, actionPrepareChecks, actionSchema, actionWriteTargets, actionsInterfaceName, applyMigrationHints, applyMigrationHintsV2, assertSyncedViewDefinitionMatches, buildActionParamsSchema, buildDrizzleEntities, buildDrizzleEntitiesV2, buildNamespaceDefinition, buildRebaseJournalEntry, canonicalizeDefinition, capabilityExpression, castParts, checksumOf, claimExpression, classifyDestructive, columnSchema, columnTypeSchema, compileActionRequires, compileActionStatements, compileNamespace, compilePredIrToSql, compilePredicate, computeDefinitionHash, convertV1DefinitionToCanonical, createOrmMigrationExport, declaredCapabilityKeys, diffCommand, diffStatements, emptyJournal, emptySnapshot, extractNamedParams, generateNamespaceTypes, generateSnapshot, generateSnapshotV2, identifierSchema, importSpecSchema, isFunctionDefault, isOwnedStatement, isOwnedStatementV2, isQualifiedReference, loadCommittedMigrations, loadCommittedTipMigration, loadNamespaceDefinition, migrationName, namespaceConfigSchema, namespaceSchema, normalizeSnapshot, ormMigrationExportSchema, parseCanonicalDefinition, parseDefinitionSources, parseOrmMigrationExport, parsePredicate, parseTableFile, parsedPredicateSchema, pendingKitStatements, pendingKitStatementsV2, planCommittedMigrationV2, planMigration, planMigrationV2, planTableImport, predicateOperands, quoteIdentifier, quoteLiteral, readMigrationSql, readMigrationWorkspace, readSnapshot, rebaseViolations, referencedCapabilities, referencedColumns, renderMigrationSql, renderOrmMigrationExport, rewriteSyncedSourceRelationsInViewQuery, roleExpression, securityStatements, sqlTypeName, stableJson, syncedBackingRevokeStatements, syncedTables, syncedViewDropStatements, syncedViewStatements, tableFileSchema, tableReferenceSchema, typesInterfaceName, validateViewCatalogStatement, verifyRebaseIsNoop, walkPredicate, writeMigration };
|
|
2453
|
+
export { ACTION_REQUIRES_DENIED_SQLSTATE, ACTION_VALIDATES_FAILED_SQLSTATE, AUDIT_ACTIONS, type ActionDefinition, CAPABILITIES_CLAIM_KEY, CLAIMS_SETTING, COLUMN_TYPES, COMPARE_OPS, CanonicalDefinition, type ColumnDefault, type ColumnDefinition, type ColumnType, type CommittedChainEntry, type CommittedMigration, type CompareOp, type CompilePredIrToSqlOptions, type CompiledStatement, type DeclaredSyncedIndex, type DefinitionFile, type DefinitionSource, type DestructiveStatement, type DiffOptions, type DrizzleEntities, IMPORT_CONFLICT_MODES, type ImportConflictMode, type ImportPlan, type ImportPlanResult, type ImportSpec, type IndexDefinition, type JournalEntry, type LinkDefinition, type LoadedNamespace, MIGRATIONS_DIRNAME, type MigrationJournal, type MigrationWorkspace, type NamespaceCapabilities, type NamespaceConfig, type NamespaceDefinition, type NamespaceSnapshot, ORM_MIGRATION_EXPORT_FILE, ORM_MIGRATION_EXPORT_MAX_BYTES, type Operand, OrmDefinitionError, type OrmMigrationExport, type ParsedPredicate, type PlacedSyncedIndex, type PlannedMigration, PredIr, type Predicate, type PredicateColumnTypes, PredicateParseError, ROLES_CLAIM_KEY, type RebaseEntry, type RebaseEntryInput, type RebaseNoopOptions, STATEMENT_KINDS, SYNCED_BACKING_ABSENT_FUNCTION, SYNCED_BACKING_ABSENT_SQLSTATE, SYNCED_VIEW_EXECUTION_OWNER_ROLE, SelectionIr, type StatementKind, type SyncedBacking, type SyncedColumnType, type SyncedIndexBacking, type SyncedPredicateColumnTypes, type TableFile, TableMetaIr, type ValidatesEntry, type WrittenMigration, actionFunctionName, actionFunctionStatements, actionParamArg, actionParamOrder, actionParamSchema, actionPrepareChecks, actionSchema, actionWriteTargets, actionsInterfaceName, applyMigrationHints, applyMigrationHintsV2, assertSyncedViewDefinitionMatches, buildActionParamsSchema, buildDrizzleEntities, buildDrizzleEntitiesV2, buildNamespaceDefinition, buildRebaseJournalEntry, canonicalizeDefinition, capabilityExpression, castParts, checksumOf, claimExpression, classifyDestructive, columnSchema, columnTypeSchema, compileActionRequires, compileActionStatements, compileNamespace, compilePredIrToSql, compilePredicate, computeDefinitionHash, convertV1DefinitionToCanonical, createOrmMigrationExport, declaredCapabilityKeys, declaredSyncedIndexes, diffCommand, diffStatements, disabledSyncedObjectFromError, disabledSyncedObjectMessage, emptyJournal, emptySnapshot, extractNamedParams, generateNamespaceTypes, generateSnapshot, generateSnapshotV2, identifierSchema, importSpecSchema, isFunctionDefault, isOwnedStatement, isOwnedStatementV2, isQualifiedReference, isSyncedIndexStatement, loadCommittedMigrations, loadCommittedTipMigration, loadNamespaceDefinition, migrationName, namespaceConfigSchema, namespaceSchema, normalizeSnapshot, ormMigrationExportSchema, parseCanonicalDefinition, parseDefinitionSources, parseOrmMigrationExport, parsePredicate, parseTableFile, parsedPredicateSchema, pendingKitStatements, pendingKitStatementsV2, pendingSyncedIndexStatements, planCommittedMigrationV2, planMigration, planMigrationV2, planTableImport, predicateOperands, quoteIdentifier, quoteLiteral, readMigrationSql, readMigrationWorkspace, readSnapshot, rebaseViolations, referencedCapabilities, referencedColumns, renderMigrationSql, renderOrmMigrationExport, rewriteSyncedSourceRelationsInViewQuery, roleExpression, securityStatements, sqlTypeName, stableJson, syncedBackingRevokeStatements, syncedIndexStatements, syncedTables, syncedViewDropStatements, syncedViewStatements, syncedViewUnbackedStatements, tableFileSchema, tableReferenceSchema, typesInterfaceName, validateViewCatalogStatement, verifyRebaseIsNoop, walkPredicate, writeMigration };
|