
    >fhA,                      d dl mZ ddlmZmZ d dlmZ d dlZd dlZddl	m
Z
 ddl	mZ ddl	mZ dd	l	mZ  G d
 de      Z G d dej                         Ze G d d             Ze G d d             Z G d de      Z G d dej                         Z G d dej                         Z G d dej                         Z G d dej                         Z G d dej                         Ze G d d             Ze G d  d!             Ze G d" d#             Ze G d$ d%             Ze G d& d'             Ze G d( d)             Z G d* d+ej                         Z e G d, d-             Z!e G d. d/             Z" G d0 d1ej                         Z# G d2 d3e      Z$ G d4 d5e      Z% G d6 d7e      Z&e G d8 d9             Z'e G d: d;             Z(e G d< d=             Z)e G d> d?             Z*e G d@ dA             Z+ G dB dCej                         Z,e G dD dE             Z-e G dF dG             Z.e G dH dI             Z/e G dJ dK             Z0e G dL dM             Z1 G dN dOej                         Z2 G dP dQej                         Z3e G dR dS             Z4e G dT dU             Z5e G dV dW             Z6e G dX dY             Z7e G dZ d[             Z8e G d\ d]             Z9e G d^ d_             Z: G d` daej                         Z; G db dcej                         Z< G dd deej                         Z=e G df dg             Z>	 	 	 	 ddhZ?	 	 	 	 	 	 ddiZ@	 	 	 	 	 	 ddjZA	 d	 	 	 ddkZB	 d	 	 	 	 	 ddlZC	 d	 	 	 ddmZD	 	 	 	 ddnZE	 d	 	 	 	 	 ddoZF	 	 	 	 ddpZG	 	 	 	 ddqZH	 	 	 	 ddrZI	 	 	 	 ddsZJ	 	 	 	 ddtZK	 	 	 	 dduZL	 	 	 	 ddvZM	 	 	 	 ddwZNddxZO	 	 	 	 ddyZP	 	 	 	 	 	 ddzZQ	 	 	 	 dd{ZR	 	 	 	 dd|ZS	 	 	 	 dd}ZT	 	 	 	 dd~ZU	 d	 	 	 	 	 	 	 	 	 ddZV	 	 	 	 	 	 ddZW	 	 	 	 ddZX	 	 	 	 ddZY	 	 	 	 ddZZ	 	 	 	 	 	 ddZ[	 	 	 	 ddZ\ddZ]	 	 	 	 ddZ^	 	 	 	 ddZ_ddZ`ddZa	 	 	 	 	 	 ddZb	 	 	 	 	 	 	 	 ddZc ed      e G d d                    Zd ed      e G d d                    Ze ed      e G d d                    Zf ed      e G d d                    Zg ed      e G d d                    Zh ed      e G d d                    Zi ed      e G d d                    Zj ed      e G d d                    Zk ed      e G d d                    Zl ed      e G d d                    Zm ed      e G d d                    Zn ed      e G d d                    Zo ed      e G d d                    Zp ed      e G d d                    Zq ed      e G d d                    Zry)    )annotations   )event_classT_JSON_DICT)	dataclassN)browser)network)page)targetc                  8     e Zd ZddZedd       Z fdZ xZS )SerializedStorageKeyc                    | S N selfs    b/var/www/zara/venv/lib/python3.12/site-packages/selenium/webdriver/common/devtools/v140/storage.pyto_jsonzSerializedStorageKey.to_json           c                     | |      S r   r   clsjsons     r   	from_jsonzSerializedStorageKey.from_json       4yr   c                >    dj                  t        | 	               S )NzSerializedStorageKey({})formatsuper__repr__r   	__class__s    r   r!   zSerializedStorageKey.__repr__   s    )001A1CDDr   returnstr)r   r&   r%   r   __name__
__module____qualname__r   classmethodr   r!   __classcell__r#   s   @r   r   r      s(      E Er   r   c                  Z    e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZdZdZdZd Zed        Zy)StorageTypez)
    Enum of possible storage types.
    cookiesfile_systems	indexeddblocal_storageshader_cachewebsqlservice_workerscache_storageinterest_groupsshared_storagestorage_bucketsallotherc                    | j                   S r   valuer   s    r   r   zStorageType.to_json0       zzr   c                     | |      S r   r   r   s     r   r   zStorageType.from_json3   r   r   N)r(   r)   r*   __doc__COOKIESFILE_SYSTEMS	INDEXEDDBLOCAL_STORAGESHADER_CACHEWEBSQLSERVICE_WORKERSCACHE_STORAGEINTEREST_GROUPSSHARED_STORAGESTORAGE_BUCKETSALL_OTHERr   r+   r   r   r   r   r/   r/      sc     G!LI#M!LF'O#M'O%N'ODE  r   r/   c                  <    e Zd ZU dZded<   ded<   d Zed        Zy)	UsageForTypez#
    Usage for a storage type.
    r/   storage_typefloatusagec                r    t               }| j                  j                         |d<   | j                  |d<   |S )NstorageTyperT   )dictrR   r   rT   r   r   s     r   r   zUsageForType.to_jsonC   s4    v"//779]

Wr   c                Z     | t         j                  |d         t        |d               S )NrV   rT   )rR   rT   )r/   r   rS   r   s     r   r   zUsageForType.from_jsonI   s.    $..tM/BCW&
 	
r   Nr(   r)   r*   rB   __annotations__r   r+   r   r   r   r   rQ   rQ   8   s/      L 
 
r   rQ   c                  <    e Zd ZU dZded<   ded<   d Zed        Zy)	TrustTokenszq
    Pair of issuer origin and number of available (signed, but not used) Trust
    Tokens from that issuer.
    r&   issuer_originrS   countc                V    t               }| j                  |d<   | j                  |d<   |S )NissuerOriginr_   )rW   r^   r_   rX   s     r   r   zTrustTokens.to_json[   s+    v#11^

Wr   c                F     | t        |d         t        |d               S )Nra   r_   )r^   r_   r&   rS   r   s     r   r   zTrustTokens.from_jsona   s(    d>23W&
 	
r   NrZ   r   r   r   r]   r]   Q   s-     L 
 
r   r]   c                  <     e Zd ZdZddZedd       Z fdZ xZS )InterestGroupAuctionIdz?
    Protected audience interest group auction identifier.
    c                    | S r   r   r   s    r   r   zInterestGroupAuctionId.to_jsonm   r   r   c                     | |      S r   r   r   s     r   r   z InterestGroupAuctionId.from_jsonp   r   r   c                >    dj                  t        | 	               S )NzInterestGroupAuctionId({})r   r"   s    r   r!   zInterestGroupAuctionId.__repr__t       +22573C3EFFr   r$   )r   r&   r%   re   )	r(   r)   r*   rB   r   r+   r   r!   r,   r-   s   @r   re   re   i   s-      G Gr   re   c                  R    e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZdZd Zed        Zy)InterestGroupAccessTypez.
    Enum of interest group access types.
    joinleaveupdateloadedbidwinadditionalBidadditionalBidWintopLevelBidtopLevelAdditionalBidclearc                    | j                   S r   r>   r   s    r   r   zInterestGroupAccessType.to_json   r@   r   c                     | |      S r   r   r   s     r   r   z!InterestGroupAccessType.from_json   r   r   N)r(   r)   r*   rB   JOINLEAVEUPDATELOADEDBIDWINADDITIONAL_BIDADDITIONAL_BID_WINTOP_LEVEL_BIDTOP_LEVEL_ADDITIONAL_BIDCLEARr   r+   r   r   r   r   rk   rk   x   s[     DEFF
C
C$N+!M6E  r   rk   c                  .    e Zd ZdZdZdZd Zed        Zy)InterestGroupAuctionEventTypez!
    Enum of auction events.
    startedconfigResolvedc                    | j                   S r   r>   r   s    r   r   z%InterestGroupAuctionEventType.to_json   r@   r   c                     | |      S r   r   r   s     r   r   z'InterestGroupAuctionEventType.from_json   r   r   N)	r(   r)   r*   rB   STARTEDCONFIG_RESOLVEDr   r+   r   r   r   r   r   r      s,     G&O  r   r   c                  :    e Zd ZdZdZdZdZdZdZd Z	e
d        Zy	)
InterestGroupAuctionFetchTypez2
    Enum of network fetches auctions can do.
    bidderJs
bidderWasmsellerJsbidderTrustedSignalssellerTrustedSignalsc                    | j                   S r   r>   r   s    r   r   z%InterestGroupAuctionFetchType.to_json   r@   r   c                     | |      S r   r   r   s     r   r   z'InterestGroupAuctionFetchType.from_json   r   r   N)r(   r)   r*   rB   	BIDDER_JSBIDDER_WASM	SELLER_JSBIDDER_TRUSTED_SIGNALSSELLER_TRUSTED_SIGNALSr   r+   r   r   r   r   r   r      s=     IKI33  r   r   c                  6    e Zd ZdZdZdZdZdZd Ze	d        Z
y)	SharedStorageAccessScopez/
    Enum of shared storage access scopes.
    windowsharedStorageWorkletprotectedAudienceWorkletheaderc                    | j                   S r   r>   r   s    r   r   z SharedStorageAccessScope.to_json   r@   r   c                     | |      S r   r   r   s     r   r   z"SharedStorageAccessScope.from_json   r   r   N)r(   r)   r*   rB   WINDOWSHARED_STORAGE_WORKLETPROTECTED_AUDIENCE_WORKLETHEADERr   r+   r   r   r   r   r   r      s8     F3!;F  r   r   c                  b    e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZdZdZdZdZdZd Zed        Zy)SharedStorageAccessMethodz0
    Enum of shared storage access methods.
    	addModulecreateWorklet	selectURLrunbatchUpdatesetappenddeleterv   getkeysvaluesentrieslengthremainingBudgetc                    | j                   S r   r>   r   s    r   r   z!SharedStorageAccessMethod.to_json   r@   r   c                     | |      S r   r   r   s     r   r   z#SharedStorageAccessMethod.from_json   r   r   N)r(   r)   r*   rB   
ADD_MODULECREATE_WORKLET
SELECT_URLRUNBATCH_UPDATESET_APPENDDELETEr   GETKEYSVALUESENTRIESLENGTHREMAINING_BUDGETr   r+   r   r   r   r   r   r      sn     J$NJ
C LDFFE
CDFGF(  r   r   c                  <    e Zd ZU dZded<   ded<   d Zed        Zy)SharedStorageEntryzK
    Struct for a single key-value pair in an origin's shared storage.
    r&   keyr?   c                V    t               }| j                  |d<   | j                  |d<   |S Nr   r?   )rW   r   r?   rX   s     r   r   zSharedStorageEntry.to_json   s(    vhhU

Wr   c                F     | t        |d         t        |d               S Nr   r?   )r   r?   r&   r   s     r   r   zSharedStorageEntry.from_json   s'    DK d7m$
 	
