@soda-gql/core 0.11.25 → 0.12.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.
@@ -1,5 +1,6 @@
1
- import { $ as PrimitiveTypeProfile, C as AnyFieldName, Ct as DeferredInputSpecifier, D as InferInputKind, Dt as DeferredOutputSpecifier, Et as DeferredOutputInferrableSpecifier, F as OperationType, Ft as InputTypeSpecifiers, H as AnyVarRef, Jt as ApplyTypeModifier, K as VarRef, Kt as VarSpecifier, L as ResolveInputProfileFromMeta, N as ObjectFieldRecord, Nt as InputTypeKind, O as InferInputProfile, Q as ObjectTypeProfile, Qt as ConstValue, S as AllInputTypeNames, T as AnyTypeName, Tt as DeferredOutputFieldWithArgs, U as AnyVarRefBrand, Vt as OutputTypeKind, X as GetConstAssignableType, Xt as TypeModifier, Yt as GetSignature, Z as GetModifiedType, _ as FragmentMetadataBuilder, a as DefaultMetadataAdapter, at as InputDepthOverrides, c as ExtractAdapterTypes, dt as GetSpecKind, en as FieldPath, et as TypeProfile, ft as GetSpecModifier, i as DefaultAdapter, k as InferOutputProfile, n as AnyAdapter, p as OperationDocumentTransformer, pt as GetSpecName, qt as VariableDefinitions, r as AnyMetadataAdapter, s as DocumentTransformer, t as Adapter, ut as GetSpecDefaultValue, w as AnyGraphqlSchema, xt as CreatableInputTypeKind, y as MetadataBuilder, yt as AnyDefaultValue } from "./index-BJ6nWenl.js";
2
- import { ConstValueNode, NamedTypeNode, OperationTypeNode, TypeNode, ValueNode, VariableDefinitionNode } from "graphql";
1
+ import { $ as PrimitiveTypeProfile, C as AnyFieldName, Ct as DeferredInputSpecifier, D as InferInputKind, Dt as DeferredOutputSpecifier, Et as DeferredOutputInferrableSpecifier, F as OperationType, Ft as InputTypeSpecifiers, H as AnyVarRef, Jt as ApplyTypeModifier, K as VarRef, Kt as VarSpecifier, L as ResolveInputProfileFromMeta, N as ObjectFieldRecord, Nt as InputTypeKind, O as InferInputProfile, Q as ObjectTypeProfile, Qt as ConstValue, S as AllInputTypeNames, T as AnyTypeName, Tt as DeferredOutputFieldWithArgs, U as AnyVarRefBrand, Vt as OutputTypeKind, X as GetConstAssignableType, Xt as TypeModifier, Yt as GetSignature, Z as GetModifiedType, a as DefaultMetadataAdapter, at as InputDepthOverrides, c as ExtractAdapterTypes, dt as GetSpecKind, en as FieldPath, et as TypeProfile, ft as GetSpecModifier, i as DefaultAdapter, k as InferOutputProfile, n as AnyAdapter, p as OperationDocumentTransformer, pt as GetSpecName, qt as VariableDefinitions, r as AnyMetadataAdapter, s as DocumentTransformer, t as Adapter, ut as GetSpecDefaultValue, w as AnyGraphqlSchema, xt as CreatableInputTypeKind, y as MetadataBuilder, yt as AnyDefaultValue } from "./index-PnGDsBZE.cjs";
2
+ import * as graphql0 from "graphql";
3
+ import { ConstDirectiveNode, ConstValueNode, DocumentNode, EnumValueDefinitionNode, FieldDefinitionNode, InputValueDefinitionNode, NamedTypeNode, OperationTypeNode, SelectionSetNode, TypeNode, ValueNode, VariableDefinitionNode } from "graphql";
3
4
  import { TypedDocumentNode } from "@graphql-typed-document-node/core";
4
5
 
5
6
  //#region packages/core/src/types/type-foundation/directive-ref.d.ts
@@ -189,7 +190,7 @@ type FieldArgumentValue<TSchema$1 extends AnyGraphqlSchema, TSpecifier$1 extends
189
190
  * This name appears in TypeScript error messages when variable access fails.
190
191
  */
191
192
  type DeclaredVariables<TSchema$1 extends AnyGraphqlSchema, TVarDefs extends VariableDefinitions> = { readonly [K in keyof TVarDefs]-?: VarRef<TypeProfile.DeclaredVariableType<ResolveInputProfileFromMeta<TSchema$1, TVarDefs[K]["name"], TVarDefs[K]["kind"], TVarDefs[K]["modifier"]>>> };
192
- type AssignableInputByFieldName<TSchema$1 extends AnyGraphqlSchema, TTypeName$1 extends keyof TSchema$1["object"], TFieldName$1 extends keyof TSchema$1["object"][TTypeName$1]["fields"]> = AssignableInput<TSchema$1, TSchema$1["object"][TTypeName$1]["fields"][TFieldName$1]["arguments"]>;
193
+ type AssignableInputByFieldName<TSchema$1 extends AnyGraphqlSchema, TTypeName extends keyof TSchema$1["object"], TFieldName$1 extends keyof TSchema$1["object"][TTypeName]["fields"]> = AssignableInput<TSchema$1, TSchema$1["object"][TTypeName]["fields"][TFieldName$1]["arguments"]>;
193
194
  //#endregion
194
195
  //#region packages/core/src/types/fragment/directives.d.ts
195
196
  /**
@@ -250,8 +251,8 @@ type AnyFields = {
250
251
  *
251
252
  * Supports shorthand syntax in nested object selections via AnyNestedObjectExtended.
252
253
  */
