~james/core

core/api/org_tangled/repodefs.go -rw-r--r-- 2.8 KiB
452f17b7 — james chore(import): snapshot james.dad.town/core at f70c71c7696a 16 hours ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.

package org_tangled

// schema: org.tangled.repo.defs

const ()

// RepoDefs_Language is a "language" in the org.tangled.repo.defs schema.
type RepoDefs_Language struct {
	Name string `json:"name" cborgen:"name"`
	// size: Total size of files in this language, in bytes.
	Size int64 `json:"size" cborgen:"size"`
}

// RepoDefs_RepoViewBasic is a "repoViewBasic" in the org.tangled.repo.defs schema.
type RepoDefs_RepoViewBasic struct {
	CreatedAt      string                      `json:"createdAt" cborgen:"createdAt"`
	Description    *string                     `json:"description,omitempty" cborgen:"description,omitempty"`
	Did            string                      `json:"did" cborgen:"did"`
	ForkCount      *int64                      `json:"forkCount,omitempty" cborgen:"forkCount,omitempty"`
	IsStarred      *bool                       `json:"isStarred,omitempty" cborgen:"isStarred,omitempty"`
	OpenIssueCount *int64                      `json:"openIssueCount,omitempty" cborgen:"openIssueCount,omitempty"`
	OpenPullCount  *int64                      `json:"openPullCount,omitempty" cborgen:"openPullCount,omitempty"`
	Owner          *ActorDefs_ProfileViewBasic `json:"owner" cborgen:"owner"`
	// primaryLanguage: Largest language on the default branch, by bytes.
	PrimaryLanguage *string               `json:"primaryLanguage,omitempty" cborgen:"primaryLanguage,omitempty"`
	Slug            string                `json:"slug" cborgen:"slug"`
	StarCount       *int64                `json:"starCount,omitempty" cborgen:"starCount,omitempty"`
	Viewer          *RepoDefs_ViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"`
}

// RepoDefs_SourceExternal is a "sourceExternal" in the org.tangled.repo.defs schema.
//
// RECORDTYPE: RepoDefs_SourceExternal
type RepoDefs_SourceExternal struct {
	LexiconTypeID string `json:"$type,const=org.tangled.repo.defs#sourceExternal" cborgen:"$type,const=org.tangled.repo.defs#sourceExternal"`
	// uri: git-clone uri of the repo
	Uri string `json:"uri" cborgen:"uri"`
}

// RepoDefs_SourceTangled is a "sourceTangled" in the org.tangled.repo.defs schema.
//
// RECORDTYPE: RepoDefs_SourceTangled
type RepoDefs_SourceTangled struct {
	LexiconTypeID string `json:"$type,const=org.tangled.repo.defs#sourceTangled" cborgen:"$type,const=org.tangled.repo.defs#sourceTangled"`
	// did: DID of the repo identity
	Did string `json:"did" cborgen:"did"`
}

// RepoDefs_ViewerState is a "viewerState" in the org.tangled.repo.defs schema.
//
// Metadata about the requesting account's relationship with the subject content. Only has meaningful content for authed requests.
type RepoDefs_ViewerState struct {
	Fork *string `json:"fork,omitempty" cborgen:"fork,omitempty"`
	Star *string `json:"star,omitempty" cborgen:"star,omitempty"`
}