r   NrZ   r   r   r   r   r      s,     
HJ 
 
r   r   c                  P    e Zd ZU dZded<   ded<   ded<   ded<   d	 Zed
        Zy)SharedStorageMetadataz1
    Details for an origin's shared storage.
    network.TimeSinceEpochcreation_timeintr   rS   remaining_budget
bytes_usedc                    t               }| j                  j                         |d<   | j                  |d<   | j                  |d<   | j
                  |d<   |S )NcreationTimer   r   	bytesUsed)rW   r   r   r   r   r   rX   s     r   r   zSharedStorageMetadata.to_json  sS    v#1199;^X"&"7"7 OO[r   c           	          | t         j                  j                  |d         t        |d         t	        |d         t        |d               S )Nr   r   r   r   )r   r   r   r   )r	   TimeSinceEpochr   r   rS   r   s     r   r   zSharedStorageMetadata.from_json  sO    !00::4;OPtH~&"4(9#:;4,-	
 	
r   NrZ   r   r   r   r   r      s>     *) K  O 
 
r   r   c                  \    e Zd ZU dZded<   dZded<   dZded<   dZded	<   d
 Ze	d        Z
y)%SharedStoragePrivateAggregationConfigzg
    Represents a dictionary object passed in as privateAggregationConfig to
    run or selectURL.
    r   filtering_id_max_bytesNtyping.Optional[str]aggregation_coordinator_origin
context_idtyping.Optional[int]max_contributionsc                    t               }| j                  |d<   | j                  | j                  |d<   | j                  | j                  |d<   | j                  | j                  |d<   |S )NfilteringIdMaxBytesaggregationCoordinatorOrigin	contextIdmaxContributions)rW   r   r   r   r   rX   s     r   r   z-SharedStoragePrivateAggregationConfig.to_json+  sq    v&*&A&A"#..:373V3VD/0??& $D!!-'+'='=D#$r   c           	          | t        |d         d|v rt        |d         nd d|v rt        |d         nd d|v rt        |d               S d       S )Nr   r   r   r   )r   r   r   r   )r   r&   r   s     r   r   z/SharedStoragePrivateAggregationConfig.from_json6  sw    #&t,A'B#CXvz~X~3t4R/S+T  EI1<1Ds4,-$?QUY?Yc$'9":;	
 	
 `d	
 	
r   )r(   r)   r*   rB   r[   r   r   r   r   r+   r   r   r   r   r   r     sR    
   <@"$8? (,J$+ /3+2	 
 
r   r   c                  <    e Zd ZU dZded<   ded<   d Zed        Zy)SharedStorageReportingMetadatazU
    Pair of reporting metadata details for a candidate URL for ``selectURL()``.
    r&   
event_typereporting_urlc                V    t               }| j                  |d<   | j                  |d<   |S )N	eventTypereportingUrl)rW   r   r   rX   s     r   r   z&SharedStorageReportingMetadata.to_jsonI  s,    v OO[#11^r   c                F     | t        |d         t        |d               S )Nr   r   )r   r   r   r   s     r   r   z(SharedStorageReportingMetadata.from_jsonO  s)    4,-d>23
 	
r   NrZ   r   r   r   r   r   @  s-     O 
 
r   r   c                  <    e Zd ZU dZded<   ded<   d Zed        Zy)	SharedStorageUrlWithMetadataz>
    Bundles a candidate URL with its reporting metadata.
    r&   urlz+typing.List[SharedStorageReportingMetadata]reporting_metadatac                    t               }| j                  |d<   | j                  D cg c]  }|j                          c}|d<   |S c c}w )Nr   reportingMetadata)rW   r   r   r   r   r   is      r   r   z$SharedStorageUrlWithMetadata.to_jsonb  sC    vhhU:>:Q:Q$RQQYY[$R ! %Ss   Ac           	          | t        |d         |d   D cg c]  }t        j                  |       c}      S c c}w )Nr   r   )r   r   )r&   r   r   r   r   r   s      r   r   z&SharedStorageUrlWithMetadata.from_jsonh  s?    DK UYZmUnoPQ > H H Ko
 	
os   ;
NrZ   r   r   r   r   r   W  s0     
H DC 
 
r   r   c                     e Zd ZU dZdZded<   dZded<   dZded<   dZded<   dZ	ded	<   dZ
d
ed<   dZded<   dZded<   dZded<   dZded<   dZded<   dZded<   dZded<   dZded<   dZded<   dZded<   dZded<   d Zed        Zy)SharedStorageAccessParamsz
    Bundles the parameters for shared storage access events whose
    presence/absence can vary according to SharedStorageAccessType.
    Nr   script_source_urldata_originoperation_nameoperation_idtyping.Optional[bool]
keep_alivez6typing.Optional[SharedStoragePrivateAggregationConfig]private_aggregation_configserialized_dataz:typing.Optional[typing.List[SharedStorageUrlWithMetadata]]urls_with_metadataurn_uuidr   r?   ignore_if_presentr   worklet_ordinalz typing.Optional[target.TargetID]worklet_target_id	with_lockbatch_update_id
batch_sizec                *   t               }| j                  | j                  |d<   | j                  | j                  |d<   | j                  | j                  |d<   | j                  | j                  |d<   | j
                  | j
                  |d<   | j                  | j                  j                         |d<   | j                  | j                  |d<   | j                  +| j                  D cg c]  }|j                          c}|d<   | j                  | j                  |d	<   | j                  | j                  |d
<   | j                  | j                  |d<   | j                  | j                  |d<   | j                  | j                  |d<   | j                  | j                  j                         |d<   | j                   | j                   |d<   | j"                  | j"                  |d<   | j$                  | j$                  |d<   |S c c}w )NscriptSourceUrl
dataOriginoperationNameoperationId	keepAliveprivateAggregationConfigserializedDataurlsWithMetadataurnUuidr   r?   ignoreIfPresentworkletOrdinalworkletTargetIdwithLockbatchUpdateId	batchSize)rW   r   r   r   r   r  r  r   r  r  r  r   r?   r  r  r  r	  r
  r  r   s      r   r   z!SharedStorageAccessParams.to_json  s   v!!-&*&<&<D"#'!%!1!1D*$($7$7D!("&"3"3D??& $D**6/3/N/N/V/V/XD+,+%)%9%9D!""".=A=T=T'U		'UD#$==$"mmDO88((DK::! JJDM!!-&*&<&<D"#+%)%9%9D!"!!-&*&<&<&D&D&FD"#>>%#~~D+$($8$8D!??& $D' (Vs   0Hc                R    | d!i dd|v rt        |d         nd dd|v rt        |d         nd dd|v rt        |d         nd dd|v rt        |d         nd d	d
|v rt        |d
         nd dd|v rt        j                  |d         nd dd|v rt        |d         nd dd|v r&|d   D cg c]  }t        j                  |       c}nd dd|v rt        |d         nd dd|v rt        |d         nd dd|v rt        |d         nd dd|v rt        |d         nd dd|v rt        |d         nd dd|v r"t        j                  j                  |d         nd dd|v rt        |d         nd dd|v rt        |d         nd dd |v rt        |d          S d S c c}w )"Nr   r  r   r  r   r  r   r  r  r  r  r  r  r  r  r  r  r  r   r?   r  r  r  r  r  r  r	  r  r
  r  r  r  r   )r&   boolr   r   r   r   r   TargetIDr   s      r   r   z#SharedStorageAccessParams.from_json  sx    
>OSW>Wc$'8"9:]a
3?43GD./T
 :ID9P3tO45VZ
 6Cd5JT-01PT	

 3>2EtD-.4
 }W  [_  }_'L'V'VW[\vWw'x  ei
 <Lt;SC%5 67Y]
 qC  GK  qKSWXjSkla < F Fq Il  QU
 .7$->Si)D
 %*TMDK t
 )04#d7m$T
 @QTX?Xd4(9#:;^b
 <Lt;SC%5 67Y]
 UfimTmfoo77=N8OPsw
 0:T/Ac$z*+t
  ;JT:QC_ 56W[!
" 2=1Ds4,-#
 	
" KO#
 	
  ms   .F$)r(   r)   r*   rB   r   r[   r   r   r   r  r  r  r  r  r   r?   r  r  r  r	  r
  r  r   r+   r   r   r   r   r   r   p  s    /3+2
 )-K%, ,0N(/ *.L&-
 )-J%, Z^ V]
 -1O)0 VZRY &*H")
 !%C	$ #'E& 04,3 -1O)0 ;?7>
 '+I#* -1O)0 (,J$+$L 
 
r   r   c                  *    e Zd ZdZdZd Zed        Zy)StorageBucketsDurabilityrelaxedstrictc                    | j                   S r   r>   r   s    r   r   z StorageBucketsDurability.to_json  r@   r   c                     | |      S r   r   r   s     r   r   z"StorageBucketsDurability.from_json  r   r   N)r(   r)   r*   RELAXEDSTRICTr   r+   r   r   r   r   r   r     s%    GF  r   r   c                  <    e Zd ZU ded<   dZded<   d Zed        Zy)StorageBucketr   storage_keyNr   namec                    t               }| j                  j                         |d<   | j                  | j                  |d<   |S )N
storageKeyr*  )rW   r)  r   r*  rX   s     r   r   zStorageBucket.to_json  s>    v!--557\99 99DLr   c                p     | t         j                  |d         d|v rt        |d               S d       S )Nr,  r*  )r)  r*  )r   r   r&   r   s     r   r   zStorageBucket.from_json  sA    ,66tL7IJ&,nT&\"
 	
:>
 	
r   r(   r)   r*   r[   r*  r   r+   r   r   r   r   r(  r(    s.    %% "&D
% 
 
r   r(  c                  `    e Zd ZU ded<   ded<   ded<   ded<   d	ed
<   ded<   d Zed        Zy)StorageBucketInfor(  bucketr&   id_r   
expirationrS   quotar  
persistentr   
durabilityc                "   t               }| j                  j                         |d<   | j                  |d<   | j                  j                         |d<   | j
                  |d<   | j                  |d<   | j                  j                         |d<   |S )Nr1  idr3  r4  r5  r6  )rW   r1  r   r2  r3  r4  r5  r6  rX   s     r   r   zStorageBucketInfo.to_json5  sz    v,,.XXXT
