import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; import type { CallContext, CallOptions } from "nice-grpc-common"; import { Guid } from "./protobuf-net/bcl"; export declare const protobufPackage = "Cratis.Chronicle.Contracts.ProjectionEditor"; export declare enum ValidationResultSeverity { Unknown = 0, Information = 1, Warning = 2, Error = 3, UNRECOGNIZED = -1 } export declare function validationResultSeverityFromJSON(object: any): ValidationResultSeverity; export declare function validationResultSeverityToJSON(object: ValidationResultSeverity): string; export interface CommandResultGenerateDeclarativeCodeResponse { CorrelationId: Guid | undefined; IsAuthorized: boolean; ValidationResults: ValidationResult[]; ExceptionMessages: string[]; ExceptionStackTrace: string; AuthorizationFailureReason: string; Response: GenerateDeclarativeCodeResponse | undefined; } export interface DraftReadModel { Identifier: string; DisplayName: string; ContainerName: string; Schema: string; } export interface GenerateDeclarativeCodeRequest { EventStore: string; Namespace: string; Declaration: string; DraftReadModel: DraftReadModel | undefined; Language: string; } export interface GenerateDeclarativeCodeResponse { Code: string; Errors: ProjectionDeclarationSyntaxError[]; } export interface GenerateModelBoundCodeRequest { EventStore: string; Namespace: string; Declaration: string; DraftReadModel: DraftReadModel | undefined; Language: string; } export interface ProjectionDeclarationSyntaxError { Message: string; Line: number; Column: number; } export interface ValidationResult { Severity: ValidationResultSeverity; Message: string; Members: string[]; } export declare const CommandResultGenerateDeclarativeCodeResponse: MessageFns; export declare const DraftReadModel: MessageFns; export declare const GenerateDeclarativeCodeRequest: MessageFns; export declare const GenerateDeclarativeCodeResponse: MessageFns; export declare const GenerateModelBoundCodeRequest: MessageFns; export declare const ProjectionDeclarationSyntaxError: MessageFns; export declare const ValidationResult: MessageFns; export type ProjectionEditorDefinition = typeof ProjectionEditorDefinition; export declare const ProjectionEditorDefinition: { readonly name: "ProjectionEditor"; readonly fullName: "Cratis.Chronicle.Contracts.ProjectionEditor.ProjectionEditor"; readonly methods: { readonly generateDeclarativeCode: { readonly name: "GenerateDeclarativeCode"; readonly requestType: typeof GenerateDeclarativeCodeRequest; readonly requestStream: false; readonly responseType: typeof CommandResultGenerateDeclarativeCodeResponse; readonly responseStream: false; readonly options: {}; }; readonly generateModelBoundCode: { readonly name: "GenerateModelBoundCode"; readonly requestType: typeof GenerateModelBoundCodeRequest; readonly requestStream: false; readonly responseType: typeof CommandResultGenerateDeclarativeCodeResponse; readonly responseStream: false; readonly options: {}; }; }; }; export interface ProjectionEditorServiceImplementation { generateDeclarativeCode(request: GenerateDeclarativeCodeRequest, context: CallContext & CallContextExt): Promise>; generateModelBoundCode(request: GenerateModelBoundCodeRequest, context: CallContext & CallContextExt): Promise>; } export interface ProjectionEditorClient { generateDeclarativeCode(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; generateModelBoundCode(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; } type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined; export type DeepPartial = T extends bigint ? string | number | bigint : T extends Builtin ? T : T extends globalThis.Array ? globalThis.Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export interface MessageFns { encode(message: T, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): T; fromJSON(object: any): T; toJSON(message: T): unknown; create(base?: DeepPartial): T; fromPartial(object: DeepPartial): T; } export {}; //# sourceMappingURL=projectioneditor.d.ts.map