@sequenceholdings/orm 2.8.5 → 2.9.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.
Files changed (50) hide show
  1. package/dist/authoring.cjs.map +1 -1
  2. package/dist/authoring.d.cts +2 -2
  3. package/dist/authoring.d.ts +2 -2
  4. package/dist/authoring.js.map +1 -1
  5. package/dist/canonical.cjs.map +1 -1
  6. package/dist/canonical.d.cts +72 -72
  7. package/dist/canonical.d.ts +72 -72
  8. package/dist/canonical.js.map +1 -1
  9. package/dist/cli.cjs +93 -53
  10. package/dist/cli.cjs.map +1 -1
  11. package/dist/cli.d.cts +23 -1
  12. package/dist/cli.d.ts +23 -1
  13. package/dist/cli.js +90 -54
  14. package/dist/cli.js.map +1 -1
  15. package/dist/client.cjs.map +1 -1
  16. package/dist/client.d.cts +1 -1
  17. package/dist/client.d.ts +1 -1
  18. package/dist/client.js.map +1 -1
  19. package/dist/compiler.cjs +1 -1
  20. package/dist/compiler.cjs.map +1 -1
  21. package/dist/compiler.d.cts +2 -2
  22. package/dist/compiler.d.ts +2 -2
  23. package/dist/compiler.js +1 -1
  24. package/dist/compiler.js.map +1 -1
  25. package/dist/{constants-Dou1RkTo.d.cts → constants-D2o0vK6U.d.cts} +8 -1
  26. package/dist/{constants-Dou1RkTo.d.ts → constants-D2o0vK6U.d.ts} +8 -1
  27. package/dist/dynamic-input.d.cts +1 -1
  28. package/dist/dynamic-input.d.ts +1 -1
  29. package/dist/index.cjs +44 -24
  30. package/dist/index.cjs.map +1 -1
  31. package/dist/index.d.cts +60 -59
  32. package/dist/index.d.ts +60 -59
  33. package/dist/index.js +43 -25
  34. package/dist/index.js.map +1 -1
  35. package/dist/ir.cjs.map +1 -1
  36. package/dist/ir.d.cts +73 -73
  37. package/dist/ir.d.ts +73 -73
  38. package/dist/ir.js.map +1 -1
  39. package/dist/predicate-v2.cjs.map +1 -1
  40. package/dist/predicate-v2.d.cts +1 -1
  41. package/dist/predicate-v2.d.ts +1 -1
  42. package/dist/predicate-v2.js.map +1 -1
  43. package/dist/sdl.cjs.map +1 -1
  44. package/dist/sdl.d.cts +1 -1
  45. package/dist/sdl.d.ts +1 -1
  46. package/dist/sdl.js.map +1 -1
  47. package/package.json +3 -3
  48. package/templates/orm-namespace/package.json +2 -1
  49. package/dist/{definition-DjfC7Lll.d.cts → definition-B99BsOAO.d.cts} +4 -4
  50. package/dist/{definition-DjfC7Lll.d.ts → definition-B99BsOAO.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-DjfC7Lll.cjs';
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';
@@ -7,7 +7,7 @@ export { CustomRolesBlock, capabilityPinsSchema, customRolesBlockSchema, customR
7
7
  import { z } from 'zod';
8
8
  import { PredIr, TableMetaIr } from './ir.cjs';
9
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, SelectionIr, ValueIr, VariableDefaultIr, VariableIr, compiledArtifactSchema, compiledOperationSchema, indexByHash, isExternalPolicyClaimKey, limitIrSchema, normalizeIr, orderIrSchema, predIrSchema, prefetchPlanIrSchema, requiredArtifactIrVersion, resolvedMetaIrSchema, resolvedSourceIrSchema, rootIrSchema, selectionIrSchema, tableMetaIrSchema, usesServicePrincipal, valueIrSchema, variableDefaultIrSchema, variableIrSchema } from './ir.cjs';
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, O as ORM_DATA_TOKEN_HEADER, q as ORM_REGISTRATION_MAX_BYTES, r as ORM_SCHEMA_PREFIX, d as ORM_SERVICE_DATA_TOKEN_HEADER, Q as QUALIFIED_TABLE_PATTERN, R as RESERVED_COLUMN_NAMES, s as RESERVED_TABLE_NAMES, S as SYNCED_SOURCE_PATTERN, c as cellColumnName, t as consumerRoleName, u as materializeLockKey, v as materializedRefreshFunctionName, w as ormSchemaName } from './constants-Dou1RkTo.cjs';
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';
13
13
  export { P as PolicyExpression, p as policyExpressionSchema, a as policyVariantSchema } from './policy-1iZbGnZZ.cjs';
