Variable: GatewayAdminGuardrailCreateRequestSchema
const GatewayAdminGuardrailCreateRequestSchema: ZodObject<{
name: ZodString;
target: ZodOptional<ZodEnum<["llm", "mcp_tools"]>>;
workspace_id: ZodOptional<ZodString>;
organisation_id: ZodOptional<ZodString>;
checks: ZodOptional<ZodArray<ZodObject<{
id: ZodString;
parameters: ZodOptional<ZodIntersection<ZodType<
| {
[key: ...]: ...;
jwksUri: ...;
headerKey: ...;
cacheMaxAge?: ...;
clockTolerance?: ...;
maxTokenAge?: ...;
algorithms?: ...;
}
| {
[key: ...]: ...;
models: ...;
}
| {
[key: ...]: ...;
rule: ...;
not?: ...;
}
| {
[key: ...]: ...;
minSentences?: ...;
maxSentences?: ...;
not?: ...;
}
| {
[key: ...]: ...;
minWords?: ...;
maxWords?: ...;
not?: ...;
}
| {
[key: ...]: ...;
minCharacters?: ...;
maxCharacters?: ...;
not?: ...;
}
| {
[key: ...]: ...;
schema: ...;
not?: ...;
}
| {
[key: ...]: ...;
keys: ...;
operator: ...;
}
| {
[key: ...]: ...;
words: ...;
operator: ...;
}
| {
[key: ...]: ...;
onlyDNS?: ...;
not?: ...;
}
| {
[key: ...]: ...;
format: ...;
not?: ...;
}
| {
[key: ...]: ...;
webhookURL: ...;
headers?: ...;
timeout?: ...;
failOnError?: ...;
}
| {
[key: ...]: ...;
suffix: ...;
not?: ...;
}
| {
[key: ...]: ...;
not?: ...;
}
| {
[key: ...]: ...;
metadataKeys: ...;
operator: ...;
}
| {
[key: ...]: ...;
allowedTypes?: ...;
blockedTypes?: ...;
}
| {
[key: ...]: ...;
prompt_injection_threshold?: ...;
toxicity_threshold?: ...;
evasion_threshold?: ...;
timeout?: ...;
}
| {
[key: ...]: ...;
projectID: ...;
timeout?: ...;
}
| {
[key: ...]: ...;
scanners: ...;
timeout?: ...;
}
| {
[key: ...]: ...;
redact?: ...;
timeout?: ...;
}
| {
[key: ...]: ...;
profile: ...;
timeout?: ...;
}
| {
[key: ...]: ...;
categories: ...;
timeout?: ...;
}
| {
[key: ...]: ...;
language?: ...;
not?: ...;
timeout?: ...;
}
| {
[key: ...]: ...;
redact?: ...;
categories: ...;
timeout?: ...;
}
| {
[key: ...]: ...;
categories: ...;
timeout?: ...;
}
| {
[key: ...]: ...;
guardrailVersion: ...;
guardrailId: ...;
redact?: ...;
timeout?: ...;
}
| {
[key: ...]: ...;
redact?: ...;
timeout?: ...;
}
| {
[key: ...]: ...;
prompt_injection?: ...;
prompt_injection_threshold?: ...;
toxic?: ...;
toxic_threshold?: ...;
jail_break?: ...;
jail_break_threshold?: ...;
malicious_url?: ...;
malicious_url_threshold?: ...;
biased?: ...;
biased_threshold?: ...;
harmful?: ...;
harmful_threshold?: ...;
language?: ...;
language_values?: ...;
pii?: ...;
pii_redact?: ...;
pii_categories?: ...;
secrets?: ...;
secrets_redact?: ...;
secrets_categories?: ...;
timeout?: ...;
}
| {
[key: ...]: ...;
blocklistNames?: ...;
apiVersion?: ...;
severity?: ...;
categories?: ...;
timeout?: ...;
}
| {
[key: ...]: ...;
domain?: ...;
apiVersion?: ...;
modelVersion?: ...;
redact?: ...;
timeout?: ...;
}
| {
[key: ...]: ...;
profile_name: ...;
ai_model?: ...;
app_user?: ...;
}
| {
[key: ...]: ...;
}, ZodTypeDef,
| {
[key: ...]: ...;
jwksUri: ...;
headerKey: ...;
cacheMaxAge?: ...;
clockTolerance?: ...;
maxTokenAge?: ...;
algorithms?: ...;
}
| {
[key: ...]: ...;
models: ...;
}
| {
[key: ...]: ...;
rule: ...;
not?: ...;
}
| {
[key: ...]: ...;
minSentences?: ...;
maxSentences?: ...;
not?: ...;
}
| {
[key: ...]: ...;
minWords?: ...;
maxWords?: ...;
not?: ...;
}
| {
[key: ...]: ...;
minCharacters?: ...;
maxCharacters?: ...;
not?: ...;
}
| {
[key: ...]: ...;
schema: ...;
not?: ...;
}
| {
[key: ...]: ...;
keys: ...;
operator: ...;
}
| {
[key: ...]: ...;
words: ...;
operator: ...;
}
| {
[key: ...]: ...;
onlyDNS?: ...;
not?: ...;
}
| {
[key: ...]: ...;
format: ...;
not?: ...;
}
| {
[key: ...]: ...;
webhookURL: ...;
headers?: ...;
timeout?: ...;
failOnError?: ...;
}
| {
[key: ...]: ...;
suffix: ...;
not?: ...;
}
| {
[key: ...]: ...;
not?: ...;
}
| {
[key: ...]: ...;
metadataKeys: ...;
operator: ...;
}
| {
[key: ...]: ...;
allowedTypes?: ...;
blockedTypes?: ...;
}
| {
[key: ...]: ...;
prompt_injection_threshold?: ...;
toxicity_threshold?: ...;
evasion_threshold?: ...;
timeout?: ...;
}
| {
[key: ...]: ...;
projectID: ...;
timeout?: ...;
}
| {
[key: ...]: ...;
scanners: ...;
timeout?: ...;
}
| {
[key: ...]: ...;
redact?: ...;
timeout?: ...;
}
| {
[key: ...]: ...;
profile: ...;
timeout?: ...;
}
| {
[key: ...]: ...;
categories: ...;
timeout?: ...;
}
| {
[key: ...]: ...;
language?: ...;
not?: ...;
timeout?: ...;
}
| {
[key: ...]: ...;
redact?: ...;
categories: ...;
timeout?: ...;
}
| {
[key: ...]: ...;
categories: ...;
timeout?: ...;
}
| {
[key: ...]: ...;
guardrailVersion: ...;
guardrailId: ...;
redact?: ...;
timeout?: ...;
}
| {
[key: ...]: ...;
redact?: ...;
timeout?: ...;
}
| {
[key: ...]: ...;
prompt_injection?: ...;
prompt_injection_threshold?: ...;
toxic?: ...;
toxic_threshold?: ...;
jail_break?: ...;
jail_break_threshold?: ...;
malicious_url?: ...;
malicious_url_threshold?: ...;
biased?: ...;
biased_threshold?: ...;
harmful?: ...;
harmful_threshold?: ...;
language?: ...;
language_values?: ...;
pii?: ...;
pii_redact?: ...;
pii_categories?: ...;
secrets?: ...;
secrets_redact?: ...;
secrets_categories?: ...;
timeout?: ...;
}
| {
[key: ...]: ...;
blocklistNames?: ...;
apiVersion?: ...;
severity?: ...;
categories?: ...;
timeout?: ...;
}
| {
[key: ...]: ...;
domain?: ...;
apiVersion?: ...;
modelVersion?: ...;
redact?: ...;
timeout?: ...;
}
| {
[key: ...]: ...;
profile_name: ...;
ai_model?: ...;
app_user?: ...;
}
| {
[key: ...]: ...;
}>, ZodType<GatewayJsonObject, ZodTypeDef, GatewayJsonObject>>>;
is_enabled: ZodOptional<ZodBoolean>;
name: ZodOptional<ZodString>;
}, "strict", ZodTypeAny, {
id: string;
parameters?: ({ [key: string]: unknown; jwksUri: string; headerKey: string; cacheMaxAge?: number | undefined; clockTolerance?: number | undefined; maxTokenAge?: string | undefined; algorithms?: string[] | undefined; } | ... 30 more ... | { ...; }) & GatewayJsonObject;
is_enabled?: boolean;
name?: string;
}, {
id: string;
parameters?: ({ [key: string]: unknown; jwksUri: string; headerKey: string; cacheMaxAge?: number | undefined; clockTolerance?: number | undefined; maxTokenAge?: string | undefined; algorithms?: string[] | undefined; } | ... 30 more ... | { ...; }) & GatewayJsonObject;
is_enabled?: boolean;
name?: string;
}>, "many">>;
actions: ZodOptional<ZodEffects<ZodObject<{
deny: ZodOptional<ZodBoolean>;
async: ZodOptional<ZodBoolean>;
on_success: ZodOptional<ZodObject<{
feedback: ZodOptional<ZodObject<..., ..., ..., ..., ...>>;
}, "strip", ZodType<GatewayJsonValue, ZodTypeDef, GatewayJsonValue>, {
feedback?: {
value: ...;
weight: ...;
metadata: ...;
};
}, {
feedback?: {
value: ...;
weight: ...;
metadata: ...;
};
}>>;
on_fail: ZodOptional<ZodObject<{
feedback: ZodOptional<ZodObject<..., ..., ..., ..., ...>>;
}, "strip", ZodType<GatewayJsonValue, ZodTypeDef, GatewayJsonValue>, {
feedback?: {
value: ...;
weight: ...;
metadata: ...;
};
}, {
feedback?: {
value: ...;
weight: ...;
metadata: ...;
};
}>>;
}, "strip", ZodType<GatewayJsonValue, ZodTypeDef, GatewayJsonValue>, {
deny?: boolean;
async?: boolean;
on_success?: {
feedback?: {
value: number;
weight: number;
metadata: string;
};
};
on_fail?: {
feedback?: {
value: number;
weight: number;
metadata: string;
};
};
}, {
deny?: boolean;
async?: boolean;
on_success?: {
feedback?: {
value: number;
weight: number;
metadata: string;
};
};
on_fail?: {
feedback?: {
value: number;
weight: number;
metadata: string;
};
};
}>, {
[key: string]: any;
}, {
[key: string]: any;
}>>;
}, "strict", ZodTypeAny, {
name: string;
target?: "llm" | "mcp_tools";
workspace_id?: string;
organisation_id?: string;
checks?: {
id: string;
parameters?: ({ [key: string]: unknown; jwksUri: string; headerKey: string; cacheMaxAge?: number | undefined; clockTolerance?: number | undefined; maxTokenAge?: string | undefined; algorithms?: string[] | undefined; } | ... 30 more ... | { ...; }) & GatewayJsonObject;
is_enabled?: boolean;
name?: string;
}[];
actions?: {
[key: string]: any;
};
}, {
name: string;
target?: "llm" | "mcp_tools";
workspace_id?: string;
organisation_id?: string;
checks?: {
id: string;
parameters?: ({ [key: string]: unknown; jwksUri: string; headerKey: string; cacheMaxAge?: number | undefined; clockTolerance?: number | undefined; maxTokenAge?: string | undefined; algorithms?: string[] | undefined; } | ... 30 more ... | { ...; }) & GatewayJsonObject;
is_enabled?: boolean;
name?: string;
}[];
actions?: {
[key: string]: any;
};
}>;
Defined in: src/models/ai-gateway-admin-guardrails.ts:9
Official admin-plane contract; organisation UUID is distinct from the numeric SCM TSG.