+
    ›~jS  ã                   ó~   € ^ RI t ^ RIt^RIHt ^RIHt ^RIHt ^RIH	t	 ^RI
Ht ^RIHt ^ RIHt  ! R	 R
4      tR# )é    N©ÚRoomService©ÚEgressService©ÚIngressService©Ú
SipService©ÚAgentDispatchService©ÚConnectorService)ÚOptionalc                   ó   a € ] tR t^t o RtRRRRR/V 3R lR lllt]V 3R lR l4       t]V 3R	 lR
 l4       t]V 3R lR l4       t	]V 3R lR l4       t
]V 3R lR l4       t]V 3R lR l4       tR tR tR tRtV tR# )Ú
LiveKitAPIzüLiveKit Server API Client

This class is the main entrypoint, which exposes all services.

Usage:

```python
from livekit import api
lkapi = api.LiveKitAPI()
rooms = await lkapi.room.list_rooms(api.proto_room.ListRoomsRequest(names=['test-room']))
```
NÚtimeoutÚsessionc                ó°   <€ V ^8„  d   QhRS[ S[,          RS[ S[,          RS[ S[,          RS[ S[P                  ,          RS[ S[P                  ,          /# )é   ÚurlÚapi_keyÚ
api_secretr   r   )r   ÚstrÚaiohttpÚClientTimeoutÚClientSession)ÚformatÚ__classdict__s   "€Úl/Users/mitch_tango/dev/rabbit-r1-livekit/agent/.venv/lib/python3.14/site-packages/livekit/api/livekit_api.pyÚ__annotate__ÚLiveKitAPI.__annotate__   sf   ø€ ÷ )Tñ )Tá‘c]ð)Tñ ™#•ð)Tñ ™S•Mð	)Tñ ™'×/Ñ/Õ0ð)Tñ ™'×/Ñ/Õ0ñ)Tó    c               ó4  € T;'       g    \         P                  ! R4      pT;'       g    \         P                  ! R4      pT;'       g    \         P                  ! R4      pV'       g   \        R4      hV'       d	   V'       g   \        R4      hRV n        WPn        V P                  '       gC   RV n        V'       g   \
        P                  ! ^<R7      p\
        P                  ! VR	7      V n        \        V P                  WV4      V n	        \        V P                  WV4      V n        \        V P                  WV4      V n        \        V P                  WV4      V n        \!        V P                  WV4      V n        \%        V P                  WV4      V n        R
# )aÜ  Create a new LiveKitAPI instance.

Args:
    url: LiveKit server URL (read from `LIVEKIT_URL` environment variable if not provided)
    api_key: API key (read from `LIVEKIT_API_KEY` environment variable if not provided)
    api_secret: API secret (read from `LIVEKIT_API_SECRET` environment variable if not provided)
    timeout: Request timeout (default: 60 seconds)
    session: aiohttp.ClientSession instance to use for requests, if not provided, a new one will be created
ÚLIVEKIT_URLÚLIVEKIT_API_KEYÚLIVEKIT_API_SECRETzurl must be setz"api_key and api_secret must be setTF)Útotal)r   N)ÚosÚgetenvÚ
ValueErrorÚ_custom_sessionÚ_sessionr   r   r   r   Ú_roomr   Ú_ingressr   Ú_egressr
   Ú_sipr   Ú_agent_dispatchr   Ú
_connector)Úselfr   r   r   r   r   s   &&&&$$r   Ú__init__ÚLiveKitAPI.__init__   s%  € ð$ ×-Ð-”R—Y’Y˜}Ó-ˆØ×9Ð9œRŸYšYÐ'8Ó9ˆØ×BÐB¤2§9¢9Ð-AÓ#Bˆ
çÜÐ.Ó/Ð/çŸjÜÐAÓBÐBà#ˆÔØŒØ}}ˆ}Ø#(ˆDÔ ßÜ!×/Ò/°bÔ9Ü#×1Ò1¸'ÔBˆDŒMä  §¡°¸jÓIˆŒ
Ü& t§}¡}°cÀJÓOˆŒÜ$ T§]¡]°CÀ*ÓMˆŒÜ˜tŸ}™}¨c¸JÓGˆŒ	Ü3°D·M±MÀ3ÐQ[Ó\ˆÔÜ*¨4¯=©=¸#È
ÓSˆŽr"   c                ó    <€ V ^8„  d   QhRS[ /# ©r   Úreturnr   )r   r   s   "€r   r    r!   F   s   ø€ ÷ $ñ $Ñ 4ñ $r"   c                ó   € V P                   # )z$Instance of the AgentDispatchService)r1   ©r3   s   &r   Úagent_dispatchÚLiveKitAPI.agent_dispatchE   s   € ð ×#Ñ#Ð#r"   c                ó    <€ V ^8„  d   QhRS[ /# r7   r   )r   r   s   "€r   r    r!   K   s   ø€ ÷ ñ ‘kñ r"   c                ó   € V P                   # )zInstance of the RoomService)r-   r:   s   &r   ÚroomÚLiveKitAPI.roomJ   s   € ð z‰zÐr"   c                ó    <€ V ^8„  d   QhRS[ /# r7   r   )r   r   s   "€r   r    r!   P   s   ø€ ÷ ñ ™ñ r"   c                ó   € V P                   # )zInstance of the IngressService)r.   r:   s   &r   ÚingressÚLiveKitAPI.ingressO   s   € ð }‰}Ðr"   c                ó    <€ V ^8„  d   QhRS[ /# r7   r   )r   r   s   "€r   r    r!   U   s   ø€ ÷ ñ ™ñ r"   c                ó   € V P                   # )zInstance of the EgressService)r/   r:   s   &r   ÚegressÚLiveKitAPI.egressT   s   € ð |‰|Ðr"   c                ó    <€ V ^8„  d   QhRS[ /# r7   r	   )r   r   s   "€r   r    r!   Z   s   ø€ ÷ ñ ‘Zñ r"   c                ó   € V P                   # )zInstance of the SipService)r0   r:   s   &r   ÚsipÚLiveKitAPI.sipY   s   € ð y‰yÐr"   c                ó    <€ V ^8„  d   QhRS[ /# r7   r   )r   r   s   "€r   r    r!   _   s   ø€ ÷ ñ Ñ+ñ r"   c                ó   € V P                   # )z Instance of the ConnectorService)r2   r:   s   &r   Ú	connectorÚLiveKitAPI.connector^   s   € ð ‰Ðr"   c              ƒ  ó~   "  € V P                   '       g%   V P                  P                  4       G Rj  x€L
  R# R#  L5i)ziClose the API client

Call this before your application exits or when the API client is no longer needed.N)r+   r,   Úcloser:   s   &r   ÚacloseÚLiveKitAPI.aclosec   s1   é € ð
 ×#×#Ð#Ø—-‘-×%Ñ%Ó'×'Ò'ñ $Ù'ùs   ‚0=²;³	=c              ƒ  ó   "  € V # 5i)ú"@private

Support for `async with`© r:   s   &r   Ú
__aenter__ÚLiveKitAPI.__aenter__k   s   é € ð ˆùs   ‚c              ƒ  óB   "  € V P                  4       G Rj  x€L
  R#  L5i)rV   N)rS   )r3   Úexc_typeÚexc_valÚexc_tbs   &&&&r   Ú	__aexit__ÚLiveKitAPI.__aexit__q   s   é € ð k‰k‹m×Ôùs   ‚–—)r1   r2   r+   r/   r.   r-   r,   r0   )NNN)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r4   Úpropertyr;   r?   rC   rG   rK   rO   rS   rX   r^   Ú__static_attributes__Ú__classdictcell__)r   s   @r   r   r      s¹   ø‡ € ññ)Tð 48ð)Tð 48÷)Tó )TðV ÷$ó ð$ð ÷ó ðð ÷ó ðð ÷ó ðð ÷ó ðð ÷ó ðò(ò÷ð r"   r   )r   r(   Úroom_servicer   Úegress_servicer   Úingress_servicer   Úsip_servicer
   Úagent_dispatch_servicer   Úconnector_servicer   Útypingr   r   rW   r"   r   Ú<module>ro      s,   ðÛ Û 	Ý %Ý )Ý +Ý #Ý 8Ý /Ý ÷ió ir"   