@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
@@ -1914,9 +1914,6 @@ localDefinitionSchema.safeExtend({
1914
1914
  imports: zod.z.array(localDefinitionSchema).max(32).optional()
1915
1915
  });
1916
1916
 
1917
- // src/client/sql.ts
1918
- var BUILTIN_SQL_READ_HASH = "sha256:a50c477c952a5e0fe68ed158a4530e4aab573c09bcbb1a8ac454dc88a39a6258";
1919
-
1920
1917
  // src/ir/index.ts
1921
1918
  var LEGACY_IR_VERSION = 1;
1922
1919
  var GUARDED_IR_VERSION = 2;
@@ -2236,8 +2233,7 @@ var compiledOperationSchema = zod.z.object({
2236
2233
  maxRows: zod.z.number().int().min(1).max(1e4)
2237
2234
  }).strict().optional(),
2238
2235
  irVersion: irVersionSchema,
2239
- name: zod.z.string(),
2240
- opHash: zod.z.string().regex(/^sha256:[0-9a-f]{64}$/),
2236
+ name: zod.z.string().regex(/^[_A-Za-z][_0-9A-Za-z]{0,254}$/),
2241
2237
  kind: zod.z.enum(["query", "mutation"]),
2242
2238
  requires: zod.z.object({
2243
2239
  capability: zod.z.string().optional(),
@@ -2253,7 +2249,7 @@ var compiledOperationSchema = zod.z.object({
2253
2249
  }
2254
2250
  if (operation.language === "sql") {
2255
2251
  const validPlan = operation.sqlQuery ? !operation.sql && operation.irVersion === RUNTIME_SQL_IR_VERSION : !!operation.sql && operation.irVersion === SQL_IR_VERSION;
2256
- const builtin = operation.name === "BuiltinSqlRead" && operation.opHash === BUILTIN_SQL_READ_HASH && operation.requires === null;
2252
+ const builtin = operation.name === "BuiltinSqlRead" && operation.requires === null;
2257
2253
  if (!validPlan || operation.kind !== "query" || operation.roots.length !== 0 || !builtin && !operation.requires?.capability) {
2258
2254
  ctx.addIssue({ code: "custom", message: "SQL operations require a query-only v4 plan or v5 runtime contract, capability, and no GraphQL roots" });
2259
2255
  }
@@ -2268,7 +2264,7 @@ var compiledOperationSchema = zod.z.object({
2268
2264
  }
2269
2265
  });
2270
2266
  var resolvedSourceIrSchema = zod.z.object({
2271
- name: zod.z.string(),
2267
+ name: zod.z.string().regex(/^[_A-Za-z][_0-9A-Za-z]{0,254}$/),
2272
2268
  kind: zod.z.enum(["manual", "etl", "prefetch"]),
2273
2269
  /** Logical table key of the backing relation. */
2274
2270
  table: zod.z.string(),
@@ -2382,7 +2378,6 @@ zod.z.object({
2382
2378
  ownSchemaHash: zod.z.string().optional(),
2383
2379
  dependencies: zod.z.record(zod.z.string(), zod.z.string()).optional(),
2384
2380
  readPolicies: zod.z.record(zod.z.string(), predIrSchema).optional(),
2385
- opsHash: zod.z.string(),
2386
2381
  /** Apply-observed synced objects without a serving backing; not part of the authored schema hash. */
2387
2382
  unbackedTables: zod.z.array(zod.z.string()).optional(),
2388
2383
  tables: zod.z.record(zod.z.string(), tableMetaIrSchema),