import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; import type { Message } from "@bufbuild/protobuf"; /** * Describes the file wg/cosmo/graphqlmetrics/v1/graphqlmetrics.proto. */ export declare const file_wg_cosmo_graphqlmetrics_v1_graphqlmetrics: GenFile; /** * @generated from message wg.cosmo.graphqlmetrics.v1.RequestInfo */ export type RequestInfo = Message<"wg.cosmo.graphqlmetrics.v1.RequestInfo"> & { /** * @generated from field: int32 StatusCode = 1; */ StatusCode: number; /** * @generated from field: bool error = 2; */ error: boolean; }; /** * Describes the message wg.cosmo.graphqlmetrics.v1.RequestInfo. * Use `create(RequestInfoSchema)` to create a new message. */ export declare const RequestInfoSchema: GenMessage; /** * @generated from message wg.cosmo.graphqlmetrics.v1.SchemaUsageInfo */ export type SchemaUsageInfo = Message<"wg.cosmo.graphqlmetrics.v1.SchemaUsageInfo"> & { /** * RequestDocument is the fully normalized GraphQL request document * * @generated from field: string RequestDocument = 1; */ RequestDocument: string; /** * TypeFieldMetrics is the list of used fields in the request document * * @generated from field: repeated wg.cosmo.graphqlmetrics.v1.TypeFieldUsageInfo TypeFieldMetrics = 2; */ TypeFieldMetrics: TypeFieldUsageInfo[]; /** * OperationInfo is the operation info * * @generated from field: wg.cosmo.graphqlmetrics.v1.OperationInfo OperationInfo = 3; */ OperationInfo?: OperationInfo | undefined; /** * SchemaInfo is the schema info * * @generated from field: wg.cosmo.graphqlmetrics.v1.SchemaInfo SchemaInfo = 4; */ SchemaInfo?: SchemaInfo | undefined; /** * ClientInfo is the client info * * @generated from field: wg.cosmo.graphqlmetrics.v1.ClientInfo ClientInfo = 5; */ ClientInfo?: ClientInfo | undefined; /** * RequestInfo is the request info * * @generated from field: wg.cosmo.graphqlmetrics.v1.RequestInfo RequestInfo = 6; */ RequestInfo?: RequestInfo | undefined; /** * Attributes is a map of attributes that can be used to filter the metrics * * @generated from field: map Attributes = 7; */ Attributes: { [key: string]: string; }; /** * ArgumentMetrics is the list of used arguments in the request document * * @generated from field: repeated wg.cosmo.graphqlmetrics.v1.ArgumentUsageInfo ArgumentMetrics = 8; */ ArgumentMetrics: ArgumentUsageInfo[]; /** * InputMetrics is the list of used input fields in the request document * * @generated from field: repeated wg.cosmo.graphqlmetrics.v1.InputUsageInfo InputMetrics = 9; */ InputMetrics: InputUsageInfo[]; }; /** * Describes the message wg.cosmo.graphqlmetrics.v1.SchemaUsageInfo. * Use `create(SchemaUsageInfoSchema)` to create a new message. */ export declare const SchemaUsageInfoSchema: GenMessage; /** * @generated from message wg.cosmo.graphqlmetrics.v1.SchemaUsageInfoAggregation */ export type SchemaUsageInfoAggregation = Message<"wg.cosmo.graphqlmetrics.v1.SchemaUsageInfoAggregation"> & { /** * @generated from field: wg.cosmo.graphqlmetrics.v1.SchemaUsageInfo SchemaUsage = 1; */ SchemaUsage?: SchemaUsageInfo | undefined; /** * @generated from field: uint64 RequestCount = 2; */ RequestCount: bigint; }; /** * Describes the message wg.cosmo.graphqlmetrics.v1.SchemaUsageInfoAggregation. * Use `create(SchemaUsageInfoAggregationSchema)` to create a new message. */ export declare const SchemaUsageInfoAggregationSchema: GenMessage; /** * @generated from message wg.cosmo.graphqlmetrics.v1.ClientInfo */ export type ClientInfo = Message<"wg.cosmo.graphqlmetrics.v1.ClientInfo"> & { /** * Name is the GraphQL client name obtained from the request header * * @generated from field: string Name = 1; */ Name: string; /** * Version is the GraphQL client version obtained from the request header * * @generated from field: string Version = 2; */ Version: string; }; /** * Describes the message wg.cosmo.graphqlmetrics.v1.ClientInfo. * Use `create(ClientInfoSchema)` to create a new message. */ export declare const ClientInfoSchema: GenMessage; /** * @generated from message wg.cosmo.graphqlmetrics.v1.OperationInfo */ export type OperationInfo = Message<"wg.cosmo.graphqlmetrics.v1.OperationInfo"> & { /** * Hash is the hash of the request document and the operation name * * @generated from field: string Hash = 1; */ Hash: string; /** * Name is the operation name * * @generated from field: string Name = 2; */ Name: string; /** * Type is the operation type * * @generated from field: wg.cosmo.graphqlmetrics.v1.OperationType Type = 3; */ Type: OperationType; }; /** * Describes the message wg.cosmo.graphqlmetrics.v1.OperationInfo. * Use `create(OperationInfoSchema)` to create a new message. */ export declare const OperationInfoSchema: GenMessage; /** * FederatedGraphID and OrganizationID are transport over JWT * * @generated from message wg.cosmo.graphqlmetrics.v1.SchemaInfo */ export type SchemaInfo = Message<"wg.cosmo.graphqlmetrics.v1.SchemaInfo"> & { /** * Version is the schema version * * @generated from field: string Version = 3; */ Version: string; }; /** * Describes the message wg.cosmo.graphqlmetrics.v1.SchemaInfo. * Use `create(SchemaInfoSchema)` to create a new message. */ export declare const SchemaInfoSchema: GenMessage; /** * @generated from message wg.cosmo.graphqlmetrics.v1.TypeFieldUsageInfo */ export type TypeFieldUsageInfo = Message<"wg.cosmo.graphqlmetrics.v1.TypeFieldUsageInfo"> & { /** * Path is the path to the field in the request document but without the root type query, mutation, or subscription * * @generated from field: repeated string Path = 1; */ Path: string[]; /** * TypeNames is the list of enclosing type names of the field * * @generated from field: repeated string TypeNames = 2; */ TypeNames: string[]; /** * SubgraphIDs is the list of datasource IDs (e.g subgraph ID) that the field is used from * * @generated from field: repeated string SubgraphIDs = 3; */ SubgraphIDs: string[]; /** * Count is the number of times the field is used. Useful for batching at client side. * * @generated from field: uint64 Count = 4; */ Count: bigint; /** * NamedType is the underlying type of the field * * @generated from field: string NamedType = 5; */ NamedType: string; /** * IndirectInterfaceField is true if the field is an interface field that is used through an implementing type * * @generated from field: bool IndirectInterfaceField = 6; */ IndirectInterfaceField: boolean; }; /** * Describes the message wg.cosmo.graphqlmetrics.v1.TypeFieldUsageInfo. * Use `create(TypeFieldUsageInfoSchema)` to create a new message. */ export declare const TypeFieldUsageInfoSchema: GenMessage; /** * @generated from message wg.cosmo.graphqlmetrics.v1.ArgumentUsageInfo */ export type ArgumentUsageInfo = Message<"wg.cosmo.graphqlmetrics.v1.ArgumentUsageInfo"> & { /** * Path is the path to the field in the request document but without the root type query, mutation, or subscription * * @generated from field: repeated string Path = 1; */ Path: string[]; /** * TypeName is the enclosing type name of the argument * * @generated from field: string TypeName = 2; */ TypeName: string; /** * Count is the number of times the argument is used. Useful for batching at client side. * * @generated from field: uint64 Count = 3; */ Count: bigint; /** * NamedType is the underlying type of the argument * * @generated from field: string NamedType = 4; */ NamedType: string; /** * SubgraphIDs is the list of datasource IDs (e.g subgraph ID) that the argument is used from * * @generated from field: repeated string SubgraphIDs = 5; */ SubgraphIDs: string[]; /** * IsNull indicates whether this argument was explicitly set to null * This is critical for detecting breaking changes when optional arguments become required * * @generated from field: bool IsNull = 6; */ IsNull: boolean; }; /** * Describes the message wg.cosmo.graphqlmetrics.v1.ArgumentUsageInfo. * Use `create(ArgumentUsageInfoSchema)` to create a new message. */ export declare const ArgumentUsageInfoSchema: GenMessage; /** * @generated from message wg.cosmo.graphqlmetrics.v1.InputUsageInfo */ export type InputUsageInfo = Message<"wg.cosmo.graphqlmetrics.v1.InputUsageInfo"> & { /** * Path is the path to the field in the request document but without the root type query, mutation, or subscription * * @generated from field: repeated string Path = 1; */ Path: string[]; /** * TypeName is the enclosing type name of the argument * * @generated from field: string TypeName = 2; */ TypeName: string; /** * Count is the number of times the argument is used. Useful for batching at client side. * * @generated from field: uint64 Count = 3; */ Count: bigint; /** * NamedType is the underlying type of the input field * * @generated from field: string NamedType = 4; */ NamedType: string; /** * EnumValues is an empty list if the input field is not an enum, otherwise it contains the list of used enum values * * @generated from field: repeated string EnumValues = 5; */ EnumValues: string[]; /** * SubgraphIDs is the list of datasource IDs (e.g subgraph ID) that the input is used from * * @generated from field: repeated string SubgraphIDs = 6; */ SubgraphIDs: string[]; /** * IsNull indicates whether this input was explicitly or implicitly null * This is critical for detecting breaking changes when optional fields become required * * @generated from field: bool IsNull = 7; */ IsNull: boolean; }; /** * Describes the message wg.cosmo.graphqlmetrics.v1.InputUsageInfo. * Use `create(InputUsageInfoSchema)` to create a new message. */ export declare const InputUsageInfoSchema: GenMessage; /** * @generated from message wg.cosmo.graphqlmetrics.v1.PublishGraphQLRequestMetricsRequest */ export type PublishGraphQLRequestMetricsRequest = Message<"wg.cosmo.graphqlmetrics.v1.PublishGraphQLRequestMetricsRequest"> & { /** * @generated from field: repeated wg.cosmo.graphqlmetrics.v1.SchemaUsageInfo SchemaUsage = 1; */ SchemaUsage: SchemaUsageInfo[]; }; /** * Describes the message wg.cosmo.graphqlmetrics.v1.PublishGraphQLRequestMetricsRequest. * Use `create(PublishGraphQLRequestMetricsRequestSchema)` to create a new message. */ export declare const PublishGraphQLRequestMetricsRequestSchema: GenMessage; /** * @generated from message wg.cosmo.graphqlmetrics.v1.PublishOperationCoverageReportResponse */ export type PublishOperationCoverageReportResponse = Message<"wg.cosmo.graphqlmetrics.v1.PublishOperationCoverageReportResponse"> & {}; /** * Describes the message wg.cosmo.graphqlmetrics.v1.PublishOperationCoverageReportResponse. * Use `create(PublishOperationCoverageReportResponseSchema)` to create a new message. */ export declare const PublishOperationCoverageReportResponseSchema: GenMessage; /** * @generated from message wg.cosmo.graphqlmetrics.v1.PublishAggregatedGraphQLRequestMetricsRequest */ export type PublishAggregatedGraphQLRequestMetricsRequest = Message<"wg.cosmo.graphqlmetrics.v1.PublishAggregatedGraphQLRequestMetricsRequest"> & { /** * @generated from field: repeated wg.cosmo.graphqlmetrics.v1.SchemaUsageInfoAggregation Aggregation = 1; */ Aggregation: SchemaUsageInfoAggregation[]; }; /** * Describes the message wg.cosmo.graphqlmetrics.v1.PublishAggregatedGraphQLRequestMetricsRequest. * Use `create(PublishAggregatedGraphQLRequestMetricsRequestSchema)` to create a new message. */ export declare const PublishAggregatedGraphQLRequestMetricsRequestSchema: GenMessage; /** * @generated from message wg.cosmo.graphqlmetrics.v1.PublishAggregatedGraphQLRequestMetricsResponse */ export type PublishAggregatedGraphQLRequestMetricsResponse = Message<"wg.cosmo.graphqlmetrics.v1.PublishAggregatedGraphQLRequestMetricsResponse"> & {}; /** * Describes the message wg.cosmo.graphqlmetrics.v1.PublishAggregatedGraphQLRequestMetricsResponse. * Use `create(PublishAggregatedGraphQLRequestMetricsResponseSchema)` to create a new message. */ export declare const PublishAggregatedGraphQLRequestMetricsResponseSchema: GenMessage; /** * @generated from enum wg.cosmo.graphqlmetrics.v1.OperationType */ export declare enum OperationType { /** * @generated from enum value: QUERY = 0; */ QUERY = 0, /** * @generated from enum value: MUTATION = 1; */ MUTATION = 1, /** * @generated from enum value: SUBSCRIPTION = 2; */ SUBSCRIPTION = 2 } /** * Describes the enum wg.cosmo.graphqlmetrics.v1.OperationType. */ export declare const OperationTypeSchema: GenEnum; /** * @generated from service wg.cosmo.graphqlmetrics.v1.GraphQLMetricsService */ export declare const GraphQLMetricsService: GenService<{ /** * PublishGraphQLMetrics publishes the GraphQL metrics to the metrics service * * @generated from rpc wg.cosmo.graphqlmetrics.v1.GraphQLMetricsService.PublishGraphQLMetrics */ publishGraphQLMetrics: { methodKind: "unary"; input: typeof PublishGraphQLRequestMetricsRequestSchema; output: typeof PublishOperationCoverageReportResponseSchema; }; /** * @generated from rpc wg.cosmo.graphqlmetrics.v1.GraphQLMetricsService.PublishAggregatedGraphQLMetrics */ publishAggregatedGraphQLMetrics: { methodKind: "unary"; input: typeof PublishAggregatedGraphQLRequestMetricsRequestSchema; output: typeof PublishAggregatedGraphQLRequestMetricsResponseSchema; }; }>;