@zitadel/node
Version:
Library for API access to ZITADEL. Provides compiled gRPC service clients and helpers for applications and service accounts.
3,126 lines • 108 kB
JavaScript
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v2.7.5
// protoc unknown
// source: zitadel/settings/v2beta/settings_service.proto
/* eslint-disable */
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
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 { PasswordComplexitySettings, PasswordExpirySettings } from "./password_settings.js";
import { EmbeddedIframeSettings, SecuritySettings } from "./security_settings.js";
export const protobufPackage = "zitadel.settings.v2beta";
function createBaseGetLoginSettingsRequest() {
return { ctx: undefined };
}
export const GetLoginSettingsRequest = {
encode(message, writer = new BinaryWriter()) {
if (message.ctx !== undefined) {
RequestContext.encode(message.ctx, writer.uint32(10).fork()).join();
}
return writer;
},
decode(input, length) {
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
const end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseGetLoginSettingsRequest();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1: {
if (tag !== 10) {
break;
}
message.ctx = RequestContext.decode(reader, reader.uint32());
continue;
}
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skip(tag & 7);
}
return message;
},
fromJSON(object) {
return { ctx: isSet(object.ctx) ? RequestContext.fromJSON(object.ctx) : undefined };
},
toJSON(message) {
const obj = {};
if (message.ctx !== undefined) {
obj.ctx = RequestContext.toJSON(message.ctx);
}
return obj;
},
create(base) {
return GetLoginSettingsRequest.fromPartial(base ?? {});
},
fromPartial(object) {
const message = createBaseGetLoginSettingsRequest();
message.ctx = (object.ctx !== undefined && object.ctx !== null)
? RequestContext.fromPartial(object.ctx)
: undefined;
return message;
},
};
function createBaseGetLoginSettingsResponse() {
return { details: undefined, settings: undefined };
}
export const GetLoginSettingsResponse = {
encode(message, writer = new BinaryWriter()) {
if (message.details !== undefined) {
Details.encode(message.details, writer.uint32(10).fork()).join();
}
if (message.settings !== undefined) {
LoginSettings.encode(message.settings, writer.uint32(18).fork()).join();
}
return writer;
},
decode(input, length) {
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
const end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseGetLoginSettingsResponse();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1: {
if (tag !== 10) {
break;
}
message.details = Details.decode(reader, reader.uint32());
continue;
}
case 2: {
if (tag !== 18) {
break;
}
message.settings = LoginSettings.decode(reader, reader.uint32());
continue;
}
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skip(tag & 7);
}
return message;
},
fromJSON(object) {
return {
details: isSet(object.details) ? Details.fromJSON(object.details) : undefined,
settings: isSet(object.settings) ? LoginSettings.fromJSON(object.settings) : undefined,
};
},
toJSON(message) {
const obj = {};
if (message.details !== undefined) {
obj.details = Details.toJSON(message.details);
}
if (message.settings !== undefined) {
obj.settings = LoginSettings.toJSON(message.settings);
}
return obj;
},
create(base) {
return GetLoginSettingsResponse.fromPartial(base ?? {});
},
fromPartial(object) {
const message = createBaseGetLoginSettingsResponse();
message.details = (object.details !== undefined && object.details !== null)
? Details.fromPartial(object.details)
: undefined;
message.settings = (object.settings !== undefined && object.settings !== null)
? LoginSettings.fromPartial(object.settings)
: undefined;
return message;
},
};
function createBaseGetPasswordComplexitySettingsRequest() {
return { ctx: undefined };
}
export const GetPasswordComplexitySettingsRequest = {
encode(message, writer = new BinaryWriter()) {
if (message.ctx !== undefined) {
RequestContext.encode(message.ctx, writer.uint32(10).fork()).join();
}
return writer;
},
decode(input, length) {
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
const end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseGetPasswordComplexitySettingsRequest();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1: {
if (tag !== 10) {
break;
}
message.ctx = RequestContext.decode(reader, reader.uint32());
continue;
}
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skip(tag & 7);
}
return message;
},
fromJSON(object) {
return { ctx: isSet(object.ctx) ? RequestContext.fromJSON(object.ctx) : undefined };
},
toJSON(message) {
const obj = {};
if (message.ctx !== undefined) {
obj.ctx = RequestContext.toJSON(message.ctx);
}
return obj;
},
create(base) {
return GetPasswordComplexitySettingsRequest.fromPartial(base ?? {});
},
fromPartial(object) {
const message = createBaseGetPasswordComplexitySettingsRequest();
message.ctx = (object.ctx !== undefined && object.ctx !== null)
? RequestContext.fromPartial(object.ctx)
: undefined;
return message;
},
};
function createBaseGetPasswordComplexitySettingsResponse() {
return { details: undefined, settings: undefined };
}
export const GetPasswordComplexitySettingsResponse = {
encode(message, writer = new BinaryWriter()) {
if (message.details !== undefined) {
Details.encode(message.details, writer.uint32(10).fork()).join();
}
if (message.settings !== undefined) {
PasswordComplexitySettings.encode(message.settings, writer.uint32(18).fork()).join();
}
return writer;
},
decode(input, length) {
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
const end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseGetPasswordComplexitySettingsResponse();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1: {
if (tag !== 10) {
break;
}
message.details = Details.decode(reader, reader.uint32());
continue;
}
case 2: {
if (tag !== 18) {
break;
}
message.settings = PasswordComplexitySettings.decode(reader, reader.uint32());
continue;
}
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skip(tag & 7);
}
return message;
},
fromJSON(object) {
return {
details: isSet(object.details) ? Details.fromJSON(object.details) : undefined,
settings: isSet(object.settings) ? PasswordComplexitySettings.fromJSON(object.settings) : undefined,
};
},
toJSON(message) {
const obj = {};
if (message.details !== undefined) {
obj.details = Details.toJSON(message.details);
}
if (message.settings !== undefined) {
obj.settings = PasswordComplexitySettings.toJSON(message.settings);
}
return obj;
},
create(base) {
return GetPasswordComplexitySettingsResponse.fromPartial(base ?? {});
},
fromPartial(object) {
const message = createBaseGetPasswordComplexitySettingsResponse();
message.details = (object.details !== undefined && object.details !== null)
? Details.fromPartial(object.details)
: undefined;
message.settings = (object.settings !== undefined && object.settings !== null)
? PasswordComplexitySettings.fromPartial(object.settings)
: undefined;
return message;
},
};
function createBaseGetPasswordExpirySettingsRequest() {
return { ctx: undefined };
}
export const GetPasswordExpirySettingsRequest = {
encode(message, writer = new BinaryWriter()) {
if (message.ctx !== undefined) {
RequestContext.encode(message.ctx, writer.uint32(10).fork()).join();
}
return writer;
},
decode(input, length) {
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
const end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseGetPasswordExpirySettingsRequest();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1: {
if (tag !== 10) {
break;
}
message.ctx = RequestContext.decode(reader, reader.uint32());
continue;
}
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skip(tag & 7);
}
return message;
},
fromJSON(object) {
return { ctx: isSet(object.ctx) ? RequestContext.fromJSON(object.ctx) : undefined };
},
toJSON(message) {
const obj = {};
if (message.ctx !== undefined) {
obj.ctx = RequestContext.toJSON(message.ctx);
}
return obj;
},
create(base) {
return GetPasswordExpirySettingsRequest.fromPartial(base ?? {});
},
fromPartial(object) {
const message = createBaseGetPasswordExpirySettingsRequest();
message.ctx = (object.ctx !== undefined && object.ctx !== null)
? RequestContext.fromPartial(object.ctx)
: undefined;
return message;
},
};
function createBaseGetPasswordExpirySettingsResponse() {
return { details: undefined, settings: undefined };
}
export const GetPasswordExpirySettingsResponse = {
encode(message, writer = new BinaryWriter()) {
if (message.details !== undefined) {
Details.encode(message.details, writer.uint32(10).fork()).join();
}
if (message.settings !== undefined) {
PasswordExpirySettings.encode(message.settings, writer.uint32(18).fork()).join();
}
return writer;
},
decode(input, length) {
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
const end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseGetPasswordExpirySettingsResponse();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1: {
if (tag !== 10) {
break;
}
message.details = Details.decode(reader, reader.uint32());
continue;
}
case 2: {
if (tag !== 18) {
break;
}
message.settings = PasswordExpirySettings.decode(reader, reader.uint32());
continue;
}
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skip(tag & 7);
}
return message;
},
fromJSON(object) {
return {
details: isSet(object.details) ? Details.fromJSON(object.details) : undefined,
settings: isSet(object.settings) ? PasswordExpirySettings.fromJSON(object.settings) : undefined,
};
},
toJSON(message) {
const obj = {};
if (message.details !== undefined) {
obj.details = Details.toJSON(message.details);
}
if (message.settings !== undefined) {
obj.settings = PasswordExpirySettings.toJSON(message.settings);
}
return obj;
},
create(base) {
return GetPasswordExpirySettingsResponse.fromPartial(base ?? {});
},
fromPartial(object) {
const message = createBaseGetPasswordExpirySettingsResponse();
message.details = (object.details !== undefined && object.details !== null)
? Details.fromPartial(object.details)
: undefined;
message.settings = (object.settings !== undefined && object.settings !== null)
? PasswordExpirySettings.fromPartial(object.settings)
: undefined;
return message;
},
};
function createBaseGetBrandingSettingsRequest() {
return { ctx: undefined };
}
export const GetBrandingSettingsRequest = {
encode(message, writer = new BinaryWriter()) {
if (message.ctx !== undefined) {
RequestContext.encode(message.ctx, writer.uint32(10).fork()).join();
}
return writer;
},
decode(input, length) {
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
const end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseGetBrandingSettingsRequest();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1: {
if (tag !== 10) {
break;
}
message.ctx = RequestContext.decode(reader, reader.uint32());
continue;
}
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skip(tag & 7);
}
return message;
},
fromJSON(object) {
return { ctx: isSet(object.ctx) ? RequestContext.fromJSON(object.ctx) : undefined };
},
toJSON(message) {
const obj = {};
if (message.ctx !== undefined) {
obj.ctx = RequestContext.toJSON(message.ctx);
}
return obj;
},
create(base) {
return GetBrandingSettingsRequest.fromPartial(base ?? {});
},
fromPartial(object) {
const message = createBaseGetBrandingSettingsRequest();
message.ctx = (object.ctx !== undefined && object.ctx !== null)
? RequestContext.fromPartial(object.ctx)
: undefined;
return message;
},
};
function createBaseGetBrandingSettingsResponse() {
return { details: undefined, settings: undefined };
}
export const GetBrandingSettingsResponse = {
encode(message, writer = new BinaryWriter()) {
if (message.details !== undefined) {
Details.encode(message.details, writer.uint32(10).fork()).join();
}
if (message.settings !== undefined) {
BrandingSettings.encode(message.settings, writer.uint32(18).fork()).join();
}
return writer;
},
decode(input, length) {
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
const end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseGetBrandingSettingsResponse();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1: {
if (tag !== 10) {
break;
}
message.details = Details.decode(reader, reader.uint32());
continue;
}
case 2: {
if (tag !== 18) {
break;
}
message.settings = BrandingSettings.decode(reader, reader.uint32());
continue;
}
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skip(tag & 7);
}
return message;
},
fromJSON(object) {
return {
details: isSet(object.details) ? Details.fromJSON(object.details) : undefined,
settings: isSet(object.settings) ? BrandingSettings.fromJSON(object.settings) : undefined,
};
},
toJSON(message) {
const obj = {};
if (message.details !== undefined) {
obj.details = Details.toJSON(message.details);
}
if (message.settings !== undefined) {
obj.settings = BrandingSettings.toJSON(message.settings);
}
return obj;
},
create(base) {
return GetBrandingSettingsResponse.fromPartial(base ?? {});
},
fromPartial(object) {
const message = createBaseGetBrandingSettingsResponse();
message.details = (object.details !== undefined && object.details !== null)
? Details.fromPartial(object.details)
: undefined;
message.settings = (object.settings !== undefined && object.settings !== null)
? BrandingSettings.fromPartial(object.settings)
: undefined;
return message;
},
};
function createBaseGetDomainSettingsRequest() {
return { ctx: undefined };
}
export const GetDomainSettingsRequest = {
encode(message, writer = new BinaryWriter()) {
if (message.ctx !== undefined) {
RequestContext.encode(message.ctx, writer.uint32(10).fork()).join();
}
return writer;
},
decode(input, length) {
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
const end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseGetDomainSettingsRequest();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1: {
if (tag !== 10) {
break;
}
message.ctx = RequestContext.decode(reader, reader.uint32());
continue;
}
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skip(tag & 7);
}
return message;
},
fromJSON(object) {
return { ctx: isSet(object.ctx) ? RequestContext.fromJSON(object.ctx) : undefined };
},
toJSON(message) {
const obj = {};
if (message.ctx !== undefined) {
obj.ctx = RequestContext.toJSON(message.ctx);
}
return obj;
},
create(base) {
return GetDomainSettingsRequest.fromPartial(base ?? {});
},
fromPartial(object) {
const message = createBaseGetDomainSettingsRequest();
message.ctx = (object.ctx !== undefined && object.ctx !== null)
? RequestContext.fromPartial(object.ctx)
: undefined;
return message;
},
};
function createBaseGetDomainSettingsResponse() {
return { details: undefined, settings: undefined };
}
export const GetDomainSettingsResponse = {
encode(message, writer = new BinaryWriter()) {
if (message.details !== undefined) {
Details.encode(message.details, writer.uint32(10).fork()).join();
}
if (message.settings !== undefined) {
DomainSettings.encode(message.settings, writer.uint32(18).fork()).join();
}
return writer;
},
decode(input, length) {
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
const end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseGetDomainSettingsResponse();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1: {
if (tag !== 10) {
break;
}
message.details = Details.decode(reader, reader.uint32());
continue;
}
case 2: {
if (tag !== 18) {
break;
}
message.settings = DomainSettings.decode(reader, reader.uint32());
continue;
}
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skip(tag & 7);
}
return message;
},
fromJSON(object) {
return {
details: isSet(object.details) ? Details.fromJSON(object.details) : undefined,
settings: isSet(object.settings) ? DomainSettings.fromJSON(object.settings) : undefined,
};
},
toJSON(message) {
const obj = {};
if (message.details !== undefined) {
obj.details = Details.toJSON(message.details);
}
if (message.settings !== undefined) {
obj.settings = DomainSettings.toJSON(message.settings);
}
return obj;
},
create(base) {
return GetDomainSettingsResponse.fromPartial(base ?? {});
},
fromPartial(object) {
const message = createBaseGetDomainSettingsResponse();
message.details = (object.details !== undefined && object.details !== null)
? Details.fromPartial(object.details)
: undefined;
message.settings = (object.settings !== undefined && object.settings !== null)
? DomainSettings.fromPartial(object.settings)
: undefined;
return message;
},
};
function createBaseGetLegalAndSupportSettingsRequest() {
return { ctx: undefined };
}
export const GetLegalAndSupportSettingsRequest = {
encode(message, writer = new BinaryWriter()) {
if (message.ctx !== undefined) {
RequestContext.encode(message.ctx, writer.uint32(10).fork()).join();
}
return writer;
},
decode(input, length) {
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
const end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseGetLegalAndSupportSettingsRequest();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1: {
if (tag !== 10) {
break;
}
message.ctx = RequestContext.decode(reader, reader.uint32());
continue;
}
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skip(tag & 7);
}
return message;
},
fromJSON(object) {
return { ctx: isSet(object.ctx) ? RequestContext.fromJSON(object.ctx) : undefined };
},
toJSON(message) {
const obj = {};
if (message.ctx !== undefined) {
obj.ctx = RequestContext.toJSON(message.ctx);
}
return obj;
},
create(base) {
return GetLegalAndSupportSettingsRequest.fromPartial(base ?? {});
},
fromPartial(object) {
const message = createBaseGetLegalAndSupportSettingsRequest();
message.ctx = (object.ctx !== undefined && object.ctx !== null)
? RequestContext.fromPartial(object.ctx)
: undefined;
return message;
},
};
function createBaseGetLegalAndSupportSettingsResponse() {
return { details: undefined, settings: undefined };
}
export const GetLegalAndSupportSettingsResponse = {
encode(message, writer = new BinaryWriter()) {
if (message.details !== undefined) {
Details.encode(message.details, writer.uint32(10).fork()).join();
}
if (message.settings !== undefined) {
LegalAndSupportSettings.encode(message.settings, writer.uint32(18).fork()).join();
}
return writer;
},
decode(input, length) {
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
const end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseGetLegalAndSupportSettingsResponse();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1: {
if (tag !== 10) {
break;
}
message.details = Details.decode(reader, reader.uint32());
continue;
}
case 2: {
if (tag !== 18) {
break;
}
message.settings = LegalAndSupportSettings.decode(reader, reader.uint32());
continue;
}
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skip(tag & 7);
}
return message;
},
fromJSON(object) {
return {
details: isSet(object.details) ? Details.fromJSON(object.details) : undefined,
settings: isSet(object.settings) ? LegalAndSupportSettings.fromJSON(object.settings) : undefined,
};
},
toJSON(message) {
const obj = {};
if (message.details !== undefined) {
obj.details = Details.toJSON(message.details);
}
if (message.settings !== undefined) {
obj.settings = LegalAndSupportSettings.toJSON(message.settings);
}
return obj;
},
create(base) {
return GetLegalAndSupportSettingsResponse.fromPartial(base ?? {});
},
fromPartial(object) {
const message = createBaseGetLegalAndSupportSettingsResponse();
message.details = (object.details !== undefined && object.details !== null)
? Details.fromPartial(object.details)
: undefined;
message.settings = (object.settings !== undefined && object.settings !== null)
? LegalAndSupportSettings.fromPartial(object.settings)
: undefined;
return message;
},
};
function createBaseGetLockoutSettingsRequest() {
return { ctx: undefined };
}
export const GetLockoutSettingsRequest = {
encode(message, writer = new BinaryWriter()) {
if (message.ctx !== undefined) {
RequestContext.encode(message.ctx, writer.uint32(10).fork()).join();
}
return writer;
},
decode(input, length) {
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
const end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseGetLockoutSettingsRequest();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1: {
if (tag !== 10) {
break;
}
message.ctx = RequestContext.decode(reader, reader.uint32());
continue;
}
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skip(tag & 7);
}
return message;
},
fromJSON(object) {
return { ctx: isSet(object.ctx) ? RequestContext.fromJSON(object.ctx) : undefined };
},
toJSON(message) {
const obj = {};
if (message.ctx !== undefined) {
obj.ctx = RequestContext.toJSON(message.ctx);
}
return obj;
},
create(base) {
return GetLockoutSettingsRequest.fromPartial(base ?? {});
},
fromPartial(object) {
const message = createBaseGetLockoutSettingsRequest();
message.ctx = (object.ctx !== undefined && object.ctx !== null)
? RequestContext.fromPartial(object.ctx)
: undefined;
return message;
},
};
function createBaseGetLockoutSettingsResponse() {
return { details: undefined, settings: undefined };
}
export const GetLockoutSettingsResponse = {
encode(message, writer = new BinaryWriter()) {
if (message.details !== undefined) {
Details.encode(message.details, writer.uint32(10).fork()).join();
}
if (message.settings !== undefined) {
LockoutSettings.encode(message.settings, writer.uint32(18).fork()).join();
}
return writer;
},
decode(input, length) {
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
const end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseGetLockoutSettingsResponse();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1: {
if (tag !== 10) {
break;
}
message.details = Details.decode(reader, reader.uint32());
continue;
}
case 2: {
if (tag !== 18) {
break;
}
message.settings = LockoutSettings.decode(reader, reader.uint32());
continue;
}
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skip(tag & 7);
}
return message;
},
fromJSON(object) {
return {
details: isSet(object.details) ? Details.fromJSON(object.details) : undefined,
settings: isSet(object.settings) ? LockoutSettings.fromJSON(object.settings) : undefined,
};
},
toJSON(message) {
const obj = {};
if (message.details !== undefined) {
obj.details = Details.toJSON(message.details);
}
if (message.settings !== undefined) {
obj.settings = LockoutSettings.toJSON(message.settings);
}
return obj;
},
create(base) {
return GetLockoutSettingsResponse.fromPartial(base ?? {});
},
fromPartial(object) {
const message = createBaseGetLockoutSettingsResponse();
message.details = (object.details !== undefined && object.details !== null)
? Details.fromPartial(object.details)
: undefined;
message.settings = (object.settings !== undefined && object.settings !== null)
? LockoutSettings.fromPartial(object.settings)
: undefined;
return message;
},
};
function createBaseGetActiveIdentityProvidersRequest() {
return { ctx: undefined };
}
export const GetActiveIdentityProvidersRequest = {
encode(message, writer = new BinaryWriter()) {
if (message.ctx !== undefined) {
RequestContext.encode(message.ctx, writer.uint32(10).fork()).join();
}
return writer;
},
decode(input, length) {
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
const end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseGetActiveIdentityProvidersRequest();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1: {
if (tag !== 10) {
break;
}
message.ctx = RequestContext.decode(reader, reader.uint32());
continue;
}
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skip(tag & 7);
}
return message;
},
fromJSON(object) {
return { ctx: isSet(object.ctx) ? RequestContext.fromJSON(object.ctx) : undefined };
},
toJSON(message) {
const obj = {};
if (message.ctx !== undefined) {
obj.ctx = RequestContext.toJSON(message.ctx);
}
return obj;
},
create(base) {
return GetActiveIdentityProvidersRequest.fromPartial(base ?? {});
},
fromPartial(object) {
const message = createBaseGetActiveIdentityProvidersRequest();
message.ctx = (object.ctx !== undefined && object.ctx !== null)
? RequestContext.fromPartial(object.ctx)
: undefined;
return message;
},
};
function createBaseGetActiveIdentityProvidersResponse() {
return { details: undefined, identityProviders: [] };
}
export const GetActiveIdentityProvidersResponse = {
encode(message, writer = new BinaryWriter()) {
if (message.details !== undefined) {
ListDetails.encode(message.details, writer.uint32(10).fork()).join();
}
for (const v of message.identityProviders) {
IdentityProvider.encode(v, writer.uint32(18).fork()).join();
}
return writer;
},
decode(input, length) {
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
const end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseGetActiveIdentityProvidersResponse();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1: {
if (tag !== 10) {
break;
}
message.details = ListDetails.decode(reader, reader.uint32());
continue;
}
case 2: {
if (tag !== 18) {
break;
}
message.identityProviders.push(IdentityProvider.decode(reader, reader.uint32()));
continue;
}
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skip(tag & 7);
}
return message;
},
fromJSON(object) {
return {
details: isSet(object.details) ? ListDetails.fromJSON(object.details) : undefined,
identityProviders: globalThis.Array.isArray(object?.identityProviders)
? object.identityProviders.map((e) => IdentityProvider.fromJSON(e))
: [],
};
},
toJSON(message) {
const obj = {};
if (message.details !== undefined) {
obj.details = ListDetails.toJSON(message.details);
}
if (message.identityProviders?.length) {
obj.identityProviders = message.identityProviders.map((e) => IdentityProvider.toJSON(e));
}
return obj;
},
create(base) {
return GetActiveIdentityProvidersResponse.fromPartial(base ?? {});
},
fromPartial(object) {
const message = createBaseGetActiveIdentityProvidersResponse();
message.details = (object.details !== undefined && object.details !== null)
? ListDetails.fromPartial(object.details)
: undefined;
message.identityProviders = object.identityProviders?.map((e) => IdentityProvider.fromPartial(e)) || [];
return message;
},
};
function createBaseGetGeneralSettingsRequest() {
return {};
}
export const GetGeneralSettingsRequest = {
encode(_, writer = new BinaryWriter()) {
return writer;
},
decode(input, length) {
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
const end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseGetGeneralSettingsRequest();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skip(tag & 7);
}
return message;
},
fromJSON(_) {
return {};
},
toJSON(_) {
const obj = {};
return obj;
},
create(base) {
return GetGeneralSettingsRequest.fromPartial(base ?? {});
},
fromPartial(_) {
const message = createBaseGetGeneralSettingsRequest();
return message;
},
};
function createBaseGetGeneralSettingsResponse() {
return { defaultOrgId: "", defaultLanguage: "", supportedLanguages: [] };
}
export const GetGeneralSettingsResponse = {
encode(message, writer = new BinaryWriter()) {
if (message.defaultOrgId !== "") {
writer.uint32(10).string(message.defaultOrgId);
}
if (message.defaultLanguage !== "") {
writer.uint32(18).string(message.defaultLanguage);
}
for (const v of message.supportedLanguages) {
writer.uint32(26).string(v);
}
return writer;
},
decode(input, length) {
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
const end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseGetGeneralSettingsResponse();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1: {
if (tag !== 10) {
break;
}
message.defaultOrgId = reader.string();
continue;
}
case 2: {
if (tag !== 18) {
break;
}
message.defaultLanguage = reader.string();
continue;
}
case 3: {
if (tag !== 26) {
break;
}
message.supportedLanguages.push(reader.string());
continue;
}
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skip(tag & 7);
}
return message;
},
fromJSON(object) {
return {
defaultOrgId: isSet(object.defaultOrgId) ? globalThis.String(object.defaultOrgId) : "",
defaultLanguage: isSet(object.defaultLanguage) ? globalThis.String(object.defaultLanguage) : "",
supportedLanguages: globalThis.Array.isArray(object?.supportedLanguages)
? object.supportedLanguages.map((e) => globalThis.String(e))
: [],
};
},
toJSON(message) {
const obj = {};
if (message.defaultOrgId !== "") {
obj.defaultOrgId = message.defaultOrgId;
}
if (message.defaultLanguage !== "") {
obj.defaultLanguage = message.defaultLanguage;
}
if (message.supportedLanguages?.length) {
obj.supportedLanguages = message.supportedLanguages;
}
return obj;
},
create(base) {
return GetGeneralSettingsResponse.fromPartial(base ?? {});
},
fromPartial(object) {
const message = createBaseGetGeneralSettingsResponse();
message.defaultOrgId = object.defaultOrgId ?? "";
message.defaultLanguage = object.defaultLanguage ?? "";
message.supportedLanguages = object.supportedLanguages?.map((e) => e) || [];
return message;
},
};
function createBaseGetSecuritySettingsRequest() {
return {};
}
export const GetSecuritySettingsRequest = {
encode(_, writer = new BinaryWriter()) {
return writer;
},
decode(input, length) {
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
const end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseGetSecuritySettingsRequest();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skip(tag & 7);
}
return message;
},
fromJSON(_) {
return {};
},
toJSON(_) {
const obj = {};
return obj;
},
create(base) {
return GetSecuritySettingsRequest.fromPartial(base ?? {});
},
fromPartial(_) {
const message = createBaseGetSecuritySettingsRequest();
return message;
},
};
function createBaseGetSecuritySettingsResponse() {
return { details: undefined, settings: undefined };
}
export const GetSecuritySettingsResponse = {
encode(message, writer = new BinaryWriter()) {
if (message.details !== undefined) {
Details.encode(message.details, writer.uint32(10).fork()).join();
}
if (message.settings !== undefined) {
SecuritySettings.encode(message.settings, writer.uint32(18).fork()).join();
}
return writer;
},
decode(input, length) {
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
const end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseGetSecuritySettingsResponse();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1: {
if (tag !== 10) {
break;
}
message.details = Details.decode(reader, reader.uint32());
continue;
}
case 2: {
if (tag !== 18) {
break;
}
message.settings = SecuritySettings.decode(reader, reader.uint32());
continue;
}
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skip(tag & 7);
}
return message;
},
fromJSON(object) {
return {
details: isSet(object.details) ? Details.fromJSON(object.details) : undefined,
settings: isSet(object.settings) ? SecuritySettings.fromJSON(object.settings) : undefined,
};
},
toJSON(message) {
const obj = {};
if (message.details !== undefined) {
obj.details = Details.toJSON(message.details);
}
if (message.settings !== undefined) {
obj.settings = SecuritySettings.toJSON(message.settings);
}
return obj;
},
create(base) {
return GetSecuritySettingsResponse.fromPartial(base ?? {});
},
fromPartial(object) {
const message = createBaseGetSecuritySettingsResponse();
message.details = (object.details !== undefined && object.details !== null)
? Details.fromPartial(object.details)
: undefined;
message.settings = (object.settings !== undefined && object.settings !== null)
? SecuritySettings.fromPartial(object.settings)
: undefined;
return message;
},
};
function createBaseSetSecuritySettingsRequest() {
return { embeddedIframe: undefined, enableImpersonation: false };
}
export const SetSecuritySettingsRequest = {
encode(message, writer = new BinaryWriter()) {
if (message.embeddedIframe !== undefined) {
EmbeddedIframeSettings.encode(message.embeddedIframe, writer.uint32(10).fork()).join();
}
if (message.enableImpersonation !== false) {
writer.uint32(16).bool(message.enableImpersonation);
}
return writer;
},
decode(input, length) {
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
const end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseSetSecuritySettingsRequest();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1: {
if (tag !== 10) {
break;
}
message.embeddedIframe = EmbeddedIframeSettings.decode(reader, reader.uint32());
continue;
}
case 2: {
if (tag !== 16) {
break;
}
message.enableImpersonation = reader.bool();
continue;
}
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skip(tag & 7);
}
return message;
},
fromJSON(object) {
return {
embeddedIframe: isSet(object.embeddedIframe) ? EmbeddedIframeSettings.fromJSON(object.embeddedIframe) : undefined,
enableImpersonation: isSet(object.enableImpersonation) ? globalThis.Boolean(object.enableImpersonation) : false,
};
},
toJSON(message) {
const obj = {};
if (message.embeddedIframe !== undefined) {
obj.embeddedIframe = EmbeddedIframeSettings.toJSON(message.embeddedIframe);
}
if (message.enableImpersonation !== false) {
obj.enableImpersonation = message.enableImpersonation;
}
return obj;
},
create(base) {
return SetSecuritySettingsRequest.fromPartial(base ?? {});
},
fromPartial(object) {
const message = createBaseSetSecuritySettingsRequest();
message.embeddedIframe = (object.embeddedIframe !== undefined && object.embeddedIframe !== null)
? EmbeddedIframeSettings.fromPartial(object.embeddedIframe)
: undefined;
message.enableImpersonation = object.enableImpersonation ?? false;
return message;
},
};
function createBaseSetSecuritySettingsResponse() {
return { details: undefined };
}
export const SetSecuritySettingsResponse = {
encode(message, writer = new BinaryWriter()) {
if (message.details !== undefined) {
Details.encode(message.details, writer.uint32(10).fork()).join();
}
return writer;
},
decode(input, length) {
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
const end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseSetSecuritySettingsResponse();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1: {
if (tag !== 10) {
break;
}
message.details = Details.decode(reader, reader.uint32());
continue;
}
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skip(tag & 7);
}
return message;
},
fromJSON(object) {
return { details: isSet(object.details) ? Details.fromJSON(object.details) : undefined };
},
toJSON(message) {
const obj = {};
if (message.details !== undefined) {
obj.details = Details.toJSON(message.details);
}
return obj;
},
create(base) {
return SetSecuritySettingsResponse.fromPartial(base ?? {});
},
fromPartial(object) {
const message = createBaseSetSecuritySettingsResponse();
message.details = (object.details !== undefined && object.details !== null)
? Details.fromPartial(object.details)
: undefined;
return message;
},
};
export const SettingsServiceDefinition = {
name: "SettingsService",
fullName: "zitadel.settings.v2beta.SettingsService",
methods: {
/** Get basic information over the instance */
getGeneralSettings: {
name: "GetGeneralSettings",
requestType: GetGeneralSettingsRequest,
requestStream: false,
responseType: GetGeneralSettingsResponse,
responseStream: false,
options: {
_unknownFields: {
8338: [
Buffer.from([
126,
18,
39,
71,
101,
116,
32,
98,
97,
115,
105,
99,
32,
105,
110,
102,
111,
114,
109,
97,
116,
105,
111,
110,
32,
111,
118,
101,
114,
32,
116,
104,
101,
32,
105,
110,
115,
116,
97,
110,
99,
101,
26,
70,
82,
101,
116,
117,
114,
110,
32,
116,
104,
101,
32,
98,
97,
115,
105,
99,
32,
105,
110,
102,
111,
114,
109,
97,
116,
105,
111,
110,
32,
111,
102,
32,
116,
104,
101,
32,
105,
110,
115,
116,
97,
110,
99,
101,
32,
102,
111,
114,
32,
116,
104,
101,
32,
114,
101,
113,
117,
101,
115,
116,
101,
100,
32,
99,
111,
110,
116,
101,
120,
116,
74,
11,
10,
3,
50,
48,
48,
18,
4,
10,
2,
79,
75,
]),
],
400010: [Buffer.from([15, 10, 13, 10, 11, 112, 111, 108, 105, 99, 121, 46, 114, 101, 97, 100])],
578365826: [
Buffer.from([18, 18, 16, 47, 118, 50, 98, 101, 116, 97, 47, 115, 101, 116, 116, 105, 110, 103, 115]),
],
},
},
},
/** Get the login settings */
getLoginSettings: {
name: "GetLoginSettings",
requestType: GetLoginSettingsRequest,
requestStream: false,
responseType: GetLoginSettingsResponse,
responseStream: false,
options: {
_unknownFields: {
8338: [
Buffer.from([
84,
18,
22,
71,
101,
116,
32,
116,
104,
101,
32,
108,
111,
103,
105,
110,
32,
115,
101,
116,
116,
105,
110,
103,
115,
26,
45,
82,
101,
116,
117,
114,
110,
32,
116,
104,
101,
32,
115,
101,
116,
116,
105,
110,
103,
115,
32,
102,
111,
114,
32,
116,
104,
101,
32,
114,
101,
113,
117,
101,
115,
116,
101,
100,
32,
99,
111,
110,
116,
101,
120,
116,
74,
11,
10,
3,
50,
48,
48,
18,
4,
10,
2,
79,
75,
]),
],
400010: [Buffer.from([15, 10, 13, 10, 11, 112, 111, 108, 105, 99, 121, 46, 114, 101, 97, 100])],
578365826: [
Buffer.from([
24,
18,
22,
47,
118,
50,
98,
101,
116,
97,
47,
115,
101,
116,
116,
105,
110,
103,
115,
47,
108,
111,
103,
105,
110,
]),
],
},
},
},
/** Get the current active identity providers */
getActiveIdentityProviders: {
name: "GetActiveIdentityProviders",
requestType: GetActiveIdentityProvidersRequest,
requestStream: false,
responseType: GetActiveIdentityProvidersResponse,
responseStream: false,
options: {
_unknownFields: {
8338: [
Buffer.from([
128,
1,
18,
41,
71,
101,
116,
32,
116,
104,
101,
32,
99,
117,
114,
114,
101,
110,
116,
32,
97,
99,
116,
105,
118,
101,
32,
105,
100,
101,
110,
116,
105,
116,
121,
32,
112,
114,
111,
118,
105,
100,
101,
114,
115,
26,
70,
82,
101,
116,
117,
114,
110,
32,
116,
104,
101,
32,
99,
117,
114,
114,
101,
110,
116,
32,
97,
99,
116,
105,
118,
101,
32,
105,
100,
101,
110,
116,
105,
116,
121,
32,
112,
114,
111,
118,
105,
100,
101,
114,
115,
32,
102,
111,
114,
32,
116,
104,
101,
32,
114,
101,
113,
117,
101,
115,
116,
101,
100,
32,
99,
111,
110,
116,
101,
120,
116,
74,
11,
10,
3,
50,
48,
48,
18,
4,
10,
2,
79,
75,
]),
],
400010: [Buffer.from([15, 10, 13, 10, 11, 112, 111, 108, 105, 99, 121, 46, 114, 101, 97, 100])],
578365826: [
Buffer.from([
29,
18,
27,
47,
118,
50,
98,
101,
116,
97,
47,
115,
101,
116,
116,
105,
110,
103,
115,
47,
108,
111,
103,
105,
110,
47,
105,
100,
112,
115,
]),
],
},
},
},
/** Get the password complexity settings */
getPasswordComplexitySettings: {
name: "GetPasswordComplexitySettings",
requestType: GetPasswordComplexitySettingsRequest,
requestStream: false,
responseType: GetPasswordComplexitySettingsResponse,
responseStream: false,
options: {
_unknownFields: {
8338: [
Buffer.from([
118,
18,
36,
71,
101,
116,
32,
116,
104,
101,
32,
112,
97,
115,
115,
119,
111,
114,
100,
32,
99,
111,
109,
112,
108,
101,
120,
105,
116,
121,
32,
115,
101,
116,
116,
105,
110,
103,
115,
26,
65,
82,
101,
116,
117,
114,
110,
32,
116,
104,
101,
32,
112,
97,
115,
115,
119,
111,
114,
100,
32,
99,
111,
109,
112,
108,
101,
120,
105,
116,
121,
32,
115,
101,
116,
116,
105,
110,
103,
115,
32,
102,
111,
114,
32,
116,
104,
101,
32,
114,
101,
113,
117,
101,
115,
116,
101,
100,
32,
99,
111,
110,
116,
101,
120,
116,
74,
11,
10,
3,
50,
48,
48,
18,
4,
10,
2,
79,
75,
]),
],
400010: [Buffer.from([15, 10, 13, 10, 11, 112, 111, 108, 105, 99, 121, 46, 114, 101, 97, 100])],
578365826: [
Buffer.from([
38,
18,
36,
47,
118,
50,
98,
101,
116,
97,
47,
115,
101,
116,
116,
105,
110,
103,
115,
47,
112,
97,
115,
115,
119,
111,
114,
100,
47,
99,
111,
109,
112,
108,
101,
120,
105,
116,
121,
]),
],
},
},
},
/** Get the password expiry settings */
getPasswordExpirySettings: {
name: "GetPasswordExpirySettings",
requestType: GetPasswordExpirySettingsRequest,
requestStream: false,
responseType: GetPasswordExpirySettingsResponse,
responseStream: false,
options: {
_unknownFields: {
8338: [
Buffer.from([
110,
18,
32,
71,
101,
116,
32,
116,
104,
101,
32,
112,
97,
115,
115,
119,
111,
114,
100,
32,
101,
120,
112,
105,
114,
121,
32,
115,
101,
116,
116,
105,
110,
103,
115,
26,
61,
82,
101,
116,
117,
114,
110,
32,
116,
104,
101,
32,
112,
97,
115,
115,
119,
111,
114,
100,
32,
101,
120,
112,
105,
114,
121,
32,
115,
101,
116,
116,
105,
110,
103,
115,
32,
102,
111,
114,
32,
116,
104,
101,
32,
114,
101,
113,
117,
101,
115,
116,
101,
100,
32,
99,
111,
110,
116,
101,
120,
116,
74,
11,
10,
3,
50,
48,
48,
18,
4,
10,
2,
79,
75,
]),
],
400010: [Buffer.from([15, 10, 13, 10, 11, 112, 111, 108, 105, 99, 121, 46, 114, 101, 97, 100])],
578365826: [
Buffer.from([
34,
18,
32,
47,
118,
50,
98,
101,
116,
97,
47,
115,
101,
116,
116,
105,
110,
103,
115,
47,
112,
97,
115,
115,
119,
111,
114,
100,
47,
101,
120,
112,
105,
114,
121,
]),
],
},
},
},
/** Get the current active branding settings */
getBrandingSettings: {
name: "GetBrandingSettings",
requestType: GetBrandingSettingsRequest,
requestStream: false,
responseType: GetBrandingSettingsResponse,
responseStream: false,
options: {
_unknownFields: {
8338: [
Buffer.from([
126,
18,
40,
71,
101,
116,
32,
116,
104,
101,
32,
99,
117,
114,
114,
101,
110,
116,
32,
97,
99,
116,
105,
118,
101,
32,
98,
114,
97,
110,
100,
105,
110,
103,
32,
115,
101,
116,
116,
105,
110,
103,
115,
26,
69,
82,
101,
116,
117,
114,
110,
32,
116,
104,
101,
32,
99,
117,
114,
114,
101,
110,
116,
32,
97,
99,
116,
105,
118,
101,
32,
98,
114,
97,
110,
100,
105,
110,
103,
32,
115,
101,
116,
116,
105,
110,
103,
115,
32,
102,
111,
114,
32,
116,
104,
101,
32,
114,
101,
113,
117,
101,
115,
116,
101,
100,
32,
99,
111,
110,
116,
101,
120,
116,
74,
11,
10,
3,
50,
48,
48,
18,
4,
10,
2,
79,
75,
]),
],
400010: [Buffer.from([15, 10, 13, 10, 11, 112, 111, 108, 105, 99, 121, 46, 114, 101, 97, 100])],
578365826: [
Buffer.from([
27,
18,
25,
47,
118,
50,
98,
101,
116,
97,
47,
115,
101,
116,
116,
105,
110,
103,
115,
47,
98,
114,
97,
110,
100,
105,
110,
103,
]),
],
},
},
},
/** Get the domain settings */
getDomainSettings: {
name: "GetDomainSettings",
requestType: GetDomainSettingsRequest,
requestStream: false,
responseType: GetDomainSettingsResponse,
responseStream: false,
options: {
_unknownFields: {
8338: [
Buffer.from([
92,
18,
23,
71,
101,
116,
32,
116,
104,
101,
32,
100,
111,
109,
97,
105,
110,
32,
115,
101,
116,
116,
105,
110,
103,
115,
26,
52,
82,
101,
116,
117,
114,
110,
32,
116,
104,
101,
32,
100,
111,
109,
97,
105,
110,
32,
115,
101,
116,
116,
105,
110,
103,
115,
32,
102,
111,
114,
32,
116,
104,
101,
32,
114,
101,
113,
117,
101,
115,
116,
101,
100,
32,
99,
111,
110,
116,
101,
120,
116,
74,
11,
10,
3,
50,
48,
48,
18,
4,
10,
2,
79,
75,
]),
],
400010: [Buffer.from([15, 10, 13, 10, 11, 112, 111, 108, 105, 99, 121, 46, 114, 101, 97, 100])],
578365826: [
Buffer.from([
25,
18,
23,
47,
118,
50,
98,
101,
116,
97,
47,
115,
101,
116,
116,
105,
110,
103,
115,
47,
100,
111,
109,
97,
105,
110,
]),
],
},
},
},
/** Get the legal and support settings */
getLegalAndSupportSettings: {
name: "GetLegalAndSupportSettings",
requestType: GetLegalAndSupportSettingsRequest,
requestStream: false,
responseType: GetLegalAndSupportSettingsResponse,
responseStream: false,
options: {
_unknownFields: {
8338: [
Buffer.from([
102,
18,
34,
71,
101,
116,
32,
116,
104,
101,
32,
108,
101,
103,
97,
108,
32,
97,
110,
100,
32,
115,
117,
112,
112,
111,
114,
116,
32,
115,
101,
116,
116,
105,
110,
103,
115,
26,
51,
82,
101,
116,
117,
114,
110,
32,
116,
104,
101,
32,
108,
101,
103,
97,
108,
32,
115,
101,
116,
116,
105,
110,
103,
115,
32,
102,
111,
114,
32,
116,
104,
101,
32,
114,
101,
113,
117,
101,
115,
116,
101,
100,
32,
99,
111,
110,
116,
101,
120,
116,
74,
11,
10,
3,
50,
48,
48,
18,
4,
10,
2,
79,
75,
]),
],
400010: [Buffer.from([15, 10, 13, 10, 11, 112, 111, 108, 105, 99, 121, 46, 114, 101, 97, 100])],
578365826: [
Buffer.from([
32,
18,
30,
47,
118,
50,
98,
101,
116,
97,
47,
115,
101,
116,
116,
105,
110,
103,
115,
47,
108,
101,
103,
97,
108,
95,
115,
117,
112,
112,
111,
114,
116,
]),
],
},
},
},
/** Get the lockout settings */
getLockoutSettings: {
name: "GetLockoutSettings",
requestType: GetLockoutSettingsRequest,
requestStream: false,
responseType: GetLockoutSettingsResponse,
responseStream: false,
options: {
_unknownFields: {
8338: [
Buffer.from([
135,
1,
18,
24,
71,
101,
116,
32,
116,
104,
101,
32,
108,
111,
99,
107,
111,
117,
116,
32,
115,
101,
116,
116,
105,
110,
103,
115,
26,
94,
82,
101,
116,
117,
114,
110,
32,
116,
104,
101,
32,
108,
111,
99,
107,
111,
117,
116,
32,
115,
101,
116,
116,
105,
110,
103,
115,
32,
102,
111,
114,
32,
116,
104,
101,
32,
114,
101,
113,
117,
101,
115,
116,
101,
100,
32,
99,
111,
110,
116,
101,
120,
116,
44,
32,
119,
104,
105,
99,
104,
32,
100,
101,
102,
105,
110,
101,
32,
119,
104,
101,
110,
32,
97,
32,
117,
115,
101,
114,
32,
119,
105,
108,
108,
32,
98,
101,
32,
108,
111,
99,
107,
101,
100,
74,
11,
10,
3,
50,
48,
48,
18,
4,
10,
2,
79,
75,
]),
],
400010: [Buffer.from([15, 10, 13, 10, 11, 112, 111, 108, 105, 99, 121, 46, 114, 101, 97, 100])],
578365826: [
Buffer.from([
26,
18,
24,
47,
118,
50,
98,
101,
116,
97,
47,
115,
101,
116,
116,
105,
110,
103,
115,
47,
108,
111,
99,
107,
111,
117,
116,
]),
],
},
},
},
/** Get the security settings */
getSecuritySettings: {
name: "GetSecuritySettings",
requestType: GetSecuritySettingsRequest,
requestStream: false,
responseType: GetSecuritySettingsResponse,
responseStream: false,
options: {
_unknownFields: {
8338: [
Buffer.from([
79,
18,
21,
71,
101,
116,
32,
83,
101,
99,
117,
114,
105,
116,
121,
32,
83,
101,
116,
116,
105,
110,
103,
115,
26,
54,
82,
101,
116,
117,
114,
110,
115,
32,
116,
104,
101,
32,
115,
101,
99,
117,
114,
105,
116,
121,
32,
115,
101,
116,
116,
105,
110,
103,
115,
32,
111,
102,
32,
116,
104,
101,
32,
90,
73,
84,
65,
68,
69,
76,
32,
105,
110,
115,
116,
97,
110,
99,
101,
46,
]),
],
400010: [
Buffer.from([19, 10, 17, 10, 15, 105, 97, 109, 46, 112, 111, 108, 105, 99, 121, 46, 114, 101, 97, 100]),
],
578365826: [
Buffer.from([
27,
18,
25,
47,
118,
50,
98,
101,
116,
97,
47,
115,
101,
116,
116,
105,
110,
103,
115,
47,
115,
101,
99,
117,
114,
105,
116,
121,
]),
],
},
},
},
/** Set the security settings */
setSecuritySettings: {
name: "SetSecuritySettings",
requestType: SetSecuritySettingsRequest,
requestStream: false,
responseType: SetSecuritySettingsResponse,
responseStream: false,
options: {
_unknownFields: {
8338: [
Buffer.from([
75,
18,
21,
83,
101,
116,
32,
83,
101,
99,
117,
114,
105,
116,
121,
32,
83,
101,
116,
116,
105,
110,
103,
115,
26,
50,
83,
101,
116,
32,
116,
104,
101,
32,
115,
101,
99,
117,
114,
105,
116,
121,
32,
115,
101,
116,
116,
105,
110,
103,
115,
32,
111,
102,
32,
116,
104,
101,
32,
90,
73,
84,
65,
68,
69,
76,
32,
105,
110,
115,
116,
97,
110,
99,
101,
46,
]),
],
400010: [
Buffer.from([
20,
10,
18,
10,
16,
105,
97,
109,
46,
112,
111,
108,
105,
99,
121,
46,
119,
114,
105,
116,
101,
]),
],
578365826: [
Buffer.from([
30,
58,
1,
42,
26,
25,
47,
118,
50,
98,
101,
116,
97,
47,
112,
111,
108,
105,
99,
105,
101,
115,
47,
115,
101,
99,
117,
114,
105,
116,
121,
]),
],
},
},
},
},
};
function isSet(value) {
return value !== null && value !== undefined;
}