o
    -wi	                     @  sH  U d Z ddlmZ ddlmZmZ ddlmZmZ ddl	m
Z
mZmZ ddlmZ ddlmZmZmZ dd	lmZmZ G d
d deZG dd deZG dd deeZG dd deeZe
eeef eeeddf Z	 eejZded< G dd deeZe
eeeef eeeddf Zded< eejZ ded< g dZ!dS )z2Scopes in which a W&B Automation can be triggered.    )annotations)LiteralUnion)BeforeValidatorField)	Annotated	TypeAliasget_args)GQLBase)ArtifactPortfolioScopeFieldsArtifactSequenceScopeFieldsProjectScopeFields   )LenientStrEnumto_scopec                   @  s   e Zd ZdZdZdZdS )	ScopeTypez.The kind of scope that triggers an automation.PROJECTARTIFACT_COLLECTIONN)__name__
__module____qualname____doc__r   r    r   r   U/home/ubuntu/sommelier/.venv/lib/python3.10/site-packages/wandb/automations/scopes.pyr      s    r   c                   @  s   e Zd ZU ded< dS )
_BaseScopez(Annotated[ScopeType, Field(frozen=True)]
scope_typeN)r   r   r   __annotations__r   r   r   r   r      s   
 r   c                   @      e Zd ZU dZejZded< dS )_ArtifactSequenceScopez=An automation scope defined by a specific `ArtifactSequence`.&Literal[ScopeType.ARTIFACT_COLLECTION]r   Nr   r   r   r   r   r   r   r   r   r   r   r   r          
 r   c                   @  r   )_ArtifactPortfolioScopez[An automation scope defined by a specific `ArtifactPortfolio` (e.g. a registry collection).r   r   Nr    r   r   r   r   r"   &   r!   r"   
typename__)discriminatorztuple[type, ...]ArtifactCollectionScopeTypesc                   @  r   )ProjectScopez4An automation scope defined by a specific `Project`.zLiteral[ScopeType.PROJECT]r   N)r   r   r   r   r   r   r   r   r   r   r   r   r&   :   r!   r&   r   AutomationScopeAutomationScopeTypes)r   ArtifactCollectionScoper&   N)"r   
__future__r   typingr   r   pydanticr   r   typing_extensionsr   r   r	   wandb._pydanticr
   wandb.automations._generatedr   r   r   _validatorsr   r   r   r   r   r"   r)   
__origin__r%   r   r&   r'   r(   __all__r   r   r   r   <module>   s>    
