package Ġpl . wend igo . chrome . api . aud its Ċ Ċ import Ġkotlinx . serialization . json . Json Ċ Ċ /** Ċ Ġ* ĠAud its Ġdomain Ġallows Ġinvestigation Ġof Ġpage Ġviolations Ġand Ġpossible Ġimprovements . Ċ Ġ* Ċ Ġ* ĠThis ĠAPI Ġis Ġmarked Ġas Ġexperimental Ġin Ġprotocol Ġdefinition Ġand Ġcan Ġchange Ġin Ġthe Ġfuture . Ċ Ġ* Ġ@ link ĠProtocol Ġ[ Aud its ]( https :// chrome devtools . github . io / devtools - protocol / tot / Aud its ) Ġdomain Ġdocumentation . Ċ Ġ*/ Ċ @ pl . wend igo . chrome . protocol . Experimental Ċ class ĠAud its Domain Ġinternal Ġconstructor ( connection : Ġpl . wend igo . chrome . protocol . Protocol Connection ) Ġ: ĊĠĠĠ Ġpl . wend igo . chrome . protocol . Domain (" Aud its ", Ġ""" Aud its Ġdomain Ġallows Ġinvestigation Ġof Ġpage Ġviolations Ġand Ġpossible Ġimprovements . """, Ġconnection ) Ġ{ ĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* ĠReturns Ġthe Ġresponse Ġbody Ġand Ġsize Ġif Ġit Ġwere Ġre - encoded Ġwith Ġthe Ġspecified Ġsettings . ĠOnly Ċ app lies Ġto Ġimages . ĊĠĠĠĠ Ġ* ĊĠĠĠĠ Ġ* Ġ@ link ĠProtocol Ġ[ Aud its # get Encoded Response ]( https :// chrome devtools . github . io / devtools - protocol / tot / Aud its # method - get Encoded Response ) Ġmethod Ġdocumentation . ĊĠĠĠĠ Ġ*/ ĊĠĠĠĠĊĠĠĠ Ġfun Ġget Encoded Response ( input : ĠGet Encoded Response Request ): Ġio . reactivex . rx java 3 . core . Single < Get Encoded Response Response > Ġ= Ġconnection . request (" Aud its . get Encoded Response ", ĠJson . encode ToJson Element ( Get Encoded Response Request . serializer (), Ġinput ), ĠGet Encoded Response Response . serializer ()) ĊĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* ĠDis ables Ġissues Ġdomain , Ġprevents Ġfurther Ġissues Ġfrom Ġbeing Ġreported Ġto Ġthe Ġclient . ĊĠĠĠĠ Ġ* ĊĠĠĠĠ Ġ* Ġ@ link ĠProtocol Ġ[ Aud its # disable ]( https :// chrome devtools . github . io / devtools - protocol / tot / Aud its # method - disable ) Ġmethod Ġdocumentation . ĊĠĠĠĠ Ġ*/ ĊĠĠĠĠĊĠĠĠ Ġfun Ġdisable (): Ġio . reactivex . rx java 3 . core . Single < pl . wend igo . chrome . protocol . websocket . Request Response Frame > Ġ= Ġconnection . request (" Aud its . disable ", Ġnull , Ġpl . wend igo . chrome . protocol . websocket . Request Response Frame . serializer ()) ĊĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* ĠEnables Ġissues Ġdomain , Ġsends Ġthe Ġissues Ġcollected Ġso Ġfar Ġto Ġthe Ġclient Ġby Ġmeans Ġof Ġthe Ċ ` issue Added ` Ġevent . ĊĠĠĠĠ Ġ* ĊĠĠĠĠ Ġ* Ġ@ link ĠProtocol Ġ[ Aud its # enable ]( https :// chrome devtools . github . io / devtools - protocol / tot / Aud its # method - enable ) Ġmethod Ġdocumentation . ĊĠĠĠĠ Ġ*/ ĊĠĠĠĠĊĠĠĠ Ġfun Ġenable (): Ġio . reactivex . rx java 3 . core . Single < pl . wend igo . chrome . protocol . websocket . Request Response Frame > Ġ= Ġconnection . request (" Aud its . enable ", Ġnull , Ġpl . wend igo . chrome . protocol . websocket . Request Response Frame . serializer ()) ĊĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* ĠRuns Ġthe Ġcontrast Ġcheck Ġfor Ġthe Ġtarget Ġpage . ĠFound Ġissues Ġare Ġreported Ċ using ĠAud its . issue Added Ġevent . ĊĠĠĠĠ Ġ* ĊĠĠĠĠ Ġ* Ġ@ link ĠProtocol Ġ[ Aud its # check Contrast ]( https :// chrome devtools . github . io / devtools - protocol / tot / Aud its # method - check Contrast ) Ġmethod Ġdocumentation . ĊĠĠĠĠ Ġ*/ ĊĠĠĠĠĊĠĠĠ Ġfun Ġcheck Contrast ( input : ĠCheck Contrast Request ): Ġio . reactivex . rx java 3 . core . Single < pl . wend igo . chrome . protocol . websocket . Request Response Frame > Ġ= Ġconnection . request (" Aud its . check Contrast ", ĠJson . encode ToJson Element ( Check Contrast Request . serializer (), Ġinput ), Ġpl . wend igo . chrome . protocol . websocket . Request Response Frame . serializer ()) ĊĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* Ġ ĠReturns Ġobservable Ġcapturing Ġall ĠAud its . issue Added Ġevents . ĊĠĠĠĠ Ġ*/ ĊĠĠĠ Ġfun Ġissue Added (): Ġio . reactivex . rx java 3 . core . Flow able < Issue Added Event > Ġ= Ġconnection . events (" Aud its . issue Added ", ĠIssue Added Event . serializer ()) ĊĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* ĠReturns Ġlist Ġof Ġdepend ant Ġdomains Ġthat Ġshould Ġbe Ġenabled Ġprior Ġto Ġenabling Ġthis Ġdomain . ĊĠĠĠĠ Ġ*/ ĊĠĠĠ Ġoverride Ġfun Ġget Dependencies (): ĠList < pl . wend igo . chrome . protocol . Domain > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġarray ListOf ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġpl . wend igo . chrome . api . network . Network Domain ( connection ), ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} Ċ } Ċ Ċ /** Ċ Ġ* ĠRepresents Ġrequest Ġframe Ġthat Ġcan Ġbe Ġused Ġwith Ġ[ Aud its # get Encoded Response ]( https :// chrome devtools . github . io / devtools - protocol / tot / Aud its # method - get Encoded Response ) Ġoperation Ġcall . Ċ Ġ* Ċ Ġ* ĠReturns Ġthe Ġresponse Ġbody Ġand Ġsize Ġif Ġit Ġwere Ġre - encoded Ġwith Ġthe Ġspecified Ġsettings . ĠOnly Ċ app lies Ġto Ġimages . Ċ Ġ* Ġ@ link Ġ[ Aud its # get Encoded Response ]( https :// chrome devtools . github . io / devtools - protocol / tot / Aud its # method - get Encoded Response ) Ġmethod Ġdocumentation . Ċ Ġ* Ġ@ see Ġ[ Aud its Domain . get Encoded Response ] Ċ Ġ*/ Ċ @ kotlin x . serialization . Serializable Ċ data Ġclass ĠGet Encoded Response Request ( ĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* ĠIdentifier Ġof Ġthe Ġnetwork Ġrequest Ġto Ġget Ġcontent Ġfor . ĊĠĠĠĠ Ġ*/ ĊĠĠĠ Ġval ĠrequestId : Ġpl . wend igo . chrome . api . network . RequestId , ĊĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* ĠThe Ġencoding Ġto Ġuse . ĊĠĠĠĠ Ġ*/ ĊĠĠĠ Ġval Ġencoding : ĠString , ĊĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* ĠThe Ġquality Ġof Ġthe Ġencoding Ġ( 0 - 1 ). Ġ( defaults Ġto Ġ 1 ) ĊĠĠĠĠ Ġ*/ ĊĠĠĠ Ġval Ġquality : ĠDouble ? Ġ= Ġnull , ĊĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* ĠWhether Ġto Ġonly Ġreturn Ġthe Ġsize Ġinformation Ġ( defaults Ġto Ġfalse ). ĊĠĠĠĠ Ġ*/ ĊĠĠĠ Ġval Ġsize Only : ĠBoolean ? Ġ= Ġnull Ċ Ċ ) Ċ Ċ /** Ċ Ġ* ĠRepresents Ġresponse Ġframe Ġthat Ġis Ġreturned Ġfrom Ġ[ Aud its # get Encoded Response ]( https :// chrome devtools . github . io / devtools - protocol / tot / Aud its # method - get Encoded Response ) Ġoperation Ġcall . Ċ Ġ* ĠReturns Ġthe Ġresponse Ġbody Ġand Ġsize Ġif Ġit Ġwere Ġre - encoded Ġwith Ġthe Ġspecified Ġsettings . ĠOnly Ċ app lies Ġto Ġimages . Ċ Ġ* ĊĠĠĊ Ġ* Ġ@ link Ġ[ Aud its # get Encoded Response ]( https :// chrome devtools . github . io / devtools - protocol / tot / Aud its # method - get Encoded Response ) Ġmethod Ġdocumentation . Ċ Ġ* Ġ@ see Ġ[ Aud its Domain . get Encoded Response ] Ċ Ġ*/ Ċ @ kotlin x . serialization . Serializable Ċ data Ġclass ĠGet Encoded Response Response ( ĊĠĠĠ Ġ/** ĠĠĊĠĠĠĠ Ġ* ĠThe Ġencoded Ġbody Ġas Ġa Ġbase 6 4 Ġstring . ĠO mitted Ġif Ġsize Only Ġis Ġtrue . Ġ( Encoded Ġas Ġa Ġbase 6 4 Ġstring Ġwhen Ġpassed Ġover ĠJSON ) ĠĠĊĠĠĠĠ Ġ*/ ĠĠĊĠĠĠ Ġval Ġbody : ĠString ? Ġ= Ġnull , ĊĊĠĠĠ Ġ/** ĠĠĊĠĠĠĠ Ġ* ĠSize Ġbefore Ġre - encoding . ĠĠĊĠĠĠĠ Ġ*/ ĠĠĊĠĠĠ Ġval Ġoriginal Size : ĠInt , ĊĊĠĠĠ Ġ/** ĠĠĊĠĠĠĠ Ġ* ĠSize Ġafter Ġre - encoding . ĠĠĊĠĠĠĠ Ġ*/ ĠĠĊĠĠĠ Ġval Ġencoded Size : ĠInt Ċ Ċ ) Ċ Ċ /** Ċ Ġ* ĠRepresents Ġrequest Ġframe Ġthat Ġcan Ġbe Ġused Ġwith Ġ[ Aud its # check Contrast ]( https :// chrome devtools . github . io / devtools - protocol / tot / Aud its # method - check Contrast ) Ġoperation Ġcall . Ċ Ġ* Ċ Ġ* ĠRuns Ġthe Ġcontrast Ġcheck Ġfor Ġthe Ġtarget Ġpage . ĠFound Ġissues Ġare Ġreported Ċ using ĠAud its . issue Added Ġevent . Ċ Ġ* Ġ@ link Ġ[ Aud its # check Contrast ]( https :// chrome devtools . github . io / devtools - protocol / tot / Aud its # method - check Contrast ) Ġmethod Ġdocumentation . Ċ Ġ* Ġ@ see Ġ[ Aud its Domain . check Contrast ] Ċ Ġ*/ Ċ @ kotlin x . serialization . Serializable Ċ data Ġclass ĠCheck Contrast Request ( ĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* ĠWhether Ġto Ġreport ĠWC AG ĠA AA Ġlevel Ġissues . ĠDefault Ġis Ġfalse . ĊĠĠĠĠ Ġ*/ ĊĠĠĠ Ġval Ġreport AAA : ĠBoolean ? Ġ= Ġnull Ċ Ċ ) Ċ Ċ /** Ċ Ġ* Ċ Ġ* Ċ Ġ* Ġ@ link Ġ[ Aud its # issue Added ]( https :// chrome devtools . github . io / devtools - protocol / tot / Aud its # event - issue Added ) Ġevent Ġdocumentation . Ċ Ġ*/ Ċ @ kotlin x . serialization . Serializable Ċ data Ġclass ĠIssue Added Event ( ĊĠĠĠ Ġ/** ĠĠĊĠĠĠĠ Ġ* ĠĠĊĠĠĠĠ Ġ*/ ĠĠĊĠĠĠ Ġval Ġissue : ĠIns pector Issue Ċ Ċ ) Ġ: Ġpl . wend igo . chrome . protocol . Event Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġdomain () Ġ= Ġ" Aud its " ĠĊĠĠĠ Ġoverride Ġfun ĠeventName () Ġ= Ġ" issue Added " Ċ } ĠĊ