@atproto/api 0.20.0-next.0 → 0.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -10
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +4 -0
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +1030 -16
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +631 -7
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/embed/external.d.ts +2 -1
- package/dist/client/types/app/bsky/embed/external.d.ts.map +1 -1
- package/dist/client/types/app/bsky/embed/external.js.map +1 -1
- package/dist/client/types/chat/bsky/convo/defs.d.ts +1 -1
- package/dist/client/types/chat/bsky/convo/defs.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/convo/defs.js.map +1 -1
- package/dist/client/types/chat/bsky/group/addMembers.d.ts +1 -1
- package/dist/client/types/chat/bsky/group/addMembers.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/group/addMembers.js +3 -3
- package/dist/client/types/chat/bsky/group/addMembers.js.map +1 -1
- package/dist/client/types/chat/bsky/group/createGroup.d.ts +1 -1
- package/dist/client/types/chat/bsky/group/createGroup.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/group/createGroup.js +3 -3
- package/dist/client/types/chat/bsky/group/createGroup.js.map +1 -1
- package/dist/client/types/chat/bsky/group/listMutualGroups.d.ts +26 -0
- package/dist/client/types/chat/bsky/group/listMutualGroups.d.ts.map +1 -0
- package/dist/client/types/chat/bsky/group/listMutualGroups.js +8 -0
- package/dist/client/types/chat/bsky/group/listMutualGroups.js.map +1 -0
- package/dist/client/types/chat/bsky/moderation/getMessageContext.d.ts +5 -1
- package/dist/client/types/chat/bsky/moderation/getMessageContext.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/moderation/getMessageContext.js.map +1 -1
- package/dist/client/types/chat/bsky/moderation/subscribeModEvents.d.ts +206 -0
- package/dist/client/types/chat/bsky/moderation/subscribeModEvents.d.ts.map +1 -1
- package/dist/client/types/chat/bsky/moderation/subscribeModEvents.js +63 -0
- package/dist/client/types/chat/bsky/moderation/subscribeModEvents.js.map +1 -1
- package/dist/rich-text/detection.js +1 -1
- package/dist/rich-text/detection.js.map +1 -1
- package/jest.config.cjs +9 -2
- package/package.json +9 -8
- package/src/rich-text/detection.ts +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/src/client/index.ts +0 -6408
- package/src/client/lexicons.ts +0 -25182
- package/src/client/types/app/bsky/actor/defs.ts +0 -716
- package/src/client/types/app/bsky/actor/getPreferences.ts +0 -39
- package/src/client/types/app/bsky/actor/getProfile.ts +0 -39
- package/src/client/types/app/bsky/actor/getProfiles.ts +0 -41
- package/src/client/types/app/bsky/actor/getSuggestions.ts +0 -47
- package/src/client/types/app/bsky/actor/profile.ts +0 -52
- package/src/client/types/app/bsky/actor/putPreferences.ts +0 -39
- package/src/client/types/app/bsky/actor/searchActors.ts +0 -47
- package/src/client/types/app/bsky/actor/searchActorsTypeahead.ts +0 -45
- package/src/client/types/app/bsky/actor/status.ts +0 -46
- package/src/client/types/app/bsky/ageassurance/begin.ts +0 -80
- package/src/client/types/app/bsky/ageassurance/defs.ts +0 -303
- package/src/client/types/app/bsky/ageassurance/getConfig.ts +0 -36
- package/src/client/types/app/bsky/ageassurance/getState.ts +0 -43
- package/src/client/types/app/bsky/bookmark/createBookmark.ts +0 -50
- package/src/client/types/app/bsky/bookmark/defs.ts +0 -54
- package/src/client/types/app/bsky/bookmark/deleteBookmark.ts +0 -49
- package/src/client/types/app/bsky/bookmark/getBookmarks.ts +0 -43
- package/src/client/types/app/bsky/contact/defs.ts +0 -71
- package/src/client/types/app/bsky/contact/dismissMatch.ts +0 -59
- package/src/client/types/app/bsky/contact/getMatches.ts +0 -74
- package/src/client/types/app/bsky/contact/getSyncStatus.ts +0 -56
- package/src/client/types/app/bsky/contact/importContacts.ts +0 -86
- package/src/client/types/app/bsky/contact/removeData.ts +0 -56
- package/src/client/types/app/bsky/contact/sendNotification.ts +0 -44
- package/src/client/types/app/bsky/contact/startPhoneVerification.ts +0 -73
- package/src/client/types/app/bsky/contact/verifyPhone.ts +0 -85
- package/src/client/types/app/bsky/draft/createDraft.ts +0 -55
- package/src/client/types/app/bsky/draft/defs.ts +0 -212
- package/src/client/types/app/bsky/draft/deleteDraft.ts +0 -38
- package/src/client/types/app/bsky/draft/getDrafts.ts +0 -43
- package/src/client/types/app/bsky/draft/updateDraft.ts +0 -39
- package/src/client/types/app/bsky/embed/defs.ts +0 -32
- package/src/client/types/app/bsky/embed/external.ts +0 -84
- package/src/client/types/app/bsky/embed/images.ts +0 -86
- package/src/client/types/app/bsky/embed/record.ts +0 -146
- package/src/client/types/app/bsky/embed/recordWithMedia.ts +0 -59
- package/src/client/types/app/bsky/embed/video.ts +0 -75
- package/src/client/types/app/bsky/feed/defs.ts +0 -428
- package/src/client/types/app/bsky/feed/describeFeedGenerator.ts +0 -71
- package/src/client/types/app/bsky/feed/generator.ts +0 -51
- package/src/client/types/app/bsky/feed/getActorFeeds.ts +0 -44
- package/src/client/types/app/bsky/feed/getActorLikes.ts +0 -61
- package/src/client/types/app/bsky/feed/getAuthorFeed.ts +0 -70
- package/src/client/types/app/bsky/feed/getFeed.ts +0 -54
- package/src/client/types/app/bsky/feed/getFeedGenerator.ts +0 -46
- package/src/client/types/app/bsky/feed/getFeedGenerators.ts +0 -41
- package/src/client/types/app/bsky/feed/getFeedSkeleton.ts +0 -57
- package/src/client/types/app/bsky/feed/getLikes.ts +0 -66
- package/src/client/types/app/bsky/feed/getListFeed.ts +0 -55
- package/src/client/types/app/bsky/feed/getPostThread.ts +0 -61
- package/src/client/types/app/bsky/feed/getPosts.ts +0 -42
- package/src/client/types/app/bsky/feed/getQuotes.ts +0 -49
- package/src/client/types/app/bsky/feed/getRepostedBy.ts +0 -49
- package/src/client/types/app/bsky/feed/getSuggestedFeeds.ts +0 -43
- package/src/client/types/app/bsky/feed/getTimeline.ts +0 -45
- package/src/client/types/app/bsky/feed/like.ts +0 -40
- package/src/client/types/app/bsky/feed/post.ts +0 -117
- package/src/client/types/app/bsky/feed/postgate.ts +0 -58
- package/src/client/types/app/bsky/feed/repost.ts +0 -40
- package/src/client/types/app/bsky/feed/searchPosts.ts +0 -76
- package/src/client/types/app/bsky/feed/sendInteractions.ts +0 -43
- package/src/client/types/app/bsky/feed/threadgate.ts +0 -110
- package/src/client/types/app/bsky/graph/block.ts +0 -39
- package/src/client/types/app/bsky/graph/defs.ts +0 -206
- package/src/client/types/app/bsky/graph/follow.ts +0 -40
- package/src/client/types/app/bsky/graph/getActorStarterPacks.ts +0 -44
- package/src/client/types/app/bsky/graph/getBlocks.ts +0 -43
- package/src/client/types/app/bsky/graph/getFollowers.ts +0 -45
- package/src/client/types/app/bsky/graph/getFollows.ts +0 -45
- package/src/client/types/app/bsky/graph/getKnownFollowers.ts +0 -45
- package/src/client/types/app/bsky/graph/getList.ts +0 -46
- package/src/client/types/app/bsky/graph/getListBlocks.ts +0 -43
- package/src/client/types/app/bsky/graph/getListMutes.ts +0 -43
- package/src/client/types/app/bsky/graph/getLists.ts +0 -47
- package/src/client/types/app/bsky/graph/getListsWithMembership.ts +0 -64
- package/src/client/types/app/bsky/graph/getMutes.ts +0 -43
- package/src/client/types/app/bsky/graph/getRelationships.ts +0 -59
- package/src/client/types/app/bsky/graph/getStarterPack.ts +0 -42
- package/src/client/types/app/bsky/graph/getStarterPacks.ts +0 -41
- package/src/client/types/app/bsky/graph/getStarterPacksWithMembership.ts +0 -66
- package/src/client/types/app/bsky/graph/getSuggestedFollowsByActor.ts +0 -47
- package/src/client/types/app/bsky/graph/list.ts +0 -47
- package/src/client/types/app/bsky/graph/listblock.ts +0 -39
- package/src/client/types/app/bsky/graph/listitem.ts +0 -41
- package/src/client/types/app/bsky/graph/muteActor.ts +0 -38
- package/src/client/types/app/bsky/graph/muteActorList.ts +0 -38
- package/src/client/types/app/bsky/graph/muteThread.ts +0 -38
- package/src/client/types/app/bsky/graph/searchStarterPacks.ts +0 -45
- package/src/client/types/app/bsky/graph/starterpack.ts +0 -60
- package/src/client/types/app/bsky/graph/unmuteActor.ts +0 -38
- package/src/client/types/app/bsky/graph/unmuteActorList.ts +0 -38
- package/src/client/types/app/bsky/graph/unmuteThread.ts +0 -38
- package/src/client/types/app/bsky/graph/verification.ts +0 -44
- package/src/client/types/app/bsky/labeler/defs.ts +0 -100
- package/src/client/types/app/bsky/labeler/getServices.ts +0 -46
- package/src/client/types/app/bsky/labeler/service.ts +0 -48
- package/src/client/types/app/bsky/notification/declaration.ts +0 -38
- package/src/client/types/app/bsky/notification/defs.ts +0 -142
- package/src/client/types/app/bsky/notification/getPreferences.ts +0 -39
- package/src/client/types/app/bsky/notification/getUnreadCount.ts +0 -41
- package/src/client/types/app/bsky/notification/listActivitySubscriptions.ts +0 -43
- package/src/client/types/app/bsky/notification/listNotifications.ts +0 -88
- package/src/client/types/app/bsky/notification/putActivitySubscription.ts +0 -46
- package/src/client/types/app/bsky/notification/putPreferences.ts +0 -38
- package/src/client/types/app/bsky/notification/putPreferencesV2.ts +0 -56
- package/src/client/types/app/bsky/notification/registerPush.ts +0 -43
- package/src/client/types/app/bsky/notification/unregisterPush.ts +0 -41
- package/src/client/types/app/bsky/notification/updateSeen.ts +0 -38
- package/src/client/types/app/bsky/richtext/facet.ts +0 -97
- package/src/client/types/app/bsky/unspecced/defs.ts +0 -250
- package/src/client/types/app/bsky/unspecced/getAgeAssuranceState.ts +0 -36
- package/src/client/types/app/bsky/unspecced/getConfig.ts +0 -55
- package/src/client/types/app/bsky/unspecced/getOnboardingSuggestedStarterPacks.ts +0 -41
- package/src/client/types/app/bsky/unspecced/getOnboardingSuggestedStarterPacksSkeleton.ts +0 -42
- package/src/client/types/app/bsky/unspecced/getOnboardingSuggestedUsersSkeleton.ts +0 -48
- package/src/client/types/app/bsky/unspecced/getPopularFeedGenerators.ts +0 -44
- package/src/client/types/app/bsky/unspecced/getPostThreadOtherV2.ts +0 -61
- package/src/client/types/app/bsky/unspecced/getPostThreadV2.ts +0 -78
- package/src/client/types/app/bsky/unspecced/getSuggestedFeeds.ts +0 -41
- package/src/client/types/app/bsky/unspecced/getSuggestedFeedsSkeleton.ts +0 -42
- package/src/client/types/app/bsky/unspecced/getSuggestedOnboardingUsers.ts +0 -47
- package/src/client/types/app/bsky/unspecced/getSuggestedStarterPacks.ts +0 -41
- package/src/client/types/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.ts +0 -42
- package/src/client/types/app/bsky/unspecced/getSuggestedUsers.ts +0 -47
- package/src/client/types/app/bsky/unspecced/getSuggestedUsersForDiscover.ts +0 -43
- package/src/client/types/app/bsky/unspecced/getSuggestedUsersForDiscoverSkeleton.ts +0 -44
- package/src/client/types/app/bsky/unspecced/getSuggestedUsersForExplore.ts +0 -45
- package/src/client/types/app/bsky/unspecced/getSuggestedUsersForExploreSkeleton.ts +0 -46
- package/src/client/types/app/bsky/unspecced/getSuggestedUsersForSeeMore.ts +0 -45
- package/src/client/types/app/bsky/unspecced/getSuggestedUsersForSeeMoreSkeleton.ts +0 -46
- package/src/client/types/app/bsky/unspecced/getSuggestedUsersSkeleton.ts +0 -48
- package/src/client/types/app/bsky/unspecced/getSuggestionsSkeleton.ts +0 -53
- package/src/client/types/app/bsky/unspecced/getTaggedSuggestions.ts +0 -55
- package/src/client/types/app/bsky/unspecced/getTrendingTopics.ts +0 -44
- package/src/client/types/app/bsky/unspecced/getTrends.ts +0 -41
- package/src/client/types/app/bsky/unspecced/getTrendsSkeleton.ts +0 -43
- package/src/client/types/app/bsky/unspecced/initAgeAssurance.ts +0 -71
- package/src/client/types/app/bsky/unspecced/searchActorsSkeleton.ts +0 -62
- package/src/client/types/app/bsky/unspecced/searchPostsSkeleton.ts +0 -78
- package/src/client/types/app/bsky/unspecced/searchStarterPacksSkeleton.ts +0 -60
- package/src/client/types/app/bsky/video/defs.ts +0 -38
- package/src/client/types/app/bsky/video/getJobStatus.ts +0 -41
- package/src/client/types/app/bsky/video/getUploadLimits.ts +0 -42
- package/src/client/types/app/bsky/video/uploadVideo.ts +0 -41
- package/src/client/types/chat/bsky/actor/declaration.ts +0 -39
- package/src/client/types/chat/bsky/actor/defs.ts +0 -96
- package/src/client/types/chat/bsky/actor/deleteAccount.ts +0 -37
- package/src/client/types/chat/bsky/actor/exportAccountData.ts +0 -34
- package/src/client/types/chat/bsky/convo/acceptConvo.ts +0 -54
- package/src/client/types/chat/bsky/convo/addReaction.ts +0 -87
- package/src/client/types/chat/bsky/convo/defs.ts +0 -1058
- package/src/client/types/chat/bsky/convo/deleteMessageForSelf.ts +0 -61
- package/src/client/types/chat/bsky/convo/getConvo.ts +0 -51
- package/src/client/types/chat/bsky/convo/getConvoAvailability.ts +0 -42
- package/src/client/types/chat/bsky/convo/getConvoForMembers.ts +0 -80
- package/src/client/types/chat/bsky/convo/getConvoMembers.ts +0 -54
- package/src/client/types/chat/bsky/convo/getLog.ts +0 -71
- package/src/client/types/chat/bsky/convo/getMessages.ts +0 -62
- package/src/client/types/chat/bsky/convo/leaveConvo.ts +0 -61
- package/src/client/types/chat/bsky/convo/listConvoRequests.ts +0 -48
- package/src/client/types/chat/bsky/convo/listConvos.ts +0 -50
- package/src/client/types/chat/bsky/convo/lockConvo.ts +0 -68
- package/src/client/types/chat/bsky/convo/muteConvo.ts +0 -54
- package/src/client/types/chat/bsky/convo/removeReaction.ts +0 -79
- package/src/client/types/chat/bsky/convo/sendMessage.ts +0 -60
- package/src/client/types/chat/bsky/convo/sendMessageBatch.ts +0 -77
- package/src/client/types/chat/bsky/convo/unlockConvo.ts +0 -61
- package/src/client/types/chat/bsky/convo/unmuteConvo.ts +0 -54
- package/src/client/types/chat/bsky/convo/updateAllRead.ts +0 -44
- package/src/client/types/chat/bsky/convo/updateRead.ts +0 -55
- package/src/client/types/chat/bsky/group/addMembers.ts +0 -115
- package/src/client/types/chat/bsky/group/approveJoinRequest.ts +0 -69
- package/src/client/types/chat/bsky/group/createGroup.ts +0 -85
- package/src/client/types/chat/bsky/group/createJoinLink.ts +0 -71
- package/src/client/types/chat/bsky/group/defs.ts +0 -75
- package/src/client/types/chat/bsky/group/disableJoinLink.ts +0 -68
- package/src/client/types/chat/bsky/group/editGroup.ts +0 -69
- package/src/client/types/chat/bsky/group/editJoinLink.ts +0 -70
- package/src/client/types/chat/bsky/group/enableJoinLink.ts +0 -75
- package/src/client/types/chat/bsky/group/getJoinLinkPreview.ts +0 -51
- package/src/client/types/chat/bsky/group/listJoinRequests.ts +0 -61
- package/src/client/types/chat/bsky/group/rejectJoinRequest.ts +0 -59
- package/src/client/types/chat/bsky/group/removeMembers.ts +0 -62
- package/src/client/types/chat/bsky/group/requestJoin.ts +0 -90
- package/src/client/types/chat/bsky/moderation/getActorMetadata.ts +0 -60
- package/src/client/types/chat/bsky/moderation/getMessageContext.ts +0 -50
- package/src/client/types/chat/bsky/moderation/subscribeModEvents.ts +0 -38
- package/src/client/types/chat/bsky/moderation/updateActorAccess.ts +0 -40
- package/src/client/types/com/atproto/admin/defs.ts +0 -106
- package/src/client/types/com/atproto/admin/deleteAccount.ts +0 -38
- package/src/client/types/com/atproto/admin/disableAccountInvites.ts +0 -40
- package/src/client/types/com/atproto/admin/disableInviteCodes.ts +0 -39
- package/src/client/types/com/atproto/admin/enableAccountInvites.ts +0 -40
- package/src/client/types/com/atproto/admin/getAccountInfo.ts +0 -38
- package/src/client/types/com/atproto/admin/getAccountInfos.ts +0 -41
- package/src/client/types/com/atproto/admin/getInviteCodes.ts +0 -44
- package/src/client/types/com/atproto/admin/getSubjectStatus.ts +0 -50
- package/src/client/types/com/atproto/admin/searchAccounts.ts +0 -44
- package/src/client/types/com/atproto/admin/sendEmail.ts +0 -48
- package/src/client/types/com/atproto/admin/updateAccountEmail.ts +0 -40
- package/src/client/types/com/atproto/admin/updateAccountHandle.ts +0 -39
- package/src/client/types/com/atproto/admin/updateAccountPassword.ts +0 -39
- package/src/client/types/com/atproto/admin/updateAccountSigningKey.ts +0 -40
- package/src/client/types/com/atproto/admin/updateSubjectStatus.ts +0 -56
- package/src/client/types/com/atproto/identity/defs.ts +0 -34
- package/src/client/types/com/atproto/identity/getRecommendedDidCredentials.ts +0 -42
- package/src/client/types/com/atproto/identity/refreshIdentity.ts +0 -66
- package/src/client/types/com/atproto/identity/requestPlcOperationSignature.ts +0 -34
- package/src/client/types/com/atproto/identity/resolveDid.ts +0 -59
- package/src/client/types/com/atproto/identity/resolveHandle.ts +0 -51
- package/src/client/types/com/atproto/identity/resolveIdentity.ts +0 -63
- package/src/client/types/com/atproto/identity/signPlcOperation.ts +0 -49
- package/src/client/types/com/atproto/identity/submitPlcOperation.ts +0 -38
- package/src/client/types/com/atproto/identity/updateHandle.ts +0 -39
- package/src/client/types/com/atproto/label/defs.ts +0 -143
- package/src/client/types/com/atproto/label/queryLabels.ts +0 -47
- package/src/client/types/com/atproto/label/subscribeLabels.ts +0 -49
- package/src/client/types/com/atproto/lexicon/resolveLexicon.ts +0 -56
- package/src/client/types/com/atproto/lexicon/schema.ts +0 -38
- package/src/client/types/com/atproto/moderation/createReport.ts +0 -80
- package/src/client/types/com/atproto/moderation/defs.ts +0 -83
- package/src/client/types/com/atproto/repo/applyWrites.ts +0 -167
- package/src/client/types/com/atproto/repo/createRecord.ts +0 -68
- package/src/client/types/com/atproto/repo/defs.ts +0 -31
- package/src/client/types/com/atproto/repo/deleteRecord.ts +0 -63
- package/src/client/types/com/atproto/repo/describeRepo.ts +0 -48
- package/src/client/types/com/atproto/repo/getRecord.ts +0 -59
- package/src/client/types/com/atproto/repo/importRepo.ts +0 -35
- package/src/client/types/com/atproto/repo/listMissingBlobs.ts +0 -58
- package/src/client/types/com/atproto/repo/listRecords.ts +0 -66
- package/src/client/types/com/atproto/repo/putRecord.ts +0 -70
- package/src/client/types/com/atproto/repo/strongRef.ts +0 -31
- package/src/client/types/com/atproto/repo/uploadBlob.ts +0 -40
- package/src/client/types/com/atproto/server/activateAccount.ts +0 -34
- package/src/client/types/com/atproto/server/checkAccountStatus.ts +0 -46
- package/src/client/types/com/atproto/server/confirmEmail.ts +0 -70
- package/src/client/types/com/atproto/server/createAccount.ts +0 -115
- package/src/client/types/com/atproto/server/createAppPassword.ts +0 -72
- package/src/client/types/com/atproto/server/createInviteCode.ts +0 -44
- package/src/client/types/com/atproto/server/createInviteCodes.ts +0 -61
- package/src/client/types/com/atproto/server/createSession.ts +0 -76
- package/src/client/types/com/atproto/server/deactivateAccount.ts +0 -39
- package/src/client/types/com/atproto/server/defs.ts +0 -52
- package/src/client/types/com/atproto/server/deleteAccount.ts +0 -57
- package/src/client/types/com/atproto/server/deleteSession.ts +0 -51
- package/src/client/types/com/atproto/server/describeServer.ts +0 -77
- package/src/client/types/com/atproto/server/getAccountInviteCodes.ts +0 -53
- package/src/client/types/com/atproto/server/getServiceAuth.ts +0 -55
- package/src/client/types/com/atproto/server/getSession.ts +0 -46
- package/src/client/types/com/atproto/server/listAppPasswords.ts +0 -65
- package/src/client/types/com/atproto/server/refreshSession.ts +0 -73
- package/src/client/types/com/atproto/server/requestAccountDelete.ts +0 -34
- package/src/client/types/com/atproto/server/requestEmailConfirmation.ts +0 -34
- package/src/client/types/com/atproto/server/requestEmailUpdate.ts +0 -39
- package/src/client/types/com/atproto/server/requestPasswordReset.ts +0 -38
- package/src/client/types/com/atproto/server/reserveSigningKey.ts +0 -45
- package/src/client/types/com/atproto/server/resetPassword.ts +0 -56
- package/src/client/types/com/atproto/server/revokeAppPassword.ts +0 -38
- package/src/client/types/com/atproto/server/updateEmail.ts +0 -65
- package/src/client/types/com/atproto/sync/defs.ts +0 -23
- package/src/client/types/com/atproto/sync/getBlob.ts +0 -77
- package/src/client/types/com/atproto/sync/getBlocks.ts +0 -76
- package/src/client/types/com/atproto/sync/getCheckout.ts +0 -37
- package/src/client/types/com/atproto/sync/getHead.ts +0 -51
- package/src/client/types/com/atproto/sync/getHostStatus.ts +0 -57
- package/src/client/types/com/atproto/sync/getLatestCommit.ts +0 -73
- package/src/client/types/com/atproto/sync/getRecord.ts +0 -78
- package/src/client/types/com/atproto/sync/getRepo.ts +0 -70
- package/src/client/types/com/atproto/sync/getRepoStatus.ts +0 -63
- package/src/client/types/com/atproto/sync/listBlobs.ts +0 -77
- package/src/client/types/com/atproto/sync/listHosts.ts +0 -64
- package/src/client/types/com/atproto/sync/listRepos.ts +0 -70
- package/src/client/types/com/atproto/sync/listReposByCollection.ts +0 -59
- package/src/client/types/com/atproto/sync/notifyOfUpdate.ts +0 -39
- package/src/client/types/com/atproto/sync/requestCrawl.ts +0 -49
- package/src/client/types/com/atproto/sync/subscribeRepos.ts +0 -164
- package/src/client/types/com/atproto/temp/addReservedHandle.ts +0 -41
- package/src/client/types/com/atproto/temp/checkHandleAvailability.ts +0 -109
- package/src/client/types/com/atproto/temp/checkSignupQueue.ts +0 -40
- package/src/client/types/com/atproto/temp/dereferenceScope.ts +0 -53
- package/src/client/types/com/atproto/temp/fetchLabels.ts +0 -42
- package/src/client/types/com/atproto/temp/requestPhoneVerification.ts +0 -38
- package/src/client/types/com/atproto/temp/revokeAccountCredentials.ts +0 -38
- package/src/client/types/com/germnetwork/declaration.ts +0 -63
- package/src/client/types/tools/ozone/communication/createTemplate.ts +0 -62
- package/src/client/types/tools/ozone/communication/defs.ts +0 -43
- package/src/client/types/tools/ozone/communication/deleteTemplate.ts +0 -38
- package/src/client/types/tools/ozone/communication/listTemplates.ts +0 -39
- package/src/client/types/tools/ozone/communication/updateTemplate.ts +0 -65
- package/src/client/types/tools/ozone/hosting/getAccountHistory.ts +0 -148
- package/src/client/types/tools/ozone/moderation/cancelScheduledActions.ts +0 -79
- package/src/client/types/tools/ozone/moderation/defs.ts +0 -1176
- package/src/client/types/tools/ozone/moderation/emitEvent.ts +0 -121
- package/src/client/types/tools/ozone/moderation/getAccountTimeline.ts +0 -115
- package/src/client/types/tools/ozone/moderation/getEvent.ts +0 -38
- package/src/client/types/tools/ozone/moderation/getRecord.ts +0 -49
- package/src/client/types/tools/ozone/moderation/getRecords.ts +0 -45
- package/src/client/types/tools/ozone/moderation/getRepo.ts +0 -48
- package/src/client/types/tools/ozone/moderation/getReporterStats.ts +0 -41
- package/src/client/types/tools/ozone/moderation/getRepos.ts +0 -45
- package/src/client/types/tools/ozone/moderation/getSubjects.ts +0 -41
- package/src/client/types/tools/ozone/moderation/listScheduledActions.ts +0 -57
- package/src/client/types/tools/ozone/moderation/queryEvents.ts +0 -87
- package/src/client/types/tools/ozone/moderation/queryStatuses.ts +0 -122
- package/src/client/types/tools/ozone/moderation/scheduleAction.ts +0 -133
- package/src/client/types/tools/ozone/moderation/searchRepos.ts +0 -46
- package/src/client/types/tools/ozone/queue/assignModerator.ts +0 -55
- package/src/client/types/tools/ozone/queue/createQueue.ts +0 -63
- package/src/client/types/tools/ozone/queue/defs.ts +0 -99
- package/src/client/types/tools/ozone/queue/deleteQueue.ts +0 -48
- package/src/client/types/tools/ozone/queue/getAssignments.ts +0 -49
- package/src/client/types/tools/ozone/queue/listQueues.ts +0 -51
- package/src/client/types/tools/ozone/queue/routeReports.ts +0 -59
- package/src/client/types/tools/ozone/queue/unassignModerator.ts +0 -51
- package/src/client/types/tools/ozone/queue/updateQueue.ts +0 -51
- package/src/client/types/tools/ozone/report/assignModerator.ts +0 -66
- package/src/client/types/tools/ozone/report/createActivity.ts +0 -85
- package/src/client/types/tools/ozone/report/defs.ts +0 -466
- package/src/client/types/tools/ozone/report/getAssignments.ts +0 -49
- package/src/client/types/tools/ozone/report/getHistoricalStats.ts +0 -55
- package/src/client/types/tools/ozone/report/getLatestReport.ts +0 -49
- package/src/client/types/tools/ozone/report/getLiveStats.ts +0 -46
- package/src/client/types/tools/ozone/report/getReport.ts +0 -49
- package/src/client/types/tools/ozone/report/listActivities.ts +0 -45
- package/src/client/types/tools/ozone/report/queryReports.ts +0 -73
- package/src/client/types/tools/ozone/report/reassignQueue.ts +0 -88
- package/src/client/types/tools/ozone/report/refreshStats.ts +0 -46
- package/src/client/types/tools/ozone/report/unassignModerator.ts +0 -53
- package/src/client/types/tools/ozone/safelink/addRule.ts +0 -67
- package/src/client/types/tools/ozone/safelink/defs.ts +0 -76
- package/src/client/types/tools/ozone/safelink/queryEvents.ts +0 -55
- package/src/client/types/tools/ozone/safelink/queryRules.ts +0 -61
- package/src/client/types/tools/ozone/safelink/removeRule.ts +0 -58
- package/src/client/types/tools/ozone/safelink/updateRule.ts +0 -60
- package/src/client/types/tools/ozone/server/getConfig.ts +0 -79
- package/src/client/types/tools/ozone/set/addValues.ts +0 -41
- package/src/client/types/tools/ozone/set/defs.ts +0 -50
- package/src/client/types/tools/ozone/set/deleteSet.ts +0 -52
- package/src/client/types/tools/ozone/set/deleteValues.ts +0 -51
- package/src/client/types/tools/ozone/set/getValues.ts +0 -55
- package/src/client/types/tools/ozone/set/querySets.ts +0 -47
- package/src/client/types/tools/ozone/set/upsertSet.ts +0 -38
- package/src/client/types/tools/ozone/setting/defs.ts +0 -44
- package/src/client/types/tools/ozone/setting/listOptions.ts +0 -48
- package/src/client/types/tools/ozone/setting/removeOptions.ts +0 -42
- package/src/client/types/tools/ozone/setting/upsertOption.ts +0 -53
- package/src/client/types/tools/ozone/signature/defs.ts +0 -31
- package/src/client/types/tools/ozone/signature/findCorrelation.ts +0 -41
- package/src/client/types/tools/ozone/signature/findRelatedAccounts.ts +0 -61
- package/src/client/types/tools/ozone/signature/searchAccounts.ts +0 -44
- package/src/client/types/tools/ozone/team/addMember.ts +0 -59
- package/src/client/types/tools/ozone/team/defs.ts +0 -51
- package/src/client/types/tools/ozone/team/deleteMember.ts +0 -55
- package/src/client/types/tools/ozone/team/listMembers.ts +0 -46
- package/src/client/types/tools/ozone/team/updateMember.ts +0 -59
- package/src/client/types/tools/ozone/verification/defs.ts +0 -59
- package/src/client/types/tools/ozone/verification/grantVerifications.ts +0 -87
- package/src/client/types/tools/ozone/verification/listVerifications.ts +0 -57
- package/src/client/types/tools/ozone/verification/revokeVerifications.ts +0 -68
- package/src/client/util.ts +0 -82
|
@@ -1,716 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
-
*/
|
|
4
|
-
import { type ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
5
|
-
import { CID } from 'multiformats/cid'
|
|
6
|
-
import { validate as _validate } from '../../../../lexicons.js'
|
|
7
|
-
import {
|
|
8
|
-
type $Typed,
|
|
9
|
-
is$typed as _is$typed,
|
|
10
|
-
type OmitKey,
|
|
11
|
-
} from '../../../../util.js'
|
|
12
|
-
import type * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs.js'
|
|
13
|
-
import type * as AppBskyGraphDefs from '../graph/defs.js'
|
|
14
|
-
import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'
|
|
15
|
-
import type * as AppBskyNotificationDefs from '../notification/defs.js'
|
|
16
|
-
import type * as AppBskyFeedThreadgate from '../feed/threadgate.js'
|
|
17
|
-
import type * as AppBskyFeedPostgate from '../feed/postgate.js'
|
|
18
|
-
import type * as AppBskyEmbedExternal from '../embed/external.js'
|
|
19
|
-
|
|
20
|
-
const is$typed = _is$typed,
|
|
21
|
-
validate = _validate
|
|
22
|
-
const id = 'app.bsky.actor.defs'
|
|
23
|
-
|
|
24
|
-
export interface ProfileViewBasic {
|
|
25
|
-
$type?: 'app.bsky.actor.defs#profileViewBasic'
|
|
26
|
-
did: string
|
|
27
|
-
handle: string
|
|
28
|
-
displayName?: string
|
|
29
|
-
pronouns?: string
|
|
30
|
-
avatar?: string
|
|
31
|
-
associated?: ProfileAssociated
|
|
32
|
-
viewer?: ViewerState
|
|
33
|
-
labels?: ComAtprotoLabelDefs.Label[]
|
|
34
|
-
createdAt?: string
|
|
35
|
-
verification?: VerificationState
|
|
36
|
-
status?: StatusView
|
|
37
|
-
/** Debug information for internal development */
|
|
38
|
-
debug?: { [_ in string]: unknown }
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
const hashProfileViewBasic = 'profileViewBasic'
|
|
42
|
-
|
|
43
|
-
export function isProfileViewBasic<V>(v: V) {
|
|
44
|
-
return is$typed(v, id, hashProfileViewBasic)
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export function validateProfileViewBasic<V>(v: V) {
|
|
48
|
-
return validate<ProfileViewBasic & V>(v, id, hashProfileViewBasic)
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export interface ProfileView {
|
|
52
|
-
$type?: 'app.bsky.actor.defs#profileView'
|
|
53
|
-
did: string
|
|
54
|
-
handle: string
|
|
55
|
-
displayName?: string
|
|
56
|
-
pronouns?: string
|
|
57
|
-
description?: string
|
|
58
|
-
avatar?: string
|
|
59
|
-
associated?: ProfileAssociated
|
|
60
|
-
indexedAt?: string
|
|
61
|
-
createdAt?: string
|
|
62
|
-
viewer?: ViewerState
|
|
63
|
-
labels?: ComAtprotoLabelDefs.Label[]
|
|
64
|
-
verification?: VerificationState
|
|
65
|
-
status?: StatusView
|
|
66
|
-
/** Debug information for internal development */
|
|
67
|
-
debug?: { [_ in string]: unknown }
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
const hashProfileView = 'profileView'
|
|
71
|
-
|
|
72
|
-
export function isProfileView<V>(v: V) {
|
|
73
|
-
return is$typed(v, id, hashProfileView)
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export function validateProfileView<V>(v: V) {
|
|
77
|
-
return validate<ProfileView & V>(v, id, hashProfileView)
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export interface ProfileViewDetailed {
|
|
81
|
-
$type?: 'app.bsky.actor.defs#profileViewDetailed'
|
|
82
|
-
did: string
|
|
83
|
-
handle: string
|
|
84
|
-
displayName?: string
|
|
85
|
-
description?: string
|
|
86
|
-
pronouns?: string
|
|
87
|
-
website?: string
|
|
88
|
-
avatar?: string
|
|
89
|
-
banner?: string
|
|
90
|
-
followersCount?: number
|
|
91
|
-
followsCount?: number
|
|
92
|
-
postsCount?: number
|
|
93
|
-
associated?: ProfileAssociated
|
|
94
|
-
joinedViaStarterPack?: AppBskyGraphDefs.StarterPackViewBasic
|
|
95
|
-
indexedAt?: string
|
|
96
|
-
createdAt?: string
|
|
97
|
-
viewer?: ViewerState
|
|
98
|
-
labels?: ComAtprotoLabelDefs.Label[]
|
|
99
|
-
pinnedPost?: ComAtprotoRepoStrongRef.Main
|
|
100
|
-
verification?: VerificationState
|
|
101
|
-
status?: StatusView
|
|
102
|
-
/** Debug information for internal development */
|
|
103
|
-
debug?: { [_ in string]: unknown }
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
const hashProfileViewDetailed = 'profileViewDetailed'
|
|
107
|
-
|
|
108
|
-
export function isProfileViewDetailed<V>(v: V) {
|
|
109
|
-
return is$typed(v, id, hashProfileViewDetailed)
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
export function validateProfileViewDetailed<V>(v: V) {
|
|
113
|
-
return validate<ProfileViewDetailed & V>(v, id, hashProfileViewDetailed)
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
export interface ProfileAssociated {
|
|
117
|
-
$type?: 'app.bsky.actor.defs#profileAssociated'
|
|
118
|
-
lists?: number
|
|
119
|
-
feedgens?: number
|
|
120
|
-
starterPacks?: number
|
|
121
|
-
labeler?: boolean
|
|
122
|
-
chat?: ProfileAssociatedChat
|
|
123
|
-
activitySubscription?: ProfileAssociatedActivitySubscription
|
|
124
|
-
germ?: ProfileAssociatedGerm
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
const hashProfileAssociated = 'profileAssociated'
|
|
128
|
-
|
|
129
|
-
export function isProfileAssociated<V>(v: V) {
|
|
130
|
-
return is$typed(v, id, hashProfileAssociated)
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
export function validateProfileAssociated<V>(v: V) {
|
|
134
|
-
return validate<ProfileAssociated & V>(v, id, hashProfileAssociated)
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
export interface ProfileAssociatedChat {
|
|
138
|
-
$type?: 'app.bsky.actor.defs#profileAssociatedChat'
|
|
139
|
-
allowIncoming: 'all' | 'none' | 'following' | (string & {})
|
|
140
|
-
allowGroupInvites?: 'all' | 'none' | 'following' | (string & {})
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
const hashProfileAssociatedChat = 'profileAssociatedChat'
|
|
144
|
-
|
|
145
|
-
export function isProfileAssociatedChat<V>(v: V) {
|
|
146
|
-
return is$typed(v, id, hashProfileAssociatedChat)
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
export function validateProfileAssociatedChat<V>(v: V) {
|
|
150
|
-
return validate<ProfileAssociatedChat & V>(v, id, hashProfileAssociatedChat)
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
export interface ProfileAssociatedGerm {
|
|
154
|
-
$type?: 'app.bsky.actor.defs#profileAssociatedGerm'
|
|
155
|
-
messageMeUrl: string
|
|
156
|
-
showButtonTo: 'usersIFollow' | 'everyone' | (string & {})
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
const hashProfileAssociatedGerm = 'profileAssociatedGerm'
|
|
160
|
-
|
|
161
|
-
export function isProfileAssociatedGerm<V>(v: V) {
|
|
162
|
-
return is$typed(v, id, hashProfileAssociatedGerm)
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
export function validateProfileAssociatedGerm<V>(v: V) {
|
|
166
|
-
return validate<ProfileAssociatedGerm & V>(v, id, hashProfileAssociatedGerm)
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
export interface ProfileAssociatedActivitySubscription {
|
|
170
|
-
$type?: 'app.bsky.actor.defs#profileAssociatedActivitySubscription'
|
|
171
|
-
allowSubscriptions: 'followers' | 'mutuals' | 'none' | (string & {})
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
const hashProfileAssociatedActivitySubscription =
|
|
175
|
-
'profileAssociatedActivitySubscription'
|
|
176
|
-
|
|
177
|
-
export function isProfileAssociatedActivitySubscription<V>(v: V) {
|
|
178
|
-
return is$typed(v, id, hashProfileAssociatedActivitySubscription)
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
export function validateProfileAssociatedActivitySubscription<V>(v: V) {
|
|
182
|
-
return validate<ProfileAssociatedActivitySubscription & V>(
|
|
183
|
-
v,
|
|
184
|
-
id,
|
|
185
|
-
hashProfileAssociatedActivitySubscription,
|
|
186
|
-
)
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
/** Metadata about the requesting account's relationship with the subject account. Only has meaningful content for authed requests. */
|
|
190
|
-
export interface ViewerState {
|
|
191
|
-
$type?: 'app.bsky.actor.defs#viewerState'
|
|
192
|
-
muted?: boolean
|
|
193
|
-
mutedByList?: AppBskyGraphDefs.ListViewBasic
|
|
194
|
-
blockedBy?: boolean
|
|
195
|
-
blocking?: string
|
|
196
|
-
blockingByList?: AppBskyGraphDefs.ListViewBasic
|
|
197
|
-
following?: string
|
|
198
|
-
followedBy?: string
|
|
199
|
-
knownFollowers?: KnownFollowers
|
|
200
|
-
activitySubscription?: AppBskyNotificationDefs.ActivitySubscription
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
const hashViewerState = 'viewerState'
|
|
204
|
-
|
|
205
|
-
export function isViewerState<V>(v: V) {
|
|
206
|
-
return is$typed(v, id, hashViewerState)
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
export function validateViewerState<V>(v: V) {
|
|
210
|
-
return validate<ViewerState & V>(v, id, hashViewerState)
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
/** The subject's followers whom you also follow */
|
|
214
|
-
export interface KnownFollowers {
|
|
215
|
-
$type?: 'app.bsky.actor.defs#knownFollowers'
|
|
216
|
-
count: number
|
|
217
|
-
followers: ProfileViewBasic[]
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
const hashKnownFollowers = 'knownFollowers'
|
|
221
|
-
|
|
222
|
-
export function isKnownFollowers<V>(v: V) {
|
|
223
|
-
return is$typed(v, id, hashKnownFollowers)
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
export function validateKnownFollowers<V>(v: V) {
|
|
227
|
-
return validate<KnownFollowers & V>(v, id, hashKnownFollowers)
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
/** Represents the verification information about the user this object is attached to. */
|
|
231
|
-
export interface VerificationState {
|
|
232
|
-
$type?: 'app.bsky.actor.defs#verificationState'
|
|
233
|
-
/** All verifications issued by trusted verifiers on behalf of this user. Verifications by untrusted verifiers are not included. */
|
|
234
|
-
verifications: VerificationView[]
|
|
235
|
-
/** The user's status as a verified account. */
|
|
236
|
-
verifiedStatus: 'valid' | 'invalid' | 'none' | (string & {})
|
|
237
|
-
/** The user's status as a trusted verifier. */
|
|
238
|
-
trustedVerifierStatus: 'valid' | 'invalid' | 'none' | (string & {})
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
const hashVerificationState = 'verificationState'
|
|
242
|
-
|
|
243
|
-
export function isVerificationState<V>(v: V) {
|
|
244
|
-
return is$typed(v, id, hashVerificationState)
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
export function validateVerificationState<V>(v: V) {
|
|
248
|
-
return validate<VerificationState & V>(v, id, hashVerificationState)
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
/** An individual verification for an associated subject. */
|
|
252
|
-
export interface VerificationView {
|
|
253
|
-
$type?: 'app.bsky.actor.defs#verificationView'
|
|
254
|
-
/** The user who issued this verification. */
|
|
255
|
-
issuer: string
|
|
256
|
-
/** The AT-URI of the verification record. */
|
|
257
|
-
uri: string
|
|
258
|
-
/** True if the verification passes validation, otherwise false. */
|
|
259
|
-
isValid: boolean
|
|
260
|
-
/** Timestamp when the verification was created. */
|
|
261
|
-
createdAt: string
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
const hashVerificationView = 'verificationView'
|
|
265
|
-
|
|
266
|
-
export function isVerificationView<V>(v: V) {
|
|
267
|
-
return is$typed(v, id, hashVerificationView)
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
export function validateVerificationView<V>(v: V) {
|
|
271
|
-
return validate<VerificationView & V>(v, id, hashVerificationView)
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
export type Preferences = (
|
|
275
|
-
| $Typed<AdultContentPref>
|
|
276
|
-
| $Typed<ContentLabelPref>
|
|
277
|
-
| $Typed<SavedFeedsPref>
|
|
278
|
-
| $Typed<SavedFeedsPrefV2>
|
|
279
|
-
| $Typed<PersonalDetailsPref>
|
|
280
|
-
| $Typed<DeclaredAgePref>
|
|
281
|
-
| $Typed<FeedViewPref>
|
|
282
|
-
| $Typed<ThreadViewPref>
|
|
283
|
-
| $Typed<InterestsPref>
|
|
284
|
-
| $Typed<MutedWordsPref>
|
|
285
|
-
| $Typed<HiddenPostsPref>
|
|
286
|
-
| $Typed<BskyAppStatePref>
|
|
287
|
-
| $Typed<LabelersPref>
|
|
288
|
-
| $Typed<PostInteractionSettingsPref>
|
|
289
|
-
| $Typed<VerificationPrefs>
|
|
290
|
-
| $Typed<LiveEventPreferences>
|
|
291
|
-
| { $type: string }
|
|
292
|
-
)[]
|
|
293
|
-
|
|
294
|
-
export interface AdultContentPref {
|
|
295
|
-
$type?: 'app.bsky.actor.defs#adultContentPref'
|
|
296
|
-
enabled: boolean
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
const hashAdultContentPref = 'adultContentPref'
|
|
300
|
-
|
|
301
|
-
export function isAdultContentPref<V>(v: V) {
|
|
302
|
-
return is$typed(v, id, hashAdultContentPref)
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
export function validateAdultContentPref<V>(v: V) {
|
|
306
|
-
return validate<AdultContentPref & V>(v, id, hashAdultContentPref)
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
export interface ContentLabelPref {
|
|
310
|
-
$type?: 'app.bsky.actor.defs#contentLabelPref'
|
|
311
|
-
/** Which labeler does this preference apply to? If undefined, applies globally. */
|
|
312
|
-
labelerDid?: string
|
|
313
|
-
label: string
|
|
314
|
-
visibility: 'ignore' | 'show' | 'warn' | 'hide' | (string & {})
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
const hashContentLabelPref = 'contentLabelPref'
|
|
318
|
-
|
|
319
|
-
export function isContentLabelPref<V>(v: V) {
|
|
320
|
-
return is$typed(v, id, hashContentLabelPref)
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
export function validateContentLabelPref<V>(v: V) {
|
|
324
|
-
return validate<ContentLabelPref & V>(v, id, hashContentLabelPref)
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
export interface SavedFeed {
|
|
328
|
-
$type?: 'app.bsky.actor.defs#savedFeed'
|
|
329
|
-
id: string
|
|
330
|
-
type: 'feed' | 'list' | 'timeline' | (string & {})
|
|
331
|
-
value: string
|
|
332
|
-
pinned: boolean
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
const hashSavedFeed = 'savedFeed'
|
|
336
|
-
|
|
337
|
-
export function isSavedFeed<V>(v: V) {
|
|
338
|
-
return is$typed(v, id, hashSavedFeed)
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
export function validateSavedFeed<V>(v: V) {
|
|
342
|
-
return validate<SavedFeed & V>(v, id, hashSavedFeed)
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
export interface SavedFeedsPrefV2 {
|
|
346
|
-
$type?: 'app.bsky.actor.defs#savedFeedsPrefV2'
|
|
347
|
-
items: SavedFeed[]
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
const hashSavedFeedsPrefV2 = 'savedFeedsPrefV2'
|
|
351
|
-
|
|
352
|
-
export function isSavedFeedsPrefV2<V>(v: V) {
|
|
353
|
-
return is$typed(v, id, hashSavedFeedsPrefV2)
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
export function validateSavedFeedsPrefV2<V>(v: V) {
|
|
357
|
-
return validate<SavedFeedsPrefV2 & V>(v, id, hashSavedFeedsPrefV2)
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
export interface SavedFeedsPref {
|
|
361
|
-
$type?: 'app.bsky.actor.defs#savedFeedsPref'
|
|
362
|
-
pinned: string[]
|
|
363
|
-
saved: string[]
|
|
364
|
-
timelineIndex?: number
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
const hashSavedFeedsPref = 'savedFeedsPref'
|
|
368
|
-
|
|
369
|
-
export function isSavedFeedsPref<V>(v: V) {
|
|
370
|
-
return is$typed(v, id, hashSavedFeedsPref)
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
export function validateSavedFeedsPref<V>(v: V) {
|
|
374
|
-
return validate<SavedFeedsPref & V>(v, id, hashSavedFeedsPref)
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
export interface PersonalDetailsPref {
|
|
378
|
-
$type?: 'app.bsky.actor.defs#personalDetailsPref'
|
|
379
|
-
/** The birth date of account owner. */
|
|
380
|
-
birthDate?: string
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
const hashPersonalDetailsPref = 'personalDetailsPref'
|
|
384
|
-
|
|
385
|
-
export function isPersonalDetailsPref<V>(v: V) {
|
|
386
|
-
return is$typed(v, id, hashPersonalDetailsPref)
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
export function validatePersonalDetailsPref<V>(v: V) {
|
|
390
|
-
return validate<PersonalDetailsPref & V>(v, id, hashPersonalDetailsPref)
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
/** Read-only preference containing value(s) inferred from the user's declared birthdate. Absence of this preference object in the response indicates that the user has not made a declaration. */
|
|
394
|
-
export interface DeclaredAgePref {
|
|
395
|
-
$type?: 'app.bsky.actor.defs#declaredAgePref'
|
|
396
|
-
/** Indicates if the user has declared that they are over 13 years of age. */
|
|
397
|
-
isOverAge13?: boolean
|
|
398
|
-
/** Indicates if the user has declared that they are over 16 years of age. */
|
|
399
|
-
isOverAge16?: boolean
|
|
400
|
-
/** Indicates if the user has declared that they are over 18 years of age. */
|
|
401
|
-
isOverAge18?: boolean
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
const hashDeclaredAgePref = 'declaredAgePref'
|
|
405
|
-
|
|
406
|
-
export function isDeclaredAgePref<V>(v: V) {
|
|
407
|
-
return is$typed(v, id, hashDeclaredAgePref)
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
export function validateDeclaredAgePref<V>(v: V) {
|
|
411
|
-
return validate<DeclaredAgePref & V>(v, id, hashDeclaredAgePref)
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
export interface FeedViewPref {
|
|
415
|
-
$type?: 'app.bsky.actor.defs#feedViewPref'
|
|
416
|
-
/** The URI of the feed, or an identifier which describes the feed. */
|
|
417
|
-
feed: string
|
|
418
|
-
/** Hide replies in the feed. */
|
|
419
|
-
hideReplies?: boolean
|
|
420
|
-
/** Hide replies in the feed if they are not by followed users. */
|
|
421
|
-
hideRepliesByUnfollowed: boolean
|
|
422
|
-
/** Hide replies in the feed if they do not have this number of likes. */
|
|
423
|
-
hideRepliesByLikeCount?: number
|
|
424
|
-
/** Hide reposts in the feed. */
|
|
425
|
-
hideReposts?: boolean
|
|
426
|
-
/** Hide quote posts in the feed. */
|
|
427
|
-
hideQuotePosts?: boolean
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
const hashFeedViewPref = 'feedViewPref'
|
|
431
|
-
|
|
432
|
-
export function isFeedViewPref<V>(v: V) {
|
|
433
|
-
return is$typed(v, id, hashFeedViewPref)
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
export function validateFeedViewPref<V>(v: V) {
|
|
437
|
-
return validate<FeedViewPref & V>(v, id, hashFeedViewPref)
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
export interface ThreadViewPref {
|
|
441
|
-
$type?: 'app.bsky.actor.defs#threadViewPref'
|
|
442
|
-
/** Sorting mode for threads. */
|
|
443
|
-
sort?:
|
|
444
|
-
| 'oldest'
|
|
445
|
-
| 'newest'
|
|
446
|
-
| 'most-likes'
|
|
447
|
-
| 'random'
|
|
448
|
-
| 'hotness'
|
|
449
|
-
| (string & {})
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
const hashThreadViewPref = 'threadViewPref'
|
|
453
|
-
|
|
454
|
-
export function isThreadViewPref<V>(v: V) {
|
|
455
|
-
return is$typed(v, id, hashThreadViewPref)
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
export function validateThreadViewPref<V>(v: V) {
|
|
459
|
-
return validate<ThreadViewPref & V>(v, id, hashThreadViewPref)
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
export interface InterestsPref {
|
|
463
|
-
$type?: 'app.bsky.actor.defs#interestsPref'
|
|
464
|
-
/** A list of tags which describe the account owner's interests gathered during onboarding. */
|
|
465
|
-
tags: string[]
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
const hashInterestsPref = 'interestsPref'
|
|
469
|
-
|
|
470
|
-
export function isInterestsPref<V>(v: V) {
|
|
471
|
-
return is$typed(v, id, hashInterestsPref)
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
export function validateInterestsPref<V>(v: V) {
|
|
475
|
-
return validate<InterestsPref & V>(v, id, hashInterestsPref)
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
export type MutedWordTarget = 'content' | 'tag' | (string & {})
|
|
479
|
-
|
|
480
|
-
/** A word that the account owner has muted. */
|
|
481
|
-
export interface MutedWord {
|
|
482
|
-
$type?: 'app.bsky.actor.defs#mutedWord'
|
|
483
|
-
id?: string
|
|
484
|
-
/** The muted word itself. */
|
|
485
|
-
value: string
|
|
486
|
-
/** The intended targets of the muted word. */
|
|
487
|
-
targets: MutedWordTarget[]
|
|
488
|
-
/** Groups of users to apply the muted word to. If undefined, applies to all users. */
|
|
489
|
-
actorTarget: 'all' | 'exclude-following' | (string & {})
|
|
490
|
-
/** The date and time at which the muted word will expire and no longer be applied. */
|
|
491
|
-
expiresAt?: string
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
const hashMutedWord = 'mutedWord'
|
|
495
|
-
|
|
496
|
-
export function isMutedWord<V>(v: V) {
|
|
497
|
-
return is$typed(v, id, hashMutedWord)
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
export function validateMutedWord<V>(v: V) {
|
|
501
|
-
return validate<MutedWord & V>(v, id, hashMutedWord)
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
export interface MutedWordsPref {
|
|
505
|
-
$type?: 'app.bsky.actor.defs#mutedWordsPref'
|
|
506
|
-
/** A list of words the account owner has muted. */
|
|
507
|
-
items: MutedWord[]
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
const hashMutedWordsPref = 'mutedWordsPref'
|
|
511
|
-
|
|
512
|
-
export function isMutedWordsPref<V>(v: V) {
|
|
513
|
-
return is$typed(v, id, hashMutedWordsPref)
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
export function validateMutedWordsPref<V>(v: V) {
|
|
517
|
-
return validate<MutedWordsPref & V>(v, id, hashMutedWordsPref)
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
export interface HiddenPostsPref {
|
|
521
|
-
$type?: 'app.bsky.actor.defs#hiddenPostsPref'
|
|
522
|
-
/** A list of URIs of posts the account owner has hidden. */
|
|
523
|
-
items: string[]
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
const hashHiddenPostsPref = 'hiddenPostsPref'
|
|
527
|
-
|
|
528
|
-
export function isHiddenPostsPref<V>(v: V) {
|
|
529
|
-
return is$typed(v, id, hashHiddenPostsPref)
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
export function validateHiddenPostsPref<V>(v: V) {
|
|
533
|
-
return validate<HiddenPostsPref & V>(v, id, hashHiddenPostsPref)
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
export interface LabelersPref {
|
|
537
|
-
$type?: 'app.bsky.actor.defs#labelersPref'
|
|
538
|
-
labelers: LabelerPrefItem[]
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
const hashLabelersPref = 'labelersPref'
|
|
542
|
-
|
|
543
|
-
export function isLabelersPref<V>(v: V) {
|
|
544
|
-
return is$typed(v, id, hashLabelersPref)
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
export function validateLabelersPref<V>(v: V) {
|
|
548
|
-
return validate<LabelersPref & V>(v, id, hashLabelersPref)
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
export interface LabelerPrefItem {
|
|
552
|
-
$type?: 'app.bsky.actor.defs#labelerPrefItem'
|
|
553
|
-
did: string
|
|
554
|
-
}
|
|
555
|
-
|
|
556
|
-
const hashLabelerPrefItem = 'labelerPrefItem'
|
|
557
|
-
|
|
558
|
-
export function isLabelerPrefItem<V>(v: V) {
|
|
559
|
-
return is$typed(v, id, hashLabelerPrefItem)
|
|
560
|
-
}
|
|
561
|
-
|
|
562
|
-
export function validateLabelerPrefItem<V>(v: V) {
|
|
563
|
-
return validate<LabelerPrefItem & V>(v, id, hashLabelerPrefItem)
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
/** A grab bag of state that's specific to the bsky.app program. Third-party apps shouldn't use this. */
|
|
567
|
-
export interface BskyAppStatePref {
|
|
568
|
-
$type?: 'app.bsky.actor.defs#bskyAppStatePref'
|
|
569
|
-
activeProgressGuide?: BskyAppProgressGuide
|
|
570
|
-
/** An array of tokens which identify nudges (modals, popups, tours, highlight dots) that should be shown to the user. */
|
|
571
|
-
queuedNudges?: string[]
|
|
572
|
-
/** Storage for NUXs the user has encountered. */
|
|
573
|
-
nuxs?: Nux[]
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
const hashBskyAppStatePref = 'bskyAppStatePref'
|
|
577
|
-
|
|
578
|
-
export function isBskyAppStatePref<V>(v: V) {
|
|
579
|
-
return is$typed(v, id, hashBskyAppStatePref)
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
export function validateBskyAppStatePref<V>(v: V) {
|
|
583
|
-
return validate<BskyAppStatePref & V>(v, id, hashBskyAppStatePref)
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
/** If set, an active progress guide. Once completed, can be set to undefined. Should have unspecced fields tracking progress. */
|
|
587
|
-
export interface BskyAppProgressGuide {
|
|
588
|
-
$type?: 'app.bsky.actor.defs#bskyAppProgressGuide'
|
|
589
|
-
guide: string
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
const hashBskyAppProgressGuide = 'bskyAppProgressGuide'
|
|
593
|
-
|
|
594
|
-
export function isBskyAppProgressGuide<V>(v: V) {
|
|
595
|
-
return is$typed(v, id, hashBskyAppProgressGuide)
|
|
596
|
-
}
|
|
597
|
-
|
|
598
|
-
export function validateBskyAppProgressGuide<V>(v: V) {
|
|
599
|
-
return validate<BskyAppProgressGuide & V>(v, id, hashBskyAppProgressGuide)
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
/** A new user experiences (NUX) storage object */
|
|
603
|
-
export interface Nux {
|
|
604
|
-
$type?: 'app.bsky.actor.defs#nux'
|
|
605
|
-
id: string
|
|
606
|
-
completed: boolean
|
|
607
|
-
/** Arbitrary data for the NUX. The structure is defined by the NUX itself. Limited to 300 characters. */
|
|
608
|
-
data?: string
|
|
609
|
-
/** The date and time at which the NUX will expire and should be considered completed. */
|
|
610
|
-
expiresAt?: string
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
const hashNux = 'nux'
|
|
614
|
-
|
|
615
|
-
export function isNux<V>(v: V) {
|
|
616
|
-
return is$typed(v, id, hashNux)
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
export function validateNux<V>(v: V) {
|
|
620
|
-
return validate<Nux & V>(v, id, hashNux)
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
/** Preferences for how verified accounts appear in the app. */
|
|
624
|
-
export interface VerificationPrefs {
|
|
625
|
-
$type?: 'app.bsky.actor.defs#verificationPrefs'
|
|
626
|
-
/** Hide the blue check badges for verified accounts and trusted verifiers. */
|
|
627
|
-
hideBadges: boolean
|
|
628
|
-
}
|
|
629
|
-
|
|
630
|
-
const hashVerificationPrefs = 'verificationPrefs'
|
|
631
|
-
|
|
632
|
-
export function isVerificationPrefs<V>(v: V) {
|
|
633
|
-
return is$typed(v, id, hashVerificationPrefs)
|
|
634
|
-
}
|
|
635
|
-
|
|
636
|
-
export function validateVerificationPrefs<V>(v: V) {
|
|
637
|
-
return validate<VerificationPrefs & V>(v, id, hashVerificationPrefs)
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
/** Preferences for live events. */
|
|
641
|
-
export interface LiveEventPreferences {
|
|
642
|
-
$type?: 'app.bsky.actor.defs#liveEventPreferences'
|
|
643
|
-
/** A list of feed IDs that the user has hidden from live events. */
|
|
644
|
-
hiddenFeedIds?: string[]
|
|
645
|
-
/** Whether to hide all feeds from live events. */
|
|
646
|
-
hideAllFeeds: boolean
|
|
647
|
-
}
|
|
648
|
-
|
|
649
|
-
const hashLiveEventPreferences = 'liveEventPreferences'
|
|
650
|
-
|
|
651
|
-
export function isLiveEventPreferences<V>(v: V) {
|
|
652
|
-
return is$typed(v, id, hashLiveEventPreferences)
|
|
653
|
-
}
|
|
654
|
-
|
|
655
|
-
export function validateLiveEventPreferences<V>(v: V) {
|
|
656
|
-
return validate<LiveEventPreferences & V>(v, id, hashLiveEventPreferences)
|
|
657
|
-
}
|
|
658
|
-
|
|
659
|
-
/** Default post interaction settings for the account. These values should be applied as default values when creating new posts. These refs should mirror the threadgate and postgate records exactly. */
|
|
660
|
-
export interface PostInteractionSettingsPref {
|
|
661
|
-
$type?: 'app.bsky.actor.defs#postInteractionSettingsPref'
|
|
662
|
-
/** Matches threadgate record. List of rules defining who can reply to this users posts. If value is an empty array, no one can reply. If value is undefined, anyone can reply. */
|
|
663
|
-
threadgateAllowRules?: (
|
|
664
|
-
| $Typed<AppBskyFeedThreadgate.MentionRule>
|
|
665
|
-
| $Typed<AppBskyFeedThreadgate.FollowerRule>
|
|
666
|
-
| $Typed<AppBskyFeedThreadgate.FollowingRule>
|
|
667
|
-
| $Typed<AppBskyFeedThreadgate.ListRule>
|
|
668
|
-
| { $type: string }
|
|
669
|
-
)[]
|
|
670
|
-
/** Matches postgate record. List of rules defining who can embed this users posts. If value is an empty array or is undefined, no particular rules apply and anyone can embed. */
|
|
671
|
-
postgateEmbeddingRules?: (
|
|
672
|
-
| $Typed<AppBskyFeedPostgate.DisableRule>
|
|
673
|
-
| { $type: string }
|
|
674
|
-
)[]
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
const hashPostInteractionSettingsPref = 'postInteractionSettingsPref'
|
|
678
|
-
|
|
679
|
-
export function isPostInteractionSettingsPref<V>(v: V) {
|
|
680
|
-
return is$typed(v, id, hashPostInteractionSettingsPref)
|
|
681
|
-
}
|
|
682
|
-
|
|
683
|
-
export function validatePostInteractionSettingsPref<V>(v: V) {
|
|
684
|
-
return validate<PostInteractionSettingsPref & V>(
|
|
685
|
-
v,
|
|
686
|
-
id,
|
|
687
|
-
hashPostInteractionSettingsPref,
|
|
688
|
-
)
|
|
689
|
-
}
|
|
690
|
-
|
|
691
|
-
export interface StatusView {
|
|
692
|
-
$type?: 'app.bsky.actor.defs#statusView'
|
|
693
|
-
uri?: string
|
|
694
|
-
cid?: string
|
|
695
|
-
/** The status for the account. */
|
|
696
|
-
status: 'app.bsky.actor.status#live' | (string & {})
|
|
697
|
-
record: { [_ in string]: unknown }
|
|
698
|
-
embed?: $Typed<AppBskyEmbedExternal.View> | { $type: string }
|
|
699
|
-
labels?: ComAtprotoLabelDefs.Label[]
|
|
700
|
-
/** The date when this status will expire. The application might choose to no longer return the status after expiration. */
|
|
701
|
-
expiresAt?: string
|
|
702
|
-
/** True if the status is not expired, false if it is expired. Only present if expiration was set. */
|
|
703
|
-
isActive?: boolean
|
|
704
|
-
/** True if the user's go-live access has been disabled by a moderator, false otherwise. */
|
|
705
|
-
isDisabled?: boolean
|
|
706
|
-
}
|
|
707
|
-
|
|
708
|
-
const hashStatusView = 'statusView'
|
|
709
|
-
|
|
710
|
-
export function isStatusView<V>(v: V) {
|
|
711
|
-
return is$typed(v, id, hashStatusView)
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
export function validateStatusView<V>(v: V) {
|
|
715
|
-
return validate<StatusView & V>(v, id, hashStatusView)
|
|
716
|
-
}
|