!__446\

W!__\!__446\r   c                     | t         j                  |d         t        |d         t        j                  j                  |d         t        |d         t        |d         t        j                  |d               S )Nr1  r8  r3  r4  r5  r6  )r1  r2  r3  r4  r5  r6  )r(  r   r&   r	   r   rS   r  r   r   s     r   r   zStorageBucketInfo.from_json?  sq     **4>:DJ--77\8JKW&D.//99$|:LM
 	
r   Nr(   r)   r*   r[   r   r+   r   r   r   r   r0  r0  &  s?    	H&& L(( 
 
r   r0  c                  *    e Zd ZdZdZd Zed        Zy)AttributionReportingSourceType
navigationeventc                    | j                   S r   r>   r   s    r   r   z&AttributionReportingSourceType.to_jsonO  r@   r   c                     | |      S r   r   r   s     r   r   z(AttributionReportingSourceType.from_jsonR  r   r   N)r(   r)   r*   
NAVIGATIONEVENTr   r+   r   r   r   r   r<  r<  K  s%    JE  r   r<  c                  8     e Zd ZddZedd       Z fdZ xZS )UnsignedInt64AsBase10c                    | S r   r   r   s    r   r   zUnsignedInt64AsBase10.to_jsonX  r   r   c                     | |      S r   r   r   s     r   r   zUnsignedInt64AsBase10.from_json[  r   r   c                >    dj                  t        | 	               S )NzUnsignedInt64AsBase10({})r   r"   s    r   r!   zUnsignedInt64AsBase10.__repr___  s    *11%'2B2DEEr   r$   )r   r&   r%   rD  r'   r-   s   @r   rD  rD  W  s(      F Fr   rD  c                  8     e Zd ZddZedd       Z fdZ xZS )UnsignedInt128AsBase16c                    | S r   r   r   s    r   r   zUnsignedInt128AsBase16.to_jsond  r   r   c                     | |      S r   r   r   s     r   r   z UnsignedInt128AsBase16.from_jsong  r   r   c                >    dj                  t        | 	               S )NzUnsignedInt128AsBase16({})r   r"   s    r   r!   zUnsignedInt128AsBase16.__repr__k  ri   r   r$   )r   r&   r%   rI  r'   r-   s   @r   rI  rI  c  s(      G Gr   rI  c                  8     e Zd ZddZedd       Z fdZ xZS )SignedInt64AsBase10c                    | S r   r   r   s    r   r   zSignedInt64AsBase10.to_jsonp  r   r   c                     | |      S r   r   r   s     r   r   zSignedInt64AsBase10.from_jsons  r   r   c                >    dj                  t        | 	               S )NzSignedInt64AsBase10({})r   r"   s    r   r!   zSignedInt64AsBase10.__repr__w  s    (//0@0BCCr   r$   )r   r&   r%   rN  r'   r-   s   @r   rN  rN  o  s(      D Dr   rN  c                  8    e Zd ZU ded<   ded<   d Zed        Zy)#AttributionReportingFilterDataEntryr&   r   typing.List[str]r   c                |    t               }| j                  |d<   | j                  D cg c]  }| c}|d<   |S c c}w )Nr   r   )rW   r   r   r   s      r   r   z+AttributionReportingFilterDataEntry.to_json  s8    vhhU%)[[1!1X 2   	9c           	     l     | t        |d         |d   D cg c]  }t        |       c}      S c c}w )Nr   r   )r   r   r   r   s      r   r   z-AttributionReportingFilterDataEntry.from_json  s4    DK $(N3qCF3
 	
3   1
Nr:  r   r   r   rS  rS  {  s&    	H 
 
r   rS  c                  <    e Zd ZU ded<   dZded<   d Zed        Zy) AttributionReportingFilterConfig0typing.List[AttributionReportingFilterDataEntry]filter_valuesNr   lookback_windowc                    t               }| j                  D cg c]  }|j                          c}|d<   | j                  | j                  |d<   |S c c}w )NfilterValueslookbackWindow)rW   r\  r   r]  r   s      r   r   z(AttributionReportingFilterConfig.to_json  sR    v595G5GH		H^+%)%9%9D!"  Is   Ac                     | |d   D cg c]  }t         j                  |       c}d|v rt        |d               S d       S c c}w )Nr_  r`  )r\  r]  )rS  r   r   r   s      r   r   z*AttributionReportingFilterConfig.from_json  sU    UYZhUijPQ>HHKj;Kt;SC%5 67
 	
Y]
 	
js   A)r(   r)   r*   r[   r]  r   r+   r   r   r   r   rZ  rZ    s.    CC -1O)0 
 
r   rZ  c                  8    e Zd ZU ded<   ded<   d Zed        Zy)AttributionReportingFilterPairz-typing.List[AttributionReportingFilterConfig]filtersnot_filtersc                    t               }| j                  D cg c]  }|j                          c}|d<   | j                  D cg c]  }|j                          c}|d<   |S c c}w c c}w )Nrd  
notFilters)rW   rd  r   re  r   s      r   r   z&AttributionReportingFilterPair.to_json  sU    v04=1199;=Y373C3CDaaiikD\ >Ds   A#A(c           	          | |d   D cg c]  }t         j                  |       c}|d   D cg c]  }t         j                  |       c}      S c c}w c c}w )Nrd  rg  )rd  re  )rZ  r   r   s      r   r   z(AttributionReportingFilterPair.from_json  sT    LPQZO\q5??B\PTUaPbc19CCAFc
 	
\cs
   AA
Nr:  r   r   r   rc  rc    s'    ::>> 
 
r   rc  c                  8    e Zd ZU ded<   ded<   d Zed        Zy)(AttributionReportingAggregationKeysEntryr&   r   rI  r?   c                r    t               }| j                  |d<   | j                  j                         |d<   |S r   )rW   r   r?   r   rX   s     r   r   z0AttributionReportingAggregationKeysEntry.to_json  s1    vhhU

**,Wr   c                Z     | t        |d         t        j                  |d               S r   )r&   rI  r   r   s     r   r   z2AttributionReportingAggregationKeysEntry.from_json  s-    DK (224=A
 	
r   Nr:  r   r   r   rj  rj    s&    	H!! 
 
r   rj  c                  8    e Zd ZU ded<   ded<   d Zed        Zy)&AttributionReportingEventReportWindowsr   startztyping.List[int]endsc                |    t               }| j                  |d<   | j                  D cg c]  }| c}|d<   |S c c}w )Nro  rp  )rW   ro  rp  r   s      r   r   z.AttributionReportingEventReportWindows.to_json  s8    v

W#'99-a-V .rV  c           	     l     | t        |d         |d   D cg c]  }t        |       c}      S c c}w )Nro  rp  )ro  rp  r   r   s      r   r   z0AttributionReportingEventReportWindows.from_json  s4    d7m$"&v,/Q#a&/
 	
/rX  Nr:  r   r   r   rn  rn    s*     J  
 
r   rn  c                  *    e Zd ZdZdZd Zed        Zy)'AttributionReportingTriggerDataMatchingexactmodulusc                    | j                   S r   r>   r   s    r   r   z/AttributionReportingTriggerDataMatching.to_json  r@   r   c                     | |      S r   r   r   s     r   r   z1AttributionReportingTriggerDataMatching.from_json  r   r   N)r(   r)   r*   EXACTMODULUSr   r+   r   r   r   r   ru  ru    s%    EG  r   ru  c                  B    e Zd ZU ded<   ded<   ded<   d Zed        Zy	)
2AttributionReportingAggregatableDebugReportingDatarI  	key_piecerS   r?   rT  typesc                    t               }| j                  j                         |d<   | j                  |d<   | j                  D cg c]  }| c}|d<   |S c c}w )NkeyPiecer?   r  )rW   r~  r   r?   r  r   s      r   r   z:AttributionReportingAggregatableDebugReportingData.to_json  sO    v>>113Z

W$(JJ/q/W 0s   	Ac           
          | t         j                  |d         t        |d         |d   D cg c]  }t        |       c}      S c c}w )Nr  r?   r  )r~  r?   r  )rI  r   rS   r&   r   s      r   r   z<AttributionReportingAggregatableDebugReportingData.from_json   sI    ,66tJ7GHW&#'=1a3q61
 	
 2s   ANr:  r   r   r   r}  r}    s.    %% L 
 
r   r}  c                  T    e Zd ZU ded<   ded<   dZded<   dZded	<   d
 Zed        Zy)4AttributionReportingAggregatableDebugReportingConfigrI  r~  z?typing.List[AttributionReportingAggregatableDebugReportingData]
debug_dataNtyping.Optional[float]budgetr   r   c                    t               }| j                  j                         |d<   | j                  D cg c]  }|j                          c}|d<   | j                  | j                  |d<   | j
                  | j
                  |d<   |S c c}w )Nr  	debugDatar  r   )rW   r~  r   r  r  r   r   s      r   r   z<AttributionReportingAggregatableDebugReportingConfig.to_json  s~    v>>113Z26//BQQYY[B[;;"![[DN..:373V3VD/0 Cs   Bc           	          | t         j                  |d         |d   D cg c]  }t        j                  |       c}d|v rt        |d         nd d|v rt	        |d               S d       S c c}w )Nr  r  r  r   )r~  r  r  r   )rI  r   r}  rS   r&   r   s      r   r   z>AttributionReportingAggregatableDebugReportingConfig.from_json  s    ,66tJ7GHaefqars\]JTTUVWs,4,<5h($Xvz~X~3t4R/S+T	
 	
 EI	
 	
ss   A0
)	r(   r)   r*   r[   r  r   r   r+   r   r   r   r   r  r  	  s@    %%OO &*F");?"$8? 
 
r   r  c                  B    e Zd ZU ded<   ded<   ded<   d Zed        Zy)	AttributionScopesDatarT  r   rS   limitmax_event_statesc                    t               }| j                  D cg c]  }| c}|d<   | j                  |d<   | j                  |d<   |S c c}w )Nr   r  maxEventStates)rW   r   r  r  r   s      r   r   zAttributionScopesData.to_json3  sI    v%)[[1!1X

W!%!6!6 2s   	Ac                     | |d   D cg c]  }t        |       c}t        |d         t        |d               S c c}w )Nr   r  r  )r   r  r  rc   r   s      r   r   zAttributionScopesData.from_json:  sB    $(N3qCF3W&"4(8#9:
 	
3s   >Nr:  r   r   r   r  r  )  s.     L 
 
