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

81 lines (80 loc) 3.85 kB
import Long from "long"; import _m0 from "protobufjs/minimal"; import { Duration } from "../../../../google/protobuf/duration"; export declare const protobufPackage = "zitadel.resources.action.v3alpha"; export interface Target { name: string; restWebhook?: SetRESTWebhook | undefined; restCall?: SetRESTCall | undefined; restAsync?: SetRESTAsync | undefined; /** Timeout defines the duration until ZITADEL cancels the execution. */ timeout: Duration | undefined; endpoint: string; } export interface PatchTarget { name?: string | undefined; restWebhook?: SetRESTWebhook | undefined; restCall?: SetRESTCall | undefined; restAsync?: SetRESTAsync | undefined; /** Timeout defines the duration until ZITADEL cancels the execution. */ timeout?: Duration | undefined; endpoint?: string | undefined; } /** Wait for response but response body is ignored, status is checked, call is sent as post. */ export interface SetRESTWebhook { /** Define if any error stops the whole execution. By default the process continues as normal. */ interruptOnError: boolean; } /** Wait for response and response body is used, status is checked, call is sent as post. */ export interface SetRESTCall { /** Define if any error stops the whole execution. By default the process continues as normal. */ interruptOnError: boolean; } /** Call is executed in parallel to others, ZITADEL does not wait until the call is finished. The state is ignored, call is sent as post. */ export interface SetRESTAsync { } export declare const Target: { encode(message: Target, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Target; fromJSON(object: any): Target; toJSON(message: Target): unknown; create(base?: DeepPartial<Target>): Target; fromPartial(object: DeepPartial<Target>): Target; }; export declare const PatchTarget: { encode(message: PatchTarget, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): PatchTarget; fromJSON(object: any): PatchTarget; toJSON(message: PatchTarget): unknown; create(base?: DeepPartial<PatchTarget>): PatchTarget; fromPartial(object: DeepPartial<PatchTarget>): PatchTarget; }; export declare const SetRESTWebhook: { encode(message: SetRESTWebhook, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): SetRESTWebhook; fromJSON(object: any): SetRESTWebhook; toJSON(message: SetRESTWebhook): unknown; create(base?: DeepPartial<SetRESTWebhook>): SetRESTWebhook; fromPartial(object: DeepPartial<SetRESTWebhook>): SetRESTWebhook; }; export declare const SetRESTCall: { encode(message: SetRESTCall, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): SetRESTCall; fromJSON(object: any): SetRESTCall; toJSON(message: SetRESTCall): unknown; create(base?: DeepPartial<SetRESTCall>): SetRESTCall; fromPartial(object: DeepPartial<SetRESTCall>): SetRESTCall; }; export declare const SetRESTAsync: { encode(_: SetRESTAsync, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): SetRESTAsync; fromJSON(_: any): SetRESTAsync; toJSON(_: SetRESTAsync): unknown; create(base?: DeepPartial<SetRESTAsync>): SetRESTAsync; fromPartial(_: DeepPartial<SetRESTAsync>): SetRESTAsync; }; 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 {};