import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; import Long from "long"; export declare const protobufPackage = "zitadel.action.v2beta"; export interface Execution { condition: Condition | undefined; /** The timestamp of the execution creation. */ creationDate: Date | undefined; /** The timestamp of the last change to the execution. */ changeDate: Date | undefined; /** Ordered list of targets called during the execution. */ targets: string[]; } export interface Condition { /** Condition-type to execute if a request on the defined API point happens. */ request?: RequestExecution | undefined; /** Condition-type to execute on response if a request on the defined API point happens. */ response?: ResponseExecution | undefined; /** Condition-type to execute if function is used, replaces actions v1. */ function?: FunctionExecution | undefined; /** Condition-type to execute if an event is created in the system. */ event?: EventExecution | undefined; } export interface RequestExecution { /** GRPC-method as condition. */ method?: string | undefined; /** GRPC-service as condition. */ service?: string | undefined; /** All calls to any available services and methods as condition. */ all?: boolean | undefined; } export interface ResponseExecution { /** GRPC-method as condition. */ method?: string | undefined; /** GRPC-service as condition. */ service?: string | undefined; /** All calls to any available services and methods as condition. */ all?: boolean | undefined; } /** Executed on the specified function */ export interface FunctionExecution { name: string; } export interface EventExecution { /** Event name as condition. */ event?: string | undefined; /** Event group as condition, all events under this group. */ group?: string | undefined; /** all events as condition. */ all?: boolean | undefined; } export declare const Execution: MessageFns; export declare const Condition: MessageFns; export declare const RequestExecution: MessageFns; export declare const ResponseExecution: MessageFns; export declare const FunctionExecution: MessageFns; export declare const EventExecution: MessageFns; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Long ? string | number | Long : 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 {};