r   r  c                  8    e Zd ZU ded<   ded<   d Zed        Zy)"AttributionReportingNamedBudgetDefr&   r*  r   r  c                V    t               }| j                  |d<   | j                  |d<   |S )Nr*  r  )rW   r*  r  rX   s     r   r   z*AttributionReportingNamedBudgetDef.to_jsonI  s(    vyyVXr   c                F     | t        |d         t        |d               S )Nr*  r  )r*  r  )r&   r   r   s     r   r   z,AttributionReportingNamedBudgetDef.from_jsonO  s'    T&\"tH~&
 	
r   Nr:  r   r   r   r  r  C  s%    
IK 
 
r   r  c                     e Zd ZU ded<   ded<   ded<   ded<   ded	<   d
ed<   ded<   ded<   ded<   ded<   ded<   ded<   ded<   ded<   ded<   ded<   ded<   ded <   d!ed"<   d#ed$<   d%Zd&ed'<   d%Zd(ed)<   d* Zed+        Zy%),&AttributionReportingSourceRegistrationr   timer   expiryztyping.List[float]trigger_datarn  event_report_windowsaggregatable_report_windowr<  type_r&   source_originreporting_originrT  destination_sitesrD  event_idrN  priorityr[  filter_dataz5typing.List[AttributionReportingAggregationKeysEntry]aggregation_keysru  trigger_data_matchingdestination_limit_priorityr  #aggregatable_debug_reporting_configmax_event_level_reportsz/typing.List[AttributionReportingNamedBudgetDef]named_budgetsr  debug_reportingrS   event_level_epsilonN&typing.Optional[UnsignedInt64AsBase10]	debug_keyz&typing.Optional[AttributionScopesData]scopes_datac                   t               }| j                  j                         |d<   | j                  |d<   | j                  D cg c]  }| c}|d<   | j
                  j                         |d<   | j                  |d<   | j                  j                         |d<   | j                  |d<   | j                  |d<   | j                  D cg c]  }| c}|d	<   | j                  j                         |d
<   | j                  j                         |d<   | j                  D cg c]  }|j                          c}|d<   | j                  D cg c]  }|j                          c}|d<   | j                  j                         |d<   | j                   j                         |d<   | j"                  j                         |d<   | j$                  |d<   | j&                  D cg c]  }|j                          c}|d<   | j(                  |d<   | j*                  |d<   | j,                  | j,                  j                         |d<   | j.                  | j.                  j                         |d<   |S c c}w c c}w c c}w c c}w c c}w )Nr  r  triggerDataeventReportWindowsaggregatableReportWindowtypesourceOriginreportingOrigindestinationSiteseventIdr  
filterDataaggregationKeystriggerDataMatchingdestinationLimitPriority aggregatableDebugReportingConfigmaxEventLevelReportsnamedBudgetsdebugReportingeventLevelEpsilondebugKey
scopesData)rW   r  r   r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r   s      r   r   z.AttributionReportingSourceRegistration.to_json  s<   vyy((*VX*.*;*;<Qq<]%)%>%>%F%F%H!"+/+J+J'(zz))+V#11^"&"7"7/3/E/E#F!A#F --//1Y==002Z373C3CDaaiikD\8<8M8M"N1199;"N&*&@&@&H&H&J"#+/+J+J+R+R+T'(373[3[3c3c3e/0'+'C'C#$595G5GH		H^!%!5!5$($<$< !>>%#~~557D'!%!1!1!9!9!;D- = $G E"N
  Is   	I+		I0 I5I:I?c                    | d*i dt         j                  j                  |d         dt        |d         d|d   D cg c]  }t	        |       c}dt
        j                  |d         dt        |d         d	t        j                  |d
         dt        |d         dt        |d         d|d   D cg c]  }t        |       c}dt        j                  |d         dt        j                  |d         d|d   D cg c]  }t        j                  |       c}d|d   D cg c]  }t        j                  |       c}dt        j                  |d         dt        j                  |d         dt        j                  |d         dt        |d         d |d!   D cg c]  }t        j                  |       c}d"t        |d#         d$t	        |d%         d&d'|v rt        j                  |d'         nd d(d)|v rt         j                  |d)         S d S c c}w c c}w c c}w c c}w c c}w )+Nr  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r   )r	   r   r   r   rS   rn  r<  r&   rD  rN  rS  rj  ru  r  r  r  r  r   s      r   r   z0AttributionReportingSourceRegistration.from_json  s    
''11$v,?
tH~&
 -1,?@q%(@
 "H!Q!QRVWkRl!m	

 (+40J+K'L
 1::4<H
 d>23
 !&7!89
 044F/GH!s1vH
 +44T)_E
 )224
3CD
 TXXdSefa<FFqIf
 ^bbs]tuXYFPPQRSu
 #J"S"STXYnTo"p
 (;'D'DTJdEe'f
  1e0n0nos  uW  pX  1Y!
" %(-C(D$E#
$ UYYgThiq=GGJi%
& !&6!78'
( !&d+>&? @)
* LVY]K]+55d:6FGcg+
, P\_cOc-77\8JK-
 	
, jn-
 	
 A I gu
 js   H1;H6
H;1I 2I)	r(   r)   r*   r[   r  r  r   r+   r   r   r   r   r  r  W  s    
   K %$@@ !$#))''##!!AAKKBB 33)]]  BB8<I5<:>K7>8 
 
r   r  c                  b    e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZdZdZdZdZdZd Zed        Zy),AttributionReportingSourceRegistrationResultsuccessinternalErrorinsufficientSourceCapacity%insufficientUniqueDestinationCapacityexcessiveReportingOriginsprohibitedByBrowserPolicysuccessNoised destinationReportingLimitReacheddestinationGlobalLimitReacheddestinationBothLimitsReached#reportingOriginsPerSiteLimitReachedexceedsMaxChannelCapacityexceedsMaxScopesChannelCapacity!exceedsMaxTriggerStateCardinalityexceedsMaxEventStatesLimit&destinationPerDayReportingLimitReachedc                    | j                   S r   r>   r   s    r   r   z4AttributionReportingSourceRegistrationResult.to_json  r@   r   c                     | |      S r   r   r   s     r   r   z6AttributionReportingSourceRegistrationResult.from_json  r   r   N)r(   r)   r*   SUCCESSINTERNAL_ERRORINSUFFICIENT_SOURCE_CAPACITY(INSUFFICIENT_UNIQUE_DESTINATION_CAPACITYEXCESSIVE_REPORTING_ORIGINSPROHIBITED_BY_BROWSER_POLICYSUCCESS_NOISED#DESTINATION_REPORTING_LIMIT_REACHED DESTINATION_GLOBAL_LIMIT_REACHEDDESTINATION_BOTH_LIMITS_REACHED(REPORTING_ORIGINS_PER_SITE_LIMIT_REACHEDEXCEEDS_MAX_CHANNEL_CAPACITY#EXCEEDS_MAX_SCOPES_CHANNEL_CAPACITY%EXCEEDS_MAX_TRIGGER_STATE_CARDINALITYEXCEEDS_MAX_EVENT_STATES_LIMIT+DESTINATION_PER_DAY_REPORTING_LIMIT_REACHEDr   r+   r   r   r   r   r  r    sx    G$N#? /V,"=#> $N*L''F$&D#/T,#> *K',O)%A"2Z/  r   r  c                  *    e Zd ZdZdZd Zed        Zy)0AttributionReportingSourceRegistrationTimeConfigincludeexcludec                    | j                   S r   r>   r   s    r   r   z8AttributionReportingSourceRegistrationTimeConfig.to_json  r@   r   c                     | |      S r   r   r   s     r   r   z:AttributionReportingSourceRegistrationTimeConfig.from_json  r   r   N)r(   r)   r*   INCLUDEEXCLUDEr   r+   r   r   r   r   r  r    s%    GG  r   r  c                  B    e Zd ZU ded<   ded<   ded<   d Zed        Zy	)
.AttributionReportingAggregatableValueDictEntryr&   r   rS   r?   rD  filtering_idc                    t               }| j                  |d<   | j                  |d<   | j                  j	                         |d<   |S )Nr   r?   filteringId)rW   r   r?   r  r   rX   s     r   r   z6AttributionReportingAggregatableValueDictEntry.to_json  sA    vhhU

W"//779]r   c                t     | t        |d         t        |d         t        j                  |d               S )Nr   r?   r  )r   r?   r  )r&   rS   rD  r   r   s     r   r   z8AttributionReportingAggregatableValueDictEntry.from_json  s:    DK W&.88m9LM
 	
r   Nr:  r   r   r   r  r    s-    	H L'' 
 
r   r  c                  8    e Zd ZU ded<   ded<   d Zed        Zy)*AttributionReportingAggregatableValueEntryz;typing.List[AttributionReportingAggregatableValueDictEntry]r   rc  rd  c                    t               }| j                  D cg c]  }|j                          c}|d<   | j                  j                         |d<   |S c c}w )Nr   rd  )rW   r   r   rd  r   s      r   r   z2AttributionReportingAggregatableValueEntry.to_json  sG    v/3{{;!!))+;X,,..0Y <s   Ac                     | |d   D cg c]  }t         j                  |       c}t        j                  |d               S c c}w )Nr   rd  )r   rd  )r  r   rc  r   s      r   r   z4AttributionReportingAggregatableValueEntry.from_json  sE    Y]^fYghTUBLLQOh2<<T)_M
 	
hs   ANr:  r   r   r   r  r    s'    GG++ 
 
r   r  c                  P    e Zd ZU ded<   ded<   ded<   dZded	<   d
 Zed        Zy)$AttributionReportingEventTriggerDatarD  datarN  r  rc  rd  Nr  	dedup_keyc                   t               }| j                  j                         |d<   | j                  j                         |d<   | j                  j                         |d<   | j
                  | j
                  j                         |d<   |S )Nr  r  rd  dedupKey)rW   r  r   r  rd  r  rX   s     r   r   z,AttributionReportingEventTriggerData.to_json  sr    vyy((*V==002Z,,..0Y>>%#~~557Dr   c           	          | t         j                  |d         t        j                  |d         t        j                  |d         d|v rt         j                  |d               S d       S )Nr  r  rd  r  )r  r  rd  r  )rD  r   rN  rc  r   s     r   r   z.AttributionReportingEventTriggerData.from_json(  ss    &00f>(224
3CD2<<T)_MKUY]K]+55d:6FG	
 	
 dh	
 	
