package policy import ( "github.com/zitadel/zitadel/internal/api/grpc/object" "github.com/zitadel/zitadel/internal/query" policy_pb "github.com/zitadel/zitadel/pkg/grpc/policy" ) func ModelPasswordComplexityPolicyToPb(policy *query.PasswordComplexityPolicy) *policy_pb.PasswordComplexityPolicy { return &policy_pb.PasswordComplexityPolicy{ IsDefault: policy.IsDefault, MinLength: policy.MinLength, HasUppercase: policy.HasUppercase, HasLowercase: policy.HasLowercase, HasNumber: policy.HasNumber, HasSymbol: policy.HasSymbol, Details: object.ToViewDetailsPb( policy.Sequence, policy.CreationDate, policy.ChangeDate, policy.ResourceOwner, ), } }