@sequenceholdings/orm 2.11.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 +3 -4
- package/dist/authoring.d.cts +1 -1
- package/dist/authoring.d.ts +1 -1
- package/dist/canonical.d.cts +43 -43
- package/dist/canonical.d.ts +43 -43
- package/dist/cli.cjs +147 -195
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +148 -196
- 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 +14 -67
- package/dist/compiler.cjs.map +1 -1
- package/dist/compiler.d.cts +6 -17
- package/dist/compiler.d.ts +6 -17
- package/dist/compiler.js +16 -66
- package/dist/compiler.js.map +1 -1
- package/dist/index.cjs +242 -189
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +541 -36
- package/dist/index.d.ts +541 -36
- package/dist/index.js +237 -189
- package/dist/index.js.map +1 -1
- package/dist/ir.cjs +6 -11
- package/dist/ir.cjs.map +1 -1
- package/dist/ir.d.cts +61 -64
- package/dist/ir.d.ts +61 -64
- package/dist/ir.js +6 -11
- package/dist/ir.js.map +1 -1
- package/dist/predicate-v2.cjs +3 -8
- package/dist/predicate-v2.cjs.map +1 -1
- package/dist/predicate-v2.js +3 -8
- package/dist/predicate-v2.js.map +1 -1
- package/dist/sdl.cjs +4 -11
- 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 +4 -11
- package/dist/sdl.js.map +1 -1
- package/package.json +1 -1
- package/src/codegen-gql/server-fns.cjs +1 -1
- package/dist/{definition-CevES7lM.d.cts → definition-B99BsOAO.d.cts} +2 -2
- package/dist/{definition-CevES7lM.d.ts → definition-B99BsOAO.d.ts} +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export { AuthoringContext, AuthoringRegistration, COLUMN_BRAND, COLUMN_DEFAULT_FNS, CatalogFolders, CheckInput, ColumnBuilder, ColumnDefaultFn, ColumnDefaultLiteral, ColumnTypeSpec, Comparator, CowMutationInput, DrizzleRelation, DurationInput, ENUM_BRAND, EnumRef, EtlSourceInput, ExternalObjectRef, ForeignKeyInput, FunctionRef, IndexInput, LINK_BRAND, LinkKind, LoadNamespaceOptions, LoadedNamespaceV2, ManualSourceInput, NAMESPACE_CONFIG_BRAND, NAMESPACE_CONFIG_FILE, NamespaceCapabilitiesInput, NamespaceCatalog, NamespaceConfigInput, ORM_TO_PIPELINE_TYPE, OrmContractColumnMap, OrmContractPipelineColumn, OrmSyncedTableContract, OrmToPipelineType, OverlayTableRef, OverlayWinsUnionInput, OverrideRowMutationInput, PolicyInput, PolicyVariantInput, PolicyWithVariantsInput, PrefetchSourceInput, ReferentialAction, RelationRef, ResolvedSourceInput, ResolvedTableConfig, ResolvedTablePoliciesInput, RevertOverlayMutationInput, SCHEMA_DIR, SYNCED_CONTRACT_HASH_DOMAIN, SeqLink, SeqNamespaceConfig, SeqTable, SeqView, SerializeNamespaceInput, SyncedTableConfig, SyncedTablePoliciesInput, TABLE_BRAND, TableConfig, TablePoliciesInput, TableRef, ToManyOptions, ToOneOptions, ToPlatformUserOptions, TypedSyncedTableConfig, VIEW_BRAND, ViewConfig, ViewPoliciesInput, ViewQueryContext, ViewSelectQuery, activeAuthoringContext, beginAuthoringContext, computeCanonicalHash, computeSyncedContractHash, custom, defineEnum, defineNamespace, defineResolvedTable, defineSyncedTable, defineTable, defineView, deriveColumnName, endAuthoringContext, etlSource, extractOrmSyncedTableContract, highest, isColumnBuilder, isEnumRef, isSeqLink, isSeqNamespaceConfig, isSeqTable, isSeqView, latest, loadNamespaceFromDir, lowest, managedFn, manualSource, nonNullFirst, objectRef, overlayWinsUnion, overrideRowMutation, prefetchSource, priority, revertOverlayMutation, serializeNamespace, syncedContractSurface, t, toMany, toOne, toPlatformUser, validateNamespaceCatalog } from './authoring.cjs';
|
|
2
|
-
export { S as SqlOperationDefinition, d as defineOperation } from './definition-
|
|
2
|
+
export { S as SqlOperationDefinition, d as defineOperation } from './definition-B99BsOAO.cjs';
|
|
3
3
|
import { CanonicalDefinition } from './canonical.cjs';
|
|
4
4
|
export { CANONICAL_FORMAT, CanonicalColumn, CanonicalEnum, CanonicalLink, CanonicalTable, CanonicalView, IDENTIFIER_RE, OntologyContract, canonicalActionSchema, canonicalColumnSchema, canonicalDefinitionSchema, canonicalEnumSchema, canonicalIndexSchema, canonicalLinkSchema, canonicalPoliciesSchema, canonicalRelations, canonicalTableSchema, canonicalViewSchema, normalizeCanonical, ontologyContractSchema, readOntologyContract } from './canonical.cjs';
|
|
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.cjs';
|
|
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.cjs';
|
|
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.cjs';
|
|
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.cjs';
|
|
11
11
|
import { generateDrizzleJson } from 'drizzle-kit/api';
|
|
12
12
|
import { PgTableWithColumns } from 'drizzle-orm/pg-core';
|
|
@@ -53,8 +53,8 @@ declare const actionParamSchema: z.ZodObject<{
|
|
|
53
53
|
bigint: "bigint";
|
|
54
54
|
boolean: "boolean";
|
|
55
55
|
date: "date";
|
|
56
|
-
text: "text";
|
|
57
56
|
uuid: "uuid";
|
|
57
|
+
text: "text";
|
|
58
58
|
integer: "integer";
|
|
59
59
|
numeric: "numeric";
|
|
60
60
|
double: "double";
|
|
@@ -78,8 +78,8 @@ declare const actionSchema: z.ZodObject<{
|
|
|
78
78
|
bigint: "bigint";
|
|
79
79
|
boolean: "boolean";
|
|
80
80
|
date: "date";
|
|
81
|
-
text: "text";
|
|
82
81
|
uuid: "uuid";
|
|
82
|
+
text: "text";
|
|
83
83
|
integer: "integer";
|
|
84
84
|
numeric: "numeric";
|
|
85
85
|
double: "double";
|
|
@@ -95,8 +95,8 @@ declare const actionSchema: z.ZodObject<{
|
|
|
95
95
|
bigint: "bigint";
|
|
96
96
|
boolean: "boolean";
|
|
97
97
|
date: "date";
|
|
98
|
-
text: "text";
|
|
99
98
|
uuid: "uuid";
|
|
99
|
+
text: "text";
|
|
100
100
|
integer: "integer";
|
|
101
101
|
numeric: "numeric";
|
|
102
102
|
double: "double";
|
|
@@ -105,9 +105,9 @@ declare const actionSchema: z.ZodObject<{
|
|
|
105
105
|
}>>>;
|
|
106
106
|
audit: z.ZodOptional<z.ZodObject<{
|
|
107
107
|
action: z.ZodEnum<{
|
|
108
|
-
create: "create";
|
|
109
108
|
update: "update";
|
|
110
109
|
delete: "delete";
|
|
110
|
+
create: "create";
|
|
111
111
|
}>;
|
|
112
112
|
resource: z.ZodOptional<z.ZodString>;
|
|
113
113
|
}, z.core.$strict>>;
|
|
@@ -130,8 +130,8 @@ declare const columnTypeSchema: z.ZodEnum<{
|
|
|
130
130
|
bigint: "bigint";
|
|
131
131
|
boolean: "boolean";
|
|
132
132
|
date: "date";
|
|
133
|
-
text: "text";
|
|
134
133
|
uuid: "uuid";
|
|
134
|
+
text: "text";
|
|
135
135
|
integer: "integer";
|
|
136
136
|
numeric: "numeric";
|
|
137
137
|
double: "double";
|
|
@@ -162,8 +162,8 @@ declare const columnSchema: z.ZodObject<{
|
|
|
162
162
|
bigint: "bigint";
|
|
163
163
|
boolean: "boolean";
|
|
164
164
|
date: "date";
|
|
165
|
-
text: "text";
|
|
166
165
|
uuid: "uuid";
|
|
166
|
+
text: "text";
|
|
167
167
|
integer: "integer";
|
|
168
168
|
numeric: "numeric";
|
|
169
169
|
double: "double";
|
|
@@ -212,8 +212,8 @@ declare const tableFileSchema: z.ZodObject<{
|
|
|
212
212
|
bigint: "bigint";
|
|
213
213
|
boolean: "boolean";
|
|
214
214
|
date: "date";
|
|
215
|
-
text: "text";
|
|
216
215
|
uuid: "uuid";
|
|
216
|
+
text: "text";
|
|
217
217
|
integer: "integer";
|
|
218
218
|
numeric: "numeric";
|
|
219
219
|
double: "double";
|
|
@@ -263,8 +263,8 @@ declare const tableFileSchema: z.ZodObject<{
|
|
|
263
263
|
bigint: "bigint";
|
|
264
264
|
boolean: "boolean";
|
|
265
265
|
date: "date";
|
|
266
|
-
text: "text";
|
|
267
266
|
uuid: "uuid";
|
|
267
|
+
text: "text";
|
|
268
268
|
integer: "integer";
|
|
269
269
|
numeric: "numeric";
|
|
270
270
|
double: "double";
|
|
@@ -280,8 +280,8 @@ declare const tableFileSchema: z.ZodObject<{
|
|
|
280
280
|
bigint: "bigint";
|
|
281
281
|
boolean: "boolean";
|
|
282
282
|
date: "date";
|
|
283
|
-
text: "text";
|
|
284
283
|
uuid: "uuid";
|
|
284
|
+
text: "text";
|
|
285
285
|
integer: "integer";
|
|
286
286
|
numeric: "numeric";
|
|
287
287
|
double: "double";
|
|
@@ -290,9 +290,9 @@ declare const tableFileSchema: z.ZodObject<{
|
|
|
290
290
|
}>>>;
|
|
291
291
|
audit: z.ZodOptional<z.ZodObject<{
|
|
292
292
|
action: z.ZodEnum<{
|
|
293
|
-
create: "create";
|
|
294
293
|
update: "update";
|
|
295
294
|
delete: "delete";
|
|
295
|
+
create: "create";
|
|
296
296
|
}>;
|
|
297
297
|
resource: z.ZodOptional<z.ZodString>;
|
|
298
298
|
}, z.core.$strict>>;
|
|
@@ -684,6 +684,29 @@ declare function syncedViewStatements({ definition, backings, readPolicyIrByTabl
|
|
|
684
684
|
/** False reproduces the previous compiler solely to verify existing view definitions. */
|
|
685
685
|
statementClaimChecks?: boolean;
|
|
686
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[];
|
|
687
710
|
/**
|
|
688
711
|
* Drop synced views — idempotent cleanup for apply retries and removal.
|
|
689
712
|
*/
|
|
@@ -700,6 +723,25 @@ declare function syncedBackingRevokeStatements({ backings, executionOwnerRole, }
|
|
|
700
723
|
executionOwnerRole?: string;
|
|
701
724
|
}): string[];
|
|
702
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
|
+
|
|
703
745
|
/**
|
|
704
746
|
* Prove a stored synced view still has an exact compiler definition before
|
|
705
747
|
* replacing its policy. This is deliberately narrower than SQL equivalence.
|
|
@@ -763,8 +805,10 @@ declare function generateSnapshotV2(definition: CanonicalDefinition, previousId?
|
|
|
763
805
|
* we emit the statement ourselves and rewrite the previous snapshot to match,
|
|
764
806
|
* so drizzle-kit never faces a create+drop ambiguity (its API resolves those
|
|
765
807
|
* interactively — fatal in a service). Semantics mirror engine/snapshot.ts
|
|
766
|
-
* applyMigrationHints
|
|
767
|
-
* (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).
|
|
768
812
|
*
|
|
769
813
|
* This is a sibling of the v1 function rather than a wrapper: the v1 one is
|
|
770
814
|
* keyed to `NamespaceDefinition`'s record-shaped columns and cannot express
|
|
@@ -867,8 +911,8 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
867
911
|
bigint: "bigint";
|
|
868
912
|
boolean: "boolean";
|
|
869
913
|
date: "date";
|
|
870
|
-
text: "text";
|
|
871
914
|
uuid: "uuid";
|
|
915
|
+
text: "text";
|
|
872
916
|
integer: "integer";
|
|
873
917
|
numeric: "numeric";
|
|
874
918
|
double: "double";
|
|
@@ -895,10 +939,10 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
895
939
|
of: z.ZodString;
|
|
896
940
|
part: z.ZodEnum<{
|
|
897
941
|
at: "at";
|
|
898
|
-
by: "by";
|
|
899
|
-
rev: "rev";
|
|
900
942
|
source: "source";
|
|
943
|
+
by: "by";
|
|
901
944
|
conflicts: "conflicts";
|
|
945
|
+
rev: "rev";
|
|
902
946
|
}>;
|
|
903
947
|
}, z.core.$strict>>;
|
|
904
948
|
}, z.core.$strip>>>;
|
|
@@ -982,8 +1026,8 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
982
1026
|
bigint: "bigint";
|
|
983
1027
|
boolean: "boolean";
|
|
984
1028
|
date: "date";
|
|
985
|
-
text: "text";
|
|
986
1029
|
uuid: "uuid";
|
|
1030
|
+
text: "text";
|
|
987
1031
|
integer: "integer";
|
|
988
1032
|
numeric: "numeric";
|
|
989
1033
|
double: "double";
|
|
@@ -995,8 +1039,8 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
995
1039
|
executes: z.ZodString;
|
|
996
1040
|
returns: z.ZodDefault<z.ZodEnum<{
|
|
997
1041
|
rows: "rows";
|
|
998
|
-
rowsAffected: "rowsAffected";
|
|
999
1042
|
scalar: "scalar";
|
|
1043
|
+
rowsAffected: "rowsAffected";
|
|
1000
1044
|
}>>;
|
|
1001
1045
|
audit: z.ZodOptional<z.ZodObject<{
|
|
1002
1046
|
action: z.ZodString;
|
|
@@ -1052,8 +1096,8 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
1052
1096
|
bigint: "bigint";
|
|
1053
1097
|
boolean: "boolean";
|
|
1054
1098
|
date: "date";
|
|
1055
|
-
text: "text";
|
|
1056
1099
|
uuid: "uuid";
|
|
1100
|
+
text: "text";
|
|
1057
1101
|
integer: "integer";
|
|
1058
1102
|
numeric: "numeric";
|
|
1059
1103
|
double: "double";
|
|
@@ -1080,10 +1124,10 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
1080
1124
|
of: z.ZodString;
|
|
1081
1125
|
part: z.ZodEnum<{
|
|
1082
1126
|
at: "at";
|
|
1083
|
-
by: "by";
|
|
1084
|
-
rev: "rev";
|
|
1085
1127
|
source: "source";
|
|
1128
|
+
by: "by";
|
|
1086
1129
|
conflicts: "conflicts";
|
|
1130
|
+
rev: "rev";
|
|
1087
1131
|
}>;
|
|
1088
1132
|
}, z.core.$strict>>;
|
|
1089
1133
|
}, z.core.$strip>>;
|
|
@@ -1132,9 +1176,9 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
1132
1176
|
sources: z.ZodArray<z.ZodObject<{
|
|
1133
1177
|
name: z.ZodString;
|
|
1134
1178
|
kind: z.ZodEnum<{
|
|
1179
|
+
prefetch: "prefetch";
|
|
1135
1180
|
manual: "manual";
|
|
1136
1181
|
etl: "etl";
|
|
1137
|
-
prefetch: "prefetch";
|
|
1138
1182
|
}>;
|
|
1139
1183
|
table: z.ZodString;
|
|
1140
1184
|
columns: z.ZodArray<z.ZodString>;
|
|
@@ -1256,8 +1300,8 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
1256
1300
|
bigint: "bigint";
|
|
1257
1301
|
boolean: "boolean";
|
|
1258
1302
|
date: "date";
|
|
1259
|
-
text: "text";
|
|
1260
1303
|
uuid: "uuid";
|
|
1304
|
+
text: "text";
|
|
1261
1305
|
integer: "integer";
|
|
1262
1306
|
numeric: "numeric";
|
|
1263
1307
|
double: "double";
|
|
@@ -1284,10 +1328,10 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
1284
1328
|
of: z.ZodString;
|
|
1285
1329
|
part: z.ZodEnum<{
|
|
1286
1330
|
at: "at";
|
|
1287
|
-
by: "by";
|
|
1288
|
-
rev: "rev";
|
|
1289
1331
|
source: "source";
|
|
1332
|
+
by: "by";
|
|
1290
1333
|
conflicts: "conflicts";
|
|
1334
|
+
rev: "rev";
|
|
1291
1335
|
}>;
|
|
1292
1336
|
}, z.core.$strict>>;
|
|
1293
1337
|
}, z.core.$strip>>>;
|
|
@@ -1371,8 +1415,8 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
1371
1415
|
bigint: "bigint";
|
|
1372
1416
|
boolean: "boolean";
|
|
1373
1417
|
date: "date";
|
|
1374
|
-
text: "text";
|
|
1375
1418
|
uuid: "uuid";
|
|
1419
|
+
text: "text";
|
|
1376
1420
|
integer: "integer";
|
|
1377
1421
|
numeric: "numeric";
|
|
1378
1422
|
double: "double";
|
|
@@ -1384,8 +1428,8 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
1384
1428
|
executes: z.ZodString;
|
|
1385
1429
|
returns: z.ZodDefault<z.ZodEnum<{
|
|
1386
1430
|
rows: "rows";
|
|
1387
|
-
rowsAffected: "rowsAffected";
|
|
1388
1431
|
scalar: "scalar";
|
|
1432
|
+
rowsAffected: "rowsAffected";
|
|
1389
1433
|
}>>;
|
|
1390
1434
|
audit: z.ZodOptional<z.ZodObject<{
|
|
1391
1435
|
action: z.ZodString;
|
|
@@ -1441,8 +1485,8 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
1441
1485
|
bigint: "bigint";
|
|
1442
1486
|
boolean: "boolean";
|
|
1443
1487
|
date: "date";
|
|
1444
|
-
text: "text";
|
|
1445
1488
|
uuid: "uuid";
|
|
1489
|
+
text: "text";
|
|
1446
1490
|
integer: "integer";
|
|
1447
1491
|
numeric: "numeric";
|
|
1448
1492
|
double: "double";
|
|
@@ -1469,10 +1513,10 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
1469
1513
|
of: z.ZodString;
|
|
1470
1514
|
part: z.ZodEnum<{
|
|
1471
1515
|
at: "at";
|
|
1472
|
-
by: "by";
|
|
1473
|
-
rev: "rev";
|
|
1474
1516
|
source: "source";
|
|
1517
|
+
by: "by";
|
|
1475
1518
|
conflicts: "conflicts";
|
|
1519
|
+
rev: "rev";
|
|
1476
1520
|
}>;
|
|
1477
1521
|
}, z.core.$strict>>;
|
|
1478
1522
|
}, z.core.$strip>>;
|
|
@@ -1521,9 +1565,9 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
1521
1565
|
sources: z.ZodArray<z.ZodObject<{
|
|
1522
1566
|
name: z.ZodString;
|
|
1523
1567
|
kind: z.ZodEnum<{
|
|
1568
|
+
prefetch: "prefetch";
|
|
1524
1569
|
manual: "manual";
|
|
1525
1570
|
etl: "etl";
|
|
1526
|
-
prefetch: "prefetch";
|
|
1527
1571
|
}>;
|
|
1528
1572
|
table: z.ZodString;
|
|
1529
1573
|
columns: z.ZodArray<z.ZodString>;
|
|
@@ -1631,8 +1675,469 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
1631
1675
|
contents: z.ZodString;
|
|
1632
1676
|
}, z.core.$strict>>;
|
|
1633
1677
|
client_manifest: z.ZodObject<{
|
|
1634
|
-
|
|
1635
|
-
|
|
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>>;
|
|
1636
2141
|
}, z.core.$strict>;
|
|
1637
2142
|
sdl: z.ZodString;
|
|
1638
2143
|
schema_snapshot: z.ZodJSONSchema;
|
|
@@ -1945,4 +2450,4 @@ declare function planTableImport({ definition, spec, after, }: {
|
|
|
1945
2450
|
after?: string;
|
|
1946
2451
|
}): ImportPlanResult;
|
|
1947
2452
|
|
|
1948
|
-
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_VIEW_EXECUTION_OWNER_ROLE, 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, 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, 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 };
|