r   r(   r)   r*   r[   r  r   r+   r   r   r   r   r  r    s8    
!!++8<I5< 
 
r   r  c                  B    e Zd ZU ded<   ded<   ded<   d Zed        Zy	)
+AttributionReportingAggregatableTriggerDatarI  r~  rT  source_keysrc  rd  c                    t               }| j                  j                         |d<   | j                  D cg c]  }| c}|d<   | j                  j                         |d<   |S c c}w )Nr  
sourceKeysrd  )rW   r~  r   r  rd  r   s      r   r   z3AttributionReportingAggregatableTriggerData.to_json:  s[    v>>113Z)-)9)9:Aa:\,,..0Y ;s   	A$c           	          | t         j                  |d         |d   D cg c]  }t        |       c}t        j                  |d               S c c}w )Nr  r  rd  )r~  r  rd  )rI  r   r&   rc  r   s      r   r   z5AttributionReportingAggregatableTriggerData.from_jsonA  sN    ,66tJ7GH)-l);<AQ<2<<T)_M
 	
<s   A
Nr:  r   r   r   r  r  2  s-    %%!!++ 
 
r   r  c                  <    e Zd ZU ded<   dZded<   d Zed        Zy)(AttributionReportingAggregatableDedupKeyrc  rd  Nr  r  c                    t               }| j                  j                         |d<   | j                  | j                  j                         |d<   |S )Nrd  r  )rW   rd  r   r  rX   s     r   r   z0AttributionReportingAggregatableDedupKey.to_jsonP  sE    v,,..0Y>>%#~~557Dr   c                     | t         j                  |d         d|v rt        j                  |d               S d       S )Nrd  r  )rd  r  )rc  r   rD  r   s     r   r   z2AttributionReportingAggregatableDedupKey.from_jsonW  sJ    2<<T)_MKUY]K]+55d:6FG
 	
cg
 	
r   r  r   r   r   r	  r	  J  s,    ++8<I5< 
 
r   r	  c                  <    e Zd ZU ded<   dZded<   d Zed        Zy)(AttributionReportingNamedBudgetCandidaterc  rd  Nr   r*  c                    t               }| j                  j                         |d<   | j                  | j                  |d<   |S )Nrd  r*  )rW   rd  r   r*  rX   s     r   r   z0AttributionReportingNamedBudgetCandidate.to_jsone  s;    v,,..0Y99 99DLr   c                p     | t         j                  |d         d|v rt        |d               S d       S )Nrd  r*  )rd  r*  )rc  r   r&   r   s     r   r   z2AttributionReportingNamedBudgetCandidate.from_jsonl  s@    2<<T)_M&,nT&\"
 	
:>
 	
r   r.  r   r   r   r  r  _  s,    ++!%D
% 
 
r   r  c                      e Zd ZU ded<   ded<   ded<   ded<   d	ed
<   ded<   ded<   ded<   ded<   ded<   ded<   dZded<   dZded<   dZded<   d Zed        Z	y)'AttributionReportingTriggerRegistrationrc  rd  z5typing.List[AttributionReportingAggregatableDedupKey]aggregatable_dedup_keysz1typing.List[AttributionReportingEventTriggerData]event_trigger_dataz8typing.List[AttributionReportingAggregatableTriggerData]aggregatable_trigger_dataz7typing.List[AttributionReportingAggregatableValueEntry]aggregatable_valuesr   #aggregatable_filtering_id_max_bytesr  r  r  source_registration_time_configr  r  rT  scopesz5typing.List[AttributionReportingNamedBudgetCandidate]r  Nr  r  r   r   trigger_context_idc                   t               }| j                  j                         |d<   | j                  D cg c]  }|j                          c}|d<   | j                  D cg c]  }|j                          c}|d<   | j
                  D cg c]  }|j                          c}|d<   | j                  D cg c]  }|j                          c}|d<   | j                  |d<   | j                  |d<   | j                  j                         |d<   | j                  j                         |d	<   | j                  D cg c]  }| c}|d
<   | j                  D cg c]  }|j                          c}|d<   | j                  | j                  j                         |d<   | j                  | j                  |d<   | j                  | j                  |d<   |S c c}w c c}w c c}w c c}w c c}w c c}w )Nrd  aggregatableDedupKeyseventTriggerDataaggregatableTriggerDataaggregatableValuesaggregatableFilteringIdMaxBytesr  sourceRegistrationTimeConfigr  r  r  r  r   triggerContextId)rW   rd  r   r  r  r  r  r  r  r  r  r  r  r  r   r  r   s      r   r   z/AttributionReportingTriggerRegistration.to_json  s   v,,..0Y>B>Z>Z([([$%9=9P9P#QAAIIK#Q @D@^@^*_1199;*_&';?;S;S%Taaiik%T!"262Z2Z./!%!5!5/3/S/S/[/[/]+,373[3[3c3c3e/0%)[[1!1X595G5GH		H^>>%#~~557D..:373V3VD/0"".'+'>'>D#$! )\#Q*_%T
 2Hs#   G!GG7G$:	G)G.c                D    | t         j                  |d         |d   D cg c]  }t        j                  |       c}|d   D cg c]  }t        j                  |       c}|d   D cg c]  }t        j                  |       c}|d   D cg c]  }t
        j                  |       c}t        |d         t        |d         t        j                  |d         t        j                  |d	         |d
   D cg c]  }t        |       c}|d   D cg c]  }t        j                  |       c}d|v rt        j                  |d         nd d|v rt        |d         nd d|v rt        |d               S d       S c c}w c c}w c c}w c c}w c c}w c c}w )Nrd  r  r  r  r  r  r  r   r  r  r  r  r   r!  )rd  r  r  r  r  r  r  r  r  r  r  r  r   r  )rc  r   r	  r  r  r  r   r  r  r  r&   r  rD  r   s      r   r   z1AttributionReportingTriggerRegistration.from_json  s   2<<T)_Mdh  jA  eB  %C_`%M%W%WXY%Z  %C[_`r[stVW D N Nq Qtim  oH  jI  'Jde'R'\'\]^'_  'Jbfg{b| }]^!K!U!UVW!X }03D9Z4[0\ &6!78,\,f,fgk  mK  hL  -M0d0n0nos  uW  pX  1Y$(N3qCF3Z^_mZnoUVCMMaPoKUY]K]+55d:6FGcgXvz~X~3t4R/S+T  EI@RVZ@Zs4(:#;<
 	
 ae
 	
 %Ct 'J }
 4os#   F
F	+FF=FF)
r(   r)   r*   r[   r  r   r  r   r+   r   r   r   r   r  r  t  s    ++RRIIWWPP),,%UU)]]HH8<I5<;?"$8?/3,3* 
 
r   r  c                  n    e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZdZdZdZdZdZdZdZdZd Zed        Zy)$AttributionReportingEventLevelResultr  successDroppedLowerPriorityr  #noCapacityForAttributionDestinationnoMatchingSourcesdeduplicatedexcessiveAttributionspriorityTooLowneverAttributedSourcer  noMatchingSourceFilterDatar  noMatchingConfigurationsexcessiveReportsfalselyAttributedSourcereportWindowPassednotRegisteredreportWindowNotStartednoMatchingTriggerDatac                    | j                   S r   r>   r   s    r   r   z,AttributionReportingEventLevelResult.to_json  r@   r   c                     | |      S r   r   r   s     r   r   z.AttributionReportingEventLevelResult.from_json  r   r   N)r(   r)   r*   r  SUCCESS_DROPPED_LOWER_PRIORITYr  'NO_CAPACITY_FOR_ATTRIBUTION_DESTINATIONNO_MATCHING_SOURCESDEDUPLICATEDEXCESSIVE_ATTRIBUTIONSPRIORITY_TOO_LOWNEVER_ATTRIBUTED_SOURCEr  NO_MATCHING_SOURCE_FILTER_DATAr  NO_MATCHING_CONFIGURATIONSEXCESSIVE_REPORTSFALSELY_ATTRIBUTED_SOURCEREPORT_WINDOW_PASSEDNOT_REGISTEREDREPORT_WINDOW_NOT_STARTEDNO_MATCHING_TRIGGER_DATAr   r+   r   r   r   r   r$  r$    s    G%B"$N.S+-!L4'5"=%A"#> !;* 9/$N 86  r   r$  c                  ^    e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZdZdZdZdZd Zed        Zy)&AttributionReportingAggregatableResultr  r  r&  r'  r)  r  noHistogramsinsufficientBudgetinsufficientNamedBudgetr,  r1  r  r(  r0  r.  c                    | j                   S r   r>   r   s    r   r   z.AttributionReportingAggregatableResult.to_json  r@   r   c                     | |      S r   r   r   s     r   r   z0AttributionReportingAggregatableResult.from_json  r   r   N)r(   r)   r*   r  r  r7  r8  r:  r  NO_HISTOGRAMSINSUFFICIENT_BUDGETINSUFFICIENT_NAMED_BUDGETr=  rB  r  r9  rA  r?  r   r+   r   r   r   r   rF  rF    sp    G$N.S+-4"="M. 9%A"$N#> !L/*  r   rF  c                  2    e Zd ZdZdZdZdZd Zed        Z	y) AttributionReportingReportResultsent
prohibitedfailedToAssembleexpiredc                    | j                   S r   r>   r   s    r   r   z(AttributionReportingReportResult.to_json  r@   r   c                     | |      S r   r   r   s     r   r   z*AttributionReportingReportResult.from_json  r   r   N)
r(   r)   r*   SENT
PROHIBITEDFAILED_TO_ASSEMBLEEXPIREDr   r+   r   r   r   r   rP  rP    s0    DJ+G  r   rP  c                  F    e Zd ZU dZded<   ded<   ded<   d Zed        Zy)	RelatedWebsiteSetz.
    A single Related Website Set object.
    rT  primary_sitesassociated_sitesservice_sitesc                    t               }| j                  D cg c]  }| c}|d<   | j                  D cg c]  }| c}|d<   | j                  D cg c]  }| c}|d<   |S c c}w c c}w c c}w )NprimarySitesassociatedSitesserviceSites)rW   r]  r^  r_  r   s      r   r   zRelatedWebsiteSet.to_json  sk    v+/+=+=>a>^.2.C.C"D1"D+/+=+=>a>^  ?"D>s   	A$	A)	A.c           
          | |d   D cg c]  }t        |       c}|d   D cg c]  }t        |       c}|d   D cg c]  }t        |       c}      S c c}w c c}w c c}w )Nra  rb  rc  )r]  r^  r_  r   r   s      r   r   zRelatedWebsiteSet.from_json  s^    +/+?@a3q6@.23D.EFc!fF+/+?@a3q6@
 	
@F@s   AA
 A$NrZ   r   r   r   r\  r\    s8     $# '& $# 
 
