
    X j                    8   S SK Jr  SSKJrJr  S SKJr  S SKrS SKr " S S\R                  5      r
\ " S S	5      5       r      SS
 jr S     SS jjrSS jr    SS jr S       SS jjr        SS jr      SS jr        SS jrg)    )annotations   )event_classT_JSON_DICT)	dataclassNc                  >    \ rS rSrSrSrSrSrSrS r	\
S 5       rS	rg
)StorageArea   z
Storage areas.
sessionlocalsyncmanagedc                    U R                   $ N)value)selfs    ڃ/root/GenerationalWealth/GenerationalWealth/venv/lib/python3.13/site-packages/selenium/webdriver/common/devtools/v147/extensions.pyto_jsonStorageArea.to_json   s    zz    c                    U " U5      $ r    clsjsons     r   	from_jsonStorageArea.from_json   s    4yr   r   N)__name__
__module____qualname____firstlineno____doc__SESSIONLOCALSYNCMANAGEDr   classmethodr   __static_attributes__r   r   r   r	   r	      s6     GEDG  r   r	   c                  b    \ rS rSr% SrS\S'   S\S'   S\S'   S\S'   S\S	'   S
 r\S 5       rSr	g)ExtensionInfo   z*
Detailed information about an extension.
strid_nameversionpathboolenabledc                    [        5       nU R                  US'   U R                  US'   U R                  US'   U R                  US'   U R
                  US'   U$ )Nidr.   r/   r0   r2   )dictr-   r.   r/   r0   r2   )r   r   s     r   r   ExtensionInfo.to_json2   sO    vXXT
yyV,,YyyV,,Yr   c           
         U " [        US   5      [        US   5      [        US   5      [        US   5      [        US   5      S9$ )Nr4   r.   r/   r0   r2   )r-   r.   r/   r0   r2   )r,   r1   r   s     r   r   ExtensionInfo.from_json;   sJ    DJT&\"Y(T&\"i)
 	
r   r   N)
r   r   r    r!   r"   __annotations__r   r'   r   r(   r   r   r   r*   r*      sC     
H I L I M 
 
r   r*   c              #  B   #    [        5       nXS'   XS'   SUS.nUv ng7f)a  
Runs an extension default action.
Available if the client is connected using the --remote-debugging-pipe
flag and the --enable-unsafe-extension-debugging flag is set.

:param id_: Extension id.
:param target_id: A tab target ID to trigger the default extension action on.
r4   targetIdzExtensions.triggerActionmethodparamsNr5   )r-   	target_idr>   cmd_dictr   s        r   trigger_actionrB   F   s3      &F4L":,H >Ds   c              #  b   #    [        5       nXS'   Ub  XS'   SUS.nUv n[        US   5      $ 7f)a  
Installs an unpacked extension from the filesystem similar to
--load-extension CLI flags. Returns extension ID once the extension
has been installed. Available if the client is connected using the
--remote-debugging-pipe flag and the --enable-unsafe-extension-debugging
flag is set.

:param path: Absolute file path.
:param enable_in_incognito: *(Optional)* Enable the extension in incognito
:returns: Extension id.
r0   enableInIncognitozExtensions.loadUnpackedr<   r4   )r5   r,   )r0   enable_in_incognitor>   rA   r   s        r   load_unpackedrF   \   sH      &F6N&&9"#+H >DtDz?s   -/c               #  v   #    SS0n U v nUS    Vs/ s H  n[         R                  U5      PM     sn$ s  snf 7f)z
Gets a list of all unpacked extensions.
Available if the client is connected using the --remote-debugging-pipe flag
and the --enable-unsafe-extension-debugging flag is set.

:returns: 
r=   zExtensions.getExtensions
extensions)r*   r   )rA   r   is      r   get_extensionsrJ   w   sG      	,H >D04\0BC0B1M##A&0BCCCs   949c              #  :   #    [        5       nXS'   SUS.nUv ng7f)z
Uninstalls an unpacked extension (others not supported) from the profile.
Available if the client is connected using the --remote-debugging-pipe flag
and the --enable-unsafe-extension-debugging.

:param id_: Extension id.
r4   zExtensions.uninstallr<   Nr?   )r-   r>   rA   r   s       r   	uninstallrL      s+      &F4L(H >Ds   c              #     #    [        5       nXS'   UR                  5       US'   Ub  U Vs/ s H  oDPM     snUS'   SUS.nUv n[        US   5      $ s  snf 7f)a  
Gets data from extension storage in the given ``storageArea``. If ``keys`` is
specified, these are used to filter the result.

:param id_: ID of extension.
:param storage_area: StorageArea to retrieve data from.
:param keys: *(Optional)* Keys to retrieve.
:returns: 
r4   storageAreakeyszExtensions.getStorageItemsr<   datar5   r   r-   storage_arearO   r>   rI   rA   r   s          r   get_storage_itemsrT      sp      &F4L(002F=%)*T!T*v.H >DV +s   )AA"Ac              #     #    [        5       nXS'   UR                  5       US'   U Vs/ s H  oDPM     snUS'   SUS.nUv ngs  snf 7f)z
Removes ``keys`` from extension storage in the given ``storageArea``.

:param id_: ID of extension.
:param storage_area: StorageArea to remove data from.
:param keys: Keys to remove.
r4   rN   rO   zExtensions.removeStorageItemsr<   NrQ   rR   s          r   remove_storage_itemsrV      s[      &F4L(002F=!%&Aa&F6N1H >D 's   &AAAc              #  `   #    [        5       nXS'   UR                  5       US'   SUS.nUv ng7f)z
Clears extension storage in the given ``storageArea``.

:param id_: ID of extension.
:param storage_area: StorageArea to remove data from.
r4   rN   zExtensions.clearStorageItemsr<   NrQ   )r-   rS   r>   rA   r   s        r   clear_storage_itemsrX      s>      &F4L(002F=0H >Ds   ,.c              #  h   #    [        5       nXS'   UR                  5       US'   X#S'   SUS.nUv ng7f)a  
Sets ``values`` in extension storage in the given ``storageArea``. The provided ``values``
will be merged with existing values in the storage area.

:param id_: ID of extension.
:param storage_area: StorageArea to set data in.
:param values: Values to set.
r4   rN   valueszExtensions.setStorageItemsr<   NrQ   )r-   rS   rZ   r>   rA   r   s         r   set_storage_itemsr[      sF      &F4L(002F=8.H >Ds   02)r-   r,   r@   r,   return0typing.Generator[T_JSON_DICT, T_JSON_DICT, None]r   )r0   r,   rE   ztyping.Optional[bool]r\   z/typing.Generator[T_JSON_DICT, T_JSON_DICT, str])r\   zFtyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.List[ExtensionInfo]])r-   r,   r\   r]   )r-   r,   rS   r	   rO   z!typing.Optional[typing.List[str]]r\   z0typing.Generator[T_JSON_DICT, T_JSON_DICT, dict])r-   r,   rS   r	   rO   ztyping.List[str]r\   r]   )r-   r,   rS   r	   r\   r]   )r-   r,   rS   r	   rZ   r5   r\   r]   )
__future__r   utilr   r   dataclassesr   enumtypingEnumr	   r*   rB   rF   rJ   rL   rT   rV   rX   r[   r   r   r   <module>rd      s=   # * !  $)) " $
 $
 $
N 
80 6:2 
76D	7, 37! 0 
8	6!  
8	.! 
8(!  
8	r   