@zitadel/node
Version:
Library for API access to ZITADEL. Provides compiled gRPC service clients and helpers for applications and service accounts.
51 lines (50 loc) • 2.29 kB
TypeScript
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
import Long from "long";
import { Owner } from "../../../object/v3alpha/object.js";
export declare const protobufPackage = "zitadel.resources.object.v3alpha";
export declare enum TextFilterMethod {
TEXT_FILTER_METHOD_EQUALS = 0,
TEXT_FILTER_METHOD_EQUALS_IGNORE_CASE = 1,
TEXT_FILTER_METHOD_STARTS_WITH = 2,
TEXT_FILTER_METHOD_STARTS_WITH_IGNORE_CASE = 3,
TEXT_FILTER_METHOD_CONTAINS = 4,
UNRECOGNIZED = -1
}
export declare function textFilterMethodFromJSON(object: any): TextFilterMethod;
export declare function textFilterMethodToJSON(object: TextFilterMethod): string;
export interface Details {
id: string;
/** the timestamp of the first event applied to the object. */
created: Date | undefined;
/** the timestamp of the last event applied to the object. */
changed: Date | undefined;
/** the parent object representing the returned objects context. */
owner: Owner | undefined;
}
export interface SearchQuery {
offset: Long;
limit: number;
/** If desc is true, the result is sorted by in descending order. Beware that if desc is true or the sorting column is not the creation date, the pagination results might be inconsistent. */
desc: boolean;
}
export interface ListDetails {
appliedLimit: Long;
totalResult: Long;
timestamp: Date | undefined;
}
export declare const Details: MessageFns<Details>;
export declare const SearchQuery: MessageFns<SearchQuery>;
export declare const ListDetails: MessageFns<ListDetails>;
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 {};