r   r\  c              #     K   t               }| j                         |d<   d|d}|}t        j                  |d         S w)zV
    Returns a storage key given a frame id.

    :param frame_id:
    :returns: 
    frameIdzStorage.getStorageKeyForFramemethodparamsr,  )rW   r   r   r   )frame_idri  cmd_dictr   s       r   get_storage_key_for_framerl    sN      &F ((*F91H >D))$|*<==s   ?Ac              #  F   K   t               }| |d<   ||d<   d|d}|}yw)z
    Clears storage for origin.

    :param origin: Security origin.
    :param storage_types: Comma separated list of StorageType to clear.
    originstorageTypeszStorage.clearDataForOriginrg  NrW   )rn  storage_typesri  rk  r   s        r   clear_data_for_originrr  0  s9      &FF8*F>.H >D   !c              #  F   K   t               }| |d<   ||d<   d|d}|}yw)z
    Clears storage for storage key.

    :param storage_key: Storage key.
    :param storage_types: Comma separated list of StorageType to clear.
    r,  ro  zStorage.clearDataForStorageKeyrg  Nrp  )r)  rq  ri  rk  r   s        r   clear_data_for_storage_keyru  D  s9      &F&F<*F>2H >Drs  c              #     K   t               }| | j                         |d<   d|d}|}|d   D cg c]!  }t        j                  j	                  |      # c}S c c}w w)z
    Returns all browser cookies.

    :param browser_context_id: *(Optional)* Browser context to use when called on the browser endpoint.
    :returns: Array of cookie objects.
    browserContextIdzStorage.getCookiesrg  r0   )rW   r   r	   Cookier   )browser_context_idri  rk  r   r   s        r   get_cookiesrz  X  sf      &F%%7%?%?%A!"&H >D15iAAGNN$$Q'AAAs   0A &AA c              #     K   t               }| D cg c]  }|j                          c}|d<   ||j                         |d<   d|d}|}yc c}w w)z
    Sets given cookies.

    :param cookies: Cookies to be set.
    :param browser_context_id: *(Optional)* Browser context to use when called on the browser endpoint.
    r0   Nrw  zStorage.setCookiesrg  rW   r   )r0   ry  ri  r   rk  r   s         r   set_cookiesr}  l  s_      &F.566F9%%7%?%?%A!"&H >D 7s   AA*Ac              #  \   K   t               }| | j                         |d<   d|d}|}yw)z
    Clears cookies.

    :param browser_context_id: *(Optional)* Browser context to use when called on the browser endpoint.
    Nrw  zStorage.clearCookiesrg  r|  )ry  ri  rk  r   s       r   clear_cookiesr    s?      &F%%7%?%?%A!"(H >Ds   *,c           	   #     K   t               }| |d<   d|d}|}t        |d         t        |d         t        |d         |d   D cg c]  }t        j	                  |       c}fS c c}w w)a|  
    Returns usage and quota in bytes.

    :param origin: Security origin.
    :returns: A tuple with the following items:

        0. **usage** - Storage usage (bytes).
        1. **quota** - Storage quota (bytes).
        2. **overrideActive** - Whether or not the origin has an active storage quota override
        3. **usageBreakdown** - Storage usage per type (bytes).
    rn  zStorage.getUsageAndQuotarg  rT   r4  overrideActiveusageBreakdown)rW   rS   r  rQ   r   )rn  ri  rk  r   r   s        r   get_usage_and_quotar    s      &FF8,H >Dd7md7mT"#$,01A,BCq			"C	  	Ds   AA.	A)
%	A.c              #  J   K   t               }| |d<   |||d<   d|d}|}yw)aV  
    Override quota for the specified origin

    **EXPERIMENTAL**

    :param origin: Security origin.
    :param quota_size: *(Optional)* The quota size (in bytes) to override the original quota with. If this is called multiple times, the overridden quota will be equal to the quotaSize provided in the final call. If this is called without specifying a quotaSize, the quota will be reset to the default value for the specified origin. If this is called multiple times with different origins, the override will be maintained for each origin until it is disabled (called without a quotaSize).
    rn  N	quotaSizezStorage.overrideQuotaForOriginrg  rp  )rn  
