Files
4fcf4081d0 feat: Send emails to potentially affected Organization Members on disabling delegation credential (#21276)
* mvp

* Improve UI

* wip

* self-review

* self-review

---------

Co-authored-by: Omar López <[email protected]>
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
>;