@sequenceholdings/orm 2.1.0 → 2.2.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 (77) hide show
  1. package/README.md +40 -1
  2. package/dist/authoring.cjs +1619 -121
  3. package/dist/authoring.cjs.map +1 -1
  4. package/dist/authoring.d.cts +252 -8
  5. package/dist/authoring.d.ts +252 -8
  6. package/dist/authoring.js +1607 -123
  7. package/dist/authoring.js.map +1 -1
  8. package/dist/canonical.cjs +713 -41
  9. package/dist/canonical.cjs.map +1 -1
  10. package/dist/canonical.d.cts +1520 -51
  11. package/dist/canonical.d.ts +1520 -51
  12. package/dist/canonical.js +693 -42
  13. package/dist/canonical.js.map +1 -1
  14. package/dist/cli.cjs +7103 -3901
  15. package/dist/cli.cjs.map +1 -1
  16. package/dist/cli.js +7104 -3902
  17. package/dist/cli.js.map +1 -1
  18. package/dist/client.cjs +122 -40
  19. package/dist/client.cjs.map +1 -1
  20. package/dist/client.d.cts +85 -25
  21. package/dist/client.d.ts +85 -25
  22. package/dist/client.js +119 -41
  23. package/dist/client.js.map +1 -1
  24. package/dist/compiler.cjs +2464 -450
  25. package/dist/compiler.cjs.map +1 -1
  26. package/dist/compiler.d.cts +79 -4
  27. package/dist/compiler.d.ts +79 -4
  28. package/dist/compiler.js +2457 -451
  29. package/dist/compiler.js.map +1 -1
  30. package/dist/constants-C6EG6Wq7.d.cts +99 -0
  31. package/dist/constants-C6EG6Wq7.d.ts +99 -0
  32. package/dist/definition-DjfC7Lll.d.cts +91 -0
  33. package/dist/definition-DjfC7Lll.d.ts +91 -0
  34. package/dist/dynamic-input.cjs +2 -1
  35. package/dist/dynamic-input.cjs.map +1 -1
  36. package/dist/dynamic-input.d.cts +9 -1
  37. package/dist/dynamic-input.d.ts +9 -1
  38. package/dist/dynamic-input.js +2 -1
  39. package/dist/dynamic-input.js.map +1 -1
  40. package/dist/index.cjs +2656 -418
  41. package/dist/index.cjs.map +1 -1
  42. package/dist/index.d.cts +693 -116
  43. package/dist/index.d.ts +693 -116
  44. package/dist/index.js +2622 -420
  45. package/dist/index.js.map +1 -1
  46. package/dist/ir.cjs +811 -48
  47. package/dist/ir.cjs.map +1 -1
  48. package/dist/ir.d.cts +670 -27
  49. package/dist/ir.d.ts +670 -27
  50. package/dist/ir.js +802 -49
  51. package/dist/ir.js.map +1 -1
  52. package/dist/{naming-DCn94LJ4.d.ts → naming-CPfx7EfF.d.ts} +14 -1
  53. package/dist/{naming-DPglwzkB.d.cts → naming-CU9ThP_E.d.cts} +14 -1
  54. package/dist/policy-1iZbGnZZ.d.cts +24 -0
  55. package/dist/policy-1iZbGnZZ.d.ts +24 -0
  56. package/dist/predicate-v2.cjs +804 -51
  57. package/dist/predicate-v2.cjs.map +1 -1
  58. package/dist/predicate-v2.d.cts +2 -1
  59. package/dist/predicate-v2.d.ts +2 -1
  60. package/dist/predicate-v2.js +804 -51
  61. package/dist/predicate-v2.js.map +1 -1
  62. package/dist/sdl.cjs +1014 -75
  63. package/dist/sdl.cjs.map +1 -1
  64. package/dist/sdl.d.cts +14 -3
  65. package/dist/sdl.d.ts +14 -3
  66. package/dist/sdl.js +1012 -76
  67. package/dist/sdl.js.map +1 -1
  68. package/package.json +13 -7
  69. package/src/codegen-gql/server-fns.cjs +2 -2
  70. package/templates/orm-namespace/AGENTS.md +10 -0
  71. package/templates/orm-namespace/CLAUDE.md +1 -82
  72. package/templates/orm-namespace/codegen.preset.d.cts +7 -0
  73. package/templates/orm-namespace/codegen.ts +2 -1
  74. package/templates/orm-namespace/graphql/example/queries.ts +4 -3
  75. package/templates/orm-namespace/package.json +2 -1
  76. package/templates/orm-namespace/schema/tables.ts +3 -2
  77. package/templates/orm-namespace/sequence.config.ts +7 -11
