@sequenceholdings/orm 2.10.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 (51) hide show
  1. package/README.md +74 -4
  2. package/dist/authoring.cjs +796 -7
  3. package/dist/authoring.cjs.map +1 -1
  4. package/dist/authoring.d.cts +10 -1
  5. package/dist/authoring.d.ts +10 -1
  6. package/dist/authoring.js +796 -7
  7. package/dist/authoring.js.map +1 -1
  8. package/dist/canonical.cjs +777 -6
  9. package/dist/canonical.cjs.map +1 -1
  10. package/dist/canonical.js +777 -6
  11. package/dist/canonical.js.map +1 -1
  12. package/dist/cli.cjs +7697 -7686
  13. package/dist/cli.cjs.map +1 -1
  14. package/dist/cli.js +7698 -7687
  15. package/dist/cli.js.map +1 -1
  16. package/dist/client.cjs +5 -10
  17. package/dist/client.cjs.map +1 -1
  18. package/dist/client.d.cts +2 -13
  19. package/dist/client.d.ts +2 -13
  20. package/dist/client.js +6 -10
  21. package/dist/client.js.map +1 -1
  22. package/dist/compiler.cjs +815 -100
  23. package/dist/compiler.cjs.map +1 -1
  24. package/dist/compiler.d.cts +5 -16
  25. package/dist/compiler.d.ts +5 -16
  26. package/dist/compiler.js +817 -99
  27. package/dist/compiler.js.map +1 -1
  28. package/dist/index.cjs +3611 -3287
  29. package/dist/index.cjs.map +1 -1
  30. package/dist/index.d.cts +577 -7
  31. package/dist/index.d.ts +577 -7
  32. package/dist/index.js +3600 -3285
  33. package/dist/index.js.map +1 -1
  34. package/dist/ir.cjs +784 -18
  35. package/dist/ir.cjs.map +1 -1
  36. package/dist/ir.d.cts +3 -6
  37. package/dist/ir.d.ts +3 -6
  38. package/dist/ir.js +784 -18
  39. package/dist/ir.js.map +1 -1
  40. package/dist/predicate-v2.cjs +796 -31
  41. package/dist/predicate-v2.cjs.map +1 -1
  42. package/dist/predicate-v2.js +796 -31
  43. package/dist/predicate-v2.js.map +1 -1
  44. package/dist/sdl.cjs +790 -28
  45. package/dist/sdl.cjs.map +1 -1
  46. package/dist/sdl.d.cts +1 -5
  47. package/dist/sdl.d.ts +1 -5
  48. package/dist/sdl.js +790 -28
  49. package/dist/sdl.js.map +1 -1
  50. package/package.json +1 -1
  51. package/src/codegen-gql/server-fns.cjs +1 -1
