import { z } from "zod";
import { CreateClientCredentialsRequestSchema } from "@zapier/zapier-sdk-core/v0/schemas/client-credentials";
export const CreateClientCredentialsSchema = CreateClientCredentialsRequestSchema.omit({ allowed_scopes: true })
    .extend({
    allowedScopes: z
        .array(z.enum(["credentials", "external"]))
        .default(["external"])
        .describe("Scopes to allow for these credentials"),
    // Temporarily hidden while we finalise work to make approvals/policies customer-facing.
    policy: z
        .record(z.string(), z.unknown())
        .optional()
        .describe("Policy document (JSON) to attach to the credentials")
        .meta({ deprecated: true }),
})
    .describe("Create new client credentials for the authenticated user");