@@ -53,13 +53,13 @@ declare const actionParamSchema: z.ZodObject<{
53
53
  bigint: "bigint";
54
54
  boolean: "boolean";
55
55
  date: "date";
56
- text: "text";
57
- timestamptz: "timestamptz";
58
- jsonb: "jsonb";
59
56
  uuid: "uuid";
57
+ text: "text";
60
58
  integer: "integer";
61
59
  numeric: "numeric";
62
60
  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
- text: "text";
82
- timestamptz: "timestamptz";
83
- jsonb: "jsonb";
84
81
  uuid: "uuid";
82
+ text: "text";
85
83
  integer: "integer";
86
84
  numeric: "numeric";
87
85
  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
- text: "text";
99
- timestamptz: "timestamptz";
100
- jsonb: "jsonb";
101
98
  uuid: "uuid";
99
+ text: "text";
102
100
  integer: "integer";
103
101
  numeric: "numeric";
104
102
  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
- create: "create";
110
109
  delete: "delete";
110
+ create: "create";
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
- text: "text";
134
- timestamptz: "timestamptz";
135
- jsonb: "jsonb";
136
133
  uuid: "uuid";
134
+ text: "text";
137
135
  integer: "integer";
138
136
  numeric: "numeric";
139
137
  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
- text: "text";
166
- timestamptz: "timestamptz";
167
- jsonb: "jsonb";
168
165
  uuid: "uuid";
166
+ text: "text";
169
167
  integer: "integer";
170
168
  numeric: "numeric";
171
169
  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
- text: "text";
216
- timestamptz: "timestamptz";
217
- jsonb: "jsonb";
218
215
  uuid: "uuid";
216
+ text: "text";
219
217
  integer: "integer";
220
218
  numeric: "numeric";
221
219
  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
- text: "text";
267
- timestamptz: "timestamptz";
268
- jsonb: "jsonb";
269
266
  uuid: "uuid";
267
+ text: "text";
270
268
  integer: "integer";
271
269
  numeric: "numeric";
272
270
  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
- text: "text";
284
- timestamptz: "timestamptz";
285
- jsonb: "jsonb";
286
283
  uuid: "uuid";
284
+ text: "text";
287
285
  integer: "integer";
288
286
  numeric: "numeric";
289
287
  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
- create: "create";
295
294
  delete: "delete";
295
+ create: "create";
296
296
  }>;
297
297
  resource: z.ZodOptional<z.ZodString>;
298
298
  }, z.core.$strict>>;
@@ -802,13 +802,13 @@ declare const ormMigrationExportSchema: z.ZodObject<{
802
802
  bigint: "bigint";
803
803
  boolean: "boolean";
804
804
  date: "date";
805
- text: "text";
806
- timestamptz: "timestamptz";
807
- jsonb: "jsonb";
808
805
  uuid: "uuid";
806
+ text: "text";
809
807
  integer: "integer";
810
808
  numeric: "numeric";
811
809
  double: "double";
810
+ timestamptz: "timestamptz";
811
+ jsonb: "jsonb";
812
812
  }>, z.ZodObject<{
813
813
  enum: z.ZodString;
814
814
  }, z.core.$strip>]>;
@@ -830,10 +830,10 @@ declare const ormMigrationExportSchema: z.ZodObject<{
830
830
  of: z.ZodString;
831
831
  part: z.ZodEnum<{
832
832
  at: "at";
833
- by: "by";
834
- rev: "rev";
835
833
  source: "source";
834
+ by: "by";
836
835
  conflicts: "conflicts";
836
+ rev: "rev";
837
837
  }>;
838
838
  }, z.core.$strict>>;
