Monorepo for Tangled tangled.org
2

Configure Feed

Select the types of activity you want to include in your feed.

lexicons: knot-owned endpoints

Lewis: May this revision serve well! <lewis@tangled.org>

author
Lewis
committer
Tangled
date (Jun 2, 2026, 2:02 PM +0300) commit baa5ab4f parent 512e495e change-id unkpxvyn
+506 -12
+30
api/tangled/knotaddMember.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package tangled 4 + 5 + // schema: sh.tangled.knot.addMember 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/lex/util" 11 + ) 12 + 13 + const ( 14 + KnotAddMemberNSID = "sh.tangled.knot.addMember" 15 + ) 16 + 17 + // KnotAddMember_Input is the input argument to a sh.tangled.knot.addMember call. 18 + type KnotAddMember_Input struct { 19 + // subject: DID of the member to add 20 + Subject string `json:"subject" cborgen:"subject"` 21 + } 22 + 23 + // KnotAddMember calls the XRPC method "sh.tangled.knot.addMember". 24 + func KnotAddMember(ctx context.Context, c util.LexClient, input *KnotAddMember_Input) error { 25 + if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.knot.addMember", nil, input, nil); err != nil { 26 + return err 27 + } 28 + 29 + return nil 30 + }
+61
api/tangled/knotlistMembers.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package tangled 4 + 5 + // schema: sh.tangled.knot.listMembers 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/lex/util" 11 + ) 12 + 13 + const ( 14 + KnotListMembersNSID = "sh.tangled.knot.listMembers" 15 + ) 16 + 17 + // KnotListMembers_ListItem is a "listItem" in the sh.tangled.knot.listMembers schema. 18 + type KnotListMembers_ListItem struct { 19 + // addedBy: DID that added this member 20 + AddedBy string `json:"addedBy" cborgen:"addedBy"` 21 + // cid: Optional record CID for record-backed indexers 22 + Cid *string `json:"cid,omitempty" cborgen:"cid,omitempty"` 23 + // createdAt: When the member was added 24 + CreatedAt string `json:"createdAt" cborgen:"createdAt"` 25 + // subject: DID of the member 26 + Subject string `json:"subject" cborgen:"subject"` 27 + // uri: Optional record AT-URI for record-backed indexers 28 + Uri *string `json:"uri,omitempty" cborgen:"uri,omitempty"` 29 + } 30 + 31 + // KnotListMembers_Output is the output of a sh.tangled.knot.listMembers call. 32 + type KnotListMembers_Output struct { 33 + Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 34 + Items []*KnotListMembers_ListItem `json:"items" cborgen:"items"` 35 + } 36 + 37 + // KnotListMembers calls the XRPC method "sh.tangled.knot.listMembers". 38 + // 39 + // cursor: Pagination cursor 40 + // order: Sort direction by createdAt. 41 + // subject: Knot identifier whose member records to list. 42 + func KnotListMembers(ctx context.Context, c util.LexClient, cursor string, limit int64, order string, subject string) (*KnotListMembers_Output, error) { 43 + var out KnotListMembers_Output 44 + 45 + params := map[string]interface{}{} 46 + if cursor != "" { 47 + params["cursor"] = cursor 48 + } 49 + if limit != 0 { 50 + params["limit"] = limit 51 + } 52 + if order != "" { 53 + params["order"] = order 54 + } 55 + params["subject"] = subject 56 + if err := c.LexDo(ctx, util.Query, "", "sh.tangled.knot.listMembers", params, nil, &out); err != nil { 57 + return nil, err 58 + } 59 + 60 + return &out, nil 61 + }
+47
api/tangled/knotlistMembersBy.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package tangled 4 + 5 + // schema: sh.tangled.knot.listMembersBy 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/lex/util" 11 + ) 12 + 13 + const ( 14 + KnotListMembersByNSID = "sh.tangled.knot.listMembersBy" 15 + ) 16 + 17 + // KnotListMembersBy_Output is the output of a sh.tangled.knot.listMembersBy call. 18 + type KnotListMembersBy_Output struct { 19 + Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 20 + Items []*KnotListMembers_ListItem `json:"items" cborgen:"items"` 21 + } 22 + 23 + // KnotListMembersBy calls the XRPC method "sh.tangled.knot.listMembersBy". 24 + // 25 + // cursor: Pagination cursor 26 + // order: Sort direction by createdAt. 27 + // subject: Actor DID whose knot-member authorings to list. 28 + func KnotListMembersBy(ctx context.Context, c util.LexClient, cursor string, limit int64, order string, subject string) (*KnotListMembersBy_Output, error) { 29 + var out KnotListMembersBy_Output 30 + 31 + params := map[string]interface{}{} 32 + if cursor != "" { 33 + params["cursor"] = cursor 34 + } 35 + if limit != 0 { 36 + params["limit"] = limit 37 + } 38 + if order != "" { 39 + params["order"] = order 40 + } 41 + params["subject"] = subject 42 + if err := c.LexDo(ctx, util.Query, "", "sh.tangled.knot.listMembersBy", params, nil, &out); err != nil { 43 + return nil, err 44 + } 45 + 46 + return &out, nil 47 + }
+30
api/tangled/knotremoveMember.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package tangled 4 + 5 + // schema: sh.tangled.knot.removeMember 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/lex/util" 11 + ) 12 + 13 + const ( 14 + KnotRemoveMemberNSID = "sh.tangled.knot.removeMember" 15 + ) 16 + 17 + // KnotRemoveMember_Input is the input argument to a sh.tangled.knot.removeMember call. 18 + type KnotRemoveMember_Input struct { 19 + // subject: DID of the member to remove 20 + Subject string `json:"subject" cborgen:"subject"` 21 + } 22 + 23 + // KnotRemoveMember calls the XRPC method "sh.tangled.knot.removeMember". 24 + func KnotRemoveMember(ctx context.Context, c util.LexClient, input *KnotRemoveMember_Input) error { 25 + if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.knot.removeMember", nil, input, nil); err != nil { 26 + return err 27 + } 28 + 29 + return nil 30 + }
+32
api/tangled/repoaddCollaborator.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package tangled 4 + 5 + // schema: sh.tangled.repo.addCollaborator 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/lex/util" 11 + ) 12 + 13 + const ( 14 + RepoAddCollaboratorNSID = "sh.tangled.repo.addCollaborator" 15 + ) 16 + 17 + // RepoAddCollaborator_Input is the input argument to a sh.tangled.repo.addCollaborator call. 18 + type RepoAddCollaborator_Input struct { 19 + // repo: DID of the repository to add the collaborator to 20 + Repo string `json:"repo" cborgen:"repo"` 21 + // subject: DID of the collaborator to add 22 + Subject string `json:"subject" cborgen:"subject"` 23 + } 24 + 25 + // RepoAddCollaborator calls the XRPC method "sh.tangled.repo.addCollaborator". 26 + func RepoAddCollaborator(ctx context.Context, c util.LexClient, input *RepoAddCollaborator_Input) error { 27 + if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.repo.addCollaborator", nil, input, nil); err != nil { 28 + return err 29 + } 30 + 31 + return nil 32 + }
+61
api/tangled/repolistCollaborators.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package tangled 4 + 5 + // schema: sh.tangled.repo.listCollaborators 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/lex/util" 11 + ) 12 + 13 + const ( 14 + RepoListCollaboratorsNSID = "sh.tangled.repo.listCollaborators" 15 + ) 16 + 17 + // RepoListCollaborators_ListItem is a "listItem" in the sh.tangled.repo.listCollaborators schema. 18 + type RepoListCollaborators_ListItem struct { 19 + // addedBy: DID that added this collaborator 20 + AddedBy string `json:"addedBy" cborgen:"addedBy"` 21 + // cid: Optional record CID for record-backed indexers 22 + Cid *string `json:"cid,omitempty" cborgen:"cid,omitempty"` 23 + // createdAt: When the collaborator was added 24 + CreatedAt string `json:"createdAt" cborgen:"createdAt"` 25 + // subject: DID of the collaborator 26 + Subject string `json:"subject" cborgen:"subject"` 27 + // uri: Optional record AT-URI for record-backed indexers 28 + Uri *string `json:"uri,omitempty" cborgen:"uri,omitempty"` 29 + } 30 + 31 + // RepoListCollaborators_Output is the output of a sh.tangled.repo.listCollaborators call. 32 + type RepoListCollaborators_Output struct { 33 + Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 34 + Items []*RepoListCollaborators_ListItem `json:"items" cborgen:"items"` 35 + } 36 + 37 + // RepoListCollaborators calls the XRPC method "sh.tangled.repo.listCollaborators". 38 + // 39 + // cursor: Pagination cursor 40 + // order: Sort direction by createdAt. 41 + // subject: Repo DID whose collaborator records to list. 42 + func RepoListCollaborators(ctx context.Context, c util.LexClient, cursor string, limit int64, order string, subject string) (*RepoListCollaborators_Output, error) { 43 + var out RepoListCollaborators_Output 44 + 45 + params := map[string]interface{}{} 46 + if cursor != "" { 47 + params["cursor"] = cursor 48 + } 49 + if limit != 0 { 50 + params["limit"] = limit 51 + } 52 + if order != "" { 53 + params["order"] = order 54 + } 55 + params["subject"] = subject 56 + if err := c.LexDo(ctx, util.Query, "", "sh.tangled.repo.listCollaborators", params, nil, &out); err != nil { 57 + return nil, err 58 + } 59 + 60 + return &out, nil 61 + }
+47
api/tangled/repolistCollaboratorsBy.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package tangled 4 + 5 + // schema: sh.tangled.repo.listCollaboratorsBy 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/lex/util" 11 + ) 12 + 13 + const ( 14 + RepoListCollaboratorsByNSID = "sh.tangled.repo.listCollaboratorsBy" 15 + ) 16 + 17 + // RepoListCollaboratorsBy_Output is the output of a sh.tangled.repo.listCollaboratorsBy call. 18 + type RepoListCollaboratorsBy_Output struct { 19 + Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 20 + Items []*RepoListCollaborators_ListItem `json:"items" cborgen:"items"` 21 + } 22 + 23 + // RepoListCollaboratorsBy calls the XRPC method "sh.tangled.repo.listCollaboratorsBy". 24 + // 25 + // cursor: Pagination cursor 26 + // order: Sort direction by createdAt. 27 + // subject: Actor DID whose collaborator authorings to list. 28 + func RepoListCollaboratorsBy(ctx context.Context, c util.LexClient, cursor string, limit int64, order string, subject string) (*RepoListCollaboratorsBy_Output, error) { 29 + var out RepoListCollaboratorsBy_Output 30 + 31 + params := map[string]interface{}{} 32 + if cursor != "" { 33 + params["cursor"] = cursor 34 + } 35 + if limit != 0 { 36 + params["limit"] = limit 37 + } 38 + if order != "" { 39 + params["order"] = order 40 + } 41 + params["subject"] = subject 42 + if err := c.LexDo(ctx, util.Query, "", "sh.tangled.repo.listCollaboratorsBy", params, nil, &out); err != nil { 43 + return nil, err 44 + } 45 + 46 + return &out, nil 47 + }
+32
api/tangled/reporemoveCollaborator.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package tangled 4 + 5 + // schema: sh.tangled.repo.removeCollaborator 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/lex/util" 11 + ) 12 + 13 + const ( 14 + RepoRemoveCollaboratorNSID = "sh.tangled.repo.removeCollaborator" 15 + ) 16 + 17 + // RepoRemoveCollaborator_Input is the input argument to a sh.tangled.repo.removeCollaborator call. 18 + type RepoRemoveCollaborator_Input struct { 19 + // repo: DID of the repository to remove the collaborator from 20 + Repo string `json:"repo" cborgen:"repo"` 21 + // subject: DID of the collaborator to remove 22 + Subject string `json:"subject" cborgen:"subject"` 23 + } 24 + 25 + // RepoRemoveCollaborator calls the XRPC method "sh.tangled.repo.removeCollaborator". 26 + func RepoRemoveCollaborator(ctx context.Context, c util.LexClient, input *RepoRemoveCollaborator_Input) error { 27 + if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.repo.removeCollaborator", nil, input, nil); err != nil { 28 + return err 29 + } 30 + 31 + return nil 32 + }
+25 -6
bobbin/crates/types/lexicons/knot/listMembers.json lexicons/knot/listMembers.json
··· 47 47 }, 48 48 "listItem": { 49 49 "type": "object", 50 - "required": ["uri", "value"], 50 + "required": ["subject", "addedBy", "createdAt"], 51 51 "properties": { 52 - "uri": { "type": "string", "format": "at-uri" }, 53 - "cid": { "type": "string", "format": "cid" }, 54 - "value": { 55 - "type": "unknown", 56 - "description": "Embedded sh.tangled.knot.member record" 52 + "subject": { 53 + "type": "string", 54 + "format": "did", 55 + "description": "DID of the member" 56 + }, 57 + "addedBy": { 58 + "type": "string", 59 + "format": "did", 60 + "description": "DID that added this member" 61 + }, 62 + "createdAt": { 63 + "type": "string", 64 + "format": "datetime", 65 + "description": "When the member was added" 66 + }, 67 + "uri": { 68 + "type": "string", 69 + "format": "at-uri", 70 + "description": "Optional record AT-URI for record-backed indexers" 71 + }, 72 + "cid": { 73 + "type": "string", 74 + "format": "cid", 75 + "description": "Optional record CID for record-backed indexers" 57 76 } 58 77 } 59 78 }
bobbin/crates/types/lexicons/knot/listMembersBy.json lexicons/knot/listMembersBy.json
+25 -6
bobbin/crates/types/lexicons/repo/listCollaborators.json lexicons/repo/listCollaborators.json
··· 48 48 }, 49 49 "listItem": { 50 50 "type": "object", 51 - "required": ["uri", "value"], 51 + "required": ["subject", "addedBy", "createdAt"], 52 52 "properties": { 53 - "uri": { "type": "string", "format": "at-uri" }, 54 - "cid": { "type": "string", "format": "cid" }, 55 - "value": { 56 - "type": "unknown", 57 - "description": "Embedded sh.tangled.repo.collaborator record" 53 + "subject": { 54 + "type": "string", 55 + "format": "did", 56 + "description": "DID of the collaborator" 57 + }, 58 + "addedBy": { 59 + "type": "string", 60 + "format": "did", 61 + "description": "DID that added this collaborator" 62 + }, 63 + "createdAt": { 64 + "type": "string", 65 + "format": "datetime", 66 + "description": "When the collaborator was added" 67 + }, 68 + "uri": { 69 + "type": "string", 70 + "format": "at-uri", 71 + "description": "Optional record AT-URI for record-backed indexers" 72 + }, 73 + "cid": { 74 + "type": "string", 75 + "format": "cid", 76 + "description": "Optional record CID for record-backed indexers" 58 77 } 59 78 } 60 79 }
bobbin/crates/types/lexicons/repo/listCollaboratorsBy.json lexicons/repo/listCollaboratorsBy.json
+26
lexicons/knot/addMember.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "sh.tangled.knot.addMember", 4 + "defs": { 5 + "main": { 6 + "type": "procedure", 7 + "description": "Add a member to this knot", 8 + "input": { 9 + "encoding": "application/json", 10 + "schema": { 11 + "type": "object", 12 + "required": [ 13 + "subject" 14 + ], 15 + "properties": { 16 + "subject": { 17 + "type": "string", 18 + "format": "did", 19 + "description": "DID of the member to add" 20 + } 21 + } 22 + } 23 + } 24 + } 25 + } 26 + }
+26
lexicons/knot/removeMember.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "sh.tangled.knot.removeMember", 4 + "defs": { 5 + "main": { 6 + "type": "procedure", 7 + "description": "Remove a member from this knot", 8 + "input": { 9 + "encoding": "application/json", 10 + "schema": { 11 + "type": "object", 12 + "required": [ 13 + "subject" 14 + ], 15 + "properties": { 16 + "subject": { 17 + "type": "string", 18 + "format": "did", 19 + "description": "DID of the member to remove" 20 + } 21 + } 22 + } 23 + } 24 + } 25 + } 26 + }
+32
lexicons/repo/addCollaborator.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "sh.tangled.repo.addCollaborator", 4 + "defs": { 5 + "main": { 6 + "type": "procedure", 7 + "description": "Add a collaborator to a repository on this knot", 8 + "input": { 9 + "encoding": "application/json", 10 + "schema": { 11 + "type": "object", 12 + "required": [ 13 + "repo", 14 + "subject" 15 + ], 16 + "properties": { 17 + "repo": { 18 + "type": "string", 19 + "format": "did", 20 + "description": "DID of the repository to add the collaborator to" 21 + }, 22 + "subject": { 23 + "type": "string", 24 + "format": "did", 25 + "description": "DID of the collaborator to add" 26 + } 27 + } 28 + } 29 + } 30 + } 31 + } 32 + }
+32
lexicons/repo/removeCollaborator.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "sh.tangled.repo.removeCollaborator", 4 + "defs": { 5 + "main": { 6 + "type": "procedure", 7 + "description": "Remove a collaborator from a repository on this knot", 8 + "input": { 9 + "encoding": "application/json", 10 + "schema": { 11 + "type": "object", 12 + "required": [ 13 + "repo", 14 + "subject" 15 + ], 16 + "properties": { 17 + "repo": { 18 + "type": "string", 19 + "format": "did", 20 + "description": "DID of the repository to remove the collaborator from" 21 + }, 22 + "subject": { 23 + "type": "string", 24 + "format": "did", 25 + "description": "DID of the collaborator to remove" 26 + } 27 + } 28 + } 29 + } 30 + } 31 + } 32 + }