# Generated by smithplates HTTP codegen. Do not edit.

from __future__ import annotations

from dataclasses import dataclass

import httpx
from generated.widget_client.widget_api.clients.widgets_sync_client import WidgetsApiClient


@dataclass(frozen=True)
class SyncApiClients:
    widgets_client: WidgetsApiClient


def create_sync_api_clients(
    client: httpx.Client,
    *,
    base_url: str,
) -> SyncApiClients:
    normalized_base_url = base_url.rstrip("/")
    return SyncApiClients(
        widgets_client=WidgetsApiClient(
            client,
            normalized_base_url,
        ),
    )