quota_sizeri  rk  r   s        r   override_quota_for_originr    s?      &FF8({2H >Ds   !#c              #  <   K   t               }| |d<   d|d}|}yw)z
    Registers origin to be notified when an update occurs to its cache storage list.

    :param origin: Security origin.
    rn  z"Storage.trackCacheStorageForOriginrg  Nrp  rn  ri  rk  r   s       r   track_cache_storage_for_originr    s/      &FF86H >D   c              #  <   K   t               }| |d<   d|d}|}yw)z
    Registers storage key to be notified when an update occurs to its cache storage list.

    :param storage_key: Storage key.
    r,  z&Storage.trackCacheStorageForStorageKeyrg  Nrp  r)  ri  rk  r   s       r   #track_cache_storage_for_storage_keyr    s/      &F&F<:H >Dr  c              #  <   K   t               }| |d<   d|d}|}yw)zv
    Registers origin to be notified when an update occurs to its IndexedDB.

    :param origin: Security origin.
    rn  zStorage.trackIndexedDBForOriginrg  Nrp  r  s       r   track_indexed_db_for_originr    s/      &FF83H >Dr  c              #  <   K   t               }| |d<   d|d}|}yw)z|
    Registers storage key to be notified when an update occurs to its IndexedDB.

    :param storage_key: Storage key.
    r,  z#Storage.trackIndexedDBForStorageKeyrg  Nrp  r  s       r    track_indexed_db_for_storage_keyr    s/      &F&F<7H >Dr  c              #  <   K   t               }| |d<   d|d}|}yw)zq
    Unregisters origin from receiving notifications for cache storage.

    :param origin: Security origin.
    rn  z$Storage.untrackCacheStorageForOriginrg  Nrp  r  s       r    untrack_cache_storage_for_originr    s/      &FF88H >Dr  c              #  <   K   t               }| |d<   d|d}|}yw)zw
    Unregisters storage key from receiving notifications for cache storage.

    :param storage_key: Storage key.
    r,  z(Storage.untrackCacheStorageForStorageKeyrg  Nrp  r  s       r   %untrack_cache_storage_for_storage_keyr    s/      &F&F<<H >Dr  c              #  <   K   t               }| |d<   d|d}|}yw)zm
    Unregisters origin from receiving notifications for IndexedDB.

    :param origin: Security origin.
    rn  z!Storage.untrackIndexedDBForOriginrg  Nrp  r  s       r   untrack_indexed_db_for_originr  -  s/      &FF85H >Dr  c              #  <   K   t               }| |d<   d|d}|}yw)zs
    Unregisters storage key from receiving notifications for IndexedDB.

    :param storage_key: Storage key.
    r,  z%Storage.untrackIndexedDBForStorageKeyrg  Nrp  r  s       r   "untrack_indexed_db_for_storage_keyr  >  s/      &F&F<9H >Dr  c               #  p   K   ddi} | }|d   D cg c]  }t         j                  |       c}S c c}w w)z
    Returns the number of stored Trust Tokens per issuer for the
    current browsing context.

    **EXPERIMENTAL**

    :returns: 
    rh  zStorage.getTrustTokenstokens)r]   r   rk  r   r   s      r   get_trust_tokensr  O  sA      	*H >D.28n=K!!!$===   616c              #  V   K   t               }| |d<   d|d}|}t        |d         S w)a	  
    Removes all Trust Tokens issued by the provided issuerOrigin.
    Leaves other stored data, including the issuer's Redemption Records, intact.

    **EXPERIMENTAL**

    :param issuer_origin:
    :returns: True if any tokens were deleted, false otherwise.
    ra   zStorage.clearTrustTokensrg  didDeleteTokens)rW   r  )r^   ri  rk  r   s       r   clear_trust_tokensr  _  s@      &F*F>,H >D&'((s   ')c              #  `   K   t               }| |d<   ||d<   d|d}|}t        |d         S w)a>  
    Gets details for a named interest group.

    **EXPERIMENTAL**

    :param owner_origin:
    :param name:
    :returns: This largely corresponds to: https://wicg.github.io/turtledove/#dictdef-generatebidinterestgroup but has absolute expirationTime instead of relative lifetimeMs and also adds joiningOrigin.
    ownerOriginr*  zStorage.getInterestGroupDetailsrg  detailsrp  )owner_originr*  ri  rk  r   s        r   get_interest_group_detailsr  u  sG      &F(F=F6N3H >DY  s   ,.c              #  <   K   t               }| |d<   d|d}|}yw)zm
    Enables/Disables issuing of interestGroupAccessed events.

    **EXPERIMENTAL**

    :param enable:
    enablez Storage.setInterestGroupTrackingrg  Nrp  r  ri  rk  r   s       r   set_interest_group_trackingr    /      &FF84H >Dr  c              #  <   K   t               }| |d<   d|d}|}yw)z
    Enables/Disables issuing of interestGroupAuctionEventOccurred and
    interestGroupAuctionNetworkRequestCreated.

    **EXPERIMENTAL**

    :param enable:
    r  z'Storage.setInterestGroupAuctionTrackingrg  Nrp  r  s       r   #set_interest_group_auction_trackingr    s/      &FF8;H >Dr  c              #  j   K   t               }| |d<   d|d}|}t        j                  |d         S w)zv
    Gets metadata for an origin's shared storage.

    **EXPERIMENTAL**

    :param owner_origin:
    :returns: 
    r  z Storage.getSharedStorageMetadatarg  metadata)rW   r   r   r  ri  rk  r   s       r   get_shared_storage_metadatar    sE      &F(F=4H >D **4
+;<<s   13c              #     K   t               }| |d<   d|d}|}|d   D cg c]  }t        j                  |       c}S c c}w w)z~
    Gets the entries in an given origin's shared storage.

    **EXPERIMENTAL**

    :param owner_origin:
    :returns: 
    r  zStorage.getSharedStorageEntriesrg  r   )rW   r   r   )r  ri  rk  r   r   s        r   get_shared_storage_entriesr    sS      &F(F=3H >D59)_E((+EEEs    AAAc              #  ^   K   t               }| |d<   ||d<   ||d<   |||d<   d|d}|}yw)a?  
    Sets entry with ``key`` and ``value`` for a given origin's shared storage.

    **EXPERIMENTAL**

    :param owner_origin:
    :param key:
    :param value:
    :param ignore_if_present: *(Optional)* If ```ignoreIfPresent```` is included and true, then only sets the entry if ````key``` doesn't already exist.
    r  r   r?   Nr  zStorage.setSharedStorageEntryrg  rp  )r  r   r?   r  ri  rk  r   s          r   set_shared_storage_entryr    sR       &F(F=F5MF7O$$5 !1H >Ds   +-c              #  F   K   t               }| |d<   ||d<   d|d}|}yw)z
    Deletes entry for ``key`` (if it exists) for a given origin's shared storage.

    **EXPERIMENTAL**

    :param owner_origin:
    :param key:
    r  r   z Storage.deleteSharedStorageEntryrg  Nrp  )r  r   ri  rk  r   s        r   delete_shared_storage_entryr    s8      &F(F=F5M4H >Drs  c              #  <   K   t               }| |d<   d|d}|}yw)zq
    Clears all entries for a given origin's shared storage.

    **EXPERIMENTAL**

    :param owner_origin:
    r  z!Storage.clearSharedStorageEntriesrg  Nrp  r  s       r   clear_shared_storage_entriesr    s/      &F(F=5H >Dr  c              #  <   K   t               }| |d<   d|d}|}yw)z
    Resets the budget for ``ownerOrigin`` by clearing all budget withdrawals.

    **EXPERIMENTAL**

    :param owner_origin:
    r  z Storage.resetSharedStorageBudgetrg  Nrp  r  s       r   reset_shared_storage_budgetr  $  s/      &F(F=4H >Dr  c              #  <   K   t               }| |d<   d|d}|}yw)zm
    Enables/disables issuing of sharedStorageAccessed events.

    **EXPERIMENTAL**

    :param enable:
    r  z Storage.setSharedStorageTrackingrg  Nrp  r  s       r   set_shared_storage_trackingr  7  r  r  c              #  F   K   t               }| |d<   ||d<   d|d}|}yw)zu
    Set tracking for a storage key's buckets.

    **EXPERIMENTAL**

    :param storage_key:
    :param enable:
    r,  r  z Storage.setStorageBucketTrackingrg  Nrp  )r)  r  ri  rk  r   s        r   set_storage_bucket_trackingr  J  s9      &F&F<F84H >Drs  c              #  X   K   t               }| j                         |d<   d|d}|}yw)zz
    Deletes the Storage Bucket with the given storage key and bucket name.

    **EXPERIMENTAL**

    :param bucket:
    r1  zStorage.deleteStorageBucketrg  Nr|  )r1  ri  rk  r   s       r   delete_storage_bucketr  `  s6      &F~~'F8/H >Ds   (*c               #  \   K   ddi} | }|d   D cg c]  }t        |       c}S c c}w w)z}
    Deletes state for sites identified as potential bounce trackers, immediately.

    **EXPERIMENTAL**

    :returns: 
    rh  z$Storage.runBounceTrackingMitigationsdeletedSitesr   r  s      r   run_bounce_tracking_mitigationsr  s  s;      	8H >D 01qCF111s   ,',c              #  <   K   t               }| |d<   d|d}|}yw)z
    https://wicg.github.io/attribution-reporting-api/

    **EXPERIMENTAL**

    :param enabled: If enabled, noise is suppressed and reports are sent immediately.
    enabledz/Storage.setAttributionReportingLocalTestingModerg  Nrp  )r  ri  rk  r   s       r   ,set_attribution_reporting_local_testing_moder    s/      &FF9CH >Dr  c              #  <   K   t               }| |d<   d|d}|}yw)zm
    Enables/disables issuing of Attribution Reporting events.

    **EXPERIMENTAL**

    :param enable:
    r  z'Storage.setAttributionReportingTrackingrg  Nrp  r  s       r   "set_attribution_reporting_trackingr    s/      &FF8;H >Dr  c               #  6   K   ddi} | }t        |d         S w)z
    Sends all pending Attribution Reports immediately, regardless of their
    scheduled report time.

    **EXPERIMENTAL**

    :returns: The number of reports that were sent.
    rh  z%Storage.sendPendingAttributionReportsnumSentrs  )rk  r   s     r    send_pending_attribution_reportsr    s-      	9H >DtIs   c               #  p   K   ddi} | }|d   D cg c]  }t         j                  |       c}S c c}w w)z
    Returns the effective Related Website Sets in use by this profile for the browser
    session. The effective Related Website Sets will not change during a browser session.

    **EXPERIMENTAL**

    :returns: 
    rh  zStorage.getRelatedWebsiteSetssets)r\  r   r  s      r   get_related_website_setsr    sB      	1H >D48LAq''*AAAr  c              #     K   t               }| |d<   |D cg c]  }| c}|d<   d|d}|}|d   D cg c]  }t        |       c}S c c}w c c}w w)a#  
    Returns the list of URLs from a page and its embedded resources that match
    existing grace period URL pattern rules.
    https://developers.google.com/privacy-sandbox/cookies/temporary-exceptions/grace-period

    **EXPERIMENTAL**

    :param first_party_url: The URL of the page currently being visited.
    :param third_party_urls: The list of embedded resource URLs from the page.
    :returns: Array of matching URLs. If there is a primary pattern match for the first- party URL, only the first-party URL is returned in the array.
    firstPartyUrlthirdPartyUrlsz2Storage.getAffectedUrlsForThirdPartyCookieMetadatarg  matchedUrls)rW   r&   )first_party_urlthird_party_urlsri  r   rk  r   s         r   1get_affected_urls_for_third_party_cookie_metadatar    si      &F-F?+;<a<FFH >D /0qCF00  = 1s   A	A
AAAc              #  v   K   t               }| |d<   ||d<   |D cg c]  }| c}|d<   d|d}|}yc c}w w)z;
    :param owner:
    :param name:
    :param hashes:
    ownerr*  hashesz&Storage.setProtectedAudienceKAnonymityrg  Nrp  )r  r*  r  ri  r   rk  r   s          r   "set_protected_audience_k_anonymityr    sQ      &FF7OF6N#)*a*F8:H >D +s   9	49z"Storage.cacheStorageContentUpdatedc                  L    e Zd ZU dZded<   ded<   ded<   ded<   ed	d       Zy)
CacheStorageContentUpdatedz0
    A cache's contents have been modified.
    r&   rn  r)  	bucket_id
cache_namec           	     z     | t        |d         t        |d         t        |d         t        |d               S )Nrn  r,  bucketId	cacheName)rn  r)  r  r  r   r   s     r   r   z$CacheStorageContentUpdated.from_json  sB    tH~&D./$z*+4,-	
 	
r   N)r   r   r%   r  r(   r)   r*   rB   r[   r+   r   r   r   r   r  r    s0     KNO
 
r   r  zStorage.cacheStorageListUpdatedc                  B    e Zd ZU dZded<   ded<   ded<   edd       Zy)	CacheStorageListUpdatedz)
    A cache has been added/deleted.
    r&   rn  r)  r  c                `     | t        |d         t        |d         t        |d               S Nrn  r,  r  )rn  r)  r  r   r   s     r   r   z!CacheStorageListUpdated.from_json  5    tH~&D./$z*+
 	
r   N)r   r   r%   r  r  r   r   r   r  r    +     KN
 
r   r  zStorage.indexedDBContentUpdatedc                  V    e Zd ZU dZded<   ded<   ded<   ded<   ded<   ed
d       Zy	)IndexedDBContentUpdatedz@
    The origin's IndexedDB object store has been modified.
    r&   rn  r)  r  database_nameobject_store_namec           
          | t        |d         t        |d         t        |d         t        |d         t        |d               S )Nrn  r,  r  databaseNameobjectStoreName)rn  r)  r  r  r  r   r   s     r   r   z!IndexedDBContentUpdated.from_json7  sP    tH~&D./$z*+d>23!$'8"9:
 	
r   N)r   r   r%   r  r  r   r   r   r  r  &  s7     KN
 
