@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/sdl.cjs CHANGED
@@ -2074,11 +2074,6 @@ var CELL_TYPENAMES = {
2074
2074
  function cellsTypename(typename) {
2075
2075
  return `${typename}Cells`;
2076
2076
  }
2077
-
2078
- // src/client/sql.ts
2079
- var BUILTIN_SQL_READ_HASH = "sha256:a50c477c952a5e0fe68ed158a4530e4aab573c09bcbb1a8ac454dc88a39a6258";
2080
-
2081
- // src/ir/index.ts
2082
2077
  var LEGACY_IR_VERSION = 1;
2083
2078
  var GUARDED_IR_VERSION = 2;
2084
2079
  var COMPOSED_IR_VERSION = 3;
@@ -2386,8 +2381,7 @@ var compiledOperationSchema = zod.z.object({
2386
2381
  maxRows: zod.z.number().int().min(1).max(1e4)
2387
2382
  }).strict().optional(),
2388
2383
  irVersion: irVersionSchema,
2389
- name: zod.z.string(),
2390
- opHash: zod.z.string().regex(/^sha256:[0-9a-f]{64}$/),
2384
+ name: zod.z.string().regex(/^[_A-Za-z][_0-9A-Za-z]{0,254}$/),
2391
2385
  kind: zod.z.enum(["query", "mutation"]),
2392
2386
  requires: zod.z.object({
2393
2387
  capability: zod.z.string().optional(),
@@ -2403,7 +2397,7 @@ var compiledOperationSchema = zod.z.object({
2403
2397
  }
2404
2398
  if (operation.language === "sql") {
2405
2399
  const validPlan = operation.sqlQuery ? !operation.sql && operation.irVersion === RUNTIME_SQL_IR_VERSION : !!operation.sql && operation.irVersion === SQL_IR_VERSION;
2406
- const builtin = operation.name === "BuiltinSqlRead" && operation.opHash === BUILTIN_SQL_READ_HASH && operation.requires === null;
2400
+ const builtin = operation.name === "BuiltinSqlRead" && operation.requires === null;
2407
2401
  if (!validPlan || operation.kind !== "query" || operation.roots.length !== 0 || !builtin && !operation.requires?.capability) {
2408
2402
  ctx.addIssue({ code: "custom", message: "SQL operations require a query-only v4 plan or v5 runtime contract, capability, and no GraphQL roots" });
2409
2403
  }
@@ -2418,7 +2412,7 @@ var compiledOperationSchema = zod.z.object({
2418
2412
  }
2419
2413
  });
2420
2414
  var resolvedSourceIrSchema = zod.z.object({
2421
- name: zod.z.string(),
2415
+ name: zod.z.string().regex(/^[_A-Za-z][_0-9A-Za-z]{0,254}$/),
2422
2416
  kind: zod.z.enum(["manual", "etl", "prefetch"]),
2423
2417
  /** Logical table key of the backing relation. */
2424
2418
  table: zod.z.string(),
@@ -2532,7 +2526,6 @@ zod.z.object({
2532
2526
  ownSchemaHash: zod.z.string().optional(),
2533
2527
  dependencies: zod.z.record(zod.z.string(), zod.z.string()).optional(),
2534
2528
  readPolicies: zod.z.record(zod.z.string(), predIrSchema).optional(),
2535
- opsHash: zod.z.string(),
2536
2529
  /** Apply-observed synced objects without a serving backing; not part of the authored schema hash. */
2537
2530
  unbackedTables: zod.z.array(zod.z.string()).optional(),
2538
2531
  tables: zod.z.record(zod.z.string(), tableMetaIrSchema),
@@ -3295,7 +3288,7 @@ var manifestOperationSchema = zod.z.object({
3295
3288
  requires: manifestRequiresSchema
3296
3289
  });
3297
3290
  var operationsManifestSchema = zod.z.object({
3298
- manifestVersion: zod.z.union([zod.z.literal(1), zod.z.literal(MANIFEST_VERSION)]),
3291
+ manifestVersion: zod.z.literal(MANIFEST_VERSION),
3299
3292
  operations: zod.z.record(zod.z.string().regex(GRAPHQL_NAME_RE2), manifestOperationSchema)
3300
3293
  });
3301
3294
  function buildOperationsManifest({