Signed-off-by: Seongmin Lee git@boltless.me
+2414
-77
Diff
Round #1
+1
.gitattributes
+1
.gitattributes
+52
-1
web/src/lib/api/lexicons/index.ts
+52
-1
web/src/lib/api/lexicons/index.ts
···
1
+
export * as ShTangledActorDefs from "./types/sh/tangled/actor/defs.js";
2
+
export * as ShTangledActorGetProfile from "./types/sh/tangled/actor/getProfile.js";
3
+
export * as ShTangledActorGetProfiles from "./types/sh/tangled/actor/getProfiles.js";
1
4
export * as ShTangledActorProfile from "./types/sh/tangled/actor/profile.js";
2
5
export * as ShTangledCiCancelPipeline from "./types/sh/tangled/ci/cancelPipeline.js";
3
6
export * as ShTangledCiGetPipeline from "./types/sh/tangled/ci/getPipeline.js";
···
7
10
export * as ShTangledCiTrigger from "./types/sh/tangled/ci/trigger.js";
8
11
export * as ShTangledCiTriggerPipeline from "./types/sh/tangled/ci/triggerPipeline.js";
9
12
export * as ShTangledFeedComment from "./types/sh/tangled/feed/comment.js";
13
+
export * as ShTangledFeedCountComments from "./types/sh/tangled/feed/countComments.js";
14
+
export * as ShTangledFeedCountCommentsBy from "./types/sh/tangled/feed/countCommentsBy.js";
15
+
export * as ShTangledFeedCountReactions from "./types/sh/tangled/feed/countReactions.js";
16
+
export * as ShTangledFeedCountReactionsBy from "./types/sh/tangled/feed/countReactionsBy.js";
17
+
export * as ShTangledFeedCountStars from "./types/sh/tangled/feed/countStars.js";
18
+
export * as ShTangledFeedCountStarsBy from "./types/sh/tangled/feed/countStarsBy.js";
10
19
export * as ShTangledFeedGetStar from "./types/sh/tangled/feed/getStar.js";
20
+
export * as ShTangledFeedGetTimeline from "./types/sh/tangled/feed/getTimeline.js";
11
21
export * as ShTangledFeedListComments from "./types/sh/tangled/feed/listComments.js";
12
22
export * as ShTangledFeedListCommentsBy from "./types/sh/tangled/feed/listCommentsBy.js";
13
23
export * as ShTangledFeedListReactions from "./types/sh/tangled/feed/listReactions.js";
···
16
26
export * as ShTangledFeedListStarsBy from "./types/sh/tangled/feed/listStarsBy.js";
17
27
export * as ShTangledFeedReaction from "./types/sh/tangled/feed/reaction.js";
18
28
export * as ShTangledFeedStar from "./types/sh/tangled/feed/star.js";
29
+
export * as ShTangledGitCountRefUpdates from "./types/sh/tangled/git/countRefUpdates.js";
30
+
export * as ShTangledGitCountRefUpdatesBy from "./types/sh/tangled/git/countRefUpdatesBy.js";
19
31
export * as ShTangledGitListRefUpdates from "./types/sh/tangled/git/listRefUpdates.js";
20
32
export * as ShTangledGitListRefUpdatesBy from "./types/sh/tangled/git/listRefUpdatesBy.js";
21
33
export * as ShTangledGitListRefs from "./types/sh/tangled/git/listRefs.js";
···
35
47
export * as ShTangledGitTempListCommits from "./types/sh/tangled/git/temp/listCommits.js";
36
48
export * as ShTangledGitTempListLanguages from "./types/sh/tangled/git/temp/listLanguages.js";
37
49
export * as ShTangledGitTempListTags from "./types/sh/tangled/git/temp/listTags.js";
50
+
export * as ShTangledGraphCountFollows from "./types/sh/tangled/graph/countFollows.js";
51
+
export * as ShTangledGraphCountFollowsBy from "./types/sh/tangled/graph/countFollowsBy.js";
52
+
export * as ShTangledGraphCountVouches from "./types/sh/tangled/graph/countVouches.js";
53
+
export * as ShTangledGraphCountVouchesBy from "./types/sh/tangled/graph/countVouchesBy.js";
38
54
export * as ShTangledGraphFollow from "./types/sh/tangled/graph/follow.js";
39
55
export * as ShTangledGraphGetFollow from "./types/sh/tangled/graph/getFollow.js";
40
56
export * as ShTangledGraphListFollows from "./types/sh/tangled/graph/listFollows.js";
···
44
60
export * as ShTangledGraphVouch from "./types/sh/tangled/graph/vouch.js";
45
61
export * as ShTangledKnot from "./types/sh/tangled/knot.js";
46
62
export * as ShTangledKnotAddMember from "./types/sh/tangled/knot/addMember.js";
63
+
export * as ShTangledKnotCountKnots from "./types/sh/tangled/knot/countKnots.js";
64
+
export * as ShTangledKnotCountMembers from "./types/sh/tangled/knot/countMembers.js";
65
+
export * as ShTangledKnotCountMembersBy from "./types/sh/tangled/knot/countMembersBy.js";
47
66
export * as ShTangledKnotListKeys from "./types/sh/tangled/knot/listKeys.js";
48
67
export * as ShTangledKnotListKnots from "./types/sh/tangled/knot/listKnots.js";
49
68
export * as ShTangledKnotListMembers from "./types/sh/tangled/knot/listMembers.js";
···
52
71
export * as ShTangledKnotRemoveMember from "./types/sh/tangled/knot/removeMember.js";
53
72
export * as ShTangledKnotSubscribeRepos from "./types/sh/tangled/knot/subscribeRepos.js";
54
73
export * as ShTangledKnotVersion from "./types/sh/tangled/knot/version.js";
74
+
export * as ShTangledLabelCountDefinitions from "./types/sh/tangled/label/countDefinitions.js";
75
+
export * as ShTangledLabelCountOps from "./types/sh/tangled/label/countOps.js";
76
+
export * as ShTangledLabelCountOpsBy from "./types/sh/tangled/label/countOpsBy.js";
55
77
export * as ShTangledLabelDefinition from "./types/sh/tangled/label/definition.js";
56
78
export * as ShTangledLabelListDefinitions from "./types/sh/tangled/label/listDefinitions.js";
57
79
export * as ShTangledLabelListOps from "./types/sh/tangled/label/listOps.js";
···
61
83
export * as ShTangledOwner from "./types/sh/tangled/owner.js";
62
84
export * as ShTangledPipeline from "./types/sh/tangled/pipeline.js";
63
85
export * as ShTangledPipelineCancelPipeline from "./types/sh/tangled/pipeline/cancelPipeline.js";
86
+
export * as ShTangledPipelineCountPipelines from "./types/sh/tangled/pipeline/countPipelines.js";
87
+
export * as ShTangledPipelineCountPipelinesBy from "./types/sh/tangled/pipeline/countPipelinesBy.js";
88
+
export * as ShTangledPipelineCountStatuses from "./types/sh/tangled/pipeline/countStatuses.js";
89
+
export * as ShTangledPipelineCountStatusesBy from "./types/sh/tangled/pipeline/countStatusesBy.js";
64
90
export * as ShTangledPipelineListPipelines from "./types/sh/tangled/pipeline/listPipelines.js";
65
91
export * as ShTangledPipelineListPipelinesBy from "./types/sh/tangled/pipeline/listPipelinesBy.js";
66
92
export * as ShTangledPipelineListStatuses from "./types/sh/tangled/pipeline/listStatuses.js";
67
93
export * as ShTangledPipelineListStatusesBy from "./types/sh/tangled/pipeline/listStatusesBy.js";
68
94
export * as ShTangledPipelineStatus from "./types/sh/tangled/pipeline/status.js";
69
95
export * as ShTangledPublicKey from "./types/sh/tangled/publicKey.js";
70
-
export * as ShTangledPublicKeyListKeys from "./types/sh/tangled/publicKey/listKeys.js";
71
96
export * as ShTangledQueryEnrichResponse from "./types/sh/tangled/query/enrichResponse.js";
72
97
export * as ShTangledRepo from "./types/sh/tangled/repo.js";
73
98
export * as ShTangledRepoAddCollaborator from "./types/sh/tangled/repo/addCollaborator.js";
···
79
104
export * as ShTangledRepoBranches from "./types/sh/tangled/repo/branches.js";
80
105
export * as ShTangledRepoCollaborator from "./types/sh/tangled/repo/collaborator.js";
81
106
export * as ShTangledRepoCompare from "./types/sh/tangled/repo/compare.js";
107
+
export * as ShTangledRepoCountArtifacts from "./types/sh/tangled/repo/countArtifacts.js";
108
+
export * as ShTangledRepoCountArtifactsBy from "./types/sh/tangled/repo/countArtifactsBy.js";
109
+
export * as ShTangledRepoCountCollaborators from "./types/sh/tangled/repo/countCollaborators.js";
110
+
export * as ShTangledRepoCountCollaboratorsBy from "./types/sh/tangled/repo/countCollaboratorsBy.js";
111
+
export * as ShTangledRepoCountIssues from "./types/sh/tangled/repo/countIssues.js";
112
+
export * as ShTangledRepoCountIssuesBy from "./types/sh/tangled/repo/countIssuesBy.js";
113
+
export * as ShTangledRepoCountPulls from "./types/sh/tangled/repo/countPulls.js";
114
+
export * as ShTangledRepoCountPullsBy from "./types/sh/tangled/repo/countPullsBy.js";
115
+
export * as ShTangledRepoCountRepos from "./types/sh/tangled/repo/countRepos.js";
82
116
export * as ShTangledRepoCreate from "./types/sh/tangled/repo/create.js";
117
+
export * as ShTangledRepoDefs from "./types/sh/tangled/repo/defs.js";
83
118
export * as ShTangledRepoDelete from "./types/sh/tangled/repo/delete.js";
84
119
export * as ShTangledRepoDeleteBranch from "./types/sh/tangled/repo/deleteBranch.js";
85
120
export * as ShTangledRepoDescribeRepo from "./types/sh/tangled/repo/describeRepo.js";
···
87
122
export * as ShTangledRepoForkStatus from "./types/sh/tangled/repo/forkStatus.js";
88
123
export * as ShTangledRepoForkSync from "./types/sh/tangled/repo/forkSync.js";
89
124
export * as ShTangledRepoGetDefaultBranch from "./types/sh/tangled/repo/getDefaultBranch.js";
125
+
export * as ShTangledRepoGetIssue from "./types/sh/tangled/repo/getIssue.js";
126
+
export * as ShTangledRepoGetIssues from "./types/sh/tangled/repo/getIssues.js";
127
+
export * as ShTangledRepoGetPull from "./types/sh/tangled/repo/getPull.js";
128
+
export * as ShTangledRepoGetPulls from "./types/sh/tangled/repo/getPulls.js";
129
+
export * as ShTangledRepoGetRepo from "./types/sh/tangled/repo/getRepo.js";
130
+
export * as ShTangledRepoGetRepoByRepoDid from "./types/sh/tangled/repo/getRepoByRepoDid.js";
131
+
export * as ShTangledRepoGetRepos from "./types/sh/tangled/repo/getRepos.js";
90
132
export * as ShTangledRepoGetReposByRepoDids from "./types/sh/tangled/repo/getReposByRepoDids.js";
91
133
export * as ShTangledRepoHiddenRef from "./types/sh/tangled/repo/hiddenRef.js";
92
134
export * as ShTangledRepoIssue from "./types/sh/tangled/repo/issue.js";
93
135
export * as ShTangledRepoIssueComment from "./types/sh/tangled/repo/issue/comment.js";
136
+
export * as ShTangledRepoIssueCountStates from "./types/sh/tangled/repo/issue/countStates.js";
137
+
export * as ShTangledRepoIssueCountStatesBy from "./types/sh/tangled/repo/issue/countStatesBy.js";
94
138
export * as ShTangledRepoIssueListStates from "./types/sh/tangled/repo/issue/listStates.js";
95
139
export * as ShTangledRepoIssueListStatesBy from "./types/sh/tangled/repo/issue/listStatesBy.js";
96
140
export * as ShTangledRepoIssueState from "./types/sh/tangled/repo/issue/state.js";
···
112
156
export * as ShTangledRepoMergeCheck from "./types/sh/tangled/repo/mergeCheck.js";
113
157
export * as ShTangledRepoPull from "./types/sh/tangled/repo/pull.js";
114
158
export * as ShTangledRepoPullComment from "./types/sh/tangled/repo/pull/comment.js";
159
+
export * as ShTangledRepoPullCountStatuses from "./types/sh/tangled/repo/pull/countStatuses.js";
160
+
export * as ShTangledRepoPullCountStatusesBy from "./types/sh/tangled/repo/pull/countStatusesBy.js";
115
161
export * as ShTangledRepoPullListStatuses from "./types/sh/tangled/repo/pull/listStatuses.js";
116
162
export * as ShTangledRepoPullListStatusesBy from "./types/sh/tangled/repo/pull/listStatusesBy.js";
117
163
export * as ShTangledRepoPullStatus from "./types/sh/tangled/repo/pull/status.js";
···
125
171
export * as ShTangledRepoTags from "./types/sh/tangled/repo/tags.js";
126
172
export * as ShTangledRepoTree from "./types/sh/tangled/repo/tree.js";
127
173
export * as ShTangledSpindle from "./types/sh/tangled/spindle.js";
174
+
export * as ShTangledSpindleCountMembers from "./types/sh/tangled/spindle/countMembers.js";
175
+
export * as ShTangledSpindleCountMembersBy from "./types/sh/tangled/spindle/countMembersBy.js";
176
+
export * as ShTangledSpindleCountSpindles from "./types/sh/tangled/spindle/countSpindles.js";
128
177
export * as ShTangledSpindleListMembers from "./types/sh/tangled/spindle/listMembers.js";
129
178
export * as ShTangledSpindleListMembersBy from "./types/sh/tangled/spindle/listMembersBy.js";
130
179
export * as ShTangledSpindleListSpindles from "./types/sh/tangled/spindle/listSpindles.js";
131
180
export * as ShTangledSpindleMember from "./types/sh/tangled/spindle/member.js";
132
181
export * as ShTangledString from "./types/sh/tangled/string.js";
182
+
export * as ShTangledStringCountStrings from "./types/sh/tangled/string/countStrings.js";
183
+
export * as ShTangledStringGetString from "./types/sh/tangled/string/getString.js";
133
184
export * as ShTangledStringListStrings from "./types/sh/tangled/string/listStrings.js";
134
185
export * as ShTangledSyncListRepos from "./types/sh/tangled/sync/listRepos.js";
135
186
export * as ShTangledSyncRequestCrawl from "./types/sh/tangled/sync/requestCrawl.js";
+56
web/src/lib/api/lexicons/types/sh/tangled/actor/defs.ts
+56
web/src/lib/api/lexicons/types/sh/tangled/actor/defs.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
4
+
const _profileViewBasicSchema = /*#__PURE__*/ v.object({
5
+
$type: /*#__PURE__*/ v.optional(
6
+
/*#__PURE__*/ v.literal("sh.tangled.actor.defs#profileViewBasic"),
7
+
),
8
+
avatar: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()),
9
+
did: /*#__PURE__*/ v.didString(),
10
+
handle: /*#__PURE__*/ v.handleString(),
11
+
get viewer() {
12
+
return /*#__PURE__*/ v.optional(viewerStateSchema);
13
+
},
14
+
});
15
+
const _profileViewDetailedSchema = /*#__PURE__*/ v.object({
16
+
$type: /*#__PURE__*/ v.optional(
17
+
/*#__PURE__*/ v.literal("sh.tangled.actor.defs#profileViewDetailed"),
18
+
),
19
+
avatar: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()),
20
+
did: /*#__PURE__*/ v.didString(),
21
+
followersCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()),
22
+
followsCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()),
23
+
handle: /*#__PURE__*/ v.handleString(),
24
+
get viewer() {
25
+
return /*#__PURE__*/ v.optional(viewerStateSchema);
26
+
},
27
+
});
28
+
const _viewerStateSchema = /*#__PURE__*/ v.object({
29
+
$type: /*#__PURE__*/ v.optional(
30
+
/*#__PURE__*/ v.literal("sh.tangled.actor.defs#viewerState"),
31
+
),
32
+
followedBy: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()),
33
+
following: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()),
34
+
});
35
+
36
+
type profileViewBasic$schematype = typeof _profileViewBasicSchema;
37
+
type profileViewDetailed$schematype = typeof _profileViewDetailedSchema;
38
+
type viewerState$schematype = typeof _viewerStateSchema;
39
+
40
+
export interface profileViewBasicSchema extends profileViewBasic$schematype {}
41
+
export interface profileViewDetailedSchema extends profileViewDetailed$schematype {}
42
+
export interface viewerStateSchema extends viewerState$schematype {}
43
+
44
+
export const profileViewBasicSchema =
45
+
_profileViewBasicSchema as profileViewBasicSchema;
46
+
export const profileViewDetailedSchema =
47
+
_profileViewDetailedSchema as profileViewDetailedSchema;
48
+
export const viewerStateSchema = _viewerStateSchema as viewerStateSchema;
49
+
50
+
export interface ProfileViewBasic extends v.InferInput<
51
+
typeof profileViewBasicSchema
52
+
> {}
53
+
export interface ProfileViewDetailed extends v.InferInput<
54
+
typeof profileViewDetailedSchema
55
+
> {}
56
+
export interface ViewerState extends v.InferInput<typeof viewerStateSchema> {}
+38
web/src/lib/api/lexicons/types/sh/tangled/actor/getProfile.ts
+38
web/src/lib/api/lexicons/types/sh/tangled/actor/getProfile.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.actor.getProfile", {
6
+
params: /*#__PURE__*/ v.object({
7
+
/**
8
+
* AT-URI of the sh.tangled.actor.profile record to fetch.
9
+
*/
10
+
actor: /*#__PURE__*/ v.resourceUriString(),
11
+
}),
12
+
output: {
13
+
type: "lex",
14
+
schema: /*#__PURE__*/ v.object({
15
+
cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()),
16
+
uri: /*#__PURE__*/ v.resourceUriString(),
17
+
/**
18
+
* Embedded sh.tangled.actor.profile record.
19
+
*/
20
+
value: /*#__PURE__*/ v.unknown(),
21
+
}),
22
+
},
23
+
});
24
+
25
+
type main$schematype = typeof _mainSchema;
26
+
27
+
export interface mainSchema extends main$schematype {}
28
+
29
+
export const mainSchema = _mainSchema as mainSchema;
30
+
31
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
32
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
33
+
34
+
declare module "@atcute/lexicons/ambient" {
35
+
interface XRPCQueries {
36
+
"sh.tangled.actor.getProfile": mainSchema;
37
+
}
38
+
}
+56
web/src/lib/api/lexicons/types/sh/tangled/actor/getProfiles.ts
+56
web/src/lib/api/lexicons/types/sh/tangled/actor/getProfiles.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.actor.getProfiles", {
6
+
params: /*#__PURE__*/ v.object({
7
+
/**
8
+
* AT-URIs of the sh.tangled.actor.profile records to fetch. At most 50 per request.
9
+
* @minLength 1
10
+
* @maxLength 50
11
+
*/
12
+
actors: /*#__PURE__*/ v.constrain(
13
+
/*#__PURE__*/ v.array(/*#__PURE__*/ v.resourceUriString()),
14
+
[/*#__PURE__*/ v.arrayLength(1, 50)],
15
+
),
16
+
}),
17
+
output: {
18
+
type: "lex",
19
+
schema: /*#__PURE__*/ v.object({
20
+
get items() {
21
+
return /*#__PURE__*/ v.array(recordViewSchema);
22
+
},
23
+
}),
24
+
},
25
+
});
26
+
const _recordViewSchema = /*#__PURE__*/ v.object({
27
+
$type: /*#__PURE__*/ v.optional(
28
+
/*#__PURE__*/ v.literal("sh.tangled.actor.getProfiles#recordView"),
29
+
),
30
+
cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()),
31
+
uri: /*#__PURE__*/ v.resourceUriString(),
32
+
/**
33
+
* Embedded sh.tangled.actor.profile record.
34
+
*/
35
+
value: /*#__PURE__*/ v.unknown(),
36
+
});
37
+
38
+
type main$schematype = typeof _mainSchema;
39
+
type recordView$schematype = typeof _recordViewSchema;
40
+
41
+
export interface mainSchema extends main$schematype {}
42
+
export interface recordViewSchema extends recordView$schematype {}
43
+
44
+
export const mainSchema = _mainSchema as mainSchema;
45
+
export const recordViewSchema = _recordViewSchema as recordViewSchema;
46
+
47
+
export interface RecordView extends v.InferInput<typeof recordViewSchema> {}
48
+
49
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
50
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
51
+
52
+
declare module "@atcute/lexicons/ambient" {
53
+
interface XRPCQueries {
54
+
"sh.tangled.actor.getProfiles": mainSchema;
55
+
}
56
+
}
+8
web/src/lib/api/lexicons/types/sh/tangled/ci/queryPipelines.ts
+8
web/src/lib/api/lexicons/types/sh/tangled/ci/queryPipelines.ts
···
15
15
* Pagination cursor
16
16
*/
17
17
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
18
+
/**
19
+
* Filter pipelines by trigger kind. When provided, pipelines matching any listed kind are returned; when omitted, every kind is returned.
20
+
*/
21
+
kinds: /*#__PURE__*/ v.optional(
22
+
/*#__PURE__*/ v.array(
23
+
/*#__PURE__*/ v.literalEnum(["manual", "pull_request", "push"]),
24
+
),
25
+
),
18
26
/**
19
27
* Maximum number of pipelines to return
20
28
* @minimum 1
+42
web/src/lib/api/lexicons/types/sh/tangled/feed/countComments.ts
+42
web/src/lib/api/lexicons/types/sh/tangled/feed/countComments.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.feed.countComments", {
6
+
params: /*#__PURE__*/ v.object({
7
+
/**
8
+
* Record AT-URI the comments attach to.
9
+
*/
10
+
subject: /*#__PURE__*/ v.resourceUriString(),
11
+
}),
12
+
output: {
13
+
type: "lex",
14
+
schema: /*#__PURE__*/ v.object({
15
+
/**
16
+
* Total number of matching records.
17
+
* @minimum 0
18
+
*/
19
+
count: /*#__PURE__*/ v.integer(),
20
+
/**
21
+
* Number of distinct authors among the matching records.
22
+
* @minimum 0
23
+
*/
24
+
distinctAuthors: /*#__PURE__*/ v.integer(),
25
+
}),
26
+
},
27
+
});
28
+
29
+
type main$schematype = typeof _mainSchema;
30
+
31
+
export interface mainSchema extends main$schematype {}
32
+
33
+
export const mainSchema = _mainSchema as mainSchema;
34
+
35
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
36
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
37
+
38
+
declare module "@atcute/lexicons/ambient" {
39
+
interface XRPCQueries {
40
+
"sh.tangled.feed.countComments": mainSchema;
41
+
}
42
+
}
+42
web/src/lib/api/lexicons/types/sh/tangled/feed/countCommentsBy.ts
+42
web/src/lib/api/lexicons/types/sh/tangled/feed/countCommentsBy.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.feed.countCommentsBy", {
6
+
params: /*#__PURE__*/ v.object({
7
+
/**
8
+
* Actor DID whose comment authorings to list.
9
+
*/
10
+
subject: /*#__PURE__*/ v.didString(),
11
+
}),
12
+
output: {
13
+
type: "lex",
14
+
schema: /*#__PURE__*/ v.object({
15
+
/**
16
+
* Total number of matching records.
17
+
* @minimum 0
18
+
*/
19
+
count: /*#__PURE__*/ v.integer(),
20
+
/**
21
+
* Number of distinct authors among the matching records.
22
+
* @minimum 0
23
+
*/
24
+
distinctAuthors: /*#__PURE__*/ v.integer(),
25
+
}),
26
+
},
27
+
});
28
+
29
+
type main$schematype = typeof _mainSchema;
30
+
31
+
export interface mainSchema extends main$schematype {}
32
+
33
+
export const mainSchema = _mainSchema as mainSchema;
34
+
35
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
36
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
37
+
38
+
declare module "@atcute/lexicons/ambient" {
39
+
interface XRPCQueries {
40
+
"sh.tangled.feed.countCommentsBy": mainSchema;
41
+
}
42
+
}
+42
web/src/lib/api/lexicons/types/sh/tangled/feed/countReactions.ts
+42
web/src/lib/api/lexicons/types/sh/tangled/feed/countReactions.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.feed.countReactions", {
6
+
params: /*#__PURE__*/ v.object({
7
+
/**
8
+
* Record AT-URI the reactions target.
9
+
*/
10
+
subject: /*#__PURE__*/ v.resourceUriString(),
11
+
}),
12
+
output: {
13
+
type: "lex",
14
+
schema: /*#__PURE__*/ v.object({
15
+
/**
16
+
* Total number of matching records.
17
+
* @minimum 0
18
+
*/
19
+
count: /*#__PURE__*/ v.integer(),
20
+
/**
21
+
* Number of distinct authors among the matching records.
22
+
* @minimum 0
23
+
*/
24
+
distinctAuthors: /*#__PURE__*/ v.integer(),
25
+
}),
26
+
},
27
+
});
28
+
29
+
type main$schematype = typeof _mainSchema;
30
+
31
+
export interface mainSchema extends main$schematype {}
32
+
33
+
export const mainSchema = _mainSchema as mainSchema;
34
+
35
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
36
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
37
+
38
+
declare module "@atcute/lexicons/ambient" {
39
+
interface XRPCQueries {
40
+
"sh.tangled.feed.countReactions": mainSchema;
41
+
}
42
+
}
+42
web/src/lib/api/lexicons/types/sh/tangled/feed/countReactionsBy.ts
+42
web/src/lib/api/lexicons/types/sh/tangled/feed/countReactionsBy.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.feed.countReactionsBy", {
6
+
params: /*#__PURE__*/ v.object({
7
+
/**
8
+
* Actor DID whose reaction authorings to list.
9
+
*/
10
+
subject: /*#__PURE__*/ v.didString(),
11
+
}),
12
+
output: {
13
+
type: "lex",
14
+
schema: /*#__PURE__*/ v.object({
15
+
/**
16
+
* Total number of matching records.
17
+
* @minimum 0
18
+
*/
19
+
count: /*#__PURE__*/ v.integer(),
20
+
/**
21
+
* Number of distinct authors among the matching records.
22
+
* @minimum 0
23
+
*/
24
+
distinctAuthors: /*#__PURE__*/ v.integer(),
25
+
}),
26
+
},
27
+
});
28
+
29
+
type main$schematype = typeof _mainSchema;
30
+
31
+
export interface mainSchema extends main$schematype {}
32
+
33
+
export const mainSchema = _mainSchema as mainSchema;
34
+
35
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
36
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
37
+
38
+
declare module "@atcute/lexicons/ambient" {
39
+
interface XRPCQueries {
40
+
"sh.tangled.feed.countReactionsBy": mainSchema;
41
+
}
42
+
}
+42
web/src/lib/api/lexicons/types/sh/tangled/feed/countStars.ts
+42
web/src/lib/api/lexicons/types/sh/tangled/feed/countStars.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.feed.countStars", {
6
+
params: /*#__PURE__*/ v.object({
7
+
/**
8
+
* Repo DID to list star edges for.
9
+
*/
10
+
subject: /*#__PURE__*/ v.string(),
11
+
}),
12
+
output: {
13
+
type: "lex",
14
+
schema: /*#__PURE__*/ v.object({
15
+
/**
16
+
* Total number of matching records.
17
+
* @minimum 0
18
+
*/
19
+
count: /*#__PURE__*/ v.integer(),
20
+
/**
21
+
* Number of distinct authors among the matching records.
22
+
* @minimum 0
23
+
*/
24
+
distinctAuthors: /*#__PURE__*/ v.integer(),
25
+
}),
26
+
},
27
+
});
28
+
29
+
type main$schematype = typeof _mainSchema;
30
+
31
+
export interface mainSchema extends main$schematype {}
32
+
33
+
export const mainSchema = _mainSchema as mainSchema;
34
+
35
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
36
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
37
+
38
+
declare module "@atcute/lexicons/ambient" {
39
+
interface XRPCQueries {
40
+
"sh.tangled.feed.countStars": mainSchema;
41
+
}
42
+
}
+42
web/src/lib/api/lexicons/types/sh/tangled/feed/countStarsBy.ts
+42
web/src/lib/api/lexicons/types/sh/tangled/feed/countStarsBy.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.feed.countStarsBy", {
6
+
params: /*#__PURE__*/ v.object({
7
+
/**
8
+
* Actor DID whose star authorings to list.
9
+
*/
10
+
subject: /*#__PURE__*/ v.didString(),
11
+
}),
12
+
output: {
13
+
type: "lex",
14
+
schema: /*#__PURE__*/ v.object({
15
+
/**
16
+
* Total number of matching records.
17
+
* @minimum 0
18
+
*/
19
+
count: /*#__PURE__*/ v.integer(),
20
+
/**
21
+
* Number of distinct authors among the matching records.
22
+
* @minimum 0
23
+
*/
24
+
distinctAuthors: /*#__PURE__*/ v.integer(),
25
+
}),
26
+
},
27
+
});
28
+
29
+
type main$schematype = typeof _mainSchema;
30
+
31
+
export interface mainSchema extends main$schematype {}
32
+
33
+
export const mainSchema = _mainSchema as mainSchema;
34
+
35
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
36
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
37
+
38
+
declare module "@atcute/lexicons/ambient" {
39
+
interface XRPCQueries {
40
+
"sh.tangled.feed.countStarsBy": mainSchema;
41
+
}
42
+
}
+129
web/src/lib/api/lexicons/types/sh/tangled/feed/getTimeline.ts
+129
web/src/lib/api/lexicons/types/sh/tangled/feed/getTimeline.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
import * as ShTangledActorDefs from "../actor/defs.js";
5
+
import * as ShTangledRepoDefs from "../repo/defs.js";
6
+
7
+
const _followEventSchema = /*#__PURE__*/ v.object({
8
+
$type: /*#__PURE__*/ v.optional(
9
+
/*#__PURE__*/ v.literal("sh.tangled.feed.getTimeline#followEvent"),
10
+
),
11
+
get actor() {
12
+
return ShTangledActorDefs.profileViewBasicSchema;
13
+
},
14
+
cid: /*#__PURE__*/ v.cidString(),
15
+
get subject() {
16
+
return ShTangledActorDefs.profileViewDetailedSchema;
17
+
},
18
+
uri: /*#__PURE__*/ v.resourceUriString(),
19
+
});
20
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.feed.getTimeline", {
21
+
params: /*#__PURE__*/ v.object({
22
+
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
23
+
followingOnly: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()),
24
+
/**
25
+
* @minimum 1
26
+
* @maximum 100
27
+
* @default 50
28
+
*/
29
+
limit: /*#__PURE__*/ v.optional(
30
+
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [
31
+
/*#__PURE__*/ v.integerRange(1, 100),
32
+
]),
33
+
50,
34
+
),
35
+
/**
36
+
* TODO: deprecate this and use auth instead.
37
+
*/
38
+
viewer: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()),
39
+
}),
40
+
output: {
41
+
type: "lex",
42
+
schema: /*#__PURE__*/ v.object({
43
+
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
44
+
get feed() {
45
+
return /*#__PURE__*/ v.array(timelineItemSchema);
46
+
},
47
+
}),
48
+
},
49
+
});
50
+
const _repoEventSchema = /*#__PURE__*/ v.object({
51
+
$type: /*#__PURE__*/ v.optional(
52
+
/*#__PURE__*/ v.literal("sh.tangled.feed.getTimeline#repoEvent"),
53
+
),
54
+
cid: /*#__PURE__*/ v.cidString(),
55
+
get repo() {
56
+
return ShTangledRepoDefs.repoViewBasicSchema;
57
+
},
58
+
/**
59
+
* Fork parent, present only if this repo is a fork.
60
+
*/
61
+
get source() {
62
+
return /*#__PURE__*/ v.optional(ShTangledRepoDefs.repoViewBasicSchema);
63
+
},
64
+
uri: /*#__PURE__*/ v.resourceUriString(),
65
+
});
66
+
const _starEventSchema = /*#__PURE__*/ v.object({
67
+
$type: /*#__PURE__*/ v.optional(
68
+
/*#__PURE__*/ v.literal("sh.tangled.feed.getTimeline#starEvent"),
69
+
),
70
+
/**
71
+
* Who starred.
72
+
*/
73
+
get actor() {
74
+
return ShTangledActorDefs.profileViewBasicSchema;
75
+
},
76
+
cid: /*#__PURE__*/ v.cidString(),
77
+
/**
78
+
* The starred repo.
79
+
*/
80
+
get repo() {
81
+
return ShTangledRepoDefs.repoViewBasicSchema;
82
+
},
83
+
uri: /*#__PURE__*/ v.resourceUriString(),
84
+
});
85
+
const _timelineItemSchema = /*#__PURE__*/ v.object({
86
+
$type: /*#__PURE__*/ v.optional(
87
+
/*#__PURE__*/ v.literal("sh.tangled.feed.getTimeline#timelineItem"),
88
+
),
89
+
get event() {
90
+
return /*#__PURE__*/ v.variant([
91
+
followEventSchema,
92
+
repoEventSchema,
93
+
starEventSchema,
94
+
]);
95
+
},
96
+
eventAt: /*#__PURE__*/ v.datetimeString(),
97
+
});
98
+
99
+
type followEvent$schematype = typeof _followEventSchema;
100
+
type main$schematype = typeof _mainSchema;
101
+
type repoEvent$schematype = typeof _repoEventSchema;
102
+
type starEvent$schematype = typeof _starEventSchema;
103
+
type timelineItem$schematype = typeof _timelineItemSchema;
104
+
105
+
export interface followEventSchema extends followEvent$schematype {}
106
+
export interface mainSchema extends main$schematype {}
107
+
export interface repoEventSchema extends repoEvent$schematype {}
108
+
export interface starEventSchema extends starEvent$schematype {}
109
+
export interface timelineItemSchema extends timelineItem$schematype {}
110
+
111
+
export const followEventSchema = _followEventSchema as followEventSchema;
112
+
export const mainSchema = _mainSchema as mainSchema;
113
+
export const repoEventSchema = _repoEventSchema as repoEventSchema;
114
+
export const starEventSchema = _starEventSchema as starEventSchema;
115
+
export const timelineItemSchema = _timelineItemSchema as timelineItemSchema;
116
+
117
+
export interface FollowEvent extends v.InferInput<typeof followEventSchema> {}
118
+
export interface RepoEvent extends v.InferInput<typeof repoEventSchema> {}
119
+
export interface StarEvent extends v.InferInput<typeof starEventSchema> {}
120
+
export interface TimelineItem extends v.InferInput<typeof timelineItemSchema> {}
121
+
122
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
123
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
124
+
125
+
declare module "@atcute/lexicons/ambient" {
126
+
interface XRPCQueries {
127
+
"sh.tangled.feed.getTimeline": mainSchema;
128
+
}
129
+
}
+1
-1
web/src/lib/api/lexicons/types/sh/tangled/feed/listComments.ts
+1
-1
web/src/lib/api/lexicons/types/sh/tangled/feed/listComments.ts
+42
web/src/lib/api/lexicons/types/sh/tangled/git/countRefUpdates.ts
+42
web/src/lib/api/lexicons/types/sh/tangled/git/countRefUpdates.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.git.countRefUpdates", {
6
+
params: /*#__PURE__*/ v.object({
7
+
/**
8
+
* Repo DID whose ref-update records to list.
9
+
*/
10
+
subject: /*#__PURE__*/ v.didString(),
11
+
}),
12
+
output: {
13
+
type: "lex",
14
+
schema: /*#__PURE__*/ v.object({
15
+
/**
16
+
* Total number of matching records.
17
+
* @minimum 0
18
+
*/
19
+
count: /*#__PURE__*/ v.integer(),
20
+
/**
21
+
* Number of distinct authors among the matching records.
22
+
* @minimum 0
23
+
*/
24
+
distinctAuthors: /*#__PURE__*/ v.integer(),
25
+
}),
26
+
},
27
+
});
28
+
29
+
type main$schematype = typeof _mainSchema;
30
+
31
+
export interface mainSchema extends main$schematype {}
32
+
33
+
export const mainSchema = _mainSchema as mainSchema;
34
+
35
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
36
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
37
+
38
+
declare module "@atcute/lexicons/ambient" {
39
+
interface XRPCQueries {
40
+
"sh.tangled.git.countRefUpdates": mainSchema;
41
+
}
42
+
}
+42
web/src/lib/api/lexicons/types/sh/tangled/git/countRefUpdatesBy.ts
+42
web/src/lib/api/lexicons/types/sh/tangled/git/countRefUpdatesBy.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.git.countRefUpdatesBy", {
6
+
params: /*#__PURE__*/ v.object({
7
+
/**
8
+
* Actor DID whose ref-update authorings to list.
9
+
*/
10
+
subject: /*#__PURE__*/ v.didString(),
11
+
}),
12
+
output: {
13
+
type: "lex",
14
+
schema: /*#__PURE__*/ v.object({
15
+
/**
16
+
* Total number of matching records.
17
+
* @minimum 0
18
+
*/
19
+
count: /*#__PURE__*/ v.integer(),
20
+
/**
21
+
* Number of distinct authors among the matching records.
22
+
* @minimum 0
23
+
*/
24
+
distinctAuthors: /*#__PURE__*/ v.integer(),
25
+
}),
26
+
},
27
+
});
28
+
29
+
type main$schematype = typeof _mainSchema;
30
+
31
+
export interface mainSchema extends main$schematype {}
32
+
33
+
export const mainSchema = _mainSchema as mainSchema;
34
+
35
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
36
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
37
+
38
+
declare module "@atcute/lexicons/ambient" {
39
+
interface XRPCQueries {
40
+
"sh.tangled.git.countRefUpdatesBy": mainSchema;
41
+
}
42
+
}
+42
web/src/lib/api/lexicons/types/sh/tangled/graph/countFollows.ts
+42
web/src/lib/api/lexicons/types/sh/tangled/graph/countFollows.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.graph.countFollows", {
6
+
params: /*#__PURE__*/ v.object({
7
+
/**
8
+
* Followee DID whose inbound follows to list.
9
+
*/
10
+
subject: /*#__PURE__*/ v.didString(),
11
+
}),
12
+
output: {
13
+
type: "lex",
14
+
schema: /*#__PURE__*/ v.object({
15
+
/**
16
+
* Total number of matching records.
17
+
* @minimum 0
18
+
*/
19
+
count: /*#__PURE__*/ v.integer(),
20
+
/**
21
+
* Number of distinct authors among the matching records.
22
+
* @minimum 0
23
+
*/
24
+
distinctAuthors: /*#__PURE__*/ v.integer(),
25
+
}),
26
+
},
27
+
});
28
+
29
+
type main$schematype = typeof _mainSchema;
30
+
31
+
export interface mainSchema extends main$schematype {}
32
+
33
+
export const mainSchema = _mainSchema as mainSchema;
34
+
35
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
36
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
37
+
38
+
declare module "@atcute/lexicons/ambient" {
39
+
interface XRPCQueries {
40
+
"sh.tangled.graph.countFollows": mainSchema;
41
+
}
42
+
}
+42
web/src/lib/api/lexicons/types/sh/tangled/graph/countFollowsBy.ts
+42
web/src/lib/api/lexicons/types/sh/tangled/graph/countFollowsBy.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.graph.countFollowsBy", {
6
+
params: /*#__PURE__*/ v.object({
7
+
/**
8
+
* Actor DID whose follow authorings to list.
9
+
*/
10
+
subject: /*#__PURE__*/ v.didString(),
11
+
}),
12
+
output: {
13
+
type: "lex",
14
+
schema: /*#__PURE__*/ v.object({
15
+
/**
16
+
* Total number of matching records.
17
+
* @minimum 0
18
+
*/
19
+
count: /*#__PURE__*/ v.integer(),
20
+
/**
21
+
* Number of distinct authors among the matching records.
22
+
* @minimum 0
23
+
*/
24
+
distinctAuthors: /*#__PURE__*/ v.integer(),
25
+
}),
26
+
},
27
+
});
28
+
29
+
type main$schematype = typeof _mainSchema;
30
+
31
+
export interface mainSchema extends main$schematype {}
32
+
33
+
export const mainSchema = _mainSchema as mainSchema;
34
+
35
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
36
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
37
+
38
+
declare module "@atcute/lexicons/ambient" {
39
+
interface XRPCQueries {
40
+
"sh.tangled.graph.countFollowsBy": mainSchema;
41
+
}
42
+
}
+42
web/src/lib/api/lexicons/types/sh/tangled/graph/countVouches.ts
+42
web/src/lib/api/lexicons/types/sh/tangled/graph/countVouches.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.graph.countVouches", {
6
+
params: /*#__PURE__*/ v.object({
7
+
/**
8
+
* Vouchee DID whose inbound vouches to list.
9
+
*/
10
+
subject: /*#__PURE__*/ v.didString(),
11
+
}),
12
+
output: {
13
+
type: "lex",
14
+
schema: /*#__PURE__*/ v.object({
15
+
/**
16
+
* Total number of matching records.
17
+
* @minimum 0
18
+
*/
19
+
count: /*#__PURE__*/ v.integer(),
20
+
/**
21
+
* Number of distinct authors among the matching records.
22
+
* @minimum 0
23
+
*/
24
+
distinctAuthors: /*#__PURE__*/ v.integer(),
25
+
}),
26
+
},
27
+
});
28
+
29
+
type main$schematype = typeof _mainSchema;
30
+
31
+
export interface mainSchema extends main$schematype {}
32
+
33
+
export const mainSchema = _mainSchema as mainSchema;
34
+
35
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
36
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
37
+
38
+
declare module "@atcute/lexicons/ambient" {
39
+
interface XRPCQueries {
40
+
"sh.tangled.graph.countVouches": mainSchema;
41
+
}
42
+
}
+42
web/src/lib/api/lexicons/types/sh/tangled/graph/countVouchesBy.ts
+42
web/src/lib/api/lexicons/types/sh/tangled/graph/countVouchesBy.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.graph.countVouchesBy", {
6
+
params: /*#__PURE__*/ v.object({
7
+
/**
8
+
* Actor DID whose vouch authorings to list.
9
+
*/
10
+
subject: /*#__PURE__*/ v.didString(),
11
+
}),
12
+
output: {
13
+
type: "lex",
14
+
schema: /*#__PURE__*/ v.object({
15
+
/**
16
+
* Total number of matching records.
17
+
* @minimum 0
18
+
*/
19
+
count: /*#__PURE__*/ v.integer(),
20
+
/**
21
+
* Number of distinct authors among the matching records.
22
+
* @minimum 0
23
+
*/
24
+
distinctAuthors: /*#__PURE__*/ v.integer(),
25
+
}),
26
+
},
27
+
});
28
+
29
+
type main$schematype = typeof _mainSchema;
30
+
31
+
export interface mainSchema extends main$schematype {}
32
+
33
+
export const mainSchema = _mainSchema as mainSchema;
34
+
35
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
36
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
37
+
38
+
declare module "@atcute/lexicons/ambient" {
39
+
interface XRPCQueries {
40
+
"sh.tangled.graph.countVouchesBy": mainSchema;
41
+
}
42
+
}
+42
web/src/lib/api/lexicons/types/sh/tangled/knot/countKnots.ts
+42
web/src/lib/api/lexicons/types/sh/tangled/knot/countKnots.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.knot.countKnots", {
6
+
params: /*#__PURE__*/ v.object({
7
+
/**
8
+
* Owner DID whose knot records to list.
9
+
*/
10
+
subject: /*#__PURE__*/ v.didString(),
11
+
}),
12
+
output: {
13
+
type: "lex",
14
+
schema: /*#__PURE__*/ v.object({
15
+
/**
16
+
* Total number of matching records.
17
+
* @minimum 0
18
+
*/
19
+
count: /*#__PURE__*/ v.integer(),
20
+
/**
21
+
* Number of distinct authors among the matching records.
22
+
* @minimum 0
23
+
*/
24
+
distinctAuthors: /*#__PURE__*/ v.integer(),
25
+
}),
26
+
},
27
+
});
28
+
29
+
type main$schematype = typeof _mainSchema;
30
+
31
+
export interface mainSchema extends main$schematype {}
32
+
33
+
export const mainSchema = _mainSchema as mainSchema;
34
+
35
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
36
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
37
+
38
+
declare module "@atcute/lexicons/ambient" {
39
+
interface XRPCQueries {
40
+
"sh.tangled.knot.countKnots": mainSchema;
41
+
}
42
+
}
+42
web/src/lib/api/lexicons/types/sh/tangled/knot/countMembers.ts
+42
web/src/lib/api/lexicons/types/sh/tangled/knot/countMembers.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.knot.countMembers", {
6
+
params: /*#__PURE__*/ v.object({
7
+
/**
8
+
* Knot identifier whose member records to list.
9
+
*/
10
+
subject: /*#__PURE__*/ v.string(),
11
+
}),
12
+
output: {
13
+
type: "lex",
14
+
schema: /*#__PURE__*/ v.object({
15
+
/**
16
+
* Total number of matching records.
17
+
* @minimum 0
18
+
*/
19
+
count: /*#__PURE__*/ v.integer(),
20
+
/**
21
+
* Number of distinct authors among the matching records.
22
+
* @minimum 0
23
+
*/
24
+
distinctAuthors: /*#__PURE__*/ v.integer(),
25
+
}),
26
+
},
27
+
});
28
+
29
+
type main$schematype = typeof _mainSchema;
30
+
31
+
export interface mainSchema extends main$schematype {}
32
+
33
+
export const mainSchema = _mainSchema as mainSchema;
34
+
35
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
36
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
37
+
38
+
declare module "@atcute/lexicons/ambient" {
39
+
interface XRPCQueries {
40
+
"sh.tangled.knot.countMembers": mainSchema;
41
+
}
42
+
}
+42
web/src/lib/api/lexicons/types/sh/tangled/knot/countMembersBy.ts
+42
web/src/lib/api/lexicons/types/sh/tangled/knot/countMembersBy.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.knot.countMembersBy", {
6
+
params: /*#__PURE__*/ v.object({
7
+
/**
8
+
* Actor DID whose knot-member authorings to list.
9
+
*/
10
+
subject: /*#__PURE__*/ v.didString(),
11
+
}),
12
+
output: {
13
+
type: "lex",
14
+
schema: /*#__PURE__*/ v.object({
15
+
/**
16
+
* Total number of matching records.
17
+
* @minimum 0
18
+
*/
19
+
count: /*#__PURE__*/ v.integer(),
20
+
/**
21
+
* Number of distinct authors among the matching records.
22
+
* @minimum 0
23
+
*/
24
+
distinctAuthors: /*#__PURE__*/ v.integer(),
25
+
}),
26
+
},
27
+
});
28
+
29
+
type main$schematype = typeof _mainSchema;
30
+
31
+
export interface mainSchema extends main$schematype {}
32
+
33
+
export const mainSchema = _mainSchema as mainSchema;
34
+
35
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
36
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
37
+
38
+
declare module "@atcute/lexicons/ambient" {
39
+
interface XRPCQueries {
40
+
"sh.tangled.knot.countMembersBy": mainSchema;
41
+
}
42
+
}
+42
web/src/lib/api/lexicons/types/sh/tangled/label/countDefinitions.ts
+42
web/src/lib/api/lexicons/types/sh/tangled/label/countDefinitions.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.label.countDefinitions", {
6
+
params: /*#__PURE__*/ v.object({
7
+
/**
8
+
* Scope identifier whose label definitions to list.
9
+
*/
10
+
subject: /*#__PURE__*/ v.string(),
11
+
}),
12
+
output: {
13
+
type: "lex",
14
+
schema: /*#__PURE__*/ v.object({
15
+
/**
16
+
* Total number of matching records.
17
+
* @minimum 0
18
+
*/
19
+
count: /*#__PURE__*/ v.integer(),
20
+
/**
21
+
* Number of distinct authors among the matching records.
22
+
* @minimum 0
23
+
*/
24
+
distinctAuthors: /*#__PURE__*/ v.integer(),
25
+
}),
26
+
},
27
+
});
28
+
29
+
type main$schematype = typeof _mainSchema;
30
+
31
+
export interface mainSchema extends main$schematype {}
32
+
33
+
export const mainSchema = _mainSchema as mainSchema;
34
+
35
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
36
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
37
+
38
+
declare module "@atcute/lexicons/ambient" {
39
+
interface XRPCQueries {
40
+
"sh.tangled.label.countDefinitions": mainSchema;
41
+
}
42
+
}
+42
web/src/lib/api/lexicons/types/sh/tangled/label/countOps.ts
+42
web/src/lib/api/lexicons/types/sh/tangled/label/countOps.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.label.countOps", {
6
+
params: /*#__PURE__*/ v.object({
7
+
/**
8
+
* Scope identifier whose label op records to list.
9
+
*/
10
+
subject: /*#__PURE__*/ v.string(),
11
+
}),
12
+
output: {
13
+
type: "lex",
14
+
schema: /*#__PURE__*/ v.object({
15
+
/**
16
+
* Total number of matching records.
17
+
* @minimum 0
18
+
*/
19
+
count: /*#__PURE__*/ v.integer(),
20
+
/**
21
+
* Number of distinct authors among the matching records.
22
+
* @minimum 0
23
+
*/
24
+
distinctAuthors: /*#__PURE__*/ v.integer(),
25
+
}),
26
+
},
27
+
});
28
+
29
+
type main$schematype = typeof _mainSchema;
30
+
31
+
export interface mainSchema extends main$schematype {}
32
+
33
+
export const mainSchema = _mainSchema as mainSchema;
34
+
35
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
36
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
37
+
38
+
declare module "@atcute/lexicons/ambient" {
39
+
interface XRPCQueries {
40
+
"sh.tangled.label.countOps": mainSchema;
41
+
}
42
+
}
+42
web/src/lib/api/lexicons/types/sh/tangled/label/countOpsBy.ts
+42
web/src/lib/api/lexicons/types/sh/tangled/label/countOpsBy.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.label.countOpsBy", {
6
+
params: /*#__PURE__*/ v.object({
7
+
/**
8
+
* Actor DID whose label-op authorings to list.
9
+
*/
10
+
subject: /*#__PURE__*/ v.didString(),
11
+
}),
12
+
output: {
13
+
type: "lex",
14
+
schema: /*#__PURE__*/ v.object({
15
+
/**
16
+
* Total number of matching records.
17
+
* @minimum 0
18
+
*/
19
+
count: /*#__PURE__*/ v.integer(),
20
+
/**
21
+
* Number of distinct authors among the matching records.
22
+
* @minimum 0
23
+
*/
24
+
distinctAuthors: /*#__PURE__*/ v.integer(),
25
+
}),
26
+
},
27
+
});
28
+
29
+
type main$schematype = typeof _mainSchema;
30
+
31
+
export interface mainSchema extends main$schematype {}
32
+
33
+
export const mainSchema = _mainSchema as mainSchema;
34
+
35
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
36
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
37
+
38
+
declare module "@atcute/lexicons/ambient" {
39
+
interface XRPCQueries {
40
+
"sh.tangled.label.countOpsBy": mainSchema;
41
+
}
42
+
}
+45
web/src/lib/api/lexicons/types/sh/tangled/pipeline/countPipelines.ts
+45
web/src/lib/api/lexicons/types/sh/tangled/pipeline/countPipelines.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query(
6
+
"sh.tangled.pipeline.countPipelines",
7
+
{
8
+
params: /*#__PURE__*/ v.object({
9
+
/**
10
+
* Repo or spindle identifier whose pipeline records to list.
11
+
*/
12
+
subject: /*#__PURE__*/ v.string(),
13
+
}),
14
+
output: {
15
+
type: "lex",
16
+
schema: /*#__PURE__*/ v.object({
17
+
/**
18
+
* Total number of matching records.
19
+
* @minimum 0
20
+
*/
21
+
count: /*#__PURE__*/ v.integer(),
22
+
/**
23
+
* Number of distinct authors among the matching records.
24
+
* @minimum 0
25
+
*/
26
+
distinctAuthors: /*#__PURE__*/ v.integer(),
27
+
}),
28
+
},
29
+
},
30
+
);
31
+
32
+
type main$schematype = typeof _mainSchema;
33
+
34
+
export interface mainSchema extends main$schematype {}
35
+
36
+
export const mainSchema = _mainSchema as mainSchema;
37
+
38
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
39
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
40
+
41
+
declare module "@atcute/lexicons/ambient" {
42
+
interface XRPCQueries {
43
+
"sh.tangled.pipeline.countPipelines": mainSchema;
44
+
}
45
+
}
+45
web/src/lib/api/lexicons/types/sh/tangled/pipeline/countPipelinesBy.ts
+45
web/src/lib/api/lexicons/types/sh/tangled/pipeline/countPipelinesBy.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query(
6
+
"sh.tangled.pipeline.countPipelinesBy",
7
+
{
8
+
params: /*#__PURE__*/ v.object({
9
+
/**
10
+
* Actor DID whose pipeline authorings to list.
11
+
*/
12
+
subject: /*#__PURE__*/ v.didString(),
13
+
}),
14
+
output: {
15
+
type: "lex",
16
+
schema: /*#__PURE__*/ v.object({
17
+
/**
18
+
* Total number of matching records.
19
+
* @minimum 0
20
+
*/
21
+
count: /*#__PURE__*/ v.integer(),
22
+
/**
23
+
* Number of distinct authors among the matching records.
24
+
* @minimum 0
25
+
*/
26
+
distinctAuthors: /*#__PURE__*/ v.integer(),
27
+
}),
28
+
},
29
+
},
30
+
);
31
+
32
+
type main$schematype = typeof _mainSchema;
33
+
34
+
export interface mainSchema extends main$schematype {}
35
+
36
+
export const mainSchema = _mainSchema as mainSchema;
37
+
38
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
39
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
40
+
41
+
declare module "@atcute/lexicons/ambient" {
42
+
interface XRPCQueries {
43
+
"sh.tangled.pipeline.countPipelinesBy": mainSchema;
44
+
}
45
+
}
+42
web/src/lib/api/lexicons/types/sh/tangled/pipeline/countStatuses.ts
+42
web/src/lib/api/lexicons/types/sh/tangled/pipeline/countStatuses.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.pipeline.countStatuses", {
6
+
params: /*#__PURE__*/ v.object({
7
+
/**
8
+
* Pipeline AT-URI whose status records to list.
9
+
*/
10
+
subject: /*#__PURE__*/ v.resourceUriString(),
11
+
}),
12
+
output: {
13
+
type: "lex",
14
+
schema: /*#__PURE__*/ v.object({
15
+
/**
16
+
* Total number of matching records.
17
+
* @minimum 0
18
+
*/
19
+
count: /*#__PURE__*/ v.integer(),
20
+
/**
21
+
* Number of distinct authors among the matching records.
22
+
* @minimum 0
23
+
*/
24
+
distinctAuthors: /*#__PURE__*/ v.integer(),
25
+
}),
26
+
},
27
+
});
28
+
29
+
type main$schematype = typeof _mainSchema;
30
+
31
+
export interface mainSchema extends main$schematype {}
32
+
33
+
export const mainSchema = _mainSchema as mainSchema;
34
+
35
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
36
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
37
+
38
+
declare module "@atcute/lexicons/ambient" {
39
+
interface XRPCQueries {
40
+
"sh.tangled.pipeline.countStatuses": mainSchema;
41
+
}
42
+
}
+45
web/src/lib/api/lexicons/types/sh/tangled/pipeline/countStatusesBy.ts
+45
web/src/lib/api/lexicons/types/sh/tangled/pipeline/countStatusesBy.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query(
6
+
"sh.tangled.pipeline.countStatusesBy",
7
+
{
8
+
params: /*#__PURE__*/ v.object({
9
+
/**
10
+
* Actor DID whose pipeline-status authorings to list.
11
+
*/
12
+
subject: /*#__PURE__*/ v.didString(),
13
+
}),
14
+
output: {
15
+
type: "lex",
16
+
schema: /*#__PURE__*/ v.object({
17
+
/**
18
+
* Total number of matching records.
19
+
* @minimum 0
20
+
*/
21
+
count: /*#__PURE__*/ v.integer(),
22
+
/**
23
+
* Number of distinct authors among the matching records.
24
+
* @minimum 0
25
+
*/
26
+
distinctAuthors: /*#__PURE__*/ v.integer(),
27
+
}),
28
+
},
29
+
},
30
+
);
31
+
32
+
type main$schematype = typeof _mainSchema;
33
+
34
+
export interface mainSchema extends main$schematype {}
35
+
36
+
export const mainSchema = _mainSchema as mainSchema;
37
+
38
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
39
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
40
+
41
+
declare module "@atcute/lexicons/ambient" {
42
+
interface XRPCQueries {
43
+
"sh.tangled.pipeline.countStatusesBy": mainSchema;
44
+
}
45
+
}
-75
web/src/lib/api/lexicons/types/sh/tangled/publicKey/listKeys.ts
-75
web/src/lib/api/lexicons/types/sh/tangled/publicKey/listKeys.ts
···
1
-
import type {} from "@atcute/lexicons";
2
-
import * as v from "@atcute/lexicons/validations";
3
-
import type {} from "@atcute/lexicons/ambient";
4
-
5
-
const _listItemSchema = /*#__PURE__*/ v.object({
6
-
$type: /*#__PURE__*/ v.optional(
7
-
/*#__PURE__*/ v.literal("sh.tangled.publicKey.listKeys#listItem"),
8
-
),
9
-
cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()),
10
-
uri: /*#__PURE__*/ v.resourceUriString(),
11
-
/**
12
-
* Embedded sh.tangled.publicKey record
13
-
*/
14
-
value: /*#__PURE__*/ v.unknown(),
15
-
});
16
-
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.publicKey.listKeys", {
17
-
params: /*#__PURE__*/ v.object({
18
-
/**
19
-
* Pagination cursor
20
-
*/
21
-
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
22
-
/**
23
-
* @minimum 1
24
-
* @maximum 1000
25
-
* @default 50
26
-
*/
27
-
limit: /*#__PURE__*/ v.optional(
28
-
/*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [
29
-
/*#__PURE__*/ v.integerRange(1, 1000),
30
-
]),
31
-
50,
32
-
),
33
-
/**
34
-
* Sort direction by createdAt.
35
-
* @default "desc"
36
-
*/
37
-
order: /*#__PURE__*/ v.optional(
38
-
/*#__PURE__*/ v.string<"asc" | "desc" | (string & {})>(),
39
-
"desc",
40
-
),
41
-
/**
42
-
* Owner DID whose public-key records to list.
43
-
*/
44
-
subject: /*#__PURE__*/ v.didString(),
45
-
}),
46
-
output: {
47
-
type: "lex",
48
-
schema: /*#__PURE__*/ v.object({
49
-
cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
50
-
get items() {
51
-
return /*#__PURE__*/ v.array(listItemSchema);
52
-
},
53
-
}),
54
-
},
55
-
});
56
-
57
-
type listItem$schematype = typeof _listItemSchema;
58
-
type main$schematype = typeof _mainSchema;
59
-
60
-
export interface listItemSchema extends listItem$schematype {}
61
-
export interface mainSchema extends main$schematype {}
62
-
63
-
export const listItemSchema = _listItemSchema as listItemSchema;
64
-
export const mainSchema = _mainSchema as mainSchema;
65
-
66
-
export interface ListItem extends v.InferInput<typeof listItemSchema> {}
67
-
68
-
export interface $params extends v.InferInput<mainSchema["params"]> {}
69
-
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
70
-
71
-
declare module "@atcute/lexicons/ambient" {
72
-
interface XRPCQueries {
73
-
"sh.tangled.publicKey.listKeys": mainSchema;
74
-
}
75
-
}
+42
web/src/lib/api/lexicons/types/sh/tangled/repo/countArtifacts.ts
+42
web/src/lib/api/lexicons/types/sh/tangled/repo/countArtifacts.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.repo.countArtifacts", {
6
+
params: /*#__PURE__*/ v.object({
7
+
/**
8
+
* Repo or release identifier whose artifacts to list.
9
+
*/
10
+
subject: /*#__PURE__*/ v.string(),
11
+
}),
12
+
output: {
13
+
type: "lex",
14
+
schema: /*#__PURE__*/ v.object({
15
+
/**
16
+
* Total number of matching records.
17
+
* @minimum 0
18
+
*/
19
+
count: /*#__PURE__*/ v.integer(),
20
+
/**
21
+
* Number of distinct authors among the matching records.
22
+
* @minimum 0
23
+
*/
24
+
distinctAuthors: /*#__PURE__*/ v.integer(),
25
+
}),
26
+
},
27
+
});
28
+
29
+
type main$schematype = typeof _mainSchema;
30
+
31
+
export interface mainSchema extends main$schematype {}
32
+
33
+
export const mainSchema = _mainSchema as mainSchema;
34
+
35
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
36
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
37
+
38
+
declare module "@atcute/lexicons/ambient" {
39
+
interface XRPCQueries {
40
+
"sh.tangled.repo.countArtifacts": mainSchema;
41
+
}
42
+
}
+42
web/src/lib/api/lexicons/types/sh/tangled/repo/countArtifactsBy.ts
+42
web/src/lib/api/lexicons/types/sh/tangled/repo/countArtifactsBy.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.repo.countArtifactsBy", {
6
+
params: /*#__PURE__*/ v.object({
7
+
/**
8
+
* Actor DID whose artifact authorings to list.
9
+
*/
10
+
subject: /*#__PURE__*/ v.didString(),
11
+
}),
12
+
output: {
13
+
type: "lex",
14
+
schema: /*#__PURE__*/ v.object({
15
+
/**
16
+
* Total number of matching records.
17
+
* @minimum 0
18
+
*/
19
+
count: /*#__PURE__*/ v.integer(),
20
+
/**
21
+
* Number of distinct authors among the matching records.
22
+
* @minimum 0
23
+
*/
24
+
distinctAuthors: /*#__PURE__*/ v.integer(),
25
+
}),
26
+
},
27
+
});
28
+
29
+
type main$schematype = typeof _mainSchema;
30
+
31
+
export interface mainSchema extends main$schematype {}
32
+
33
+
export const mainSchema = _mainSchema as mainSchema;
34
+
35
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
36
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
37
+
38
+
declare module "@atcute/lexicons/ambient" {
39
+
interface XRPCQueries {
40
+
"sh.tangled.repo.countArtifactsBy": mainSchema;
41
+
}
42
+
}
+45
web/src/lib/api/lexicons/types/sh/tangled/repo/countCollaborators.ts
+45
web/src/lib/api/lexicons/types/sh/tangled/repo/countCollaborators.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query(
6
+
"sh.tangled.repo.countCollaborators",
7
+
{
8
+
params: /*#__PURE__*/ v.object({
9
+
/**
10
+
* Repo DID whose collaborator records to list.
11
+
*/
12
+
subject: /*#__PURE__*/ v.didString(),
13
+
}),
14
+
output: {
15
+
type: "lex",
16
+
schema: /*#__PURE__*/ v.object({
17
+
/**
18
+
* Total number of matching records.
19
+
* @minimum 0
20
+
*/
21
+
count: /*#__PURE__*/ v.integer(),
22
+
/**
23
+
* Number of distinct authors among the matching records.
24
+
* @minimum 0
25
+
*/
26
+
distinctAuthors: /*#__PURE__*/ v.integer(),
27
+
}),
28
+
},
29
+
},
30
+
);
31
+
32
+
type main$schematype = typeof _mainSchema;
33
+
34
+
export interface mainSchema extends main$schematype {}
35
+
36
+
export const mainSchema = _mainSchema as mainSchema;
37
+
38
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
39
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
40
+
41
+
declare module "@atcute/lexicons/ambient" {
42
+
interface XRPCQueries {
43
+
"sh.tangled.repo.countCollaborators": mainSchema;
44
+
}
45
+
}
+45
web/src/lib/api/lexicons/types/sh/tangled/repo/countCollaboratorsBy.ts
+45
web/src/lib/api/lexicons/types/sh/tangled/repo/countCollaboratorsBy.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query(
6
+
"sh.tangled.repo.countCollaboratorsBy",
7
+
{
8
+
params: /*#__PURE__*/ v.object({
9
+
/**
10
+
* Actor DID whose collaborator authorings to list.
11
+
*/
12
+
subject: /*#__PURE__*/ v.didString(),
13
+
}),
14
+
output: {
15
+
type: "lex",
16
+
schema: /*#__PURE__*/ v.object({
17
+
/**
18
+
* Total number of matching records.
19
+
* @minimum 0
20
+
*/
21
+
count: /*#__PURE__*/ v.integer(),
22
+
/**
23
+
* Number of distinct authors among the matching records.
24
+
* @minimum 0
25
+
*/
26
+
distinctAuthors: /*#__PURE__*/ v.integer(),
27
+
}),
28
+
},
29
+
},
30
+
);
31
+
32
+
type main$schematype = typeof _mainSchema;
33
+
34
+
export interface mainSchema extends main$schematype {}
35
+
36
+
export const mainSchema = _mainSchema as mainSchema;
37
+
38
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
39
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
40
+
41
+
declare module "@atcute/lexicons/ambient" {
42
+
interface XRPCQueries {
43
+
"sh.tangled.repo.countCollaboratorsBy": mainSchema;
44
+
}
45
+
}
+42
web/src/lib/api/lexicons/types/sh/tangled/repo/countIssues.ts
+42
web/src/lib/api/lexicons/types/sh/tangled/repo/countIssues.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.repo.countIssues", {
6
+
params: /*#__PURE__*/ v.object({
7
+
/**
8
+
* Repo DID to list issues for
9
+
*/
10
+
subject: /*#__PURE__*/ v.didString(),
11
+
}),
12
+
output: {
13
+
type: "lex",
14
+
schema: /*#__PURE__*/ v.object({
15
+
/**
16
+
* Total number of matching records.
17
+
* @minimum 0
18
+
*/
19
+
count: /*#__PURE__*/ v.integer(),
20
+
/**
21
+
* Number of distinct authors among the matching records.
22
+
* @minimum 0
23
+
*/
24
+
distinctAuthors: /*#__PURE__*/ v.integer(),
25
+
}),
26
+
},
27
+
});
28
+
29
+
type main$schematype = typeof _mainSchema;
30
+
31
+
export interface mainSchema extends main$schematype {}
32
+
33
+
export const mainSchema = _mainSchema as mainSchema;
34
+
35
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
36
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
37
+
38
+
declare module "@atcute/lexicons/ambient" {
39
+
interface XRPCQueries {
40
+
"sh.tangled.repo.countIssues": mainSchema;
41
+
}
42
+
}
+42
web/src/lib/api/lexicons/types/sh/tangled/repo/countIssuesBy.ts
+42
web/src/lib/api/lexicons/types/sh/tangled/repo/countIssuesBy.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.repo.countIssuesBy", {
6
+
params: /*#__PURE__*/ v.object({
7
+
/**
8
+
* Actor DID whose issue authorings to list
9
+
*/
10
+
subject: /*#__PURE__*/ v.didString(),
11
+
}),
12
+
output: {
13
+
type: "lex",
14
+
schema: /*#__PURE__*/ v.object({
15
+
/**
16
+
* Total number of matching records.
17
+
* @minimum 0
18
+
*/
19
+
count: /*#__PURE__*/ v.integer(),
20
+
/**
21
+
* Number of distinct authors among the matching records.
22
+
* @minimum 0
23
+
*/
24
+
distinctAuthors: /*#__PURE__*/ v.integer(),
25
+
}),
26
+
},
27
+
});
28
+
29
+
type main$schematype = typeof _mainSchema;
30
+
31
+
export interface mainSchema extends main$schematype {}
32
+
33
+
export const mainSchema = _mainSchema as mainSchema;
34
+
35
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
36
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
37
+
38
+
declare module "@atcute/lexicons/ambient" {
39
+
interface XRPCQueries {
40
+
"sh.tangled.repo.countIssuesBy": mainSchema;
41
+
}
42
+
}
+42
web/src/lib/api/lexicons/types/sh/tangled/repo/countPulls.ts
+42
web/src/lib/api/lexicons/types/sh/tangled/repo/countPulls.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.repo.countPulls", {
6
+
params: /*#__PURE__*/ v.object({
7
+
/**
8
+
* Repo DID to list pulls for
9
+
*/
10
+
subject: /*#__PURE__*/ v.didString(),
11
+
}),
12
+
output: {
13
+
type: "lex",
14
+
schema: /*#__PURE__*/ v.object({
15
+
/**
16
+
* Total number of matching records.
17
+
* @minimum 0
18
+
*/
19
+
count: /*#__PURE__*/ v.integer(),
20
+
/**
21
+
* Number of distinct authors among the matching records.
22
+
* @minimum 0
23
+
*/
24
+
distinctAuthors: /*#__PURE__*/ v.integer(),
25
+
}),
26
+
},
27
+
});
28
+
29
+
type main$schematype = typeof _mainSchema;
30
+
31
+
export interface mainSchema extends main$schematype {}
32
+
33
+
export const mainSchema = _mainSchema as mainSchema;
34
+
35
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
36
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
37
+
38
+
declare module "@atcute/lexicons/ambient" {
39
+
interface XRPCQueries {
40
+
"sh.tangled.repo.countPulls": mainSchema;
41
+
}
42
+
}
+42
web/src/lib/api/lexicons/types/sh/tangled/repo/countPullsBy.ts
+42
web/src/lib/api/lexicons/types/sh/tangled/repo/countPullsBy.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.repo.countPullsBy", {
6
+
params: /*#__PURE__*/ v.object({
7
+
/**
8
+
* Actor DID whose pull authorings to list
9
+
*/
10
+
subject: /*#__PURE__*/ v.didString(),
11
+
}),
12
+
output: {
13
+
type: "lex",
14
+
schema: /*#__PURE__*/ v.object({
15
+
/**
16
+
* Total number of matching records.
17
+
* @minimum 0
18
+
*/
19
+
count: /*#__PURE__*/ v.integer(),
20
+
/**
21
+
* Number of distinct authors among the matching records.
22
+
* @minimum 0
23
+
*/
24
+
distinctAuthors: /*#__PURE__*/ v.integer(),
25
+
}),
26
+
},
27
+
});
28
+
29
+
type main$schematype = typeof _mainSchema;
30
+
31
+
export interface mainSchema extends main$schematype {}
32
+
33
+
export const mainSchema = _mainSchema as mainSchema;
34
+
35
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
36
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
37
+
38
+
declare module "@atcute/lexicons/ambient" {
39
+
interface XRPCQueries {
40
+
"sh.tangled.repo.countPullsBy": mainSchema;
41
+
}
42
+
}
+42
web/src/lib/api/lexicons/types/sh/tangled/repo/countRepos.ts
+42
web/src/lib/api/lexicons/types/sh/tangled/repo/countRepos.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.repo.countRepos", {
6
+
params: /*#__PURE__*/ v.object({
7
+
/**
8
+
* Owner DID whose repo records to list.
9
+
*/
10
+
subject: /*#__PURE__*/ v.didString(),
11
+
}),
12
+
output: {
13
+
type: "lex",
14
+
schema: /*#__PURE__*/ v.object({
15
+
/**
16
+
* Total number of matching records.
17
+
* @minimum 0
18
+
*/
19
+
count: /*#__PURE__*/ v.integer(),
20
+
/**
21
+
* Number of distinct authors among the matching records.
22
+
* @minimum 0
23
+
*/
24
+
distinctAuthors: /*#__PURE__*/ v.integer(),
25
+
}),
26
+
},
27
+
});
28
+
29
+
type main$schematype = typeof _mainSchema;
30
+
31
+
export interface mainSchema extends main$schematype {}
32
+
33
+
export const mainSchema = _mainSchema as mainSchema;
34
+
35
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
36
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
37
+
38
+
declare module "@atcute/lexicons/ambient" {
39
+
interface XRPCQueries {
40
+
"sh.tangled.repo.countRepos": mainSchema;
41
+
}
42
+
}
+41
web/src/lib/api/lexicons/types/sh/tangled/repo/defs.ts
+41
web/src/lib/api/lexicons/types/sh/tangled/repo/defs.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import * as ShTangledActorDefs from "../actor/defs.js";
4
+
5
+
const _repoViewBasicSchema = /*#__PURE__*/ v.object({
6
+
$type: /*#__PURE__*/ v.optional(
7
+
/*#__PURE__*/ v.literal("sh.tangled.repo.defs#repoViewBasic"),
8
+
),
9
+
createdAt: /*#__PURE__*/ v.datetimeString(),
10
+
description: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()),
11
+
did: /*#__PURE__*/ v.didString(),
12
+
isStarred: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()),
13
+
get owner() {
14
+
return ShTangledActorDefs.profileViewBasicSchema;
15
+
},
16
+
slug: /*#__PURE__*/ v.string(),
17
+
starCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()),
18
+
get viewer() {
19
+
return /*#__PURE__*/ v.optional(viewerStateSchema);
20
+
},
21
+
});
22
+
const _viewerStateSchema = /*#__PURE__*/ v.object({
23
+
$type: /*#__PURE__*/ v.optional(
24
+
/*#__PURE__*/ v.literal("sh.tangled.repo.defs#viewerState"),
25
+
),
26
+
star: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()),
27
+
});
28
+
29
+
type repoViewBasic$schematype = typeof _repoViewBasicSchema;
30
+
type viewerState$schematype = typeof _viewerStateSchema;
31
+
32
+
export interface repoViewBasicSchema extends repoViewBasic$schematype {}
33
+
export interface viewerStateSchema extends viewerState$schematype {}
34
+
35
+
export const repoViewBasicSchema = _repoViewBasicSchema as repoViewBasicSchema;
36
+
export const viewerStateSchema = _viewerStateSchema as viewerStateSchema;
37
+
38
+
export interface RepoViewBasic extends v.InferInput<
39
+
typeof repoViewBasicSchema
40
+
> {}
41
+
export interface ViewerState extends v.InferInput<typeof viewerStateSchema> {}
+4
web/src/lib/api/lexicons/types/sh/tangled/repo/forkSync.ts
+4
web/src/lib/api/lexicons/types/sh/tangled/repo/forkSync.ts
+38
web/src/lib/api/lexicons/types/sh/tangled/repo/getIssue.ts
+38
web/src/lib/api/lexicons/types/sh/tangled/repo/getIssue.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.repo.getIssue", {
6
+
params: /*#__PURE__*/ v.object({
7
+
/**
8
+
* AT-URI of the sh.tangled.repo.issue record to fetch.
9
+
*/
10
+
issue: /*#__PURE__*/ v.resourceUriString(),
11
+
}),
12
+
output: {
13
+
type: "lex",
14
+
schema: /*#__PURE__*/ v.object({
15
+
cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()),
16
+
uri: /*#__PURE__*/ v.resourceUriString(),
17
+
/**
18
+
* Embedded sh.tangled.repo.issue record.
19
+
*/
20
+
value: /*#__PURE__*/ v.unknown(),
21
+
}),
22
+
},
23
+
});
24
+
25
+
type main$schematype = typeof _mainSchema;
26
+
27
+
export interface mainSchema extends main$schematype {}
28
+
29
+
export const mainSchema = _mainSchema as mainSchema;
30
+
31
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
32
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
33
+
34
+
declare module "@atcute/lexicons/ambient" {
35
+
interface XRPCQueries {
36
+
"sh.tangled.repo.getIssue": mainSchema;
37
+
}
38
+
}
+56
web/src/lib/api/lexicons/types/sh/tangled/repo/getIssues.ts
+56
web/src/lib/api/lexicons/types/sh/tangled/repo/getIssues.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.repo.getIssues", {
6
+
params: /*#__PURE__*/ v.object({
7
+
/**
8
+
* AT-URIs of the sh.tangled.repo.issue records to fetch. At most 50 per request.
9
+
* @minLength 1
10
+
* @maxLength 50
11
+
*/
12
+
issues: /*#__PURE__*/ v.constrain(
13
+
/*#__PURE__*/ v.array(/*#__PURE__*/ v.resourceUriString()),
14
+
[/*#__PURE__*/ v.arrayLength(1, 50)],
15
+
),
16
+
}),
17
+
output: {
18
+
type: "lex",
19
+
schema: /*#__PURE__*/ v.object({
20
+
get items() {
21
+
return /*#__PURE__*/ v.array(recordViewSchema);
22
+
},
23
+
}),
24
+
},
25
+
});
26
+
const _recordViewSchema = /*#__PURE__*/ v.object({
27
+
$type: /*#__PURE__*/ v.optional(
28
+
/*#__PURE__*/ v.literal("sh.tangled.repo.getIssues#recordView"),
29
+
),
30
+
cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()),
31
+
uri: /*#__PURE__*/ v.resourceUriString(),
32
+
/**
33
+
* Embedded sh.tangled.repo.issue record.
34
+
*/
35
+
value: /*#__PURE__*/ v.unknown(),
36
+
});
37
+
38
+
type main$schematype = typeof _mainSchema;
39
+
type recordView$schematype = typeof _recordViewSchema;
40
+
41
+
export interface mainSchema extends main$schematype {}
42
+
export interface recordViewSchema extends recordView$schematype {}
43
+
44
+
export const mainSchema = _mainSchema as mainSchema;
45
+
export const recordViewSchema = _recordViewSchema as recordViewSchema;
46
+
47
+
export interface RecordView extends v.InferInput<typeof recordViewSchema> {}
48
+
49
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
50
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
51
+
52
+
declare module "@atcute/lexicons/ambient" {
53
+
interface XRPCQueries {
54
+
"sh.tangled.repo.getIssues": mainSchema;
55
+
}
56
+
}
+38
web/src/lib/api/lexicons/types/sh/tangled/repo/getPull.ts
+38
web/src/lib/api/lexicons/types/sh/tangled/repo/getPull.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.repo.getPull", {
6
+
params: /*#__PURE__*/ v.object({
7
+
/**
8
+
* AT-URI of the sh.tangled.repo.pull record to fetch.
9
+
*/
10
+
pull: /*#__PURE__*/ v.resourceUriString(),
11
+
}),
12
+
output: {
13
+
type: "lex",
14
+
schema: /*#__PURE__*/ v.object({
15
+
cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()),
16
+
uri: /*#__PURE__*/ v.resourceUriString(),
17
+
/**
18
+
* Embedded sh.tangled.repo.pull record.
19
+
*/
20
+
value: /*#__PURE__*/ v.unknown(),
21
+
}),
22
+
},
23
+
});
24
+
25
+
type main$schematype = typeof _mainSchema;
26
+
27
+
export interface mainSchema extends main$schematype {}
28
+
29
+
export const mainSchema = _mainSchema as mainSchema;
30
+
31
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
32
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
33
+
34
+
declare module "@atcute/lexicons/ambient" {
35
+
interface XRPCQueries {
36
+
"sh.tangled.repo.getPull": mainSchema;
37
+
}
38
+
}
+56
web/src/lib/api/lexicons/types/sh/tangled/repo/getPulls.ts
+56
web/src/lib/api/lexicons/types/sh/tangled/repo/getPulls.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.repo.getPulls", {
6
+
params: /*#__PURE__*/ v.object({
7
+
/**
8
+
* AT-URIs of the sh.tangled.repo.pull records to fetch. At most 50 per request.
9
+
* @minLength 1
10
+
* @maxLength 50
11
+
*/
12
+
pulls: /*#__PURE__*/ v.constrain(
13
+
/*#__PURE__*/ v.array(/*#__PURE__*/ v.resourceUriString()),
14
+
[/*#__PURE__*/ v.arrayLength(1, 50)],
15
+
),
16
+
}),
17
+
output: {
18
+
type: "lex",
19
+
schema: /*#__PURE__*/ v.object({
20
+
get items() {
21
+
return /*#__PURE__*/ v.array(recordViewSchema);
22
+
},
23
+
}),
24
+
},
25
+
});
26
+
const _recordViewSchema = /*#__PURE__*/ v.object({
27
+
$type: /*#__PURE__*/ v.optional(
28
+
/*#__PURE__*/ v.literal("sh.tangled.repo.getPulls#recordView"),
29
+
),
30
+
cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()),
31
+
uri: /*#__PURE__*/ v.resourceUriString(),
32
+
/**
33
+
* Embedded sh.tangled.repo.pull record.
34
+
*/
35
+
value: /*#__PURE__*/ v.unknown(),
36
+
});
37
+
38
+
type main$schematype = typeof _mainSchema;
39
+
type recordView$schematype = typeof _recordViewSchema;
40
+
41
+
export interface mainSchema extends main$schematype {}
42
+
export interface recordViewSchema extends recordView$schematype {}
43
+
44
+
export const mainSchema = _mainSchema as mainSchema;
45
+
export const recordViewSchema = _recordViewSchema as recordViewSchema;
46
+
47
+
export interface RecordView extends v.InferInput<typeof recordViewSchema> {}
48
+
49
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
50
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
51
+
52
+
declare module "@atcute/lexicons/ambient" {
53
+
interface XRPCQueries {
54
+
"sh.tangled.repo.getPulls": mainSchema;
55
+
}
56
+
}
+38
web/src/lib/api/lexicons/types/sh/tangled/repo/getRepo.ts
+38
web/src/lib/api/lexicons/types/sh/tangled/repo/getRepo.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.repo.getRepo", {
6
+
params: /*#__PURE__*/ v.object({
7
+
/**
8
+
* AT-URI of the sh.tangled.repo record to fetch.
9
+
*/
10
+
repo: /*#__PURE__*/ v.resourceUriString(),
11
+
}),
12
+
output: {
13
+
type: "lex",
14
+
schema: /*#__PURE__*/ v.object({
15
+
cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()),
16
+
uri: /*#__PURE__*/ v.resourceUriString(),
17
+
/**
18
+
* Embedded sh.tangled.repo record.
19
+
*/
20
+
value: /*#__PURE__*/ v.unknown(),
21
+
}),
22
+
},
23
+
});
24
+
25
+
type main$schematype = typeof _mainSchema;
26
+
27
+
export interface mainSchema extends main$schematype {}
28
+
29
+
export const mainSchema = _mainSchema as mainSchema;
30
+
31
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
32
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
33
+
34
+
declare module "@atcute/lexicons/ambient" {
35
+
interface XRPCQueries {
36
+
"sh.tangled.repo.getRepo": mainSchema;
37
+
}
38
+
}
+38
web/src/lib/api/lexicons/types/sh/tangled/repo/getRepoByRepoDid.ts
+38
web/src/lib/api/lexicons/types/sh/tangled/repo/getRepoByRepoDid.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.repo.getRepoByRepoDid", {
6
+
params: /*#__PURE__*/ v.object({
7
+
/**
8
+
* Repo DID whose sh.tangled.repo record to fetch.
9
+
*/
10
+
repoDid: /*#__PURE__*/ v.didString(),
11
+
}),
12
+
output: {
13
+
type: "lex",
14
+
schema: /*#__PURE__*/ v.object({
15
+
cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()),
16
+
uri: /*#__PURE__*/ v.resourceUriString(),
17
+
/**
18
+
* Embedded sh.tangled.repo record.
19
+
*/
20
+
value: /*#__PURE__*/ v.unknown(),
21
+
}),
22
+
},
23
+
});
24
+
25
+
type main$schematype = typeof _mainSchema;
26
+
27
+
export interface mainSchema extends main$schematype {}
28
+
29
+
export const mainSchema = _mainSchema as mainSchema;
30
+
31
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
32
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
33
+
34
+
declare module "@atcute/lexicons/ambient" {
35
+
interface XRPCQueries {
36
+
"sh.tangled.repo.getRepoByRepoDid": mainSchema;
37
+
}
38
+
}
+56
web/src/lib/api/lexicons/types/sh/tangled/repo/getRepos.ts
+56
web/src/lib/api/lexicons/types/sh/tangled/repo/getRepos.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.repo.getRepos", {
6
+
params: /*#__PURE__*/ v.object({
7
+
/**
8
+
* AT-URIs of the sh.tangled.repo records to fetch. At most 50 per request.
9
+
* @minLength 1
10
+
* @maxLength 50
11
+
*/
12
+
repos: /*#__PURE__*/ v.constrain(
13
+
/*#__PURE__*/ v.array(/*#__PURE__*/ v.resourceUriString()),
14
+
[/*#__PURE__*/ v.arrayLength(1, 50)],
15
+
),
16
+
}),
17
+
output: {
18
+
type: "lex",
19
+
schema: /*#__PURE__*/ v.object({
20
+
get items() {
21
+
return /*#__PURE__*/ v.array(recordViewSchema);
22
+
},
23
+
}),
24
+
},
25
+
});
26
+
const _recordViewSchema = /*#__PURE__*/ v.object({
27
+
$type: /*#__PURE__*/ v.optional(
28
+
/*#__PURE__*/ v.literal("sh.tangled.repo.getRepos#recordView"),
29
+
),
30
+
cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()),
31
+
uri: /*#__PURE__*/ v.resourceUriString(),
32
+
/**
33
+
* Embedded sh.tangled.repo record.
34
+
*/
35
+
value: /*#__PURE__*/ v.unknown(),
36
+
});
37
+
38
+
type main$schematype = typeof _mainSchema;
39
+
type recordView$schematype = typeof _recordViewSchema;
40
+
41
+
export interface mainSchema extends main$schematype {}
42
+
export interface recordViewSchema extends recordView$schematype {}
43
+
44
+
export const mainSchema = _mainSchema as mainSchema;
45
+
export const recordViewSchema = _recordViewSchema as recordViewSchema;
46
+
47
+
export interface RecordView extends v.InferInput<typeof recordViewSchema> {}
48
+
49
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
50
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
51
+
52
+
declare module "@atcute/lexicons/ambient" {
53
+
interface XRPCQueries {
54
+
"sh.tangled.repo.getRepos": mainSchema;
55
+
}
56
+
}
+42
web/src/lib/api/lexicons/types/sh/tangled/repo/issue/countStates.ts
+42
web/src/lib/api/lexicons/types/sh/tangled/repo/issue/countStates.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.repo.issue.countStates", {
6
+
params: /*#__PURE__*/ v.object({
7
+
/**
8
+
* Issue AT-URI whose state records to list.
9
+
*/
10
+
subject: /*#__PURE__*/ v.resourceUriString(),
11
+
}),
12
+
output: {
13
+
type: "lex",
14
+
schema: /*#__PURE__*/ v.object({
15
+
/**
16
+
* Total number of matching records.
17
+
* @minimum 0
18
+
*/
19
+
count: /*#__PURE__*/ v.integer(),
20
+
/**
21
+
* Number of distinct authors among the matching records.
22
+
* @minimum 0
23
+
*/
24
+
distinctAuthors: /*#__PURE__*/ v.integer(),
25
+
}),
26
+
},
27
+
});
28
+
29
+
type main$schematype = typeof _mainSchema;
30
+
31
+
export interface mainSchema extends main$schematype {}
32
+
33
+
export const mainSchema = _mainSchema as mainSchema;
34
+
35
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
36
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
37
+
38
+
declare module "@atcute/lexicons/ambient" {
39
+
interface XRPCQueries {
40
+
"sh.tangled.repo.issue.countStates": mainSchema;
41
+
}
42
+
}
+45
web/src/lib/api/lexicons/types/sh/tangled/repo/issue/countStatesBy.ts
+45
web/src/lib/api/lexicons/types/sh/tangled/repo/issue/countStatesBy.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query(
6
+
"sh.tangled.repo.issue.countStatesBy",
7
+
{
8
+
params: /*#__PURE__*/ v.object({
9
+
/**
10
+
* Actor DID whose issue-state authorings to list.
11
+
*/
12
+
subject: /*#__PURE__*/ v.didString(),
13
+
}),
14
+
output: {
15
+
type: "lex",
16
+
schema: /*#__PURE__*/ v.object({
17
+
/**
18
+
* Total number of matching records.
19
+
* @minimum 0
20
+
*/
21
+
count: /*#__PURE__*/ v.integer(),
22
+
/**
23
+
* Number of distinct authors among the matching records.
24
+
* @minimum 0
25
+
*/
26
+
distinctAuthors: /*#__PURE__*/ v.integer(),
27
+
}),
28
+
},
29
+
},
30
+
);
31
+
32
+
type main$schematype = typeof _mainSchema;
33
+
34
+
export interface mainSchema extends main$schematype {}
35
+
36
+
export const mainSchema = _mainSchema as mainSchema;
37
+
38
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
39
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
40
+
41
+
declare module "@atcute/lexicons/ambient" {
42
+
interface XRPCQueries {
43
+
"sh.tangled.repo.issue.countStatesBy": mainSchema;
44
+
}
45
+
}
+4
web/src/lib/api/lexicons/types/sh/tangled/repo/merge.ts
+4
web/src/lib/api/lexicons/types/sh/tangled/repo/merge.ts
+4
web/src/lib/api/lexicons/types/sh/tangled/repo/mergeCheck.ts
+4
web/src/lib/api/lexicons/types/sh/tangled/repo/mergeCheck.ts
+45
web/src/lib/api/lexicons/types/sh/tangled/repo/pull/countStatuses.ts
+45
web/src/lib/api/lexicons/types/sh/tangled/repo/pull/countStatuses.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query(
6
+
"sh.tangled.repo.pull.countStatuses",
7
+
{
8
+
params: /*#__PURE__*/ v.object({
9
+
/**
10
+
* Pull AT-URI whose status records to list.
11
+
*/
12
+
subject: /*#__PURE__*/ v.resourceUriString(),
13
+
}),
14
+
output: {
15
+
type: "lex",
16
+
schema: /*#__PURE__*/ v.object({
17
+
/**
18
+
* Total number of matching records.
19
+
* @minimum 0
20
+
*/
21
+
count: /*#__PURE__*/ v.integer(),
22
+
/**
23
+
* Number of distinct authors among the matching records.
24
+
* @minimum 0
25
+
*/
26
+
distinctAuthors: /*#__PURE__*/ v.integer(),
27
+
}),
28
+
},
29
+
},
30
+
);
31
+
32
+
type main$schematype = typeof _mainSchema;
33
+
34
+
export interface mainSchema extends main$schematype {}
35
+
36
+
export const mainSchema = _mainSchema as mainSchema;
37
+
38
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
39
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
40
+
41
+
declare module "@atcute/lexicons/ambient" {
42
+
interface XRPCQueries {
43
+
"sh.tangled.repo.pull.countStatuses": mainSchema;
44
+
}
45
+
}
+45
web/src/lib/api/lexicons/types/sh/tangled/repo/pull/countStatusesBy.ts
+45
web/src/lib/api/lexicons/types/sh/tangled/repo/pull/countStatusesBy.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query(
6
+
"sh.tangled.repo.pull.countStatusesBy",
7
+
{
8
+
params: /*#__PURE__*/ v.object({
9
+
/**
10
+
* Actor DID whose pull-status authorings to list.
11
+
*/
12
+
subject: /*#__PURE__*/ v.didString(),
13
+
}),
14
+
output: {
15
+
type: "lex",
16
+
schema: /*#__PURE__*/ v.object({
17
+
/**
18
+
* Total number of matching records.
19
+
* @minimum 0
20
+
*/
21
+
count: /*#__PURE__*/ v.integer(),
22
+
/**
23
+
* Number of distinct authors among the matching records.
24
+
* @minimum 0
25
+
*/
26
+
distinctAuthors: /*#__PURE__*/ v.integer(),
27
+
}),
28
+
},
29
+
},
30
+
);
31
+
32
+
type main$schematype = typeof _mainSchema;
33
+
34
+
export interface mainSchema extends main$schematype {}
35
+
36
+
export const mainSchema = _mainSchema as mainSchema;
37
+
38
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
39
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
40
+
41
+
declare module "@atcute/lexicons/ambient" {
42
+
interface XRPCQueries {
43
+
"sh.tangled.repo.pull.countStatusesBy": mainSchema;
44
+
}
45
+
}
+42
web/src/lib/api/lexicons/types/sh/tangled/spindle/countMembers.ts
+42
web/src/lib/api/lexicons/types/sh/tangled/spindle/countMembers.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.spindle.countMembers", {
6
+
params: /*#__PURE__*/ v.object({
7
+
/**
8
+
* Spindle identifier whose member records to list.
9
+
*/
10
+
subject: /*#__PURE__*/ v.string(),
11
+
}),
12
+
output: {
13
+
type: "lex",
14
+
schema: /*#__PURE__*/ v.object({
15
+
/**
16
+
* Total number of matching records.
17
+
* @minimum 0
18
+
*/
19
+
count: /*#__PURE__*/ v.integer(),
20
+
/**
21
+
* Number of distinct authors among the matching records.
22
+
* @minimum 0
23
+
*/
24
+
distinctAuthors: /*#__PURE__*/ v.integer(),
25
+
}),
26
+
},
27
+
});
28
+
29
+
type main$schematype = typeof _mainSchema;
30
+
31
+
export interface mainSchema extends main$schematype {}
32
+
33
+
export const mainSchema = _mainSchema as mainSchema;
34
+
35
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
36
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
37
+
38
+
declare module "@atcute/lexicons/ambient" {
39
+
interface XRPCQueries {
40
+
"sh.tangled.spindle.countMembers": mainSchema;
41
+
}
42
+
}
+42
web/src/lib/api/lexicons/types/sh/tangled/spindle/countMembersBy.ts
+42
web/src/lib/api/lexicons/types/sh/tangled/spindle/countMembersBy.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.spindle.countMembersBy", {
6
+
params: /*#__PURE__*/ v.object({
7
+
/**
8
+
* Actor DID whose spindle-member authorings to list.
9
+
*/
10
+
subject: /*#__PURE__*/ v.didString(),
11
+
}),
12
+
output: {
13
+
type: "lex",
14
+
schema: /*#__PURE__*/ v.object({
15
+
/**
16
+
* Total number of matching records.
17
+
* @minimum 0
18
+
*/
19
+
count: /*#__PURE__*/ v.integer(),
20
+
/**
21
+
* Number of distinct authors among the matching records.
22
+
* @minimum 0
23
+
*/
24
+
distinctAuthors: /*#__PURE__*/ v.integer(),
25
+
}),
26
+
},
27
+
});
28
+
29
+
type main$schematype = typeof _mainSchema;
30
+
31
+
export interface mainSchema extends main$schematype {}
32
+
33
+
export const mainSchema = _mainSchema as mainSchema;
34
+
35
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
36
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
37
+
38
+
declare module "@atcute/lexicons/ambient" {
39
+
interface XRPCQueries {
40
+
"sh.tangled.spindle.countMembersBy": mainSchema;
41
+
}
42
+
}
+42
web/src/lib/api/lexicons/types/sh/tangled/spindle/countSpindles.ts
+42
web/src/lib/api/lexicons/types/sh/tangled/spindle/countSpindles.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.spindle.countSpindles", {
6
+
params: /*#__PURE__*/ v.object({
7
+
/**
8
+
* Owner DID whose spindle records to list.
9
+
*/
10
+
subject: /*#__PURE__*/ v.didString(),
11
+
}),
12
+
output: {
13
+
type: "lex",
14
+
schema: /*#__PURE__*/ v.object({
15
+
/**
16
+
* Total number of matching records.
17
+
* @minimum 0
18
+
*/
19
+
count: /*#__PURE__*/ v.integer(),
20
+
/**
21
+
* Number of distinct authors among the matching records.
22
+
* @minimum 0
23
+
*/
24
+
distinctAuthors: /*#__PURE__*/ v.integer(),
25
+
}),
26
+
},
27
+
});
28
+
29
+
type main$schematype = typeof _mainSchema;
30
+
31
+
export interface mainSchema extends main$schematype {}
32
+
33
+
export const mainSchema = _mainSchema as mainSchema;
34
+
35
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
36
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
37
+
38
+
declare module "@atcute/lexicons/ambient" {
39
+
interface XRPCQueries {
40
+
"sh.tangled.spindle.countSpindles": mainSchema;
41
+
}
42
+
}
+42
web/src/lib/api/lexicons/types/sh/tangled/string/countStrings.ts
+42
web/src/lib/api/lexicons/types/sh/tangled/string/countStrings.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.string.countStrings", {
6
+
params: /*#__PURE__*/ v.object({
7
+
/**
8
+
* Scope identifier whose string records to list.
9
+
*/
10
+
subject: /*#__PURE__*/ v.string(),
11
+
}),
12
+
output: {
13
+
type: "lex",
14
+
schema: /*#__PURE__*/ v.object({
15
+
/**
16
+
* Total number of matching records.
17
+
* @minimum 0
18
+
*/
19
+
count: /*#__PURE__*/ v.integer(),
20
+
/**
21
+
* Number of distinct authors among the matching records.
22
+
* @minimum 0
23
+
*/
24
+
distinctAuthors: /*#__PURE__*/ v.integer(),
25
+
}),
26
+
},
27
+
});
28
+
29
+
type main$schematype = typeof _mainSchema;
30
+
31
+
export interface mainSchema extends main$schematype {}
32
+
33
+
export const mainSchema = _mainSchema as mainSchema;
34
+
35
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
36
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
37
+
38
+
declare module "@atcute/lexicons/ambient" {
39
+
interface XRPCQueries {
40
+
"sh.tangled.string.countStrings": mainSchema;
41
+
}
42
+
}
+38
web/src/lib/api/lexicons/types/sh/tangled/string/getString.ts
+38
web/src/lib/api/lexicons/types/sh/tangled/string/getString.ts
···
1
+
import type {} from "@atcute/lexicons";
2
+
import * as v from "@atcute/lexicons/validations";
3
+
import type {} from "@atcute/lexicons/ambient";
4
+
5
+
const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.string.getString", {
6
+
params: /*#__PURE__*/ v.object({
7
+
/**
8
+
* AT-URI of the sh.tangled.string record to fetch.
9
+
*/
10
+
string: /*#__PURE__*/ v.resourceUriString(),
11
+
}),
12
+
output: {
13
+
type: "lex",
14
+
schema: /*#__PURE__*/ v.object({
15
+
cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()),
16
+
uri: /*#__PURE__*/ v.resourceUriString(),
17
+
/**
18
+
* Embedded sh.tangled.string record.
19
+
*/
20
+
value: /*#__PURE__*/ v.unknown(),
21
+
}),
22
+
},
23
+
});
24
+
25
+
type main$schematype = typeof _mainSchema;
26
+
27
+
export interface mainSchema extends main$schematype {}
28
+
29
+
export const mainSchema = _mainSchema as mainSchema;
30
+
31
+
export interface $params extends v.InferInput<mainSchema["params"]> {}
32
+
export interface $output extends v.InferXRPCBodyInput<mainSchema["output"]> {}
33
+
34
+
declare module "@atcute/lexicons/ambient" {
35
+
interface XRPCQueries {
36
+
"sh.tangled.string.getString": mainSchema;
37
+
}
38
+
}
History
2 rounds
0 comments
boltless.me
submitted
#1
1 commit
Expand
Collapse
web/src/lib/api/lexicons/*: codegen
Signed-off-by: Seongmin Lee <git@boltless.me>
Expand 0 comments
boltless.me
submitted
#0
1 commit
Expand
Collapse
web/src/lib/api/lexicons/*: codegen
Signed-off-by: Seongmin Lee <git@boltless.me>