@sequenceholdings/orm 2.5.0 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -0
- package/dist/authoring.d.cts +1 -1
- package/dist/authoring.d.ts +1 -1
- package/dist/canonical.d.cts +71 -71
- package/dist/canonical.d.ts +71 -71
- package/dist/cli.cjs +23 -11
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +23 -11
- package/dist/cli.js.map +1 -1
- package/dist/client.cjs +10 -5
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +37 -30
- package/dist/client.d.ts +37 -30
- package/dist/client.js +10 -6
- package/dist/client.js.map +1 -1
- package/dist/compiler.cjs +127 -9
- package/dist/compiler.cjs.map +1 -1
- package/dist/compiler.d.cts +26 -3
- package/dist/compiler.d.ts +26 -3
- package/dist/compiler.js +125 -10
- package/dist/compiler.js.map +1 -1
- package/dist/index.cjs +260 -138
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +82 -60
- package/dist/index.d.ts +82 -60
- package/dist/index.js +260 -139
- package/dist/index.js.map +1 -1
- package/dist/ir.cjs +5 -1
- package/dist/ir.cjs.map +1 -1
- package/dist/ir.d.cts +70 -70
- package/dist/ir.d.ts +70 -70
- package/dist/ir.js +5 -1
- package/dist/ir.js.map +1 -1
- package/dist/predicate-v2.cjs +5 -1
- package/dist/predicate-v2.cjs.map +1 -1
- package/dist/predicate-v2.js +5 -1
- package/dist/predicate-v2.js.map +1 -1
- package/dist/sdl.cjs +7 -1
- package/dist/sdl.cjs.map +1 -1
- package/dist/sdl.js +7 -1
- package/dist/sdl.js.map +1 -1
- package/package.json +1 -1
- package/dist/{definition-B99BsOAO.d.cts → definition-DjfC7Lll.d.cts} +4 -4
- package/dist/{definition-B99BsOAO.d.ts → definition-DjfC7Lll.d.ts} +4 -4
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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-DjfC7Lll.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';
|
|
@@ -53,13 +53,13 @@ declare const actionParamSchema: z.ZodObject<{
|
|
|
53
53
|
bigint: "bigint";
|
|
54
54
|
boolean: "boolean";
|
|
55
55
|
date: "date";
|
|
56
|
-
uuid: "uuid";
|
|
57
56
|
text: "text";
|
|
57
|
+
timestamptz: "timestamptz";
|
|
58
|
+
jsonb: "jsonb";
|
|
59
|
+
uuid: "uuid";
|
|
58
60
|
integer: "integer";
|
|
59
61
|
numeric: "numeric";
|
|
60
62
|
double: "double";
|
|
61
|
-
timestamptz: "timestamptz";
|
|
62
|
-
jsonb: "jsonb";
|
|
63
63
|
}>;
|
|
64
64
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
65
65
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -78,13 +78,13 @@ declare const actionSchema: z.ZodObject<{
|
|
|
78
78
|
bigint: "bigint";
|
|
79
79
|
boolean: "boolean";
|
|
80
80
|
date: "date";
|
|
81
|
-
uuid: "uuid";
|
|
82
81
|
text: "text";
|
|
82
|
+
timestamptz: "timestamptz";
|
|
83
|
+
jsonb: "jsonb";
|
|
84
|
+
uuid: "uuid";
|
|
83
85
|
integer: "integer";
|
|
84
86
|
numeric: "numeric";
|
|
85
87
|
double: "double";
|
|
86
|
-
timestamptz: "timestamptz";
|
|
87
|
-
jsonb: "jsonb";
|
|
88
88
|
}>;
|
|
89
89
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
90
90
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -95,19 +95,19 @@ declare const actionSchema: z.ZodObject<{
|
|
|
95
95
|
bigint: "bigint";
|
|
96
96
|
boolean: "boolean";
|
|
97
97
|
date: "date";
|
|
98
|
-
uuid: "uuid";
|
|
99
98
|
text: "text";
|
|
99
|
+
timestamptz: "timestamptz";
|
|
100
|
+
jsonb: "jsonb";
|
|
101
|
+
uuid: "uuid";
|
|
100
102
|
integer: "integer";
|
|
101
103
|
numeric: "numeric";
|
|
102
104
|
double: "double";
|
|
103
|
-
timestamptz: "timestamptz";
|
|
104
|
-
jsonb: "jsonb";
|
|
105
105
|
}>>>;
|
|
106
106
|
audit: z.ZodOptional<z.ZodObject<{
|
|
107
107
|
action: z.ZodEnum<{
|
|
108
108
|
update: "update";
|
|
109
|
-
delete: "delete";
|
|
110
109
|
create: "create";
|
|
110
|
+
delete: "delete";
|
|
111
111
|
}>;
|
|
112
112
|
resource: z.ZodOptional<z.ZodString>;
|
|
113
113
|
}, z.core.$strict>>;
|
|
@@ -130,13 +130,13 @@ declare const columnTypeSchema: z.ZodEnum<{
|
|
|
130
130
|
bigint: "bigint";
|
|
131
131
|
boolean: "boolean";
|
|
132
132
|
date: "date";
|
|
133
|
-
uuid: "uuid";
|
|
134
133
|
text: "text";
|
|
134
|
+
timestamptz: "timestamptz";
|
|
135
|
+
jsonb: "jsonb";
|
|
136
|
+
uuid: "uuid";
|
|
135
137
|
integer: "integer";
|
|
136
138
|
numeric: "numeric";
|
|
137
139
|
double: "double";
|
|
138
|
-
timestamptz: "timestamptz";
|
|
139
|
-
jsonb: "jsonb";
|
|
140
140
|
}>;
|
|
141
141
|
/**
|
|
142
142
|
* True when the default is one of the allowlisted SQL function calls for its
|
|
@@ -162,13 +162,13 @@ declare const columnSchema: z.ZodObject<{
|
|
|
162
162
|
bigint: "bigint";
|
|
163
163
|
boolean: "boolean";
|
|
164
164
|
date: "date";
|
|
165
|
-
uuid: "uuid";
|
|
166
165
|
text: "text";
|
|
166
|
+
timestamptz: "timestamptz";
|
|
167
|
+
jsonb: "jsonb";
|
|
168
|
+
uuid: "uuid";
|
|
167
169
|
integer: "integer";
|
|
168
170
|
numeric: "numeric";
|
|
169
171
|
double: "double";
|
|
170
|
-
timestamptz: "timestamptz";
|
|
171
|
-
jsonb: "jsonb";
|
|
172
172
|
}>;
|
|
173
173
|
primary_key: z.ZodOptional<z.ZodBoolean>;
|
|
174
174
|
nullable: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -212,13 +212,13 @@ declare const tableFileSchema: z.ZodObject<{
|
|
|
212
212
|
bigint: "bigint";
|
|
213
213
|
boolean: "boolean";
|
|
214
214
|
date: "date";
|
|
215
|
-
uuid: "uuid";
|
|
216
215
|
text: "text";
|
|
216
|
+
timestamptz: "timestamptz";
|
|
217
|
+
jsonb: "jsonb";
|
|
218
|
+
uuid: "uuid";
|
|
217
219
|
integer: "integer";
|
|
218
220
|
numeric: "numeric";
|
|
219
221
|
double: "double";
|
|
220
|
-
timestamptz: "timestamptz";
|
|
221
|
-
jsonb: "jsonb";
|
|
222
222
|
}>;
|
|
223
223
|
primary_key: z.ZodOptional<z.ZodBoolean>;
|
|
224
224
|
nullable: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -263,13 +263,13 @@ declare const tableFileSchema: z.ZodObject<{
|
|
|
263
263
|
bigint: "bigint";
|
|
264
264
|
boolean: "boolean";
|
|
265
265
|
date: "date";
|
|
266
|
-
uuid: "uuid";
|
|
267
266
|
text: "text";
|
|
267
|
+
timestamptz: "timestamptz";
|
|
268
|
+
jsonb: "jsonb";
|
|
269
|
+
uuid: "uuid";
|
|
268
270
|
integer: "integer";
|
|
269
271
|
numeric: "numeric";
|
|
270
272
|
double: "double";
|
|
271
|
-
timestamptz: "timestamptz";
|
|
272
|
-
jsonb: "jsonb";
|
|
273
273
|
}>;
|
|
274
274
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
275
275
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -280,19 +280,19 @@ declare const tableFileSchema: z.ZodObject<{
|
|
|
280
280
|
bigint: "bigint";
|
|
281
281
|
boolean: "boolean";
|
|
282
282
|
date: "date";
|
|
283
|
-
uuid: "uuid";
|
|
284
283
|
text: "text";
|
|
284
|
+
timestamptz: "timestamptz";
|
|
285
|
+
jsonb: "jsonb";
|
|
286
|
+
uuid: "uuid";
|
|
285
287
|
integer: "integer";
|
|
286
288
|
numeric: "numeric";
|
|
287
289
|
double: "double";
|
|
288
|
-
timestamptz: "timestamptz";
|
|
289
|
-
jsonb: "jsonb";
|
|
290
290
|
}>>>;
|
|
291
291
|
audit: z.ZodOptional<z.ZodObject<{
|
|
292
292
|
action: z.ZodEnum<{
|
|
293
293
|
update: "update";
|
|
294
|
-
delete: "delete";
|
|
295
294
|
create: "create";
|
|
295
|
+
delete: "delete";
|
|
296
296
|
}>;
|
|
297
297
|
resource: z.ZodOptional<z.ZodString>;
|
|
298
298
|
}, z.core.$strict>>;
|
|
@@ -366,6 +366,8 @@ interface CompilePredIrToSqlOptions {
|
|
|
366
366
|
kind: 'exists';
|
|
367
367
|
}>) => string;
|
|
368
368
|
readonly namespace?: string;
|
|
369
|
+
/** Synced-view claim leaves are row-independent: evaluate them once per statement. */
|
|
370
|
+
readonly statementClaimChecks?: boolean;
|
|
369
371
|
/** Column name → declared type, for claim casts in comparisons. */
|
|
370
372
|
readonly columnTypes?: SyncedPredicateColumnTypes;
|
|
371
373
|
/** Logical column name → physical column name for the synced backing. */
|
|
@@ -419,8 +421,12 @@ declare function referencedCapabilities(predicate: Predicate): string[];
|
|
|
419
421
|
|
|
420
422
|
/** Column name → declared type, so claim comparisons can cast to the column's side. */
|
|
421
423
|
type PredicateColumnTypes = Readonly<Record<string, ColumnType>>;
|
|
424
|
+
interface CompilePredicateOptions {
|
|
425
|
+
/** Synced-view capability leaves have no row dependency. */
|
|
426
|
+
readonly statementClaimChecks?: boolean;
|
|
427
|
+
}
|
|
422
428
|
/** Predicate AST → a parenthesized SQL boolean expression. Never interpolates raw policy text. */
|
|
423
|
-
declare function compilePredicate(predicate: Predicate, columnTypes?: PredicateColumnTypes): string;
|
|
429
|
+
declare function compilePredicate(predicate: Predicate, columnTypes?: PredicateColumnTypes, options?: CompilePredicateOptions): string;
|
|
424
430
|
|
|
425
431
|
/** Claims are stamped per transaction by the Data API (`set_config('request.jwt.claims', …, true)`). */
|
|
426
432
|
declare const CLAIMS_SETTING = "request.jwt.claims";
|
|
@@ -586,7 +592,7 @@ interface SyncedBacking {
|
|
|
586
592
|
* SELECT before CREATE VIEW, or preserve a separately verified publisher grant.
|
|
587
593
|
*/
|
|
588
594
|
declare const SYNCED_VIEW_EXECUTION_OWNER_ROLE = "orm_exec";
|
|
589
|
-
declare function syncedViewStatements({ definition, backings, readPolicyIrByTable, columnNamesByTable, columnTypesByTable, executionOwnerRole, backingPrivileges, }: {
|
|
595
|
+
declare function syncedViewStatements({ definition, backings, readPolicyIrByTable, columnNamesByTable, columnTypesByTable, executionOwnerRole, backingPrivileges, viewPrivileges, statementClaimChecks, }: {
|
|
590
596
|
definition: NamespaceDefinition;
|
|
591
597
|
backings: readonly SyncedBacking[];
|
|
592
598
|
/** v2 compiled read policies (preserves capability/role variants). */
|
|
@@ -606,6 +612,10 @@ declare function syncedViewStatements({ definition, backings, readPolicyIrByTabl
|
|
|
606
612
|
* the views as that owner. This option does not grant backing access.
|
|
607
613
|
*/
|
|
608
614
|
backingPrivileges?: 'grant' | 'preserve';
|
|
615
|
+
/** Maintenance of an existing view must retain its consumer ACL unchanged. */
|
|
616
|
+
viewPrivileges?: 'grant' | 'preserve';
|
|
617
|
+
/** False reproduces the previous compiler solely to verify existing view definitions. */
|
|
618
|
+
statementClaimChecks?: boolean;
|
|
609
619
|
}): string[];
|
|
610
620
|
/**
|
|
611
621
|
* Drop synced views — idempotent cleanup for apply retries and removal.
|
|
@@ -623,6 +633,18 @@ declare function syncedBackingRevokeStatements({ backings, executionOwnerRole, }
|
|
|
623
633
|
executionOwnerRole?: string;
|
|
624
634
|
}): string[];
|
|
625
635
|
|
|
636
|
+
/**
|
|
637
|
+
* Prove a stored synced view still has an exact compiler definition before
|
|
638
|
+
* replacing its policy. This is deliberately narrower than SQL equivalence.
|
|
639
|
+
* Callers must separately verify catalog metadata (owner, ACL, reloptions,
|
|
640
|
+
* dependencies and column types); pg_get_viewdef contains only the SELECT.
|
|
641
|
+
* Capture it with search_path = pg_catalog so backing names stay qualified.
|
|
642
|
+
*/
|
|
643
|
+
declare function assertSyncedViewDefinitionMatches({ viewDefinition, expectedCreateStatements, }: {
|
|
644
|
+
viewDefinition: string;
|
|
645
|
+
expectedCreateStatements: readonly string[];
|
|
646
|
+
}): Promise<void>;
|
|
647
|
+
|
|
626
648
|
declare const sqlTypeName: (type: ColumnType) => string;
|
|
627
649
|
|
|
628
650
|
declare const STATEMENT_KINDS: readonly ["hint", "ddl", "security", "function", "synced_view"];
|
|
@@ -780,13 +802,13 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
780
802
|
bigint: "bigint";
|
|
781
803
|
boolean: "boolean";
|
|
782
804
|
date: "date";
|
|
783
|
-
uuid: "uuid";
|
|
784
805
|
text: "text";
|
|
806
|
+
timestamptz: "timestamptz";
|
|
807
|
+
jsonb: "jsonb";
|
|
808
|
+
uuid: "uuid";
|
|
785
809
|
integer: "integer";
|
|
786
810
|
numeric: "numeric";
|
|
787
811
|
double: "double";
|
|
788
|
-
timestamptz: "timestamptz";
|
|
789
|
-
jsonb: "jsonb";
|
|
790
812
|
}>, z.ZodObject<{
|
|
791
813
|
enum: z.ZodString;
|
|
792
814
|
}, z.core.$strip>]>;
|
|
@@ -808,10 +830,10 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
808
830
|
of: z.ZodString;
|
|
809
831
|
part: z.ZodEnum<{
|
|
810
832
|
at: "at";
|
|
811
|
-
source: "source";
|
|
812
833
|
by: "by";
|
|
813
|
-
conflicts: "conflicts";
|
|
814
834
|
rev: "rev";
|
|
835
|
+
source: "source";
|
|
836
|
+
conflicts: "conflicts";
|
|
815
837
|
}>;
|
|
816
838
|
}, z.core.$strict>>;
|
|
817
839
|
}, z.core.$strip>>>;
|
|
@@ -895,21 +917,21 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
895
917
|
bigint: "bigint";
|
|
896
918
|
boolean: "boolean";
|
|
897
919
|
date: "date";
|
|
898
|
-
uuid: "uuid";
|
|
899
920
|
text: "text";
|
|
921
|
+
timestamptz: "timestamptz";
|
|
922
|
+
jsonb: "jsonb";
|
|
923
|
+
uuid: "uuid";
|
|
900
924
|
integer: "integer";
|
|
901
925
|
numeric: "numeric";
|
|
902
926
|
double: "double";
|
|
903
|
-
timestamptz: "timestamptz";
|
|
904
|
-
jsonb: "jsonb";
|
|
905
927
|
}>;
|
|
906
928
|
nullable: z.ZodDefault<z.ZodBoolean>;
|
|
907
929
|
}, z.core.$strip>>>;
|
|
908
930
|
executes: z.ZodString;
|
|
909
931
|
returns: z.ZodDefault<z.ZodEnum<{
|
|
910
932
|
rows: "rows";
|
|
911
|
-
scalar: "scalar";
|
|
912
933
|
rowsAffected: "rowsAffected";
|
|
934
|
+
scalar: "scalar";
|
|
913
935
|
}>>;
|
|
914
936
|
audit: z.ZodOptional<z.ZodObject<{
|
|
915
937
|
action: z.ZodString;
|
|
@@ -965,13 +987,13 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
965
987
|
bigint: "bigint";
|
|
966
988
|
boolean: "boolean";
|
|
967
989
|
date: "date";
|
|
968
|
-
uuid: "uuid";
|
|
969
990
|
text: "text";
|
|
991
|
+
timestamptz: "timestamptz";
|
|
992
|
+
jsonb: "jsonb";
|
|
993
|
+
uuid: "uuid";
|
|
970
994
|
integer: "integer";
|
|
971
995
|
numeric: "numeric";
|
|
972
996
|
double: "double";
|
|
973
|
-
timestamptz: "timestamptz";
|
|
974
|
-
jsonb: "jsonb";
|
|
975
997
|
}>, z.ZodObject<{
|
|
976
998
|
enum: z.ZodString;
|
|
977
999
|
}, z.core.$strip>]>;
|
|
@@ -993,10 +1015,10 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
993
1015
|
of: z.ZodString;
|
|
994
1016
|
part: z.ZodEnum<{
|
|
995
1017
|
at: "at";
|
|
996
|
-
source: "source";
|
|
997
1018
|
by: "by";
|
|
998
|
-
conflicts: "conflicts";
|
|
999
1019
|
rev: "rev";
|
|
1020
|
+
source: "source";
|
|
1021
|
+
conflicts: "conflicts";
|
|
1000
1022
|
}>;
|
|
1001
1023
|
}, z.core.$strict>>;
|
|
1002
1024
|
}, z.core.$strip>>;
|
|
@@ -1045,8 +1067,8 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
1045
1067
|
sources: z.ZodArray<z.ZodObject<{
|
|
1046
1068
|
name: z.ZodString;
|
|
1047
1069
|
kind: z.ZodEnum<{
|
|
1048
|
-
prefetch: "prefetch";
|
|
1049
1070
|
manual: "manual";
|
|
1071
|
+
prefetch: "prefetch";
|
|
1050
1072
|
etl: "etl";
|
|
1051
1073
|
}>;
|
|
1052
1074
|
table: z.ZodString;
|
|
@@ -1168,13 +1190,13 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
1168
1190
|
bigint: "bigint";
|
|
1169
1191
|
boolean: "boolean";
|
|
1170
1192
|
date: "date";
|
|
1171
|
-
uuid: "uuid";
|
|
1172
1193
|
text: "text";
|
|
1194
|
+
timestamptz: "timestamptz";
|
|
1195
|
+
jsonb: "jsonb";
|
|
1196
|
+
uuid: "uuid";
|
|
1173
1197
|
integer: "integer";
|
|
1174
1198
|
numeric: "numeric";
|
|
1175
1199
|
double: "double";
|
|
1176
|
-
timestamptz: "timestamptz";
|
|
1177
|
-
jsonb: "jsonb";
|
|
1178
1200
|
}>, z.ZodObject<{
|
|
1179
1201
|
enum: z.ZodString;
|
|
1180
1202
|
}, z.core.$strip>]>;
|
|
@@ -1196,10 +1218,10 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
1196
1218
|
of: z.ZodString;
|
|
1197
1219
|
part: z.ZodEnum<{
|
|
1198
1220
|
at: "at";
|
|
1199
|
-
source: "source";
|
|
1200
1221
|
by: "by";
|
|
1201
|
-
conflicts: "conflicts";
|
|
1202
1222
|
rev: "rev";
|
|
1223
|
+
source: "source";
|
|
1224
|
+
conflicts: "conflicts";
|
|
1203
1225
|
}>;
|
|
1204
1226
|
}, z.core.$strict>>;
|
|
1205
1227
|
}, z.core.$strip>>>;
|
|
@@ -1283,21 +1305,21 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
1283
1305
|
bigint: "bigint";
|
|
1284
1306
|
boolean: "boolean";
|
|
1285
1307
|
date: "date";
|
|
1286
|
-
uuid: "uuid";
|
|
1287
1308
|
text: "text";
|
|
1309
|
+
timestamptz: "timestamptz";
|
|
1310
|
+
jsonb: "jsonb";
|
|
1311
|
+
uuid: "uuid";
|
|
1288
1312
|
integer: "integer";
|
|
1289
1313
|
numeric: "numeric";
|
|
1290
1314
|
double: "double";
|
|
1291
|
-
timestamptz: "timestamptz";
|
|
1292
|
-
jsonb: "jsonb";
|
|
1293
1315
|
}>;
|
|
1294
1316
|
nullable: z.ZodDefault<z.ZodBoolean>;
|
|
1295
1317
|
}, z.core.$strip>>>;
|
|
1296
1318
|
executes: z.ZodString;
|
|
1297
1319
|
returns: z.ZodDefault<z.ZodEnum<{
|
|
1298
1320
|
rows: "rows";
|
|
1299
|
-
scalar: "scalar";
|
|
1300
1321
|
rowsAffected: "rowsAffected";
|
|
1322
|
+
scalar: "scalar";
|
|
1301
1323
|
}>>;
|
|
1302
1324
|
audit: z.ZodOptional<z.ZodObject<{
|
|
1303
1325
|
action: z.ZodString;
|
|
@@ -1353,13 +1375,13 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
1353
1375
|
bigint: "bigint";
|
|
1354
1376
|
boolean: "boolean";
|
|
1355
1377
|
date: "date";
|
|
1356
|
-
uuid: "uuid";
|
|
1357
1378
|
text: "text";
|
|
1379
|
+
timestamptz: "timestamptz";
|
|
1380
|
+
jsonb: "jsonb";
|
|
1381
|
+
uuid: "uuid";
|
|
1358
1382
|
integer: "integer";
|
|
1359
1383
|
numeric: "numeric";
|
|
1360
1384
|
double: "double";
|
|
1361
|
-
timestamptz: "timestamptz";
|
|
1362
|
-
jsonb: "jsonb";
|
|
1363
1385
|
}>, z.ZodObject<{
|
|
1364
1386
|
enum: z.ZodString;
|
|
1365
1387
|
}, z.core.$strip>]>;
|
|
@@ -1381,10 +1403,10 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
1381
1403
|
of: z.ZodString;
|
|
1382
1404
|
part: z.ZodEnum<{
|
|
1383
1405
|
at: "at";
|
|
1384
|
-
source: "source";
|
|
1385
1406
|
by: "by";
|
|
1386
|
-
conflicts: "conflicts";
|
|
1387
1407
|
rev: "rev";
|
|
1408
|
+
source: "source";
|
|
1409
|
+
conflicts: "conflicts";
|
|
1388
1410
|
}>;
|
|
1389
1411
|
}, z.core.$strict>>;
|
|
1390
1412
|
}, z.core.$strip>>;
|
|
@@ -1433,8 +1455,8 @@ declare const ormMigrationExportSchema: z.ZodObject<{
|
|
|
1433
1455
|
sources: z.ZodArray<z.ZodObject<{
|
|
1434
1456
|
name: z.ZodString;
|
|
1435
1457
|
kind: z.ZodEnum<{
|
|
1436
|
-
prefetch: "prefetch";
|
|
1437
1458
|
manual: "manual";
|
|
1459
|
+
prefetch: "prefetch";
|
|
1438
1460
|
etl: "etl";
|
|
1439
1461
|
}>;
|
|
1440
1462
|
table: z.ZodString;
|
|
@@ -1855,4 +1877,4 @@ declare function planTableImport({ definition, spec, after, }: {
|
|
|
1855
1877
|
after?: string;
|
|
1856
1878
|
}): ImportPlanResult;
|
|
1857
1879
|
|
|
1858
|
-
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, type ValidatesEntry, type WrittenMigration, actionFunctionName, actionFunctionStatements, actionParamArg, actionParamOrder, actionParamSchema, actionPrepareChecks, actionSchema, actionWriteTargets, actionsInterfaceName, applyMigrationHints, applyMigrationHintsV2, 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 };
|
|
1880
|
+
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, 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 };
|