# Generated by smithplates HTTP codegen. Do not edit.

from __future__ import annotations

from dataclasses import dataclass

import httpx
from generated.stream_api_client.stream_api.clients.streams_client import StreamsApiClient


@dataclass(frozen=True)
class ApiClients:
    streams_client: StreamsApiClient


def create_api_clients(
    client: httpx.AsyncClient,
    *,
    base_url: str,
) -> ApiClients:
    normalized_base_url = base_url.rstrip("/")
    return ApiClients(
        streams_client=StreamsApiClient(
            client,
            normalized_base_url,
        ),
    )
