@wundergraph/cosmo-connect
Version:
TypeScript Connect client for WunderGraph Cosmo
121 lines (120 loc) • 5.03 kB
TypeScript
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
import { Message, proto3 } from "@bufbuild/protobuf";
/**
* @generated from enum wg.cosmo.notifications.PlatformEventName
*/
export declare enum PlatformEventName {
/**
* @generated from enum value: USER_REGISTER_SUCCESS = 0;
*/
USER_REGISTER_SUCCESS = 0,
/**
* @generated from enum value: APOLLO_MIGRATE_INIT = 1;
*/
APOLLO_MIGRATE_INIT = 1,
/**
* @generated from enum value: APOLLO_MIGRATE_SUCCESS = 2;
*/
APOLLO_MIGRATE_SUCCESS = 2,
/**
* @generated from enum value: USER_DELETE_SUCCESS = 3;
*/
USER_DELETE_SUCCESS = 3
}
/**
* @generated from enum wg.cosmo.notifications.OrganizationEventName
*/
export declare enum OrganizationEventName {
/**
* @generated from enum value: FEDERATED_GRAPH_SCHEMA_UPDATED = 0;
*/
FEDERATED_GRAPH_SCHEMA_UPDATED = 0,
/**
* @generated from enum value: MONOGRAPH_SCHEMA_UPDATED = 1;
*/
MONOGRAPH_SCHEMA_UPDATED = 1,
/**
* @generated from enum value: VALIDATE_CONFIG = 3;
*/
VALIDATE_CONFIG = 3,
/**
* @generated from enum value: PROPOSAL_STATE_UPDATED = 4;
*/
PROPOSAL_STATE_UPDATED = 4
}
/**
* @generated from message wg.cosmo.notifications.GraphSchemaUpdatedMeta
*/
export declare class GraphSchemaUpdatedMeta extends Message<GraphSchemaUpdatedMeta> {
/**
* @generated from field: repeated string graphIds = 1;
*/
graphIds: string[];
constructor(data?: PartialMessage<GraphSchemaUpdatedMeta>);
static readonly runtime: typeof proto3;
static readonly typeName = "wg.cosmo.notifications.GraphSchemaUpdatedMeta";
static readonly fields: FieldList;
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GraphSchemaUpdatedMeta;
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GraphSchemaUpdatedMeta;
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GraphSchemaUpdatedMeta;
static equals(a: GraphSchemaUpdatedMeta | PlainMessage<GraphSchemaUpdatedMeta> | undefined, b: GraphSchemaUpdatedMeta | PlainMessage<GraphSchemaUpdatedMeta> | undefined): boolean;
}
/**
* @generated from message wg.cosmo.notifications.ProposalStateUpdatedMeta
*/
export declare class ProposalStateUpdatedMeta extends Message<ProposalStateUpdatedMeta> {
/**
* @generated from field: repeated string graphIds = 1;
*/
graphIds: string[];
constructor(data?: PartialMessage<ProposalStateUpdatedMeta>);
static readonly runtime: typeof proto3;
static readonly typeName = "wg.cosmo.notifications.ProposalStateUpdatedMeta";
static readonly fields: FieldList;
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ProposalStateUpdatedMeta;
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ProposalStateUpdatedMeta;
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ProposalStateUpdatedMeta;
static equals(a: ProposalStateUpdatedMeta | PlainMessage<ProposalStateUpdatedMeta> | undefined, b: ProposalStateUpdatedMeta | PlainMessage<ProposalStateUpdatedMeta> | undefined): boolean;
}
/**
* @generated from message wg.cosmo.notifications.EventMeta
*/
export declare class EventMeta extends Message<EventMeta> {
/**
* @generated from field: wg.cosmo.notifications.OrganizationEventName event_name = 1;
*/
eventName: OrganizationEventName;
/**
* @generated from oneof wg.cosmo.notifications.EventMeta.meta
*/
meta: {
/**
* @generated from field: wg.cosmo.notifications.GraphSchemaUpdatedMeta federated_graph_schema_updated = 2;
*/
value: GraphSchemaUpdatedMeta;
case: "federatedGraphSchemaUpdated";
} | {
/**
* @generated from field: wg.cosmo.notifications.GraphSchemaUpdatedMeta monograph_schema_updated = 3;
*/
value: GraphSchemaUpdatedMeta;
case: "monographSchemaUpdated";
} | {
/**
* @generated from field: wg.cosmo.notifications.ProposalStateUpdatedMeta proposal_state_updated = 4;
*/
value: ProposalStateUpdatedMeta;
case: "proposalStateUpdated";
} | {
case: undefined;
value?: undefined;
};
constructor(data?: PartialMessage<EventMeta>);
static readonly runtime: typeof proto3;
static readonly typeName = "wg.cosmo.notifications.EventMeta";
static readonly fields: FieldList;
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EventMeta;
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventMeta;
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventMeta;
static equals(a: EventMeta | PlainMessage<EventMeta> | undefined, b: EventMeta | PlainMessage<EventMeta> | undefined): boolean;
}