import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; /** * @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 } /** * @generated from message wg.cosmo.graphqlmetrics.v1.RequestInfo */ export declare class RequestInfo extends Message { /** * @generated from field: int32 StatusCode = 1; */ StatusCode: number; /** * @generated from field: bool error = 2; */ error: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.graphqlmetrics.v1.RequestInfo"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): RequestInfo; static fromJson(jsonValue: JsonValue, options?: Partial): RequestInfo; static fromJsonString(jsonString: string, options?: Partial): RequestInfo; static equals(a: RequestInfo | PlainMessage | undefined, b: RequestInfo | PlainMessage | undefined): boolean; } /** * @generated from message wg.cosmo.graphqlmetrics.v1.SchemaUsageInfo */ export declare class SchemaUsageInfo extends Message { /** * 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; /** * SchemaInfo is the schema info * * @generated from field: wg.cosmo.graphqlmetrics.v1.SchemaInfo SchemaInfo = 4; */ SchemaInfo?: SchemaInfo; /** * ClientInfo is the client info * * @generated from field: wg.cosmo.graphqlmetrics.v1.ClientInfo ClientInfo = 5; */ ClientInfo?: ClientInfo; /** * RequestInfo is the request info * * @generated from field: wg.cosmo.graphqlmetrics.v1.RequestInfo RequestInfo = 6; */ RequestInfo?: RequestInfo; /** * 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[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.graphqlmetrics.v1.SchemaUsageInfo"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): SchemaUsageInfo; static fromJson(jsonValue: JsonValue, options?: Partial): SchemaUsageInfo; static fromJsonString(jsonString: string, options?: Partial): SchemaUsageInfo; static equals(a: SchemaUsageInfo | PlainMessage | undefined, b: SchemaUsageInfo | PlainMessage | undefined): boolean; } /** * @generated from message wg.cosmo.graphqlmetrics.v1.SchemaUsageInfoAggregation */ export declare class SchemaUsageInfoAggregation extends Message { /** * @generated from field: wg.cosmo.graphqlmetrics.v1.SchemaUsageInfo SchemaUsage = 1; */ SchemaUsage?: SchemaUsageInfo; /** * @generated from field: uint64 RequestCount = 2; */ RequestCount: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.graphqlmetrics.v1.SchemaUsageInfoAggregation"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): SchemaUsageInfoAggregation; static fromJson(jsonValue: JsonValue, options?: Partial): SchemaUsageInfoAggregation; static fromJsonString(jsonString: string, options?: Partial): SchemaUsageInfoAggregation; static equals(a: SchemaUsageInfoAggregation | PlainMessage | undefined, b: SchemaUsageInfoAggregation | PlainMessage | undefined): boolean; } /** * @generated from message wg.cosmo.graphqlmetrics.v1.ClientInfo */ export declare class ClientInfo extends Message { /** * 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; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.graphqlmetrics.v1.ClientInfo"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ClientInfo; static fromJson(jsonValue: JsonValue, options?: Partial): ClientInfo; static fromJsonString(jsonString: string, options?: Partial): ClientInfo; static equals(a: ClientInfo | PlainMessage | undefined, b: ClientInfo | PlainMessage | undefined): boolean; } /** * @generated from message wg.cosmo.graphqlmetrics.v1.OperationInfo */ export declare class OperationInfo extends Message { /** * 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; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.graphqlmetrics.v1.OperationInfo"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): OperationInfo; static fromJson(jsonValue: JsonValue, options?: Partial): OperationInfo; static fromJsonString(jsonString: string, options?: Partial): OperationInfo; static equals(a: OperationInfo | PlainMessage | undefined, b: OperationInfo | PlainMessage | undefined): boolean; } /** * FederatedGraphID and OrganizationID are transport over JWT * * @generated from message wg.cosmo.graphqlmetrics.v1.SchemaInfo */ export declare class SchemaInfo extends Message { /** * Version is the schema version * * @generated from field: string Version = 3; */ Version: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.graphqlmetrics.v1.SchemaInfo"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): SchemaInfo; static fromJson(jsonValue: JsonValue, options?: Partial): SchemaInfo; static fromJsonString(jsonString: string, options?: Partial): SchemaInfo; static equals(a: SchemaInfo | PlainMessage | undefined, b: SchemaInfo | PlainMessage | undefined): boolean; } /** * @generated from message wg.cosmo.graphqlmetrics.v1.TypeFieldUsageInfo */ export declare class TypeFieldUsageInfo extends Message { /** * 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; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.graphqlmetrics.v1.TypeFieldUsageInfo"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): TypeFieldUsageInfo; static fromJson(jsonValue: JsonValue, options?: Partial): TypeFieldUsageInfo; static fromJsonString(jsonString: string, options?: Partial): TypeFieldUsageInfo; static equals(a: TypeFieldUsageInfo | PlainMessage | undefined, b: TypeFieldUsageInfo | PlainMessage | undefined): boolean; } /** * @generated from message wg.cosmo.graphqlmetrics.v1.ArgumentUsageInfo */ export declare class ArgumentUsageInfo extends Message { /** * 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; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.graphqlmetrics.v1.ArgumentUsageInfo"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ArgumentUsageInfo; static fromJson(jsonValue: JsonValue, options?: Partial): ArgumentUsageInfo; static fromJsonString(jsonString: string, options?: Partial): ArgumentUsageInfo; static equals(a: ArgumentUsageInfo | PlainMessage | undefined, b: ArgumentUsageInfo | PlainMessage | undefined): boolean; } /** * @generated from message wg.cosmo.graphqlmetrics.v1.InputUsageInfo */ export declare class InputUsageInfo extends Message { /** * 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; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.graphqlmetrics.v1.InputUsageInfo"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): InputUsageInfo; static fromJson(jsonValue: JsonValue, options?: Partial): InputUsageInfo; static fromJsonString(jsonString: string, options?: Partial): InputUsageInfo; static equals(a: InputUsageInfo | PlainMessage | undefined, b: InputUsageInfo | PlainMessage | undefined): boolean; } /** * @generated from message wg.cosmo.graphqlmetrics.v1.PublishGraphQLRequestMetricsRequest */ export declare class PublishGraphQLRequestMetricsRequest extends Message { /** * @generated from field: repeated wg.cosmo.graphqlmetrics.v1.SchemaUsageInfo SchemaUsage = 1; */ SchemaUsage: SchemaUsageInfo[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.graphqlmetrics.v1.PublishGraphQLRequestMetricsRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): PublishGraphQLRequestMetricsRequest; static fromJson(jsonValue: JsonValue, options?: Partial): PublishGraphQLRequestMetricsRequest; static fromJsonString(jsonString: string, options?: Partial): PublishGraphQLRequestMetricsRequest; static equals(a: PublishGraphQLRequestMetricsRequest | PlainMessage | undefined, b: PublishGraphQLRequestMetricsRequest | PlainMessage | undefined): boolean; } /** * @generated from message wg.cosmo.graphqlmetrics.v1.PublishOperationCoverageReportResponse */ export declare class PublishOperationCoverageReportResponse extends Message { constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.graphqlmetrics.v1.PublishOperationCoverageReportResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): PublishOperationCoverageReportResponse; static fromJson(jsonValue: JsonValue, options?: Partial): PublishOperationCoverageReportResponse; static fromJsonString(jsonString: string, options?: Partial): PublishOperationCoverageReportResponse; static equals(a: PublishOperationCoverageReportResponse | PlainMessage | undefined, b: PublishOperationCoverageReportResponse | PlainMessage | undefined): boolean; } /** * @generated from message wg.cosmo.graphqlmetrics.v1.PublishAggregatedGraphQLRequestMetricsRequest */ export declare class PublishAggregatedGraphQLRequestMetricsRequest extends Message { /** * @generated from field: repeated wg.cosmo.graphqlmetrics.v1.SchemaUsageInfoAggregation Aggregation = 1; */ Aggregation: SchemaUsageInfoAggregation[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.graphqlmetrics.v1.PublishAggregatedGraphQLRequestMetricsRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): PublishAggregatedGraphQLRequestMetricsRequest; static fromJson(jsonValue: JsonValue, options?: Partial): PublishAggregatedGraphQLRequestMetricsRequest; static fromJsonString(jsonString: string, options?: Partial): PublishAggregatedGraphQLRequestMetricsRequest; static equals(a: PublishAggregatedGraphQLRequestMetricsRequest | PlainMessage | undefined, b: PublishAggregatedGraphQLRequestMetricsRequest | PlainMessage | undefined): boolean; } /** * @generated from message wg.cosmo.graphqlmetrics.v1.PublishAggregatedGraphQLRequestMetricsResponse */ export declare class PublishAggregatedGraphQLRequestMetricsResponse extends Message { constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.graphqlmetrics.v1.PublishAggregatedGraphQLRequestMetricsResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): PublishAggregatedGraphQLRequestMetricsResponse; static fromJson(jsonValue: JsonValue, options?: Partial): PublishAggregatedGraphQLRequestMetricsResponse; static fromJsonString(jsonString: string, options?: Partial): PublishAggregatedGraphQLRequestMetricsResponse; static equals(a: PublishAggregatedGraphQLRequestMetricsResponse | PlainMessage | undefined, b: PublishAggregatedGraphQLRequestMetricsResponse | PlainMessage | undefined): boolean; }