# Generated by smithplates HTTP codegen. Do not edit.

from __future__ import annotations

from dataclasses import dataclass

import httpx2
from generated.example.auth_api.client.operation_bindings import AuthProvider
from generated.example.auth_api.clients.auth_client import AuthApiClient


@dataclass(frozen=True)
class ApiClients:
    auth_client: AuthApiClient


def create_api_clients(
    client: httpx2.AsyncClient,
    *,
    base_url: str,
    auth_provider: AuthProvider | None = None,
) -> ApiClients:
    normalized_base_url = base_url.rstrip("/")
    return ApiClients(
        auth_client=AuthApiClient(
            client,
            normalized_base_url,
            auth_provider,
        ),
    )
