@zitadel/node
Version:
Library for API access to ZITADEL. Provides compiled gRPC service clients and helpers for applications and service accounts.
3,768 lines • 130 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/v2/settings_service.proto
/* eslint-disable */
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
import { Struct } from "../../../google/protobuf/struct.js";
import { Details, ListDetails, RequestContext } from "../../object/v2/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.v2";
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,
creationAllowed: undefined,
linkingAllowed: undefined,
autoCreation: undefined,
autoLinking: undefined,
};
}
export const GetActiveIdentityProvidersRequest = {
encode(message, writer = new BinaryWriter()) {
if (message.ctx !== undefined) {
RequestContext.encode(message.ctx, writer.uint32(10).fork()).join();
}
if (message.creationAllowed !== undefined) {
writer.uint32(16).bool(message.creationAllowed);
}
if (message.linkingAllowed !== undefined) {
writer.uint32(24).bool(message.linkingAllowed);
}
if (message.autoCreation !== undefined) {
writer.uint32(32).bool(message.autoCreation);
}
if (message.autoLinking !== undefined) {
writer.uint32(40).bool(message.autoLinking);
}
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;
}
case 2: {
if (tag !== 16) {
break;
}
message.creationAllowed = reader.bool();
continue;
}
case 3: {
if (tag !== 24) {
break;
}
message.linkingAllowed = reader.bool();
continue;
}
case 4: {
if (tag !== 32) {
break;
}
message.autoCreation = reader.bool();
continue;
}
case 5: {
if (tag !== 40) {
break;
}
message.autoLinking = reader.bool();
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,
creationAllowed: isSet(object.creationAllowed) ? globalThis.Boolean(object.creationAllowed) : undefined,
linkingAllowed: isSet(object.linkingAllowed) ? globalThis.Boolean(object.linkingAllowed) : undefined,
autoCreation: isSet(object.autoCreation) ? globalThis.Boolean(object.autoCreation) : undefined,
autoLinking: isSet(object.autoLinking) ? globalThis.Boolean(object.autoLinking) : undefined,
};
},
toJSON(message) {
const obj = {};
if (message.ctx !== undefined) {
obj.ctx = RequestContext.toJSON(message.ctx);
}
if (message.creationAllowed !== undefined) {
obj.creationAllowed = message.creationAllowed;
}
if (message.linkingAllowed !== undefined) {
obj.linkingAllowed = message.linkingAllowed;
}
if (message.autoCreation !== undefined) {
obj.autoCreation = message.autoCreation;
}
if (message.autoLinking !== undefined) {
obj.autoLinking = message.autoLinking;
}
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;
message.creationAllowed = object.creationAllowed ?? undefined;
message.linkingAllowed = object.linkingAllowed ?? undefined;
message.autoCreation = object.autoCreation ?? undefined;
message.autoLinking = object.autoLinking ?? 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;
},
};
function createBaseGetHostedLoginTranslationRequest() {
return { system: undefined, instance: undefined, organizationId: undefined, locale: "", ignoreInheritance: false };
}
export const GetHostedLoginTranslationRequest = {
encode(message, writer = new BinaryWriter()) {
if (message.system !== undefined) {
writer.uint32(8).bool(message.system);
}
if (message.instance !== undefined) {
writer.uint32(16).bool(message.instance);
}
if (message.organizationId !== undefined) {
writer.uint32(26).string(message.organizationId);
}
if (message.locale !== "") {
writer.uint32(34).string(message.locale);
}
if (message.ignoreInheritance !== false) {
writer.uint32(40).bool(message.ignoreInheritance);
}
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 = createBaseGetHostedLoginTranslationRequest();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1: {
if (tag !== 8) {
break;
}
message.system = reader.bool();
continue;
}
case 2: {
if (tag !== 16) {
break;
}
message.instance = reader.bool();
continue;
}
case 3: {
if (tag !== 26) {
break;
}
message.organizationId = reader.string();
continue;
}
case 4: {
if (tag !== 34) {
break;
}
message.locale = reader.string();
continue;
}
case 5: {
if (tag !== 40) {
break;
}
message.ignoreInheritance = reader.bool();
continue;
}
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skip(tag & 7);
}
return message;
},
fromJSON(object) {
return {
system: isSet(object.system) ? globalThis.Boolean(object.system) : undefined,
instance: isSet(object.instance) ? globalThis.Boolean(object.instance) : undefined,
organizationId: isSet(object.organizationId) ? globalThis.String(object.organizationId) : undefined,
locale: isSet(object.locale) ? globalThis.String(object.locale) : "",
ignoreInheritance: isSet(object.ignoreInheritance) ? globalThis.Boolean(object.ignoreInheritance) : false,
};
},
toJSON(message) {
const obj = {};
if (message.system !== undefined) {
obj.system = message.system;
}
if (message.instance !== undefined) {
obj.instance = message.instance;
}
if (message.organizationId !== undefined) {
obj.organizationId = message.organizationId;
}
if (message.locale !== "") {
obj.locale = message.locale;
}
if (message.ignoreInheritance !== false) {
obj.ignoreInheritance = message.ignoreInheritance;
}
return obj;
},
create(base) {
return GetHostedLoginTranslationRequest.fromPartial(base ?? {});
},
fromPartial(object) {
const message = createBaseGetHostedLoginTranslationRequest();
message.system = object.system ?? undefined;
message.instance = object.instance ?? undefined;
message.organizationId = object.organizationId ?? undefined;
message.locale = object.locale ?? "";
message.ignoreInheritance = object.ignoreInheritance ?? false;
return message;
},
};
function createBaseGetHostedLoginTranslationResponse() {
return { etag: "", translations: undefined };
}
export const GetHostedLoginTranslationResponse = {
encode(message, writer = new BinaryWriter()) {
if (message.etag !== "") {
writer.uint32(10).string(message.etag);
}
if (message.translations !== undefined) {
Struct.encode(Struct.wrap(message.translations), 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 = createBaseGetHostedLoginTranslationResponse();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1: {
if (tag !== 10) {
break;
}
message.etag = reader.string();
continue;
}
case 2: {
if (tag !== 18) {
break;
}
message.translations = Struct.unwrap(Struct.decode(reader, reader.uint32()));
continue;
}
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skip(tag & 7);
}
return message;
},
fromJSON(object) {
return {
etag: isSet(object.etag) ? globalThis.String(object.etag) : "",
translations: isObject(object.translations) ? object.translations : undefined,
};
},
toJSON(message) {
const obj = {};
if (message.etag !== "") {
obj.etag = message.etag;
}
if (message.translations !== undefined) {
obj.translations = message.translations;
}
return obj;
},
create(base) {
return GetHostedLoginTranslationResponse.fromPartial(base ?? {});
},
fromPartial(object) {
const message = createBaseGetHostedLoginTranslationResponse();
message.etag = object.etag ?? "";
message.translations = object.translations ?? undefined;
return message;
},
};
function createBaseSetHostedLoginTranslationRequest() {
return { instance: undefined, organizationId: undefined, locale: "", translations: undefined };
}
export const SetHostedLoginTranslationRequest = {
encode(message, writer = new BinaryWriter()) {
if (message.instance !== undefined) {
writer.uint32(8).bool(message.instance);
}
if (message.organizationId !== undefined) {
writer.uint32(18).string(message.organizationId);
}
if (message.locale !== "") {
writer.uint32(26).string(message.locale);
}
if (message.translations !== undefined) {
Struct.encode(Struct.wrap(message.translations), writer.uint32(34).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 = createBaseSetHostedLoginTranslationRequest();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1: {
if (tag !== 8) {
break;
}
message.instance = reader.bool();
continue;
}
case 2: {
if (tag !== 18) {
break;
}
message.organizationId = reader.string();
continue;
}
case 3: {
if (tag !== 26) {
break;
}
message.locale = reader.string();
continue;
}
case 4: {
if (tag !== 34) {
break;
}
message.translations = Struct.unwrap(Struct.decode(reader, reader.uint32()));
continue;
}
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skip(tag & 7);
}
return message;
},
fromJSON(object) {
return {
instance: isSet(object.instance) ? globalThis.Boolean(object.instance) : undefined,
organizationId: isSet(object.organizationId) ? globalThis.String(object.organizationId) : undefined,
locale: isSet(object.locale) ? globalThis.String(object.locale) : "",
translations: isObject(object.translations) ? object.translations : undefined,
};
},
toJSON(message) {
const obj = {};
if (message.instance !== undefined) {
obj.instance = message.instance;
}
if (message.organizationId !== undefined) {
obj.organizationId = message.organizationId;
}
if (message.locale !== "") {
obj.locale = message.locale;
}
if (message.translations !== undefined) {
obj.translations = message.translations;
}
return obj;
},
create(base) {
return SetHostedLoginTranslationRequest.fromPartial(base ?? {});
},
fromPartial(object) {
const message = createBaseSetHostedLoginTranslationRequest();
message.instance = object.instance ?? undefined;
message.organizationId = object.organizationId ?? undefined;
message.locale = object.locale ?? "";
message.translations = object.translations ?? undefined;
return message;
},
};
function createBaseSetHostedLoginTranslationResponse() {
return { etag: "" };
}
export const SetHostedLoginTranslationResponse = {
encode(message, writer = new BinaryWriter()) {
if (message.etag !== "") {
writer.uint32(10).string(message.etag);
}
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 = createBaseSetHostedLoginTranslationResponse();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1: {
if (tag !== 10) {
break;
}
message.etag = reader.string();
continue;
}
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skip(tag & 7);
}
return message;
},
fromJSON(object) {
return { etag: isSet(object.etag) ? globalThis.String(object.etag) : "" };
},
toJSON(message) {
const obj = {};
if (message.etag !== "") {
obj.etag = message.etag;
}
return obj;
},
create(base) {
return SetHostedLoginTranslationResponse.fromPartial(base ?? {});
},
fromPartial(object) {
const message = createBaseSetHostedLoginTranslationResponse();
message.etag = object.etag ?? "";
return message;
},
};
export const SettingsServiceDefinition = {
name: "SettingsService",
fullName: "zitadel.settings.v2.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([14, 18, 12, 47, 118, 50, 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([
20,
18,
18,
47,
118,
50,
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([
25,
18,
23,
47,
118,
50,
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([
34,
18,
32,
47,
118,
50,
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([
30,
18,
28,
47,
118,
50,
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([
23,
18,
21,
47,
118,
50,
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([
21,
18,
19,
47,
118,
50,
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([
28,
18,
26,
47,
118,
50,
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([
22,
18,
20,
47,
118,
50,
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([
89,
10,
8,
83,
101,
116,
116,
105,
110,
103,
115,
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([
23,
18,
21,
47,
118,
50,
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([
85,
10,
8,
83,
101,
116,
116,
105,
110,
103,
115,
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([
26,
58,
1,
42,
26,
21,
47,
118,
50,
47,
112,
111,
108,
105,
99,
105,
101,
115,
47,
115,
101,
99,
117,
114,
105,
116,
121,
]),
],
},
},
},
/**
* Get Hosted Login Translation
*
* Returns the translations in the requested locale for the hosted login.
* The translations returned are based on the input level specified (system, instance or organization).
*
* If the requested level doesn't contain all translations, and ignore_inheritance is set to false,
* a merging process fallbacks onto the higher levels ensuring all keys in the file have a translation,
* which could be in the default language if the one of the locale is missing on all levels.
*
* The etag returned in the response represents the hash of the translations as they are stored on DB
* and its reliable only if ignore_inheritance = true.
*
* Required permissions:
* - `iam.policy.read`
*/
getHostedLoginTranslation: {
name: "GetHostedLoginTranslation",
requestType: GetHostedLoginTranslationRequest,
requestStream: false,
responseType: GetHostedLoginTranslationResponse,
responseStream: false,
options: {
_unknownFields: {
8338: [
Buffer.from([
38,
74,
36,
10,
3,
50,
48,
48,
18,
29,
10,
27,
84,
104,
101,
32,
108,
111,
99,
97,
108,
105,
122,
101,
100,
32,
116,
114,
97,
110,
115,
108,
97,
116,
105,
111,
110,
115,
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([
39,
18,
37,
47,
118,
50,
47,
115,
101,
116,
116,
105,
110,
103,
115,
47,
104,
111,
115,
116,
101,
100,
95,
108,
111,
103,
105,
110,
95,
116,
114,
97,
110,
115,
108,
97,
116,
105,
111,
110,
]),
],
},
},
},
/**
* Set Hosted Login Translation
*
* Sets the input translations at the specified level (instance or organization) for the input language.
*
* Required permissions:
* - `iam.policy.write`
*/
setHostedLoginTranslation: {
name: "SetHostedLoginTranslation",
requestType: SetHostedLoginTranslationRequest,
requestStream: false,
responseType: SetHostedLoginTranslationResponse,
responseStream: false,
options: {
_unknownFields: {
8338: [
Buffer.from([
49,
74,
47,
10,
3,
50,
48,
48,
18,
40,
10,
38,
84,
104,
101,
32,
116,
114,
97,
110,
115,
108,
97,
116,
105,
111,
110,
115,
32,
119,
97,
115,
32,
115,
117,
99,
99,
101,
115,
115,
102,
117,
108,
108,
121,
32,
115,
101,
116,
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([
42,
58,
1,
42,
26,
37,
47,
118,
50,
47,
115,
101,
116,
116,
105,
110,
103,
115,
47,
104,
111,
115,
116,
101,
100,
95,
108,
111,
103,
105,
110,
95,
116,
114,
97,
110,
115,
108,
97,
116,
105,
111,
110,
]),
],
},
},
},
},
};
function isObject(value) {
return typeof value === "object" && value !== null;
}
function isSet(value) {
return value !== null && value !== undefined;
}