r   r  zStorage.indexedDBListUpdatedc                  B    e Zd ZU dZded<   ded<   ded<   edd       Zy)	IndexedDBListUpdatedzA
    The origin's IndexedDB database list has been modified.
    r&   rn  r)  r  c                `     | t        |d         t        |d         t        |d               S r  r   r   s     r   r   zIndexedDBListUpdated.from_jsonO  r  r   N)r   r   r%   r  r  r   r   r   r  r  B  r  r   r  zStorage.interestGroupAccessedc                  t    e Zd ZU dZded<   ded<   ded<   ded<   d	ed
<   ded<   d	ed<   ded<   edd       Zy)InterestGroupAccessedz
    One of the interest groups was accessed. Note that these events are global
    to all targets sharing an interest group store.
    r   access_timerk   r  r&   r  r*  r   component_seller_originr  rp   bid_currency'typing.Optional[InterestGroupAuctionId]unique_auction_idc                l    | t         j                  j                  |d         t        j                  |d         t	        |d         t	        |d         d|v rt	        |d         nd d|v rt        |d         nd d|v rt	        |d         nd d|v rt        j                  |d         	      S d 	      S )
N
accessTimer  r  r*  componentSellerOriginrp   bidCurrencyuniqueAuctionId)r  r  r  r*  r  rp   r  r  )r	   r   r   rk   r&   rS   re   r   s     r   r   zInterestGroupAccessed.from_jsonl  s    ..88l9KL)33DLAT-01T&\"JaeiJiC-D(E$Fos&+tmd5k"5Bd5JT-01PT[lpt[t4>>tDU?VW	
 		
 {	
 		
r   N)r   r   r%   r  r  r   r   r   r  r  X  sL     ('""
I 21	&&>>

 

r   r  z)Storage.interestGroupAuctionEventOccurredc                  V    e Zd ZU dZded<   ded<   ded<   ded	<   d
ed<   edd       Zy)!InterestGroupAuctionEventOccurredze
    An auction involving interest groups is taking place. These events are
    target-specific.
    r   
event_timer   r  re   r  r  parent_auction_idztyping.Optional[dict]auction_configc           
         | t         j                  j                  |d         t        j                  |d         t        j                  |d         d|v rt        j                  |d         nd d|v rt        |d               S d       S )N	eventTimer  r  parentAuctionIdauctionConfig)r  r  r  r  r  )r	   r   r   r   re   rW   r   s     r   r   z+InterestGroupAuctionEventOccurred.from_json  s    --77[8IJ/99$v,G4>>tDU?VW[lpt[t4>>tDU?VWz~:IT:Q4_ 56
 	

 X\
 	
r   N)r   r   r%   r  r  r   r   r   r  r  z  s9     '&((-->>))
 
r   r  z1Storage.interestGroupAuctionNetworkRequestCreatedc                  B    e Zd ZU dZded<   ded<   ded<   ed
d       Zy	))InterestGroupAuctionNetworkRequestCreatedz
    Specifies which auctions a particular network fetch may be related to, and
    in what role. Note that it is not ordered with respect to
    Network.requestWillBeSent (but will happen before loadingFinished
    loadingFailed).
    r   r  znetwork.RequestId
request_idz#typing.List[InterestGroupAuctionId]auctionsc           
          | t         j                  |d         t        j                  j                  |d         |d   D cg c]  }t        j                  |       c}      S c c}w )Nr  	requestIdr  )r  r  r  )r   r   r	   	RequestIdre   r   s      r   r   z3InterestGroupAuctionNetworkRequestCreated.from_json  s_    /99$v,G((2243DECG
CSTa,66q9T
 	
 Us   A&N)r   r   r%   r
  r  r   r   r   r
  r
    s/     )(!! 21
 
r   r
  zStorage.sharedStorageAccessedc                  j    e Zd ZU dZded<   ded<   ded<   ded	<   d
ed<   d
ed<   ded<   edd       Zy)SharedStorageAccessedzv
    Shared storage was accessed by the associated page.
    The following parameters are included in all events.
    r   r  r   scoper   rh  page.FrameIdmain_frame_idr&   r  
owner_siter   ri  c                T    | t         j                  j                  |d         t        j                  |d         t        j                  |d         t
        j                  j                  |d         t        |d         t        |d         t        j                  |d               S )	Nr  r  rh  mainFrameIdr  	ownerSiteri  )r  r  rh  r  r  r  ri  )	r	   r   r   r   r   r
   FrameIdr&   r   r   s     r   r   zSharedStorageAccessed.from_json  s    ..88l9KL*44T']C,66tH~F,,00m1DET-014,-,66tH~F
 	
r   N)r   r   r%   r  r  r   r   r   r  r    sF    
 ('##%%O &%	
 	
r   r  z6Storage.sharedStorageWorkletOperationExecutionFinishedc                  j    e Zd ZU dZded<   ded<   ded<   ded	<   d
ed<   ded<   ded<   edd       Zy).SharedStorageWorkletOperationExecutionFinishedz
    A shared storage run or selectURL operation finished its execution.
    The following parameters are included in all events.
    r   finished_timer   execution_timer   rh  r&   r   ztarget.TargetIDr  r  r  r  c                T    | t         j                  j                  |d         t        |d         t        j                  |d         t        |d         t        j                  j                  |d         t        j                  j                  |d         t        |d               S )	NfinishedTimeexecutionTimerh  r  r  r  r  )r  r  rh  r   r  r  r  )
r	   r   r   r   r   r&   r   r  r
   r  r   s     r   r   z8SharedStorageWorkletOperationExecutionFinished.from_json  s    !00::4;OPtO45,66tH~FT-01$oo77=N8OP,,00m1DET-01
 	
r   N)r   r   r%   r  r  r   r   r   r  r    sI    
 *) %% '&	
 	
r   r  z%Storage.storageBucketCreatedOrUpdatedc                  *    e Zd ZU ded<   edd       Zy)StorageBucketCreatedOrUpdatedr0  bucket_infoc                @     | t         j                  |d               S )N
bucketInfo)r#  )r0  r   r   s     r   r   z'StorageBucketCreatedOrUpdated.from_json  s"    )33D4FG
 	
r   N)r   r   r%   r"  r(   r)   r*   r[   r+   r   r   r   r   r"  r"    s     #"
 
r   r"  zStorage.storageBucketDeletedc                  *    e Zd ZU ded<   edd       Zy)StorageBucketDeletedr&   r  c                ,     | t        |d               S )Nr  )r  r   r   s     r   r   zStorageBucketDeleted.from_json	  s    $z*+
 	
r   N)r   r   r%   r(  r&  r   r   r   r(  r(  	  s     N
 
r   r(  z,Storage.attributionReportingSourceRegisteredc                  8    e Zd ZU dZded<   ded<   edd       Zy)	$AttributionReportingSourceRegistered
    **EXPERIMENTAL**


    r  registrationr  resultc                n     | t         j                  |d         t        j                  |d               S )Nr-  r.  )r-  r.  )r  r   r  r   s     r   r   z.AttributionReportingSourceRegistered.from_json	  s4    ?II$~J^_?II$x.Y
 	
r   N)r   r   r%   r+  r  r   r   r   r+  r+  	  s'    
 9888
 
r   r+  z-Storage.attributionReportingTriggerRegisteredc                  B    e Zd ZU dZded<   ded<   ded<   ed
d       Zy	)%AttributionReportingTriggerRegisteredr,  r  r-  r$  event_levelrF  aggregatablec                     | t         j                  |d         t        j                  |d         t        j                  |d               S )Nr-  
eventLevelr3  )r-  r2  r3  )r  r   r$  rF  r   s     r   r   z/AttributionReportingTriggerRegistered.from_json-	  sI    @JJ4P^K_`<FFtLGYZ?II$~J^_
 	
r   N)r   r   r%   r1  r  r   r   r   r1  r1  !	  s-    
 :95588
 
r   r1  z&Storage.attributionReportingReportSentc                  `    e Zd ZU dZded<   ded<   ded<   ded	<   d
ed<   ded<   edd       Zy)AttributionReportingReportSentr,  r&   r   rW   bodyrP  r.  r   	net_errorr   net_error_namehttp_status_codec                     | t        |d         t        |d         t        j                  |d         d|v rt	        |d         nd d|v rt        |d         nd d|v rt	        |d               S d       S )Nr   r8  r.  netErrornetErrorNamehttpStatusCode)r   r8  r.  r9  r:  r;  )r&   rW   rP  r   r   r   s     r   r   z(AttributionReportingReportSent.from_jsonF	  s    DK d6l#3==d8nM/9T/Ac$z*+t8F$8N3tN34TX<LPT<TS&6!78
 	
 [_
 	
r   N)r   r   r%   r7  r  r   r   r   r7  r7  6	  s=    
 
H
J,,##((**
 
r   r7  z2Storage.attributionReportingVerboseDebugReportSentc                  V    e Zd ZU dZded<   ded<   ded<   ded	<   ded
<   edd       Zy)*AttributionReportingVerboseDebugReportSentr,  r&   r   z"typing.Optional[typing.List[dict]]r8  r   r9  r   r:  r;  c           
          | t        |d         d|v r|d   D cg c]  }t        |       c}nd d|v rt        |d         nd d|v rt        |d         nd d|v rt        |d               S d       S c c}w )Nr   r8  r=  r>  r?  )r   r8  r9  r:  r;  )r&   rW   r   r   s      r   r   z4AttributionReportingVerboseDebugReportSent.from_json`	  s    DK 4:dN4<0a$q'0/9T/Ac$z*+t8F$8N3tN34TX<LPT<TS&6!78
 	

 [_
 	
0s   A5
N)r   r   r%   rA  r  r   r   r   rA  rA  R	  s8    
 
H
,,##((**
 
r   rA  )rj  r  r%   z@typing.Generator[T_JSON_DICT, T_JSON_DICT, SerializedStorageKey])rn  r&   rq  r&   r%   0typing.Generator[T_JSON_DICT, T_JSON_DICT, None])r)  r&   rq  r&   r%   rC  r   )ry  )typing.Optional[browser.BrowserContextID]r%   zGtyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.List[network.Cookie]])r0   z typing.List[network.CookieParam]ry  rD  r%   rC  )ry  rD  r%   rC  )rn  r&   r%   zgtyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.Tuple[float, float, bool, typing.List[UsageForType]]])rn  r&   r  r  r%   rC  )rn  r&   r%   rC  )r)  r&   r%   rC  )r%   zDtyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.List[TrustTokens]])r^   r&   r%   z0typing.Generator[T_JSON_DICT, T_JSON_DICT, bool])r  r&   r*  r&   r%   z0typing.Generator[T_JSON_DICT, T_JSON_DICT, dict])r  r  r%   rC  )r  r&   r%   zAtyping.Generator[T_JSON_DICT, T_JSON_DICT, SharedStorageMetadata])r  r&   r%   zKtyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.List[SharedStorageEntry]])
r  r&   r   r&   r?   r&   r  r   r%   rC  )r  r&   r   r&   r%   rC  )r  r&   r%   rC  )r)  r&   r  r  r%   rC  )r1  r(  r%   rC  )r%   <typing.Generator[T_JSON_DICT, T_JSON_DICT, typing.List[str]])r  r  r%   rC  )r%   z/typing.Generator[T_JSON_DICT, T_JSON_DICT, int])r%   zJtyping.Generator[T_JSON_DICT, T_JSON_DICT, typing.List[RelatedWebsiteSet]])r  r&   r  rT  r%   rE  )r  r&   r*  r&   r  rT  r%   rC  )s
__future__r   utilr   r   dataclassesr   enumtyping r   r	   r
   r   r&   r   Enumr/   rQ   r]   re   rk   r   r   r   r   r   r   r   r   r   r   r   r(  r0  r<  rD  rI  rN  rS  rZ  rc  rj  rn  ru  r}  r  r  r  r  r  r  r  r  r  r  r	  r  r  r$  rF  rP  r\  rl  rr  ru  rz  r}  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r
  r  r  r"  r(  r+  r1  r7  rA  r   r   r   <module>rM     s	   # * !      	E3 	E$)) 4 
 
 
0 
 
 
.GS Gdii 0DII DII $tyy "		 8 
 
 
,  
  
  
F #
 #
 #
L 
 
 
, 
 
 
0 P
 P
 P
f	tyy 	 
 
 
* !
 !
 !
H	TYY 		FC 	F	GS 	G	D# 	D 
 
 
& 
 
 
* 
 
 
& 
 
 
& 
 
 
*	dii 	 
 
 
2 
 
 
> 
 
 
2 
 
 
& f
 f
 f
R499 4	tyy 	 
 
 
2 
 
 
& 
 
 
8 
 
 
. 
 
 
( 
 
 
( C
 C
 C
L499 :TYY 2tyy  
 
 
:>>	G>& 
8( 
8* IMBEB	NB, IM1E 
8, IME	7$	n> .2* 
8.	7"	7"	7"	7"	7"	7"	7"	7"> ))	7),!!! 
8!0	7&	7(==	H=*FF	RF2 48	  1	
 
8: 
8,	7&	7&	7& 
8,	7&2	7&	7&  B 11*1 
D14 ! 
8	* 12

 
  3
. ./

 
  0
( ./

 
  0
4 +,

 
  -
( ,-

 
  .
@ 89

 
  :
0 @A

 
  B
. ,-

 
  .
D EF
 
  
  G 
F 45

 
  6
 +,

 
  -
 ;<

 
  =
" <=

 
  >
& 56

 
  7
4 AB

 
  C
r   