Files
2025-05-22 03:28:21 +00:00

33 lines
850 B
TypeScript

import { z } from "zod";
import { serviceAccountKeySchema } from "@calcom/prisma/zod-utils";
export const DelegationCredentialCreateSchema = z.object({
workspacePlatformSlug: z.string(),
domain: z.string(),
serviceAccountKey: serviceAccountKeySchema,
});
export const DelegationCredentialUpdateSchema = z.object({
id: z.string(),
workspacePlatformSlug: z.string(),
domain: z.string(),
});
export const DelegationCredentialToggleEnabledSchema = z.object({
id: z.string(),
enabled: z.boolean(),
});
export const DelegationCredentialDeleteSchema = z.object({
id: z.string(),
});
export const DelegationCredentialGetAffectedMembersForDisableSchema = z.object({
id: z.string(),
});
export type TDelegationCredentialGetAffectedMembersForDisableSchema = z.infer<
typeof DelegationCredentialGetAffectedMembersForDisableSchema
>;