UNPKG

@primerouting/zitadel-node

Version:

Library for API access to ZITADEL. Provides compiled gRPC service clients and helpers for applications and service accounts. Support http2 self-hosted instances

113 lines (112 loc) 5.31 kB
import Long from "long"; import _m0 from "protobufjs/minimal"; export declare const protobufPackage = "zitadel.resources.action.v3alpha"; export interface Execution { /** Ordered list of targets/includes called during the execution. */ targets: ExecutionTargetType[]; } export interface ExecutionTargetType { /** Unique identifier of existing target to call. */ target?: string | undefined; /** Unique identifier of existing execution to include targets of. */ include?: Condition | undefined; } 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: { encode(message: Execution, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Execution; fromJSON(object: any): Execution; toJSON(message: Execution): unknown; create(base?: DeepPartial<Execution>): Execution; fromPartial(object: DeepPartial<Execution>): Execution; }; export declare const ExecutionTargetType: { encode(message: ExecutionTargetType, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ExecutionTargetType; fromJSON(object: any): ExecutionTargetType; toJSON(message: ExecutionTargetType): unknown; create(base?: DeepPartial<ExecutionTargetType>): ExecutionTargetType; fromPartial(object: DeepPartial<ExecutionTargetType>): ExecutionTargetType; }; export declare const Condition: { encode(message: Condition, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Condition; fromJSON(object: any): Condition; toJSON(message: Condition): unknown; create(base?: DeepPartial<Condition>): Condition; fromPartial(object: DeepPartial<Condition>): Condition; }; export declare const RequestExecution: { encode(message: RequestExecution, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): RequestExecution; fromJSON(object: any): RequestExecution; toJSON(message: RequestExecution): unknown; create(base?: DeepPartial<RequestExecution>): RequestExecution; fromPartial(object: DeepPartial<RequestExecution>): RequestExecution; }; export declare const ResponseExecution: { encode(message: ResponseExecution, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ResponseExecution; fromJSON(object: any): ResponseExecution; toJSON(message: ResponseExecution): unknown; create(base?: DeepPartial<ResponseExecution>): ResponseExecution; fromPartial(object: DeepPartial<ResponseExecution>): ResponseExecution; }; export declare const FunctionExecution: { encode(message: FunctionExecution, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): FunctionExecution; fromJSON(object: any): FunctionExecution; toJSON(message: FunctionExecution): unknown; create(base?: DeepPartial<FunctionExecution>): FunctionExecution; fromPartial(object: DeepPartial<FunctionExecution>): FunctionExecution; }; export declare const EventExecution: { encode(message: EventExecution, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): EventExecution; fromJSON(object: any): EventExecution; toJSON(message: EventExecution): unknown; create(base?: DeepPartial<EventExecution>): EventExecution; fromPartial(object: DeepPartial<EventExecution>): EventExecution; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]>; } : Partial<T>; export {};