package Ġio . pro venance . scope . sdk . extensions Ċ Ċ import Ġio . pro venance . metadata . v 1 . Record Ċ import Ġio . pro venance . metadata . v 1 . Scope Response Ċ import Ġio . pro venance . scope . object store . util . base 6 4 Decode Ċ import Ġio . pro venance . scope . util . Metadata Address Ċ Ċ fun ĠScope Response . uuid (): ĠString Ġ= Ġscope . scope Id Info . scope Uuid Ċ Ċ fun ĠScope Response . sessions Requested (): ĠBoolean Ġ= Ġrequest . include Sessions Ċ fun ĠScope Response . records Requested (): ĠBoolean Ġ= Ġrequest . include Records Ċ fun ĠScope Response . validate Sessions Requested () Ġ= Ġapply Ġ{ ĊĠĠĠ Ġif Ġ(! sessions Requested ()) Ġ{ ĊĠĠĠĠĠĠĠ Ġthrow ĠIllegalStateException (" Provided Ġscope Ġmust Ġinclude Ġsessions ") ĊĠĠĠ Ġ} Ċ } Ċ fun ĠScope Response . validate Records Requested () Ġ= Ġapply Ġ{ ĊĠĠĠ Ġif Ġ(! records Requested ()) Ġ{ ĊĠĠĠĠĠĠĠ Ġthrow ĠIllegalStateException (" Provided Ġscope Ġmust Ġinclude Ġrecords ") ĊĠĠĠ Ġ} Ċ } Ċ Ċ fun ĠRecord . result Type (): ĠString Ġ= Ġprocess . name Ċ // ĠTODO Ġsee Ġwhat Ġwe Ġshould Ġdo Ġwhen Ġthere 's Ġmore Ġthan Ġone Ġoutput Ċ fun ĠRecord . result Hash (): ĠByteArray Ġ= Ġoutputs List . first (). hash . base 6 4 Decode () Ċ fun ĠRecord . session Uuid (): ĠString Ġ= ĠsessionId . toByteArray (). let Ġ{ ĠMetadata Address . from Bytes ( it ) Ġ}. get Primary Uuid (). toString () Ċ