mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-06 22:32:16 +00:00
fix: remove old feature references in console (#3567)
* feat: permit all features to every instance and organisation * remove old references in console
This commit is contained in:
@@ -37,8 +37,6 @@ import {
|
||||
GetCustomVerifyPhoneMessageTextResponse,
|
||||
GetDefaultDomainClaimedMessageTextRequest,
|
||||
GetDefaultDomainClaimedMessageTextResponse,
|
||||
GetDefaultFeaturesRequest,
|
||||
GetDefaultFeaturesResponse,
|
||||
GetDefaultInitMessageTextRequest,
|
||||
GetDefaultInitMessageTextResponse,
|
||||
GetDefaultLoginTextsRequest,
|
||||
@@ -59,8 +57,6 @@ import {
|
||||
GetLockoutPolicyResponse,
|
||||
GetLoginPolicyRequest,
|
||||
GetLoginPolicyResponse,
|
||||
GetOrgFeaturesRequest,
|
||||
GetOrgFeaturesResponse,
|
||||
GetOrgIAMPolicyRequest,
|
||||
GetOrgIAMPolicyResponse,
|
||||
GetPasswordAgePolicyRequest,
|
||||
@@ -118,14 +114,10 @@ import {
|
||||
ResetCustomLoginTextsToDefaultResponse,
|
||||
ResetCustomOrgIAMPolicyToDefaultRequest,
|
||||
ResetCustomOrgIAMPolicyToDefaultResponse,
|
||||
ResetOrgFeaturesRequest,
|
||||
ResetOrgFeaturesResponse,
|
||||
SetCustomLoginTextsRequest,
|
||||
SetCustomLoginTextsResponse,
|
||||
SetDefaultDomainClaimedMessageTextRequest,
|
||||
SetDefaultDomainClaimedMessageTextResponse,
|
||||
SetDefaultFeaturesRequest,
|
||||
SetDefaultFeaturesResponse,
|
||||
SetDefaultInitMessageTextRequest,
|
||||
SetDefaultInitMessageTextResponse,
|
||||
SetDefaultPasswordlessRegistrationMessageTextRequest,
|
||||
@@ -136,8 +128,6 @@ import {
|
||||
SetDefaultVerifyEmailMessageTextResponse,
|
||||
SetDefaultVerifyPhoneMessageTextRequest,
|
||||
SetDefaultVerifyPhoneMessageTextResponse,
|
||||
SetOrgFeaturesRequest,
|
||||
SetOrgFeaturesResponse,
|
||||
SetUpOrgRequest,
|
||||
SetUpOrgResponse,
|
||||
UpdateCustomOrgIAMPolicyRequest,
|
||||
@@ -381,33 +371,6 @@ export class AdminService {
|
||||
return this.grpcService.admin.updatePrivacyPolicy(req, null).then((resp) => resp.toObject());
|
||||
}
|
||||
|
||||
// Features
|
||||
|
||||
public getOrgFeatures(orgId: string): Promise<GetOrgFeaturesResponse.AsObject> {
|
||||
const req = new GetOrgFeaturesRequest();
|
||||
req.setOrgId(orgId);
|
||||
return this.grpcService.admin.getOrgFeatures(req, null).then((resp) => resp.toObject());
|
||||
}
|
||||
|
||||
public setOrgFeatures(req: SetOrgFeaturesRequest): Promise<SetOrgFeaturesResponse.AsObject> {
|
||||
return this.grpcService.admin.setOrgFeatures(req, null).then((resp) => resp.toObject());
|
||||
}
|
||||
|
||||
public resetOrgFeatures(orgId: string): Promise<ResetOrgFeaturesResponse.AsObject> {
|
||||
const req = new ResetOrgFeaturesRequest();
|
||||
req.setOrgId(orgId);
|
||||
return this.grpcService.admin.resetOrgFeatures(req, null).then((resp) => resp.toObject());
|
||||
}
|
||||
|
||||
public getDefaultFeatures(): Promise<GetDefaultFeaturesResponse.AsObject> {
|
||||
const req = new GetDefaultFeaturesRequest();
|
||||
return this.grpcService.admin.getDefaultFeatures(req, null).then((resp) => resp.toObject());
|
||||
}
|
||||
|
||||
public setDefaultFeatures(req: SetDefaultFeaturesRequest): Promise<SetDefaultFeaturesResponse.AsObject> {
|
||||
return this.grpcService.admin.setDefaultFeatures(req, null).then((resp) => resp.toObject());
|
||||
}
|
||||
|
||||
/* Policies */
|
||||
|
||||
/* complexity */
|
||||
|
||||
@@ -40,8 +40,6 @@ import {
|
||||
ListMyUserGrantsResponse,
|
||||
ListMyUserSessionsRequest,
|
||||
ListMyUserSessionsResponse,
|
||||
ListMyZitadelFeaturesRequest,
|
||||
ListMyZitadelFeaturesResponse,
|
||||
ListMyZitadelPermissionsRequest,
|
||||
ListMyZitadelPermissionsResponse,
|
||||
RemoveMyAuthFactorOTPRequest,
|
||||
@@ -400,12 +398,6 @@ export class GrpcAuthService {
|
||||
.then((resp) => resp.toObject());
|
||||
}
|
||||
|
||||
public listMyZitadelFeatures(): Promise<ListMyZitadelFeaturesResponse.AsObject> {
|
||||
return this.grpcService.auth
|
||||
.listMyZitadelFeatures(new ListMyZitadelFeaturesRequest(), null)
|
||||
.then((resp) => resp.toObject());
|
||||
}
|
||||
|
||||
public getMyPhone(): Promise<GetMyPhoneResponse.AsObject> {
|
||||
return this.grpcService.auth.getMyPhone(new GetMyPhoneRequest(), null).then((resp) => resp.toObject());
|
||||
}
|
||||
|
||||
@@ -2,7 +2,6 @@ export interface KeyboardShortcut {
|
||||
keyboardKeys: string[];
|
||||
link: any[];
|
||||
i18nKey: string;
|
||||
features?: string[] | RegExp[];
|
||||
permissions?: string[] | RegExp[];
|
||||
}
|
||||
|
||||
@@ -57,7 +56,6 @@ export const ACTIONS: KeyboardShortcut = {
|
||||
i18nKey: 'KEYBOARDSHORTCUTS.SHORTCUTS.ACTIONS',
|
||||
link: ['/actions'],
|
||||
keyboardKeys: ['g', 'f'],
|
||||
features: ['actions'],
|
||||
permissions: ['org.action.read'],
|
||||
};
|
||||
|
||||
|
||||
@@ -131,8 +131,6 @@ import {
|
||||
GetDefaultVerifyEmailMessageTextResponse,
|
||||
GetDefaultVerifyPhoneMessageTextRequest,
|
||||
GetDefaultVerifyPhoneMessageTextResponse,
|
||||
GetFeaturesRequest,
|
||||
GetFeaturesResponse,
|
||||
GetFlowRequest,
|
||||
GetFlowResponse,
|
||||
GetGrantedProjectByIDRequest,
|
||||
@@ -1169,13 +1167,6 @@ export class ManagementService {
|
||||
return this.grpcService.mgmt.listOrgMemberRoles(req, null).then((resp) => resp.toObject());
|
||||
}
|
||||
|
||||
// Features
|
||||
|
||||
public getFeatures(): Promise<GetFeaturesResponse.AsObject> {
|
||||
const req = new GetFeaturesRequest();
|
||||
return this.grpcService.mgmt.getFeatures(req, null).then((resp) => resp.toObject());
|
||||
}
|
||||
|
||||
// Policy
|
||||
|
||||
public getLabelPolicy(): Promise<GetLabelPolicyResponse.AsObject> {
|
||||
|
||||
Reference in New Issue
Block a user