@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
42 lines (41 loc) • 2.08 kB
TypeScript
import Long from "long";
import _m0 from "protobufjs/minimal";
export declare const protobufPackage = "zitadel.quota.v1";
export declare enum Unit {
UNIT_UNIMPLEMENTED = 0,
/**
* UNIT_REQUESTS_ALL_AUTHENTICATED - The sum of all requests to the ZITADEL API with an authorization header,
* excluding the following exceptions
* - Calls to the System API
* - Calls that cause internal server errors
* - Failed authorizations
* - Requests after the quota already exceeded
*/
UNIT_REQUESTS_ALL_AUTHENTICATED = 1,
/** UNIT_ACTIONS_ALL_RUN_SECONDS - The sum of all actions run durations in seconds */
UNIT_ACTIONS_ALL_RUN_SECONDS = 2,
UNRECOGNIZED = -1
}
export declare function unitFromJSON(object: any): Unit;
export declare function unitToJSON(object: Unit): string;
export interface Notification {
/** The percentage relative to the quotas amount on which the call_url should be called. */
percent: number;
/** If true, the call_url is called each time a factor of percentage is reached. */
repeat: boolean;
/** The URL, which is called with HTTP method POST and a JSON payload with the properties "unit", "id" (notification id), "callURL", "periodStart", "threshold" and "usage". */
callUrl: string;
}
export declare const Notification: {
encode(message: Notification, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): Notification;
fromJSON(object: any): Notification;
toJSON(message: Notification): unknown;
create(base?: DeepPartial<Notification>): Notification;
fromPartial(object: DeepPartial<Notification>): Notification;
};
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 {};