package Ġdan b roid . k ipfs Ċ Ċ import Ġkotlinx . serialization . Serial Name Ċ import Ġkotlinx . serialization . Serializable Ċ Ċ /* Ċ Ġ/ api / v 0 / version Ċ Ċ Show ĠIP FS Ġversion Ġinformation . Ċ # Ċ Arguments ĊĊĠĠĠ Ġnumber Ġ[ bool ]: ĠOnly Ġshow Ġthe Ġversion Ġnumber . ĠRequired : Ġno . ĊĠĠĠ Ġcommit Ġ[ bool ]: ĠShow Ġthe Ġcommit Ġhash . ĠRequired : Ġno . ĊĠĠĠ Ġrepo Ġ[ bool ]: ĠShow Ġrepo Ġversion . ĠRequired : Ġno . ĊĠĠĠ Ġall Ġ[ bool ]: ĠShow Ġall Ġversion Ġinformation . ĠRequired : Ġno . Ċ Ċ # Ċ Response Ċ Ċ On Ġsuccess , Ġthe Ġcall Ġto Ġthis Ġendpoint Ġwill Ġreturn Ġwith Ġ 2 0 0 Ġand Ġthe Ġfollowing Ġbody : Ċ Ċ { ĊĠ Ġ" Commit ": Ġ"< string >", ĊĠ Ġ" G olang ": Ġ"< string >", ĊĠ Ġ" Repo ": Ġ"< string >", ĊĠ Ġ" System ": Ġ"< string >", ĊĠ Ġ" Version ": Ġ"< string >" Ċ } ĊĊ Ċ */ Ċ Ċ suspend Ġinline Ġfun ĠK IP FS . version () Ġ= Ġrequest < Response Version >(" version ") Ċ Ċ @ Serializable Ċ data Ġclass ĠResponse Version ( ĊĠ Ġ@ Serial Name (" Commit ") Ġval Ġcommit : ĠString , ĊĠ Ġ@ Serial Name (" G olang ") Ġval Ġgolang : ĠString , ĊĠ Ġ@ Serial Name (" System ") Ġval Ġsystem : ĠString , ĊĠ Ġ@ Serial Name (" Repo ") Ġval Ġrepo : ĠString , ĊĠ Ġ@ Serial Name (" Version ") Ġval Ġversion : ĠString Ċ ) ĊĊ Ċ @ Serializable Ċ data Ġclass ĠResponse Version Deps ( ĊĠ Ġ@ Serial Name (" Path ") Ġval Ġpath : ĠString , ĊĠ Ġ@ Serial Name (" Version ") Ġval Ġversion : ĠString , ĊĠ Ġ@ Serial Name (" Re placed By ") Ġval Ġreplaced By : ĠString , ĊĠ Ġ@ Serial Name (" Sum ") Ġval Ġsum : ĠString , Ċ ) Ċ Ċ /* Ċ / api / v 0 / version / deps Ċ Ċ Shows Ġinformation Ġabout Ġdependencies Ġused Ġfor Ġbuild . Ċ Ċ Arguments Ċ Ċ This Ġendpoint Ġtakes Ġno Ġarguments . Ċ Ċ Response Ċ Ċ On Ġsuccess , Ġthe Ġcall Ġto Ġthis Ġendpoint Ġwill Ġreturn Ġwith Ġ 2 0 0 Ġand Ġthe Ġfollowing Ġbody : Ċ Ċ { ĊĠ Ġ" Path ": Ġ"< string >", ĊĠ Ġ" Re placed By ": Ġ"< string >", ĊĠ Ġ" Sum ": Ġ"< string >", ĊĠ Ġ" Version ": Ġ"< string >" Ċ } Ċ */ Ċ Ċ suspend Ġinline Ġfun ĠK IP FS . version Deps (): ĠList < Response Version Deps > Ġ= ĊĠ Ġrequest Raw (" version / deps "). decode ToString (). lines () ĊĠĠĠ Ġ. filter Ġ{ Ġit . isNotBlank () Ġ} ĊĠĠĠ Ġ. map Ġ{ ĊĠĠĠĠĠ Ġit . decode Json () ĊĠĠĠ Ġ} ĊĊ Ċ // {" Path ":" gop kg . in / yaml . v 2 "," Version ":" v 2 . 4 . 0 "," Re placed By ":""," Sum ":" h 1 : D 8 x gw EC Y 7 CY vx + Y 2 n 4 s Bz 9 3 Jn 9 JR vx di yy o 8 CT fu Ka Y =" }