@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
60 lines (59 loc) • 2.53 kB
TypeScript
import Long from "long";
import _m0 from "protobufjs/minimal";
import { ResourceOwnerType } from "./settings";
export declare const protobufPackage = "zitadel.settings.v2";
export declare enum ThemeMode {
THEME_MODE_UNSPECIFIED = 0,
THEME_MODE_AUTO = 1,
THEME_MODE_LIGHT = 2,
THEME_MODE_DARK = 3,
UNRECOGNIZED = -1
}
export declare function themeModeFromJSON(object: any): ThemeMode;
export declare function themeModeToJSON(object: ThemeMode): string;
export interface BrandingSettings {
lightTheme: Theme | undefined;
darkTheme: Theme | undefined;
fontUrl: string;
/** hides the org suffix on the login form if the scope \"urn:zitadel:iam:org:domain:primary:{domainname}\" is set */
hideLoginNameSuffix: boolean;
disableWatermark: boolean;
/** resource_owner_type returns if the setting is managed on the organization or on the instance */
resourceOwnerType: ResourceOwnerType;
themeMode: ThemeMode;
}
export interface Theme {
/** hex value for primary color */
primaryColor: string;
/** hex value for background color */
backgroundColor: string;
/** hex value for warning color */
warnColor: string;
/** hex value for font color */
fontColor: string;
/** url where the logo is served */
logoUrl: string;
/** url where the icon is served */
iconUrl: string;
}
export declare const BrandingSettings: {
encode(message: BrandingSettings, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): BrandingSettings;
fromJSON(object: any): BrandingSettings;
toJSON(message: BrandingSettings): unknown;
create(base?: DeepPartial<BrandingSettings>): BrandingSettings;
fromPartial(object: DeepPartial<BrandingSettings>): BrandingSettings;
};
export declare const Theme: {
encode(message: Theme, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): Theme;
fromJSON(object: any): Theme;
toJSON(message: Theme): unknown;
create(base?: DeepPartial<Theme>): Theme;
fromPartial(object: DeepPartial<Theme>): Theme;
};
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 {};