import * as z from "zod/v4"; import { ContentFilterBuiltinEntryInput, ContentFilterBuiltinEntryInput$Outbound } from "./contentfilterbuiltinentryinput.js"; import { ContentFilterEntry, ContentFilterEntry$Outbound } from "./contentfilterentry.js"; import { GuardrailInterval } from "./guardrailinterval.js"; export type CreateGuardrailRequest = { /** * Array of model identifiers (slug or canonical_slug accepted) */ allowedModels?: Array | null | undefined; /** * List of allowed provider IDs */ allowedProviders?: Array | null | undefined; /** * Builtin content filters to apply. The "flag" action is only supported for "regex-prompt-injection"; PII slugs (email, phone, ssn, credit-card, ip-address, person-name, address) accept "block" or "redact" only. */ contentFilterBuiltins?: Array | null | undefined; /** * Custom regex content filters to apply to request messages */ contentFilters?: Array | null | undefined; /** * Description of the guardrail */ description?: string | null | undefined; /** * Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ enforceZdr?: boolean | null | undefined; /** * Whether to enforce zero data retention for Anthropic models. Falls back to enforce_zdr when not provided. */ enforceZdrAnthropic?: boolean | null | undefined; /** * Whether to enforce zero data retention for Google models. Falls back to enforce_zdr when not provided. */ enforceZdrGoogle?: boolean | null | undefined; /** * Whether to enforce zero data retention for OpenAI models. Falls back to enforce_zdr when not provided. */ enforceZdrOpenai?: boolean | null | undefined; /** * Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, or Google. Falls back to enforce_zdr when not provided. */ enforceZdrOther?: boolean | null | undefined; /** * Array of model identifiers to exclude from routing (slug or canonical_slug accepted) */ ignoredModels?: Array | null | undefined; /** * List of provider IDs to exclude from routing */ ignoredProviders?: Array | null | undefined; /** * Spending limit in USD */ limitUsd?: number | null | undefined; /** * Name for the new guardrail */ name: string; /** * Interval at which the limit resets (daily, weekly, monthly) */ resetInterval?: GuardrailInterval | null | undefined; /** * The workspace to create the guardrail in. Defaults to the default workspace if not provided. */ workspaceId?: string | undefined; }; /** @internal */ export type CreateGuardrailRequest$Outbound = { allowed_models?: Array | null | undefined; allowed_providers?: Array | null | undefined; content_filter_builtins?: Array | null | undefined; content_filters?: Array | null | undefined; description?: string | null | undefined; enforce_zdr?: boolean | null | undefined; enforce_zdr_anthropic?: boolean | null | undefined; enforce_zdr_google?: boolean | null | undefined; enforce_zdr_openai?: boolean | null | undefined; enforce_zdr_other?: boolean | null | undefined; ignored_models?: Array | null | undefined; ignored_providers?: Array | null | undefined; limit_usd?: number | null | undefined; name: string; reset_interval?: string | null | undefined; workspace_id?: string | undefined; }; /** @internal */ export declare const CreateGuardrailRequest$outboundSchema: z.ZodType; export declare function createGuardrailRequestToJSON(createGuardrailRequest: CreateGuardrailRequest): string; //# sourceMappingURL=createguardrailrequest.d.ts.map