+
    ÆÚjÑ  ã                  óØ  a € 0 t $ R t^ RIHt ^ RIHt ^ RIHt ^ RIH	t	 ^ RI
HtHtHtHtHtHtHtHt . R OtRt ]! RR7       ! R R
4      4       t]! RR7       ! R R4      4       t]! RR7       ! R R	4      4       t]! RR7       ! R R4      4       t]],          ],          ],          t R R ltR]! 4       R]! 4       R]! 4       /tR]R&   ]! 0 ]mRk4      tR]R&    R R ltR R lt R# )!zÕTyped event vocabulary for `subscriptions/listen` (2026-07-28, SEP-2575), shared by server and client.

Every event is a level trigger ("this changed, refetch if you care"), so both sides bound buffers by dedupe.
)Úannotations)ÚMapping)Ú	dataclass)ÚAny)ÚNotificationParamsÚPromptListChangedNotificationÚResourceListChangedNotificationÚResourceUpdatedNotificationÚ!ResourceUpdatedNotificationParamsÚServerNotificationÚSubscriptionFilterÚToolListChangedNotificationÚLISTEN_STREAM_METHODSÚPromptsListChangedÚResourceUpdatedÚResourcesListChangedÚToolsListChangedz&io.modelcontextprotocol/subscriptionIdT)Úfrozenc                  ó   € ] tR t^(tRtRtR# )r   zThe server's tool list changed.© N©Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú__static_attributes__r   ó    Ú�/opt/data/installs/351f81cc06284494/environments/aa258815729c481f8402f54f4c368f83/venv/lib/python3.14/site-packages/mcp/shared/subscriptions.pyr   r   (   s   † å)r   c                  ó   € ] tR t^-tRtRtR# )r   z!The server's prompt list changed.r   Nr   r   r   r   r   r   -   s   † å+r   c                  ó   € ] tR t^2tRtRtR# )r   z#The server's resource list changed.r   Nr   r   r   r   r   r   2   s   † å-r   c                  ó&   € ] tR t^7t$ RtR]R&   RtR# )r   z<The resource at `uri` changed and may need to be read again.ÚstrÚurir   N)r   r   r   r   r   Ú__annotations__r   r   r   r   r   r   7   s
   ‡ áFà	‡Hr   c               ó$   € V ^8„  d   QhRRRRRR/# )é   ÚeventÚServerEventÚmetazdict[str, Any]Úreturnr   r   )Úformats   "r   Ú__annotate__r,   B   s'   € ÷ lñ l ð l°Nð lÐGYñ lr   c                óL  € \        V \        4      '       d   \        \        VR7      R7      # \        V \        4      '       d   \        \        VR7      R7      # \        V \        4      '       d   \        \        VR7      R7      # \        \        V P                  VR7      R7      # )zIBuild the stamped wire notification for `event` (the server's direction).)Ú_meta)Úparams)r#   r.   )Ú
isinstancer   r   r   r   r   r   r   r	   r
   r#   )r'   r)   s   &&r   Úevent_to_notificationr1   B   sz   € ä�%Ô)×*Ò*Ü*Ô2DÈ4Ô2PÔQÐQÜ�%Ô+×,Ò,Ü,Ô4FÈTÔ4RÔSÐSÜ�%Ô-×.Ò.Ü.Ô6HÈtÔ6TÔUÐUÜ&Ô.OÐTY×T]ÑT]ÐeiÔ.jÔkÐkr   z notifications/tools/list_changedz"notifications/prompts/list_changedz$notifications/resources/list_changedzdict[str, ServerEvent]Ú_LIST_CHANGED_EVENTSúnotifications/resources/updatedúfrozenset[str]c               ó$   € V ^8„  d   QhRRRRRR/# )r&   Úmethodr"   r/   zMapping[str, Any] | Noner*   zServerEvent | Noner   )r+   s   "r   r,   r,   X   s#   € ÷ 
ñ 
˜Cð 
Ð)Að 
ÐFXñ 
r   c                óÄ   € \         P                  V 4      ;pe   V# V R8X  d>   T;'       g    / P                  R4      p\        V\        4      '       d   \	        VR7      # R# )z¢The event a raw listen-stream frame announces, or None if it carries none.

Takes the raw wire dict: the client demultiplexes before the typed notification parse.Nr3   r#   )r#   )r2   Úgetr0   r"   r   )r6   r/   r'   r#   s   &&  r   Úevent_from_wirer9   X   sY   € ô &×)Ñ)¨&Ó1Ð1ˆÒ>ØˆØÐ2Ô2Ø�|ˆ|˜× Ñ  Ó'ˆÜ�cœ3×ÒÜ" sÔ+Ð+Ùr   c               ó(   € V ^8„  d   QhRRRRRRRR/# )	r&   Úhonoredr   Úurisr4   r'   r(   r*   Úboolr   )r+   s   "r   r,   r,   e   s*   € ÷ 
ñ 
Ð-ð 
°^ð 
ÈKð 
Ð\`ñ 
r   c                óø   € \        V\        4      '       d   V P                  RJ # \        V\        4      '       d   V P                  RJ # \        V\
        4      '       d   V P                  RJ # VP                  V9   # )zÛWhether `event` is within the stream's honored filter (`uris`: the honored resource subscriptions as a set).

The admission predicate both sides share: server delivery and client intake honor only what was acknowledged.T)r0   r   Útools_list_changedr   Úprompts_list_changedr   Úresources_list_changedr#   )r;   r<   r'   s   &&&r   Úevent_matchesrB   e   sp   € ô �%Ô)×*Ò*Ø×)Ñ)¨TÐ1Ð1Ü�%Ô+×,Ò,Ø×+Ñ+¨tÐ3Ð3Ü�%Ô-×.Ò.Ø×-Ñ-°Ð5Ð5Ø�9‰9˜ÑÐr   N)
r   ÚSUBSCRIPTION_ID_META_KEYr   r   r   r(   r   r9   rB   r1   )!Ú__conditional_annotations__r   Ú
__future__r   Úcollections.abcr   Údataclassesr   Útypingr   Ú	mcp_typesr   r   r   r	   r
   r   r   r   Ú__all__rC   r   r   r   r   r(   r1   r2   r$   Ú	frozensetr   r9   rB   )rD   s   @r   Ú<module>rL      s0  øðôõ
 #å #Ý !Ý ÷	÷ 	ó 	ò€ð DÐ Ø rñ �$Ô÷*ð *ó ð*ñ �$Ô÷,ð ,ó ð,ñ �$Ô÷.ð .ó ð.ñ �$Ô÷ð ó ðð Ð!3Õ3Ð6JÕJÈ_Õ\€Ø Eõlð 'Ñ(8Ó(:Ø(Ñ*<Ó*>Ø*Ñ,@Ó,Bð0Ð Ð,ó ñ )2Ð2lÐ4HÐ2lÐJkÐ2lÓ(mÐ �~Ó mðIõ
÷
r   