839
839
  }, z.core.$strip>>>;
@@ -917,21 +917,21 @@ declare const ormMigrationExportSchema: z.ZodObject<{
917
917
  bigint: "bigint";
918
918
  boolean: "boolean";
919
919
  date: "date";
920
- text: "text";
921
- timestamptz: "timestamptz";
922
- jsonb: "jsonb";
923
920
  uuid: "uuid";
921
+ text: "text";
924
922
  integer: "integer";
925
923
  numeric: "numeric";
926
924
  double: "double";
925
+ timestamptz: "timestamptz";
926
+ jsonb: "jsonb";
927
927
  }>;
928
928
  nullable: z.ZodDefault<z.ZodBoolean>;
929
929
  }, z.core.$strip>>>;
930
930
  executes: z.ZodString;
931
931
  returns: z.ZodDefault<z.ZodEnum<{
932
932
  rows: "rows";
933
- rowsAffected: "rowsAffected";
934
933
  scalar: "scalar";
934
+ rowsAffected: "rowsAffected";
935
935
  }>>;
936
936
  audit: z.ZodOptional<z.ZodObject<{
937
937
  action: z.ZodString;
@@ -987,13 +987,13 @@ declare const ormMigrationExportSchema: z.ZodObject<{
987
987
  bigint: "bigint";
988
988
  boolean: "boolean";
989
989
  date: "date";
990
- text: "text";
991
- timestamptz: "timestamptz";
992
- jsonb: "jsonb";
993
990
  uuid: "uuid";
991
+ text: "text";
994
992
  integer: "integer";
995
993
  numeric: "numeric";
996
994
  double: "double";
995
+ timestamptz: "timestamptz";
996
+ jsonb: "jsonb";
997
997
  }>, z.ZodObject<{
998
998
  enum: z.ZodString;
999
999
  }, z.core.$strip>]>;
@@ -1015,10 +1015,10 @@ declare const ormMigrationExportSchema: z.ZodObject<{
1015
1015
  of: z.ZodString;
1016
1016
  part: z.ZodEnum<{
1017
1017
  at: "at";
1018
- by: "by";
1019
- rev: "rev";
1020
1018
  source: "source";
1019
+ by: "by";
1021
1020
  conflicts: "conflicts";
1021
+ rev: "rev";
1022
1022
  }>;
1023
1023
  }, z.core.$strict>>;
1024
1024
  }, z.core.$strip>>;
@@ -1067,9 +1067,9 @@ declare const ormMigrationExportSchema: z.ZodObject<{
1067
1067
  sources: z.ZodArray<z.ZodObject<{
1068
1068
  name: z.ZodString;
1069
1069
  kind: z.ZodEnum<{
1070
+ prefetch: "prefetch";
1070
1071
  manual: "manual";
1071
1072
  etl: "etl";
1072
- prefetch: "prefetch";
1073
1073
  }>;
1074
1074
  table: z.ZodString;
1075
1075
  columns: z.ZodArray<z.ZodString>;
@@ -1191,13 +1191,13 @@ declare const ormMigrationExportSchema: z.ZodObject<{
1191
1191
  bigint: "bigint";
1192
1192
  boolean: "boolean";
1193
1193
  date: "date";
1194
- text: "text";
1195
- timestamptz: "timestamptz";
1196
- jsonb: "jsonb";
1197
1194
  uuid: "uuid";
1195
+ text: "text";
1198
1196
  integer: "integer";
1199
1197
  numeric: "numeric";
1200
1198
  double: "double";
1199
+ timestamptz: "timestamptz";
1200
+ jsonb: "jsonb";
1201
1201
  }>, z.ZodObject<{
1202
1202
  enum: z.ZodString;
1203
1203
  }, z.core.$strip>]>;
@@ -1219,10 +1219,10 @@ declare const ormMigrationExportSchema: z.ZodObject<{
1219
1219
  of: z.ZodString;
1220
1220
  part: z.ZodEnum<{
1221
1221
  at: "at";
1222
- by: "by";
1223
- rev: "rev";
1224
1222
  source: "source";
1223
+ by: "by";
1225
1224
  conflicts: "conflicts";
1225
+ rev: "rev";
1226
1226
  }>;
1227
1227
  }, z.core.$strict>>;
1228
1228
  }, z.core.$strip>>>;
