# Generated by smithplates HTTP codegen. Do not edit.

from __future__ import annotations

from dataclasses import dataclass

import httpx
from generated.warehouse_api_client.warehouse_api.clients.warehouse_client import WarehouseApiClient


@dataclass(frozen=True)
class ApiClients:
    warehouse_client: WarehouseApiClient


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