A vibe coded tangled fork which supports pijul.
at master 48 lines 1.6 kB view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package tangled 4 5// schema: sh.tangled.repo.applyChanges 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13const ( 14 RepoApplyChangesNSID = "sh.tangled.repo.applyChanges" 15) 16 17// RepoApplyChanges_Input is the input argument to a sh.tangled.repo.applyChanges call. 18type RepoApplyChanges_Input struct { 19 // changes: List of change hashes to apply (in order) 20 Changes []string `json:"changes" cborgen:"changes"` 21 // channel: Target channel to apply changes to 22 Channel string `json:"channel" cborgen:"channel"` 23 // repo: Repository identifier in format 'did:plc:.../repoName' 24 Repo string `json:"repo" cborgen:"repo"` 25} 26 27// RepoApplyChanges_Output is the output of a sh.tangled.repo.applyChanges call. 28type RepoApplyChanges_Output struct { 29 // applied: List of successfully applied change hashes 30 Applied []string `json:"applied" cborgen:"applied"` 31 // failed: List of changes that failed to apply 32 Failed []*RepoApplyChanges_Output_Failed_Elem `json:"failed,omitempty" cborgen:"failed,omitempty"` 33} 34 35type RepoApplyChanges_Output_Failed_Elem struct { 36 Error string `json:"error" cborgen:"error"` 37 Hash string `json:"hash" cborgen:"hash"` 38} 39 40// RepoApplyChanges calls the XRPC method "sh.tangled.repo.applyChanges". 41func RepoApplyChanges(ctx context.Context, c util.LexClient, input *RepoApplyChanges_Input) (*RepoApplyChanges_Output, error) { 42 var out RepoApplyChanges_Output 43 if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.repo.applyChanges", nil, input, &out); err != nil { 44 return nil, err 45 } 46 47 return &out, nil 48}