Skip to main content

Variable: ConnectionParamsSchema

const ConnectionParamsSchema: ZodUnion<[ZodObject<{
multi_turn_supported: ZodOptional<ZodBoolean>;
api_endpoint: ZodOptional<ZodNullable<ZodString>>;
request_headers: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
request_json: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
response_json: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
response_key: ZodOptional<ZodNullable<ZodString>>;
target_connection_config: ZodOptional<ZodNullable<ZodType<TargetConnectionConfig, ZodTypeDef, TargetConnectionConfig>>>;
curl: ZodOptional<ZodNullable<ZodString>>;
multi_turn_config: ZodOptional<ZodNullable<ZodType<MultiTurnConfig, ZodTypeDef, MultiTurnConfig>>>;
} & {
ws_response_timeout: ZodDefault<ZodNumber>;
}, "passthrough", ZodTypeAny, objectOutputType<{
multi_turn_supported: ZodOptional<ZodBoolean>;
api_endpoint: ZodOptional<ZodNullable<ZodString>>;
request_headers: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
request_json: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
response_json: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
response_key: ZodOptional<ZodNullable<ZodString>>;
target_connection_config: ZodOptional<ZodNullable<ZodType<TargetConnectionConfig, ZodTypeDef, TargetConnectionConfig>>>;
curl: ZodOptional<ZodNullable<ZodString>>;
multi_turn_config: ZodOptional<ZodNullable<ZodType<MultiTurnConfig, ZodTypeDef, MultiTurnConfig>>>;
} & {
ws_response_timeout: ZodDefault<ZodNumber>;
}, ZodTypeAny, "passthrough">, objectInputType<{
multi_turn_supported: ZodOptional<ZodBoolean>;
api_endpoint: ZodOptional<ZodNullable<ZodString>>;
request_headers: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
request_json: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
response_json: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
response_key: ZodOptional<ZodNullable<ZodString>>;
target_connection_config: ZodOptional<ZodNullable<ZodType<TargetConnectionConfig, ZodTypeDef, TargetConnectionConfig>>>;
curl: ZodOptional<ZodNullable<ZodString>>;
multi_turn_config: ZodOptional<ZodNullable<ZodType<MultiTurnConfig, ZodTypeDef, MultiTurnConfig>>>;
} & {
ws_response_timeout: ZodDefault<ZodNumber>;
}, ZodTypeAny, "passthrough">>, ZodObject<{
multi_turn_supported: ZodOptional<ZodBoolean>;
api_endpoint: ZodOptional<ZodNullable<ZodString>>;
request_headers: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
request_json: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
response_json: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
response_key: ZodOptional<ZodNullable<ZodString>>;
target_connection_config: ZodOptional<ZodNullable<ZodType<TargetConnectionConfig, ZodTypeDef, TargetConnectionConfig>>>;
curl: ZodOptional<ZodNullable<ZodString>>;
multi_turn_config: ZodOptional<ZodNullable<ZodType<MultiTurnConfig, ZodTypeDef, MultiTurnConfig>>>;
} & {
response_stop_key: ZodString;
response_stop_value: ZodString;
}, "passthrough", ZodTypeAny, objectOutputType<{
multi_turn_supported: ZodOptional<ZodBoolean>;
api_endpoint: ZodOptional<ZodNullable<ZodString>>;
request_headers: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
request_json: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
response_json: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
response_key: ZodOptional<ZodNullable<ZodString>>;
target_connection_config: ZodOptional<ZodNullable<ZodType<TargetConnectionConfig, ZodTypeDef, TargetConnectionConfig>>>;
curl: ZodOptional<ZodNullable<ZodString>>;
multi_turn_config: ZodOptional<ZodNullable<ZodType<MultiTurnConfig, ZodTypeDef, MultiTurnConfig>>>;
} & {
response_stop_key: ZodString;
response_stop_value: ZodString;
}, ZodTypeAny, "passthrough">, objectInputType<{
multi_turn_supported: ZodOptional<ZodBoolean>;
api_endpoint: ZodOptional<ZodNullable<ZodString>>;
request_headers: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
request_json: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
response_json: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
response_key: ZodOptional<ZodNullable<ZodString>>;
target_connection_config: ZodOptional<ZodNullable<ZodType<TargetConnectionConfig, ZodTypeDef, TargetConnectionConfig>>>;
curl: ZodOptional<ZodNullable<ZodString>>;
multi_turn_config: ZodOptional<ZodNullable<ZodType<MultiTurnConfig, ZodTypeDef, MultiTurnConfig>>>;
} & {
response_stop_key: ZodString;
response_stop_value: ZodString;
}, ZodTypeAny, "passthrough">>, ZodObject<{
multi_turn_supported: ZodOptional<ZodBoolean>;
api_endpoint: ZodOptional<ZodNullable<ZodString>>;
request_headers: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
request_json: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
response_json: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
response_key: ZodOptional<ZodNullable<ZodString>>;
target_connection_config: ZodOptional<ZodNullable<ZodType<TargetConnectionConfig, ZodTypeDef, TargetConnectionConfig>>>;
curl: ZodOptional<ZodNullable<ZodString>>;
multi_turn_config: ZodOptional<ZodNullable<ZodType<MultiTurnConfig, ZodTypeDef, MultiTurnConfig>>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
multi_turn_supported: ZodOptional<ZodBoolean>;
api_endpoint: ZodOptional<ZodNullable<ZodString>>;
request_headers: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
request_json: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
response_json: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
response_key: ZodOptional<ZodNullable<ZodString>>;
target_connection_config: ZodOptional<ZodNullable<ZodType<TargetConnectionConfig, ZodTypeDef, TargetConnectionConfig>>>;
curl: ZodOptional<ZodNullable<ZodString>>;
multi_turn_config: ZodOptional<ZodNullable<ZodType<MultiTurnConfig, ZodTypeDef, MultiTurnConfig>>>;
}, ZodTypeAny, "passthrough">, objectInputType<{
multi_turn_supported: ZodOptional<ZodBoolean>;
api_endpoint: ZodOptional<ZodNullable<ZodString>>;
request_headers: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
request_json: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
response_json: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodUnknown>>>;
response_key: ZodOptional<ZodNullable<ZodString>>;
target_connection_config: ZodOptional<ZodNullable<ZodType<TargetConnectionConfig, ZodTypeDef, TargetConnectionConfig>>>;
curl: ZodOptional<ZodNullable<ZodString>>;
multi_turn_config: ZodOptional<ZodNullable<ZodType<MultiTurnConfig, ZodTypeDef, MultiTurnConfig>>>;
}, ZodTypeAny, "passthrough">>]>;

Defined in: src/models/red-team.ts:236

Union of WebSocket, Streaming, and REST connection params.