UNPKG

@wundergraph/cosmo-connect

Version:

TypeScript Connect client for WunderGraph Cosmo

1,371 lines 96.6 kB
// @generated by protoc-gen-es v1.10.0 with parameter "target=ts" // @generated from file wg/cosmo/node/v1/node.proto (package wg.cosmo.node.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; import { EnumStatusCode, GraphQLSubscriptionProtocol, GraphQLWebsocketSubprotocol } from "../../common/common_pb.js"; /** * @generated from enum wg.cosmo.node.v1.ArgumentRenderConfiguration */ export var ArgumentRenderConfiguration; (function (ArgumentRenderConfiguration) { /** * @generated from enum value: RENDER_ARGUMENT_DEFAULT = 0; */ ArgumentRenderConfiguration[ArgumentRenderConfiguration["RENDER_ARGUMENT_DEFAULT"] = 0] = "RENDER_ARGUMENT_DEFAULT"; /** * @generated from enum value: RENDER_ARGUMENT_AS_GRAPHQL_VALUE = 1; */ ArgumentRenderConfiguration[ArgumentRenderConfiguration["RENDER_ARGUMENT_AS_GRAPHQL_VALUE"] = 1] = "RENDER_ARGUMENT_AS_GRAPHQL_VALUE"; /** * @generated from enum value: RENDER_ARGUMENT_AS_ARRAY_CSV = 2; */ ArgumentRenderConfiguration[ArgumentRenderConfiguration["RENDER_ARGUMENT_AS_ARRAY_CSV"] = 2] = "RENDER_ARGUMENT_AS_ARRAY_CSV"; })(ArgumentRenderConfiguration || (ArgumentRenderConfiguration = {})); // Retrieve enum metadata with: proto3.getEnumType(ArgumentRenderConfiguration) proto3.util.setEnumType(ArgumentRenderConfiguration, "wg.cosmo.node.v1.ArgumentRenderConfiguration", [ { no: 0, name: "RENDER_ARGUMENT_DEFAULT" }, { no: 1, name: "RENDER_ARGUMENT_AS_GRAPHQL_VALUE" }, { no: 2, name: "RENDER_ARGUMENT_AS_ARRAY_CSV" }, ]); /** * @generated from enum wg.cosmo.node.v1.ArgumentSource */ export var ArgumentSource; (function (ArgumentSource) { /** * @generated from enum value: OBJECT_FIELD = 0; */ ArgumentSource[ArgumentSource["OBJECT_FIELD"] = 0] = "OBJECT_FIELD"; /** * @generated from enum value: FIELD_ARGUMENT = 1; */ ArgumentSource[ArgumentSource["FIELD_ARGUMENT"] = 1] = "FIELD_ARGUMENT"; })(ArgumentSource || (ArgumentSource = {})); // Retrieve enum metadata with: proto3.getEnumType(ArgumentSource) proto3.util.setEnumType(ArgumentSource, "wg.cosmo.node.v1.ArgumentSource", [ { no: 0, name: "OBJECT_FIELD" }, { no: 1, name: "FIELD_ARGUMENT" }, ]); /** * @generated from enum wg.cosmo.node.v1.DataSourceKind */ export var DataSourceKind; (function (DataSourceKind) { /** * @generated from enum value: STATIC = 0; */ DataSourceKind[DataSourceKind["STATIC"] = 0] = "STATIC"; /** * @generated from enum value: GRAPHQL = 1; */ DataSourceKind[DataSourceKind["GRAPHQL"] = 1] = "GRAPHQL"; /** * @generated from enum value: PUBSUB = 2; */ DataSourceKind[DataSourceKind["PUBSUB"] = 2] = "PUBSUB"; })(DataSourceKind || (DataSourceKind = {})); // Retrieve enum metadata with: proto3.getEnumType(DataSourceKind) proto3.util.setEnumType(DataSourceKind, "wg.cosmo.node.v1.DataSourceKind", [ { no: 0, name: "STATIC" }, { no: 1, name: "GRAPHQL" }, { no: 2, name: "PUBSUB" }, ]); /** * Defines the type of GraphQL operation * * @generated from enum wg.cosmo.node.v1.OperationType */ export var OperationType; (function (OperationType) { /** * @generated from enum value: OPERATION_TYPE_UNSPECIFIED = 0; */ OperationType[OperationType["UNSPECIFIED"] = 0] = "UNSPECIFIED"; /** * Query operation * * @generated from enum value: OPERATION_TYPE_QUERY = 1; */ OperationType[OperationType["QUERY"] = 1] = "QUERY"; /** * Mutation operation * * @generated from enum value: OPERATION_TYPE_MUTATION = 2; */ OperationType[OperationType["MUTATION"] = 2] = "MUTATION"; /** * Subscription operation * * @generated from enum value: OPERATION_TYPE_SUBSCRIPTION = 3; */ OperationType[OperationType["SUBSCRIPTION"] = 3] = "SUBSCRIPTION"; })(OperationType || (OperationType = {})); // Retrieve enum metadata with: proto3.getEnumType(OperationType) proto3.util.setEnumType(OperationType, "wg.cosmo.node.v1.OperationType", [ { no: 0, name: "OPERATION_TYPE_UNSPECIFIED" }, { no: 1, name: "OPERATION_TYPE_QUERY" }, { no: 2, name: "OPERATION_TYPE_MUTATION" }, { no: 3, name: "OPERATION_TYPE_SUBSCRIPTION" }, ]); /** * @generated from enum wg.cosmo.node.v1.EventType */ export var EventType; (function (EventType) { /** * @generated from enum value: PUBLISH = 0; */ EventType[EventType["PUBLISH"] = 0] = "PUBLISH"; /** * @generated from enum value: REQUEST = 1; */ EventType[EventType["REQUEST"] = 1] = "REQUEST"; /** * @generated from enum value: SUBSCRIBE = 2; */ EventType[EventType["SUBSCRIBE"] = 2] = "SUBSCRIBE"; })(EventType || (EventType = {})); // Retrieve enum metadata with: proto3.getEnumType(EventType) proto3.util.setEnumType(EventType, "wg.cosmo.node.v1.EventType", [ { no: 0, name: "PUBLISH" }, { no: 1, name: "REQUEST" }, { no: 2, name: "SUBSCRIBE" }, ]); /** * @generated from enum wg.cosmo.node.v1.ConfigurationVariableKind */ export var ConfigurationVariableKind; (function (ConfigurationVariableKind) { /** * @generated from enum value: STATIC_CONFIGURATION_VARIABLE = 0; */ ConfigurationVariableKind[ConfigurationVariableKind["STATIC_CONFIGURATION_VARIABLE"] = 0] = "STATIC_CONFIGURATION_VARIABLE"; /** * @generated from enum value: ENV_CONFIGURATION_VARIABLE = 1; */ ConfigurationVariableKind[ConfigurationVariableKind["ENV_CONFIGURATION_VARIABLE"] = 1] = "ENV_CONFIGURATION_VARIABLE"; /** * @generated from enum value: PLACEHOLDER_CONFIGURATION_VARIABLE = 2; */ ConfigurationVariableKind[ConfigurationVariableKind["PLACEHOLDER_CONFIGURATION_VARIABLE"] = 2] = "PLACEHOLDER_CONFIGURATION_VARIABLE"; })(ConfigurationVariableKind || (ConfigurationVariableKind = {})); // Retrieve enum metadata with: proto3.getEnumType(ConfigurationVariableKind) proto3.util.setEnumType(ConfigurationVariableKind, "wg.cosmo.node.v1.ConfigurationVariableKind", [ { no: 0, name: "STATIC_CONFIGURATION_VARIABLE" }, { no: 1, name: "ENV_CONFIGURATION_VARIABLE" }, { no: 2, name: "PLACEHOLDER_CONFIGURATION_VARIABLE" }, ]); /** * @generated from enum wg.cosmo.node.v1.HTTPMethod */ export var HTTPMethod; (function (HTTPMethod) { /** * @generated from enum value: GET = 0; */ HTTPMethod[HTTPMethod["GET"] = 0] = "GET"; /** * @generated from enum value: POST = 1; */ HTTPMethod[HTTPMethod["POST"] = 1] = "POST"; /** * @generated from enum value: PUT = 2; */ HTTPMethod[HTTPMethod["PUT"] = 2] = "PUT"; /** * @generated from enum value: DELETE = 3; */ HTTPMethod[HTTPMethod["DELETE"] = 3] = "DELETE"; /** * @generated from enum value: OPTIONS = 4; */ HTTPMethod[HTTPMethod["OPTIONS"] = 4] = "OPTIONS"; })(HTTPMethod || (HTTPMethod = {})); // Retrieve enum metadata with: proto3.getEnumType(HTTPMethod) proto3.util.setEnumType(HTTPMethod, "wg.cosmo.node.v1.HTTPMethod", [ { no: 0, name: "GET" }, { no: 1, name: "POST" }, { no: 2, name: "PUT" }, { no: 3, name: "DELETE" }, { no: 4, name: "OPTIONS" }, ]); /** * @generated from message wg.cosmo.node.v1.Subgraph */ export class Subgraph extends Message { /** * @generated from field: string id = 1; */ id = ""; /** * @generated from field: string name = 2; */ name = ""; /** * @generated from field: string routing_url = 3; */ routingUrl = ""; constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "wg.cosmo.node.v1.Subgraph"; static fields = proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "routing_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes, options) { return new Subgraph().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new Subgraph().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new Subgraph().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(Subgraph, a, b); } } /** * @generated from message wg.cosmo.node.v1.FeatureFlagRouterExecutionConfigs */ export class FeatureFlagRouterExecutionConfigs extends Message { /** * @generated from field: map<string, wg.cosmo.node.v1.FeatureFlagRouterExecutionConfig> config_by_feature_flag_name = 1; */ configByFeatureFlagName = {}; constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "wg.cosmo.node.v1.FeatureFlagRouterExecutionConfigs"; static fields = proto3.util.newFieldList(() => [ { no: 1, name: "config_by_feature_flag_name", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: FeatureFlagRouterExecutionConfig } }, ]); static fromBinary(bytes, options) { return new FeatureFlagRouterExecutionConfigs().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new FeatureFlagRouterExecutionConfigs().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new FeatureFlagRouterExecutionConfigs().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(FeatureFlagRouterExecutionConfigs, a, b); } } /** * @generated from message wg.cosmo.node.v1.FeatureFlagRouterExecutionConfig */ export class FeatureFlagRouterExecutionConfig extends Message { /** * @generated from field: wg.cosmo.node.v1.EngineConfiguration engine_config = 1; */ engineConfig; /** * @generated from field: string version = 2; */ version = ""; /** * @generated from field: repeated wg.cosmo.node.v1.Subgraph subgraphs = 3; */ subgraphs = []; constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "wg.cosmo.node.v1.FeatureFlagRouterExecutionConfig"; static fields = proto3.util.newFieldList(() => [ { no: 1, name: "engine_config", kind: "message", T: EngineConfiguration }, { no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "subgraphs", kind: "message", T: Subgraph, repeated: true }, ]); static fromBinary(bytes, options) { return new FeatureFlagRouterExecutionConfig().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new FeatureFlagRouterExecutionConfig().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new FeatureFlagRouterExecutionConfig().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(FeatureFlagRouterExecutionConfig, a, b); } } /** * @generated from message wg.cosmo.node.v1.RouterConfig */ export class RouterConfig extends Message { /** * @generated from field: wg.cosmo.node.v1.EngineConfiguration engine_config = 1; */ engineConfig; /** * @generated from field: string version = 2; */ version = ""; /** * @generated from field: repeated wg.cosmo.node.v1.Subgraph subgraphs = 3; */ subgraphs = []; /** * The map of feature flag router execution configs requires a wrapper to be non-breaking * * @generated from field: optional wg.cosmo.node.v1.FeatureFlagRouterExecutionConfigs feature_flag_configs = 4; */ featureFlagConfigs; /** * @generated from field: string compatibility_version = 5; */ compatibilityVersion = ""; constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "wg.cosmo.node.v1.RouterConfig"; static fields = proto3.util.newFieldList(() => [ { no: 1, name: "engine_config", kind: "message", T: EngineConfiguration }, { no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "subgraphs", kind: "message", T: Subgraph, repeated: true }, { no: 4, name: "feature_flag_configs", kind: "message", T: FeatureFlagRouterExecutionConfigs, opt: true }, { no: 5, name: "compatibility_version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes, options) { return new RouterConfig().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new RouterConfig().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new RouterConfig().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(RouterConfig, a, b); } } /** * @generated from message wg.cosmo.node.v1.Response */ export class Response extends Message { /** * @generated from field: wg.cosmo.common.EnumStatusCode code = 1; */ code = EnumStatusCode.OK; /** * details is an optional field which can be used to provide more details about the error. * * @generated from field: optional string details = 2; */ details; constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "wg.cosmo.node.v1.Response"; static fields = proto3.util.newFieldList(() => [ { no: 1, name: "code", kind: "enum", T: proto3.getEnumType(EnumStatusCode) }, { no: 2, name: "details", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); static fromBinary(bytes, options) { return new Response().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new Response().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new Response().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(Response, a, b); } } /** * @generated from message wg.cosmo.node.v1.ResponseStatus */ export class ResponseStatus extends Message { /** * @generated from field: int32 code = 1; */ code = 0; /** * @generated from field: string message = 2; */ message = ""; constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "wg.cosmo.node.v1.ResponseStatus"; static fields = proto3.util.newFieldList(() => [ { no: 1, name: "code", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes, options) { return new ResponseStatus().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new ResponseStatus().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new ResponseStatus().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(ResponseStatus, a, b); } } /** * @generated from message wg.cosmo.node.v1.RegistrationInfo */ export class RegistrationInfo extends Message { /** * @generated from field: wg.cosmo.node.v1.AccountLimits account_limits = 1; */ accountLimits; /** * @generated from field: string graph_public_key = 2; */ graphPublicKey = ""; constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "wg.cosmo.node.v1.RegistrationInfo"; static fields = proto3.util.newFieldList(() => [ { no: 1, name: "account_limits", kind: "message", T: AccountLimits }, { no: 2, name: "graph_public_key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes, options) { return new RegistrationInfo().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new RegistrationInfo().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new RegistrationInfo().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(RegistrationInfo, a, b); } } /** * @generated from message wg.cosmo.node.v1.AccountLimits */ export class AccountLimits extends Message { /** * The maximum sampling rate for traces. Must be between 0 and 1. * 0 means no traces will be sampled and 1 means all traces will be sampled. * * @generated from field: float trace_sampling_rate = 1; */ traceSamplingRate = 0; constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "wg.cosmo.node.v1.AccountLimits"; static fields = proto3.util.newFieldList(() => [ { no: 1, name: "trace_sampling_rate", kind: "scalar", T: 2 /* ScalarType.FLOAT */ }, ]); static fromBinary(bytes, options) { return new AccountLimits().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new AccountLimits().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new AccountLimits().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(AccountLimits, a, b); } } /** * @generated from message wg.cosmo.node.v1.SelfRegisterRequest */ export class SelfRegisterRequest extends Message { constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "wg.cosmo.node.v1.SelfRegisterRequest"; static fields = proto3.util.newFieldList(() => []); static fromBinary(bytes, options) { return new SelfRegisterRequest().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new SelfRegisterRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new SelfRegisterRequest().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(SelfRegisterRequest, a, b); } } /** * @generated from message wg.cosmo.node.v1.SelfRegisterResponse */ export class SelfRegisterResponse extends Message { /** * @generated from field: wg.cosmo.node.v1.Response response = 1; */ response; /** * @generated from field: optional wg.cosmo.node.v1.RegistrationInfo registrationInfo = 2; */ registrationInfo; constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "wg.cosmo.node.v1.SelfRegisterResponse"; static fields = proto3.util.newFieldList(() => [ { no: 1, name: "response", kind: "message", T: Response }, { no: 2, name: "registrationInfo", kind: "message", T: RegistrationInfo, opt: true }, ]); static fromBinary(bytes, options) { return new SelfRegisterResponse().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new SelfRegisterResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new SelfRegisterResponse().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(SelfRegisterResponse, a, b); } } /** * @generated from message wg.cosmo.node.v1.EngineConfiguration */ export class EngineConfiguration extends Message { /** * @generated from field: int64 defaultFlushInterval = 1; */ defaultFlushInterval = protoInt64.zero; /** * @generated from field: repeated wg.cosmo.node.v1.DataSourceConfiguration datasource_configurations = 2; */ datasourceConfigurations = []; /** * @generated from field: repeated wg.cosmo.node.v1.FieldConfiguration field_configurations = 3; */ fieldConfigurations = []; /** * @generated from field: string graphqlSchema = 4; */ graphqlSchema = ""; /** * @generated from field: repeated wg.cosmo.node.v1.TypeConfiguration type_configurations = 5; */ typeConfigurations = []; /** * @generated from field: map<string, string> string_storage = 6; */ stringStorage = {}; /** * @generated from field: optional string graphql_client_schema = 7; */ graphqlClientSchema; constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "wg.cosmo.node.v1.EngineConfiguration"; static fields = proto3.util.newFieldList(() => [ { no: 1, name: "defaultFlushInterval", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 2, name: "datasource_configurations", kind: "message", T: DataSourceConfiguration, repeated: true }, { no: 3, name: "field_configurations", kind: "message", T: FieldConfiguration, repeated: true }, { no: 4, name: "graphqlSchema", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "type_configurations", kind: "message", T: TypeConfiguration, repeated: true }, { no: 6, name: "string_storage", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } }, { no: 7, name: "graphql_client_schema", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); static fromBinary(bytes, options) { return new EngineConfiguration().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new EngineConfiguration().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new EngineConfiguration().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(EngineConfiguration, a, b); } } /** * @generated from message wg.cosmo.node.v1.DataSourceConfiguration */ export class DataSourceConfiguration extends Message { /** * @generated from field: wg.cosmo.node.v1.DataSourceKind kind = 1; */ kind = DataSourceKind.STATIC; /** * @generated from field: repeated wg.cosmo.node.v1.TypeField root_nodes = 2; */ rootNodes = []; /** * @generated from field: repeated wg.cosmo.node.v1.TypeField child_nodes = 3; */ childNodes = []; /** * @generated from field: bool override_field_path_from_alias = 4; */ overrideFieldPathFromAlias = false; /** * @generated from field: wg.cosmo.node.v1.DataSourceCustom_GraphQL custom_graphql = 5; */ customGraphql; /** * @generated from field: wg.cosmo.node.v1.DataSourceCustom_Static custom_static = 6; */ customStatic; /** * @generated from field: repeated wg.cosmo.node.v1.DirectiveConfiguration directives = 7; */ directives = []; /** * @generated from field: int64 request_timeout_seconds = 8; */ requestTimeoutSeconds = protoInt64.zero; /** * @generated from field: string id = 9; */ id = ""; /** * @generated from field: repeated wg.cosmo.node.v1.RequiredField keys = 10; */ keys = []; /** * @generated from field: repeated wg.cosmo.node.v1.RequiredField provides = 11; */ provides = []; /** * @generated from field: repeated wg.cosmo.node.v1.RequiredField requires = 12; */ requires = []; /** * @generated from field: wg.cosmo.node.v1.DataSourceCustomEvents custom_events = 13; */ customEvents; /** * @generated from field: repeated wg.cosmo.node.v1.EntityInterfaceConfiguration entity_interfaces = 14; */ entityInterfaces = []; /** * @generated from field: repeated wg.cosmo.node.v1.EntityInterfaceConfiguration interface_objects = 15; */ interfaceObjects = []; constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "wg.cosmo.node.v1.DataSourceConfiguration"; static fields = proto3.util.newFieldList(() => [ { no: 1, name: "kind", kind: "enum", T: proto3.getEnumType(DataSourceKind) }, { no: 2, name: "root_nodes", kind: "message", T: TypeField, repeated: true }, { no: 3, name: "child_nodes", kind: "message", T: TypeField, repeated: true }, { no: 4, name: "override_field_path_from_alias", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 5, name: "custom_graphql", kind: "message", T: DataSourceCustom_GraphQL }, { no: 6, name: "custom_static", kind: "message", T: DataSourceCustom_Static }, { no: 7, name: "directives", kind: "message", T: DirectiveConfiguration, repeated: true }, { no: 8, name: "request_timeout_seconds", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 9, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 10, name: "keys", kind: "message", T: RequiredField, repeated: true }, { no: 11, name: "provides", kind: "message", T: RequiredField, repeated: true }, { no: 12, name: "requires", kind: "message", T: RequiredField, repeated: true }, { no: 13, name: "custom_events", kind: "message", T: DataSourceCustomEvents }, { no: 14, name: "entity_interfaces", kind: "message", T: EntityInterfaceConfiguration, repeated: true }, { no: 15, name: "interface_objects", kind: "message", T: EntityInterfaceConfiguration, repeated: true }, ]); static fromBinary(bytes, options) { return new DataSourceConfiguration().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new DataSourceConfiguration().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new DataSourceConfiguration().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(DataSourceConfiguration, a, b); } } /** * @generated from message wg.cosmo.node.v1.ArgumentConfiguration */ export class ArgumentConfiguration extends Message { /** * @generated from field: string name = 1; */ name = ""; /** * @generated from field: wg.cosmo.node.v1.ArgumentSource source_type = 2; */ sourceType = ArgumentSource.OBJECT_FIELD; constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "wg.cosmo.node.v1.ArgumentConfiguration"; static fields = proto3.util.newFieldList(() => [ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "source_type", kind: "enum", T: proto3.getEnumType(ArgumentSource) }, ]); static fromBinary(bytes, options) { return new ArgumentConfiguration().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new ArgumentConfiguration().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new ArgumentConfiguration().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(ArgumentConfiguration, a, b); } } /** * @generated from message wg.cosmo.node.v1.Scopes */ export class Scopes extends Message { /** * @generated from field: repeated string required_and_scopes = 1; */ requiredAndScopes = []; constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "wg.cosmo.node.v1.Scopes"; static fields = proto3.util.newFieldList(() => [ { no: 1, name: "required_and_scopes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); static fromBinary(bytes, options) { return new Scopes().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new Scopes().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new Scopes().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(Scopes, a, b); } } /** * @generated from message wg.cosmo.node.v1.AuthorizationConfiguration */ export class AuthorizationConfiguration extends Message { /** * @generated from field: bool requires_authentication = 1; */ requiresAuthentication = false; /** * @generated from field: repeated wg.cosmo.node.v1.Scopes required_or_scopes = 2; */ requiredOrScopes = []; /** * @generated from field: repeated wg.cosmo.node.v1.Scopes required_or_scopes_by_or = 3; */ requiredOrScopesByOr = []; constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "wg.cosmo.node.v1.AuthorizationConfiguration"; static fields = proto3.util.newFieldList(() => [ { no: 1, name: "requires_authentication", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 2, name: "required_or_scopes", kind: "message", T: Scopes, repeated: true }, { no: 3, name: "required_or_scopes_by_or", kind: "message", T: Scopes, repeated: true }, ]); static fromBinary(bytes, options) { return new AuthorizationConfiguration().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new AuthorizationConfiguration().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new AuthorizationConfiguration().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(AuthorizationConfiguration, a, b); } } /** * @generated from message wg.cosmo.node.v1.FieldConfiguration */ export class FieldConfiguration extends Message { /** * @generated from field: string type_name = 1; */ typeName = ""; /** * @generated from field: string field_name = 2; */ fieldName = ""; /** * @generated from field: repeated wg.cosmo.node.v1.ArgumentConfiguration arguments_configuration = 3; */ argumentsConfiguration = []; /** * @generated from field: wg.cosmo.node.v1.AuthorizationConfiguration authorization_configuration = 4; */ authorizationConfiguration; /** * @generated from field: optional wg.cosmo.node.v1.SubscriptionFilterCondition subscription_filter_condition = 5; */ subscriptionFilterCondition; constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "wg.cosmo.node.v1.FieldConfiguration"; static fields = proto3.util.newFieldList(() => [ { no: 1, name: "type_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "field_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "arguments_configuration", kind: "message", T: ArgumentConfiguration, repeated: true }, { no: 4, name: "authorization_configuration", kind: "message", T: AuthorizationConfiguration }, { no: 5, name: "subscription_filter_condition", kind: "message", T: SubscriptionFilterCondition, opt: true }, ]); static fromBinary(bytes, options) { return new FieldConfiguration().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new FieldConfiguration().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new FieldConfiguration().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(FieldConfiguration, a, b); } } /** * @generated from message wg.cosmo.node.v1.TypeConfiguration */ export class TypeConfiguration extends Message { /** * @generated from field: string type_name = 1; */ typeName = ""; /** * @generated from field: string rename_to = 2; */ renameTo = ""; constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "wg.cosmo.node.v1.TypeConfiguration"; static fields = proto3.util.newFieldList(() => [ { no: 1, name: "type_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "rename_to", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes, options) { return new TypeConfiguration().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new TypeConfiguration().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new TypeConfiguration().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(TypeConfiguration, a, b); } } /** * @generated from message wg.cosmo.node.v1.TypeField */ export class TypeField extends Message { /** * @generated from field: string type_name = 1; */ typeName = ""; /** * @generated from field: repeated string field_names = 2; */ fieldNames = []; /** * @generated from field: repeated string external_field_names = 3; */ externalFieldNames = []; constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "wg.cosmo.node.v1.TypeField"; static fields = proto3.util.newFieldList(() => [ { no: 1, name: "type_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "field_names", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 3, name: "external_field_names", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); static fromBinary(bytes, options) { return new TypeField().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new TypeField().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new TypeField().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(TypeField, a, b); } } /** * @generated from message wg.cosmo.node.v1.FieldCoordinates */ export class FieldCoordinates extends Message { /** * @generated from field: string field_name = 1; */ fieldName = ""; /** * @generated from field: string type_name = 2; */ typeName = ""; constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "wg.cosmo.node.v1.FieldCoordinates"; static fields = proto3.util.newFieldList(() => [ { no: 1, name: "field_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "type_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes, options) { return new FieldCoordinates().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new FieldCoordinates().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new FieldCoordinates().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(FieldCoordinates, a, b); } } /** * @generated from message wg.cosmo.node.v1.FieldSetCondition */ export class FieldSetCondition extends Message { /** * @generated from field: repeated wg.cosmo.node.v1.FieldCoordinates field_coordinates_path = 1; */ fieldCoordinatesPath = []; /** * @generated from field: repeated string field_path = 2; */ fieldPath = []; constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "wg.cosmo.node.v1.FieldSetCondition"; static fields = proto3.util.newFieldList(() => [ { no: 1, name: "field_coordinates_path", kind: "message", T: FieldCoordinates, repeated: true }, { no: 2, name: "field_path", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); static fromBinary(bytes, options) { return new FieldSetCondition().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new FieldSetCondition().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new FieldSetCondition().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(FieldSetCondition, a, b); } } /** * @generated from message wg.cosmo.node.v1.RequiredField */ export class RequiredField extends Message { /** * @generated from field: string type_name = 1; */ typeName = ""; /** * @generated from field: string field_name = 2; */ fieldName = ""; /** * @generated from field: string selection_set = 3; */ selectionSet = ""; /** * @generated from field: bool disable_entity_resolver = 4; */ disableEntityResolver = false; /** * @generated from field: repeated wg.cosmo.node.v1.FieldSetCondition conditions = 5; */ conditions = []; constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "wg.cosmo.node.v1.RequiredField"; static fields = proto3.util.newFieldList(() => [ { no: 1, name: "type_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "field_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "selection_set", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "disable_entity_resolver", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 5, name: "conditions", kind: "message", T: FieldSetCondition, repeated: true }, ]); static fromBinary(bytes, options) { return new RequiredField().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new RequiredField().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new RequiredField().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(RequiredField, a, b); } } /** * @generated from message wg.cosmo.node.v1.EntityInterfaceConfiguration */ export class EntityInterfaceConfiguration extends Message { /** * @generated from field: string interface_type_name = 1; */ interfaceTypeName = ""; /** * @generated from field: repeated string concrete_type_names = 2; */ concreteTypeNames = []; constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "wg.cosmo.node.v1.EntityInterfaceConfiguration"; static fields = proto3.util.newFieldList(() => [ { no: 1, name: "interface_type_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "concrete_type_names", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); static fromBinary(bytes, options) { return new EntityInterfaceConfiguration().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new EntityInterfaceConfiguration().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new EntityInterfaceConfiguration().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(EntityInterfaceConfiguration, a, b); } } /** * @generated from message wg.cosmo.node.v1.FetchConfiguration */ export class FetchConfiguration extends Message { /** * You should either configure url OR a combination of baseURL and path * If url resolves to a non empty string, it takes precedence over baseURL and path * If url resolves to an empty string, the url will be configured as "{{baseURL}}{{path}}" * * @generated from field: wg.cosmo.node.v1.ConfigurationVariable url = 1; */ url; /** * @generated from field: wg.cosmo.node.v1.HTTPMethod method = 2; */ method = HTTPMethod.GET; /** * @generated from field: map<string, wg.cosmo.node.v1.HTTPHeader> header = 3; */ header = {}; /** * @generated from field: wg.cosmo.node.v1.ConfigurationVariable body = 4; */ body; /** * @generated from field: repeated wg.cosmo.node.v1.URLQueryConfiguration query = 5; */ query = []; /** * urlEncodeBody defines whether the body should be URL encoded or not * by default, the body will be JSON encoded * setting urlEncodeBody to true will render the body empty, * the Header Content-Type will be set to application/x-www-form-urlencoded, * and the body will be URL encoded and set as the URL Query String * * @generated from field: bool url_encode_body = 7; */ urlEncodeBody = false; /** * @generated from field: wg.cosmo.node.v1.MTLSConfiguration mtls = 8; */ mtls; /** * @generated from field: wg.cosmo.node.v1.ConfigurationVariable base_url = 9; */ baseUrl; /** * @generated from field: wg.cosmo.node.v1.ConfigurationVariable path = 10; */ path; /** * @generated from field: optional wg.cosmo.node.v1.ConfigurationVariable http_proxy_url = 11; */ httpProxyUrl; constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "wg.cosmo.node.v1.FetchConfiguration"; static fields = proto3.util.newFieldList(() => [ { no: 1, name: "url", kind: "message", T: ConfigurationVariable }, { no: 2, name: "method", kind: "enum", T: proto3.getEnumType(HTTPMethod) }, { no: 3, name: "header", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: HTTPHeader } }, { no: 4, name: "body", kind: "message", T: ConfigurationVariable }, { no: 5, name: "query", kind: "message", T: URLQueryConfiguration, repeated: true }, { no: 7, name: "url_encode_body", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 8, name: "mtls", kind: "message", T: MTLSConfiguration }, { no: 9, name: "base_url", kind: "message", T: ConfigurationVariable }, { no: 10, name: "path", kind: "message", T: ConfigurationVariable }, { no: 11, name: "http_proxy_url", kind: "message", T: ConfigurationVariable, opt: true }, ]); static fromBinary(bytes, options) { return new FetchConfiguration().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new FetchConfiguration().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new FetchConfiguration().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(FetchConfiguration, a, b); } } /** * @generated from message wg.cosmo.node.v1.StatusCodeTypeMapping */ export class StatusCodeTypeMapping extends Message { /** * @generated from field: int64 status_code = 1; */ statusCode = protoInt64.zero; /** * @generated from field: string type_name = 2; */ typeName = ""; /** * @generated from field: bool inject_status_code_into_body = 3; */ injectStatusCodeIntoBody = false; constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "wg.cosmo.node.v1.StatusCodeTypeMapping"; static fields = proto3.util.newFieldList(() => [ { no: 1, name: "status_code", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 2, name: "type_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "inject_status_code_into_body", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes, options) { return new StatusCodeTypeMapping().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new StatusCodeTypeMapping().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new StatusCodeTypeMapping().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(StatusCodeTypeMapping, a, b); } } /** * @generated from message wg.cosmo.node.v1.DataSourceCustom_GraphQL */ export class DataSourceCustom_GraphQL extends Message { /** * @generated from field: wg.cosmo.node.v1.FetchConfiguration fetch = 1; */ fetch; /** * @generated from field: wg.cosmo.node.v1.GraphQLSubscriptionConfiguration subscription = 2; */ subscription; /** * @generated from field: wg.cosmo.node.v1.GraphQLFederationConfiguration federation = 3; */ federation; /** * @generated from field: wg.cosmo.node.v1.InternedString upstream_schema = 4; */ upstreamSchema; /** * @generated from field: repeated wg.cosmo.node.v1.SingleTypeField custom_scalar_type_fields = 6; */ customScalarTypeFields = []; /** * @generated from field: wg.cosmo.node.v1.GRPCConfiguration grpc = 7; */ grpc; constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "wg.cosmo.node.v1.DataSourceCustom_GraphQL"; static fields = proto3.util.newFieldList(() => [ { no: 1, name: "fetch", kind: "message", T: FetchConfiguration }, { no: 2, name: "subscription", kind: "message", T: GraphQLSubscriptionConfiguration }, { no: 3, name: "federation", kind: "message", T: GraphQLFederationConfiguration }, { no: 4, name: "upstream_schema", kind: "message", T: InternedString }, { no: 6, name: "custom_scalar_type_fields", kind: "message", T: SingleTypeField, repeated: true }, { no: 7, name: "grpc", kind: "message", T: GRPCConfiguration }, ]); static fromBinary(bytes, options) { return new DataSourceCustom_GraphQL().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new DataSourceCustom_GraphQL().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new DataSourceCustom_GraphQL().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(DataSourceCustom_GraphQL, a, b); } } /** * @generated from message wg.cosmo.node.v1.GRPCConfiguration */ export class GRPCConfiguration extends Message { /** * @generated from field: wg.cosmo.node.v1.GRPCMapping mapping = 1; */ mapping; /** * @generated from field: string proto_schema = 2; */ protoSchema = ""; /** * @generated from field: wg.cosmo.node.v1.PluginConfiguration plugin = 3; */ plugin; constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "wg.cosmo.node.v1.GRPCConfiguration"; static fields = proto3.util.newFieldList(() => [ { no: 1, name: "mapping", kind: "message", T: GRPCMapping }, { no: 2, name: "proto_schema", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "plugin", kind: "message", T: PluginConfiguration }, ]); static fromBinary(bytes, options) { return new GRPCConfiguration().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new GRPCConfiguration().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new GRPCConfiguration().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(GRPCConfiguration, a, b); } } /** * @generated from message wg.cosmo.node.v1.ImageReference */ export class ImageReference extends Message { /** * {organization_id}/{subgraph_id} * * @generated from field: string repository = 1; */ repository = ""; /** * v1 * * @generated from field: string reference = 2; */ reference = ""; constructor(data) { super(); proto3.util.initPartial(data, this); } static runtime = proto3; static typeName = "wg.cosmo.node.v1.ImageReference"; static fields = proto3.util.newFieldList(() => [ { no: 1, name: "repository", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "reference", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes, options) { return new ImageReference().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new ImageReference().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new ImageReference().fromJsonString(jsonString, options); } static equals(a, b) { return proto3.util.equals(ImageReference, a, b); } } /** * @generated from message wg.cosmo.node.v1.PluginConfiguration */ export class PluginConfiguration extends Message { /** * Plugin name * * @generated from field: string name = 1; */ name = ""; /** * Plugin version * * @generated from field: st