Merge branch 'dev' into clients-user

This commit is contained in:
Owen
2025-11-17 11:28:47 -05:00
251 changed files with 3872 additions and 1666 deletions

View File

@@ -17,21 +17,17 @@ import { getOrgTierData } from "#dynamic/lib/billing";
import { TierId } from "@server/lib/billing/tiers";
import { calculateUserClientsForOrgs } from "@server/lib/calculateUserClientsForOrgs";
const paramsSchema = z
.object({
const paramsSchema = z.strictObject({
orgId: z.string().nonempty()
})
.strict();
});
const bodySchema = z
.object({
email: z
.string()
const bodySchema = z.strictObject({
email: z.email()
.toLowerCase()
.optional()
.refine((data) => {
if (data) {
return z.string().email().safeParse(data).success;
return z.email().safeParse(data).success;
}
return true;
}),
@@ -40,8 +36,7 @@ const bodySchema = z
type: z.enum(["internal", "oidc"]).optional(),
idpId: z.number().optional(),
roleId: z.number()
})
.strict();
});
export type CreateOrgUserResponse = {};