UNPKG

@wundergraph/cosmo-connect

Version:

TypeScript Connect client for WunderGraph Cosmo

1,317 lines (1,316 loc) 608 kB
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; import { EnumStatusCode, GraphQLSubscriptionProtocol, GraphQLWebsocketSubprotocol } from "../../common/common_pb.js"; import { EventMeta } from "../../notifications/events_pb.js"; /** * @generated from enum wg.cosmo.platform.v1.LintSeverity */ export declare enum LintSeverity { /** * @generated from enum value: warn = 0; */ warn = 0, /** * @generated from enum value: error = 1; */ error = 1 } /** * @generated from enum wg.cosmo.platform.v1.SubgraphType */ export declare enum SubgraphType { /** * @generated from enum value: STANDARD = 0; */ STANDARD = 0, /** * @generated from enum value: GRPC_PLUGIN = 1; */ GRPC_PLUGIN = 1, /** * @generated from enum value: GRPC_SERVICE = 2; */ GRPC_SERVICE = 2 } /** * @generated from enum wg.cosmo.platform.v1.AnalyticsViewGroupName */ export declare enum AnalyticsViewGroupName { /** * @generated from enum value: None = 0; */ None = 0, /** * @generated from enum value: OperationName = 1; */ OperationName = 1, /** * @generated from enum value: Client = 2; */ Client = 2, /** * @generated from enum value: HttpStatusCode = 3; */ HttpStatusCode = 3 } /** * @generated from enum wg.cosmo.platform.v1.CustomOptions */ export declare enum CustomOptions { /** * @generated from enum value: Text = 0; */ Text = 0, /** * @generated from enum value: Range = 1; */ Range = 1, /** * @generated from enum value: Boolean = 2; */ Boolean = 2 } /** * @generated from enum wg.cosmo.platform.v1.Unit */ export declare enum Unit { /** * @generated from enum value: Unspecified = 0; */ Unspecified = 0, /** * @generated from enum value: Nanoseconds = 1; */ Nanoseconds = 1, /** * @generated from enum value: UnixTimestamp = 2; */ UnixTimestamp = 2, /** * @generated from enum value: Bytes = 3; */ Bytes = 3, /** * @generated from enum value: CodeBlock = 4; */ CodeBlock = 4, /** * @generated from enum value: StatusCode = 5; */ StatusCode = 5, /** * @generated from enum value: TraceID = 6; */ TraceID = 6, /** * @generated from enum value: SpanID = 7; */ SpanID = 7, /** * @generated from enum value: Percentage = 8; */ Percentage = 8 } /** * @generated from enum wg.cosmo.platform.v1.AnalyticsViewFilterOperator */ export declare enum AnalyticsViewFilterOperator { /** * @generated from enum value: EQUALS = 0; */ EQUALS = 0, /** * @generated from enum value: NOT_EQUALS = 1; */ NOT_EQUALS = 1, /** * @generated from enum value: GREATER_THAN = 2; */ GREATER_THAN = 2, /** * @generated from enum value: LESS_THAN = 3; */ LESS_THAN = 3, /** * @generated from enum value: GREATER_THAN_OR_EQUAL = 4; */ GREATER_THAN_OR_EQUAL = 4, /** * @generated from enum value: LESS_THAN_OR_EQUAL = 5; */ LESS_THAN_OR_EQUAL = 5, /** * @generated from enum value: CONTAINS = 6; */ CONTAINS = 6, /** * @generated from enum value: NOT_CONTAINS = 7; */ NOT_CONTAINS = 7, /** * @generated from enum value: IN = 8; */ IN = 8, /** * @generated from enum value: NOT_IN = 9; */ NOT_IN = 9, /** * @generated from enum value: BETWEEN = 10; */ BETWEEN = 10, /** * @generated from enum value: NOT_BETWEEN = 11; */ NOT_BETWEEN = 11, /** * @generated from enum value: IS_NULL = 12; */ IS_NULL = 12, /** * @generated from enum value: IS_NOT_NULL = 13; */ IS_NOT_NULL = 13 } /** * @generated from enum wg.cosmo.platform.v1.ExpiresAt */ export declare enum ExpiresAt { /** * @generated from enum value: NEVER = 0; */ NEVER = 0, /** * @generated from enum value: THIRTY_DAYS = 1; */ THIRTY_DAYS = 1, /** * @generated from enum value: SIX_MONTHS = 2; */ SIX_MONTHS = 2, /** * @generated from enum value: ONE_YEAR = 3; */ ONE_YEAR = 3 } /** * @generated from enum wg.cosmo.platform.v1.PublishedOperationStatus */ export declare enum PublishedOperationStatus { /** * @generated from enum value: UP_TO_DATE = 0; */ UP_TO_DATE = 0, /** * @generated from enum value: CREATED = 1; */ CREATED = 1, /** * @generated from enum value: CONFLICT = 2; */ CONFLICT = 2 } /** * @generated from enum wg.cosmo.platform.v1.IntegrationType */ export declare enum IntegrationType { /** * @generated from enum value: SLACK = 0; */ SLACK = 0 } /** * @generated from enum wg.cosmo.platform.v1.Feature */ export declare enum Feature { /** * @generated from enum value: rbac = 0; */ rbac = 0, /** * @generated from enum value: ai = 1; */ ai = 1, /** * @generated from enum value: scim = 2; */ scim = 2 } /** * @generated from enum wg.cosmo.platform.v1.ProposalOrigin */ export declare enum ProposalOrigin { /** * @generated from enum value: INTERNAL = 0; */ INTERNAL = 0, /** * @generated from enum value: EXTERNAL = 1; */ EXTERNAL = 1 } /** * @generated from enum wg.cosmo.platform.v1.ProposalNamingConvention */ export declare enum ProposalNamingConvention { /** * @generated from enum value: NORMAL = 0; */ NORMAL = 0, /** * @generated from enum value: INCREMENTAL = 1; */ INCREMENTAL = 1 } /** * @generated from enum wg.cosmo.platform.v1.OperationsFetchBasedOn */ export declare enum OperationsFetchBasedOn { /** * @generated from enum value: REQUESTS = 0; */ REQUESTS = 0, /** * @generated from enum value: LATENCY = 1; */ LATENCY = 1, /** * @generated from enum value: ERRORS = 2; */ ERRORS = 2 } /** * @generated from enum wg.cosmo.platform.v1.SortDirection */ export declare enum SortDirection { /** * @generated from enum value: ASC = 0; */ ASC = 0, /** * @generated from enum value: DESC = 1; */ DESC = 1 } /** * @generated from message wg.cosmo.platform.v1.Label */ export declare class Label extends Message<Label> { /** * @generated from field: string key = 1; */ key: string; /** * @generated from field: string value = 2; */ value: string; constructor(data?: PartialMessage<Label>); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.platform.v1.Label"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Label; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Label; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Label; static equals(a: Label | PlainMessage<Label> | undefined, b: Label | PlainMessage<Label> | undefined): boolean; } /** * @generated from message wg.cosmo.platform.v1.Response */ export declare class Response extends Message<Response> { /** * @generated from field: wg.cosmo.common.EnumStatusCode code = 1; */ code: EnumStatusCode; /** * details is an optional field which can be used to provide more details about the error. * * @generated from field: optional string details = 2; */ details?: string; constructor(data?: PartialMessage<Response>); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.platform.v1.Response"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Response; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Response; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Response; static equals(a: Response | PlainMessage<Response> | undefined, b: Response | PlainMessage<Response> | undefined): boolean; } /** * @generated from message wg.cosmo.platform.v1.ResponseStatus */ export declare class ResponseStatus extends Message<ResponseStatus> { /** * @generated from field: int32 code = 1; */ code: number; /** * @generated from field: string message = 2; */ message: string; constructor(data?: PartialMessage<ResponseStatus>); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.platform.v1.ResponseStatus"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ResponseStatus; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ResponseStatus; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ResponseStatus; static equals(a: ResponseStatus | PlainMessage<ResponseStatus> | undefined, b: ResponseStatus | PlainMessage<ResponseStatus> | undefined): boolean; } /** * @generated from message wg.cosmo.platform.v1.PublishMonographRequest */ export declare class PublishMonographRequest extends Message<PublishMonographRequest> { /** * @generated from field: string name = 1; */ name: string; /** * @generated from field: string namespace = 2; */ namespace: string; /** * @generated from field: string schema = 3; */ schema: string; constructor(data?: PartialMessage<PublishMonographRequest>); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.platform.v1.PublishMonographRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublishMonographRequest; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PublishMonographRequest; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublishMonographRequest; static equals(a: PublishMonographRequest | PlainMessage<PublishMonographRequest> | undefined, b: PublishMonographRequest | PlainMessage<PublishMonographRequest> | undefined): boolean; } /** * @generated from message wg.cosmo.platform.v1.PublishMonographResponse */ export declare class PublishMonographResponse extends Message<PublishMonographResponse> { /** * @generated from field: wg.cosmo.platform.v1.Response response = 1; */ response?: Response; /** * @generated from field: repeated wg.cosmo.platform.v1.CompositionError compositionErrors = 2; */ compositionErrors: CompositionError[]; /** * @generated from field: repeated wg.cosmo.platform.v1.DeploymentError deploymentErrors = 3; */ deploymentErrors: DeploymentError[]; /** * @generated from field: repeated wg.cosmo.platform.v1.CompositionWarning compositionWarnings = 4; */ compositionWarnings: CompositionWarning[]; constructor(data?: PartialMessage<PublishMonographResponse>); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.platform.v1.PublishMonographResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublishMonographResponse; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PublishMonographResponse; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublishMonographResponse; static equals(a: PublishMonographResponse | PlainMessage<PublishMonographResponse> | undefined, b: PublishMonographResponse | PlainMessage<PublishMonographResponse> | undefined): boolean; } /** * @generated from message wg.cosmo.platform.v1.ProtoInput */ export declare class ProtoInput extends Message<ProtoInput> { /** * @generated from field: string schema = 1; */ schema: string; /** * @generated from field: string mappings = 2; */ mappings: string; /** * @generated from field: string lock = 3; */ lock: string; /** * @generated from field: repeated string platforms = 4; */ platforms: string[]; /** * @generated from field: string version = 5; */ version: string; constructor(data?: PartialMessage<ProtoInput>); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.platform.v1.ProtoInput"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ProtoInput; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ProtoInput; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ProtoInput; static equals(a: ProtoInput | PlainMessage<ProtoInput> | undefined, b: ProtoInput | PlainMessage<ProtoInput> | undefined): boolean; } /** * @generated from message wg.cosmo.platform.v1.PublishFederatedSubgraphRequest */ export declare class PublishFederatedSubgraphRequest extends Message<PublishFederatedSubgraphRequest> { /** * The FQDN of the subgraph to be published e.g. "wg.team1.orders" * * @generated from field: string name = 1; */ name: string; /** * The string representation of the schema, the content of the file * * @generated from field: string schema = 2; */ schema: string; /** * The routing_url is the URL of the service which will be used to route the requests to the subgraph. * * @generated from field: optional string routing_url = 3; */ routingUrl?: string; /** * The labels are the labels of the services which will form the federated graph. If the proposed is not valid, the service will be rejected. * * @generated from field: repeated wg.cosmo.platform.v1.Label labels = 4; */ labels: Label[]; /** * The subscription protocol to use when subscribing to this subgraph * * @generated from field: optional wg.cosmo.common.GraphQLSubscriptionProtocol subscription_protocol = 6; */ subscriptionProtocol?: GraphQLSubscriptionProtocol; /** * The url used for subscriptions * * @generated from field: optional string subscription_url = 7; */ subscriptionUrl?: string; /** * The namespace of the subgraph * * @generated from field: string namespace = 8; */ namespace: string; /** * The subscription subprotocol to use when subscribing to this subgraph * * @generated from field: optional wg.cosmo.common.GraphQLWebsocketSubprotocol websocket_subprotocol = 9; */ websocketSubprotocol?: GraphQLWebsocketSubprotocol; /** * @generated from field: optional bool is_feature_subgraph = 10; */ isFeatureSubgraph?: boolean; /** * @generated from field: optional string base_subgraph_name = 11; */ baseSubgraphName?: string; /** * @generated from field: optional bool disable_resolvability_validation = 12; */ disableResolvabilityValidation?: boolean; /** * @generated from field: optional wg.cosmo.platform.v1.SubgraphType type = 13; */ type?: SubgraphType; /** * @generated from field: optional wg.cosmo.platform.v1.ProtoInput proto = 14; */ proto?: ProtoInput; constructor(data?: PartialMessage<PublishFederatedSubgraphRequest>); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.platform.v1.PublishFederatedSubgraphRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublishFederatedSubgraphRequest; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PublishFederatedSubgraphRequest; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublishFederatedSubgraphRequest; static equals(a: PublishFederatedSubgraphRequest | PlainMessage<PublishFederatedSubgraphRequest> | undefined, b: PublishFederatedSubgraphRequest | PlainMessage<PublishFederatedSubgraphRequest> | undefined): boolean; } /** * @generated from message wg.cosmo.platform.v1.PublishFederatedSubgraphResponse */ export declare class PublishFederatedSubgraphResponse extends Message<PublishFederatedSubgraphResponse> { /** * @generated from field: wg.cosmo.platform.v1.Response response = 1; */ response?: Response; /** * @generated from field: repeated wg.cosmo.platform.v1.CompositionError compositionErrors = 2; */ compositionErrors: CompositionError[]; /** * @generated from field: repeated wg.cosmo.platform.v1.DeploymentError deploymentErrors = 3; */ deploymentErrors: DeploymentError[]; /** * @generated from field: optional bool hasChanged = 4; */ hasChanged?: boolean; /** * @generated from field: repeated wg.cosmo.platform.v1.CompositionWarning compositionWarnings = 5; */ compositionWarnings: CompositionWarning[]; /** * @generated from field: optional string proposalMatchMessage = 6; */ proposalMatchMessage?: string; constructor(data?: PartialMessage<PublishFederatedSubgraphResponse>); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.platform.v1.PublishFederatedSubgraphResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublishFederatedSubgraphResponse; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PublishFederatedSubgraphResponse; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublishFederatedSubgraphResponse; static equals(a: PublishFederatedSubgraphResponse | PlainMessage<PublishFederatedSubgraphResponse> | undefined, b: PublishFederatedSubgraphResponse | PlainMessage<PublishFederatedSubgraphResponse> | undefined): boolean; } /** * @generated from message wg.cosmo.platform.v1.GitInfo */ export declare class GitInfo extends Message<GitInfo> { /** * @generated from field: string commit_sha = 1; */ commitSha: string; /** * @generated from field: string account_id = 2; */ accountId: string; /** * @generated from field: string owner_slug = 3; */ ownerSlug: string; /** * @generated from field: string repository_slug = 4; */ repositorySlug: string; constructor(data?: PartialMessage<GitInfo>); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.platform.v1.GitInfo"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GitInfo; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GitInfo; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GitInfo; static equals(a: GitInfo | PlainMessage<GitInfo> | undefined, b: GitInfo | PlainMessage<GitInfo> | undefined): boolean; } /** * @generated from message wg.cosmo.platform.v1.VCSContext */ export declare class VCSContext extends Message<VCSContext> { /** * @generated from field: string author = 1; */ author: string; /** * @generated from field: string commit_sha = 2; */ commitSha: string; /** * @generated from field: string branch = 3; */ branch: string; constructor(data?: PartialMessage<VCSContext>); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.platform.v1.VCSContext"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VCSContext; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VCSContext; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VCSContext; static equals(a: VCSContext | PlainMessage<VCSContext> | undefined, b: VCSContext | PlainMessage<VCSContext> | undefined): boolean; } /** * @generated from message wg.cosmo.platform.v1.CheckSubgraphSchemaRequest */ export declare class CheckSubgraphSchemaRequest extends Message<CheckSubgraphSchemaRequest> { /** * The FQDN of the subgraph to be checked e.g. "wg.team1.orders" * * @generated from field: string subgraph_name = 1; */ subgraphName: string; /** * The binary representation of the schema, the content of the file * * @generated from field: bytes schema = 2; */ schema: Uint8Array; /** * @generated from field: wg.cosmo.platform.v1.GitInfo gitInfo = 3; */ gitInfo?: GitInfo; /** * Check breaking changes and composition when this subgraph is deleted * * @generated from field: optional bool delete = 4; */ delete?: boolean; /** * @generated from field: string namespace = 5; */ namespace: string; /** * @generated from field: optional bool skip_traffic_check = 6; */ skipTrafficCheck?: boolean; /** * @generated from field: optional wg.cosmo.platform.v1.VCSContext vcsContext = 7; */ vcsContext?: VCSContext; /** * @generated from field: repeated wg.cosmo.platform.v1.Label labels = 8; */ labels: Label[]; /** * @generated from field: optional bool disable_resolvability_validation = 9; */ disableResolvabilityValidation?: boolean; constructor(data?: PartialMessage<CheckSubgraphSchemaRequest>); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.platform.v1.CheckSubgraphSchemaRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CheckSubgraphSchemaRequest; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CheckSubgraphSchemaRequest; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CheckSubgraphSchemaRequest; static equals(a: CheckSubgraphSchemaRequest | PlainMessage<CheckSubgraphSchemaRequest> | undefined, b: CheckSubgraphSchemaRequest | PlainMessage<CheckSubgraphSchemaRequest> | undefined): boolean; } /** * @generated from message wg.cosmo.platform.v1.FixSubgraphSchemaRequest */ export declare class FixSubgraphSchemaRequest extends Message<FixSubgraphSchemaRequest> { /** * The FQDN of the subgraph to be checked e.g. "wg.team1.orders" * * @generated from field: string subgraph_name = 1; */ subgraphName: string; /** * The string representation of the schema, the content of the file * * @generated from field: string schema = 2; */ schema: string; /** * @generated from field: string namespace = 3; */ namespace: string; /** * @generated from field: optional bool disable_resolvability_validation = 4; */ disableResolvabilityValidation?: boolean; constructor(data?: PartialMessage<FixSubgraphSchemaRequest>); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.platform.v1.FixSubgraphSchemaRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FixSubgraphSchemaRequest; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FixSubgraphSchemaRequest; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FixSubgraphSchemaRequest; static equals(a: FixSubgraphSchemaRequest | PlainMessage<FixSubgraphSchemaRequest> | undefined, b: FixSubgraphSchemaRequest | PlainMessage<FixSubgraphSchemaRequest> | undefined): boolean; } /** * @generated from message wg.cosmo.platform.v1.CreateMonographRequest */ export declare class CreateMonographRequest extends Message<CreateMonographRequest> { /** * @generated from field: string name = 1; */ name: string; /** * @generated from field: string namespace = 2; */ namespace: string; /** * @generated from field: string routing_url = 3; */ routingUrl: string; /** * @generated from field: string graph_url = 4; */ graphUrl: string; /** * @generated from field: optional string subscription_url = 5; */ subscriptionUrl?: string; /** * @generated from field: optional wg.cosmo.common.GraphQLSubscriptionProtocol subscription_protocol = 6; */ subscriptionProtocol?: GraphQLSubscriptionProtocol; /** * @generated from field: optional string readme = 7; */ readme?: string; /** * @generated from field: string admissionWebhookURL = 8; */ admissionWebhookURL: string; /** * The subscription protocol to use when subscribing to this subgraph * * @generated from field: optional wg.cosmo.common.GraphQLWebsocketSubprotocol websocket_subprotocol = 9; */ websocketSubprotocol?: GraphQLWebsocketSubprotocol; /** * @generated from field: optional string admissionWebhookSecret = 10; */ admissionWebhookSecret?: string; constructor(data?: PartialMessage<CreateMonographRequest>); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.platform.v1.CreateMonographRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateMonographRequest; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateMonographRequest; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateMonographRequest; static equals(a: CreateMonographRequest | PlainMessage<CreateMonographRequest> | undefined, b: CreateMonographRequest | PlainMessage<CreateMonographRequest> | undefined): boolean; } /** * @generated from message wg.cosmo.platform.v1.CreateMonographResponse */ export declare class CreateMonographResponse extends Message<CreateMonographResponse> { /** * @generated from field: wg.cosmo.platform.v1.Response response = 1; */ response?: Response; constructor(data?: PartialMessage<CreateMonographResponse>); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.platform.v1.CreateMonographResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateMonographResponse; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateMonographResponse; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateMonographResponse; static equals(a: CreateMonographResponse | PlainMessage<CreateMonographResponse> | undefined, b: CreateMonographResponse | PlainMessage<CreateMonographResponse> | undefined): boolean; } /** * @generated from message wg.cosmo.platform.v1.CreateFederatedGraphRequest */ export declare class CreateFederatedGraphRequest extends Message<CreateFederatedGraphRequest> { /** * name is the FQDN of the federated graph e.g. "wg.main" * * @generated from field: string name = 1; */ name: string; /** * routing_url is the URL of the service which will be used to route the requests to the subgraph. * * @generated from field: string routing_url = 2; */ routingUrl: string; /** * label_matchers match the labels of the services which will form the federated graph. If the proposed schema composition is invalid, it will be rejected. * * @generated from field: repeated string label_matchers = 3; */ labelMatchers: string[]; /** * readme of the fed graph * * @generated from field: optional string readme = 4; */ readme?: string; /** * @generated from field: string namespace = 5; */ namespace: string; /** * @generated from field: string admissionWebhookURL = 6; */ admissionWebhookURL: string; /** * @generated from field: optional string admissionWebhookSecret = 7; */ admissionWebhookSecret?: string; /** * @generated from field: optional bool disable_resolvability_validation = 8; */ disableResolvabilityValidation?: boolean; constructor(data?: PartialMessage<CreateFederatedGraphRequest>); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.platform.v1.CreateFederatedGraphRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateFederatedGraphRequest; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateFederatedGraphRequest; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateFederatedGraphRequest; static equals(a: CreateFederatedGraphRequest | PlainMessage<CreateFederatedGraphRequest> | undefined, b: CreateFederatedGraphRequest | PlainMessage<CreateFederatedGraphRequest> | undefined): boolean; } /** * @generated from message wg.cosmo.platform.v1.CreateFederatedSubgraphRequest */ export declare class CreateFederatedSubgraphRequest extends Message<CreateFederatedSubgraphRequest> { /** * The FQDN of the subgraph to be published e.g. "wg.team1.orders" * * @generated from field: string name = 1; */ name: string; /** * routing_url is the URL of the service which will be used to route the requests to the subgraph. * * @generated from field: optional string routing_url = 2; */ routingUrl?: string; /** * labels are the labels of the services which will form the federated graph. If the proposed is not valid, the service will be rejected. * * @generated from field: repeated wg.cosmo.platform.v1.Label labels = 3; */ labels: Label[]; /** * subscription protocol to use when subscribing to this subgraph * * @generated from field: optional wg.cosmo.common.GraphQLSubscriptionProtocol subscription_protocol = 5; */ subscriptionProtocol?: GraphQLSubscriptionProtocol; /** * url used for subscriptions * * @generated from field: optional string subscription_url = 6; */ subscriptionUrl?: string; /** * readme of the subgraph * * @generated from field: optional string readme = 7; */ readme?: string; /** * @generated from field: string namespace = 8; */ namespace: string; /** * @generated from field: optional wg.cosmo.common.GraphQLWebsocketSubprotocol websocket_subprotocol = 9; */ websocketSubprotocol?: GraphQLWebsocketSubprotocol; /** * @generated from field: optional bool is_event_driven_graph = 10; */ isEventDrivenGraph?: boolean; /** * @generated from field: optional bool is_feature_subgraph = 11; */ isFeatureSubgraph?: boolean; /** * @generated from field: optional string base_subgraph_name = 12; */ baseSubgraphName?: string; /** * @generated from field: wg.cosmo.platform.v1.SubgraphType type = 13; */ type: SubgraphType; constructor(data?: PartialMessage<CreateFederatedSubgraphRequest>); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.platform.v1.CreateFederatedSubgraphRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateFederatedSubgraphRequest; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateFederatedSubgraphRequest; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateFederatedSubgraphRequest; static equals(a: CreateFederatedSubgraphRequest | PlainMessage<CreateFederatedSubgraphRequest> | undefined, b: CreateFederatedSubgraphRequest | PlainMessage<CreateFederatedSubgraphRequest> | undefined): boolean; } /** * @generated from message wg.cosmo.platform.v1.DeleteFederatedGraphRequest */ export declare class DeleteFederatedGraphRequest extends Message<DeleteFederatedGraphRequest> { /** * @generated from field: string name = 1; */ name: string; /** * @generated from field: string namespace = 2; */ namespace: string; constructor(data?: PartialMessage<DeleteFederatedGraphRequest>); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.platform.v1.DeleteFederatedGraphRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteFederatedGraphRequest; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteFederatedGraphRequest; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteFederatedGraphRequest; static equals(a: DeleteFederatedGraphRequest | PlainMessage<DeleteFederatedGraphRequest> | undefined, b: DeleteFederatedGraphRequest | PlainMessage<DeleteFederatedGraphRequest> | undefined): boolean; } /** * @generated from message wg.cosmo.platform.v1.DeleteMonographRequest */ export declare class DeleteMonographRequest extends Message<DeleteMonographRequest> { /** * @generated from field: string name = 1; */ name: string; /** * @generated from field: string namespace = 2; */ namespace: string; constructor(data?: PartialMessage<DeleteMonographRequest>); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.platform.v1.DeleteMonographRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteMonographRequest; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteMonographRequest; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteMonographRequest; static equals(a: DeleteMonographRequest | PlainMessage<DeleteMonographRequest> | undefined, b: DeleteMonographRequest | PlainMessage<DeleteMonographRequest> | undefined): boolean; } /** * @generated from message wg.cosmo.platform.v1.DeleteMonographResponse */ export declare class DeleteMonographResponse extends Message<DeleteMonographResponse> { /** * @generated from field: wg.cosmo.platform.v1.Response response = 1; */ response?: Response; constructor(data?: PartialMessage<DeleteMonographResponse>); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.platform.v1.DeleteMonographResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteMonographResponse; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteMonographResponse; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteMonographResponse; static equals(a: DeleteMonographResponse | PlainMessage<DeleteMonographResponse> | undefined, b: DeleteMonographResponse | PlainMessage<DeleteMonographResponse> | undefined): boolean; } /** * @generated from message wg.cosmo.platform.v1.DeleteFederatedSubgraphRequest */ export declare class DeleteFederatedSubgraphRequest extends Message<DeleteFederatedSubgraphRequest> { /** * The FQDN of the subgraph to be checked e.g. "wg.team1.orders" * * @generated from field: string subgraph_name = 1; */ subgraphName: string; /** * @generated from field: string namespace = 2; */ namespace: string; /** * @generated from field: optional bool disable_resolvability_validation = 3; */ disableResolvabilityValidation?: boolean; constructor(data?: PartialMessage<DeleteFederatedSubgraphRequest>); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.platform.v1.DeleteFederatedSubgraphRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteFederatedSubgraphRequest; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteFederatedSubgraphRequest; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteFederatedSubgraphRequest; static equals(a: DeleteFederatedSubgraphRequest | PlainMessage<DeleteFederatedSubgraphRequest> | undefined, b: DeleteFederatedSubgraphRequest | PlainMessage<DeleteFederatedSubgraphRequest> | undefined): boolean; } /** * @generated from message wg.cosmo.platform.v1.SchemaChange */ export declare class SchemaChange extends Message<SchemaChange> { /** * @generated from field: string message = 1; */ message: string; /** * @generated from field: string changeType = 2; */ changeType: string; /** * @generated from field: optional string path = 3; */ path?: string; /** * @generated from field: bool isBreaking = 4; */ isBreaking: boolean; /** * @generated from field: optional bool hasOverride = 5; */ hasOverride?: boolean; /** * @generated from field: optional string subgraphName = 6; */ subgraphName?: string; constructor(data?: PartialMessage<SchemaChange>); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.platform.v1.SchemaChange"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SchemaChange; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SchemaChange; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SchemaChange; static equals(a: SchemaChange | PlainMessage<SchemaChange> | undefined, b: SchemaChange | PlainMessage<SchemaChange> | undefined): boolean; } /** * @generated from message wg.cosmo.platform.v1.CompositionError */ export declare class CompositionError extends Message<CompositionError> { /** * @generated from field: string message = 1; */ message: string; /** * @generated from field: string federatedGraphName = 2; */ federatedGraphName: string; /** * @generated from field: string namespace = 3; */ namespace: string; /** * @generated from field: string featureFlag = 4; */ featureFlag: string; constructor(data?: PartialMessage<CompositionError>); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.platform.v1.CompositionError"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CompositionError; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CompositionError; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CompositionError; static equals(a: CompositionError | PlainMessage<CompositionError> | undefined, b: CompositionError | PlainMessage<CompositionError> | undefined): boolean; } /** * @generated from message wg.cosmo.platform.v1.CompositionWarning */ export declare class CompositionWarning extends Message<CompositionWarning> { /** * @generated from field: string message = 1; */ message: string; /** * @generated from field: string federatedGraphName = 2; */ federatedGraphName: string; /** * @generated from field: string namespace = 3; */ namespace: string; /** * @generated from field: string featureFlag = 4; */ featureFlag: string; constructor(data?: PartialMessage<CompositionWarning>); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.platform.v1.CompositionWarning"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CompositionWarning; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CompositionWarning; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CompositionWarning; static equals(a: CompositionWarning | PlainMessage<CompositionWarning> | undefined, b: CompositionWarning | PlainMessage<CompositionWarning> | undefined): boolean; } /** * @generated from message wg.cosmo.platform.v1.DeploymentError */ export declare class DeploymentError extends Message<DeploymentError> { /** * @generated from field: string message = 1; */ message: string; /** * @generated from field: string federatedGraphName = 2; */ federatedGraphName: string; /** * @generated from field: string namespace = 3; */ namespace: string; constructor(data?: PartialMessage<DeploymentError>); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.platform.v1.DeploymentError"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeploymentError; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeploymentError; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeploymentError; static equals(a: DeploymentError | PlainMessage<DeploymentError> | undefined, b: DeploymentError | PlainMessage<DeploymentError> | undefined): boolean; } /** * @generated from message wg.cosmo.platform.v1.CheckOperationUsageStats */ export declare class CheckOperationUsageStats extends Message<CheckOperationUsageStats> { /** * @generated from field: uint32 totalOperations = 1; */ totalOperations: number; /** * @generated from field: string firstSeenAt = 2; */ firstSeenAt: string; /** * @generated from field: string lastSeenAt = 3; */ lastSeenAt: string; /** * @generated from field: uint32 safeOperations = 4; */ safeOperations: number; constructor(data?: PartialMessage<CheckOperationUsageStats>); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.platform.v1.CheckOperationUsageStats"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CheckOperationUsageStats; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CheckOperationUsageStats; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CheckOperationUsageStats; static equals(a: CheckOperationUsageStats | PlainMessage<CheckOperationUsageStats> | undefined, b: CheckOperationUsageStats | PlainMessage<CheckOperationUsageStats> | undefined): boolean; } /** * @generated from message wg.cosmo.platform.v1.CheckedFederatedGraphs */ export declare class CheckedFederatedGraphs extends Message<CheckedFederatedGraphs> { /** * @generated from field: string id = 1; */ id: string; /** * @generated from field: string name = 2; */ name: string; /** * @generated from field: string namespace = 3; */ namespace: string; /** * @generated from field: string organization_slug = 4; */ organizationSlug: string; constructor(data?: PartialMessage<CheckedFederatedGraphs>); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.platform.v1.CheckedFederatedGraphs"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CheckedFederatedGraphs; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CheckedFederatedGraphs; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CheckedFederatedGraphs; static equals(a: CheckedFederatedGraphs | PlainMessage<CheckedFederatedGraphs> | undefined, b: CheckedFederatedGraphs | PlainMessage<CheckedFederatedGraphs> | undefined): boolean; } /** * @generated from message wg.cosmo.platform.v1.LintLocation */ export declare class LintLocation extends Message<LintLocation> { /** * @generated from field: uint32 line = 1; */ line: number; /** * @generated from field: uint32 column = 2; */ column: number; /** * @generated from field: optional uint32 endLine = 3; */ endLine?: number; /** * @generated from field: optional uint32 endColumn = 4; */ endColumn?: number; constructor(data?: PartialMessage<LintLocation>); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.platform.v1.LintLocation"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LintLocation; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LintLocation; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LintLocation; static equals(a: LintLocation | PlainMessage<LintLocation> | undefined, b: LintLocation | PlainMessage<LintLocation> | undefined): boolean; } /** * @generated from message wg.cosmo.platform.v1.LintIssue */ export declare class LintIssue extends Message<LintIssue> { /** * @generated from field: optional string lintRuleType = 1; */ lintRuleType?: string; /** * @generated from field: wg.cosmo.platform.v1.LintSeverity severity = 2; */ severity: LintSeverity; /** * @generated from field: string message = 3; */ message: string; /** * @generated from field: wg.cosmo.platform.v1.LintLocation issueLocation = 4; */ issueLocation?: LintLocation; /** * @generated from field: optional string subgraphName = 5; */ subgraphName?: string; constructor(data?: PartialMessage<LintIssue>); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.platform.v1.LintIssue"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LintIssue; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LintIssue; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LintIssue; static equals(a: LintIssue | PlainMessage<LintIssue> | undefined, b: LintIssue | PlainMessage<LintIssue> | undefined): boolean; } /** * @generated from message wg.cosmo.platform.v1.GraphPruningIssue */ export declare class GraphPruningIssue extends Message<GraphPruningIssue> { /** * @generated from field: string graphPruningRuleType = 1; */ graphPruningRuleType: string; /** * @generated from field: wg.cosmo.platform.v1.LintSeverity severity = 2; */ severity: LintSeverity; /** * @generated from field: string fieldPath = 3; */ fieldPath: string; /** * @generated from field: string message = 4; */ message: string; /** * @generated from field: wg.cosmo.platform.v1.LintLocation issueLocation = 5; */ issueLocation?: LintLocation; /** * @generated from field: string federatedGraphName = 6; */ federatedGraphName: string; /** * @generated from field: optional string subgraphName = 7; */ subgraphName?: string; constructor(data?: PartialMessage<GraphPruningIssue>); static readonly runtime: typeof proto3; static readonly typeName = "wg.cosmo.platform.v1.GraphPruningIssue"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GraphPruningIssue; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GraphPruningIssue; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GraphPruningIssue; static equals(a: GraphPruningIssue | PlainMessage<GraphPruningIssue> | undefined, b: GraphPruningIssue | PlainMessage<GraphPruningIssue> | undefined): boolean; } /** * @generated from message wg.cosmo.platform.v1.CheckSubgraphSchemaResponse */ export declare class CheckSubgraphSchemaResponse extends Message<CheckSubgraphSchemaResponse> { /** * @generated from field: wg.cosmo.platform.v1.Response response = 1; */ response?: Response; /** * @generated from field: repeated wg.cosmo.platform.v1.SchemaChange breakingChanges = 2; */ breakingChanges: SchemaChange[]; /** * @generated from field: repeated wg.cosmo.platform.v1.SchemaChange nonBreakingChanges = 3; */ nonBreakingChanges: SchemaChange[]; /** * @generated from field: repeated wg.cosmo.platform.v1.CompositionError compositionErrors = 4; */ compositionErrors: CompositionError[]; /** * Contains the operation usage stats for the operations that are impacted by the schema changes. * * @generated from field: wg.cosmo.platform.v1.CheckOperationUsageStats operationUsageStats = 5; */ operationUsageStats?: CheckOperationUsageStats; /** * @generated from field: string check_id = 6; */ checkId: string; /** * @generated from field: repeated wg.cosmo.platform.v1.CheckedFederatedGraphs checked_federated_graphs = 7; */ checkedFederatedGraphs: CheckedFederatedGraphs[]; /** * @generated from field: repeated wg.cosmo.platform.v1.LintIssue lintWarnings = 8; */ lintWarnings: LintIssue[]; /** * @generated from field: repeated wg.cosmo.platform.v1.LintIssue lintErrors = 9; */ lintErrors: LintIssue[]; /** * @generated from field: repeated wg.cosmo.platform.v1.GraphPruningIssue graphPruneWarnings = 10; */