hunk.code_window:     const createOwnerOrg = await prisma.user.create({
         data: {
           username: adminUsername,
           email: adminEmail,
           emailVerified: new Date(),
           password: hashedPassword,
  
hunk.labels: keep keep keep replace keep keep keep
hunk.after_edit:         username: slugify(adminUsername),
  
hunk.file_path: packages/trpc/server/routers/viewer/organizations/create.handler.ts
hunk.type: replace
file: import { getWorkflowActionOptions } from "@calcom/features/ee/workflows/lib/getOptions";
  import { IS_SELF_HOSTED } from "@calcom/lib/constants";
  import hasKeyInMetadata from "@calcom/lib/hasKeyInMetadata";
  import { getTranslation } from "@calcom/lib/server/i18n";
  import type { TrpcSessionUser } from "@calcom/trpc/server/trpc";
  
  import { isVerifiedHandler } from "../kycVerification/isVerified.handler";
  import { hasTeamPlanHandler } from "../teams/hasTeamPlan.handler";
  
  type GetWorkflowActionOptionsOptions = {
    ctx: {
      user: NonNullable<TrpcSessionUser> & {
        locale: string;
      };
    };
  };
  
  export const getWorkflowActionOptionsHandler = async ({ ctx }: GetWorkflowActionOptionsOptions) => {
    const { user } = ctx;
  
    const isCurrentUsernamePremium =
      user && hasKeyInMetadata(user, "isPremium") ? !!user.metadata.isPremium : false;
  
    let isTeamsPlan = false;
    if (!isCurrentUsernamePremium) {
      const { hasTeamPlan } = await hasTeamPlanHandler({ ctx });
      isTeamsPlan = !!hasTeamPlan;
    }
  
    const { isKYCVerified } = await isVerifiedHandler({ ctx });
  
    const t = await getTranslation(ctx.user.locale, "common");
    return getWorkflowActionOptions(
      t,
      IS_SELF_HOSTED || isCurrentUsernamePremium || isTeamsPlan,
      isKYCVerified
    );
  };
  