import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; import Long from "long"; import type { CallContext, CallOptions } from "nice-grpc-common"; import { PaginationRequest, PaginationResponse } from "../../filter/v2beta/filter.js"; import { Details, ListDetails, RequestContext } from "../../object/v2beta/object.js"; import { BrandingSettings } from "./branding_settings.js"; import { DomainSettings } from "./domain_settings.js"; import { LegalAndSupportSettings } from "./legal_settings.js"; import { LockoutSettings } from "./lockout_settings.js"; import { IdentityProvider, LoginSettings } from "./login_settings.js"; import { OrganizationSettings, OrganizationSettingsFieldName, OrganizationSettingsSearchFilter } from "./organization_settings.js"; import { PasswordComplexitySettings, PasswordExpirySettings } from "./password_settings.js"; import { EmbeddedIframeSettings, SecuritySettings } from "./security_settings.js"; export declare const protobufPackage = "zitadel.settings.v2beta"; export interface GetLoginSettingsRequest { ctx: RequestContext | undefined; } export interface GetLoginSettingsResponse { details: Details | undefined; settings: LoginSettings | undefined; } export interface GetPasswordComplexitySettingsRequest { ctx: RequestContext | undefined; } export interface GetPasswordComplexitySettingsResponse { details: Details | undefined; settings: PasswordComplexitySettings | undefined; } export interface GetPasswordExpirySettingsRequest { ctx: RequestContext | undefined; } export interface GetPasswordExpirySettingsResponse { details: Details | undefined; settings: PasswordExpirySettings | undefined; } export interface GetBrandingSettingsRequest { ctx: RequestContext | undefined; } export interface GetBrandingSettingsResponse { details: Details | undefined; settings: BrandingSettings | undefined; } export interface GetDomainSettingsRequest { ctx: RequestContext | undefined; } export interface GetDomainSettingsResponse { details: Details | undefined; settings: DomainSettings | undefined; } export interface GetLegalAndSupportSettingsRequest { ctx: RequestContext | undefined; } export interface GetLegalAndSupportSettingsResponse { details: Details | undefined; settings: LegalAndSupportSettings | undefined; } export interface GetLockoutSettingsRequest { ctx: RequestContext | undefined; } export interface GetLockoutSettingsResponse { details: Details | undefined; settings: LockoutSettings | undefined; } export interface GetActiveIdentityProvidersRequest { ctx: RequestContext | undefined; } export interface GetActiveIdentityProvidersResponse { details: ListDetails | undefined; identityProviders: IdentityProvider[]; } export interface GetGeneralSettingsRequest { } export interface GetGeneralSettingsResponse { defaultOrgId: string; defaultLanguage: string; supportedLanguages: string[]; } /** This is an empty request */ export interface GetSecuritySettingsRequest { } export interface GetSecuritySettingsResponse { details: Details | undefined; settings: SecuritySettings | undefined; } export interface SetSecuritySettingsRequest { embeddedIframe: EmbeddedIframeSettings | undefined; enableImpersonation: boolean; } export interface SetSecuritySettingsResponse { details: Details | undefined; } export interface SetOrganizationSettingsRequest { /** Organization ID in which this settings are set. */ organizationId: string; /** Force the usernames in the organization to be unique, only possible to set if the existing users already have unique usernames in the organization context. */ organizationScopedUsernames?: boolean | undefined; } export interface SetOrganizationSettingsResponse { /** The timestamp of the set of the organization settings. */ setDate: Date | undefined; } export interface DeleteOrganizationSettingsRequest { /** Organization ID in which this settings are set. */ organizationId: string; } export interface DeleteOrganizationSettingsResponse { /** The timestamp of the deletion of the organization settings. */ deletionDate: Date | undefined; } export interface ListOrganizationSettingsRequest { /** List limitations and ordering. */ pagination?: PaginationRequest | undefined; /** The field the result is sorted by. The default is the creation date. Beware that if you change this, your result pagination might be inconsistent. */ sortingColumn?: OrganizationSettingsFieldName | undefined; filters: OrganizationSettingsSearchFilter[]; } export interface ListOrganizationSettingsResponse { pagination: PaginationResponse | undefined; organizationSettings: OrganizationSettings[]; } export declare const GetLoginSettingsRequest: MessageFns; export declare const GetLoginSettingsResponse: MessageFns; export declare const GetPasswordComplexitySettingsRequest: MessageFns; export declare const GetPasswordComplexitySettingsResponse: MessageFns; export declare const GetPasswordExpirySettingsRequest: MessageFns; export declare const GetPasswordExpirySettingsResponse: MessageFns; export declare const GetBrandingSettingsRequest: MessageFns; export declare const GetBrandingSettingsResponse: MessageFns; export declare const GetDomainSettingsRequest: MessageFns; export declare const GetDomainSettingsResponse: MessageFns; export declare const GetLegalAndSupportSettingsRequest: MessageFns; export declare const GetLegalAndSupportSettingsResponse: MessageFns; export declare const GetLockoutSettingsRequest: MessageFns; export declare const GetLockoutSettingsResponse: MessageFns; export declare const GetActiveIdentityProvidersRequest: MessageFns; export declare const GetActiveIdentityProvidersResponse: MessageFns; export declare const GetGeneralSettingsRequest: MessageFns; export declare const GetGeneralSettingsResponse: MessageFns; export declare const GetSecuritySettingsRequest: MessageFns; export declare const GetSecuritySettingsResponse: MessageFns; export declare const SetSecuritySettingsRequest: MessageFns; export declare const SetSecuritySettingsResponse: MessageFns; export declare const SetOrganizationSettingsRequest: MessageFns; export declare const SetOrganizationSettingsResponse: MessageFns; export declare const DeleteOrganizationSettingsRequest: MessageFns; export declare const DeleteOrganizationSettingsResponse: MessageFns; export declare const ListOrganizationSettingsRequest: MessageFns; export declare const ListOrganizationSettingsResponse: MessageFns; /** Deprecated: use settings service v2 instead. This service will be removed in the next major version of ZITADEL. */ export type SettingsServiceDefinition = typeof SettingsServiceDefinition; export declare const SettingsServiceDefinition: { readonly name: "SettingsService"; readonly fullName: "zitadel.settings.v2beta.SettingsService"; readonly methods: { /** * Get basic information over the instance * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. */ readonly getGeneralSettings: { readonly name: "GetGeneralSettings"; readonly requestType: MessageFns; readonly requestStream: false; readonly responseType: MessageFns; readonly responseStream: false; readonly options: { readonly _unknownFields: { readonly 8338: readonly [Buffer]; readonly 400010: readonly [Buffer]; readonly 578365826: readonly [Buffer]; }; }; }; /** * Get the login settings * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. */ readonly getLoginSettings: { readonly name: "GetLoginSettings"; readonly requestType: MessageFns; readonly requestStream: false; readonly responseType: MessageFns; readonly responseStream: false; readonly options: { readonly _unknownFields: { readonly 8338: readonly [Buffer]; readonly 400010: readonly [Buffer]; readonly 578365826: readonly [Buffer]; }; }; }; /** * Get the current active identity providers * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. */ readonly getActiveIdentityProviders: { readonly name: "GetActiveIdentityProviders"; readonly requestType: MessageFns; readonly requestStream: false; readonly responseType: MessageFns; readonly responseStream: false; readonly options: { readonly _unknownFields: { readonly 8338: readonly [Buffer]; readonly 400010: readonly [Buffer]; readonly 578365826: readonly [Buffer]; }; }; }; /** * Get the password complexity settings * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. */ readonly getPasswordComplexitySettings: { readonly name: "GetPasswordComplexitySettings"; readonly requestType: MessageFns; readonly requestStream: false; readonly responseType: MessageFns; readonly responseStream: false; readonly options: { readonly _unknownFields: { readonly 8338: readonly [Buffer]; readonly 400010: readonly [Buffer]; readonly 578365826: readonly [Buffer]; }; }; }; /** * Get the password expiry settings * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. */ readonly getPasswordExpirySettings: { readonly name: "GetPasswordExpirySettings"; readonly requestType: MessageFns; readonly requestStream: false; readonly responseType: MessageFns; readonly responseStream: false; readonly options: { readonly _unknownFields: { readonly 8338: readonly [Buffer]; readonly 400010: readonly [Buffer]; readonly 578365826: readonly [Buffer]; }; }; }; /** * Get the current active branding settings * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. */ readonly getBrandingSettings: { readonly name: "GetBrandingSettings"; readonly requestType: MessageFns; readonly requestStream: false; readonly responseType: MessageFns; readonly responseStream: false; readonly options: { readonly _unknownFields: { readonly 8338: readonly [Buffer]; readonly 400010: readonly [Buffer]; readonly 578365826: readonly [Buffer]; }; }; }; /** * Get the domain settings * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. */ readonly getDomainSettings: { readonly name: "GetDomainSettings"; readonly requestType: MessageFns; readonly requestStream: false; readonly responseType: MessageFns; readonly responseStream: false; readonly options: { readonly _unknownFields: { readonly 8338: readonly [Buffer]; readonly 400010: readonly [Buffer]; readonly 578365826: readonly [Buffer]; }; }; }; /** * Get the legal and support settings * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. */ readonly getLegalAndSupportSettings: { readonly name: "GetLegalAndSupportSettings"; readonly requestType: MessageFns; readonly requestStream: false; readonly responseType: MessageFns; readonly responseStream: false; readonly options: { readonly _unknownFields: { readonly 8338: readonly [Buffer]; readonly 400010: readonly [Buffer]; readonly 578365826: readonly [Buffer]; }; }; }; /** * Get the lockout settings * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. */ readonly getLockoutSettings: { readonly name: "GetLockoutSettings"; readonly requestType: MessageFns; readonly requestStream: false; readonly responseType: MessageFns; readonly responseStream: false; readonly options: { readonly _unknownFields: { readonly 8338: readonly [Buffer]; readonly 400010: readonly [Buffer]; readonly 578365826: readonly [Buffer]; }; }; }; /** * Get the security settings * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. */ readonly getSecuritySettings: { readonly name: "GetSecuritySettings"; readonly requestType: MessageFns; readonly requestStream: false; readonly responseType: MessageFns; readonly responseStream: false; readonly options: { readonly _unknownFields: { readonly 8338: readonly [Buffer]; readonly 400010: readonly [Buffer]; readonly 578365826: readonly [Buffer]; }; }; }; /** * Set the security settings * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. */ readonly setSecuritySettings: { readonly name: "SetSecuritySettings"; readonly requestType: MessageFns; readonly requestStream: false; readonly responseType: MessageFns; readonly responseStream: false; readonly options: { readonly _unknownFields: { readonly 8338: readonly [Buffer]; readonly 400010: readonly [Buffer]; readonly 578365826: readonly [Buffer]; }; }; }; /** * Set Organization Settings * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. * * Sets the settings specific to an organization. * Organization scopes usernames defines that the usernames have to be unique in the organization scope, can only be changed if the usernames of the users are unique in the scope. * * Required permissions: * - `iam.policy.write` */ readonly setOrganizationSettings: { readonly name: "SetOrganizationSettings"; readonly requestType: MessageFns; readonly requestStream: false; readonly responseType: MessageFns; readonly responseStream: false; readonly options: { readonly _unknownFields: { readonly 8338: readonly [Buffer]; readonly 400010: readonly [Buffer]; readonly 578365826: readonly [Buffer]; }; }; }; /** * Delete Organization Settings * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. * * Delete the settings specific to an organization. * * Required permissions: * - `iam.policy.delete` */ readonly deleteOrganizationSettings: { readonly name: "DeleteOrganizationSettings"; readonly requestType: MessageFns; readonly requestStream: false; readonly responseType: MessageFns; readonly responseStream: false; readonly options: { readonly _unknownFields: { readonly 8338: readonly [Buffer]; readonly 400010: readonly [Buffer]; readonly 578365826: readonly [Buffer]; }; }; }; /** * List Organization Settings * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. * * Returns a list of organization settings. * * Required permission: * - `iam.policy.read` * - `org.policy.read` */ readonly listOrganizationSettings: { readonly name: "ListOrganizationSettings"; readonly requestType: MessageFns; readonly requestStream: false; readonly responseType: MessageFns; readonly responseStream: false; readonly options: { readonly _unknownFields: { readonly 8338: readonly [Buffer]; readonly 400010: readonly [Buffer]; readonly 578365826: readonly [Buffer]; }; }; }; }; }; export interface SettingsServiceImplementation { /** * Get basic information over the instance * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. */ getGeneralSettings(request: GetGeneralSettingsRequest, context: CallContext & CallContextExt): Promise>; /** * Get the login settings * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. */ getLoginSettings(request: GetLoginSettingsRequest, context: CallContext & CallContextExt): Promise>; /** * Get the current active identity providers * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. */ getActiveIdentityProviders(request: GetActiveIdentityProvidersRequest, context: CallContext & CallContextExt): Promise>; /** * Get the password complexity settings * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. */ getPasswordComplexitySettings(request: GetPasswordComplexitySettingsRequest, context: CallContext & CallContextExt): Promise>; /** * Get the password expiry settings * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. */ getPasswordExpirySettings(request: GetPasswordExpirySettingsRequest, context: CallContext & CallContextExt): Promise>; /** * Get the current active branding settings * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. */ getBrandingSettings(request: GetBrandingSettingsRequest, context: CallContext & CallContextExt): Promise>; /** * Get the domain settings * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. */ getDomainSettings(request: GetDomainSettingsRequest, context: CallContext & CallContextExt): Promise>; /** * Get the legal and support settings * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. */ getLegalAndSupportSettings(request: GetLegalAndSupportSettingsRequest, context: CallContext & CallContextExt): Promise>; /** * Get the lockout settings * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. */ getLockoutSettings(request: GetLockoutSettingsRequest, context: CallContext & CallContextExt): Promise>; /** * Get the security settings * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. */ getSecuritySettings(request: GetSecuritySettingsRequest, context: CallContext & CallContextExt): Promise>; /** * Set the security settings * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. */ setSecuritySettings(request: SetSecuritySettingsRequest, context: CallContext & CallContextExt): Promise>; /** * Set Organization Settings * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. * * Sets the settings specific to an organization. * Organization scopes usernames defines that the usernames have to be unique in the organization scope, can only be changed if the usernames of the users are unique in the scope. * * Required permissions: * - `iam.policy.write` */ setOrganizationSettings(request: SetOrganizationSettingsRequest, context: CallContext & CallContextExt): Promise>; /** * Delete Organization Settings * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. * * Delete the settings specific to an organization. * * Required permissions: * - `iam.policy.delete` */ deleteOrganizationSettings(request: DeleteOrganizationSettingsRequest, context: CallContext & CallContextExt): Promise>; /** * List Organization Settings * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. * * Returns a list of organization settings. * * Required permission: * - `iam.policy.read` * - `org.policy.read` */ listOrganizationSettings(request: ListOrganizationSettingsRequest, context: CallContext & CallContextExt): Promise>; } export interface SettingsServiceClient { /** * Get basic information over the instance * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. */ getGeneralSettings(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; /** * Get the login settings * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. */ getLoginSettings(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; /** * Get the current active identity providers * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. */ getActiveIdentityProviders(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; /** * Get the password complexity settings * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. */ getPasswordComplexitySettings(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; /** * Get the password expiry settings * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. */ getPasswordExpirySettings(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; /** * Get the current active branding settings * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. */ getBrandingSettings(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; /** * Get the domain settings * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. */ getDomainSettings(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; /** * Get the legal and support settings * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. */ getLegalAndSupportSettings(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; /** * Get the lockout settings * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. */ getLockoutSettings(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; /** * Get the security settings * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. */ getSecuritySettings(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; /** * Set the security settings * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. */ setSecuritySettings(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; /** * Set Organization Settings * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. * * Sets the settings specific to an organization. * Organization scopes usernames defines that the usernames have to be unique in the organization scope, can only be changed if the usernames of the users are unique in the scope. * * Required permissions: * - `iam.policy.write` */ setOrganizationSettings(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; /** * Delete Organization Settings * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. * * Delete the settings specific to an organization. * * Required permissions: * - `iam.policy.delete` */ deleteOrganizationSettings(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; /** * List Organization Settings * * Deprecated: please move to the corresponding endpoint under settings service v2. This endpoint will be removed with the next major version of ZITADEL. * * Returns a list of organization settings. * * Required permission: * - `iam.policy.read` * - `org.policy.read` */ listOrganizationSettings(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; } type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Long ? string | number | Long : T extends globalThis.Array ? globalThis.Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export interface MessageFns { 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; fromPartial(object: DeepPartial): T; } export {};