mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-01 03:52:14 +00:00
feat(console): message and login texts, privacy policy (#2016)
* message texts wrapper components * message-text sub, i18n, grid * fix routing * pack * pack * update material * audit * fix mgmt service for labelplcy * map conv * edit text from map * request map * fetch data, mgmt admin service * warn box, i18n * resetbtn * login texts * login text requests * reset, default, i18n * disabled, features, message text setter, service * locale switcher * policy grid * password reset, domain claimed i18n * lint files * fix admin service, i18n, lang setter * fix scss duplicate * privacy policy, cleanup grid, fix message, login texts (#2031) * policy grid everywhere 🦒 * cleanup home * log login text request * patch all data * refresh toggle * fix: add dialog for unsaved changes (#2057) * logintexts dialog * check for dialog on pairwise operation * fix: patch value to local state after save * fix: i18n and custom login texts (#2060) * fix: i18n and custom login texts * fix: tos and privacy texts * fix frontend * fix: tos and privacy texts and tests * fix: i18n, tos and privacy texts and tests * fix frontend maps * i18n * add ResetCustomLoginTextToDefault in admin api and fix template remove in handlers * resetlogintexttodefault Co-authored-by: Livio Amstutz <[email protected]>
This commit is contained in:
co-authored by
Livio Amstutz
parent
26e4e607bc
commit
2e684684de
@@ -19,10 +19,34 @@ import {
|
||||
ClearViewResponse,
|
||||
DeactivateIDPRequest,
|
||||
DeactivateIDPResponse,
|
||||
GetCustomDomainClaimedMessageTextRequest,
|
||||
GetCustomDomainClaimedMessageTextResponse,
|
||||
GetCustomInitMessageTextRequest,
|
||||
GetCustomInitMessageTextResponse,
|
||||
GetCustomLoginTextsRequest,
|
||||
GetCustomLoginTextsResponse,
|
||||
GetCustomOrgIAMPolicyRequest,
|
||||
GetCustomOrgIAMPolicyResponse,
|
||||
GetCustomPasswordResetMessageTextRequest,
|
||||
GetCustomPasswordResetMessageTextResponse,
|
||||
GetCustomVerifyEmailMessageTextRequest,
|
||||
GetCustomVerifyEmailMessageTextResponse,
|
||||
GetCustomVerifyPhoneMessageTextRequest,
|
||||
GetCustomVerifyPhoneMessageTextResponse,
|
||||
GetDefaultDomainClaimedMessageTextRequest,
|
||||
GetDefaultDomainClaimedMessageTextResponse,
|
||||
GetDefaultFeaturesRequest,
|
||||
GetDefaultFeaturesResponse,
|
||||
GetDefaultInitMessageTextRequest,
|
||||
GetDefaultInitMessageTextResponse,
|
||||
GetDefaultLoginTextsRequest,
|
||||
GetDefaultLoginTextsResponse,
|
||||
GetDefaultPasswordResetMessageTextRequest,
|
||||
GetDefaultPasswordResetMessageTextResponse,
|
||||
GetDefaultVerifyEmailMessageTextRequest,
|
||||
GetDefaultVerifyEmailMessageTextResponse,
|
||||
GetDefaultVerifyPhoneMessageTextRequest,
|
||||
GetDefaultVerifyPhoneMessageTextResponse,
|
||||
GetIDPByIDRequest,
|
||||
GetIDPByIDResponse,
|
||||
GetLabelPolicyRequest,
|
||||
@@ -41,6 +65,10 @@ import {
|
||||
GetPasswordLockoutPolicyResponse,
|
||||
GetPreviewLabelPolicyRequest,
|
||||
GetPreviewLabelPolicyResponse,
|
||||
GetPrivacyPolicyRequest,
|
||||
GetPrivacyPolicyResponse,
|
||||
GetSupportedLanguagesRequest,
|
||||
GetSupportedLanguagesResponse,
|
||||
IDPQuery,
|
||||
ListFailedEventsRequest,
|
||||
ListFailedEventsResponse,
|
||||
@@ -82,12 +110,26 @@ import {
|
||||
RemoveMultiFactorFromLoginPolicyResponse,
|
||||
RemoveSecondFactorFromLoginPolicyRequest,
|
||||
RemoveSecondFactorFromLoginPolicyResponse,
|
||||
ResetCustomLoginTextsToDefaultRequest,
|
||||
ResetCustomLoginTextsToDefaultResponse,
|
||||
ResetCustomOrgIAMPolicyToDefaultRequest,
|
||||
ResetCustomOrgIAMPolicyToDefaultResponse,
|
||||
ResetOrgFeaturesRequest,
|
||||
ResetOrgFeaturesResponse,
|
||||
SetCustomLoginTextsRequest,
|
||||
SetCustomLoginTextsResponse,
|
||||
SetDefaultDomainClaimedMessageTextRequest,
|
||||
SetDefaultDomainClaimedMessageTextResponse,
|
||||
SetDefaultFeaturesRequest,
|
||||
SetDefaultFeaturesResponse,
|
||||
SetDefaultInitMessageTextRequest,
|
||||
SetDefaultInitMessageTextResponse,
|
||||
SetDefaultPasswordResetMessageTextRequest,
|
||||
SetDefaultPasswordResetMessageTextResponse,
|
||||
SetDefaultVerifyEmailMessageTextRequest,
|
||||
SetDefaultVerifyEmailMessageTextResponse,
|
||||
SetDefaultVerifyPhoneMessageTextRequest,
|
||||
SetDefaultVerifyPhoneMessageTextResponse,
|
||||
SetOrgFeaturesRequest,
|
||||
SetOrgFeaturesResponse,
|
||||
SetUpOrgRequest,
|
||||
@@ -112,6 +154,8 @@ import {
|
||||
UpdatePasswordComplexityPolicyResponse,
|
||||
UpdatePasswordLockoutPolicyRequest,
|
||||
UpdatePasswordLockoutPolicyResponse,
|
||||
UpdatePrivacyPolicyRequest,
|
||||
UpdatePrivacyPolicyResponse,
|
||||
} from '../proto/generated/zitadel/admin_pb';
|
||||
import { SearchQuery } from '../proto/generated/zitadel/member_pb';
|
||||
import { ListQuery } from '../proto/generated/zitadel/object_pb';
|
||||
@@ -123,6 +167,114 @@ import { GrpcService } from './grpc.service';
|
||||
export class AdminService {
|
||||
constructor(private readonly grpcService: GrpcService) { }
|
||||
|
||||
|
||||
public getSupportedLanguages(): Promise<GetSupportedLanguagesResponse.AsObject> {
|
||||
const req = new GetSupportedLanguagesRequest();
|
||||
return this.grpcService.admin.getSupportedLanguages(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public getDefaultLoginTexts(req: GetDefaultLoginTextsRequest):
|
||||
Promise<GetDefaultLoginTextsResponse.AsObject> {
|
||||
return this.grpcService.admin.getDefaultLoginTexts(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public getCustomLoginTexts(req: GetCustomLoginTextsRequest):
|
||||
Promise<GetCustomLoginTextsResponse.AsObject> {
|
||||
return this.grpcService.admin.getCustomLoginTexts(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public setCustomLoginText(req: SetCustomLoginTextsRequest):
|
||||
Promise<SetCustomLoginTextsResponse.AsObject> {
|
||||
return this.grpcService.admin.setCustomLoginText(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public resetCustomLoginTextToDefault(lang: string): Promise<ResetCustomLoginTextsToDefaultResponse.AsObject> {
|
||||
const req = new ResetCustomLoginTextsToDefaultRequest();
|
||||
req.setLanguage(lang);
|
||||
return this.grpcService.admin.resetCustomLoginTextToDefault(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
// message texts
|
||||
|
||||
public getDefaultInitMessageText(req: GetDefaultInitMessageTextRequest):
|
||||
Promise<GetDefaultInitMessageTextResponse.AsObject> {
|
||||
return this.grpcService.admin.getDefaultInitMessageText(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public getCustomInitMessageText(req: GetCustomInitMessageTextRequest):
|
||||
Promise<GetCustomInitMessageTextResponse.AsObject> {
|
||||
return this.grpcService.admin.getCustomInitMessageText(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public setDefaultInitMessageText(req: SetDefaultInitMessageTextRequest):
|
||||
Promise<SetDefaultInitMessageTextResponse.AsObject> {
|
||||
return this.grpcService.admin.setDefaultInitMessageText(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
|
||||
public getDefaultVerifyEmailMessageText(req: GetDefaultVerifyEmailMessageTextRequest):
|
||||
Promise<GetDefaultVerifyEmailMessageTextResponse.AsObject> {
|
||||
return this.grpcService.admin.getDefaultVerifyEmailMessageText(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public getCustomVerifyEmailMessageText(req: GetCustomVerifyEmailMessageTextRequest):
|
||||
Promise<GetCustomVerifyEmailMessageTextResponse.AsObject> {
|
||||
return this.grpcService.admin.getCustomVerifyEmailMessageText(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public setDefaultVerifyEmailMessageText(req: SetDefaultVerifyEmailMessageTextRequest):
|
||||
Promise<SetDefaultVerifyEmailMessageTextResponse.AsObject> {
|
||||
return this.grpcService.admin.setDefaultVerifyEmailMessageText(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
|
||||
public getDefaultVerifyPhoneMessageText(req: GetDefaultVerifyPhoneMessageTextRequest):
|
||||
Promise<GetDefaultVerifyPhoneMessageTextResponse.AsObject> {
|
||||
return this.grpcService.admin.getDefaultVerifyPhoneMessageText(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public getCustomVerifyPhoneMessageText(req: GetCustomVerifyPhoneMessageTextRequest):
|
||||
Promise<GetCustomVerifyPhoneMessageTextResponse.AsObject> {
|
||||
return this.grpcService.admin.getCustomVerifyPhoneMessageText(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public setDefaultVerifyPhoneMessageText(req: SetDefaultVerifyPhoneMessageTextRequest):
|
||||
Promise<SetDefaultVerifyPhoneMessageTextResponse.AsObject> {
|
||||
return this.grpcService.admin.setDefaultVerifyPhoneMessageText(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
|
||||
public getDefaultPasswordResetMessageText(req: GetDefaultPasswordResetMessageTextRequest):
|
||||
Promise<GetDefaultPasswordResetMessageTextResponse.AsObject> {
|
||||
return this.grpcService.admin.getDefaultPasswordResetMessageText(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public getCustomPasswordResetMessageText(req: GetCustomPasswordResetMessageTextRequest):
|
||||
Promise<GetCustomPasswordResetMessageTextResponse.AsObject> {
|
||||
return this.grpcService.admin.getCustomPasswordResetMessageText(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public setDefaultPasswordResetMessageText(req: SetDefaultPasswordResetMessageTextRequest):
|
||||
Promise<SetDefaultPasswordResetMessageTextResponse.AsObject> {
|
||||
return this.grpcService.admin.setDefaultPasswordResetMessageText(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
|
||||
public getDefaultDomainClaimedMessageText(req: GetDefaultDomainClaimedMessageTextRequest):
|
||||
Promise<GetDefaultDomainClaimedMessageTextResponse.AsObject> {
|
||||
return this.grpcService.admin.getDefaultDomainClaimedMessageText(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public getCustomDomainClaimedMessageText(req: GetCustomDomainClaimedMessageTextRequest):
|
||||
Promise<GetCustomDomainClaimedMessageTextResponse.AsObject> {
|
||||
return this.grpcService.admin.getCustomDomainClaimedMessageText(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public setDefaultDomainClaimedMessageText(req: SetDefaultDomainClaimedMessageTextRequest):
|
||||
Promise<SetDefaultDomainClaimedMessageTextResponse.AsObject> {
|
||||
return this.grpcService.admin.setDefaultDomainClaimedMessageText(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public SetUpOrg(
|
||||
org: SetUpOrgRequest.Org,
|
||||
human: SetUpOrgRequest.Human,
|
||||
@@ -195,6 +347,17 @@ export class AdminService {
|
||||
return this.grpcService.admin.removeFailedEvent(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public getPrivacyPolicy():
|
||||
Promise<GetPrivacyPolicyResponse.AsObject> {
|
||||
const req = new GetPrivacyPolicyRequest();
|
||||
return this.grpcService.admin.getPrivacyPolicy(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public updatePrivacyPolicy(req: UpdatePrivacyPolicyRequest):
|
||||
Promise<UpdatePrivacyPolicyResponse.AsObject> {
|
||||
return this.grpcService.admin.updatePrivacyPolicy(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
// Features
|
||||
|
||||
public getOrgFeatures(orgId: string): Promise<GetOrgFeaturesResponse.AsObject> {
|
||||
|
||||
@@ -3,18 +3,7 @@ import { Empty } from 'google-protobuf/google/protobuf/empty_pb';
|
||||
import { Timestamp } from 'google-protobuf/google/protobuf/timestamp_pb';
|
||||
import { BehaviorSubject } from 'rxjs';
|
||||
|
||||
import {
|
||||
RemoveLabelPolicyFontRequest,
|
||||
RemoveLabelPolicyFontResponse,
|
||||
RemoveLabelPolicyIconDarkRequest,
|
||||
RemoveLabelPolicyIconDarkResponse,
|
||||
RemoveLabelPolicyIconRequest,
|
||||
RemoveLabelPolicyIconResponse,
|
||||
RemoveLabelPolicyLogoDarkRequest,
|
||||
RemoveLabelPolicyLogoDarkResponse,
|
||||
RemoveLabelPolicyLogoRequest,
|
||||
RemoveLabelPolicyLogoResponse,
|
||||
} from '../proto/generated/zitadel/admin_pb';
|
||||
import { GetDefaultDomainClaimedMessageTextRequest } from '../proto/generated/zitadel/admin_pb';
|
||||
import { AppQuery } from '../proto/generated/zitadel/app_pb';
|
||||
import { KeyType } from '../proto/generated/zitadel/auth_n_key_pb';
|
||||
import { ChangeQuery } from '../proto/generated/zitadel/change_pb';
|
||||
@@ -36,6 +25,8 @@ import {
|
||||
AddCustomPasswordComplexityPolicyResponse,
|
||||
AddCustomPasswordLockoutPolicyRequest,
|
||||
AddCustomPasswordLockoutPolicyResponse,
|
||||
AddCustomPrivacyPolicyRequest,
|
||||
AddCustomPrivacyPolicyResponse,
|
||||
AddHumanUserRequest,
|
||||
AddHumanUserResponse,
|
||||
AddIDPToLoginPolicyRequest,
|
||||
@@ -90,10 +81,33 @@ import {
|
||||
GenerateOrgDomainValidationResponse,
|
||||
GetAppByIDRequest,
|
||||
GetAppByIDResponse,
|
||||
GetCustomDomainClaimedMessageTextRequest,
|
||||
GetCustomDomainClaimedMessageTextResponse,
|
||||
GetCustomInitMessageTextRequest,
|
||||
GetCustomInitMessageTextResponse,
|
||||
GetCustomLoginTextsRequest,
|
||||
GetCustomLoginTextsResponse,
|
||||
GetCustomPasswordResetMessageTextRequest,
|
||||
GetCustomPasswordResetMessageTextResponse,
|
||||
GetCustomVerifyEmailMessageTextRequest,
|
||||
GetCustomVerifyEmailMessageTextResponse,
|
||||
GetCustomVerifyPhoneMessageTextRequest,
|
||||
GetCustomVerifyPhoneMessageTextResponse,
|
||||
GetDefaultDomainClaimedMessageTextResponse,
|
||||
GetDefaultInitMessageTextRequest,
|
||||
GetDefaultInitMessageTextResponse,
|
||||
GetDefaultLabelPolicyRequest,
|
||||
GetDefaultLabelPolicyResponse,
|
||||
GetDefaultLoginTextsRequest,
|
||||
GetDefaultLoginTextsResponse,
|
||||
GetDefaultPasswordComplexityPolicyRequest,
|
||||
GetDefaultPasswordComplexityPolicyResponse,
|
||||
GetDefaultPasswordResetMessageTextRequest,
|
||||
GetDefaultPasswordResetMessageTextResponse,
|
||||
GetDefaultVerifyEmailMessageTextRequest,
|
||||
GetDefaultVerifyEmailMessageTextResponse,
|
||||
GetDefaultVerifyPhoneMessageTextRequest,
|
||||
GetDefaultVerifyPhoneMessageTextResponse,
|
||||
GetFeaturesRequest,
|
||||
GetFeaturesResponse,
|
||||
GetGrantedProjectByIDRequest,
|
||||
@@ -128,10 +142,14 @@ import {
|
||||
GetPasswordLockoutPolicyResponse,
|
||||
GetPreviewLabelPolicyRequest,
|
||||
GetPreviewLabelPolicyResponse,
|
||||
GetPrivacyPolicyRequest,
|
||||
GetPrivacyPolicyResponse,
|
||||
GetProjectByIDRequest,
|
||||
GetProjectByIDResponse,
|
||||
GetProjectGrantByIDRequest,
|
||||
GetProjectGrantByIDResponse,
|
||||
GetSupportedLanguagesRequest,
|
||||
GetSupportedLanguagesResponse,
|
||||
GetUserByIDRequest,
|
||||
GetUserByIDResponse,
|
||||
GetUserByLoginNameGlobalRequest,
|
||||
@@ -214,6 +232,16 @@ import {
|
||||
RemoveAppKeyResponse,
|
||||
RemoveAppRequest,
|
||||
RemoveAppResponse,
|
||||
RemoveCustomLabelPolicyFontRequest,
|
||||
RemoveCustomLabelPolicyFontResponse,
|
||||
RemoveCustomLabelPolicyIconDarkRequest,
|
||||
RemoveCustomLabelPolicyIconDarkResponse,
|
||||
RemoveCustomLabelPolicyIconRequest,
|
||||
RemoveCustomLabelPolicyIconResponse,
|
||||
RemoveCustomLabelPolicyLogoDarkRequest,
|
||||
RemoveCustomLabelPolicyLogoDarkResponse,
|
||||
RemoveCustomLabelPolicyLogoRequest,
|
||||
RemoveCustomLabelPolicyLogoResponse,
|
||||
RemoveHumanAuthFactorOTPRequest,
|
||||
RemoveHumanAuthFactorOTPResponse,
|
||||
RemoveHumanAuthFactorU2FRequest,
|
||||
@@ -256,6 +284,18 @@ import {
|
||||
ResendHumanInitializationRequest,
|
||||
ResendHumanInitializationResponse,
|
||||
ResendHumanPhoneVerificationRequest,
|
||||
ResetCustomDomainClaimedMessageTextToDefaultRequest,
|
||||
ResetCustomDomainClaimedMessageTextToDefaultResponse,
|
||||
ResetCustomInitMessageTextToDefaultRequest,
|
||||
ResetCustomInitMessageTextToDefaultResponse,
|
||||
ResetCustomLoginTextsToDefaultRequest,
|
||||
ResetCustomLoginTextsToDefaultResponse,
|
||||
ResetCustomPasswordResetMessageTextToDefaultRequest,
|
||||
ResetCustomPasswordResetMessageTextToDefaultResponse,
|
||||
ResetCustomVerifyEmailMessageTextToDefaultRequest,
|
||||
ResetCustomVerifyEmailMessageTextToDefaultResponse,
|
||||
ResetCustomVerifyPhoneMessageTextToDefaultRequest,
|
||||
ResetCustomVerifyPhoneMessageTextToDefaultResponse,
|
||||
ResetLabelPolicyToDefaultRequest,
|
||||
ResetLabelPolicyToDefaultResponse,
|
||||
ResetLoginPolicyToDefaultRequest,
|
||||
@@ -266,7 +306,21 @@ import {
|
||||
ResetPasswordComplexityPolicyToDefaultResponse,
|
||||
ResetPasswordLockoutPolicyToDefaultRequest,
|
||||
ResetPasswordLockoutPolicyToDefaultResponse,
|
||||
ResetPrivacyPolicyToDefaultRequest,
|
||||
ResetPrivacyPolicyToDefaultResponse,
|
||||
SendHumanResetPasswordNotificationRequest,
|
||||
SetCustomDomainClaimedMessageTextRequest,
|
||||
SetCustomDomainClaimedMessageTextResponse,
|
||||
SetCustomInitMessageTextRequest,
|
||||
SetCustomInitMessageTextResponse,
|
||||
SetCustomLoginTextsRequest,
|
||||
SetCustomLoginTextsResponse,
|
||||
SetCustomPasswordResetMessageTextRequest,
|
||||
SetCustomPasswordResetMessageTextResponse,
|
||||
SetCustomVerifyEmailMessageTextRequest,
|
||||
SetCustomVerifyEmailMessageTextResponse,
|
||||
SetCustomVerifyPhoneMessageTextRequest,
|
||||
SetCustomVerifyPhoneMessageTextResponse,
|
||||
SetHumanInitialPasswordRequest,
|
||||
SetPrimaryOrgDomainRequest,
|
||||
SetPrimaryOrgDomainResponse,
|
||||
@@ -284,6 +338,8 @@ import {
|
||||
UpdateCustomPasswordComplexityPolicyResponse,
|
||||
UpdateCustomPasswordLockoutPolicyRequest,
|
||||
UpdateCustomPasswordLockoutPolicyResponse,
|
||||
UpdateCustomPrivacyPolicyRequest,
|
||||
UpdateCustomPrivacyPolicyResponse,
|
||||
UpdateHumanEmailRequest,
|
||||
UpdateHumanEmailResponse,
|
||||
UpdateHumanPhoneRequest,
|
||||
@@ -340,6 +396,146 @@ export class ManagementService {
|
||||
|
||||
constructor(private readonly grpcService: GrpcService) { }
|
||||
|
||||
public getSupportedLanguages(): Promise<GetSupportedLanguagesResponse.AsObject> {
|
||||
const req = new GetSupportedLanguagesRequest();
|
||||
return this.grpcService.mgmt.getSupportedLanguages(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public getDefaultLoginTexts(req: GetDefaultLoginTextsRequest): Promise<GetDefaultLoginTextsResponse.AsObject> {
|
||||
return this.grpcService.mgmt.getDefaultLoginTexts(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public getCustomLoginTexts(req: GetCustomLoginTextsRequest): Promise<GetCustomLoginTextsResponse.AsObject> {
|
||||
return this.grpcService.mgmt.getCustomLoginTexts(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public setCustomLoginText(req: SetCustomLoginTextsRequest): Promise<SetCustomLoginTextsResponse.AsObject> {
|
||||
return this.grpcService.mgmt.setCustomLoginText(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public resetCustomLoginTextToDefault(lang: string): Promise<ResetCustomLoginTextsToDefaultResponse.AsObject> {
|
||||
const req = new ResetCustomLoginTextsToDefaultRequest();
|
||||
req.setLanguage(lang);
|
||||
return this.grpcService.mgmt.resetCustomLoginTextToDefault(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
// message texts
|
||||
|
||||
public getDefaultInitMessageText(req: GetDefaultInitMessageTextRequest):
|
||||
Promise<GetDefaultInitMessageTextResponse.AsObject> {
|
||||
return this.grpcService.mgmt.getDefaultInitMessageText(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public getCustomInitMessageText(req: GetCustomInitMessageTextRequest):
|
||||
Promise<GetCustomInitMessageTextResponse.AsObject> {
|
||||
return this.grpcService.mgmt.getCustomInitMessageText(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public setCustomInitMessageText(req: SetCustomInitMessageTextRequest):
|
||||
Promise<SetCustomInitMessageTextResponse.AsObject> {
|
||||
return this.grpcService.mgmt.setCustomInitMessageText(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public resetCustomInitMessageTextToDefault(lang: string):
|
||||
Promise<ResetCustomInitMessageTextToDefaultResponse.AsObject> {
|
||||
const req = new ResetCustomInitMessageTextToDefaultRequest();
|
||||
req.setLanguage(lang);
|
||||
return this.grpcService.mgmt.resetCustomInitMessageTextToDefault(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
|
||||
|
||||
public getDefaultVerifyEmailMessageText(req: GetDefaultVerifyEmailMessageTextRequest):
|
||||
Promise<GetDefaultVerifyEmailMessageTextResponse.AsObject> {
|
||||
return this.grpcService.mgmt.getDefaultVerifyEmailMessageText(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public getCustomVerifyEmailMessageText(req: GetCustomVerifyEmailMessageTextRequest):
|
||||
Promise<GetCustomVerifyEmailMessageTextResponse.AsObject> {
|
||||
return this.grpcService.mgmt.getCustomVerifyEmailMessageText(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public setCustomVerifyEmailMessageText(req: SetCustomVerifyEmailMessageTextRequest):
|
||||
Promise<SetCustomVerifyEmailMessageTextResponse.AsObject> {
|
||||
return this.grpcService.mgmt.setCustomVerifyEmailMessageText(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public resetCustomVerifyEmailMessageTextToDefault(lang: string):
|
||||
Promise<ResetCustomVerifyEmailMessageTextToDefaultResponse.AsObject> {
|
||||
const req = new ResetCustomVerifyEmailMessageTextToDefaultRequest();
|
||||
req.setLanguage(lang);
|
||||
return this.grpcService.mgmt.resetCustomVerifyEmailMessageTextToDefault(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
|
||||
public getDefaultVerifyPhoneMessageText(req: GetDefaultVerifyPhoneMessageTextRequest):
|
||||
Promise<GetDefaultVerifyPhoneMessageTextResponse.AsObject> {
|
||||
return this.grpcService.mgmt.getDefaultVerifyPhoneMessageText(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public getCustomVerifyPhoneMessageText(req: GetCustomVerifyPhoneMessageTextRequest):
|
||||
Promise<GetCustomVerifyPhoneMessageTextResponse.AsObject> {
|
||||
return this.grpcService.mgmt.getCustomVerifyPhoneMessageText(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public setCustomVerifyPhoneMessageText(req: SetCustomVerifyPhoneMessageTextRequest):
|
||||
Promise<SetCustomVerifyPhoneMessageTextResponse.AsObject> {
|
||||
return this.grpcService.mgmt.setCustomVerifyPhoneMessageText(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public resetCustomVerifyPhoneMessageTextToDefault(lang: string):
|
||||
Promise<ResetCustomVerifyPhoneMessageTextToDefaultResponse.AsObject> {
|
||||
const req = new ResetCustomVerifyPhoneMessageTextToDefaultRequest();
|
||||
req.setLanguage(lang);
|
||||
return this.grpcService.mgmt.resetCustomVerifyPhoneMessageTextToDefault(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
|
||||
public getDefaultPasswordResetMessageText(req: GetDefaultPasswordResetMessageTextRequest):
|
||||
Promise<GetDefaultPasswordResetMessageTextResponse.AsObject> {
|
||||
return this.grpcService.mgmt.getDefaultPasswordResetMessageText(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public getCustomPasswordResetMessageText(req: GetCustomPasswordResetMessageTextRequest):
|
||||
Promise<GetCustomPasswordResetMessageTextResponse.AsObject> {
|
||||
return this.grpcService.mgmt.getCustomPasswordResetMessageText(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public setCustomPasswordResetMessageText(req: SetCustomPasswordResetMessageTextRequest):
|
||||
Promise<SetCustomPasswordResetMessageTextResponse.AsObject> {
|
||||
return this.grpcService.mgmt.setCustomPasswordResetMessageText(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public resetCustomPasswordResetMessageTextToDefault(lang: string):
|
||||
Promise<ResetCustomPasswordResetMessageTextToDefaultResponse.AsObject> {
|
||||
const req = new ResetCustomPasswordResetMessageTextToDefaultRequest();
|
||||
req.setLanguage(lang);
|
||||
return this.grpcService.mgmt.resetCustomPasswordResetMessageTextToDefault(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
|
||||
public getDefaultDomainClaimedMessageText(req: GetDefaultDomainClaimedMessageTextRequest):
|
||||
Promise<GetDefaultDomainClaimedMessageTextResponse.AsObject> {
|
||||
return this.grpcService.mgmt.getDefaultDomainClaimedMessageText(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public getCustomDomainClaimedMessageText(req: GetCustomDomainClaimedMessageTextRequest):
|
||||
Promise<GetCustomDomainClaimedMessageTextResponse.AsObject> {
|
||||
return this.grpcService.mgmt.getCustomDomainClaimedMessageText(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public setCustomDomainClaimedMessageCustomText(req: SetCustomDomainClaimedMessageTextRequest):
|
||||
Promise<SetCustomDomainClaimedMessageTextResponse.AsObject> {
|
||||
return this.grpcService.mgmt.setCustomDomainClaimedMessageCustomText(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public resetCustomDomainClaimedMessageTextToDefault(lang: string):
|
||||
Promise<ResetCustomDomainClaimedMessageTextToDefaultResponse.AsObject> {
|
||||
const req = new ResetCustomDomainClaimedMessageTextToDefaultRequest();
|
||||
req.setLanguage(lang);
|
||||
return this.grpcService.mgmt.resetCustomDomainClaimedMessageTextToDefault(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public listOrgIDPs(
|
||||
limit?: number,
|
||||
offset?: number,
|
||||
@@ -360,6 +556,28 @@ export class ManagementService {
|
||||
return this.grpcService.mgmt.listOrgIDPs(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public getPrivacyPolicy():
|
||||
Promise<GetPrivacyPolicyResponse.AsObject> {
|
||||
const req = new GetPrivacyPolicyRequest();
|
||||
return this.grpcService.mgmt.getPrivacyPolicy(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public addCustomPrivacyPolicy(req: AddCustomPrivacyPolicyRequest):
|
||||
Promise<AddCustomPrivacyPolicyResponse.AsObject> {
|
||||
return this.grpcService.mgmt.addCustomPrivacyPolicy(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public updateCustomPrivacyPolicy(req: UpdateCustomPrivacyPolicyRequest):
|
||||
Promise<UpdateCustomPrivacyPolicyResponse.AsObject> {
|
||||
return this.grpcService.mgmt.updateCustomPrivacyPolicy(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public resetPrivacyPolicyToDefault():
|
||||
Promise<ResetPrivacyPolicyToDefaultResponse.AsObject> {
|
||||
const req = new ResetPrivacyPolicyToDefaultRequest();
|
||||
return this.grpcService.mgmt.resetPrivacyPolicyToDefault(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public listHumanPasswordless(userId: string): Promise<ListHumanPasswordlessResponse.AsObject> {
|
||||
const req = new ListHumanPasswordlessRequest();
|
||||
req.setUserId(userId);
|
||||
@@ -781,35 +999,34 @@ export class ManagementService {
|
||||
}
|
||||
|
||||
public removeLabelPolicyFont():
|
||||
Promise<RemoveLabelPolicyFontResponse.AsObject> {
|
||||
const req = new RemoveLabelPolicyFontRequest();
|
||||
Promise<RemoveCustomLabelPolicyFontResponse.AsObject> {
|
||||
const req = new RemoveCustomLabelPolicyFontRequest();
|
||||
return this.grpcService.mgmt.removeCustomLabelPolicyFont(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public removeLabelPolicyIcon():
|
||||
Promise<RemoveLabelPolicyIconResponse.AsObject> {
|
||||
const req = new RemoveLabelPolicyIconRequest();
|
||||
Promise<RemoveCustomLabelPolicyIconResponse.AsObject> {
|
||||
const req = new RemoveCustomLabelPolicyIconRequest();
|
||||
return this.grpcService.mgmt.removeCustomLabelPolicyIcon(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public removeLabelPolicyIconDark():
|
||||
Promise<RemoveLabelPolicyIconDarkResponse.AsObject> {
|
||||
const req = new RemoveLabelPolicyIconDarkRequest();
|
||||
Promise<RemoveCustomLabelPolicyIconDarkResponse.AsObject> {
|
||||
const req = new RemoveCustomLabelPolicyIconDarkRequest();
|
||||
return this.grpcService.mgmt.removeCustomLabelPolicyIconDark(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public removeLabelPolicyLogo():
|
||||
Promise<RemoveLabelPolicyLogoResponse.AsObject> {
|
||||
const req = new RemoveLabelPolicyLogoRequest();
|
||||
Promise<RemoveCustomLabelPolicyLogoResponse.AsObject> {
|
||||
const req = new RemoveCustomLabelPolicyLogoRequest();
|
||||
return this.grpcService.mgmt.removeCustomLabelPolicyLogo(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public removeLabelPolicyLogoDark():
|
||||
Promise<RemoveLabelPolicyLogoDarkResponse.AsObject> {
|
||||
const req = new RemoveLabelPolicyLogoDarkRequest();
|
||||
Promise<RemoveCustomLabelPolicyLogoDarkResponse.AsObject> {
|
||||
const req = new RemoveCustomLabelPolicyLogoDarkRequest();
|
||||
return this.grpcService.mgmt.removeCustomLabelPolicyLogoDark(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public getOrgIAMPolicy(): Promise<GetOrgIAMPolicyResponse.AsObject> {
|
||||
const req = new GetOrgIAMPolicyRequest();
|
||||
return this.grpcService.mgmt.getOrgIAMPolicy(req, null).then(resp => resp.toObject());
|
||||
|
||||
Reference in New Issue
Block a user