@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.
Files changed (47) hide show
  1. package/README.md +3 -4
  2. package/dist/authoring.d.cts +1 -1
  3. package/dist/authoring.d.ts +1 -1
  4. package/dist/canonical.d.cts +43 -43
  5. package/dist/canonical.d.ts +43 -43
  6. package/dist/cli.cjs +147 -195
  7. package/dist/cli.cjs.map +1 -1
  8. package/dist/cli.js +148 -196
  9. package/dist/cli.js.map +1 -1
  10. package/dist/client.cjs +5 -10
  11. package/dist/client.cjs.map +1 -1
  12. package/dist/client.d.cts +2 -13
  13. package/dist/client.d.ts +2 -13
  14. package/dist/client.js +6 -10
  15. package/dist/client.js.map +1 -1
  16. package/dist/compiler.cjs +14 -67
  17. package/dist/compiler.cjs.map +1 -1
  18. package/dist/compiler.d.cts +6 -17
  19. package/dist/compiler.d.ts +6 -17
  20. package/dist/compiler.js +16 -66
  21. package/dist/compiler.js.map +1 -1
  22. package/dist/index.cjs +242 -189
  23. package/dist/index.cjs.map +1 -1
  24. package/dist/index.d.cts +541 -36
  25. package/dist/index.d.ts +541 -36
  26. package/dist/index.js +237 -189
  27. package/dist/index.js.map +1 -1
  28. package/dist/ir.cjs +6 -11
  29. package/dist/ir.cjs.map +1 -1
  30. package/dist/ir.d.cts +61 -64
  31. package/dist/ir.d.ts +61 -64
  32. package/dist/ir.js +6 -11
  33. package/dist/ir.js.map +1 -1
  34. package/dist/predicate-v2.cjs +3 -8
  35. package/dist/predicate-v2.cjs.map +1 -1
  36. package/dist/predicate-v2.js +3 -8
  37. package/dist/predicate-v2.js.map +1 -1
  38. package/dist/sdl.cjs +4 -11
  39. package/dist/sdl.cjs.map +1 -1
  40. package/dist/sdl.d.cts +1 -5
  41. package/dist/sdl.d.ts +1 -5
  42. package/dist/sdl.js +4 -11
  43. package/dist/sdl.js.map +1 -1
  44. package/package.json +1 -1
  45. package/src/codegen-gql/server-fns.cjs +1 -1
  46. package/dist/{definition-CevES7lM.d.cts → definition-B99BsOAO.d.cts} +2 -2
  47. package/dist/{definition-CevES7lM.d.ts → definition-B99BsOAO.d.ts} +2 -2
package/dist/ir.cjs CHANGED
@@ -1889,9 +1889,6 @@ localDefinitionSchema.safeExtend({
1889
1889
  imports: zod.z.array(localDefinitionSchema).max(32).optional()
1890
1890
  });
1891
1891
 
1892
- // src/client/sql.ts
1893
- var BUILTIN_SQL_READ_HASH = "sha256:a50c477c952a5e0fe68ed158a4530e4aab573c09bcbb1a8ac454dc88a39a6258";
1894
-
1895
1892
  // src/ir/index.ts
1896
1893
  var IR_VERSION = 6;
1897
1894
  var LEGACY_IR_VERSION = 1;
@@ -2220,8 +2217,7 @@ var compiledOperationSchema = zod.z.object({
2220
2217
  maxRows: zod.z.number().int().min(1).max(1e4)
2221
2218
  }).strict().optional(),
2222
2219
  irVersion: irVersionSchema,
2223
- name: zod.z.string(),
2224
- opHash: zod.z.string().regex(/^sha256:[0-9a-f]{64}$/),
2220
+ name: zod.z.string().regex(/^[_A-Za-z][_0-9A-Za-z]{0,254}$/),
2225
2221
  kind: zod.z.enum(["query", "mutation"]),
2226
2222
  requires: zod.z.object({
2227
2223
  capability: zod.z.string().optional(),
@@ -2237,7 +2233,7 @@ var compiledOperationSchema = zod.z.object({
2237
2233
  }
2238
2234
  if (operation.language === "sql") {
2239
2235
  const validPlan = operation.sqlQuery ? !operation.sql && operation.irVersion === RUNTIME_SQL_IR_VERSION : !!operation.sql && operation.irVersion === SQL_IR_VERSION;
2240
- const builtin = operation.name === "BuiltinSqlRead" && operation.opHash === BUILTIN_SQL_READ_HASH && operation.requires === null;
2236
+ const builtin = operation.name === "BuiltinSqlRead" && operation.requires === null;
2241
2237
  if (!validPlan || operation.kind !== "query" || operation.roots.length !== 0 || !builtin && !operation.requires?.capability) {
2242
2238
  ctx.addIssue({ code: "custom", message: "SQL operations require a query-only v4 plan or v5 runtime contract, capability, and no GraphQL roots" });
2243
2239
  }
@@ -2252,7 +2248,7 @@ var compiledOperationSchema = zod.z.object({
2252
2248
  }
2253
2249
  });
2254
2250
  var resolvedSourceIrSchema = zod.z.object({
2255
- name: zod.z.string(),
2251
+ name: zod.z.string().regex(/^[_A-Za-z][_0-9A-Za-z]{0,254}$/),
2256
2252
  kind: zod.z.enum(["manual", "etl", "prefetch"]),
2257
2253
  /** Logical table key of the backing relation. */
2258
2254
  table: zod.z.string(),
@@ -2366,7 +2362,6 @@ var compiledArtifactSchema = zod.z.object({
2366
2362
  ownSchemaHash: zod.z.string().optional(),
2367
2363
  dependencies: zod.z.record(zod.z.string(), zod.z.string()).optional(),
2368
2364
  readPolicies: zod.z.record(zod.z.string(), predIrSchema).optional(),
2369
- opsHash: zod.z.string(),
2370
2365
  /** Apply-observed synced objects without a serving backing; not part of the authored schema hash. */
2371
2366
  unbackedTables: zod.z.array(zod.z.string()).optional(),
2372
2367
  tables: zod.z.record(zod.z.string(), tableMetaIrSchema),
@@ -2396,9 +2391,9 @@ function normalizeIr(raw) {
2396
2391
  if (!irVersionSchema.safeParse(version).success) throw new IrVersionError(version);
2397
2392
  return compiledArtifactSchema.parse(raw);
2398
2393
  }
2399
- function indexByHash(artifact) {
2394
+ function indexByName(artifact) {
2400
2395
  const map = /* @__PURE__ */ new Map();
2401
- for (const op of Object.values(artifact.operations)) map.set(op.opHash, op);
2396
+ for (const op of Object.values(artifact.operations)) map.set(op.name, op);
2402
2397
  return map;
2403
2398
  }
2404
2399
 
@@ -2420,7 +2415,7 @@ exports.SQL_IR_VERSION = SQL_IR_VERSION;
2420
2415
  exports.cellColumnName = cellColumnName;
2421
2416
  exports.compiledArtifactSchema = compiledArtifactSchema;
2422
2417
  exports.compiledOperationSchema = compiledOperationSchema;
2423
- exports.indexByHash = indexByHash;
2418
+ exports.indexByName = indexByName;
2424
2419
  exports.isExternalPolicyClaimKey = isExternalPolicyClaimKey;
2425
2420
  exports.limitIrSchema = limitIrSchema;
2426
2421
  exports.normalizeIr = normalizeIr;