Something went wrong. Try again.
Correctness- and interoperability-oriented Tangled CLI
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103type blob = { cid : Cid.t; mime_type : string; size : int64 }type strong_ref = { uri : At_uri.t; cid : Cid.t }
type issue = { record_key : Record_key.t ; uri : At_uri.t ; cid : Cid.t option ; author_did : Did.t ; repository_did : Repository_did.t ; title : string ; body : string option ; created_at : Timestamp.t ; mentions : string list ; references : At_uri.t list ; blobs : blob list }
type state_record = { uri : At_uri.t ; cid : Cid.t option ; author_did : Did.t ; issue_uri : At_uri.t ; state : Issue_list.state ; created_at : Timestamp.t }
type markdown = { text : string; original : string option; blobs : blob list }
type comment = { uri : At_uri.t ; cid : Cid.t option ; author_did : Did.t ; subject : strong_ref ; body : markdown ; created_at : Timestamp.t ; reply_to : strong_ref option }
type state_page = { states : state_record list; cursor : string option }type comment_page = { comments : comment list; cursor : string option }
type t = { repository : Repository_read.t ; issue : issue ; state : Issue_list.state ; state_record : state_record option ; comments : comment list ; bobbin : Origin.t ; coverage_before : Issue_list.coverage ; coverage_after : Issue_list.coverage ; observed_at : Timestamp.t }
let equal_option equal left right = match (left, right) with | None, None -> true | Some left, Some right -> equal left right | None, Some _ | Some _, None -> false
let equal_cid left right = String.equal (Cid.to_string left) (Cid.to_string right)
let equal_uri left right = String.equal (At_uri.to_string left) (At_uri.to_string right)
let equal_did = Did.equallet equal_timestamp left right = Timestamp.compare left right = 0
let equal_blob (left : blob) (right : blob) = equal_cid left.cid right.cid && String.equal left.mime_type right.mime_type && Int64.equal left.size right.size
let equal_strong_ref (left : strong_ref) (right : strong_ref) = equal_uri left.uri right.uri && equal_cid left.cid right.cid
let equal_state left right = String.equal (Issue_list.state_to_string left) (Issue_list.state_to_string right)
let equal_state_record (left : state_record) (right : state_record) = equal_uri left.uri right.uri && equal_option equal_cid left.cid right.cid && equal_did left.author_did right.author_did && equal_uri left.issue_uri right.issue_uri && equal_state left.state right.state && equal_timestamp left.created_at right.created_at
let equal_markdown (left : markdown) (right : markdown) = String.equal left.text right.text && left.original = right.original && List.equal equal_blob left.blobs right.blobs
let equal_comment (left : comment) (right : comment) = equal_uri left.uri right.uri && equal_option equal_cid left.cid right.cid && equal_did left.author_did right.author_did && equal_strong_ref left.subject right.subject && equal_markdown left.body right.body && equal_timestamp left.created_at right.created_at && equal_option equal_strong_ref left.reply_to right.reply_to