From daaa4c1b19b87cc798641752eb62d7faee61934f Mon Sep 17 00:00:00 2001 From: Seongmin Lee Date: Mon, 27 Jul 2026 18:52:42 +0900 Subject: [PATCH] web/src/lib/api/lexicons/*: codegen Signed-off-by: Seongmin Lee --- .gitattributes | 1 + web/src/lib/api/lexicons/index.ts | 53 ++++++- .../lexicons/types/sh/tangled/actor/defs.ts | 56 ++++++++ .../types/sh/tangled/actor/getProfile.ts | 38 ++++++ .../types/sh/tangled/actor/getProfiles.ts | 56 ++++++++ .../types/sh/tangled/ci/queryPipelines.ts | 8 ++ .../types/sh/tangled/feed/countComments.ts | 42 ++++++ .../types/sh/tangled/feed/countCommentsBy.ts | 42 ++++++ .../types/sh/tangled/feed/countReactions.ts | 42 ++++++ .../types/sh/tangled/feed/countReactionsBy.ts | 42 ++++++ .../types/sh/tangled/feed/countStars.ts | 42 ++++++ .../types/sh/tangled/feed/countStarsBy.ts | 42 ++++++ .../types/sh/tangled/feed/getTimeline.ts | 129 ++++++++++++++++++ .../types/sh/tangled/feed/listComments.ts | 2 +- .../types/sh/tangled/git/countRefUpdates.ts | 42 ++++++ .../types/sh/tangled/git/countRefUpdatesBy.ts | 42 ++++++ .../types/sh/tangled/graph/countFollows.ts | 42 ++++++ .../types/sh/tangled/graph/countFollowsBy.ts | 42 ++++++ .../types/sh/tangled/graph/countVouches.ts | 42 ++++++ .../types/sh/tangled/graph/countVouchesBy.ts | 42 ++++++ .../types/sh/tangled/knot/countKnots.ts | 42 ++++++ .../types/sh/tangled/knot/countMembers.ts | 42 ++++++ .../types/sh/tangled/knot/countMembersBy.ts | 42 ++++++ .../sh/tangled/label/countDefinitions.ts | 42 ++++++ .../types/sh/tangled/label/countOps.ts | 42 ++++++ .../types/sh/tangled/label/countOpsBy.ts | 42 ++++++ .../sh/tangled/pipeline/countPipelines.ts | 45 ++++++ .../sh/tangled/pipeline/countPipelinesBy.ts | 45 ++++++ .../sh/tangled/pipeline/countStatuses.ts | 42 ++++++ .../sh/tangled/pipeline/countStatusesBy.ts | 45 ++++++ .../types/sh/tangled/publicKey/listKeys.ts | 75 ---------- .../types/sh/tangled/repo/countArtifacts.ts | 42 ++++++ .../types/sh/tangled/repo/countArtifactsBy.ts | 42 ++++++ .../sh/tangled/repo/countCollaborators.ts | 45 ++++++ .../sh/tangled/repo/countCollaboratorsBy.ts | 45 ++++++ .../types/sh/tangled/repo/countIssues.ts | 42 ++++++ .../types/sh/tangled/repo/countIssuesBy.ts | 42 ++++++ .../types/sh/tangled/repo/countPulls.ts | 42 ++++++ .../types/sh/tangled/repo/countPullsBy.ts | 42 ++++++ .../types/sh/tangled/repo/countRepos.ts | 42 ++++++ .../lexicons/types/sh/tangled/repo/defs.ts | 41 ++++++ .../types/sh/tangled/repo/forkSync.ts | 4 + .../types/sh/tangled/repo/getIssue.ts | 38 ++++++ .../types/sh/tangled/repo/getIssues.ts | 56 ++++++++ .../lexicons/types/sh/tangled/repo/getPull.ts | 38 ++++++ .../types/sh/tangled/repo/getPulls.ts | 56 ++++++++ .../lexicons/types/sh/tangled/repo/getRepo.ts | 38 ++++++ .../types/sh/tangled/repo/getRepoByRepoDid.ts | 38 ++++++ .../types/sh/tangled/repo/getRepos.ts | 56 ++++++++ .../sh/tangled/repo/issue/countStates.ts | 42 ++++++ .../sh/tangled/repo/issue/countStatesBy.ts | 45 ++++++ .../lexicons/types/sh/tangled/repo/merge.ts | 4 + .../types/sh/tangled/repo/mergeCheck.ts | 4 + .../sh/tangled/repo/pull/countStatuses.ts | 45 ++++++ .../sh/tangled/repo/pull/countStatusesBy.ts | 45 ++++++ .../types/sh/tangled/spindle/countMembers.ts | 42 ++++++ .../sh/tangled/spindle/countMembersBy.ts | 42 ++++++ .../types/sh/tangled/spindle/countSpindles.ts | 42 ++++++ .../types/sh/tangled/string/countStrings.ts | 42 ++++++ .../types/sh/tangled/string/getString.ts | 38 ++++++ 60 files changed, 2414 insertions(+), 77 deletions(-) create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/actor/defs.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/actor/getProfile.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/actor/getProfiles.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/feed/countComments.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/feed/countCommentsBy.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/feed/countReactions.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/feed/countReactionsBy.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/feed/countStars.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/feed/countStarsBy.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/feed/getTimeline.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/git/countRefUpdates.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/git/countRefUpdatesBy.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/graph/countFollows.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/graph/countFollowsBy.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/graph/countVouches.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/graph/countVouchesBy.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/knot/countKnots.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/knot/countMembers.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/knot/countMembersBy.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/label/countDefinitions.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/label/countOps.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/label/countOpsBy.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/pipeline/countPipelines.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/pipeline/countPipelinesBy.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/pipeline/countStatuses.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/pipeline/countStatusesBy.ts delete mode 100644 web/src/lib/api/lexicons/types/sh/tangled/publicKey/listKeys.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/repo/countArtifacts.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/repo/countArtifactsBy.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/repo/countCollaborators.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/repo/countCollaboratorsBy.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/repo/countIssues.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/repo/countIssuesBy.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/repo/countPulls.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/repo/countPullsBy.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/repo/countRepos.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/repo/defs.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/repo/getIssue.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/repo/getIssues.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/repo/getPull.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/repo/getPulls.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/repo/getRepo.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/repo/getRepoByRepoDid.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/repo/getRepos.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/repo/issue/countStates.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/repo/issue/countStatesBy.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/repo/pull/countStatuses.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/repo/pull/countStatusesBy.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/spindle/countMembers.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/spindle/countMembersBy.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/spindle/countSpindles.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/string/countStrings.ts create mode 100644 web/src/lib/api/lexicons/types/sh/tangled/string/getString.ts diff --git a/.gitattributes b/.gitattributes index a8988a21..47ca7d4a 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,4 @@ api/tangled/** linguist-generated -diff api/tangled/*_ext.go -linguist-generated diff flake.lock -diff +web/src/lib/api/lexicons/** linguist-generated -diff diff --git a/web/src/lib/api/lexicons/index.ts b/web/src/lib/api/lexicons/index.ts index bea826a2..b248fc8b 100644 --- a/web/src/lib/api/lexicons/index.ts +++ b/web/src/lib/api/lexicons/index.ts @@ -1,3 +1,6 @@ +export * as ShTangledActorDefs from "./types/sh/tangled/actor/defs.js"; +export * as ShTangledActorGetProfile from "./types/sh/tangled/actor/getProfile.js"; +export * as ShTangledActorGetProfiles from "./types/sh/tangled/actor/getProfiles.js"; export * as ShTangledActorProfile from "./types/sh/tangled/actor/profile.js"; export * as ShTangledCiCancelPipeline from "./types/sh/tangled/ci/cancelPipeline.js"; export * as ShTangledCiGetPipeline from "./types/sh/tangled/ci/getPipeline.js"; @@ -7,7 +10,14 @@ export * as ShTangledCiSubscribePipelineLogs from "./types/sh/tangled/ci/subscri export * as ShTangledCiTrigger from "./types/sh/tangled/ci/trigger.js"; export * as ShTangledCiTriggerPipeline from "./types/sh/tangled/ci/triggerPipeline.js"; export * as ShTangledFeedComment from "./types/sh/tangled/feed/comment.js"; +export * as ShTangledFeedCountComments from "./types/sh/tangled/feed/countComments.js"; +export * as ShTangledFeedCountCommentsBy from "./types/sh/tangled/feed/countCommentsBy.js"; +export * as ShTangledFeedCountReactions from "./types/sh/tangled/feed/countReactions.js"; +export * as ShTangledFeedCountReactionsBy from "./types/sh/tangled/feed/countReactionsBy.js"; +export * as ShTangledFeedCountStars from "./types/sh/tangled/feed/countStars.js"; +export * as ShTangledFeedCountStarsBy from "./types/sh/tangled/feed/countStarsBy.js"; export * as ShTangledFeedGetStar from "./types/sh/tangled/feed/getStar.js"; +export * as ShTangledFeedGetTimeline from "./types/sh/tangled/feed/getTimeline.js"; export * as ShTangledFeedListComments from "./types/sh/tangled/feed/listComments.js"; export * as ShTangledFeedListCommentsBy from "./types/sh/tangled/feed/listCommentsBy.js"; export * as ShTangledFeedListReactions from "./types/sh/tangled/feed/listReactions.js"; @@ -16,6 +26,8 @@ export * as ShTangledFeedListStars from "./types/sh/tangled/feed/listStars.js"; export * as ShTangledFeedListStarsBy from "./types/sh/tangled/feed/listStarsBy.js"; export * as ShTangledFeedReaction from "./types/sh/tangled/feed/reaction.js"; export * as ShTangledFeedStar from "./types/sh/tangled/feed/star.js"; +export * as ShTangledGitCountRefUpdates from "./types/sh/tangled/git/countRefUpdates.js"; +export * as ShTangledGitCountRefUpdatesBy from "./types/sh/tangled/git/countRefUpdatesBy.js"; export * as ShTangledGitListRefUpdates from "./types/sh/tangled/git/listRefUpdates.js"; export * as ShTangledGitListRefUpdatesBy from "./types/sh/tangled/git/listRefUpdatesBy.js"; export * as ShTangledGitListRefs from "./types/sh/tangled/git/listRefs.js"; @@ -35,6 +47,10 @@ export * as ShTangledGitTempListBranches from "./types/sh/tangled/git/temp/listB export * as ShTangledGitTempListCommits from "./types/sh/tangled/git/temp/listCommits.js"; export * as ShTangledGitTempListLanguages from "./types/sh/tangled/git/temp/listLanguages.js"; export * as ShTangledGitTempListTags from "./types/sh/tangled/git/temp/listTags.js"; +export * as ShTangledGraphCountFollows from "./types/sh/tangled/graph/countFollows.js"; +export * as ShTangledGraphCountFollowsBy from "./types/sh/tangled/graph/countFollowsBy.js"; +export * as ShTangledGraphCountVouches from "./types/sh/tangled/graph/countVouches.js"; +export * as ShTangledGraphCountVouchesBy from "./types/sh/tangled/graph/countVouchesBy.js"; export * as ShTangledGraphFollow from "./types/sh/tangled/graph/follow.js"; export * as ShTangledGraphGetFollow from "./types/sh/tangled/graph/getFollow.js"; export * as ShTangledGraphListFollows from "./types/sh/tangled/graph/listFollows.js"; @@ -44,6 +60,9 @@ export * as ShTangledGraphListVouchesBy from "./types/sh/tangled/graph/listVouch export * as ShTangledGraphVouch from "./types/sh/tangled/graph/vouch.js"; export * as ShTangledKnot from "./types/sh/tangled/knot.js"; export * as ShTangledKnotAddMember from "./types/sh/tangled/knot/addMember.js"; +export * as ShTangledKnotCountKnots from "./types/sh/tangled/knot/countKnots.js"; +export * as ShTangledKnotCountMembers from "./types/sh/tangled/knot/countMembers.js"; +export * as ShTangledKnotCountMembersBy from "./types/sh/tangled/knot/countMembersBy.js"; export * as ShTangledKnotListKeys from "./types/sh/tangled/knot/listKeys.js"; export * as ShTangledKnotListKnots from "./types/sh/tangled/knot/listKnots.js"; export * as ShTangledKnotListMembers from "./types/sh/tangled/knot/listMembers.js"; @@ -52,6 +71,9 @@ export * as ShTangledKnotMember from "./types/sh/tangled/knot/member.js"; export * as ShTangledKnotRemoveMember from "./types/sh/tangled/knot/removeMember.js"; export * as ShTangledKnotSubscribeRepos from "./types/sh/tangled/knot/subscribeRepos.js"; export * as ShTangledKnotVersion from "./types/sh/tangled/knot/version.js"; +export * as ShTangledLabelCountDefinitions from "./types/sh/tangled/label/countDefinitions.js"; +export * as ShTangledLabelCountOps from "./types/sh/tangled/label/countOps.js"; +export * as ShTangledLabelCountOpsBy from "./types/sh/tangled/label/countOpsBy.js"; export * as ShTangledLabelDefinition from "./types/sh/tangled/label/definition.js"; export * as ShTangledLabelListDefinitions from "./types/sh/tangled/label/listDefinitions.js"; export * as ShTangledLabelListOps from "./types/sh/tangled/label/listOps.js"; @@ -61,13 +83,16 @@ export * as ShTangledMarkupMarkdown from "./types/sh/tangled/markup/markdown.js" export * as ShTangledOwner from "./types/sh/tangled/owner.js"; export * as ShTangledPipeline from "./types/sh/tangled/pipeline.js"; export * as ShTangledPipelineCancelPipeline from "./types/sh/tangled/pipeline/cancelPipeline.js"; +export * as ShTangledPipelineCountPipelines from "./types/sh/tangled/pipeline/countPipelines.js"; +export * as ShTangledPipelineCountPipelinesBy from "./types/sh/tangled/pipeline/countPipelinesBy.js"; +export * as ShTangledPipelineCountStatuses from "./types/sh/tangled/pipeline/countStatuses.js"; +export * as ShTangledPipelineCountStatusesBy from "./types/sh/tangled/pipeline/countStatusesBy.js"; export * as ShTangledPipelineListPipelines from "./types/sh/tangled/pipeline/listPipelines.js"; export * as ShTangledPipelineListPipelinesBy from "./types/sh/tangled/pipeline/listPipelinesBy.js"; export * as ShTangledPipelineListStatuses from "./types/sh/tangled/pipeline/listStatuses.js"; export * as ShTangledPipelineListStatusesBy from "./types/sh/tangled/pipeline/listStatusesBy.js"; export * as ShTangledPipelineStatus from "./types/sh/tangled/pipeline/status.js"; export * as ShTangledPublicKey from "./types/sh/tangled/publicKey.js"; -export * as ShTangledPublicKeyListKeys from "./types/sh/tangled/publicKey/listKeys.js"; export * as ShTangledQueryEnrichResponse from "./types/sh/tangled/query/enrichResponse.js"; export * as ShTangledRepo from "./types/sh/tangled/repo.js"; export * as ShTangledRepoAddCollaborator from "./types/sh/tangled/repo/addCollaborator.js"; @@ -79,7 +104,17 @@ export * as ShTangledRepoBranch from "./types/sh/tangled/repo/branch.js"; export * as ShTangledRepoBranches from "./types/sh/tangled/repo/branches.js"; export * as ShTangledRepoCollaborator from "./types/sh/tangled/repo/collaborator.js"; export * as ShTangledRepoCompare from "./types/sh/tangled/repo/compare.js"; +export * as ShTangledRepoCountArtifacts from "./types/sh/tangled/repo/countArtifacts.js"; +export * as ShTangledRepoCountArtifactsBy from "./types/sh/tangled/repo/countArtifactsBy.js"; +export * as ShTangledRepoCountCollaborators from "./types/sh/tangled/repo/countCollaborators.js"; +export * as ShTangledRepoCountCollaboratorsBy from "./types/sh/tangled/repo/countCollaboratorsBy.js"; +export * as ShTangledRepoCountIssues from "./types/sh/tangled/repo/countIssues.js"; +export * as ShTangledRepoCountIssuesBy from "./types/sh/tangled/repo/countIssuesBy.js"; +export * as ShTangledRepoCountPulls from "./types/sh/tangled/repo/countPulls.js"; +export * as ShTangledRepoCountPullsBy from "./types/sh/tangled/repo/countPullsBy.js"; +export * as ShTangledRepoCountRepos from "./types/sh/tangled/repo/countRepos.js"; export * as ShTangledRepoCreate from "./types/sh/tangled/repo/create.js"; +export * as ShTangledRepoDefs from "./types/sh/tangled/repo/defs.js"; export * as ShTangledRepoDelete from "./types/sh/tangled/repo/delete.js"; export * as ShTangledRepoDeleteBranch from "./types/sh/tangled/repo/deleteBranch.js"; export * as ShTangledRepoDescribeRepo from "./types/sh/tangled/repo/describeRepo.js"; @@ -87,10 +122,19 @@ export * as ShTangledRepoDiff from "./types/sh/tangled/repo/diff.js"; export * as ShTangledRepoForkStatus from "./types/sh/tangled/repo/forkStatus.js"; export * as ShTangledRepoForkSync from "./types/sh/tangled/repo/forkSync.js"; export * as ShTangledRepoGetDefaultBranch from "./types/sh/tangled/repo/getDefaultBranch.js"; +export * as ShTangledRepoGetIssue from "./types/sh/tangled/repo/getIssue.js"; +export * as ShTangledRepoGetIssues from "./types/sh/tangled/repo/getIssues.js"; +export * as ShTangledRepoGetPull from "./types/sh/tangled/repo/getPull.js"; +export * as ShTangledRepoGetPulls from "./types/sh/tangled/repo/getPulls.js"; +export * as ShTangledRepoGetRepo from "./types/sh/tangled/repo/getRepo.js"; +export * as ShTangledRepoGetRepoByRepoDid from "./types/sh/tangled/repo/getRepoByRepoDid.js"; +export * as ShTangledRepoGetRepos from "./types/sh/tangled/repo/getRepos.js"; export * as ShTangledRepoGetReposByRepoDids from "./types/sh/tangled/repo/getReposByRepoDids.js"; export * as ShTangledRepoHiddenRef from "./types/sh/tangled/repo/hiddenRef.js"; export * as ShTangledRepoIssue from "./types/sh/tangled/repo/issue.js"; export * as ShTangledRepoIssueComment from "./types/sh/tangled/repo/issue/comment.js"; +export * as ShTangledRepoIssueCountStates from "./types/sh/tangled/repo/issue/countStates.js"; +export * as ShTangledRepoIssueCountStatesBy from "./types/sh/tangled/repo/issue/countStatesBy.js"; export * as ShTangledRepoIssueListStates from "./types/sh/tangled/repo/issue/listStates.js"; export * as ShTangledRepoIssueListStatesBy from "./types/sh/tangled/repo/issue/listStatesBy.js"; export * as ShTangledRepoIssueState from "./types/sh/tangled/repo/issue/state.js"; @@ -112,6 +156,8 @@ export * as ShTangledRepoMerge from "./types/sh/tangled/repo/merge.js"; export * as ShTangledRepoMergeCheck from "./types/sh/tangled/repo/mergeCheck.js"; export * as ShTangledRepoPull from "./types/sh/tangled/repo/pull.js"; export * as ShTangledRepoPullComment from "./types/sh/tangled/repo/pull/comment.js"; +export * as ShTangledRepoPullCountStatuses from "./types/sh/tangled/repo/pull/countStatuses.js"; +export * as ShTangledRepoPullCountStatusesBy from "./types/sh/tangled/repo/pull/countStatusesBy.js"; export * as ShTangledRepoPullListStatuses from "./types/sh/tangled/repo/pull/listStatuses.js"; export * as ShTangledRepoPullListStatusesBy from "./types/sh/tangled/repo/pull/listStatusesBy.js"; export * as ShTangledRepoPullStatus from "./types/sh/tangled/repo/pull/status.js"; @@ -125,11 +171,16 @@ export * as ShTangledRepoTag from "./types/sh/tangled/repo/tag.js"; export * as ShTangledRepoTags from "./types/sh/tangled/repo/tags.js"; export * as ShTangledRepoTree from "./types/sh/tangled/repo/tree.js"; export * as ShTangledSpindle from "./types/sh/tangled/spindle.js"; +export * as ShTangledSpindleCountMembers from "./types/sh/tangled/spindle/countMembers.js"; +export * as ShTangledSpindleCountMembersBy from "./types/sh/tangled/spindle/countMembersBy.js"; +export * as ShTangledSpindleCountSpindles from "./types/sh/tangled/spindle/countSpindles.js"; export * as ShTangledSpindleListMembers from "./types/sh/tangled/spindle/listMembers.js"; export * as ShTangledSpindleListMembersBy from "./types/sh/tangled/spindle/listMembersBy.js"; export * as ShTangledSpindleListSpindles from "./types/sh/tangled/spindle/listSpindles.js"; export * as ShTangledSpindleMember from "./types/sh/tangled/spindle/member.js"; export * as ShTangledString from "./types/sh/tangled/string.js"; +export * as ShTangledStringCountStrings from "./types/sh/tangled/string/countStrings.js"; +export * as ShTangledStringGetString from "./types/sh/tangled/string/getString.js"; export * as ShTangledStringListStrings from "./types/sh/tangled/string/listStrings.js"; export * as ShTangledSyncListRepos from "./types/sh/tangled/sync/listRepos.js"; export * as ShTangledSyncRequestCrawl from "./types/sh/tangled/sync/requestCrawl.js"; diff --git a/web/src/lib/api/lexicons/types/sh/tangled/actor/defs.ts b/web/src/lib/api/lexicons/types/sh/tangled/actor/defs.ts new file mode 100644 index 00000000..d18b805e --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/actor/defs.ts @@ -0,0 +1,56 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; + +const _profileViewBasicSchema = /*#__PURE__*/ v.object({ + $type: /*#__PURE__*/ v.optional( + /*#__PURE__*/ v.literal("sh.tangled.actor.defs#profileViewBasic"), + ), + avatar: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), + did: /*#__PURE__*/ v.didString(), + handle: /*#__PURE__*/ v.handleString(), + get viewer() { + return /*#__PURE__*/ v.optional(viewerStateSchema); + }, +}); +const _profileViewDetailedSchema = /*#__PURE__*/ v.object({ + $type: /*#__PURE__*/ v.optional( + /*#__PURE__*/ v.literal("sh.tangled.actor.defs#profileViewDetailed"), + ), + avatar: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.genericUriString()), + did: /*#__PURE__*/ v.didString(), + followersCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), + followsCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), + handle: /*#__PURE__*/ v.handleString(), + get viewer() { + return /*#__PURE__*/ v.optional(viewerStateSchema); + }, +}); +const _viewerStateSchema = /*#__PURE__*/ v.object({ + $type: /*#__PURE__*/ v.optional( + /*#__PURE__*/ v.literal("sh.tangled.actor.defs#viewerState"), + ), + followedBy: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), + following: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), +}); + +type profileViewBasic$schematype = typeof _profileViewBasicSchema; +type profileViewDetailed$schematype = typeof _profileViewDetailedSchema; +type viewerState$schematype = typeof _viewerStateSchema; + +export interface profileViewBasicSchema extends profileViewBasic$schematype {} +export interface profileViewDetailedSchema extends profileViewDetailed$schematype {} +export interface viewerStateSchema extends viewerState$schematype {} + +export const profileViewBasicSchema = + _profileViewBasicSchema as profileViewBasicSchema; +export const profileViewDetailedSchema = + _profileViewDetailedSchema as profileViewDetailedSchema; +export const viewerStateSchema = _viewerStateSchema as viewerStateSchema; + +export interface ProfileViewBasic extends v.InferInput< + typeof profileViewBasicSchema +> {} +export interface ProfileViewDetailed extends v.InferInput< + typeof profileViewDetailedSchema +> {} +export interface ViewerState extends v.InferInput {} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/actor/getProfile.ts b/web/src/lib/api/lexicons/types/sh/tangled/actor/getProfile.ts new file mode 100644 index 00000000..c039c64a --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/actor/getProfile.ts @@ -0,0 +1,38 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.actor.getProfile", { + params: /*#__PURE__*/ v.object({ + /** + * AT-URI of the sh.tangled.actor.profile record to fetch. + */ + actor: /*#__PURE__*/ v.resourceUriString(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), + uri: /*#__PURE__*/ v.resourceUriString(), + /** + * Embedded sh.tangled.actor.profile record. + */ + value: /*#__PURE__*/ v.unknown(), + }), + }, +}); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.actor.getProfile": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/actor/getProfiles.ts b/web/src/lib/api/lexicons/types/sh/tangled/actor/getProfiles.ts new file mode 100644 index 00000000..8d684df2 --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/actor/getProfiles.ts @@ -0,0 +1,56 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.actor.getProfiles", { + params: /*#__PURE__*/ v.object({ + /** + * AT-URIs of the sh.tangled.actor.profile records to fetch. At most 50 per request. + * @minLength 1 + * @maxLength 50 + */ + actors: /*#__PURE__*/ v.constrain( + /*#__PURE__*/ v.array(/*#__PURE__*/ v.resourceUriString()), + [/*#__PURE__*/ v.arrayLength(1, 50)], + ), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + get items() { + return /*#__PURE__*/ v.array(recordViewSchema); + }, + }), + }, +}); +const _recordViewSchema = /*#__PURE__*/ v.object({ + $type: /*#__PURE__*/ v.optional( + /*#__PURE__*/ v.literal("sh.tangled.actor.getProfiles#recordView"), + ), + cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), + uri: /*#__PURE__*/ v.resourceUriString(), + /** + * Embedded sh.tangled.actor.profile record. + */ + value: /*#__PURE__*/ v.unknown(), +}); + +type main$schematype = typeof _mainSchema; +type recordView$schematype = typeof _recordViewSchema; + +export interface mainSchema extends main$schematype {} +export interface recordViewSchema extends recordView$schematype {} + +export const mainSchema = _mainSchema as mainSchema; +export const recordViewSchema = _recordViewSchema as recordViewSchema; + +export interface RecordView extends v.InferInput {} + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.actor.getProfiles": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/ci/queryPipelines.ts b/web/src/lib/api/lexicons/types/sh/tangled/ci/queryPipelines.ts index 78e1819f..7b702b02 100644 --- a/web/src/lib/api/lexicons/types/sh/tangled/ci/queryPipelines.ts +++ b/web/src/lib/api/lexicons/types/sh/tangled/ci/queryPipelines.ts @@ -15,6 +15,14 @@ const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.ci.queryPipelines", { * Pagination cursor */ cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), + /** + * Filter pipelines by trigger kind. When provided, pipelines matching any listed kind are returned; when omitted, every kind is returned. + */ + kinds: /*#__PURE__*/ v.optional( + /*#__PURE__*/ v.array( + /*#__PURE__*/ v.literalEnum(["manual", "pull_request", "push"]), + ), + ), /** * Maximum number of pipelines to return * @minimum 1 diff --git a/web/src/lib/api/lexicons/types/sh/tangled/feed/countComments.ts b/web/src/lib/api/lexicons/types/sh/tangled/feed/countComments.ts new file mode 100644 index 00000000..0a0642b9 --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/feed/countComments.ts @@ -0,0 +1,42 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.feed.countComments", { + params: /*#__PURE__*/ v.object({ + /** + * Record AT-URI the comments attach to. + */ + subject: /*#__PURE__*/ v.resourceUriString(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + /** + * Total number of matching records. + * @minimum 0 + */ + count: /*#__PURE__*/ v.integer(), + /** + * Number of distinct authors among the matching records. + * @minimum 0 + */ + distinctAuthors: /*#__PURE__*/ v.integer(), + }), + }, +}); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.feed.countComments": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/feed/countCommentsBy.ts b/web/src/lib/api/lexicons/types/sh/tangled/feed/countCommentsBy.ts new file mode 100644 index 00000000..63b5906d --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/feed/countCommentsBy.ts @@ -0,0 +1,42 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.feed.countCommentsBy", { + params: /*#__PURE__*/ v.object({ + /** + * Actor DID whose comment authorings to list. + */ + subject: /*#__PURE__*/ v.didString(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + /** + * Total number of matching records. + * @minimum 0 + */ + count: /*#__PURE__*/ v.integer(), + /** + * Number of distinct authors among the matching records. + * @minimum 0 + */ + distinctAuthors: /*#__PURE__*/ v.integer(), + }), + }, +}); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.feed.countCommentsBy": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/feed/countReactions.ts b/web/src/lib/api/lexicons/types/sh/tangled/feed/countReactions.ts new file mode 100644 index 00000000..8a089613 --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/feed/countReactions.ts @@ -0,0 +1,42 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.feed.countReactions", { + params: /*#__PURE__*/ v.object({ + /** + * Record AT-URI the reactions target. + */ + subject: /*#__PURE__*/ v.resourceUriString(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + /** + * Total number of matching records. + * @minimum 0 + */ + count: /*#__PURE__*/ v.integer(), + /** + * Number of distinct authors among the matching records. + * @minimum 0 + */ + distinctAuthors: /*#__PURE__*/ v.integer(), + }), + }, +}); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.feed.countReactions": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/feed/countReactionsBy.ts b/web/src/lib/api/lexicons/types/sh/tangled/feed/countReactionsBy.ts new file mode 100644 index 00000000..48ad63e0 --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/feed/countReactionsBy.ts @@ -0,0 +1,42 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.feed.countReactionsBy", { + params: /*#__PURE__*/ v.object({ + /** + * Actor DID whose reaction authorings to list. + */ + subject: /*#__PURE__*/ v.didString(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + /** + * Total number of matching records. + * @minimum 0 + */ + count: /*#__PURE__*/ v.integer(), + /** + * Number of distinct authors among the matching records. + * @minimum 0 + */ + distinctAuthors: /*#__PURE__*/ v.integer(), + }), + }, +}); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.feed.countReactionsBy": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/feed/countStars.ts b/web/src/lib/api/lexicons/types/sh/tangled/feed/countStars.ts new file mode 100644 index 00000000..f4700104 --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/feed/countStars.ts @@ -0,0 +1,42 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.feed.countStars", { + params: /*#__PURE__*/ v.object({ + /** + * Repo DID to list star edges for. + */ + subject: /*#__PURE__*/ v.string(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + /** + * Total number of matching records. + * @minimum 0 + */ + count: /*#__PURE__*/ v.integer(), + /** + * Number of distinct authors among the matching records. + * @minimum 0 + */ + distinctAuthors: /*#__PURE__*/ v.integer(), + }), + }, +}); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.feed.countStars": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/feed/countStarsBy.ts b/web/src/lib/api/lexicons/types/sh/tangled/feed/countStarsBy.ts new file mode 100644 index 00000000..6b27d401 --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/feed/countStarsBy.ts @@ -0,0 +1,42 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.feed.countStarsBy", { + params: /*#__PURE__*/ v.object({ + /** + * Actor DID whose star authorings to list. + */ + subject: /*#__PURE__*/ v.didString(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + /** + * Total number of matching records. + * @minimum 0 + */ + count: /*#__PURE__*/ v.integer(), + /** + * Number of distinct authors among the matching records. + * @minimum 0 + */ + distinctAuthors: /*#__PURE__*/ v.integer(), + }), + }, +}); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.feed.countStarsBy": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/feed/getTimeline.ts b/web/src/lib/api/lexicons/types/sh/tangled/feed/getTimeline.ts new file mode 100644 index 00000000..2e203664 --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/feed/getTimeline.ts @@ -0,0 +1,129 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; +import * as ShTangledActorDefs from "../actor/defs.js"; +import * as ShTangledRepoDefs from "../repo/defs.js"; + +const _followEventSchema = /*#__PURE__*/ v.object({ + $type: /*#__PURE__*/ v.optional( + /*#__PURE__*/ v.literal("sh.tangled.feed.getTimeline#followEvent"), + ), + get actor() { + return ShTangledActorDefs.profileViewBasicSchema; + }, + cid: /*#__PURE__*/ v.cidString(), + get subject() { + return ShTangledActorDefs.profileViewDetailedSchema; + }, + uri: /*#__PURE__*/ v.resourceUriString(), +}); +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.feed.getTimeline", { + params: /*#__PURE__*/ v.object({ + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), + followingOnly: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), + /** + * @minimum 1 + * @maximum 100 + * @default 50 + */ + limit: /*#__PURE__*/ v.optional( + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [ + /*#__PURE__*/ v.integerRange(1, 100), + ]), + 50, + ), + /** + * TODO: deprecate this and use auth instead. + */ + viewer: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), + get feed() { + return /*#__PURE__*/ v.array(timelineItemSchema); + }, + }), + }, +}); +const _repoEventSchema = /*#__PURE__*/ v.object({ + $type: /*#__PURE__*/ v.optional( + /*#__PURE__*/ v.literal("sh.tangled.feed.getTimeline#repoEvent"), + ), + cid: /*#__PURE__*/ v.cidString(), + get repo() { + return ShTangledRepoDefs.repoViewBasicSchema; + }, + /** + * Fork parent, present only if this repo is a fork. + */ + get source() { + return /*#__PURE__*/ v.optional(ShTangledRepoDefs.repoViewBasicSchema); + }, + uri: /*#__PURE__*/ v.resourceUriString(), +}); +const _starEventSchema = /*#__PURE__*/ v.object({ + $type: /*#__PURE__*/ v.optional( + /*#__PURE__*/ v.literal("sh.tangled.feed.getTimeline#starEvent"), + ), + /** + * Who starred. + */ + get actor() { + return ShTangledActorDefs.profileViewBasicSchema; + }, + cid: /*#__PURE__*/ v.cidString(), + /** + * The starred repo. + */ + get repo() { + return ShTangledRepoDefs.repoViewBasicSchema; + }, + uri: /*#__PURE__*/ v.resourceUriString(), +}); +const _timelineItemSchema = /*#__PURE__*/ v.object({ + $type: /*#__PURE__*/ v.optional( + /*#__PURE__*/ v.literal("sh.tangled.feed.getTimeline#timelineItem"), + ), + get event() { + return /*#__PURE__*/ v.variant([ + followEventSchema, + repoEventSchema, + starEventSchema, + ]); + }, + eventAt: /*#__PURE__*/ v.datetimeString(), +}); + +type followEvent$schematype = typeof _followEventSchema; +type main$schematype = typeof _mainSchema; +type repoEvent$schematype = typeof _repoEventSchema; +type starEvent$schematype = typeof _starEventSchema; +type timelineItem$schematype = typeof _timelineItemSchema; + +export interface followEventSchema extends followEvent$schematype {} +export interface mainSchema extends main$schematype {} +export interface repoEventSchema extends repoEvent$schematype {} +export interface starEventSchema extends starEvent$schematype {} +export interface timelineItemSchema extends timelineItem$schematype {} + +export const followEventSchema = _followEventSchema as followEventSchema; +export const mainSchema = _mainSchema as mainSchema; +export const repoEventSchema = _repoEventSchema as repoEventSchema; +export const starEventSchema = _starEventSchema as starEventSchema; +export const timelineItemSchema = _timelineItemSchema as timelineItemSchema; + +export interface FollowEvent extends v.InferInput {} +export interface RepoEvent extends v.InferInput {} +export interface StarEvent extends v.InferInput {} +export interface TimelineItem extends v.InferInput {} + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.feed.getTimeline": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/feed/listComments.ts b/web/src/lib/api/lexicons/types/sh/tangled/feed/listComments.ts index 739d4136..2b11e76a 100644 --- a/web/src/lib/api/lexicons/types/sh/tangled/feed/listComments.ts +++ b/web/src/lib/api/lexicons/types/sh/tangled/feed/listComments.ts @@ -39,7 +39,7 @@ const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.feed.listComments", { "desc", ), /** - * Record AT-URI the comments are attached to. + * Record AT-URI the comments attach to. */ subject: /*#__PURE__*/ v.resourceUriString(), }), diff --git a/web/src/lib/api/lexicons/types/sh/tangled/git/countRefUpdates.ts b/web/src/lib/api/lexicons/types/sh/tangled/git/countRefUpdates.ts new file mode 100644 index 00000000..8306704d --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/git/countRefUpdates.ts @@ -0,0 +1,42 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.git.countRefUpdates", { + params: /*#__PURE__*/ v.object({ + /** + * Repo DID whose ref-update records to list. + */ + subject: /*#__PURE__*/ v.didString(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + /** + * Total number of matching records. + * @minimum 0 + */ + count: /*#__PURE__*/ v.integer(), + /** + * Number of distinct authors among the matching records. + * @minimum 0 + */ + distinctAuthors: /*#__PURE__*/ v.integer(), + }), + }, +}); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.git.countRefUpdates": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/git/countRefUpdatesBy.ts b/web/src/lib/api/lexicons/types/sh/tangled/git/countRefUpdatesBy.ts new file mode 100644 index 00000000..77c3c5dd --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/git/countRefUpdatesBy.ts @@ -0,0 +1,42 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.git.countRefUpdatesBy", { + params: /*#__PURE__*/ v.object({ + /** + * Actor DID whose ref-update authorings to list. + */ + subject: /*#__PURE__*/ v.didString(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + /** + * Total number of matching records. + * @minimum 0 + */ + count: /*#__PURE__*/ v.integer(), + /** + * Number of distinct authors among the matching records. + * @minimum 0 + */ + distinctAuthors: /*#__PURE__*/ v.integer(), + }), + }, +}); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.git.countRefUpdatesBy": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/graph/countFollows.ts b/web/src/lib/api/lexicons/types/sh/tangled/graph/countFollows.ts new file mode 100644 index 00000000..59aa02db --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/graph/countFollows.ts @@ -0,0 +1,42 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.graph.countFollows", { + params: /*#__PURE__*/ v.object({ + /** + * Followee DID whose inbound follows to list. + */ + subject: /*#__PURE__*/ v.didString(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + /** + * Total number of matching records. + * @minimum 0 + */ + count: /*#__PURE__*/ v.integer(), + /** + * Number of distinct authors among the matching records. + * @minimum 0 + */ + distinctAuthors: /*#__PURE__*/ v.integer(), + }), + }, +}); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.graph.countFollows": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/graph/countFollowsBy.ts b/web/src/lib/api/lexicons/types/sh/tangled/graph/countFollowsBy.ts new file mode 100644 index 00000000..99722df2 --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/graph/countFollowsBy.ts @@ -0,0 +1,42 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.graph.countFollowsBy", { + params: /*#__PURE__*/ v.object({ + /** + * Actor DID whose follow authorings to list. + */ + subject: /*#__PURE__*/ v.didString(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + /** + * Total number of matching records. + * @minimum 0 + */ + count: /*#__PURE__*/ v.integer(), + /** + * Number of distinct authors among the matching records. + * @minimum 0 + */ + distinctAuthors: /*#__PURE__*/ v.integer(), + }), + }, +}); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.graph.countFollowsBy": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/graph/countVouches.ts b/web/src/lib/api/lexicons/types/sh/tangled/graph/countVouches.ts new file mode 100644 index 00000000..af1d300f --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/graph/countVouches.ts @@ -0,0 +1,42 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.graph.countVouches", { + params: /*#__PURE__*/ v.object({ + /** + * Vouchee DID whose inbound vouches to list. + */ + subject: /*#__PURE__*/ v.didString(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + /** + * Total number of matching records. + * @minimum 0 + */ + count: /*#__PURE__*/ v.integer(), + /** + * Number of distinct authors among the matching records. + * @minimum 0 + */ + distinctAuthors: /*#__PURE__*/ v.integer(), + }), + }, +}); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.graph.countVouches": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/graph/countVouchesBy.ts b/web/src/lib/api/lexicons/types/sh/tangled/graph/countVouchesBy.ts new file mode 100644 index 00000000..b9b8345a --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/graph/countVouchesBy.ts @@ -0,0 +1,42 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.graph.countVouchesBy", { + params: /*#__PURE__*/ v.object({ + /** + * Actor DID whose vouch authorings to list. + */ + subject: /*#__PURE__*/ v.didString(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + /** + * Total number of matching records. + * @minimum 0 + */ + count: /*#__PURE__*/ v.integer(), + /** + * Number of distinct authors among the matching records. + * @minimum 0 + */ + distinctAuthors: /*#__PURE__*/ v.integer(), + }), + }, +}); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.graph.countVouchesBy": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/knot/countKnots.ts b/web/src/lib/api/lexicons/types/sh/tangled/knot/countKnots.ts new file mode 100644 index 00000000..7dc290c4 --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/knot/countKnots.ts @@ -0,0 +1,42 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.knot.countKnots", { + params: /*#__PURE__*/ v.object({ + /** + * Owner DID whose knot records to list. + */ + subject: /*#__PURE__*/ v.didString(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + /** + * Total number of matching records. + * @minimum 0 + */ + count: /*#__PURE__*/ v.integer(), + /** + * Number of distinct authors among the matching records. + * @minimum 0 + */ + distinctAuthors: /*#__PURE__*/ v.integer(), + }), + }, +}); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.knot.countKnots": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/knot/countMembers.ts b/web/src/lib/api/lexicons/types/sh/tangled/knot/countMembers.ts new file mode 100644 index 00000000..9fb265be --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/knot/countMembers.ts @@ -0,0 +1,42 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.knot.countMembers", { + params: /*#__PURE__*/ v.object({ + /** + * Knot identifier whose member records to list. + */ + subject: /*#__PURE__*/ v.string(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + /** + * Total number of matching records. + * @minimum 0 + */ + count: /*#__PURE__*/ v.integer(), + /** + * Number of distinct authors among the matching records. + * @minimum 0 + */ + distinctAuthors: /*#__PURE__*/ v.integer(), + }), + }, +}); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.knot.countMembers": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/knot/countMembersBy.ts b/web/src/lib/api/lexicons/types/sh/tangled/knot/countMembersBy.ts new file mode 100644 index 00000000..f4cd5023 --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/knot/countMembersBy.ts @@ -0,0 +1,42 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.knot.countMembersBy", { + params: /*#__PURE__*/ v.object({ + /** + * Actor DID whose knot-member authorings to list. + */ + subject: /*#__PURE__*/ v.didString(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + /** + * Total number of matching records. + * @minimum 0 + */ + count: /*#__PURE__*/ v.integer(), + /** + * Number of distinct authors among the matching records. + * @minimum 0 + */ + distinctAuthors: /*#__PURE__*/ v.integer(), + }), + }, +}); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.knot.countMembersBy": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/label/countDefinitions.ts b/web/src/lib/api/lexicons/types/sh/tangled/label/countDefinitions.ts new file mode 100644 index 00000000..52c4a6fe --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/label/countDefinitions.ts @@ -0,0 +1,42 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.label.countDefinitions", { + params: /*#__PURE__*/ v.object({ + /** + * Scope identifier whose label definitions to list. + */ + subject: /*#__PURE__*/ v.string(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + /** + * Total number of matching records. + * @minimum 0 + */ + count: /*#__PURE__*/ v.integer(), + /** + * Number of distinct authors among the matching records. + * @minimum 0 + */ + distinctAuthors: /*#__PURE__*/ v.integer(), + }), + }, +}); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.label.countDefinitions": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/label/countOps.ts b/web/src/lib/api/lexicons/types/sh/tangled/label/countOps.ts new file mode 100644 index 00000000..6cd3cc96 --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/label/countOps.ts @@ -0,0 +1,42 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.label.countOps", { + params: /*#__PURE__*/ v.object({ + /** + * Scope identifier whose label op records to list. + */ + subject: /*#__PURE__*/ v.string(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + /** + * Total number of matching records. + * @minimum 0 + */ + count: /*#__PURE__*/ v.integer(), + /** + * Number of distinct authors among the matching records. + * @minimum 0 + */ + distinctAuthors: /*#__PURE__*/ v.integer(), + }), + }, +}); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.label.countOps": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/label/countOpsBy.ts b/web/src/lib/api/lexicons/types/sh/tangled/label/countOpsBy.ts new file mode 100644 index 00000000..4910901f --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/label/countOpsBy.ts @@ -0,0 +1,42 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.label.countOpsBy", { + params: /*#__PURE__*/ v.object({ + /** + * Actor DID whose label-op authorings to list. + */ + subject: /*#__PURE__*/ v.didString(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + /** + * Total number of matching records. + * @minimum 0 + */ + count: /*#__PURE__*/ v.integer(), + /** + * Number of distinct authors among the matching records. + * @minimum 0 + */ + distinctAuthors: /*#__PURE__*/ v.integer(), + }), + }, +}); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.label.countOpsBy": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/pipeline/countPipelines.ts b/web/src/lib/api/lexicons/types/sh/tangled/pipeline/countPipelines.ts new file mode 100644 index 00000000..224204a0 --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/pipeline/countPipelines.ts @@ -0,0 +1,45 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query( + "sh.tangled.pipeline.countPipelines", + { + params: /*#__PURE__*/ v.object({ + /** + * Repo or spindle identifier whose pipeline records to list. + */ + subject: /*#__PURE__*/ v.string(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + /** + * Total number of matching records. + * @minimum 0 + */ + count: /*#__PURE__*/ v.integer(), + /** + * Number of distinct authors among the matching records. + * @minimum 0 + */ + distinctAuthors: /*#__PURE__*/ v.integer(), + }), + }, + }, +); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.pipeline.countPipelines": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/pipeline/countPipelinesBy.ts b/web/src/lib/api/lexicons/types/sh/tangled/pipeline/countPipelinesBy.ts new file mode 100644 index 00000000..1613a3a4 --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/pipeline/countPipelinesBy.ts @@ -0,0 +1,45 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query( + "sh.tangled.pipeline.countPipelinesBy", + { + params: /*#__PURE__*/ v.object({ + /** + * Actor DID whose pipeline authorings to list. + */ + subject: /*#__PURE__*/ v.didString(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + /** + * Total number of matching records. + * @minimum 0 + */ + count: /*#__PURE__*/ v.integer(), + /** + * Number of distinct authors among the matching records. + * @minimum 0 + */ + distinctAuthors: /*#__PURE__*/ v.integer(), + }), + }, + }, +); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.pipeline.countPipelinesBy": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/pipeline/countStatuses.ts b/web/src/lib/api/lexicons/types/sh/tangled/pipeline/countStatuses.ts new file mode 100644 index 00000000..dc6b0b92 --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/pipeline/countStatuses.ts @@ -0,0 +1,42 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.pipeline.countStatuses", { + params: /*#__PURE__*/ v.object({ + /** + * Pipeline AT-URI whose status records to list. + */ + subject: /*#__PURE__*/ v.resourceUriString(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + /** + * Total number of matching records. + * @minimum 0 + */ + count: /*#__PURE__*/ v.integer(), + /** + * Number of distinct authors among the matching records. + * @minimum 0 + */ + distinctAuthors: /*#__PURE__*/ v.integer(), + }), + }, +}); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.pipeline.countStatuses": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/pipeline/countStatusesBy.ts b/web/src/lib/api/lexicons/types/sh/tangled/pipeline/countStatusesBy.ts new file mode 100644 index 00000000..ee021cef --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/pipeline/countStatusesBy.ts @@ -0,0 +1,45 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query( + "sh.tangled.pipeline.countStatusesBy", + { + params: /*#__PURE__*/ v.object({ + /** + * Actor DID whose pipeline-status authorings to list. + */ + subject: /*#__PURE__*/ v.didString(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + /** + * Total number of matching records. + * @minimum 0 + */ + count: /*#__PURE__*/ v.integer(), + /** + * Number of distinct authors among the matching records. + * @minimum 0 + */ + distinctAuthors: /*#__PURE__*/ v.integer(), + }), + }, + }, +); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.pipeline.countStatusesBy": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/publicKey/listKeys.ts b/web/src/lib/api/lexicons/types/sh/tangled/publicKey/listKeys.ts deleted file mode 100644 index 88509817..00000000 --- a/web/src/lib/api/lexicons/types/sh/tangled/publicKey/listKeys.ts +++ /dev/null @@ -1,75 +0,0 @@ -import type {} from "@atcute/lexicons"; -import * as v from "@atcute/lexicons/validations"; -import type {} from "@atcute/lexicons/ambient"; - -const _listItemSchema = /*#__PURE__*/ v.object({ - $type: /*#__PURE__*/ v.optional( - /*#__PURE__*/ v.literal("sh.tangled.publicKey.listKeys#listItem"), - ), - cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), - uri: /*#__PURE__*/ v.resourceUriString(), - /** - * Embedded sh.tangled.publicKey record - */ - value: /*#__PURE__*/ v.unknown(), -}); -const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.publicKey.listKeys", { - params: /*#__PURE__*/ v.object({ - /** - * Pagination cursor - */ - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), - /** - * @minimum 1 - * @maximum 1000 - * @default 50 - */ - limit: /*#__PURE__*/ v.optional( - /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [ - /*#__PURE__*/ v.integerRange(1, 1000), - ]), - 50, - ), - /** - * Sort direction by createdAt. - * @default "desc" - */ - order: /*#__PURE__*/ v.optional( - /*#__PURE__*/ v.string<"asc" | "desc" | (string & {})>(), - "desc", - ), - /** - * Owner DID whose public-key records to list. - */ - subject: /*#__PURE__*/ v.didString(), - }), - output: { - type: "lex", - schema: /*#__PURE__*/ v.object({ - cursor: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), - get items() { - return /*#__PURE__*/ v.array(listItemSchema); - }, - }), - }, -}); - -type listItem$schematype = typeof _listItemSchema; -type main$schematype = typeof _mainSchema; - -export interface listItemSchema extends listItem$schematype {} -export interface mainSchema extends main$schematype {} - -export const listItemSchema = _listItemSchema as listItemSchema; -export const mainSchema = _mainSchema as mainSchema; - -export interface ListItem extends v.InferInput {} - -export interface $params extends v.InferInput {} -export interface $output extends v.InferXRPCBodyInput {} - -declare module "@atcute/lexicons/ambient" { - interface XRPCQueries { - "sh.tangled.publicKey.listKeys": mainSchema; - } -} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/repo/countArtifacts.ts b/web/src/lib/api/lexicons/types/sh/tangled/repo/countArtifacts.ts new file mode 100644 index 00000000..293b4238 --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/repo/countArtifacts.ts @@ -0,0 +1,42 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.repo.countArtifacts", { + params: /*#__PURE__*/ v.object({ + /** + * Repo or release identifier whose artifacts to list. + */ + subject: /*#__PURE__*/ v.string(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + /** + * Total number of matching records. + * @minimum 0 + */ + count: /*#__PURE__*/ v.integer(), + /** + * Number of distinct authors among the matching records. + * @minimum 0 + */ + distinctAuthors: /*#__PURE__*/ v.integer(), + }), + }, +}); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.repo.countArtifacts": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/repo/countArtifactsBy.ts b/web/src/lib/api/lexicons/types/sh/tangled/repo/countArtifactsBy.ts new file mode 100644 index 00000000..b3bd9df1 --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/repo/countArtifactsBy.ts @@ -0,0 +1,42 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.repo.countArtifactsBy", { + params: /*#__PURE__*/ v.object({ + /** + * Actor DID whose artifact authorings to list. + */ + subject: /*#__PURE__*/ v.didString(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + /** + * Total number of matching records. + * @minimum 0 + */ + count: /*#__PURE__*/ v.integer(), + /** + * Number of distinct authors among the matching records. + * @minimum 0 + */ + distinctAuthors: /*#__PURE__*/ v.integer(), + }), + }, +}); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.repo.countArtifactsBy": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/repo/countCollaborators.ts b/web/src/lib/api/lexicons/types/sh/tangled/repo/countCollaborators.ts new file mode 100644 index 00000000..cfa3e497 --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/repo/countCollaborators.ts @@ -0,0 +1,45 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query( + "sh.tangled.repo.countCollaborators", + { + params: /*#__PURE__*/ v.object({ + /** + * Repo DID whose collaborator records to list. + */ + subject: /*#__PURE__*/ v.didString(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + /** + * Total number of matching records. + * @minimum 0 + */ + count: /*#__PURE__*/ v.integer(), + /** + * Number of distinct authors among the matching records. + * @minimum 0 + */ + distinctAuthors: /*#__PURE__*/ v.integer(), + }), + }, + }, +); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.repo.countCollaborators": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/repo/countCollaboratorsBy.ts b/web/src/lib/api/lexicons/types/sh/tangled/repo/countCollaboratorsBy.ts new file mode 100644 index 00000000..b3dcb204 --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/repo/countCollaboratorsBy.ts @@ -0,0 +1,45 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query( + "sh.tangled.repo.countCollaboratorsBy", + { + params: /*#__PURE__*/ v.object({ + /** + * Actor DID whose collaborator authorings to list. + */ + subject: /*#__PURE__*/ v.didString(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + /** + * Total number of matching records. + * @minimum 0 + */ + count: /*#__PURE__*/ v.integer(), + /** + * Number of distinct authors among the matching records. + * @minimum 0 + */ + distinctAuthors: /*#__PURE__*/ v.integer(), + }), + }, + }, +); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.repo.countCollaboratorsBy": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/repo/countIssues.ts b/web/src/lib/api/lexicons/types/sh/tangled/repo/countIssues.ts new file mode 100644 index 00000000..cd316b90 --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/repo/countIssues.ts @@ -0,0 +1,42 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.repo.countIssues", { + params: /*#__PURE__*/ v.object({ + /** + * Repo DID to list issues for + */ + subject: /*#__PURE__*/ v.didString(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + /** + * Total number of matching records. + * @minimum 0 + */ + count: /*#__PURE__*/ v.integer(), + /** + * Number of distinct authors among the matching records. + * @minimum 0 + */ + distinctAuthors: /*#__PURE__*/ v.integer(), + }), + }, +}); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.repo.countIssues": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/repo/countIssuesBy.ts b/web/src/lib/api/lexicons/types/sh/tangled/repo/countIssuesBy.ts new file mode 100644 index 00000000..5f1cb186 --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/repo/countIssuesBy.ts @@ -0,0 +1,42 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.repo.countIssuesBy", { + params: /*#__PURE__*/ v.object({ + /** + * Actor DID whose issue authorings to list + */ + subject: /*#__PURE__*/ v.didString(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + /** + * Total number of matching records. + * @minimum 0 + */ + count: /*#__PURE__*/ v.integer(), + /** + * Number of distinct authors among the matching records. + * @minimum 0 + */ + distinctAuthors: /*#__PURE__*/ v.integer(), + }), + }, +}); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.repo.countIssuesBy": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/repo/countPulls.ts b/web/src/lib/api/lexicons/types/sh/tangled/repo/countPulls.ts new file mode 100644 index 00000000..f61d54a3 --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/repo/countPulls.ts @@ -0,0 +1,42 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.repo.countPulls", { + params: /*#__PURE__*/ v.object({ + /** + * Repo DID to list pulls for + */ + subject: /*#__PURE__*/ v.didString(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + /** + * Total number of matching records. + * @minimum 0 + */ + count: /*#__PURE__*/ v.integer(), + /** + * Number of distinct authors among the matching records. + * @minimum 0 + */ + distinctAuthors: /*#__PURE__*/ v.integer(), + }), + }, +}); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.repo.countPulls": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/repo/countPullsBy.ts b/web/src/lib/api/lexicons/types/sh/tangled/repo/countPullsBy.ts new file mode 100644 index 00000000..ea54429c --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/repo/countPullsBy.ts @@ -0,0 +1,42 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.repo.countPullsBy", { + params: /*#__PURE__*/ v.object({ + /** + * Actor DID whose pull authorings to list + */ + subject: /*#__PURE__*/ v.didString(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + /** + * Total number of matching records. + * @minimum 0 + */ + count: /*#__PURE__*/ v.integer(), + /** + * Number of distinct authors among the matching records. + * @minimum 0 + */ + distinctAuthors: /*#__PURE__*/ v.integer(), + }), + }, +}); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.repo.countPullsBy": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/repo/countRepos.ts b/web/src/lib/api/lexicons/types/sh/tangled/repo/countRepos.ts new file mode 100644 index 00000000..a9a87e86 --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/repo/countRepos.ts @@ -0,0 +1,42 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.repo.countRepos", { + params: /*#__PURE__*/ v.object({ + /** + * Owner DID whose repo records to list. + */ + subject: /*#__PURE__*/ v.didString(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + /** + * Total number of matching records. + * @minimum 0 + */ + count: /*#__PURE__*/ v.integer(), + /** + * Number of distinct authors among the matching records. + * @minimum 0 + */ + distinctAuthors: /*#__PURE__*/ v.integer(), + }), + }, +}); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.repo.countRepos": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/repo/defs.ts b/web/src/lib/api/lexicons/types/sh/tangled/repo/defs.ts new file mode 100644 index 00000000..b956a7df --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/repo/defs.ts @@ -0,0 +1,41 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import * as ShTangledActorDefs from "../actor/defs.js"; + +const _repoViewBasicSchema = /*#__PURE__*/ v.object({ + $type: /*#__PURE__*/ v.optional( + /*#__PURE__*/ v.literal("sh.tangled.repo.defs#repoViewBasic"), + ), + createdAt: /*#__PURE__*/ v.datetimeString(), + description: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), + did: /*#__PURE__*/ v.didString(), + isStarred: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.boolean()), + get owner() { + return ShTangledActorDefs.profileViewBasicSchema; + }, + slug: /*#__PURE__*/ v.string(), + starCount: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.integer()), + get viewer() { + return /*#__PURE__*/ v.optional(viewerStateSchema); + }, +}); +const _viewerStateSchema = /*#__PURE__*/ v.object({ + $type: /*#__PURE__*/ v.optional( + /*#__PURE__*/ v.literal("sh.tangled.repo.defs#viewerState"), + ), + star: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.resourceUriString()), +}); + +type repoViewBasic$schematype = typeof _repoViewBasicSchema; +type viewerState$schematype = typeof _viewerStateSchema; + +export interface repoViewBasicSchema extends repoViewBasic$schematype {} +export interface viewerStateSchema extends viewerState$schematype {} + +export const repoViewBasicSchema = _repoViewBasicSchema as repoViewBasicSchema; +export const viewerStateSchema = _viewerStateSchema as viewerStateSchema; + +export interface RepoViewBasic extends v.InferInput< + typeof repoViewBasicSchema +> {} +export interface ViewerState extends v.InferInput {} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/repo/forkSync.ts b/web/src/lib/api/lexicons/types/sh/tangled/repo/forkSync.ts index 49ca762e..361aa4a1 100644 --- a/web/src/lib/api/lexicons/types/sh/tangled/repo/forkSync.ts +++ b/web/src/lib/api/lexicons/types/sh/tangled/repo/forkSync.ts @@ -19,6 +19,10 @@ const _mainSchema = /*#__PURE__*/ v.procedure("sh.tangled.repo.forkSync", { * Name of the forked repository */ name: /*#__PURE__*/ v.string(), + /** + * DID of the repository + */ + repo: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), /** * AT-URI of the source repository */ diff --git a/web/src/lib/api/lexicons/types/sh/tangled/repo/getIssue.ts b/web/src/lib/api/lexicons/types/sh/tangled/repo/getIssue.ts new file mode 100644 index 00000000..3d379c80 --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/repo/getIssue.ts @@ -0,0 +1,38 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.repo.getIssue", { + params: /*#__PURE__*/ v.object({ + /** + * AT-URI of the sh.tangled.repo.issue record to fetch. + */ + issue: /*#__PURE__*/ v.resourceUriString(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), + uri: /*#__PURE__*/ v.resourceUriString(), + /** + * Embedded sh.tangled.repo.issue record. + */ + value: /*#__PURE__*/ v.unknown(), + }), + }, +}); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.repo.getIssue": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/repo/getIssues.ts b/web/src/lib/api/lexicons/types/sh/tangled/repo/getIssues.ts new file mode 100644 index 00000000..cf59e77c --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/repo/getIssues.ts @@ -0,0 +1,56 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.repo.getIssues", { + params: /*#__PURE__*/ v.object({ + /** + * AT-URIs of the sh.tangled.repo.issue records to fetch. At most 50 per request. + * @minLength 1 + * @maxLength 50 + */ + issues: /*#__PURE__*/ v.constrain( + /*#__PURE__*/ v.array(/*#__PURE__*/ v.resourceUriString()), + [/*#__PURE__*/ v.arrayLength(1, 50)], + ), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + get items() { + return /*#__PURE__*/ v.array(recordViewSchema); + }, + }), + }, +}); +const _recordViewSchema = /*#__PURE__*/ v.object({ + $type: /*#__PURE__*/ v.optional( + /*#__PURE__*/ v.literal("sh.tangled.repo.getIssues#recordView"), + ), + cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), + uri: /*#__PURE__*/ v.resourceUriString(), + /** + * Embedded sh.tangled.repo.issue record. + */ + value: /*#__PURE__*/ v.unknown(), +}); + +type main$schematype = typeof _mainSchema; +type recordView$schematype = typeof _recordViewSchema; + +export interface mainSchema extends main$schematype {} +export interface recordViewSchema extends recordView$schematype {} + +export const mainSchema = _mainSchema as mainSchema; +export const recordViewSchema = _recordViewSchema as recordViewSchema; + +export interface RecordView extends v.InferInput {} + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.repo.getIssues": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/repo/getPull.ts b/web/src/lib/api/lexicons/types/sh/tangled/repo/getPull.ts new file mode 100644 index 00000000..185ae9eb --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/repo/getPull.ts @@ -0,0 +1,38 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.repo.getPull", { + params: /*#__PURE__*/ v.object({ + /** + * AT-URI of the sh.tangled.repo.pull record to fetch. + */ + pull: /*#__PURE__*/ v.resourceUriString(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), + uri: /*#__PURE__*/ v.resourceUriString(), + /** + * Embedded sh.tangled.repo.pull record. + */ + value: /*#__PURE__*/ v.unknown(), + }), + }, +}); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.repo.getPull": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/repo/getPulls.ts b/web/src/lib/api/lexicons/types/sh/tangled/repo/getPulls.ts new file mode 100644 index 00000000..b2db612b --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/repo/getPulls.ts @@ -0,0 +1,56 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.repo.getPulls", { + params: /*#__PURE__*/ v.object({ + /** + * AT-URIs of the sh.tangled.repo.pull records to fetch. At most 50 per request. + * @minLength 1 + * @maxLength 50 + */ + pulls: /*#__PURE__*/ v.constrain( + /*#__PURE__*/ v.array(/*#__PURE__*/ v.resourceUriString()), + [/*#__PURE__*/ v.arrayLength(1, 50)], + ), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + get items() { + return /*#__PURE__*/ v.array(recordViewSchema); + }, + }), + }, +}); +const _recordViewSchema = /*#__PURE__*/ v.object({ + $type: /*#__PURE__*/ v.optional( + /*#__PURE__*/ v.literal("sh.tangled.repo.getPulls#recordView"), + ), + cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), + uri: /*#__PURE__*/ v.resourceUriString(), + /** + * Embedded sh.tangled.repo.pull record. + */ + value: /*#__PURE__*/ v.unknown(), +}); + +type main$schematype = typeof _mainSchema; +type recordView$schematype = typeof _recordViewSchema; + +export interface mainSchema extends main$schematype {} +export interface recordViewSchema extends recordView$schematype {} + +export const mainSchema = _mainSchema as mainSchema; +export const recordViewSchema = _recordViewSchema as recordViewSchema; + +export interface RecordView extends v.InferInput {} + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.repo.getPulls": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/repo/getRepo.ts b/web/src/lib/api/lexicons/types/sh/tangled/repo/getRepo.ts new file mode 100644 index 00000000..ae2ba692 --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/repo/getRepo.ts @@ -0,0 +1,38 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.repo.getRepo", { + params: /*#__PURE__*/ v.object({ + /** + * AT-URI of the sh.tangled.repo record to fetch. + */ + repo: /*#__PURE__*/ v.resourceUriString(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), + uri: /*#__PURE__*/ v.resourceUriString(), + /** + * Embedded sh.tangled.repo record. + */ + value: /*#__PURE__*/ v.unknown(), + }), + }, +}); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.repo.getRepo": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/repo/getRepoByRepoDid.ts b/web/src/lib/api/lexicons/types/sh/tangled/repo/getRepoByRepoDid.ts new file mode 100644 index 00000000..f9e4f3af --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/repo/getRepoByRepoDid.ts @@ -0,0 +1,38 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.repo.getRepoByRepoDid", { + params: /*#__PURE__*/ v.object({ + /** + * Repo DID whose sh.tangled.repo record to fetch. + */ + repoDid: /*#__PURE__*/ v.didString(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), + uri: /*#__PURE__*/ v.resourceUriString(), + /** + * Embedded sh.tangled.repo record. + */ + value: /*#__PURE__*/ v.unknown(), + }), + }, +}); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.repo.getRepoByRepoDid": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/repo/getRepos.ts b/web/src/lib/api/lexicons/types/sh/tangled/repo/getRepos.ts new file mode 100644 index 00000000..340d3afb --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/repo/getRepos.ts @@ -0,0 +1,56 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.repo.getRepos", { + params: /*#__PURE__*/ v.object({ + /** + * AT-URIs of the sh.tangled.repo records to fetch. At most 50 per request. + * @minLength 1 + * @maxLength 50 + */ + repos: /*#__PURE__*/ v.constrain( + /*#__PURE__*/ v.array(/*#__PURE__*/ v.resourceUriString()), + [/*#__PURE__*/ v.arrayLength(1, 50)], + ), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + get items() { + return /*#__PURE__*/ v.array(recordViewSchema); + }, + }), + }, +}); +const _recordViewSchema = /*#__PURE__*/ v.object({ + $type: /*#__PURE__*/ v.optional( + /*#__PURE__*/ v.literal("sh.tangled.repo.getRepos#recordView"), + ), + cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), + uri: /*#__PURE__*/ v.resourceUriString(), + /** + * Embedded sh.tangled.repo record. + */ + value: /*#__PURE__*/ v.unknown(), +}); + +type main$schematype = typeof _mainSchema; +type recordView$schematype = typeof _recordViewSchema; + +export interface mainSchema extends main$schematype {} +export interface recordViewSchema extends recordView$schematype {} + +export const mainSchema = _mainSchema as mainSchema; +export const recordViewSchema = _recordViewSchema as recordViewSchema; + +export interface RecordView extends v.InferInput {} + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.repo.getRepos": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/repo/issue/countStates.ts b/web/src/lib/api/lexicons/types/sh/tangled/repo/issue/countStates.ts new file mode 100644 index 00000000..e5e6c992 --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/repo/issue/countStates.ts @@ -0,0 +1,42 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.repo.issue.countStates", { + params: /*#__PURE__*/ v.object({ + /** + * Issue AT-URI whose state records to list. + */ + subject: /*#__PURE__*/ v.resourceUriString(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + /** + * Total number of matching records. + * @minimum 0 + */ + count: /*#__PURE__*/ v.integer(), + /** + * Number of distinct authors among the matching records. + * @minimum 0 + */ + distinctAuthors: /*#__PURE__*/ v.integer(), + }), + }, +}); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.repo.issue.countStates": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/repo/issue/countStatesBy.ts b/web/src/lib/api/lexicons/types/sh/tangled/repo/issue/countStatesBy.ts new file mode 100644 index 00000000..8f9d1062 --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/repo/issue/countStatesBy.ts @@ -0,0 +1,45 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query( + "sh.tangled.repo.issue.countStatesBy", + { + params: /*#__PURE__*/ v.object({ + /** + * Actor DID whose issue-state authorings to list. + */ + subject: /*#__PURE__*/ v.didString(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + /** + * Total number of matching records. + * @minimum 0 + */ + count: /*#__PURE__*/ v.integer(), + /** + * Number of distinct authors among the matching records. + * @minimum 0 + */ + distinctAuthors: /*#__PURE__*/ v.integer(), + }), + }, + }, +); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.repo.issue.countStatesBy": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/repo/merge.ts b/web/src/lib/api/lexicons/types/sh/tangled/repo/merge.ts index 3fc74527..0ae78e58 100644 --- a/web/src/lib/api/lexicons/types/sh/tangled/repo/merge.ts +++ b/web/src/lib/api/lexicons/types/sh/tangled/repo/merge.ts @@ -39,6 +39,10 @@ const _mainSchema = /*#__PURE__*/ v.procedure("sh.tangled.repo.merge", { * Patch content to merge */ patch: /*#__PURE__*/ v.string(), + /** + * DID of the repository + */ + repo: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), }), }, output: null, diff --git a/web/src/lib/api/lexicons/types/sh/tangled/repo/mergeCheck.ts b/web/src/lib/api/lexicons/types/sh/tangled/repo/mergeCheck.ts index 8030dd76..b3fad025 100644 --- a/web/src/lib/api/lexicons/types/sh/tangled/repo/mergeCheck.ts +++ b/web/src/lib/api/lexicons/types/sh/tangled/repo/mergeCheck.ts @@ -36,6 +36,10 @@ const _mainSchema = /*#__PURE__*/ v.procedure("sh.tangled.repo.mergeCheck", { * Patch or pull request to check for merge conflicts */ patch: /*#__PURE__*/ v.string(), + /** + * DID of the repository + */ + repo: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), }), }, output: { diff --git a/web/src/lib/api/lexicons/types/sh/tangled/repo/pull/countStatuses.ts b/web/src/lib/api/lexicons/types/sh/tangled/repo/pull/countStatuses.ts new file mode 100644 index 00000000..6f16b59c --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/repo/pull/countStatuses.ts @@ -0,0 +1,45 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query( + "sh.tangled.repo.pull.countStatuses", + { + params: /*#__PURE__*/ v.object({ + /** + * Pull AT-URI whose status records to list. + */ + subject: /*#__PURE__*/ v.resourceUriString(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + /** + * Total number of matching records. + * @minimum 0 + */ + count: /*#__PURE__*/ v.integer(), + /** + * Number of distinct authors among the matching records. + * @minimum 0 + */ + distinctAuthors: /*#__PURE__*/ v.integer(), + }), + }, + }, +); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.repo.pull.countStatuses": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/repo/pull/countStatusesBy.ts b/web/src/lib/api/lexicons/types/sh/tangled/repo/pull/countStatusesBy.ts new file mode 100644 index 00000000..2894f328 --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/repo/pull/countStatusesBy.ts @@ -0,0 +1,45 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query( + "sh.tangled.repo.pull.countStatusesBy", + { + params: /*#__PURE__*/ v.object({ + /** + * Actor DID whose pull-status authorings to list. + */ + subject: /*#__PURE__*/ v.didString(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + /** + * Total number of matching records. + * @minimum 0 + */ + count: /*#__PURE__*/ v.integer(), + /** + * Number of distinct authors among the matching records. + * @minimum 0 + */ + distinctAuthors: /*#__PURE__*/ v.integer(), + }), + }, + }, +); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.repo.pull.countStatusesBy": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/spindle/countMembers.ts b/web/src/lib/api/lexicons/types/sh/tangled/spindle/countMembers.ts new file mode 100644 index 00000000..29cda375 --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/spindle/countMembers.ts @@ -0,0 +1,42 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.spindle.countMembers", { + params: /*#__PURE__*/ v.object({ + /** + * Spindle identifier whose member records to list. + */ + subject: /*#__PURE__*/ v.string(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + /** + * Total number of matching records. + * @minimum 0 + */ + count: /*#__PURE__*/ v.integer(), + /** + * Number of distinct authors among the matching records. + * @minimum 0 + */ + distinctAuthors: /*#__PURE__*/ v.integer(), + }), + }, +}); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.spindle.countMembers": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/spindle/countMembersBy.ts b/web/src/lib/api/lexicons/types/sh/tangled/spindle/countMembersBy.ts new file mode 100644 index 00000000..3e709aa6 --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/spindle/countMembersBy.ts @@ -0,0 +1,42 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.spindle.countMembersBy", { + params: /*#__PURE__*/ v.object({ + /** + * Actor DID whose spindle-member authorings to list. + */ + subject: /*#__PURE__*/ v.didString(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + /** + * Total number of matching records. + * @minimum 0 + */ + count: /*#__PURE__*/ v.integer(), + /** + * Number of distinct authors among the matching records. + * @minimum 0 + */ + distinctAuthors: /*#__PURE__*/ v.integer(), + }), + }, +}); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.spindle.countMembersBy": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/spindle/countSpindles.ts b/web/src/lib/api/lexicons/types/sh/tangled/spindle/countSpindles.ts new file mode 100644 index 00000000..28ba7841 --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/spindle/countSpindles.ts @@ -0,0 +1,42 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.spindle.countSpindles", { + params: /*#__PURE__*/ v.object({ + /** + * Owner DID whose spindle records to list. + */ + subject: /*#__PURE__*/ v.didString(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + /** + * Total number of matching records. + * @minimum 0 + */ + count: /*#__PURE__*/ v.integer(), + /** + * Number of distinct authors among the matching records. + * @minimum 0 + */ + distinctAuthors: /*#__PURE__*/ v.integer(), + }), + }, +}); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.spindle.countSpindles": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/string/countStrings.ts b/web/src/lib/api/lexicons/types/sh/tangled/string/countStrings.ts new file mode 100644 index 00000000..d3a56975 --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/string/countStrings.ts @@ -0,0 +1,42 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.string.countStrings", { + params: /*#__PURE__*/ v.object({ + /** + * Scope identifier whose string records to list. + */ + subject: /*#__PURE__*/ v.string(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + /** + * Total number of matching records. + * @minimum 0 + */ + count: /*#__PURE__*/ v.integer(), + /** + * Number of distinct authors among the matching records. + * @minimum 0 + */ + distinctAuthors: /*#__PURE__*/ v.integer(), + }), + }, +}); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.string.countStrings": mainSchema; + } +} diff --git a/web/src/lib/api/lexicons/types/sh/tangled/string/getString.ts b/web/src/lib/api/lexicons/types/sh/tangled/string/getString.ts new file mode 100644 index 00000000..3d1b4531 --- /dev/null +++ b/web/src/lib/api/lexicons/types/sh/tangled/string/getString.ts @@ -0,0 +1,38 @@ +import type {} from "@atcute/lexicons"; +import * as v from "@atcute/lexicons/validations"; +import type {} from "@atcute/lexicons/ambient"; + +const _mainSchema = /*#__PURE__*/ v.query("sh.tangled.string.getString", { + params: /*#__PURE__*/ v.object({ + /** + * AT-URI of the sh.tangled.string record to fetch. + */ + string: /*#__PURE__*/ v.resourceUriString(), + }), + output: { + type: "lex", + schema: /*#__PURE__*/ v.object({ + cid: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.cidString()), + uri: /*#__PURE__*/ v.resourceUriString(), + /** + * Embedded sh.tangled.string record. + */ + value: /*#__PURE__*/ v.unknown(), + }), + }, +}); + +type main$schematype = typeof _mainSchema; + +export interface mainSchema extends main$schematype {} + +export const mainSchema = _mainSchema as mainSchema; + +export interface $params extends v.InferInput {} +export interface $output extends v.InferXRPCBodyInput {} + +declare module "@atcute/lexicons/ambient" { + interface XRPCQueries { + "sh.tangled.string.getString": mainSchema; + } +} -- 2.51.2