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.Alerts"; export declare enum AlertIncidentsReadinessState { CatchingUp = 0, Ready = 1, Degraded = 2, UNRECOGNIZED = -1 } export declare function alertIncidentsReadinessStateFromJSON(object: any): AlertIncidentsReadinessState; export declare function alertIncidentsReadinessStateToJSON(object: AlertIncidentsReadinessState): string; export declare enum AlertSeverity { ALERT_SEVERITY_Warning = 0, Critical = 1, UNRECOGNIZED = -1 } export declare function alertSeverityFromJSON(object: any): AlertSeverity; export declare function alertSeverityToJSON(object: AlertSeverity): string; export declare enum FailureKind { FAILURE_KIND_Unknown = 0, Handling = 1, Timeout = 2, Disconnected = 3, UNRECOGNIZED = -1 } export declare function failureKindFromJSON(object: any): FailureKind; export declare function failureKindToJSON(object: FailureKind): string; export declare enum ValidationResultSeverity { VALIDATION_RESULT_SEVERITY_Unknown = 0, Information = 1, VALIDATION_RESULT_SEVERITY_Warning = 2, Error = 3, UNRECOGNIZED = -1 } export declare function validationResultSeverityFromJSON(object: any): ValidationResultSeverity; export declare function validationResultSeverityToJSON(object: ValidationResultSeverity): string; export interface AlertEvidence { AttemptCount: number; FirstFailure: SerializableDateTimeOffset | undefined; LastFailure: SerializableDateTimeOffset | undefined; FailureKind: FailureKind; Message: string; } export interface AlertIncidentContinuation { RaisedSequenceNumber: bigint; IncidentId: Guid | undefined; } export interface AlertIncidentCountDetails { Namespace: string; Condition: string; Severity: AlertSeverity; Count: bigint; } export interface AlertIncidentDetails { Id: Guid | undefined; Target: AlertTarget | undefined; Condition: string; Severity: AlertSeverity; Evidence: AlertEvidence | undefined; RaisedAt: SerializableDateTimeOffset | undefined; LastChangedAt: SerializableDateTimeOffset | undefined; RaisedSequenceNumber: bigint; LastTransitionSequenceNumber: bigint; } export interface AlertIncidentLookupResponse { Status: AlertIncidentsReadinessState; Incident: AlertIncidentDetails | undefined; } export interface AlertIncidentPageResponse { Status: AlertIncidentsReadinessState; Items: AlertIncidentDetails[]; Next: AlertIncidentContinuation | undefined; } export interface AlertIncidentSummaryResponse { Status: AlertIncidentsReadinessState; Counts: AlertIncidentCountDetails[]; } export interface AlertTarget { EventStore: string; Namespace: string; ObserverId: string; EventSequenceId: string; Partition: string; } export interface GetOpenIncidentCountsRequest { EventStore: string; Namespace: string; } export interface GetOpenIncidentRequest { EventStore: string; IncidentId: Guid | undefined; Namespace: string; } export interface GetOpenIncidentsRequest { EventStore: string; Namespace: string; ObserverId: string; Condition: string; MinimumSeverity: AlertSeverity; Limit: number; AfterRaisedSequenceNumber: bigint; AfterIncidentId: Guid | undefined; } export interface QueryResultAlertIncidentLookupResponse { CorrelationId: Guid | undefined; IsAuthorized: boolean; ValidationResults: ValidationResult[]; ExceptionMessages: string[]; ExceptionStackTrace: string; Data: AlertIncidentLookupResponse | undefined; } export interface QueryResultAlertIncidentPageResponse { CorrelationId: Guid | undefined; IsAuthorized: boolean; ValidationResults: ValidationResult[]; ExceptionMessages: string[]; ExceptionStackTrace: string; Data: AlertIncidentPageResponse | undefined; } export interface QueryResultAlertIncidentSummaryResponse { CorrelationId: Guid | undefined; IsAuthorized: boolean; ValidationResults: ValidationResult[]; ExceptionMessages: string[]; ExceptionStackTrace: string; Data: AlertIncidentSummaryResponse | undefined; } export interface SerializableDateTimeOffset { Value: string; } export interface ValidationResult { Severity: ValidationResultSeverity; Message: string; Members: string[]; } export declare const AlertEvidence: MessageFns; export declare const AlertIncidentContinuation: MessageFns; export declare const AlertIncidentCountDetails: MessageFns; export declare const AlertIncidentDetails: MessageFns; export declare const AlertIncidentLookupResponse: MessageFns; export declare const AlertIncidentPageResponse: MessageFns; export declare const AlertIncidentSummaryResponse: MessageFns; export declare const AlertTarget: MessageFns; export declare const GetOpenIncidentCountsRequest: MessageFns; export declare const GetOpenIncidentRequest: MessageFns; export declare const GetOpenIncidentsRequest: MessageFns; export declare const QueryResultAlertIncidentLookupResponse: MessageFns; export declare const QueryResultAlertIncidentPageResponse: MessageFns; export declare const QueryResultAlertIncidentSummaryResponse: MessageFns; export declare const SerializableDateTimeOffset: MessageFns; export declare const ValidationResult: MessageFns; export type AlertsDefinition = typeof AlertsDefinition; export declare const AlertsDefinition: { readonly name: "Alerts"; readonly fullName: "Cratis.Chronicle.Contracts.Alerts.Alerts"; readonly methods: { readonly getOpenIncident: { readonly name: "GetOpenIncident"; readonly requestType: typeof GetOpenIncidentRequest; readonly requestStream: false; readonly responseType: typeof QueryResultAlertIncidentLookupResponse; readonly responseStream: false; readonly options: {}; }; readonly getOpenIncidentCounts: { readonly name: "GetOpenIncidentCounts"; readonly requestType: typeof GetOpenIncidentCountsRequest; readonly requestStream: false; readonly responseType: typeof QueryResultAlertIncidentSummaryResponse; readonly responseStream: false; readonly options: {}; }; readonly getOpenIncidents: { readonly name: "GetOpenIncidents"; readonly requestType: typeof GetOpenIncidentsRequest; readonly requestStream: false; readonly responseType: typeof QueryResultAlertIncidentPageResponse; readonly responseStream: false; readonly options: {}; }; }; }; export interface AlertsServiceImplementation { getOpenIncident(request: GetOpenIncidentRequest, context: CallContext & CallContextExt): Promise>; getOpenIncidentCounts(request: GetOpenIncidentCountsRequest, context: CallContext & CallContextExt): Promise>; getOpenIncidents(request: GetOpenIncidentsRequest, context: CallContext & CallContextExt): Promise>; } export interface AlertsClient { getOpenIncident(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; getOpenIncidentCounts(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; getOpenIncidents(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=alerts.d.ts.map