@@ -3,8 +3,11 @@ import { ClaimKey, PredIr, RootIr, InputRefKind, TableMetaIr, CompiledOperation,
3
3
  import { DocumentNode, OperationDefinitionNode, FragmentDefinitionNode, GraphQLSchema, ValueNode, SelectionSetNode } from 'graphql';
4
4
  export { DynamicInputIssue, DynamicInputResult, NormalizedBoolExp, NormalizedOnConflict, NormalizedOrderBy, NormalizedRow, ORDER_BY_DIRECTIONS, ScalarKind, allowedBoolExpOperators, allowedOps, validateAppendInput, validateBoolExpInput, validateInsertInput, validateOnConflictInput, validateOrderByInput, validateSelectColumns, validateSetInput } from './dynamic-input.cjs';
5
5
  export { CompilePolicyInput, CompilePredicateInput, POLICY_COMPARE_OPS, POLICY_MAX_LINK_DEPTH, ParsedPolicy, PolicyColumnInfo, PolicyCompareOp, PolicyCompileError, PolicyCompileErrorCode, PolicyLinkInfo, PolicyNode, PolicyOperand, PolicyParseError, PolicyResolver, PolicyTableInfo, assertClaimsOnlyWhen, compilePolicy, compilePredicateV2, parsePolicy, walkPolicy } from './predicate-v2.cjs';
6
- export { P as PLATFORM_USER_TYPENAME, c as camelCase, e as enumTypeName, p as pascalCase } from './naming-DPglwzkB.cjs';
7
- import 'zod';
6
+ import { z } from 'zod';
7
+ export { P as PLATFORM_USER_TYPENAME, c as camelCase, g as enumTypeName, p as pascalCase } from './naming-CU9ThP_E.cjs';
8
+ export { S as SqlOperationDefinition, d as defineOperation, s as sqlOperationDefinitionSchema } from './definition-DjfC7Lll.cjs';
9
+ import './constants-C6EG6Wq7.cjs';
10
+ import './policy-1iZbGnZZ.cjs';
8
11
 
9
12
  type DiagnosticSeverity = 'error' | 'warning';
10
13
  interface CompilerDiagnostic {
@@ -157,9 +160,16 @@ interface CowMutationRootInfo {
157
160
  /** Override: properties copied INSERT…SELECT from synced (pk included). */
158
161
  copyColumns: readonly string[];
159
162
  }
160
- type MutationRootInfo = CrudMutationRootInfo | CowMutationRootInfo;
163
+ /** A resolved-table write root (the table is the resolved view). */
164
+ interface ResolvedMutationRootInfo {
165
+ op: 'resolvedWrite';
166
+ action: 'insert' | 'update' | 'delete' | 'revert';
167
+ table: string;
168
+ }
169
+ type MutationRootInfo = CrudMutationRootInfo | CowMutationRootInfo | ResolvedMutationRootInfo;
161
170
  interface CompileContext {
162
171
  namespace: string;
172
+ composed: boolean;
163
173
  tables: Record<string, TableMetaIr>;
164
174
  /** GraphQL object type name → table name. */
165
175
  tableByTypename: Map<string, string>;
@@ -329,6 +339,7 @@ declare class OperationLowerer {
329
339
  private readonly variables;
330
340
  constructor(ctx: CompileContext, restricted: RestrictedOperation);
331
341
  private meta;
342
+ /** A data column — cell-metadata columns are reachable only through `cells { … }`. */
332
343
  private column;
333
344
  private link;
334
345
  private fieldCandidates;
@@ -347,6 +358,12 @@ declare class OperationLowerer {
347
358
  private lowerLimit;
348
359
  private lowerOffset;
349
360
  lowerSelection(selectionSet: SelectionSetNode, table: string): SelectionIr;
361
+ /**
362
+ * `cells { <column> { at by … } }` — typed per-cell metadata. Plain tables
363
+ * offer `at`/`by`; resolved tables add the winning `source` and newer
364
+ * `conflicts { source at value }`.
365
+ */
366
+ private lowerCells;
350
367
  /** The `{ aggregate { count sum {…} avg {…} } nodes {…} }` block shared by roots and relations. */
351
368
  private lowerAggregateSelection;
352
369
  /**
@@ -394,6 +411,12 @@ declare class OperationLowerer {
394
411
  * the structured fields, never from authored statements.
395
412
  */
396
413
  private lowerCowRoot;
414
+ /**
415
+ * Resolved-table roots: insertOne(object), updateByPk(pkColumns, _set),
416
+ * deleteByPk(pk…), revertByPk(pkColumns, columns). The executor writes only
417
+ * the touched cells into the manual source; `returning` reads the view.
418
+ */
419
+ private lowerResolvedRoot;
397
420
  private lowerMutationResponse;
398
421
  private lowerInsertObjects;
399
422
  private lowerInsertRow;
@@ -418,4 +441,56 @@ declare function predContainsExists(pred: PredIr): boolean;
418
441
  /** Structural containment: does `haystack` carry `needle` as a subtree? */
419
442
  declare function predContains(haystack: PredIr, needle: PredIr): boolean;
420
443
 
421
- export { type BuildContextResult, COMPILER_MAJOR, CONST_TRUE, type ClientManifest, type ClientManifestOperation, type CompileContext, type CompileNamespaceInput, type CompileNamespaceResult, type CompilerDiagnostic, DEFAULT_LIMIT, type DiagnosticSeverity, DocumentCompileError, MAX_LIMIT, type MutationOp, type MutationRootInfo, NamespaceCompileError, OperationLowerer, PLATFORM_USER_TABLE, type ParseDocumentsResult, type ParsedDocument, type PinnedColumn, type QueryRootInfo, type RestrictedOperation, type SourceDocument, andPred, buildCompileContext, canonicalOperationText, classifyInputType, collectPinnedColumns, compileNamespace, compileNamespaceOrThrow, computeOpHash, computeOpsHash, computePinnedColumnsByTable, computeSchemaHash, flattenOperation, injectPolicies, inputTypeName, lowerOperation, mutationRootNames, parseDocuments, parseSdl, platformUserMeta, predContains, predContainsExists, queryRootNames, restrictOperation, typeNameForTable, walkPred };
444
+ declare function isSqlOperationDocument(path: string, contents?: string): boolean;
445
+ /** Additive language dispatch. GraphQL still uses its original compiler/hash. */
446
+ declare function compileOperationDocuments(input: CompileNamespaceInput): Promise<CompileNamespaceResult>;
447
+
448
+ /** This is deliberately not an arbitrary JSON variable: types and size are bounded. */
449
+ declare const sqlQueryInputSchema: z.ZodObject<{
450
+ sql: z.ZodString;
451
+ parameters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
452
+ type: z.ZodLiteral<"text">;
453
+ value: z.ZodNullable<z.ZodString>;
454
+ }, z.core.$strict>, z.ZodObject<{
455
+ type: z.ZodLiteral<"uuid">;
456
+ value: z.ZodNullable<z.ZodGUID>;
457
+ }, z.core.$strict>, z.ZodObject<{
458
+ type: z.ZodLiteral<"date">;
459
+ value: z.ZodNullable<z.ZodString>;
460
+ }, z.core.$strict>, z.ZodObject<{
461
+ type: z.ZodLiteral<"timestamptz">;
462
+ value: z.ZodNullable<z.ZodString>;
463
+ }, z.core.$strict>, z.ZodObject<{
464
+ type: z.ZodLiteral<"numeric">;
465
+ value: z.ZodNullable<z.ZodString>;
466
+ }, z.core.$strict>, z.ZodObject<{
467
+ type: z.ZodLiteral<"bigint">;
468
+ value: z.ZodNullable<z.ZodString>;
469
+ }, z.core.$strict>, z.ZodObject<{
470
+ type: z.ZodLiteral<"integer">;
471
+ value: z.ZodNullable<z.ZodNumber>;
472
+ }, z.core.$strict>, z.ZodObject<{
473
+ type: z.ZodLiteral<"double">;
474
+ value: z.ZodNullable<z.ZodNumber>;
475
+ }, z.core.$strict>, z.ZodObject<{
476
+ type: z.ZodLiteral<"boolean">;
477
+ value: z.ZodNullable<z.ZodBoolean>;
478
+ }, z.core.$strict>], "type">>>;
479
+ }, z.core.$strict>;
480
+ type SqlQueryInput = z.infer<typeof sqlQueryInputSchema>;
481
+ /** The returned plan contains no bound parameter values or caller identity. */
482
+ declare function compileRuntimeSql({ operation, input }: {
483
+ operation: CompiledOperation;
484
+ input: SqlQueryInput;
485
+ }): Promise<CompiledOperation>;
486
+
487
+ declare const DATASET_PREVIEW_LIMIT = 100;
488
+ /**
489
+ * Fixed runtime-owned reads, separate from the published operation manifest.
490
+ * Use logical column identities directly (no GraphQL naming conversion) and
491
+ * the normal compiler context/policy pass. Like generated GraphQL, internal
492
+ * source tables, raw synced backings, and cell metadata are not exposed.
493
+ */
494
+ declare function compileDatasetPreviews(input: CanonicalDefinition): Record<string, CompiledOperation>;
495
+
496
+ export { type BuildContextResult, COMPILER_MAJOR, CONST_TRUE, type ClientManifest, type ClientManifestOperation, type CompileContext, type CompileNamespaceInput, type CompileNamespaceResult, type CompilerDiagnostic, DATASET_PREVIEW_LIMIT, DEFAULT_LIMIT, type DiagnosticSeverity, DocumentCompileError, MAX_LIMIT, type MutationOp, type MutationRootInfo, NamespaceCompileError, OperationLowerer, PLATFORM_USER_TABLE, type ParseDocumentsResult, type ParsedDocument, type PinnedColumn, type QueryRootInfo, type RestrictedOperation, type SourceDocument, type SqlQueryInput, andPred, buildCompileContext, canonicalOperationText, classifyInputType, collectPinnedColumns, compileDatasetPreviews, compileNamespace, compileNamespaceOrThrow, compileOperationDocuments, compileRuntimeSql, computeOpHash, computeOpsHash, computePinnedColumnsByTable, computeSchemaHash, flattenOperation, injectPolicies, inputTypeName, isSqlOperationDocument, lowerOperation, mutationRootNames, parseDocuments, parseSdl, platformUserMeta, predContains, predContainsExists, queryRootNames, restrictOperation, sqlQueryInputSchema, typeNameForTable, walkPred };
@@ -3,8 +3,11 @@ import { ClaimKey, PredIr, RootIr, InputRefKind, TableMetaIr, CompiledOperation,
3
3
  import { DocumentNode, OperationDefinitionNode, FragmentDefinitionNode, GraphQLSchema, ValueNode, SelectionSetNode } from 'graphql';
4
4
  export { DynamicInputIssue, DynamicInputResult, NormalizedBoolExp, NormalizedOnConflict, NormalizedOrderBy, NormalizedRow, ORDER_BY_DIRECTIONS, ScalarKind, allowedBoolExpOperators, allowedOps, validateAppendInput, validateBoolExpInput, validateInsertInput, validateOnConflictInput, validateOrderByInput, validateSelectColumns, validateSetInput } from './dynamic-input.js';
5
5
  export { CompilePolicyInput, CompilePredicateInput, POLICY_COMPARE_OPS, POLICY_MAX_LINK_DEPTH, ParsedPolicy, PolicyColumnInfo, PolicyCompareOp, PolicyCompileError, PolicyCompileErrorCode, PolicyLinkInfo, PolicyNode, PolicyOperand, PolicyParseError, PolicyResolver, PolicyTableInfo, assertClaimsOnlyWhen, compilePolicy, compilePredicateV2, parsePolicy, walkPolicy } from './predicate-v2.js';
6
- export { P as PLATFORM_USER_TYPENAME, c as camelCase, e as enumTypeName, p as pascalCase } from './naming-DCn94LJ4.js';
7
- import 'zod';
6
+ import { z } from 'zod';
7
+ export { P as PLATFORM_USER_TYPENAME, c as camelCase, g as enumTypeName, p as pascalCase } from './naming-CPfx7EfF.js';
8
+ export { S as SqlOperationDefinition, d as defineOperation, s as sqlOperationDefinitionSchema } from './definition-DjfC7Lll.js';
9
+ import './constants-C6EG6Wq7.js';
10
+ import './policy-1iZbGnZZ.js';
8
11
 
9
12
  type DiagnosticSeverity = 'error' | 'warning';
10
13
  interface CompilerDiagnostic {
@@ -157,9 +160,16 @@ interface CowMutationRootInfo {
157
160
  /** Override: properties copied INSERT…SELECT from synced (pk included). */
158
161
  copyColumns: readonly string[];
159
162
  }
160
- type MutationRootInfo = CrudMutationRootInfo | CowMutationRootInfo;
163
+ /** A resolved-table write root (the table is the resolved view). */
164
+ interface ResolvedMutationRootInfo {
165
+ op: 'resolvedWrite';
166
+ action: 'insert' | 'update' | 'delete' | 'revert';
167
+ table: string;
168
+ }
169
+ type MutationRootInfo = CrudMutationRootInfo | CowMutationRootInfo | ResolvedMutationRootInfo;
161
170
  interface CompileContext {
162
171
  namespace: string;
172
+ composed: boolean;
163
173
  tables: Record<string, TableMetaIr>;
164
174
  /** GraphQL object type name → table name. */
165
175
  tableByTypename: Map<string, string>;
@@ -329,6 +339,7 @@ declare class OperationLowerer {
329
339
  private readonly variables;
330
340
  constructor(ctx: CompileContext, restricted: RestrictedOperation);
331
341
  private meta;
342
+ /** A data column — cell-metadata columns are reachable only through `cells { … }`. */
332
343
  private column;
333
344
  private link;
334
345
  private fieldCandidates;
@@ -347,6 +358,12 @@ declare class OperationLowerer {
347
358
  private lowerLimit;
348
359
  private lowerOffset;
349
360
  lowerSelection(selectionSet: SelectionSetNode, table: string): SelectionIr;
361
+ /**
362
+ * `cells { <column> { at by … } }` — typed per-cell metadata. Plain tables
363
+ * offer `at`/`by`; resolved tables add the winning `source` and newer
364
+ * `conflicts { source at value }`.
365
+ */
366
+ private lowerCells;
350
367
  /** The `{ aggregate { count sum {…} avg {…} } nodes {…} }` block shared by roots and relations. */
351
368
  private lowerAggregateSelection;
352
369
  /**
@@ -394,6 +411,12 @@ declare class OperationLowerer {
394
411
  * the structured fields, never from authored statements.
395
412
  */
396
413
  private lowerCowRoot;
414
+ /**
415
+ * Resolved-table roots: insertOne(object), updateByPk(pkColumns, _set),
416
+ * deleteByPk(pk…), revertByPk(pkColumns, columns). The executor writes only
417
+ * the touched cells into the manual source; `returning` reads the view.
418
+ */
419
+ private lowerResolvedRoot;
397
420
  private lowerMutationResponse;
398
421
  private lowerInsertObjects;
399
422
  private lowerInsertRow;
@@ -418,4 +441,56 @@ declare function predContainsExists(pred: PredIr): boolean;
418
441
  /** Structural containment: does `haystack` carry `needle` as a subtree? */
419
442
  declare function predContains(haystack: PredIr, needle: PredIr): boolean;
420
443
 
421
- export { type BuildContextResult, COMPILER_MAJOR, CONST_TRUE, type ClientManifest, type ClientManifestOperation, type CompileContext, type CompileNamespaceInput, type CompileNamespaceResult, type CompilerDiagnostic, DEFAULT_LIMIT, type DiagnosticSeverity, DocumentCompileError, MAX_LIMIT, type MutationOp, type MutationRootInfo, NamespaceCompileError, OperationLowerer, PLATFORM_USER_TABLE, type ParseDocumentsResult, type ParsedDocument, type PinnedColumn, type QueryRootInfo, type RestrictedOperation, type SourceDocument, andPred, buildCompileContext, canonicalOperationText, classifyInputType, collectPinnedColumns, compileNamespace, compileNamespaceOrThrow, computeOpHash, computeOpsHash, computePinnedColumnsByTable, computeSchemaHash, flattenOperation, injectPolicies, inputTypeName, lowerOperation, mutationRootNames, parseDocuments, parseSdl, platformUserMeta, predContains, predContainsExists, queryRootNames, restrictOperation, typeNameForTable, walkPred };
444
+ declare function isSqlOperationDocument(path: string, contents?: string): boolean;
445
+ /** Additive language dispatch. GraphQL still uses its original compiler/hash. */
446
+ declare function compileOperationDocuments(input: CompileNamespaceInput): Promise<CompileNamespaceResult>;
447
+
448
+ /** This is deliberately not an arbitrary JSON variable: types and size are bounded. */
449
+ declare const sqlQueryInputSchema: z.ZodObject<{
450
+ sql: z.ZodString;
451
+ parameters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
452
+ type: z.ZodLiteral<"text">;
453
+ value: z.ZodNullable<z.ZodString>;
454
+ }, z.core.$strict>, z.ZodObject<{
455
+ type: z.ZodLiteral<"uuid">;
456
+ value: z.ZodNullable<z.ZodGUID>;
457
+ }, z.core.$strict>, z.ZodObject<{
458
+ type: z.ZodLiteral<"date">;
459
+ value: z.ZodNullable<z.ZodString>;
460
+ }, z.core.$strict>, z.ZodObject<{
461
+ type: z.ZodLiteral<"timestamptz">;
462
+ value: z.ZodNullable<z.ZodString>;
463
+ }, z.core.$strict>, z.ZodObject<{
464
+ type: z.ZodLiteral<"numeric">;
465
+ value: z.ZodNullable<z.ZodString>;
466
+ }, z.core.$strict>, z.ZodObject<{
467
+ type: z.ZodLiteral<"bigint">;
468
+ value: z.ZodNullable<z.ZodString>;
469
+ }, z.core.$strict>, z.ZodObject<{
470
+ type: z.ZodLiteral<"integer">;
471
+ value: z.ZodNullable<z.ZodNumber>;
472
+ }, z.core.$strict>, z.ZodObject<{
473
+ type: z.ZodLiteral<"double">;
474
+ value: z.ZodNullable<z.ZodNumber>;
475
+ }, z.core.$strict>, z.ZodObject<{
476
+ type: z.ZodLiteral<"boolean">;
477
+ value: z.ZodNullable<z.ZodBoolean>;
478
+ }, z.core.$strict>], "type">>>;
479
+ }, z.core.$strict>;
480
+ type SqlQueryInput = z.infer<typeof sqlQueryInputSchema>;
481
+ /** The returned plan contains no bound parameter values or caller identity. */
482
+ declare function compileRuntimeSql({ operation, input }: {
483
+ operation: CompiledOperation;
484
+ input: SqlQueryInput;
485
+ }): Promise<CompiledOperation>;
486
+
487
+ declare const DATASET_PREVIEW_LIMIT = 100;
488
+ /**
489
+ * Fixed runtime-owned reads, separate from the published operation manifest.
490
+ * Use logical column identities directly (no GraphQL naming conversion) and
491
+ * the normal compiler context/policy pass. Like generated GraphQL, internal
492
+ * source tables, raw synced backings, and cell metadata are not exposed.
493
+ */
494
+ declare function compileDatasetPreviews(input: CanonicalDefinition): Record<string, CompiledOperation>;
495
+
496
+ export { type BuildContextResult, COMPILER_MAJOR, CONST_TRUE, type ClientManifest, type ClientManifestOperation, type CompileContext, type CompileNamespaceInput, type CompileNamespaceResult, type CompilerDiagnostic, DATASET_PREVIEW_LIMIT, DEFAULT_LIMIT, type DiagnosticSeverity, DocumentCompileError, MAX_LIMIT, type MutationOp, type MutationRootInfo, NamespaceCompileError, OperationLowerer, PLATFORM_USER_TABLE, type ParseDocumentsResult, type ParsedDocument, type PinnedColumn, type QueryRootInfo, type RestrictedOperation, type SourceDocument, type SqlQueryInput, andPred, buildCompileContext, canonicalOperationText, classifyInputType, collectPinnedColumns, compileDatasetPreviews, compileNamespace, compileNamespaceOrThrow, compileOperationDocuments, compileRuntimeSql, computeOpHash, computeOpsHash, computePinnedColumnsByTable, computeSchemaHash, flattenOperation, injectPolicies, inputTypeName, isSqlOperationDocument, lowerOperation, mutationRootNames, parseDocuments, parseSdl, platformUserMeta, predContains, predContainsExists, queryRootNames, restrictOperation, sqlQueryInputSchema, typeNameForTable, walkPred };