This repository has no description
0

Configure Feed

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

web/src/lib/api/lexicons/*: codegen

Signed-off-by: Seongmin Lee <git@boltless.me>

author
Seongmin Lee
committer
dawn
date (Jul 30, 2026, 7:45 PM +0300) commit f6eab264 parent 68c9dbc9 change-id uxspkvoy
+227 -75
+1
.gitattributes
··· 1 1 api/tangled/** linguist-generated -diff 2 2 api/tangled/*_ext.go -linguist-generated diff 3 3 flake.lock -diff 4 + web/src/lib/api/lexicons/** linguist-generated -diff
+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> {}
+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 + }
-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 - }
+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> {}