@@ -1306,21 +1306,21 @@ declare const ormMigrationExportSchema: z.ZodObject<{
1306
1306
  bigint: "bigint";
1307
1307
  boolean: "boolean";
1308
1308
  date: "date";
1309
- text: "text";
1310
- timestamptz: "timestamptz";
1311
- jsonb: "jsonb";
1312
1309
  uuid: "uuid";
1310
+ text: "text";
1313
1311
  integer: "integer";
1314
1312
  numeric: "numeric";
1315
1313
  double: "double";
1314
+ timestamptz: "timestamptz";
1315
+ jsonb: "jsonb";
1316
1316
  }>;
1317
1317
  nullable: z.ZodDefault<z.ZodBoolean>;
1318
1318
  }, z.core.$strip>>>;
1319
1319
  executes: z.ZodString;
1320
1320
  returns: z.ZodDefault<z.ZodEnum<{
1321
1321
  rows: "rows";
1322
- rowsAffected: "rowsAffected";
1323
1322
  scalar: "scalar";
1323
+ rowsAffected: "rowsAffected";
1324
1324
  }>>;
1325
1325
  audit: z.ZodOptional<z.ZodObject<{
1326
1326
  action: z.ZodString;
@@ -1376,13 +1376,13 @@ declare const ormMigrationExportSchema: z.ZodObject<{
1376
1376
  bigint: "bigint";
1377
1377
  boolean: "boolean";
1378
1378
  date: "date";
1379
- text: "text";
1380
- timestamptz: "timestamptz";
1381
- jsonb: "jsonb";
1382
1379
  uuid: "uuid";
1380
+ text: "text";
1383
1381
  integer: "integer";
1384
1382
  numeric: "numeric";
1385
1383
  double: "double";
1384
+ timestamptz: "timestamptz";
1385
+ jsonb: "jsonb";
1386
1386
  }>, z.ZodObject<{
1387
1387
  enum: z.ZodString;
1388
1388
  }, z.core.$strip>]>;
@@ -1404,10 +1404,10 @@ declare const ormMigrationExportSchema: z.ZodObject<{
1404
1404
  of: z.ZodString;
1405
1405
  part: z.ZodEnum<{
1406
1406
  at: "at";
1407
- by: "by";
1408
- rev: "rev";
1409
1407
  source: "source";
1408
+ by: "by";
1410
1409
  conflicts: "conflicts";
1410
+ rev: "rev";
1411
1411
  }>;
1412
1412
  }, z.core.$strict>>;
1413
1413
  }, z.core.$strip>>;
@@ -1456,9 +1456,9 @@ declare const ormMigrationExportSchema: z.ZodObject<{
1456
1456
  sources: z.ZodArray<z.ZodObject<{
1457
1457
  name: z.ZodString;
1458
1458
  kind: z.ZodEnum<{
1459
+ prefetch: "prefetch";
1459
1460
  manual: "manual";
1460
1461
  etl: "etl";
1461
- prefetch: "prefetch";
1462
1462
  }>;
1463
1463
  table: z.ZodString;
1464
1464
  columns: z.ZodArray<z.ZodString>;
@@ -1719,7 +1719,8 @@ declare function renderMigrationSql({ name, namespace, contentHash, plan, }: {
1719
1719
  name: string;
1720
1720
  namespace: string;
1721
1721
  contentHash: string;
1722
- plan: PlannedMigration;
1722
+ /** Only the statements are rendered; Atlas re-renders a registered migration to compare it with the committed file. */
1723
+ plan: Pick<PlannedMigration, 'statements'>;
1723
1724
  }): string;
1724
1725
  interface WrittenMigration {
1725
1726
  readonly name: string;