@zitadel/node
Version:
Library for API access to ZITADEL. Provides compiled gRPC service clients and helpers for applications and service accounts.
50 lines (49 loc) • 2.18 kB
TypeScript
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
import Long from "long";
export declare const protobufPackage = "zitadel.milestone.v1";
export declare enum MilestoneType {
MILESTONE_TYPE_UNSPECIFIED = 0,
MILESTONE_TYPE_INSTANCE_CREATED = 1,
MILESTONE_TYPE_AUTHENTICATION_SUCCEEDED_ON_INSTANCE = 2,
MILESTONE_TYPE_PROJECT_CREATED = 3,
MILESTONE_TYPE_APPLICATION_CREATED = 4,
MILESTONE_TYPE_AUTHENTICATION_SUCCEEDED_ON_APPLICATION = 5,
MILESTONE_TYPE_INSTANCE_DELETED = 6,
UNRECOGNIZED = -1
}
export declare function milestoneTypeFromJSON(object: any): MilestoneType;
export declare function milestoneTypeToJSON(object: MilestoneType): string;
export declare enum MilestoneFieldName {
MILESTONE_FIELD_NAME_UNSPECIFIED = 0,
MILESTONE_FIELD_NAME_TYPE = 1,
MILESTONE_FIELD_NAME_REACHED_DATE = 2,
UNRECOGNIZED = -1
}
export declare function milestoneFieldNameFromJSON(object: any): MilestoneFieldName;
export declare function milestoneFieldNameToJSON(object: MilestoneFieldName): string;
export interface Milestone {
type: MilestoneType;
reachedDate: Date | undefined;
}
export interface MilestoneQuery {
isReachedQuery?: IsReachedQuery | undefined;
}
export interface IsReachedQuery {
reached: boolean;
}
export declare const Milestone: MessageFns<Milestone>;
export declare const MilestoneQuery: MessageFns<MilestoneQuery>;
export declare const IsReachedQuery: MessageFns<IsReachedQuery>;
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 interface MessageFns<T> {
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>): T;
fromPartial(object: DeepPartial<T>): T;
}
export {};