@@ -238,16 +238,13 @@ declare function parseDocuments({ schema, documents, }: {
238
238
 
239
239
  /** Content hash of the canonical definition — the schema identity ops compile against. */
240
240
  declare function computeSchemaHash(canonical: CanonicalDefinition): string;
241
- interface ClientManifestOperation {
242
- opHash: string;
243
- kind: 'query' | 'mutation';
244
- requires: CompiledOperation['requires'];
245
- }
246
- /** What codegen/the client transport needs: name → hash mapping + set identity. */
241
+ /** Registration tripwire: exact compiled contracts, never selector digests.
242
+ * Public generated client manifests project only kind and capability gates. */
243
+ type ClientManifestOperation = CompiledOperation;
244
+ /** What codegen/the client transport needs: namespace-scoped name, kind and capability contract. */
247
245
  interface ClientManifest {
248
246
  namespace: string;
249
247
  schemaHash: string;
250
- opsHash: string;
251
248
  operations: Record<string, ClientManifestOperation>;
252
249
  }
253
250
  interface CompileNamespaceInput {
@@ -287,16 +284,8 @@ declare function flattenOperation({ operation, fragments, }: {
287
284
  fragments: ReadonlyMap<string, FragmentDefinitionNode>;
288
285
  }): OperationDefinitionNode;
289
286
 
290
- /** Bump on any change to lowering semantics — invalidates every op hash. */
291
- declare const COMPILER_MAJOR = 1;
292
287
  /** Canonical print of one flattened operation (fragments already inlined). */
293
288
  declare function canonicalOperationText(definition: OperationDefinitionNode): string;
294
- declare function computeOpHash({ definition, schemaHash, }: {
295
- definition: OperationDefinitionNode;
296
- schemaHash: string;
297
- }): string;
298
- /** Order-independent set hash over the sorted op hashes. */
299
- declare function computeOpsHash(opHashes: readonly string[]): string;
300
289
 
301
290
  /**
302
291
  * Restrict pass — the grammar gate that keeps operations inside the v2.0
@@ -721,4 +710,4 @@ declare function projectOperationMetadata({ artifact, operation }: {
721
710
  operation: CompiledOperation;
722
711
  }): CompiledArtifact;
723
712
 
724
- 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, OBJECT_METADATA_FORMAT, OPERATION_METADATA_FORMAT, type ObjectMetadataProjection, type ObjectSqlBundle, OperationLowerer, PLATFORM_USER_TABLE, type ParseDocumentsResult, type ParsedDocument, type PinnedColumn, type QueryRootInfo, type RestrictedOperation, type SourceDocument, type SqlQueryInput, andPred, bindNamedParameters, buildCompileContext, canonicalOperationText, classifyInputType, collectPinnedColumns, compileBuiltinSqlArtifact, compileDatasetPreviews, compileDefaultOperations, compileNamespace, compileNamespaceOrThrow, compileObjectMetadata, compileOperationDocuments, compileRuntimeSql, composeObjectSqlArtifact, computeOpHash, computeOpsHash, computePinnedColumnsByTable, computeSchemaHash, flattenOperation, generateDefaultOperations, injectPolicies, inputTypeName, isSqlOperationDocument, lowerOperation, mutationRootNames, objectSqlBundleSchema, parseDocuments, parseSdl, platformUserMeta, predContains, predContainsExists, projectOperationMetadata, queryRootNames, referencedSqlObjects, restrictOperation, sqlQueryInputSchema, typeNameForTable, validateManagedViewQueries, walkPred };
713
+ export { type BuildContextResult, 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, OBJECT_METADATA_FORMAT, OPERATION_METADATA_FORMAT, type ObjectMetadataProjection, type ObjectSqlBundle, OperationLowerer, PLATFORM_USER_TABLE, type ParseDocumentsResult, type ParsedDocument, type PinnedColumn, type QueryRootInfo, type RestrictedOperation, type SourceDocument, type SqlQueryInput, andPred, bindNamedParameters, buildCompileContext, canonicalOperationText, classifyInputType, collectPinnedColumns, compileBuiltinSqlArtifact, compileDatasetPreviews, compileDefaultOperations, compileNamespace, compileNamespaceOrThrow, compileObjectMetadata, compileOperationDocuments, compileRuntimeSql, composeObjectSqlArtifact, computePinnedColumnsByTable, computeSchemaHash, flattenOperation, generateDefaultOperations, injectPolicies, inputTypeName, isSqlOperationDocument, lowerOperation, mutationRootNames, objectSqlBundleSchema, parseDocuments, parseSdl, platformUserMeta, predContains, predContainsExists, projectOperationMetadata, queryRootNames, referencedSqlObjects, restrictOperation, sqlQueryInputSchema, typeNameForTable, validateManagedViewQueries, walkPred };
@@ -238,16 +238,13 @@ declare function parseDocuments({ schema, documents, }: {
238
238
 
239
239
  /** Content hash of the canonical definition — the schema identity ops compile against. */
240
240
  declare function computeSchemaHash(canonical: CanonicalDefinition): string;
241
- interface ClientManifestOperation {
242
- opHash: string;
243
- kind: 'query' | 'mutation';
244
- requires: CompiledOperation['requires'];
245
- }
246
- /** What codegen/the client transport needs: name → hash mapping + set identity. */
241
+ /** Registration tripwire: exact compiled contracts, never selector digests.
242
+ * Public generated client manifests project only kind and capability gates. */
243
+ type ClientManifestOperation = CompiledOperation;
244
+ /** What codegen/the client transport needs: namespace-scoped name, kind and capability contract. */
247
245
  interface ClientManifest {
248
246
  namespace: string;
249
247
  schemaHash: string;
250
- opsHash: string;
251
248
  operations: Record<string, ClientManifestOperation>;
252
249
  }
253
250
  interface CompileNamespaceInput {
@@ -287,16 +284,8 @@ declare function flattenOperation({ operation, fragments, }: {
287
284
  fragments: ReadonlyMap<string, FragmentDefinitionNode>;
288
285
  }): OperationDefinitionNode;
289
286
 
290
- /** Bump on any change to lowering semantics — invalidates every op hash. */
291
- declare const COMPILER_MAJOR = 1;
292
287
  /** Canonical print of one flattened operation (fragments already inlined). */
293
288
  declare function canonicalOperationText(definition: OperationDefinitionNode): string;
294
- declare function computeOpHash({ definition, schemaHash, }: {
295
- definition: OperationDefinitionNode;
296
- schemaHash: string;
297
- }): string;
298
- /** Order-independent set hash over the sorted op hashes. */
299
- declare function computeOpsHash(opHashes: readonly string[]): string;
300
289
 
301
290
  /**
302
291
  * Restrict pass — the grammar gate that keeps operations inside the v2.0
@@ -721,4 +710,4 @@ declare function projectOperationMetadata({ artifact, operation }: {
721
710
  operation: CompiledOperation;
722
711
  }): CompiledArtifact;
723
712
 
724
- 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, OBJECT_METADATA_FORMAT, OPERATION_METADATA_FORMAT, type ObjectMetadataProjection, type ObjectSqlBundle, OperationLowerer, PLATFORM_USER_TABLE, type ParseDocumentsResult, type ParsedDocument, type PinnedColumn, type QueryRootInfo, type RestrictedOperation, type SourceDocument, type SqlQueryInput, andPred, bindNamedParameters, buildCompileContext, canonicalOperationText, classifyInputType, collectPinnedColumns, compileBuiltinSqlArtifact, compileDatasetPreviews, compileDefaultOperations, compileNamespace, compileNamespaceOrThrow, compileObjectMetadata, compileOperationDocuments, compileRuntimeSql, composeObjectSqlArtifact, computeOpHash, computeOpsHash, computePinnedColumnsByTable, computeSchemaHash, flattenOperation, generateDefaultOperations, injectPolicies, inputTypeName, isSqlOperationDocument, lowerOperation, mutationRootNames, objectSqlBundleSchema, parseDocuments, parseSdl, platformUserMeta, predContains, predContainsExists, projectOperationMetadata, queryRootNames, referencedSqlObjects, restrictOperation, sqlQueryInputSchema, typeNameForTable, validateManagedViewQueries, walkPred };
713
+ export { type BuildContextResult, 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, OBJECT_METADATA_FORMAT, OPERATION_METADATA_FORMAT, type ObjectMetadataProjection, type ObjectSqlBundle, OperationLowerer, PLATFORM_USER_TABLE, type ParseDocumentsResult, type ParsedDocument, type PinnedColumn, type QueryRootInfo, type RestrictedOperation, type SourceDocument, type SqlQueryInput, andPred, bindNamedParameters, buildCompileContext, canonicalOperationText, classifyInputType, collectPinnedColumns, compileBuiltinSqlArtifact, compileDatasetPreviews, compileDefaultOperations, compileNamespace, compileNamespaceOrThrow, compileObjectMetadata, compileOperationDocuments, compileRuntimeSql, composeObjectSqlArtifact, computePinnedColumnsByTable, computeSchemaHash, flattenOperation, generateDefaultOperations, injectPolicies, inputTypeName, isSqlOperationDocument, lowerOperation, mutationRootNames, objectSqlBundleSchema, parseDocuments, parseSdl, platformUserMeta, predContains, predContainsExists, projectOperationMetadata, queryRootNames, referencedSqlObjects, restrictOperation, sqlQueryInputSchema, typeNameForTable, validateManagedViewQueries, walkPred };