253
- type AbstractFieldSelection<TTypeName$1 extends AnyTypeName, TFieldName$1 extends AnyFieldName, TSpecifier$1 extends DeferredOutputFieldWithArgs, TArgs extends AnyAssignableInput, TDirectives extends AnyDirectiveAttachments, TObject extends AnyNestedObjectExtended | null, TUnionSelections extends AnyNestedUnion | null, TUnionTypename extends boolean> = {
254
- readonly parent: TTypeName$1;
254
+ type AbstractFieldSelection<TTypeName extends AnyTypeName, TFieldName$1 extends AnyFieldName, TSpecifier$1 extends DeferredOutputFieldWithArgs, TArgs extends AnyAssignableInput, TDirectives extends AnyDirectiveAttachments, TObject extends AnyNestedObjectExtended | null, TUnionSelections extends AnyNestedUnion | null, TUnionTypename extends boolean> = {
255
+ readonly parent: TTypeName;
255
256
  readonly field: TFieldName$1;
256
257
  readonly type: TSpecifier$1;
257
258
  readonly args: TArgs;
@@ -260,7 +261,7 @@ type AbstractFieldSelection<TTypeName$1 extends AnyTypeName, TFieldName$1 extend
260
261
  readonly union: TUnionSelections extends AnyNestedUnion ? UnionSelection<TUnionSelections, TUnionTypename> : null;
261
262
  };
262
263
  /** Convenience alias to obtain a typed field reference from the schema. */
263
- type FieldSelectionTemplateOf<TSchema$1 extends AnyGraphqlSchema, TTypeName$1 extends keyof TSchema$1["object"] & string, TFieldName$1 extends keyof TSchema$1["object"][TTypeName$1]["fields"] & string, TRef extends DeferredOutputFieldWithArgs = TSchema$1["object"][TTypeName$1]["fields"][TFieldName$1]> = AbstractFieldSelection<TTypeName$1, TFieldName$1, TRef, AssignableInputByFieldName<TSchema$1, TTypeName$1, TFieldName$1>, AnyDirectiveAttachments, GetSpecKind<TRef["spec"]> extends "object" ? AnyNestedObjectExtended : null, GetSpecKind<TRef["spec"]> extends "union" ? AnyNestedUnion : null, boolean>;
264
+ type FieldSelectionTemplateOf<TSchema$1 extends AnyGraphqlSchema, TTypeName extends keyof TSchema$1["object"] & string, TFieldName$1 extends keyof TSchema$1["object"][TTypeName]["fields"] & string, TRef extends DeferredOutputFieldWithArgs = TSchema$1["object"][TTypeName]["fields"][TFieldName$1]> = AbstractFieldSelection<TTypeName, TFieldName$1, TRef, AssignableInputByFieldName<TSchema$1, TTypeName, TFieldName$1>, AnyDirectiveAttachments, GetSpecKind<TRef["spec"]> extends "object" ? AnyNestedObjectExtended : null, GetSpecKind<TRef["spec"]> extends "union" ? AnyNestedUnion : null, boolean>;
264
265
  /** Resolve the data shape produced by a set of field selections. */
265
266
  type InferFields<TSchema$1 extends AnyGraphqlSchema, TFields$1 extends AnyFields> = { [_ in TSchema$1["label"]]: { [TAliasName in keyof TFields$1]: InferField<TSchema$1, TFields$1[TAliasName]> } & {} }[TSchema$1["label"]];
266
267
  /**
@@ -314,26 +315,26 @@ type RequiredKeys<T> = { [K in keyof T]-?: {} extends Pick<T, K> ? never : K }[k
314
315
  /**
315
316
  * Check if a field has no required arguments.
316
317
  */
317
- type HasNoRequiredArgs<TSchema$1 extends AnyGraphqlSchema, TTypeName$1 extends keyof TSchema$1["object"] & string, TFieldName$1 extends keyof TSchema$1["object"][TTypeName$1]["fields"] & string> = keyof RequiredKeys<AssignableInputByFieldName<TSchema$1, TTypeName$1, TFieldName$1>> extends never ? true : false;
318
+ type HasNoRequiredArgs<TSchema$1 extends AnyGraphqlSchema, TTypeName extends keyof TSchema$1["object"] & string, TFieldName$1 extends keyof TSchema$1["object"][TTypeName]["fields"] & string> = keyof RequiredKeys<AssignableInputByFieldName<TSchema$1, TTypeName, TFieldName$1>> extends never ? true : false;
318
319
  /**
319
320
  * Validate that shorthand `true` is only used for fields without required arguments.
320
321
  * Fields with required arguments must use factory syntax.
321
322
  */
322
- type ValidateShorthand<TSchema$1 extends AnyGraphqlSchema, TTypeName$1 extends keyof TSchema$1["object"] & string, TFieldName$1 extends string, TValue$1> = TValue$1 extends true ? TFieldName$1 extends keyof TSchema$1["object"][TTypeName$1]["fields"] & string ? HasNoRequiredArgs<TSchema$1, TTypeName$1, TFieldName$1> extends true ? true : never : never : TValue$1;
323
+ type ValidateShorthand<TSchema$1 extends AnyGraphqlSchema, TTypeName extends keyof TSchema$1["object"] & string, TFieldName$1 extends string, TValue$1> = TValue$1 extends true ? TFieldName$1 extends keyof TSchema$1["object"][TTypeName]["fields"] & string ? HasNoRequiredArgs<TSchema$1, TTypeName, TFieldName$1> extends true ? true : never : never : TValue$1;
323
324
  /**
324
325
  * Infer the output type for a scalar/enum field by looking up the schema.
325
326
  * Used for shorthand syntax where field type info is not embedded in the value.
326
327
  */
327
- type InferScalarFieldByName<TSchema$1 extends AnyGraphqlSchema, TTypeName$1 extends keyof TSchema$1["object"] & string, TFieldName$1 extends keyof TSchema$1["object"][TTypeName$1]["fields"]> = TSchema$1["object"][TTypeName$1]["fields"][TFieldName$1] extends infer TSpecifier extends DeferredOutputInferrableSpecifier ? GetModifiedType<InferOutputProfile<TSchema$1, TSpecifier>, GetSpecModifier<TSpecifier>> : never;
328
+ type InferScalarFieldByName<TSchema$1 extends AnyGraphqlSchema, TTypeName extends keyof TSchema$1["object"] & string, TFieldName$1 extends keyof TSchema$1["object"][TTypeName]["fields"]> = TSchema$1["object"][TTypeName]["fields"][TFieldName$1] extends infer TSpecifier extends DeferredOutputInferrableSpecifier ? GetModifiedType<InferOutputProfile<TSchema$1, TSpecifier>, GetSpecModifier<TSpecifier>> : never;
328
329
  /**
329
330
  * Infer the output type for a single field value (shorthand or factory return).
330
331
  */
331
- type InferFieldValue<TSchema$1 extends AnyGraphqlSchema, TTypeName$1 extends keyof TSchema$1["object"] & string, TFieldKey extends string, TValue$1> = TValue$1 extends true ? TFieldKey extends keyof TSchema$1["object"][TTypeName$1]["fields"] & string ? ValidateShorthand<TSchema$1, TTypeName$1, TFieldKey, TValue$1> extends true ? InferScalarFieldByName<TSchema$1, TTypeName$1, TFieldKey> : never : never : TValue$1 extends AnyFieldSelection ? InferField<TSchema$1, TValue$1> : never;
332
+ type InferFieldValue<TSchema$1 extends AnyGraphqlSchema, TTypeName extends keyof TSchema$1["object"] & string, TFieldKey extends string, TValue$1> = TValue$1 extends true ? TFieldKey extends keyof TSchema$1["object"][TTypeName]["fields"] & string ? ValidateShorthand<TSchema$1, TTypeName, TFieldKey, TValue$1> extends true ? InferScalarFieldByName<TSchema$1, TTypeName, TFieldKey> : never : never : TValue$1 extends AnyFieldSelection ? InferField<TSchema$1, TValue$1> : never;
332
333
  /**
333
334
  * Infer fields with shorthand support.
334
335
  * Requires TTypeName to look up field types when value is shorthand (true).
335
336
  */
336
- type InferFieldsExtended<TSchema$1 extends AnyGraphqlSchema, TTypeName$1 extends keyof TSchema$1["object"] & string, TFields$1 extends AnyFieldsExtended> = { [_ in TSchema$1["label"]]: { [K in keyof TFields$1]: InferFieldValue<TSchema$1, TTypeName$1, K & string, TFields$1[K]> } & {} }[TSchema$1["label"]];
337
+ type InferFieldsExtended<TSchema$1 extends AnyGraphqlSchema, TTypeName extends keyof TSchema$1["object"] & string, TFields$1 extends AnyFieldsExtended> = { [_ in TSchema$1["label"]]: { [K in keyof TFields$1]: InferFieldValue<TSchema$1, TTypeName, K & string, TFields$1[K]> } & {} }[TSchema$1["label"]];
337
338
  //#endregion
338
339
  //#region packages/core/src/utils/deferred-specifier-parser.d.ts
339
340
  type ParsedInputSpecifier = {
@@ -443,14 +444,14 @@ declare const buildOperationTypeNode: (operation: OperationType) => OperationTyp
443
444
  * @param options - Operation configuration (name, type, variables, fields, schema)
444
445
  * @returns TypedDocumentNode with inferred input/output types
445
446
  */
446
- declare const buildDocument: <TSchema$1 extends AnyGraphqlSchema, TTypeName$1 extends keyof TSchema$1["object"] & string, TFields$1 extends AnyFieldsExtended, TVarDefinitions$1 extends VariableDefinitions>(options: {
447
+ declare const buildDocument: <TSchema$1 extends AnyGraphqlSchema, TTypeName extends keyof TSchema$1["object"] & string, TFields$1 extends AnyFieldsExtended, TVarDefinitions$1 extends VariableDefinitions>(options: {
447
448
  operationName: string;
448
449
  operationType: OperationType;
449
- operationTypeName: TTypeName$1;
450
+ operationTypeName: TTypeName;
450
451
  variables: TVarDefinitions$1;
451
452
  fields: TFields$1;
452
453
  schema: TSchema$1;
453
- }) => TypedDocumentNode<InferFieldsExtended<TSchema$1, TTypeName$1, TFields$1>, ConstAssignableInputFromVarDefs<TSchema$1, TVarDefinitions$1>>;
454
+ }) => TypedDocumentNode<InferFieldsExtended<TSchema$1, TTypeName, TFields$1>, ConstAssignableInputFromVarDefs<TSchema$1, TVarDefinitions$1>>;
454
455
  //#endregion
455
456
  //#region packages/core/src/utils/type-utils.d.ts
456
457
  type UnionToIntersection<U> = (U extends any ? (x: U) => void : never) extends ((x: infer I) => void) ? I : never;
@@ -463,7 +464,7 @@ type StripSymbols<T extends object> = { [K in keyof T as K extends symbol | "$in
463
464
  * Type for colocated field entries.
464
465
  * Maps labels to their corresponding field selections.
465
466
  */
466
- type ColocatedEntries = Record<string, AnyFields>;
467
+ type ColocatedEntries = Record<string, AnyFieldsExtended>;
467
468
  /**
468
469
  * Result type for colocated fields.
469
470
  * Merges all prefixed entries into a single object.
@@ -552,14 +553,14 @@ declare const empty: () => EmptyObject;
552
553
  *
553
554
  * Supports both shorthand syntax (`id: true`) and factory syntax (`...f.id()`).
554
555
  */
555
- type FieldsBuilder<TSchema$1 extends AnyGraphqlSchema, TTypeName$1 extends keyof TSchema$1["object"] & string, TVariableDefinitions extends VariableDefinitions, TFields$1 extends AnyFieldsExtended> = (tools: NoInfer<FieldsBuilderTools<TSchema$1, TTypeName$1, TVariableDefinitions>>) => TFields$1;
556
+ type FieldsBuilder<TSchema$1 extends AnyGraphqlSchema, TTypeName extends keyof TSchema$1["object"] & string, TVariableDefinitions extends VariableDefinitions, TFields$1 extends AnyFieldsExtended> = (tools: NoInfer<FieldsBuilderTools<TSchema$1, TTypeName, TVariableDefinitions>>) => TFields$1;
556
557
  /**
557
558
  * Tools provided to field builder callbacks.
558
559
  * - `f`: Field selection factories for the current type
559
560
  * - `$`: Variable references for the current scope
560
561
  */
561
- type FieldsBuilderTools<TSchema$1 extends AnyGraphqlSchema, TTypeName$1 extends keyof TSchema$1["object"] & string, TVariableDefinitions extends VariableDefinitions> = {
562
- f: FieldSelectionFactories<TSchema$1, TTypeName$1>;
562
+ type FieldsBuilderTools<TSchema$1 extends AnyGraphqlSchema, TTypeName extends keyof TSchema$1["object"] & string, TVariableDefinitions extends VariableDefinitions> = {
563
+ f: FieldSelectionFactories<TSchema$1, TTypeName>;
563
564
  $: DeclaredVariables<TSchema$1, TVariableDefinitions>;
564
565
  };
565
566
  /**
@@ -568,13 +569,13 @@ type FieldsBuilderTools<TSchema$1 extends AnyGraphqlSchema, TTypeName$1 extends
568
569
  *
569
570
  * Supports both shorthand syntax (`id: true`) and factory syntax (`...f.id()`).
570
571
  */
571
- type NestedObjectFieldsBuilder<TSchema$1 extends AnyGraphqlSchema, TTypeName$1 extends keyof TSchema$1["object"] & string, TFields$1 extends AnyFieldsExtended> = (tools: NoInfer<NestedObjectFieldsBuilderTools<TSchema$1, TTypeName$1>>) => TFields$1;
572
+ type NestedObjectFieldsBuilder<TSchema$1 extends AnyGraphqlSchema, TTypeName extends keyof TSchema$1["object"] & string, TFields$1 extends AnyFieldsExtended> = (tools: NoInfer<NestedObjectFieldsBuilderTools<TSchema$1, TTypeName>>) => TFields$1;
572
573
  /**
573
574
  * Tools for nested object builders (no variable access).
574
575
  * @internal
575
576
  */
576
- type NestedObjectFieldsBuilderTools<TSchema$1 extends AnyGraphqlSchema, TTypeName$1 extends keyof TSchema$1["object"] & string> = {
577
- f: FieldSelectionFactories<TSchema$1, TTypeName$1>;
577
+ type NestedObjectFieldsBuilderTools<TSchema$1 extends AnyGraphqlSchema, TTypeName extends keyof TSchema$1["object"] & string> = {
578
+ f: FieldSelectionFactories<TSchema$1, TTypeName>;
578
579
  };
579
580
  /**
580
581
  * Builder for union type selections with per-member field definitions.
@@ -588,7 +589,7 @@ type NestedUnionFieldsBuilder<TSchema$1 extends AnyGraphqlSchema, TMemberName ex
588
589
  __typename?: true;
589
590
  };
590
591
  /** Map each field to a factory capable of emitting fully-typed references. */
591
- type FieldSelectionFactories<TSchema$1 extends AnyGraphqlSchema, TTypeName$1 extends keyof TSchema$1["object"] & string> = { [TFieldName in keyof ObjectFieldRecord<TSchema$1, TTypeName$1> & string]: FieldSelectionFactory<TSchema$1, FieldSelectionTemplateOf<TSchema$1, TTypeName$1, TFieldName>> };
592
+ type FieldSelectionFactories<TSchema$1 extends AnyGraphqlSchema, TTypeName extends keyof TSchema$1["object"] & string> = { [TFieldName in keyof ObjectFieldRecord<TSchema$1, TTypeName> & string]: FieldSelectionFactory<TSchema$1, FieldSelectionTemplateOf<TSchema$1, TTypeName, TFieldName>> };
592
593
  /**
593
594
  * Type-erased field selection factory.
594
595
  * @internal
@@ -723,6 +724,33 @@ type ExtractCompatSpec<T> = T extends CompatSpec<infer TSchema, infer TOperation
723
724
  variables: TVarDefinitions;
724
725
  fields: TFields;
725
726
  } : never;
727
+ /**
728
+ * Specification for a tagged template compat operation.
729
+ * Stores raw GraphQL source string instead of fieldsBuilder callback.
730
+ * Created by `query.compat\`...\``, `mutation.compat\`...\``, `subscription.compat\`...\``.
731
+ *
732
+ * Unlike {@link CompatSpec}, this type is not generic — tagged template compat
733
+ * does not carry type-level field or variable information. Types come from typegen.
734
+ *
735
+ * The graphqlSource is stored raw (unparsed). Parsing happens inside extend()
736
+ * at extend-time, preserving the deferred execution model.
737
+ */
738
+ type TemplateCompatSpec = {
739
+ readonly schema: AnyGraphqlSchema;
740
+ readonly operationType: OperationType;
741
+ readonly operationName: string;
742
+ readonly graphqlSource: string;
743
+ };
744
+ /**
745
+ * Type guard to distinguish TemplateCompatSpec from CompatSpec at runtime.
746
+ * Uses structural discrimination (presence of `graphqlSource` field).
747
+ */
748
+ declare const isTemplateCompatSpec: (spec: AnyCompatSpec | TemplateCompatSpec) => spec is TemplateCompatSpec;
749
+ /**
750
+ * Union type for specs that extend() can accept.
751
+ * Includes both callback builder compat specs and tagged template compat specs.
752
+ */
753
+ type AnyExtendableSpec = AnyCompatSpec | TemplateCompatSpec;
726
754
  //#endregion
727
755
  //#region packages/core/src/types/element/lazy-evaluator.d.ts
728
756
  /**
@@ -909,12 +937,12 @@ type FragmentInferMeta<TVariables, TOutput extends object> = {
909
937
  * Internal artifact shape produced by fragment evaluation.
910
938
  * @internal
911
939
  */
912
- interface FragmentArtifact<TTypeName$1 extends string, TVariables extends Partial<AnyAssignableInput> | void, TFields$1 extends Partial<AnyFieldsExtended>> {
913
- readonly typename: TTypeName$1;
940
+ interface FragmentArtifact<TTypeName extends string, TVariables extends Partial<AnyAssignableInput> | void, TFields$1 extends Partial<AnyFieldsExtended>> {
941
+ readonly typename: TTypeName;
914
942
  readonly key: string | undefined;
915
943
  readonly schemaLabel: string;
916
944
  readonly variableDefinitions: VariableDefinitions;
917
- readonly spread: (variables: TVariables) => TFields$1;
945
+ readonly spread: (...args: TVariables extends void ? [] : [variables: TVariables]) => TFields$1;
918
946
  }
919
947
  declare const __FRAGMENT_BRAND__: unique symbol;
920
948
  /**
@@ -928,11 +956,11 @@ declare const __FRAGMENT_BRAND__: unique symbol;
928
956
  * @template TFields - The selected fields structure
929
957
  * @template TOutput - Inferred output type from selected fields
930
958
  */
931
- declare class Fragment<TTypeName$1 extends string, TVariables extends Partial<AnyAssignableInput> | void, TFields$1 extends Partial<AnyFieldsExtended>, TOutput extends object> extends GqlElement<FragmentArtifact<TTypeName$1, TVariables, TFields$1>, FragmentInferMeta<TVariables, TOutput>> implements FragmentArtifact<TTypeName$1, TVariables, TFields$1> {
959
+ declare class Fragment<TTypeName extends string, TVariables extends Partial<AnyAssignableInput> | void, TFields$1 extends Partial<AnyFieldsExtended>, TOutput extends object> extends GqlElement<FragmentArtifact<TTypeName, TVariables, TFields$1>, FragmentInferMeta<TVariables, TOutput>> implements FragmentArtifact<TTypeName, TVariables, TFields$1> {
932
960
  private readonly [__FRAGMENT_BRAND__];
933
961
  private constructor();
934
962
  /** The GraphQL type name this fragment selects from. */
935
- get typename(): TTypeName$1;
963
+ get typename(): TTypeName;
936
964
  /** Optional unique key for prebuilt type lookup. */
937
965
  get key(): string | undefined;
938
966
  /** The schema label this fragment belongs to. */
@@ -943,21 +971,21 @@ declare class Fragment<TTypeName$1 extends string, TVariables extends Partial<An
943
971
  * Spreads this fragment's fields into a parent selection.
944
972
  * Pass variables if the fragment defines any.
945
973
  */
946
- get spread(): (variables: TVariables) => TFields$1;
974
+ get spread(): (...args: TVariables extends void ? [] : [variables: TVariables]) => TFields$1;
947
975
  /**
948
976
  * Creates a new Fragment instance.
949
977
  * Prefer using the `gql(({ fragment }) => ...)` API instead.
950
978
  * @internal
951
979
  */
952
- static create<TSchema$1 extends AnyGraphqlSchema, TTypeName$1 extends keyof TSchema$1["object"] & string, TVariableDefinitions extends VariableDefinitions, TFields$1 extends AnyFieldsExtended>(define: () => {
953
- typename: TTypeName$1;
980
+ static create<TSchema$1 extends AnyGraphqlSchema, TTypeName extends keyof TSchema$1["object"] & string, TVariableDefinitions extends VariableDefinitions, TFields$1 extends AnyFieldsExtended>(define: () => {
981
+ typename: TTypeName;
954
982
  key: string | undefined;
955
983
  schemaLabel: TSchema$1["label"];
956
984
  variableDefinitions: TVariableDefinitions;
957
- spread: (variables: OptionalArg<AssignableInputFromVarDefs<TSchema$1, TVariableDefinitions>>) => TFields$1;
958
- }): Fragment<TTypeName$1, OptionalArg<AssignableInputFromVarDefs<TSchema$1, TVariableDefinitions>>, TFields$1 & {
985
+ spread: (...args: OptionalArg<AssignableInputFromVarDefs<TSchema$1, TVariableDefinitions>> extends void ? [] : [variables: OptionalArg<AssignableInputFromVarDefs<TSchema$1, TVariableDefinitions>>]) => TFields$1;
986
+ }): Fragment<TTypeName, OptionalArg<AssignableInputFromVarDefs<TSchema$1, TVariableDefinitions>>, TFields$1 & {
959
987
  [key: symbol]: never;
960
- }, InferFieldsExtended<TSchema$1, TTypeName$1, TFields$1> & {
988
+ }, InferFieldsExtended<TSchema$1, TTypeName, TFields$1> & {
961
989
  [key: symbol]: never;
962
990
  }>;
963
991
  }
@@ -1054,13 +1082,13 @@ declare class Operation<TOperationType$1 extends OperationType, TOperationName$1
1054
1082
  /**
1055
1083
  * Options for creating a compat operation specification.
1056
1084
  */
1057
- type CompatOptions<TSchema$1 extends AnyGraphqlSchema, TTypeName$1 extends keyof TSchema$1["object"] & string, TOperationName$1 extends string, TVarDefinitions$1 extends VariableDefinitions, TFields$1 extends AnyFields> = {
1085
+ type CompatOptions<TSchema$1 extends AnyGraphqlSchema, TTypeName extends keyof TSchema$1["object"] & string, TOperationName$1 extends string, TVarDefinitions$1 extends VariableDefinitions, TFields$1 extends AnyFields> = {
1058
1086
  /** The operation name */
1059
1087
  name: TOperationName$1;
1060
1088
  /** Optional variable definitions */
1061
1089
  variables?: TVarDefinitions$1;
1062
1090
  /** Field selection builder */
1063
- fields: FieldsBuilder<TSchema$1, TTypeName$1, TVarDefinitions$1, TFields$1>;
1091
+ fields: FieldsBuilder<TSchema$1, TTypeName, TVarDefinitions$1, TFields$1>;
1064
1092
  };
1065
1093
  /**
1066
1094
  * Creates a factory for composing compat operation specifications.
@@ -1076,6 +1104,20 @@ type CompatOptions<TSchema$1 extends AnyGraphqlSchema, TTypeName$1 extends keyof
1076
1104
  */
1077
1105
  declare const createCompatComposer: <TSchema$1 extends AnyGraphqlSchema, TOperationType$1 extends OperationType>(schema: NoInfer<TSchema$1>, operationType: TOperationType$1) => <TOperationName$1 extends string, TFields$1 extends AnyFields, TVarDefinitions$1 extends VariableDefinitions = {}>(options: CompatOptions<TSchema$1, TSchema$1["operations"][TOperationType$1] & keyof TSchema$1["object"] & string, TOperationName$1, TVarDefinitions$1, TFields$1>) => GqlDefine<CompatSpec<TSchema$1, TOperationType$1, TOperationName$1, TVarDefinitions$1, TFields$1>>;
1078
1106
  //#endregion
1107
+ //#region packages/core/src/composer/compat-tagged-template.d.ts
1108
+ /** Tagged template function type for compat operations. */
1109
+ type CompatTaggedTemplate = (strings: TemplateStringsArray, ...values: never[]) => GqlDefine<TemplateCompatSpec>;
1110
+ /** Curried compat function type: query.compat("name")`{ fields }` */
1111
+ type CurriedCompatFunction = (operationName: string) => CompatTaggedTemplate;
1112
+ /**
1113
+ * Creates a curried tagged template function for compat mode operations.
1114
+ * New API: `query.compat("name")\`($vars) { fields }\`` returns GqlDefine<TemplateCompatSpec>.
1115
+ *
1116
+ * @param schema - The GraphQL schema definition
1117
+ * @param operationType - The operation type (query, mutation, subscription)
1118
+ */
1119
+ declare const createCompatTaggedTemplate: <TSchema$1 extends AnyGraphqlSchema>(schema: TSchema$1, operationType: OperationType) => CurriedCompatFunction;
1120
+ //#endregion
1079
1121
  //#region packages/core/src/composer/directive-builder.d.ts
1080
1122
  /**
1081
1123
  * A method that creates a DirectiveRef with specific type information.
@@ -1224,7 +1266,7 @@ type ExtendOptions<TSchema$1 extends AnyGraphqlSchema, TVarDefinitions$1 extends
1224
1266
  *
1225
1267
  * @internal Used by `createGqlElementComposer`
1226
1268
  */
1227
- declare const createExtendComposer: <TSchema$1 extends AnyGraphqlSchema, TAdapter extends AnyMetadataAdapter = DefaultMetadataAdapter>(schema: NoInfer<TSchema$1>, adapter?: TAdapter, transformDocument?: DocumentTransformer<ExtractAdapterTypes<TAdapter>["schemaLevel"], ExtractAdapterTypes<TAdapter>["aggregatedFragmentMetadata"]>) => <TOperationType$1 extends OperationType, TOperationName$1 extends string, TVarDefinitions$1 extends VariableDefinitions, TFields$1 extends AnyFields, TOperationMetadata = unknown>(compat: GqlDefine<CompatSpec<TSchema$1, TOperationType$1, TOperationName$1, TVarDefinitions$1, TFields$1>>, options?: ExtendOptions<TSchema$1, TVarDefinitions$1, TOperationMetadata, ExtractAdapterTypes<TAdapter>["aggregatedFragmentMetadata"], ExtractAdapterTypes<TAdapter>["schemaLevel"]>) => Operation<TOperationType$1, TOperationName$1, (keyof TVarDefinitions$1 & string)[], ConstAssignableInputFromVarDefs<TSchema$1, TVarDefinitions$1>, TFields$1, InferFieldsExtended<TSchema$1, TSchema$1["operations"][TOperationType$1] & keyof TSchema$1["object"] & string, TFields$1>>;
1269
+ declare const createExtendComposer: <TSchema$1 extends AnyGraphqlSchema, TAdapter extends AnyMetadataAdapter = DefaultMetadataAdapter>(schema: NoInfer<TSchema$1>, adapter?: TAdapter, transformDocument?: DocumentTransformer<ExtractAdapterTypes<TAdapter>["schemaLevel"], ExtractAdapterTypes<TAdapter>["aggregatedFragmentMetadata"]>) => <TOperationType$1 extends OperationType, TOperationName$1 extends string, TVarDefinitions$1 extends VariableDefinitions, TFields$1 extends AnyFields, TOperationMetadata = unknown>(compat: GqlDefine<CompatSpec<TSchema$1, TOperationType$1, TOperationName$1, TVarDefinitions$1, TFields$1>> | GqlDefine<TemplateCompatSpec>, options?: ExtendOptions<TSchema$1, TVarDefinitions$1, TOperationMetadata, ExtractAdapterTypes<TAdapter>["aggregatedFragmentMetadata"], ExtractAdapterTypes<TAdapter>["schemaLevel"]>) => any;
1228
1270
  //#endregion
1229
1271
  //#region packages/core/src/composer/fields-builder.d.ts
1230
1272
  /**
@@ -1239,67 +1281,120 @@ declare const createExtendComposer: <TSchema$1 extends AnyGraphqlSchema, TAdapte
1239
1281
  *
1240
1282
  * @internal Used by operation and fragment composers
1241
1283
  */
1242
- declare const createFieldFactories: <TSchema$1 extends AnyGraphqlSchema, TTypeName$1 extends keyof TSchema$1["object"] & string>(schema: TSchema$1, typeName: TTypeName$1) => FieldSelectionFactories<TSchema$1, TTypeName$1>;
1284
+ declare const createFieldFactories: <TSchema$1 extends AnyGraphqlSchema, TTypeName extends keyof TSchema$1["object"] & string>(schema: TSchema$1, typeName: TTypeName) => FieldSelectionFactories<TSchema$1, TTypeName>;
1243
1285
  //#endregion
1244
- //#region packages/core/src/composer/input.d.ts
1245
- /**
1246
- * Creates variable assignments from provided values.
1247
- *
1248
- * Maps variable definitions to VarRefs. If a value is provided,
1249
- * wraps it as a nested-value VarRef. If not provided, creates
1250
- * an undefined VarRef (field will be omitted).
1251
- *
1252
- * Used when spreading fragments with partial variable values.
1286
+ //#region packages/core/src/graphql/schema-index.d.ts
1287
+ type OperationTypeNames = {
1288
+ query?: string;
1289
+ mutation?: string;
1290
+ subscription?: string;
1291
+ };
1292
+ type ObjectRecord = {
1293
+ readonly name: string;
1294
+ readonly fields: Map<string, FieldDefinitionNode>;
1295
+ directives: ConstDirectiveNode[];
1296
+ };
1297
+ type InputRecord = {
1298
+ readonly name: string;
1299
+ readonly fields: Map<string, InputValueDefinitionNode>;
1300
+ directives: ConstDirectiveNode[];
1301
+ };
1302
+ type EnumRecord = {
1303
+ readonly name: string;
1304
+ readonly values: Map<string, EnumValueDefinitionNode>;
1305
+ directives: ConstDirectiveNode[];
1306
+ };
1307
+ type UnionRecord = {
1308
+ readonly name: string;
1309
+ readonly members: Map<string, NamedTypeNode>;
1310
+ directives: ConstDirectiveNode[];
1311
+ };
1312
+ type ScalarRecord = {
1313
+ readonly name: string;
1314
+ directives: ConstDirectiveNode[];
1315
+ };
1316
+ type DirectiveRecord = {
1317
+ readonly name: string;
1318
+ readonly locations: readonly string[];
1319
+ readonly args: Map<string, InputValueDefinitionNode>;
1320
+ readonly isRepeatable: boolean;
1321
+ };
1322
+ type SchemaIndex = {
1323
+ readonly objects: Map<string, ObjectRecord>;
1324
+ readonly inputs: Map<string, InputRecord>;
1325
+ readonly enums: Map<string, EnumRecord>;
1326
+ readonly unions: Map<string, UnionRecord>;
1327
+ readonly scalars: Map<string, ScalarRecord>;
1328
+ readonly directives: Map<string, DirectiveRecord>;
1329
+ readonly operationTypes: OperationTypeNames;
1330
+ };
1331
+ /** Build a schema index from a parsed GraphQL schema document. */
1332
+ declare const createSchemaIndex: (document: DocumentNode) => SchemaIndex;
1333
+ //#endregion
1334
+ //#region packages/core/src/composer/operation-tagged-template.d.ts
1335
+ /** Options for fragment TemplateResult resolution. */
1336
+ type FragmentTemplateMetadataOptions = {
1337
+ metadata?: unknown | ((context: {
1338
+ $: Readonly<Record<string, unknown>>;
1339
+ }) => unknown | Promise<unknown>);
1340
+ };
1341
+ /** Options for operation TemplateResult resolution — receives full metadata pipeline context. */
1342
+ type OperationTemplateMetadataOptions = {
1343
+ metadata?: unknown | ((context: {
1344
+ $: Readonly<Record<string, unknown>>;
1345
+ document: graphql0.DocumentNode;
1346
+ fragmentMetadata: unknown;
1347
+ schemaLevel: unknown;
1348
+ }) => unknown | Promise<unknown>);
1349
+ };
1350
+ /** @deprecated Use `FragmentTemplateMetadataOptions` or `OperationTemplateMetadataOptions` instead. */
1351
+ type TemplateResultMetadataOptions = FragmentTemplateMetadataOptions;
1352
+ /** Callable result from tagged template - resolves to Operation or Fragment. */
1353
+ type TemplateResult<TElement extends AnyOperationOf<OperationType> | AnyFragment, TOptions = (TElement extends AnyOperationOf<OperationType> ? OperationTemplateMetadataOptions : FragmentTemplateMetadataOptions)> = (options?: TOptions) => TElement;
1354
+ /** Tagged template function type for operations. */
1355
+ type OperationTaggedTemplateFunction<TOperationType$1 extends OperationType = OperationType> = (strings: TemplateStringsArray, ...values: (AnyFragment | ((ctx: {
1356
+ $: Readonly<Record<string, AnyVarRef>>;
1357
+ }) => AnyFieldsExtended))[]) => TemplateResult<AnyOperationOf<TOperationType$1>>;
1358
+ /** Curried operation function type: query("name")`($var: Type!) { fields }` */
1359
+ type CurriedOperationFunction<TOperationType$1 extends OperationType = OperationType> = (operationName: string) => OperationTaggedTemplateFunction<TOperationType$1>;
1360
+ /**
1361
+ * Creates a curried tagged template function for a specific operation type.
1362
+ * New API: `query("name")\`($var: Type!) { fields }\`` returns TemplateResult<Operation>.
1253
1363
  *
1254
- * @internal
1364
+ * @param schema - The GraphQL schema definition
1365
+ * @param operationType - The operation type (query, mutation, subscription)
1366
+ * @param metadataAdapter - Optional metadata adapter for metadata aggregation
1367
+ * @param adapterTransformDocument - Optional document transformer from adapter
1255
1368
  */
1256
- declare const createVarAssignments: <TSchema$1 extends AnyGraphqlSchema, TVariableDefinitions extends VariableDefinitions>(definitions: TVariableDefinitions, providedValues: AnyAssignableInput | void) => DeclaredVariables<TSchema$1, TVariableDefinitions>;
1369
+ declare const createOperationTaggedTemplate: <TSchema$1 extends AnyGraphqlSchema, TOperationType$1 extends OperationType>(schema: TSchema$1, operationType: TOperationType$1, metadataAdapter?: AnyMetadataAdapter, adapterTransformDocument?: DocumentTransformer<any, any>) => CurriedOperationFunction<TOperationType$1>;
1370
+ //#endregion
1371
+ //#region packages/core/src/composer/fragment-tagged-template.d.ts
1372
+ /** Tagged template function type for fragments. */
1373
+ type FragmentTaggedTemplateFunction = (strings: TemplateStringsArray, ...values: (AnyFragment | ((ctx: {
1374
+ $: Readonly<Record<string, AnyVarRef>>;
1375
+ }) => AnyFieldsExtended))[]) => TemplateResult<AnyFragment>;
1257
1376
  /**
1258
- * Creates variable references from variable definitions.
1259
- *
1260
- * Maps each variable definition to a VarRef pointing to that variable.
1261
- * Used in operation builders to create the `$` context object.
1262
- *
1263
- * @internal
1377
+ * Extract variable definitions from Fragment Arguments syntax.
1378
+ * Wraps the argument list in a synthetic query to parse with graphql-js.
1264
1379
  */
1265
- declare const createVarRefs: <TSchema$1 extends AnyGraphqlSchema, TVarDefinitions$1 extends VariableDefinitions>(definitions: TVarDefinitions$1) => DeclaredVariables<TSchema$1, TVarDefinitions$1>;
1266
- //#endregion
1267
- //#region packages/core/src/composer/fragment.d.ts
1380
+ declare function extractFragmentVariables(rawSource: string, schemaIndex: SchemaIndex): VariableDefinitions;
1268
1381
  /**
1269
- * Type alias for a fragment builder function for a specific object type.
1270
- *
1271
- * Used by codegen to generate explicit fragment builder types instead of
1272
- * expensive mapped types. This improves IDE performance for large schemas.
1382
+ * Builds field selections from a GraphQL AST SelectionSet by driving field factories.
1383
+ * Converts parsed AST selections into the AnyFieldsExtended format that the document builder expects.
1384
+ * Also used by typegen for static field extraction from tagged templates.
1273
1385
  */
1274
- type FragmentBuilderFor<TSchema$1 extends AnyGraphqlSchema, TTypeName$1 extends keyof TSchema$1["object"] & string, TAdapter extends AnyMetadataAdapter = DefaultMetadataAdapter> = <TFields$1 extends AnyFieldsExtended, TVarDefinitions$1 extends VariableDefinitions = {}>(options: {
1275
- /** Optional unique key for prebuilt type lookup. */
1276
- key?: string;
1277
- variables?: TVarDefinitions$1;
1278
- metadata?: FragmentMetadataBuilder<ReturnType<typeof createVarRefs<TSchema$1, TVarDefinitions$1>>, ExtractAdapterTypes<TAdapter>["fragmentMetadata"]>;
1279
- fields: FieldsBuilder<TSchema$1, TTypeName$1, TVarDefinitions$1, TFields$1>;
1280
- }) => ReturnType<typeof Fragment.create<TSchema$1, TTypeName$1, TVarDefinitions$1, TFields$1>>;
1386
+ declare function buildFieldsFromSelectionSet(selectionSet: SelectionSetNode, schema: AnyGraphqlSchema, typeName: string, varAssignments?: Readonly<Record<string, AnyVarRef>>, interpolationMap?: ReadonlyMap<string, AnyFragment | ((ctx: {
1387
+ $: Readonly<Record<string, AnyVarRef>>;
1388
+ }) => AnyFieldsExtended)>): AnyFieldsExtended;
1389
+ /** Curried fragment function type: fragment("name", "type")`{ fields }` */
1390
+ type CurriedFragmentFunction = (name: string, typeName: string) => FragmentTaggedTemplateFunction;
1281
1391
  /**
1282
- * Creates fragment builder functions for all object types in the schema.
1283
- *
1284
- * Returns an object with a builder for each type (e.g., `fragment.User`, `fragment.Post`).
1285
- * Each builder creates a `Fragment` that can be spread into operations.
1392
+ * Creates a curried tagged template function for fragments.
1393
+ * New API: `fragment("name", "type")\`{ fields }\`` returns TemplateResult<AnyFragment>.
1286
1394
  *
1287
1395
  * @param schema - The GraphQL schema definition
1288
- * @param _adapter - Optional metadata adapter (for fragment metadata)
1289
- * @returns Object mapping type names to fragment builder functions
1290
- *
1291
- * @internal Used by `createGqlElementComposer`
1292
1396
  */
1293
- declare const createGqlFragmentComposers: <TSchema$1 extends AnyGraphqlSchema, TAdapter extends AnyMetadataAdapter = DefaultMetadataAdapter>(schema: NoInfer<TSchema$1>, _adapter?: TAdapter) => { readonly [TTypeName in keyof TSchema$1["object"]]: TTypeName extends string ? <TFields$1 extends AnyFieldsExtended, TVarDefinitions$1 extends VariableDefinitions = {}>(options: {
1294
- key?: string;
1295
- variables?: TVarDefinitions$1 | undefined;
1296
- metadata?: FragmentMetadataBuilder<DeclaredVariables<TSchema$1, TVarDefinitions$1>, ExtractAdapterTypes<TAdapter>["fragmentMetadata"]> | undefined;
1297
- fields: FieldsBuilder<TSchema$1, TTypeName, TVarDefinitions$1, TFields$1>;
1298
- }) => Fragment<TTypeName, OptionalArg<AssignableInputFromVarDefs<TSchema$1, TVarDefinitions$1>>, TFields$1 & {
1299
- [key: symbol]: never;
1300
- }, InferFieldsExtended<TSchema$1, TTypeName, TFields$1> & {
1301
- [key: symbol]: never;
1302
- }> : never };
1397
+ declare function createFragmentTaggedTemplate<TSchema$1 extends AnyGraphqlSchema>(schema: TSchema$1): CurriedFragmentFunction;
1303
1398
  //#endregion
1304
1399
  //#region packages/core/src/composer/fragment-usage-context.d.ts
1305
1400
  /**
@@ -1382,9 +1477,9 @@ type AssignableDefaultValue<TSchema$1 extends AnyGraphqlSchema, TKind extends Cr
1382
1477
  *
1383
1478
  * Created by `$var.TypeName("modifier", { default?: ... })` calls.
1384
1479
  */
1385
- type GenericVarSpecifier<TKind extends CreatableInputTypeKind, TTypeName$1 extends string, TModifier extends TypeModifier, TDefaultFn extends (() => unknown) | null, TDirectives extends AnyConstDirectiveAttachments> = {
1480
+ type GenericVarSpecifier<TKind extends CreatableInputTypeKind, TTypeName extends string, TModifier extends TypeModifier, TDefaultFn extends (() => unknown) | null, TDirectives extends AnyConstDirectiveAttachments> = {
1386
1481
  kind: TKind;
1387
- name: TTypeName$1;
1482
+ name: TTypeName;
1388
1483
  modifier: TModifier;
1389
1484
  defaultValue: TDefaultFn extends null ? null : {
1390
1485
  default: ReturnType<NonNullable<TDefaultFn>>;
@@ -1397,10 +1492,10 @@ type GenericVarSpecifier<TKind extends CreatableInputTypeKind, TTypeName$1 exten
1397
1492
  *
1398
1493
  * @deprecated Use createVarMethodFactory instead for proper type inference with nested input objects.
1399
1494
  */
1400
- declare const createVarMethod: <TKind extends CreatableInputTypeKind, TTypeName$1 extends string>(kind: TKind, typeName: TTypeName$1) => <TSchema$1 extends AnyGraphqlSchema, const TModifier extends TypeModifier, const TDefaultFn extends (() => AssignableDefaultValue<TSchema$1, TKind, TTypeName$1, TModifier>) | null = null, const TDirectives extends AnyConstDirectiveAttachments = {}>(modifier: TModifier, extras?: {
1401
- default?: TDefaultFn & (() => AssignableDefaultValue<TSchema$1, TKind, TTypeName$1, TModifier>);
1495
+ declare const createVarMethod: <TKind extends CreatableInputTypeKind, TTypeName extends string>(kind: TKind, typeName: TTypeName) => <TSchema$1 extends AnyGraphqlSchema, const TModifier extends TypeModifier, const TDefaultFn extends (() => AssignableDefaultValue<TSchema$1, TKind, TTypeName, TModifier>) | null = null, const TDirectives extends AnyConstDirectiveAttachments = {}>(modifier: TModifier, extras?: {
1496
+ default?: TDefaultFn & (() => AssignableDefaultValue<TSchema$1, TKind, TTypeName, TModifier>);
1402
1497
  directives?: TDirectives;
1403
- }) => GenericVarSpecifier<TKind, TTypeName$1, TModifier, TDefaultFn, TDirectives>;
1498
+ }) => GenericVarSpecifier<TKind, TTypeName, TModifier, TDefaultFn, TDirectives>;
1404
1499
  /**
1405
1500
  * Creates a factory function for generating schema-scoped variable methods.
1406
1501
  * This ensures proper type inference for nested input objects by binding the schema type upfront.
@@ -1414,14 +1509,14 @@ declare const createVarMethod: <TKind extends CreatableInputTypeKind, TTypeName$
1414
1509
  * } satisfies InputTypeMethods<typeof schema>;
1415
1510
  * ```
1416
1511
  */
1417
- declare const createVarMethodFactory: <TSchema$1 extends AnyGraphqlSchema>() => <TKind extends CreatableInputTypeKind, TTypeName$1 extends AllInputTypeNames<TSchema$1>>(kind: TKind, typeName: TTypeName$1) => InputTypeMethod<TSchema$1, TKind, TTypeName$1>;
1512
+ declare const createVarMethodFactory: <TSchema$1 extends AnyGraphqlSchema>() => <TKind extends CreatableInputTypeKind, TTypeName extends AllInputTypeNames<TSchema$1>>(kind: TKind, typeName: TTypeName) => InputTypeMethod<TSchema$1, TKind, TTypeName>;
1418
1513
  /**
1419
1514
  * Type for a single input type method.
1420
1515
  */
1421
- type InputTypeMethod<TSchema$1 extends AnyGraphqlSchema, TKind extends CreatableInputTypeKind, TTypeName$1 extends string> = <const TModifier extends TypeModifier, const TDefaultFn extends (() => AssignableDefaultValue<TSchema$1, TKind, TTypeName$1, TModifier>) | null = null, const TDirectives extends AnyConstDirectiveAttachments = {}>(modifier: TModifier, extras?: {
1422
- default?: TDefaultFn & (() => AssignableDefaultValue<TSchema$1, TKind, TTypeName$1, TModifier>);
1516
+ type InputTypeMethod<TSchema$1 extends AnyGraphqlSchema, TKind extends CreatableInputTypeKind, TTypeName extends string> = <const TModifier extends TypeModifier, const TDefaultFn extends (() => AssignableDefaultValue<TSchema$1, TKind, TTypeName, TModifier>) | null = null, const TDirectives extends AnyConstDirectiveAttachments = {}>(modifier: TModifier, extras?: {
1517
+ default?: TDefaultFn & (() => AssignableDefaultValue<TSchema$1, TKind, TTypeName, TModifier>);
1423
1518
  directives?: TDirectives;
1424
- }) => GenericVarSpecifier<TKind, TTypeName$1, TModifier, TDefaultFn, TDirectives>;
1519
+ }) => GenericVarSpecifier<TKind, TTypeName, TModifier, TDefaultFn, TDirectives>;
1425
1520
  /**
1426
1521
  * Type for all input type methods in a schema.
1427
1522
  */
@@ -1429,10 +1524,10 @@ type InputTypeMethods<TSchema$1 extends AnyGraphqlSchema> = { [TName in AllInput
1429
1524
  /**
1430
1525
  * Type for a wrapped variable method that includes the variable name in the result.
1431
1526
  */
1432
- type WrappedVarMethod<TVarName extends string, TSchema$1 extends AnyGraphqlSchema, TKind extends CreatableInputTypeKind, TTypeName$1 extends string> = <const TModifier extends TypeModifier, const TDefaultFn extends (() => AssignableDefaultValue<TSchema$1, TKind, TTypeName$1, TModifier>) | null = null, const TDirectives extends AnyConstDirectiveAttachments = {}>(modifier: TModifier, extras?: {
1433
- default?: TDefaultFn & (() => AssignableDefaultValue<TSchema$1, TKind, TTypeName$1, TModifier>);
1527
+ type WrappedVarMethod<TVarName extends string, TSchema$1 extends AnyGraphqlSchema, TKind extends CreatableInputTypeKind, TTypeName extends string> = <const TModifier extends TypeModifier, const TDefaultFn extends (() => AssignableDefaultValue<TSchema$1, TKind, TTypeName, TModifier>) | null = null, const TDirectives extends AnyConstDirectiveAttachments = {}>(modifier: TModifier, extras?: {
1528
+ default?: TDefaultFn & (() => AssignableDefaultValue<TSchema$1, TKind, TTypeName, TModifier>);
1434
1529
  directives?: TDirectives;
1435
- }) => { [K in TVarName]: GenericVarSpecifier<TKind, TTypeName$1, TModifier, TDefaultFn, TDirectives> };
1530
+ }) => { [K in TVarName]: GenericVarSpecifier<TKind, TTypeName, TModifier, TDefaultFn, TDirectives> };
1436
1531
  /**
1437
1532
  * Type for the variable builder methods for a specific variable name.
1438
1533
  */
@@ -1532,11 +1627,6 @@ type ExtractHelpers<TAdapter extends AnyAdapter> = TAdapter extends Adapter<infe
1532
1627
  type ExtractMetadataAdapter<TAdapter extends AnyAdapter> = TAdapter extends {
1533
1628
  metadata?: infer M;
1534
1629
  } ? NonNullable<M> extends AnyMetadataAdapter ? NonNullable<M> : DefaultMetadataAdapter : DefaultMetadataAdapter;
1535
- /**
1536
- * Default fragment builders type computed from schema.
1537
- * This is the mapped type that's expensive to compute for large schemas.
1538
- */
1539
- type FragmentBuildersAll<TSchema$1 extends AnyGraphqlSchema, TAdapter extends AnyMetadataAdapter = DefaultMetadataAdapter> = { readonly [TTypeName in keyof TSchema$1["object"]]: TTypeName extends string ? FragmentBuilderFor<TSchema$1, TTypeName, TAdapter> : never };
1540
1630
  /**
1541
1631
  * Configuration options for `createGqlElementComposer`.
1542
1632
  */
@@ -1553,7 +1643,7 @@ type GqlElementComposerOptions<_TSchema extends AnyGraphqlSchema, TDirectiveMeth
1553
1643
  *
1554
1644
  * This is the main entry point for defining GraphQL operations and fragments.
1555
1645
  * The returned function provides a context with:
1556
- * - `fragment`: Builders for each object type
1646
+ * - `fragment`: Tagged template function for fragment definitions
1557
1647
  * - `query/mutation/subscription`: Operation builders
1558
1648
  * - `$var`: Variable definition helpers
1559
1649
  * - `$dir`: Field directive helpers (@skip, @include)
@@ -1581,9 +1671,9 @@ type GqlElementComposerOptions<_TSchema extends AnyGraphqlSchema, TDirectiveMeth
1581
1671
  * );
1582
1672
  * ```
1583
1673
  */
1584
- declare const createGqlElementComposer: <TSchema$1 extends AnyGraphqlSchema, TFragmentBuilders, TDirectiveMethods extends StandardDirectives, TAdapter extends AnyAdapter = DefaultAdapter>(schema: NoInfer<TSchema$1>, options: GqlElementComposerOptions<NoInfer<TSchema$1>, NoInfer<TDirectiveMethods>, NoInfer<TAdapter>>) => GqlElementComposerWithSchema<{
1585
- fragment: TFragmentBuilders;
1586
- query: {
1674
+ declare const createGqlElementComposer: <TSchema$1 extends AnyGraphqlSchema, TDirectiveMethods extends StandardDirectives, TAdapter extends AnyAdapter = DefaultAdapter>(schema: NoInfer<TSchema$1>, options: GqlElementComposerOptions<NoInfer<TSchema$1>, NoInfer<TDirectiveMethods>, NoInfer<TAdapter>>) => GqlElementComposerWithSchema<{
1675
+ fragment: CurriedFragmentFunction;
1676
+ query: CurriedOperationFunction<"query"> & {
1587
1677
  operation: <TOperationName$1 extends string, TFields$1 extends AnyFieldsExtended, TVarDefinitions$1 extends VariableDefinitions = {}, TOperationMetadata = unknown>(options: {
1588
1678
  name: TOperationName$1;
1589
1679
  variables?: TVarDefinitions$1 | undefined;
@@ -1591,9 +1681,9 @@ declare const createGqlElementComposer: <TSchema$1 extends AnyGraphqlSchema, TFr
1591
1681
  fields: FieldsBuilder<TSchema$1, TSchema$1["operations"]["query"] & keyof TSchema$1["object"] & string, TVarDefinitions$1, TFields$1>;
1592
1682
  transformDocument?: OperationDocumentTransformer<TOperationMetadata> | undefined;
1593
1683
  }) => Operation<"query", TOperationName$1, (keyof TVarDefinitions$1 & string)[], ConstAssignableInputFromVarDefs<TSchema$1, TVarDefinitions$1>, TFields$1, InferFieldsExtended<TSchema$1, TSchema$1["operations"]["query"] & keyof TSchema$1["object"] & string, TFields$1>>;
1594
- compat: <TOperationName$1 extends string, TFields_1 extends AnyFields, TVarDefinitions_1 extends VariableDefinitions = {}>(options: CompatOptions<TSchema$1, TSchema$1["operations"]["query"] & keyof TSchema$1["object"] & string, TOperationName$1, TVarDefinitions_1, TFields_1>) => GqlDefine<CompatSpec<TSchema$1, "query", TOperationName$1, TVarDefinitions_1, TFields_1>>;
1684
+ compat: CurriedCompatFunction;
1595
1685
  };
1596
- mutation: {
1686
+ mutation: CurriedOperationFunction<"mutation"> & {
1597
1687
  operation: <TOperationName$1 extends string, TFields$1 extends AnyFieldsExtended, TVarDefinitions$1 extends VariableDefinitions = {}, TOperationMetadata = unknown>(options: {
1598
1688
  name: TOperationName$1;
1599
1689
  variables?: TVarDefinitions$1 | undefined;
@@ -1601,9 +1691,9 @@ declare const createGqlElementComposer: <TSchema$1 extends AnyGraphqlSchema, TFr
1601
1691
  fields: FieldsBuilder<TSchema$1, TSchema$1["operations"]["mutation"] & keyof TSchema$1["object"] & string, TVarDefinitions$1, TFields$1>;
1602
1692
  transformDocument?: OperationDocumentTransformer<TOperationMetadata> | undefined;
1603
1693
  }) => Operation<"mutation", TOperationName$1, (keyof TVarDefinitions$1 & string)[], ConstAssignableInputFromVarDefs<TSchema$1, TVarDefinitions$1>, TFields$1, InferFieldsExtended<TSchema$1, TSchema$1["operations"]["mutation"] & keyof TSchema$1["object"] & string, TFields$1>>;
1604
- compat: <TOperationName$1 extends string, TFields_1 extends AnyFields, TVarDefinitions_1 extends VariableDefinitions = {}>(options: CompatOptions<TSchema$1, TSchema$1["operations"]["mutation"] & keyof TSchema$1["object"] & string, TOperationName$1, TVarDefinitions_1, TFields_1>) => GqlDefine<CompatSpec<TSchema$1, "mutation", TOperationName$1, TVarDefinitions_1, TFields_1>>;
1694
+ compat: CurriedCompatFunction;
1605
1695
  };
1606
- subscription: {
1696
+ subscription: CurriedOperationFunction<"subscription"> & {
1607
1697
  operation: <TOperationName$1 extends string, TFields$1 extends AnyFieldsExtended, TVarDefinitions$1 extends VariableDefinitions = {}, TOperationMetadata = unknown>(options: {
1608
1698
  name: TOperationName$1;
1609
1699
  variables?: TVarDefinitions$1 | undefined;
@@ -1611,10 +1701,10 @@ declare const createGqlElementComposer: <TSchema$1 extends AnyGraphqlSchema, TFr
1611
1701
  fields: FieldsBuilder<TSchema$1, TSchema$1["operations"]["subscription"] & keyof TSchema$1["object"] & string, TVarDefinitions$1, TFields$1>;
1612
1702
  transformDocument?: OperationDocumentTransformer<TOperationMetadata> | undefined;
1613
1703
  }) => Operation<"subscription", TOperationName$1, (keyof TVarDefinitions$1 & string)[], ConstAssignableInputFromVarDefs<TSchema$1, TVarDefinitions$1>, TFields$1, InferFieldsExtended<TSchema$1, TSchema$1["operations"]["subscription"] & keyof TSchema$1["object"] & string, TFields$1>>;
1614
- compat: <TOperationName$1 extends string, TFields_1 extends AnyFields, TVarDefinitions_1 extends VariableDefinitions = {}>(options: CompatOptions<TSchema$1, TSchema$1["operations"]["subscription"] & keyof TSchema$1["object"] & string, TOperationName$1, TVarDefinitions_1, TFields_1>) => GqlDefine<CompatSpec<TSchema$1, "subscription", TOperationName$1, TVarDefinitions_1, TFields_1>>;
1704
+ compat: CurriedCompatFunction;
1615
1705
  };
1616
1706
  define: <TValue$1>(factory: () => TValue$1 | Promise<TValue$1>) => GqlDefine<TValue$1>;
1617
- extend: <TOperationType$1 extends OperationType, TOperationName$1 extends string, TVarDefinitions_2 extends VariableDefinitions, TFields_2 extends AnyFields, TOperationMetadata_1 = unknown>(compat: GqlDefine<CompatSpec<TSchema$1, TOperationType$1, TOperationName$1, TVarDefinitions_2, TFields_2>>, options?: ExtendOptions<TSchema$1, TVarDefinitions_2, TOperationMetadata_1, ExtractAdapterTypes<ExtractMetadataAdapter<TAdapter>>["aggregatedFragmentMetadata"], ExtractAdapterTypes<ExtractMetadataAdapter<TAdapter>>["schemaLevel"]> | undefined) => Operation<TOperationType$1, TOperationName$1, (keyof TVarDefinitions_2 & string)[], ConstAssignableInputFromVarDefs<TSchema$1, TVarDefinitions_2>, TFields_2, InferFieldsExtended<TSchema$1, TSchema$1["operations"][TOperationType$1] & keyof TSchema$1["object"] & string, TFields_2>>;
1707
+ extend: <TOperationType$1 extends OperationType, TOperationName$1 extends string, TVarDefinitions_1 extends VariableDefinitions, TFields_1 extends AnyFields, TOperationMetadata_1 = unknown>(compat: GqlDefine<TemplateCompatSpec> | GqlDefine<CompatSpec<TSchema$1, TOperationType$1, TOperationName$1, TVarDefinitions_1, TFields_1>>, options?: ExtendOptions<TSchema$1, TVarDefinitions_1, TOperationMetadata_1, ExtractAdapterTypes<ExtractMetadataAdapter<TAdapter>>["aggregatedFragmentMetadata"], ExtractAdapterTypes<ExtractMetadataAdapter<TAdapter>>["schemaLevel"]> | undefined) => any;
1618
1708
  $var: VarBuilder<TSchema$1>;
1619
1709
  $dir: TDirectiveMethods;
1620
1710
  $colocate: <TEntries extends ColocatedEntries>(entries: TEntries) => ColocatedFields<TEntries>;
@@ -1629,16 +1719,16 @@ declare const createGqlElementComposer: <TSchema$1 extends AnyGraphqlSchema, TFr
1629
1719
  * the Context type.
1630
1720
  */
1631
1721
  type AnyGqlContext = {
1632
- readonly fragment: Record<string, unknown>;
1633
- readonly query: {
1722
+ readonly fragment: (...args: unknown[]) => unknown;
1723
+ readonly query: ((...args: unknown[]) => unknown) & {
1634
1724
  operation: (...args: unknown[]) => AnyOperation;
1635
1725
  compat: (...args: unknown[]) => AnyGqlDefine;
1636
1726
  };
1637
- readonly mutation: {
1727
+ readonly mutation: ((...args: unknown[]) => unknown) & {
1638
1728
  operation: (...args: unknown[]) => AnyOperation;
1639
1729
  compat: (...args: unknown[]) => AnyGqlDefine;
1640
1730
  };
1641
- readonly subscription: {
1731
+ readonly subscription: ((...args: unknown[]) => unknown) & {
1642
1732
  operation: (...args: unknown[]) => AnyOperation;
1643
1733
  compat: (...args: unknown[]) => AnyGqlDefine;
1644
1734
  };
@@ -1650,6 +1740,29 @@ type AnyGqlContext = {
1650
1740
  readonly [key: string]: unknown;
1651
1741
  };
1652
1742
  //#endregion
1743
+ //#region packages/core/src/composer/input.d.ts
1744
+ /**
1745
+ * Creates variable assignments from provided values.
1746
+ *
1747
+ * Maps variable definitions to VarRefs. If a value is provided,
1748
+ * wraps it as a nested-value VarRef. If not provided, creates
1749
+ * an undefined VarRef (field will be omitted).
1750
+ *
1751
+ * Used when spreading fragments with partial variable values.
1752
+ *
1753
+ * @internal
1754
+ */
1755
+ declare const createVarAssignments: <TSchema$1 extends AnyGraphqlSchema, TVariableDefinitions extends VariableDefinitions>(definitions: TVariableDefinitions, providedValues: AnyAssignableInput | void) => DeclaredVariables<TSchema$1, TVariableDefinitions>;
1756
+ /**
1757
+ * Creates variable references from variable definitions.
1758
+ *
1759
+ * Maps each variable definition to a VarRef pointing to that variable.
1760
+ * Used in operation builders to create the `$` context object.
1761
+ *
1762
+ * @internal
1763
+ */
1764
+ declare const createVarRefs: <TSchema$1 extends AnyGraphqlSchema, TVarDefinitions$1 extends VariableDefinitions>(definitions: TVarDefinitions$1) => DeclaredVariables<TSchema$1, TVarDefinitions$1>;
1765
+ //#endregion
1653
1766
  //#region packages/core/src/composer/operation.d.ts
1654
1767
  /**
1655
1768
  * Creates a factory for composing GraphQL operations.
@@ -1677,21 +1790,52 @@ declare const createOperationComposerFactory: <TSchema$1 extends AnyGraphqlSchem
1677
1790
  //#endregion
1678
1791
  //#region packages/core/src/composer/operation-core.d.ts
1679
1792
  /**
1680
- * Parameters for building an operation artifact.
1681
- * Used by both operation and extend composers.
1793
+ * Shared base parameters for building an operation artifact.
1794
+ * @internal
1682
1795
  */
1683
- type OperationCoreParams<TSchema$1 extends AnyGraphqlSchema, TOperationType$1 extends OperationType, TOperationName$1 extends string, TVarDefinitions$1 extends VariableDefinitions, TFields$1 extends AnyFieldsExtended, TOperationMetadata, TAdapter extends AnyMetadataAdapter> = {
1796
+ type OperationCoreParamsBase<TSchema$1 extends AnyGraphqlSchema, TOperationType$1 extends OperationType, TOperationName$1 extends string, TVarDefinitions$1 extends VariableDefinitions, TOperationMetadata, TAdapter extends AnyMetadataAdapter> = {
1684
1797
  readonly schema: TSchema$1;
1685
1798
  readonly operationType: TOperationType$1;
1686
1799
  readonly operationTypeName: TSchema$1["operations"][TOperationType$1] & keyof TSchema$1["object"] & string;
1687
1800
  readonly operationName: TOperationName$1;
1688
1801
  readonly variables: TVarDefinitions$1;
1689
- readonly fieldsFactory: FieldsBuilder<TSchema$1, TSchema$1["operations"][TOperationType$1] & keyof TSchema$1["object"] & string, TVarDefinitions$1, TFields$1>;
1690
1802
  readonly adapter: TAdapter;
1691
1803
  readonly metadata?: MetadataBuilder<DeclaredVariables<TSchema$1, TVarDefinitions$1>, TOperationMetadata, ExtractAdapterTypes<TAdapter>["aggregatedFragmentMetadata"], ExtractAdapterTypes<TAdapter>["schemaLevel"]>;
1692
1804
  readonly transformDocument?: OperationDocumentTransformer<TOperationMetadata>;
1693
1805
  readonly adapterTransformDocument?: DocumentTransformer<ExtractAdapterTypes<TAdapter>["schemaLevel"], ExtractAdapterTypes<TAdapter>["aggregatedFragmentMetadata"]>;
1694
1806
  };
1807
+ /**
1808
+ * Field factory mode: evaluates fields and builds document at runtime.
1809
+ * @internal
1810
+ */
1811
+ type FieldsFactoryParams<TSchema$1 extends AnyGraphqlSchema, TOperationType$1 extends OperationType, TOperationName$1 extends string, TVarDefinitions$1 extends VariableDefinitions, TFields$1 extends AnyFieldsExtended, TOperationMetadata, TAdapter extends AnyMetadataAdapter> = OperationCoreParamsBase<TSchema$1, TOperationType$1, TOperationName$1, TVarDefinitions$1, TOperationMetadata, TAdapter> & {
1812
+ readonly mode: "fieldsFactory";
1813
+ readonly fieldsFactory: FieldsBuilder<TSchema$1, TSchema$1["operations"][TOperationType$1] & keyof TSchema$1["object"] & string, TVarDefinitions$1, TFields$1>;
1814
+ readonly prebuiltDocument?: never;
1815
+ readonly prebuiltVariableNames?: never;
1816
+ };
1817
+ /**
1818
+ * Pre-built document mode: uses pre-parsed DocumentNode directly.
1819
+ * Fragment usages are empty (GraphQL-level fragment spreads in the AST
1820
+ * don't participate in soda-gql metadata pipeline).
1821
+ * @internal
1822
+ */
1823
+ type PrebuiltDocumentParams<TSchema$1 extends AnyGraphqlSchema, TOperationType$1 extends OperationType, TOperationName$1 extends string, TVarDefinitions$1 extends VariableDefinitions, TFields$1 extends AnyFieldsExtended, TOperationMetadata, TAdapter extends AnyMetadataAdapter> = OperationCoreParamsBase<TSchema$1, TOperationType$1, TOperationName$1, TVarDefinitions$1, TOperationMetadata, TAdapter> & {
1824
+ readonly mode: "prebuilt";
1825
+ readonly prebuiltDocument: graphql0.DocumentNode;
1826
+ readonly prebuiltVariableNames?: string[];
1827
+ readonly fieldsFactory?: never;
1828
+ };
1829
+ /**
1830
+ * Parameters for building an operation artifact.
1831
+ * Used by both operation and extend composers.
1832
+ *
1833
+ * Discriminated union of two mutually exclusive modes:
1834
+ * - **Field factory mode**: Uses `fieldsFactory` to evaluate fields and build document.
1835
+ * - **Pre-built document mode**: Uses `prebuiltDocument` and `prebuiltVariableNames` to skip
1836
+ * field evaluation and document building.
1837
+ */
1838
+ type OperationCoreParams<TSchema$1 extends AnyGraphqlSchema, TOperationType$1 extends OperationType, TOperationName$1 extends string, TVarDefinitions$1 extends VariableDefinitions, TFields$1 extends AnyFieldsExtended, TOperationMetadata, TAdapter extends AnyMetadataAdapter> = FieldsFactoryParams<TSchema$1, TOperationType$1, TOperationName$1, TVarDefinitions$1, TFields$1, TOperationMetadata, TAdapter> | PrebuiltDocumentParams<TSchema$1, TOperationType$1, TOperationName$1, TVarDefinitions$1, TFields$1, TOperationMetadata, TAdapter>;
1695
1839
  /**
1696
1840
  * Result type from buildOperationArtifact.
1697
1841
  * Matches the artifact shape expected by Operation.create().
@@ -1718,9 +1862,357 @@ type OperationArtifactResult<TOperationType$1 extends OperationType, TOperationN
1718
1862
  * @param params - Operation building parameters
1719
1863
  * @returns Operation artifact or Promise of artifact (if async metadata)
1720
1864
  *
1721
- * @internal Used by operation.ts and extend.ts
1865
+ * @internal Used by operation.ts, extend.ts, and operation-tagged-template.ts
1722
1866
  */
1723
1867
  declare const buildOperationArtifact: <TSchema$1 extends AnyGraphqlSchema, TOperationType$1 extends OperationType, TOperationName$1 extends string, TVarDefinitions$1 extends VariableDefinitions, TFields$1 extends AnyFieldsExtended, TOperationMetadata, TAdapter extends AnyMetadataAdapter>(params: OperationCoreParams<TSchema$1, TOperationType$1, TOperationName$1, TVarDefinitions$1, TFields$1, TOperationMetadata, TAdapter>) => OperationArtifactResult<TOperationType$1, TOperationName$1, TVarDefinitions$1, TFields$1, TOperationMetadata> | Promise<OperationArtifactResult<TOperationType$1, TOperationName$1, TVarDefinitions$1, TFields$1, TOperationMetadata>>;
1868
+ /**
1869
+ * Wraps a buildOperationArtifact call into an Operation.create() invocation,
1870
+ * handling both sync and async artifact results.
1871
+ *
1872
+ * @param artifactFactory - Factory that produces the artifact (may return Promise for async metadata)
1873
+ * @param overrideDocumentSource - When true, overrides documentSource to return empty object.
1874
+ * Required for pre-built document mode where fields = {} and the real documentSource is meaningless.
1875
+ * Must be false for fieldsFactory mode to preserve real field selections.
1876
+ *
1877
+ * @internal Used by extend.ts and operation-tagged-template.ts
1878
+ */
1879
+ declare const wrapArtifactAsOperation: <TOperationType$1 extends OperationType>(artifactFactory: () => OperationArtifactResult<TOperationType$1, string, VariableDefinitions, AnyFieldsExtended, unknown> | Promise<OperationArtifactResult<TOperationType$1, string, VariableDefinitions, AnyFieldsExtended, unknown>>, overrideDocumentSource: boolean) => AnyOperationOf<TOperationType$1>;
1880
+ //#endregion
1881
+ //#region packages/core/src/graphql/fragment-args-preprocessor.d.ts
1882
+ /**
1883
+ * Preprocessor for Fragment Arguments RFC syntax.
1884
+ *
1885
+ * Strips fragment argument declarations and spread arguments by replacing
1886
+ * them with equal-length whitespace to preserve line/column alignment.
1887
+ *
1888
+ * @module
1889
+ */
1890
+ /** Result of fragment arguments preprocessing. */
1891
+ type PreprocessResult = {
1892
+ /** Content with Fragment Arguments syntax replaced by whitespace. */
1893
+ readonly preprocessed: string;
1894
+ /** Whether any preprocessing was applied. */
1895
+ readonly modified: boolean;
1896
+ };
1897
+ /**
1898
+ * Preprocess Fragment Arguments RFC syntax by replacing argument lists with spaces.
1899
+ *
1900
+ * Transforms:
1901
+ * - `fragment UserProfile($showEmail: Boolean = false) on User` -> `fragment UserProfile on User`
1902
+ * - `...UserProfile(showEmail: true)` -> `...UserProfile `
1903
+ */
1904
+ declare const preprocessFragmentArgs: (content: string) => PreprocessResult;
1905
+ //#endregion
1906
+ //#region packages/core/src/graphql/result.d.ts
1907
+ /**
1908
+ * Self-contained Result type for GraphQL parser utilities.
1909
+ * Avoids neverthrow dependency in @soda-gql/core.
1910
+ * @module
1911
+ */
1912
+ /** Discriminated union: ok=true carries value, ok=false carries error */
1913
+ type Result<T, E> = OkResult<T> | ErrResult<E>;
1914
+ type OkResult<T> = {
1915
+ readonly ok: true;
1916
+ readonly value: T;
1917
+ };
1918
+ type ErrResult<E> = {
1919
+ readonly ok: false;
1920
+ readonly error: E;
1921
+ };
1922
+ /** Create a successful Result */
1923
+ declare const ok: <T>(value: T) => OkResult<T>;
1924
+ /** Create a failed Result */
1925
+ declare const err: <E>(error: E) => ErrResult<E>;
1926
+ //#endregion
1927
+ //#region packages/core/src/graphql/types.d.ts
1928
+ /**
1929
+ * Parsed GraphQL operation (query, mutation, subscription).
1930
+ */
1931
+ type ParsedOperation = {
1932
+ readonly kind: "query" | "mutation" | "subscription";
1933
+ readonly name: string;
1934
+ readonly variables: readonly ParsedVariable[];
1935
+ readonly selections: readonly ParsedSelection[];
1936
+ readonly sourceFile: string;
1937
+ };
1938
+ /**
1939
+ * Parsed GraphQL fragment definition.
1940
+ */
1941
+ type ParsedFragment = {
1942
+ readonly name: string;
1943
+ readonly onType: string;
1944
+ readonly selections: readonly ParsedSelection[];
1945
+ readonly sourceFile: string;
1946
+ };
1947
+ /**
1948
+ * Type information consisting of base type name and modifier.
1949
+ */
1950
+ type TypeInfo = {
1951
+ readonly typeName: string;
1952
+ readonly modifier: string;
1953
+ };
1954
+ /**
1955
+ * Inferred variable from fragment field arguments.
1956
+ */
1957
+ type InferredVariable = {
1958
+ readonly name: string;
1959
+ readonly typeName: string;
1960
+ readonly modifier: string;
1961
+ readonly typeKind: "scalar" | "enum" | "input";
1962
+ };
1963
+ /**
1964
+ * Parsed variable definition from a GraphQL operation.
1965
+ */
1966
+ type ParsedVariable = {
1967
+ readonly name: string;
1968
+ readonly typeName: string;
1969
+ readonly modifier: string;
1970
+ readonly typeKind: "scalar" | "enum" | "input";
1971
+ readonly defaultValue?: ParsedValue;
1972
+ };
1973
+ /**
1974
+ * Parsed selection from a SelectionSet.
1975
+ */
1976
+ type ParsedSelection = ParsedFieldSelection | ParsedFragmentSpread | ParsedInlineFragment;
1977
+ /**
1978
+ * Parsed field selection.
1979
+ */
1980
+ type ParsedFieldSelection = {
1981
+ readonly kind: "field";
1982
+ readonly name: string;
1983
+ readonly alias?: string;
1984
+ readonly arguments?: readonly ParsedArgument[];
1985
+ readonly selections?: readonly ParsedSelection[];
1986
+ };
1987
+ /**
1988
+ * Parsed fragment spread (...FragmentName).
1989
+ */
1990
+ type ParsedFragmentSpread = {
1991
+ readonly kind: "fragmentSpread";
1992
+ readonly name: string;
1993
+ };
1994
+ /**
1995
+ * Parsed inline fragment (... on Type { }).
1996
+ */
1997
+ type ParsedInlineFragment = {
1998
+ readonly kind: "inlineFragment";
1999
+ readonly onType: string;
2000
+ readonly selections: readonly ParsedSelection[];
2001
+ };
2002
+ /**
2003
+ * Parsed argument for a field.
2004
+ */
2005
+ type ParsedArgument = {
2006
+ readonly name: string;
2007
+ readonly value: ParsedValue;
2008
+ };
2009
+ /**
2010
+ * Parsed value (can be literal or variable reference).
2011
+ */
2012
+ type ParsedValue = {
2013
+ readonly kind: "variable";
2014
+ readonly name: string;
2015
+ } | {
2016
+ readonly kind: "int";
2017
+ readonly value: string;
2018
+ } | {
2019
+ readonly kind: "float";
2020
+ readonly value: string;
2021
+ } | {
2022
+ readonly kind: "string";
2023
+ readonly value: string;
2024
+ } | {
2025
+ readonly kind: "boolean";
2026
+ readonly value: boolean;
2027
+ } | {
2028
+ readonly kind: "null";
2029
+ } | {
2030
+ readonly kind: "enum";
2031
+ readonly value: string;
2032
+ } | {
2033
+ readonly kind: "list";
2034
+ readonly values: readonly ParsedValue[];
2035
+ } | {
2036
+ readonly kind: "object";
2037
+ readonly fields: readonly ParsedObjectField[];
2038
+ };
2039
+ /**
2040
+ * Parsed object field in an object value.
2041
+ */
2042
+ type ParsedObjectField = {
2043
+ readonly name: string;
2044
+ readonly value: ParsedValue;
2045
+ };
2046
+ /**
2047
+ * Result of parsing a GraphQL source.
2048
+ */
2049
+ type ParseResult = {
2050
+ readonly document: DocumentNode;
2051
+ readonly operations: readonly ParsedOperation[];
2052
+ readonly fragments: readonly ParsedFragment[];
2053
+ };
2054
+ /**
2055
+ * Error types for GraphQL analysis operations.
2056
+ */
2057
+ type GraphqlAnalysisError = {
2058
+ readonly code: "GRAPHQL_FILE_NOT_FOUND";
2059
+ readonly message: string;
2060
+ readonly filePath: string;
2061
+ } | {
2062
+ readonly code: "GRAPHQL_PARSE_ERROR";
2063
+ readonly message: string;
2064
+ readonly filePath: string;
2065
+ readonly line?: number;
2066
+ readonly column?: number;
2067
+ } | {
2068
+ readonly code: "GRAPHQL_INVALID_OPERATION";
2069
+ readonly message: string;
2070
+ readonly operationName?: string;
2071
+ } | {
2072
+ readonly code: "GRAPHQL_UNKNOWN_TYPE";
2073
+ readonly message: string;
2074
+ readonly typeName: string;
2075
+ } | {
2076
+ readonly code: "GRAPHQL_FRAGMENT_NOT_FOUND";
2077
+ readonly message: string;
2078
+ readonly fragmentName: string;
2079
+ } | {
2080
+ readonly code: "GRAPHQL_OUTPUT_ERROR";
2081
+ readonly message: string;
2082
+ readonly outputPath: string;
2083
+ } | {
2084
+ readonly code: "GRAPHQL_INLINE_FRAGMENT_ON_INTERFACE";
2085
+ readonly message: string;
2086
+ readonly onType: string;
2087
+ } | {
2088
+ readonly code: "GRAPHQL_UNDECLARED_VARIABLE";
2089
+ readonly message: string;
2090
+ readonly variableName: string;
2091
+ } | {
2092
+ readonly code: "GRAPHQL_INLINE_FRAGMENT_WITHOUT_TYPE";
2093
+ readonly message: string;
2094
+ } | {
2095
+ readonly code: "GRAPHQL_VARIABLE_TYPE_MISMATCH";
2096
+ readonly message: string;
2097
+ readonly variableName: string;
2098
+ } | {
2099
+ readonly code: "GRAPHQL_VARIABLE_MODIFIER_INCOMPATIBLE";
2100
+ readonly message: string;
2101
+ readonly variableName: string;
2102
+ } | {
2103
+ readonly code: "GRAPHQL_FRAGMENT_CIRCULAR_DEPENDENCY";
2104
+ readonly message: string;
2105
+ readonly fragmentNames: readonly string[];
2106
+ } | {
2107
+ readonly code: "GRAPHQL_UNKNOWN_FIELD";
2108
+ readonly message: string;
2109
+ readonly typeName: string;
2110
+ readonly fieldName: string;
2111
+ } | {
2112
+ readonly code: "GRAPHQL_UNKNOWN_ARGUMENT";
2113
+ readonly message: string;
2114
+ readonly fieldName: string;
2115
+ readonly argumentName: string;
2116
+ };
2117
+ //#endregion
2118
+ //#region packages/core/src/graphql/parser.d.ts
2119
+ /** Parse GraphQL source string directly. No file I/O. */
2120
+ declare const parseGraphqlSource: (source: string, sourceFile: string) => Result<ParseResult, GraphqlAnalysisError>;
2121
+ /**
2122
+ * Parse a GraphQL TypeNode into type name and modifier.
2123
+ *
2124
+ * Format: inner nullability + list modifiers
2125
+ * - Inner: `!` (non-null) or `?` (nullable)
2126
+ * - List: `[]!` (non-null list) or `[]?` (nullable list)
2127
+ */
2128
+ declare const parseTypeNode: (node: TypeNode) => TypeInfo;
2129
+ //#endregion
2130
+ //#region packages/core/src/graphql/schema-adapter.d.ts
2131
+ /**
2132
+ * Create a minimal SchemaIndex from AnyGraphqlSchema.
2133
+ *
2134
+ * IMPORTANT: This adapter produces a "name-resolution only" SchemaIndex.
2135
+ * Only the name-level Maps are populated (.has() lookups work).
2136
+ * Field-level data (FieldDefinitionNode, InputValueDefinitionNode, etc.)
2137
+ * is NOT populated -- those Maps are empty.
2138
+ *
2139
+ * Use this when you need SchemaIndex for type kind resolution only
2140
+ * (e.g., buildVarSpecifier). For full SchemaIndex with field-level data,
2141
+ * use createSchemaIndex(DocumentNode) from schema-index.ts.
2142
+ */
2143
+ declare const createSchemaIndexFromSchema: (schema: AnyGraphqlSchema) => SchemaIndex;
2144
+ //#endregion
2145
+ //#region packages/core/src/graphql/transformer.d.ts
2146
+ declare const isModifierAssignable: (source: string, target: string) => boolean;
2147
+ declare const mergeModifiers: (a: string, b: string) => {
2148
+ ok: true;
2149
+ value: string;
2150
+ } | {
2151
+ ok: false;
2152
+ reason: string;
2153
+ };
2154
+ type VariableUsage = {
2155
+ readonly name: string;
2156
+ readonly typeName: string;
2157
+ readonly expectedModifier: string;
2158
+ readonly minimumModifier: string;
2159
+ readonly typeKind: "scalar" | "enum" | "input";
2160
+ };
2161
+ declare const getArgumentType: (schema: SchemaIndex, parentTypeName: string, fieldName: string, argumentName: string) => TypeInfo | null;
2162
+ declare const getInputFieldType: (schema: SchemaIndex, inputTypeName: string, fieldName: string) => TypeInfo | null;
2163
+ declare const collectVariableUsages: (selections: readonly ParsedSelection[], parentTypeName: string, schema: SchemaIndex) => Result<VariableUsage[], GraphqlAnalysisError>;
2164
+ declare const getFieldReturnType: (schema: SchemaIndex, parentTypeName: string, fieldName: string) => string | null;
2165
+ declare const mergeVariableUsages: (variableName: string, usages: readonly VariableUsage[]) => Result<InferredVariable, GraphqlAnalysisError>;
2166
+ declare const inferVariablesFromUsages: (usages: readonly VariableUsage[]) => Result<InferredVariable[], GraphqlAnalysisError>;
2167
+ declare const sortFragmentsByDependency: (fragments: readonly ParsedFragment[]) => Result<ParsedFragment[], GraphqlAnalysisError>;
2168
+ type EnrichedOperation = Omit<ParsedOperation, "variables"> & {
2169
+ readonly variables: readonly EnrichedVariable[];
2170
+ readonly fragmentDependencies: readonly string[];
2171
+ };
2172
+ type EnrichedFragment = ParsedFragment & {
2173
+ readonly fragmentDependencies: readonly string[];
2174
+ readonly variables: readonly InferredVariable[];
2175
+ };
2176
+ type EnrichedVariable = Omit<ParsedVariable, "typeKind"> & {
2177
+ readonly typeKind: "scalar" | "enum" | "input";
2178
+ };
2179
+ type TransformResult = {
2180
+ readonly operations: readonly EnrichedOperation[];
2181
+ readonly fragments: readonly EnrichedFragment[];
2182
+ };
2183
+ type TransformOptions = {
2184
+ readonly schemaDocument: DocumentNode;
2185
+ };
2186
+ declare const transformParsedGraphql: (parsed: ParseResult, options: TransformOptions) => Result<TransformResult, GraphqlAnalysisError>;
2187
+ //#endregion
2188
+ //#region packages/core/src/graphql/var-specifier-builder.d.ts
2189
+ /**
2190
+ * Runtime VarSpecifier shape produced by this builder.
2191
+ * Compatible with GenericVarSpecifier from var-builder.ts.
2192
+ */
2193
+ type BuiltVarSpecifier = {
2194
+ readonly kind: "scalar" | "enum" | "input";
2195
+ readonly name: string;
2196
+ readonly modifier: string;
2197
+ readonly defaultValue: null | {
2198
+ readonly default: unknown;
2199
+ };
2200
+ readonly directives: Record<string, never>;
2201
+ };
2202
+ /**
2203
+ * Convert a VariableDefinitionNode to a VarSpecifier.
2204
+ * Resolves `kind` (scalar/enum/input) from the schema index.
2205
+ *
2206
+ * @throws Error if type name cannot be resolved in schema
2207
+ */
2208
+ declare const buildVarSpecifier: (node: VariableDefinitionNode, schema: SchemaIndex) => BuiltVarSpecifier;
2209
+ /**
2210
+ * Convert all variable definitions from a list of VariableDefinitionNodes
2211
+ * into a record keyed by variable name.
2212
+ *
2213
+ * @throws Error if any type name cannot be resolved in schema
2214
+ */
2215
+ declare const buildVarSpecifiers: (nodes: readonly VariableDefinitionNode[], schema: SchemaIndex) => Record<string, BuiltVarSpecifier>;
1724
2216
  //#endregion
1725
2217
  //#region packages/core/src/prebuilt/type-calculator.d.ts
1726
2218
  /**
@@ -1905,8 +2397,8 @@ type PrebuiltTypeRegistry = {
1905
2397
  * Empty registry type for when no prebuilt types are available.
1906
2398
  */
1907
2399
  type EmptyPrebuiltTypeRegistry = {
1908
- readonly fragments: Record<string, never>;
1909
- readonly operations: Record<string, never>;
2400
+ readonly fragments: {};
2401
+ readonly operations: {};
1910
2402
  };
1911
2403
  /**
1912
2404
  * Extract the input type for a fragment from the registry.
@@ -1966,5 +2458,5 @@ type Hidden<T> = () => T;
1966
2458
  //#region packages/core/src/utils/wrap-by-key.d.ts
1967
2459
  declare function wrapByKey<TName$1 extends string, TValue$1>(name: TName$1, value: TValue$1): { [K in TName$1]: TValue$1 };
1968
2460
  //#endregion
1969
- export { FragmentBuilderFor as $, ConstAssignableInputValue as $n, SwitchIfOmittable as $t, createOperationComposerFactory as A, AnyNestedUnion as An, GqlElementAttachment as At, InputTypeMethod as B, AnyAssignableInputValue as Bn, FieldSelectionFactoryFieldArguments as Bt, getEnumType as C, AbstractFieldSelection as Cn, AnyFragment as Ct, OperationArtifactResult as D, AnyFieldsExtended as Dn, DefineInferMeta as Dt, graphqlTypeToTypeScript as E, AnyFields as En, AnyGqlDefine as Et, GqlElementComposerOptions as F, InferFieldsExtended as Fn, ExtractCompatSpec as Ft, VarBuilder as G, DeclaredVariables as Gn, FieldsBuilder as Gt, ResolveTypeFromMeta as H, AssignableInput as Hn, FieldSelectionFactoryPrimitiveReturn as Ht, GqlElementComposerWithSchema as I, ScalarShorthand as In, AnyFieldSelectionFactory as It, createVarMethod as J, AnyConstDirectiveAttachments as Jn, NestedObjectFieldsBuilderTools as Jt, VarBuilderMethods as K, FieldArgumentValue as Kn, FieldsBuilderTools as Kt, createGqlElementComposer as L, UnionSelection as Ln, AnyFieldSelectionFactoryReturn as Lt, ExtractMetadataAdapter as M, FieldSelectionTemplateOf as Mn, GqlElementDefinitionFactory as Mt, FragmentBuildersAll as N, InferField as Nn, AnyCompatSpec as Nt, OperationCoreParams as O, AnyNestedObject as On, GqlDefine as Ot, GqlElementComposer as P, InferFields as Pn, CompatSpec as Pt, withFragmentUsageCollection as Q, ConstAssignableInputFromVarDefs as Qn, OptionalArg as Qt, AnyInputTypeMethods as R, AnyDirectiveAttachments as Rn, FieldSelectionFactories as Rt, generateInputTypeFromVarDefs as S, parseOutputSpecifier as Sn, OperationInferMeta as St, getScalarOutputType as T, AnyFieldValue as Tn, FragmentInferMeta as Tt, SchemaAwareGetNameAt as U, AssignableInputByFieldName as Un, FieldSelectionFactoryReturn as Ut, InputTypeMethods as V, AnyAssigningInput as Vn, FieldSelectionFactoryObjectReturn as Vt, SchemaAwareGetValueAt as W, AssignableInputFromVarDefs as Wn, FieldSelectionFactoryUnionReturn as Wt, FragmentUsageRecord as X, AnyConstAssignableInputValue as Xn, EmptyObject as Xt, createVarMethodFactory as Y, AnyConstAssignableInput as Yn, NestedUnionFieldsBuilder as Yt, recordFragmentUsage as Z, ConstAssignableInput as Zn, IfOmittable as Zt, calculateFieldType as _, buildOperationTypeNode as _n, CompatOptions as _t, HasPrebuiltFragment as a, ColocatedEntries as an, DirectiveLocation as ar, createExtendComposer as at, generateInputType as b, ParsedOutputSpecifier as bn, AnyOperationOf as bt, PrebuiltFragmentInput as c, StripFunctions as cn, ExecutableDirectiveLocation as cr, DirectiveArgumentSpecifiers as ct, PrebuiltOperationOutput as d, UnionToIntersection as dn, StandardDirectives as dt, empty as en, ConstAssignableInputValueFromVarSpec as er, createGqlFragmentComposers as et, PrebuiltTypeRegistry as f, AnyVarSpecifier as fn, createDirectiveBuilder as ft, applyTypeModifier as g, buildDocument as gn, isDirectiveRef as gt, TypeFormatters as h, buildConstValueNode as hn, createTypedDirectiveMethod as ht, EmptyPrebuiltTypeRegistry as i, ColocateHelper as in, DirectiveArgumentSpecifier as ir, ExtendOptions as it, AnyGqlContext as j, AnyUnionSelection as jn, GqlElementContext as jt, buildOperationArtifact as k, AnyNestedObjectExtended as kn, GqlElement as kt, PrebuiltFragmentOutput as l, StripSymbols as ln, TypeSystemDirectiveLocation as lr, DirectiveBuilder as lt, GenerateInputObjectTypeOptions as m, buildArgumentValue as mn, createStandardDirectives as mt, Hidden as n, AttachmentToProperty as nn, AnyDirectiveRef as nr, createVarRefs as nt, HasPrebuiltOperation as o, ColocatedFields as on, DirectiveRef as or, AnyDirectiveMethod as ot, PrebuiltUnknownElement as p, EnumLookup as pn, createDirectiveMethod as pt, createVarBuilder as q, FragmentVariableValue as qn, NestedObjectFieldsBuilder as qt, hidden as r, AttachmentsTupleToIntersection as rn, AnyDirectiveRefBrand as rr, createFieldFactories as rt, PrebuiltEntryNotFound as s, createColocateHelper as sn, DirectiveRefInner as sr, DirectiveArgValue as st, wrapByKey as t, AttachmentShape as tn, GetAssignableType as tr, createVarAssignments as tt, PrebuiltOperationInput as u, Tuple as un, DirectiveMethod as ut, calculateFieldsType as v, buildWithTypeModifier as vn, createCompatComposer as vt, getScalarInputType as w, AnyFieldSelection as wn, Fragment as wt, generateInputTypeFromSpecifiers as x, parseInputSpecifier as xn, Operation as xt, generateInputObjectType as y, ParsedInputSpecifier as yn, AnyOperation as yt, GenericVarSpecifier as z, AnyAssignableInput as zn, FieldSelectionFactory as zt };
1970
- //# sourceMappingURL=index-BcK5E-j7.d.ts.map
2461
+ export { ParsedFieldSelection as $, FieldSelectionFactory as $n, AnyAssignableInput as $r, TemplateResult as $t, EnrichedFragment as A, AnyOperation as An, buildDocument as Ar, GenericVarSpecifier as At, inferVariablesFromUsages as B, GqlElement as Bn, AnyFields as Br, createVarMethodFactory as Bt, getEnumType as C, TypeSystemDirectiveLocation as Ci, createTypedDirectiveMethod as Cn, StripSymbols as Cr, AnyGqlContext as Ct, BuiltVarSpecifier as D, createCompatTaggedTemplate as Dn, EnumLookup as Dr, GqlElementComposerWithSchema as Dt, graphqlTypeToTypeScript as E, CurriedCompatFunction as En, AnyVarSpecifier as Er, GqlElementComposerOptions as Et, VariableUsage as F, Fragment as Fn, parseInputSpecifier as Fr, SchemaAwareGetValueAt as Ft, transformParsedGraphql as G, AnyExtendableSpec as Gn, AnyUnionSelection as Gr, FragmentTaggedTemplateFunction as Gt, mergeModifiers as H, GqlElementContext as Hn, AnyNestedObject as Hr, recordFragmentUsage as Ht, collectVariableUsages as I, FragmentInferMeta as In, parseOutputSpecifier as Ir, VarBuilder as It, parseTypeNode as J, TemplateCompatSpec as Jn, InferFields as Jr, extractFragmentVariables as Jt, createSchemaIndexFromSchema as K, CompatSpec as Kn, FieldSelectionTemplateOf as Kr, buildFieldsFromSelectionSet as Kt, getArgumentType as L, AnyGqlDefine as Ln, AbstractFieldSelection as Lr, VarBuilderMethods as Lt, EnrichedVariable as M, Operation as Mn, buildWithTypeModifier as Mr, InputTypeMethods as Mt, TransformOptions as N, OperationInferMeta as Nn, ParsedInputSpecifier as Nr, ResolveTypeFromMeta as Nt, buildVarSpecifier as O, CompatOptions as On, buildArgumentValue as Or, createGqlElementComposer as Ot, TransformResult as P, AnyFragment as Pn, ParsedOutputSpecifier as Pr, SchemaAwareGetNameAt as Pt, ParsedArgument as Q, FieldSelectionFactories as Qn, AnyDirectiveAttachments as Qr, OperationTemplateMetadataOptions as Qt, getFieldReturnType as R, DefineInferMeta as Rn, AnyFieldSelection as Rr, createVarBuilder as Rt, generateInputTypeFromVarDefs as S, ExecutableDirectiveLocation as Si, createStandardDirectives as Sn, StripFunctions as Sr, createVarRefs as St, getScalarOutputType as T, CompatTaggedTemplate as Tn, UnionToIntersection as Tr, GqlElementComposer as Tt, mergeVariableUsages as U, GqlElementDefinitionFactory as Un, AnyNestedObjectExtended as Ur, withFragmentUsageCollection as Ut, isModifierAssignable as V, GqlElementAttachment as Vn, AnyFieldsExtended as Vr, FragmentUsageRecord as Vt, sortFragmentsByDependency as W, AnyCompatSpec as Wn, AnyNestedUnion as Wr, CurriedFragmentFunction as Wt, InferredVariable as X, AnyFieldSelectionFactory as Xn, ScalarShorthand as Xr, FragmentTemplateMetadataOptions as Xt, GraphqlAnalysisError as Y, isTemplateCompatSpec as Yn, InferFieldsExtended as Yr, CurriedOperationFunction as Yt, ParseResult as Z, AnyFieldSelectionFactoryReturn as Zn, UnionSelection as Zr, OperationTaggedTemplateFunction as Zt, calculateFieldType as _, AnyDirectiveRefBrand as _i, DirectiveBuilder as _n, AttachmentsTupleToIntersection as _r, OperationCoreParams as _t, HasPrebuiltFragment as a, DeclaredVariables as ai, ObjectRecord as an, FieldsBuilder as ar, ParsedSelection as at, generateInputType as b, DirectiveRef as bi, createDirectiveBuilder as bn, ColocatedFields as br, createOperationComposerFactory as bt, PrebuiltFragmentInput as c, AnyConstDirectiveAttachments as ci, SchemaIndex as cn, NestedObjectFieldsBuilderTools as cr, TypeInfo as ct, PrebuiltOperationOutput as d, ConstAssignableInput as di, createFieldFactories as dn, IfOmittable as dr, Result as dt, AnyAssignableInputValue as ei, TemplateResultMetadataOptions as en, FieldSelectionFactoryFieldArguments as er, ParsedFragment as et, PrebuiltTypeRegistry as f, ConstAssignableInputFromVarDefs as fi, ExtendOptions as fn, OptionalArg as fr, err as ft, applyTypeModifier as g, AnyDirectiveRef as gi, DirectiveArgumentSpecifiers as gn, AttachmentToProperty as gr, OperationArtifactResult as gt, TypeFormatters as h, GetAssignableType as hi, DirectiveArgValue as hn, AttachmentShape as hr, preprocessFragmentArgs as ht, EmptyPrebuiltTypeRegistry as i, AssignableInputFromVarDefs as ii, InputRecord as in, FieldSelectionFactoryUnionReturn as ir, ParsedOperation as it, EnrichedOperation as j, AnyOperationOf as jn, buildOperationTypeNode as jr, InputTypeMethod as jt, buildVarSpecifiers as k, createCompatComposer as kn, buildConstValueNode as kr, AnyInputTypeMethods as kt, PrebuiltFragmentOutput as l, AnyConstAssignableInput as li, UnionRecord as ln, NestedUnionFieldsBuilder as lr, ErrResult as lt, GenerateInputObjectTypeOptions as m, ConstAssignableInputValueFromVarSpec as mi, AnyDirectiveMethod as mn, empty as mr, PreprocessResult as mt, Hidden as n, AssignableInput as ni, DirectiveRecord as nn, FieldSelectionFactoryPrimitiveReturn as nr, ParsedInlineFragment as nt, HasPrebuiltOperation as o, FieldArgumentValue as oi, OperationTypeNames as on, FieldsBuilderTools as or, ParsedValue as ot, PrebuiltUnknownElement as p, ConstAssignableInputValue as pi, createExtendComposer as pn, SwitchIfOmittable as pr, ok as pt, parseGraphqlSource as q, ExtractCompatSpec as qn, InferField as qr, createFragmentTaggedTemplate as qt, hidden as r, AssignableInputByFieldName as ri, EnumRecord as rn, FieldSelectionFactoryReturn as rr, ParsedObjectField as rt, PrebuiltEntryNotFound as s, FragmentVariableValue as si, ScalarRecord as sn, NestedObjectFieldsBuilder as sr, ParsedVariable as st, wrapByKey as t, AnyAssigningInput as ti, createOperationTaggedTemplate as tn, FieldSelectionFactoryObjectReturn as tr, ParsedFragmentSpread as tt, PrebuiltOperationInput as u, AnyConstAssignableInputValue as ui, createSchemaIndex as un, EmptyObject as ur, OkResult as ut, calculateFieldsType as v, DirectiveArgumentSpecifier as vi, DirectiveMethod as vn, ColocateHelper as vr, buildOperationArtifact as vt, getScalarInputType as w, isDirectiveRef as wn, Tuple as wr, ExtractMetadataAdapter as wt, generateInputTypeFromSpecifiers as x, DirectiveRefInner as xi, createDirectiveMethod as xn, createColocateHelper as xr, createVarAssignments as xt, generateInputObjectType as y, DirectiveLocation as yi, StandardDirectives as yn, ColocatedEntries as yr, wrapArtifactAsOperation as yt, getInputFieldType as z, GqlDefine as zn, AnyFieldValue as zr, createVarMethod as zt };
2462
+ //# sourceMappingURL=index-BnsQQUy6.d.cts.map