Variable: TargetAuthValidationRequestSchema
const TargetAuthValidationRequestSchema: ZodObject<{
auth_type: ZodNativeEnum<{
HEADERS: "HEADERS";
BASIC_AUTH: "BASIC_AUTH";
OAUTH2: "OAUTH2";
CUSTOM_TARGET_ADAPTER: "CUSTOM_TARGET_ADAPTER";
}>;
auth_config: ZodUnion<[ZodObject<{
auth_header: ZodRecord<ZodString, ZodString>;
}, "passthrough", ZodTypeAny, objectOutputType<{
auth_header: ZodRecord<ZodString, ZodString>;
}, ZodTypeAny, "passthrough">, objectInputType<{
auth_header: ZodRecord<ZodString, ZodString>;
}, ZodTypeAny, "passthrough">>, ZodObject<{
oauth2_token_url: ZodString;
oauth2_headers: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
oauth2_body_params: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
oauth2_inject_header: ZodRecord<ZodString, ZodString>;
} & {
oauth2_expiry_minutes: ZodOptional<ZodNumber>;
oauth2_token_response_key: ZodOptional<ZodString>;
}, "passthrough", ZodTypeAny, objectOutputType<{
oauth2_token_url: ZodString;
oauth2_headers: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
oauth2_body_params: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
oauth2_inject_header: ZodRecord<ZodString, ZodString>;
} & {
oauth2_expiry_minutes: ZodOptional<ZodNumber>;
oauth2_token_response_key: ZodOptional<ZodString>;
}, ZodTypeAny, "passthrough">, objectInputType<{
oauth2_token_url: ZodString;
oauth2_headers: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
oauth2_body_params: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
oauth2_inject_header: ZodRecord<ZodString, ZodString>;
} & {
oauth2_expiry_minutes: ZodOptional<ZodNumber>;
oauth2_token_response_key: ZodOptional<ZodString>;
}, ZodTypeAny, "passthrough">>, ZodObject<{
basic_auth_header: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodString>>>;
} & {
basic_auth_location: ZodOptional<ZodString>;
}, "passthrough", ZodTypeAny, objectOutputType<{
basic_auth_header: ZodOptional<ZodNullable<ZodRecord<..., ...>>>;
} & {
basic_auth_location: ZodOptional<ZodString>;
}, ZodTypeAny, "passthrough">, objectInputType<{
basic_auth_header: ZodOptional<ZodNullable<ZodRecord<..., ...>>>;
} & {
basic_auth_location: ZodOptional<ZodString>;
}, ZodTypeAny, "passthrough">>]>;
target_id: ZodOptional<ZodNullable<ZodString>>;
network_broker_channel_uuid: ZodOptional<ZodNullable<ZodString>>;
}, "passthrough", ZodTypeAny, objectOutputType<{
auth_type: ZodNativeEnum<{
HEADERS: "HEADERS";
BASIC_AUTH: "BASIC_AUTH";
OAUTH2: "OAUTH2";
CUSTOM_TARGET_ADAPTER: "CUSTOM_TARGET_ADAPTER";
}>;
auth_config: ZodUnion<[ZodObject<{
auth_header: ZodRecord<ZodString, ZodString>;
}, "passthrough", ZodTypeAny, objectOutputType<{
auth_header: ZodRecord<ZodString, ZodString>;
}, ZodTypeAny, "passthrough">, objectInputType<{
auth_header: ZodRecord<ZodString, ZodString>;
}, ZodTypeAny, "passthrough">>, ZodObject<{
oauth2_token_url: ZodString;
oauth2_headers: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
oauth2_body_params: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
oauth2_inject_header: ZodRecord<ZodString, ZodString>;
} & {
oauth2_expiry_minutes: ZodOptional<ZodNumber>;
oauth2_token_response_key: ZodOptional<ZodString>;
}, "passthrough", ZodTypeAny, objectOutputType<{
oauth2_token_url: ZodString;
oauth2_headers: ZodOptional<ZodRecord<..., ...>>;
oauth2_body_params: ZodOptional<ZodRecord<..., ...>>;
oauth2_inject_header: ZodRecord<ZodString, ZodString>;
} & {
oauth2_expiry_minutes: ZodOptional<ZodNumber>;
oauth2_token_response_key: ZodOptional<ZodString>;
}, ZodTypeAny, "passthrough">, objectInputType<{
oauth2_token_url: ZodString;
oauth2_headers: ZodOptional<ZodRecord<..., ...>>;
oauth2_body_params: ZodOptional<ZodRecord<..., ...>>;
oauth2_inject_header: ZodRecord<ZodString, ZodString>;
} & {
oauth2_expiry_minutes: ZodOptional<ZodNumber>;
oauth2_token_response_key: ZodOptional<ZodString>;
}, ZodTypeAny, "passthrough">>, ZodObject<{
basic_auth_header: ZodOptional<ZodNullable<ZodRecord<..., ...>>>;
} & {
basic_auth_location: ZodOptional<ZodString>;
}, "passthrough", ZodTypeAny, objectOutputType<{
basic_auth_header: ZodOptional<ZodNullable<...>>;
} & {
basic_auth_location: ZodOptional<ZodString>;
}, ZodTypeAny, "passthrough">, objectInputType<{
basic_auth_header: ZodOptional<ZodNullable<...>>;
} & {
basic_auth_location: ZodOptional<ZodString>;
}, ZodTypeAny, "passthrough">>]>;
target_id: ZodOptional<ZodNullable<ZodString>>;
network_broker_channel_uuid: ZodOptional<ZodNullable<ZodString>>;
}, ZodTypeAny, "passthrough">, objectInputType<{
auth_type: ZodNativeEnum<{
HEADERS: "HEADERS";
BASIC_AUTH: "BASIC_AUTH";
OAUTH2: "OAUTH2";
CUSTOM_TARGET_ADAPTER: "CUSTOM_TARGET_ADAPTER";
}>;
auth_config: ZodUnion<[ZodObject<{
auth_header: ZodRecord<ZodString, ZodString>;
}, "passthrough", ZodTypeAny, objectOutputType<{
auth_header: ZodRecord<ZodString, ZodString>;
}, ZodTypeAny, "passthrough">, objectInputType<{
auth_header: ZodRecord<ZodString, ZodString>;
}, ZodTypeAny, "passthrough">>, ZodObject<{
oauth2_token_url: ZodString;
oauth2_headers: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
oauth2_body_params: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
oauth2_inject_header: ZodRecord<ZodString, ZodString>;
} & {
oauth2_expiry_minutes: ZodOptional<ZodNumber>;
oauth2_token_response_key: ZodOptional<ZodString>;
}, "passthrough", ZodTypeAny, objectOutputType<{
oauth2_token_url: ZodString;
oauth2_headers: ZodOptional<ZodRecord<..., ...>>;
oauth2_body_params: ZodOptional<ZodRecord<..., ...>>;
oauth2_inject_header: ZodRecord<ZodString, ZodString>;
} & {
oauth2_expiry_minutes: ZodOptional<ZodNumber>;
oauth2_token_response_key: ZodOptional<ZodString>;
}, ZodTypeAny, "passthrough">, objectInputType<{
oauth2_token_url: ZodString;
oauth2_headers: ZodOptional<ZodRecord<..., ...>>;
oauth2_body_params: ZodOptional<ZodRecord<..., ...>>;
oauth2_inject_header: ZodRecord<ZodString, ZodString>;
} & {
oauth2_expiry_minutes: ZodOptional<ZodNumber>;
oauth2_token_response_key: ZodOptional<ZodString>;
}, ZodTypeAny, "passthrough">>, ZodObject<{
basic_auth_header: ZodOptional<ZodNullable<ZodRecord<..., ...>>>;
} & {
basic_auth_location: ZodOptional<ZodString>;
}, "passthrough", ZodTypeAny, objectOutputType<{
basic_auth_header: ZodOptional<ZodNullable<...>>;
} & {
basic_auth_location: ZodOptional<ZodString>;
}, ZodTypeAny, "passthrough">, objectInputType<{
basic_auth_header: ZodOptional<ZodNullable<...>>;
} & {
basic_auth_location: ZodOptional<ZodString>;
}, ZodTypeAny, "passthrough">>]>;
target_id: ZodOptional<ZodNullable<ZodString>>;
network_broker_channel_uuid: ZodOptional<ZodNullable<ZodString>>;
}, ZodTypeAny, "passthrough">>;
Defined in: src/models/red-team.ts:1467