import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; import Long from "long"; import { Duration } from "../google/protobuf/duration.js"; import { LocalizedMessage } from "./message.js"; import { ObjectDetails, TextQueryMethod } from "./object.js"; export declare const protobufPackage = "zitadel.action.v1"; export declare enum ActionState { ACTION_STATE_UNSPECIFIED = 0, ACTION_STATE_INACTIVE = 1, ACTION_STATE_ACTIVE = 2, UNRECOGNIZED = -1 } export declare function actionStateFromJSON(object: any): ActionState; export declare function actionStateToJSON(object: ActionState): string; export declare enum ActionFieldName { ACTION_FIELD_NAME_UNSPECIFIED = 0, ACTION_FIELD_NAME_NAME = 1, ACTION_FIELD_NAME_ID = 2, ACTION_FIELD_NAME_STATE = 3, UNRECOGNIZED = -1 } export declare function actionFieldNameFromJSON(object: any): ActionFieldName; export declare function actionFieldNameToJSON(object: ActionFieldName): string; export declare enum FlowState { FLOW_STATE_UNSPECIFIED = 0, FLOW_STATE_INACTIVE = 1, FLOW_STATE_ACTIVE = 2, UNRECOGNIZED = -1 } export declare function flowStateFromJSON(object: any): FlowState; export declare function flowStateToJSON(object: FlowState): string; export interface Action { id: string; details: ObjectDetails | undefined; state: ActionState; name: string; script: string; timeout: Duration | undefined; allowedToFail: boolean; } export interface ActionIDQuery { id: string; } export interface ActionNameQuery { name: string; method: TextQueryMethod; } /** ActionStateQuery always equals */ export interface ActionStateQuery { state: ActionState; } export interface Flow { /** id of the flow type */ type: FlowType | undefined; details: ObjectDetails | undefined; state: FlowState; triggerActions: TriggerAction[]; } export interface FlowType { /** identifier of the type */ id: string; /** key and name of the type */ name: LocalizedMessage | undefined; } export interface TriggerType { /** identifier of the type */ id: string; /** key and name of the type */ name: LocalizedMessage | undefined; } export interface TriggerAction { /** id of the trigger type */ triggerType: TriggerType | undefined; actions: Action[]; } export declare const Action: MessageFns; export declare const ActionIDQuery: MessageFns; export declare const ActionNameQuery: MessageFns; export declare const ActionStateQuery: MessageFns; export declare const Flow: MessageFns; export declare const FlowType: MessageFns; export declare const TriggerType: MessageFns; export declare const TriggerAction: 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 {};