@atproto/api 0.0.5 → 0.0.7
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/dist/client/index.d.ts +72 -44
- package/dist/client/lexicons.d.ts +1034 -398
- package/dist/client/types/app/bsky/actor/getProfile.d.ts +0 -2
- package/dist/client/types/app/bsky/actor/search.d.ts +1 -1
- package/dist/client/types/app/bsky/actor/searchTypeahead.d.ts +1 -1
- package/dist/client/types/app/bsky/actor/updateProfile.d.ts +0 -1
- package/dist/client/types/app/bsky/feed/feedViewPost.d.ts +1 -8
- package/dist/client/types/app/bsky/graph/getFollows.d.ts +1 -0
- package/dist/client/types/app/bsky/notification/list.d.ts +1 -1
- package/dist/client/types/app/bsky/system/declRef.d.ts +1 -1
- package/dist/client/types/app/bsky/system/declaration.d.ts +1 -1
- package/dist/client/types/com/atproto/admin/getModerationAction.d.ts +16 -0
- package/dist/client/types/com/atproto/admin/getModerationActions.d.ts +22 -0
- package/dist/client/types/com/atproto/admin/getModerationReport.d.ts +16 -0
- package/dist/client/types/com/atproto/admin/getModerationReports.d.ts +23 -0
- package/dist/client/types/com/atproto/admin/getRecord.d.ts +17 -0
- package/dist/client/types/com/atproto/admin/getRepo.d.ts +16 -0
- package/dist/client/types/com/atproto/admin/moderationAction.d.ts +49 -0
- package/dist/client/types/com/atproto/admin/moderationReport.d.ts +37 -0
- package/dist/client/types/com/atproto/admin/record.d.ts +40 -0
- package/dist/client/types/com/atproto/admin/repo.d.ts +45 -0
- package/dist/client/types/com/atproto/admin/resolveModerationReports.d.ts +22 -0
- package/dist/client/types/com/atproto/admin/reverseModerationAction.d.ts +22 -0
- package/dist/client/types/com/atproto/admin/searchRepos.d.ts +22 -0
- package/dist/client/types/com/atproto/admin/takeModerationAction.d.ts +28 -0
- package/dist/client/types/com/atproto/repo/recordRef.d.ts +8 -0
- package/dist/client/types/com/atproto/repo/repoRef.d.ts +7 -0
- package/dist/client/types/com/atproto/report/create.d.ts +39 -0
- package/dist/client/types/com/atproto/report/reasonType.d.ts +3 -0
- package/dist/client/types/com/atproto/report/subject.d.ts +23 -0
- package/dist/client/types/com/atproto/session/create.d.ts +5 -2
- package/dist/client/types/com/atproto/session/refresh.d.ts +4 -1
- package/dist/client/types/com/atproto/sync/getCheckout.d.ts +15 -0
- package/dist/client/types/com/atproto/sync/getCommitPath.d.ts +20 -0
- package/dist/client/types/com/atproto/sync/getHead.d.ts +18 -0
- package/dist/client/types/com/atproto/sync/getRecord.d.ts +17 -0
- package/dist/index.js +2040 -988
- package/dist/index.js.map +4 -4
- package/dist/src/client/index.d.ts +474 -0
- package/dist/src/client/lexicons.d.ts +3036 -0
- package/dist/src/client/schemas.d.ts +17 -0
- package/dist/src/client/types/app/bsky/actor/createScene.d.ts +32 -0
- package/dist/src/client/types/app/bsky/actor/getProfile.d.ts +36 -0
- package/dist/src/client/types/app/bsky/actor/getSuggestions.d.ts +36 -0
- package/dist/src/client/types/app/bsky/actor/profile.d.ts +15 -0
- package/dist/src/client/types/app/bsky/actor/ref.d.ts +14 -0
- package/dist/src/client/types/app/bsky/actor/search.d.ts +32 -0
- package/dist/src/client/types/app/bsky/actor/searchTypeahead.d.ts +28 -0
- package/dist/src/client/types/app/bsky/actor/updateProfile.d.ts +48 -0
- package/dist/src/client/types/app/bsky/administration/moderationAction.d.ts +16 -0
- package/dist/src/client/types/app/bsky/administration/reverseModerationAction.d.ts +22 -0
- package/dist/src/client/types/app/bsky/administration/takeModerationAction.d.ts +27 -0
- package/dist/src/client/types/app/bsky/badge.d.ts +22 -0
- package/dist/src/client/types/app/bsky/badgeAccept.d.ts +11 -0
- package/dist/src/client/types/app/bsky/badgeOffer.d.ts +11 -0
- package/dist/src/client/types/app/bsky/declaration.d.ts +6 -0
- package/dist/src/client/types/app/bsky/embed/external.d.ts +26 -0
- package/dist/src/client/types/app/bsky/embed/images.d.ts +23 -0
- package/dist/src/client/types/app/bsky/feed/embed.d.ts +36 -0
- package/dist/src/client/types/app/bsky/feed/feedViewPost.d.ts +26 -0
- package/dist/src/client/types/app/bsky/feed/getAuthorFeed.d.ts +22 -0
- package/dist/src/client/types/app/bsky/feed/getPostThread.d.ts +43 -0
- package/dist/src/client/types/app/bsky/feed/getRepostedBy.d.ts +35 -0
- package/dist/src/client/types/app/bsky/feed/getTimeline.d.ts +22 -0
- package/dist/src/client/types/app/bsky/feed/getVotes.d.ts +33 -0
- package/dist/src/client/types/app/bsky/feed/mediaEmbed.d.ts +15 -0
- package/dist/src/client/types/app/bsky/feed/post.d.ts +54 -0
- package/dist/src/client/types/app/bsky/feed/repost.d.ts +6 -0
- package/dist/src/client/types/app/bsky/feed/setVote.d.ts +25 -0
- package/dist/src/client/types/app/bsky/feed/trend.d.ts +6 -0
- package/dist/src/client/types/app/bsky/feed/vote.d.ts +7 -0
- package/dist/src/client/types/app/bsky/follow.d.ts +9 -0
- package/dist/src/client/types/app/bsky/getAuthorFeed.d.ts +56 -0
- package/dist/src/client/types/app/bsky/getBadgeMembers.d.ts +29 -0
- package/dist/src/client/types/app/bsky/getHomeFeed.d.ts +56 -0
- package/dist/src/client/types/app/bsky/getLikedBy.d.ts +29 -0
- package/dist/src/client/types/app/bsky/getNotificationCount.d.ts +16 -0
- package/dist/src/client/types/app/bsky/getNotifications.d.ts +33 -0
- package/dist/src/client/types/app/bsky/getPostThread.d.ts +55 -0
- package/dist/src/client/types/app/bsky/getProfile.d.ts +26 -0
- package/dist/src/client/types/app/bsky/getRepostedBy.d.ts +29 -0
- package/dist/src/client/types/app/bsky/getTimeline.d.ts +56 -0
- package/dist/src/client/types/app/bsky/getUserFollowers.d.ts +31 -0
- package/dist/src/client/types/app/bsky/getUserFollows.d.ts +31 -0
- package/dist/src/client/types/app/bsky/getUsersSearch.d.ts +26 -0
- package/dist/src/client/types/app/bsky/getUsersTypeahead.d.ts +22 -0
- package/dist/src/client/types/app/bsky/graph/assertCreator.d.ts +1 -0
- package/dist/src/client/types/app/bsky/graph/assertMember.d.ts +1 -0
- package/dist/src/client/types/app/bsky/graph/assertion.d.ts +7 -0
- package/dist/src/client/types/app/bsky/graph/confirmation.d.ts +8 -0
- package/dist/src/client/types/app/bsky/graph/follow.d.ts +6 -0
- package/dist/src/client/types/app/bsky/graph/getAssertions.d.ts +43 -0
- package/dist/src/client/types/app/bsky/graph/getFollowers.d.ts +34 -0
- package/dist/src/client/types/app/bsky/graph/getFollows.d.ts +33 -0
- package/dist/src/client/types/app/bsky/graph/getMembers.d.ts +33 -0
- package/dist/src/client/types/app/bsky/graph/getMemberships.d.ts +33 -0
- package/dist/src/client/types/app/bsky/invite.d.ts +10 -0
- package/dist/src/client/types/app/bsky/inviteAccept.d.ts +14 -0
- package/dist/src/client/types/app/bsky/like.d.ts +10 -0
- package/dist/src/client/types/app/bsky/mediaEmbed.d.ts +15 -0
- package/dist/src/client/types/app/bsky/notification/getCount.d.ts +17 -0
- package/dist/src/client/types/app/bsky/notification/list.d.ts +32 -0
- package/dist/src/client/types/app/bsky/notification/updateSeen.d.ts +17 -0
- package/dist/src/client/types/app/bsky/post.d.ts +23 -0
- package/dist/src/client/types/app/bsky/postNotificationsSeen.d.ts +20 -0
- package/dist/src/client/types/app/bsky/profile.d.ts +5 -0
- package/dist/src/client/types/app/bsky/repost.d.ts +10 -0
- package/dist/src/client/types/app/bsky/system/actorScene.d.ts +1 -0
- package/dist/src/client/types/app/bsky/system/actorUser.d.ts +1 -0
- package/dist/src/client/types/app/bsky/system/declRef.d.ts +5 -0
- package/dist/src/client/types/app/bsky/system/declaration.d.ts +4 -0
- package/dist/src/client/types/app/bsky/updateProfile.d.ts +23 -0
- package/dist/src/client/types/com/atproto/account/create.d.ts +41 -0
- package/dist/src/client/types/com/atproto/account/createInviteCode.d.ts +22 -0
- package/dist/src/client/types/com/atproto/account/delete.d.ts +13 -0
- package/dist/src/client/types/com/atproto/account/get.d.ts +12 -0
- package/dist/src/client/types/com/atproto/account/requestPasswordReset.d.ts +17 -0
- package/dist/src/client/types/com/atproto/account/resetPassword.d.ts +24 -0
- package/dist/src/client/types/com/atproto/blob/upload.d.ts +19 -0
- package/dist/src/client/types/com/atproto/createAccount.d.ts +40 -0
- package/dist/src/client/types/com/atproto/createInviteCode.d.ts +20 -0
- package/dist/src/client/types/com/atproto/createSession.d.ts +24 -0
- package/dist/src/client/types/com/atproto/data/uploadFile.d.ts +19 -0
- package/dist/src/client/types/com/atproto/deleteAccount.d.ts +20 -0
- package/dist/src/client/types/com/atproto/deleteSession.d.ts +17 -0
- package/dist/src/client/types/com/atproto/getAccount.d.ts +16 -0
- package/dist/src/client/types/com/atproto/getAccountsConfig.d.ts +17 -0
- package/dist/src/client/types/com/atproto/getSession.d.ts +17 -0
- package/dist/src/client/types/com/atproto/handle/resolve.d.ts +18 -0
- package/dist/src/client/types/com/atproto/refreshSession.d.ts +20 -0
- package/dist/src/client/types/com/atproto/repo/batchWrite.d.ts +39 -0
- package/dist/src/client/types/com/atproto/repo/createRecord.d.ts +26 -0
- package/dist/src/client/types/com/atproto/repo/deleteRecord.d.ts +19 -0
- package/dist/src/client/types/com/atproto/repo/describe.d.ts +22 -0
- package/dist/src/client/types/com/atproto/repo/getRecord.d.ts +23 -0
- package/dist/src/client/types/com/atproto/repo/listRecords.d.ts +30 -0
- package/dist/src/client/types/com/atproto/repo/putRecord.d.ts +27 -0
- package/dist/src/client/types/com/atproto/repo/strongRef.d.ts +5 -0
- package/dist/src/client/types/com/atproto/repoBatchWrite.d.ts +36 -0
- package/dist/src/client/types/com/atproto/repoCreateRecord.d.ts +24 -0
- package/dist/src/client/types/com/atproto/repoDeleteRecord.d.ts +18 -0
- package/dist/src/client/types/com/atproto/repoDescribe.d.ts +21 -0
- package/dist/src/client/types/com/atproto/repoGetRecord.d.ts +22 -0
- package/dist/src/client/types/com/atproto/repoListRecords.d.ts +27 -0
- package/dist/src/client/types/com/atproto/repoPutRecord.d.ts +25 -0
- package/dist/src/client/types/com/atproto/requestAccountPasswordReset.d.ts +19 -0
- package/dist/src/client/types/com/atproto/resetAccountPassword.d.ts +26 -0
- package/dist/src/client/types/com/atproto/resolveHandle.d.ts +17 -0
- package/dist/src/client/types/com/atproto/resolveName.d.ts +17 -0
- package/dist/src/client/types/com/atproto/server/getAccountsConfig.d.ts +24 -0
- package/dist/src/client/types/com/atproto/session/create.d.ts +29 -0
- package/dist/src/client/types/com/atproto/session/delete.d.ts +13 -0
- package/dist/src/client/types/com/atproto/session/get.d.ts +18 -0
- package/dist/src/client/types/com/atproto/session/refresh.d.ts +24 -0
- package/dist/src/client/types/com/atproto/sync/getRepo.d.ts +15 -0
- package/dist/src/client/types/com/atproto/sync/getRoot.d.ts +18 -0
- package/dist/src/client/types/com/atproto/sync/updateRepo.d.ts +15 -0
- package/dist/src/client/types/com/atproto/syncGetRepo.d.ts +15 -0
- package/dist/src/client/types/com/atproto/syncGetRoot.d.ts +17 -0
- package/dist/src/client/types/com/atproto/syncUpdateRepo.d.ts +15 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/schemas.d.ts +19 -0
- package/dist/src/session.d.ts +42 -0
- package/dist/src/types/app/bsky/badge.d.ts +22 -0
- package/dist/src/types/app/bsky/badgeAccept.d.ts +11 -0
- package/dist/src/types/app/bsky/badgeOffer.d.ts +11 -0
- package/dist/src/types/app/bsky/declaration.d.ts +6 -0
- package/dist/src/types/app/bsky/follow.d.ts +9 -0
- package/dist/src/types/app/bsky/getAuthorFeed.d.ts +56 -0
- package/dist/src/types/app/bsky/getBadgeMembers.d.ts +29 -0
- package/dist/src/types/app/bsky/getHomeFeed.d.ts +56 -0
- package/dist/src/types/app/bsky/getLikedBy.d.ts +29 -0
- package/dist/src/types/app/bsky/getNotificationCount.d.ts +16 -0
- package/dist/src/types/app/bsky/getNotifications.d.ts +33 -0
- package/dist/src/types/app/bsky/getPostThread.d.ts +55 -0
- package/dist/src/types/app/bsky/getProfile.d.ts +42 -0
- package/dist/src/types/app/bsky/getRepostedBy.d.ts +29 -0
- package/dist/src/types/app/bsky/getUserFollowers.d.ts +31 -0
- package/dist/src/types/app/bsky/getUserFollows.d.ts +31 -0
- package/dist/src/types/app/bsky/getUsersSearch.d.ts +26 -0
- package/dist/src/types/app/bsky/getUsersTypeahead.d.ts +22 -0
- package/dist/src/types/app/bsky/invite.d.ts +10 -0
- package/dist/src/types/app/bsky/inviteAccept.d.ts +14 -0
- package/dist/src/types/app/bsky/like.d.ts +10 -0
- package/dist/src/types/app/bsky/mediaEmbed.d.ts +15 -0
- package/dist/src/types/app/bsky/post.d.ts +23 -0
- package/dist/src/types/app/bsky/postNotificationsSeen.d.ts +19 -0
- package/dist/src/types/app/bsky/profile.d.ts +11 -0
- package/dist/src/types/app/bsky/repost.d.ts +10 -0
- package/dist/src/types/app/bsky/updateProfile.d.ts +27 -0
- package/dist/src/types/com/atproto/createAccount.d.ts +39 -0
- package/dist/src/types/com/atproto/createInviteCode.d.ts +19 -0
- package/dist/src/types/com/atproto/createSession.d.ts +23 -0
- package/dist/src/types/com/atproto/deleteAccount.d.ts +19 -0
- package/dist/src/types/com/atproto/deleteSession.d.ts +16 -0
- package/dist/src/types/com/atproto/getAccount.d.ts +19 -0
- package/dist/src/types/com/atproto/getAccountsConfig.d.ts +17 -0
- package/dist/src/types/com/atproto/getSession.d.ts +17 -0
- package/dist/src/types/com/atproto/refreshSession.d.ts +19 -0
- package/dist/src/types/com/atproto/repoBatchWrite.d.ts +35 -0
- package/dist/src/types/com/atproto/repoCreateRecord.d.ts +23 -0
- package/dist/src/types/com/atproto/repoDeleteRecord.d.ts +15 -0
- package/dist/src/types/com/atproto/repoDescribe.d.ts +21 -0
- package/dist/src/types/com/atproto/repoGetRecord.d.ts +22 -0
- package/dist/src/types/com/atproto/repoListRecords.d.ts +27 -0
- package/dist/src/types/com/atproto/repoPutRecord.d.ts +24 -0
- package/dist/src/types/com/atproto/requestAccountPasswordReset.d.ts +18 -0
- package/dist/src/types/com/atproto/resetAccountPassword.d.ts +25 -0
- package/dist/src/types/com/atproto/resolveName.d.ts +17 -0
- package/dist/src/types/com/atproto/syncGetRepo.d.ts +15 -0
- package/dist/src/types/com/atproto/syncGetRoot.d.ts +17 -0
- package/dist/src/types/com/atproto/syncUpdateRepo.d.ts +14 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/package.json +1 -1
- package/src/client/index.ts +236 -142
- package/src/client/lexicons.ts +1151 -443
- package/src/client/types/app/bsky/actor/getProfile.ts +0 -2
- package/src/client/types/app/bsky/actor/search.ts +1 -1
- package/src/client/types/app/bsky/actor/searchTypeahead.ts +1 -1
- package/src/client/types/app/bsky/actor/updateProfile.ts +0 -1
- package/src/client/types/app/bsky/feed/feedViewPost.ts +1 -19
- package/src/client/types/app/bsky/graph/getFollows.ts +1 -0
- package/src/client/types/app/bsky/notification/list.ts +1 -2
- package/src/client/types/app/bsky/system/declRef.ts +1 -4
- package/src/client/types/app/bsky/system/declaration.ts +1 -4
- package/src/client/types/com/atproto/admin/getModerationAction.ts +31 -0
- package/src/client/types/com/atproto/admin/getModerationActions.ts +38 -0
- package/src/client/types/com/atproto/admin/getModerationReport.ts +31 -0
- package/src/client/types/com/atproto/admin/getModerationReports.ts +39 -0
- package/src/client/types/com/atproto/admin/getRecord.ts +32 -0
- package/src/client/types/com/atproto/admin/getRepo.ts +31 -0
- package/src/client/types/com/atproto/admin/moderationAction.ts +99 -0
- package/src/client/types/com/atproto/admin/moderationReport.ts +64 -0
- package/src/client/types/com/atproto/admin/record.ts +89 -0
- package/src/client/types/com/atproto/admin/repo.ts +103 -0
- package/src/client/types/com/atproto/admin/resolveModerationReports.ts +37 -0
- package/src/client/types/com/atproto/admin/reverseModerationAction.ts +37 -0
- package/src/client/types/com/atproto/admin/searchRepos.ts +38 -0
- package/src/client/types/com/atproto/admin/takeModerationAction.ts +47 -0
- package/src/client/types/com/atproto/repo/recordRef.ts +25 -0
- package/src/client/types/com/atproto/repo/repoRef.ts +24 -0
- package/src/client/types/com/atproto/report/create.ts +54 -0
- package/src/client/types/com/atproto/report/reasonType.ts +16 -0
- package/src/client/types/com/atproto/report/subject.ts +66 -0
- package/src/client/types/com/atproto/session/create.ts +9 -1
- package/src/client/types/com/atproto/session/refresh.ts +7 -0
- package/src/client/types/com/atproto/sync/{updateRepo.ts → getCheckout.ts} +4 -3
- package/src/client/types/com/atproto/sync/getCommitPath.ts +39 -0
- package/src/client/types/com/atproto/sync/{getRoot.ts → getHead.ts} +0 -0
- package/src/client/types/com/atproto/sync/getRecord.ts +34 -0
- package/tsconfig.build.tsbuildinfo +1 -1
- package/src/client/types/app/bsky/actor/createScene.ts +0 -55
- package/src/client/types/app/bsky/feed/trend.ts +0 -26
- package/src/client/types/app/bsky/graph/getAssertions.ts +0 -85
- package/src/client/types/app/bsky/graph/getMembers.ts +0 -62
- package/src/client/types/app/bsky/graph/getMemberships.ts +0 -62
- package/src/client/types/app/bsky/system/actorScene.ts +0 -9
package/dist/index.js
CHANGED
|
@@ -5,6 +5,9 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __commonJS = (cb, mod2) => function __require() {
|
|
9
|
+
return mod2 || (0, cb[__getOwnPropNames(cb)[0]])((mod2 = { exports: {} }).exports, mod2), mod2.exports;
|
|
10
|
+
};
|
|
8
11
|
var __export = (target, all) => {
|
|
9
12
|
for (var name in all)
|
|
10
13
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -23,6 +26,55 @@ var __toESM = (mod2, isNodeMode, target) => (target = mod2 != null ? __create(__
|
|
|
23
26
|
));
|
|
24
27
|
var __toCommonJS = (mod2) => __copyProps(__defProp({}, "__esModule", { value: true }), mod2);
|
|
25
28
|
|
|
29
|
+
// ../../node_modules/iso-datestring-validator/dist/index.js
|
|
30
|
+
var require_dist = __commonJS({
|
|
31
|
+
"../../node_modules/iso-datestring-validator/dist/index.js"(exports) {
|
|
32
|
+
(() => {
|
|
33
|
+
"use strict";
|
|
34
|
+
var e = { d: (t2, r2) => {
|
|
35
|
+
for (var n2 in r2)
|
|
36
|
+
e.o(r2, n2) && !e.o(t2, n2) && Object.defineProperty(t2, n2, { enumerable: true, get: r2[n2] });
|
|
37
|
+
}, o: (e2, t2) => Object.prototype.hasOwnProperty.call(e2, t2), r: (e2) => {
|
|
38
|
+
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e2, "__esModule", { value: true });
|
|
39
|
+
} }, t = {};
|
|
40
|
+
function r(e2, t2) {
|
|
41
|
+
return void 0 === t2 && (t2 = "-"), new RegExp("^(?!0{4}" + t2 + "0{2}" + t2 + "0{2})((?=[0-9]{4}" + t2 + "(((0[^2])|1[0-2])|02(?=" + t2 + "(([0-1][0-9])|2[0-8])))" + t2 + "[0-9]{2})|(?=((([13579][26])|([2468][048])|(0[48]))0{2})|([0-9]{2}((((0|[2468])[48])|[2468][048])|([13579][26])))" + t2 + "02" + t2 + "29))([0-9]{4})" + t2 + "(?!((0[469])|11)" + t2 + "31)((0[1,3-9]|1[0-2])|(02(?!" + t2 + "3)))" + t2 + "(0[1-9]|[1-2][0-9]|3[0-1])$").test(e2);
|
|
42
|
+
}
|
|
43
|
+
function n(e2) {
|
|
44
|
+
var t2 = /\D/.exec(e2);
|
|
45
|
+
return t2 ? t2[0] : "";
|
|
46
|
+
}
|
|
47
|
+
function i(e2, t2, r2) {
|
|
48
|
+
void 0 === t2 && (t2 = ":"), void 0 === r2 && (r2 = false);
|
|
49
|
+
var i2 = new RegExp("^([0-1]|2(?=([0-3])|4" + t2 + "00))[0-9]" + t2 + "[0-5][0-9](" + t2 + "([0-5]|6(?=0))[0-9])?(.[0-9]{1,9})?$");
|
|
50
|
+
if (!r2 || !/[Z+\-]/.test(e2))
|
|
51
|
+
return i2.test(e2);
|
|
52
|
+
if (/Z$/.test(e2))
|
|
53
|
+
return i2.test(e2.replace("Z", ""));
|
|
54
|
+
var o2 = e2.includes("+"), a2 = e2.split(/[+-]/), u2 = a2[0], d2 = a2[1];
|
|
55
|
+
return i2.test(u2) && function(e3, t3, r3) {
|
|
56
|
+
return void 0 === r3 && (r3 = ":"), new RegExp(t3 ? "^(0(?!(2" + r3 + "4)|0" + r3 + "3)|1(?=([0-1]|2(?=" + r3 + "[04])|[34](?=" + r3 + "0))))([03469](?=" + r3 + "[03])|[17](?=" + r3 + "0)|2(?=" + r3 + "[04])|5(?=" + r3 + "[034])|8(?=" + r3 + "[04]))" + r3 + "([03](?=0)|4(?=5))[05]$" : "^(0(?=[^0])|1(?=[0-2]))([39](?=" + r3 + "[03])|[0-24-8](?=" + r3 + "00))" + r3 + "[03]0$").test(e3);
|
|
57
|
+
}(d2, o2, n(d2));
|
|
58
|
+
}
|
|
59
|
+
function o(e2) {
|
|
60
|
+
var t2 = e2.split("T"), o2 = t2[0], a2 = t2[1], u2 = r(o2, n(o2));
|
|
61
|
+
if (!a2)
|
|
62
|
+
return false;
|
|
63
|
+
var d2, s = (d2 = a2.match(/([^Z+\-\d])(?=\d+\1)/), Array.isArray(d2) ? d2[0] : "");
|
|
64
|
+
return u2 && i(a2, s, true);
|
|
65
|
+
}
|
|
66
|
+
function a(e2, t2) {
|
|
67
|
+
return void 0 === t2 && (t2 = "-"), new RegExp("^[0-9]{4}" + t2 + "(0(?=[^0])|1(?=[0-2]))[0-9]$").test(e2);
|
|
68
|
+
}
|
|
69
|
+
e.r(t), e.d(t, { isValidDate: () => r, isValidISODateString: () => o, isValidTime: () => i, isValidYearMonth: () => a });
|
|
70
|
+
var u = exports;
|
|
71
|
+
for (var d in t)
|
|
72
|
+
u[d] = t[d];
|
|
73
|
+
t.__esModule && Object.defineProperty(u, "__esModule", { value: true });
|
|
74
|
+
})();
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
|
|
26
78
|
// src/index.ts
|
|
27
79
|
var src_exports = {};
|
|
28
80
|
__export(src_exports, {
|
|
@@ -30,7 +82,7 @@ __export(src_exports, {
|
|
|
30
82
|
APP_BSKY_SYSTEM: () => APP_BSKY_SYSTEM,
|
|
31
83
|
AccountNS: () => AccountNS,
|
|
32
84
|
ActorNS: () => ActorNS,
|
|
33
|
-
|
|
85
|
+
AdminNS: () => AdminNS,
|
|
34
86
|
AppBskyActorGetProfile: () => getProfile_exports,
|
|
35
87
|
AppBskyActorGetSuggestions: () => getSuggestions_exports,
|
|
36
88
|
AppBskyActorProfile: () => profile_exports,
|
|
@@ -49,25 +101,20 @@ __export(src_exports, {
|
|
|
49
101
|
AppBskyFeedPost: () => post_exports,
|
|
50
102
|
AppBskyFeedRepost: () => repost_exports,
|
|
51
103
|
AppBskyFeedSetVote: () => setVote_exports,
|
|
52
|
-
AppBskyFeedTrend: () => trend_exports,
|
|
53
104
|
AppBskyFeedVote: () => vote_exports,
|
|
54
105
|
AppBskyGraphAssertCreator: () => assertCreator_exports,
|
|
55
106
|
AppBskyGraphAssertMember: () => assertMember_exports,
|
|
56
107
|
AppBskyGraphAssertion: () => assertion_exports,
|
|
57
108
|
AppBskyGraphConfirmation: () => confirmation_exports,
|
|
58
109
|
AppBskyGraphFollow: () => follow_exports,
|
|
59
|
-
AppBskyGraphGetAssertions: () => getAssertions_exports,
|
|
60
110
|
AppBskyGraphGetFollowers: () => getFollowers_exports,
|
|
61
111
|
AppBskyGraphGetFollows: () => getFollows_exports,
|
|
62
|
-
AppBskyGraphGetMembers: () => getMembers_exports,
|
|
63
|
-
AppBskyGraphGetMemberships: () => getMemberships_exports,
|
|
64
112
|
AppBskyGraphGetMutes: () => getMutes_exports,
|
|
65
113
|
AppBskyGraphMute: () => mute_exports,
|
|
66
114
|
AppBskyGraphUnmute: () => unmute_exports,
|
|
67
115
|
AppBskyNotificationGetCount: () => getCount_exports,
|
|
68
116
|
AppBskyNotificationList: () => list_exports,
|
|
69
117
|
AppBskyNotificationUpdateSeen: () => updateSeen_exports,
|
|
70
|
-
AppBskySystemActorScene: () => actorScene_exports,
|
|
71
118
|
AppBskySystemActorUser: () => actorUser_exports,
|
|
72
119
|
AppBskySystemDeclRef: () => declRef_exports,
|
|
73
120
|
AppBskySystemDeclaration: () => declaration_exports,
|
|
@@ -76,6 +123,8 @@ __export(src_exports, {
|
|
|
76
123
|
AtprotoNS: () => AtprotoNS,
|
|
77
124
|
BlobNS: () => BlobNS,
|
|
78
125
|
BskyNS: () => BskyNS,
|
|
126
|
+
COM_ATPROTO_ADMIN: () => COM_ATPROTO_ADMIN,
|
|
127
|
+
COM_ATPROTO_REPORT: () => COM_ATPROTO_REPORT,
|
|
79
128
|
Client: () => Client2,
|
|
80
129
|
ComAtprotoAccountCreate: () => create_exports,
|
|
81
130
|
ComAtprotoAccountCreateInviteCode: () => createInviteCode_exports,
|
|
@@ -83,24 +132,45 @@ __export(src_exports, {
|
|
|
83
132
|
ComAtprotoAccountGet: () => get_exports,
|
|
84
133
|
ComAtprotoAccountRequestPasswordReset: () => requestPasswordReset_exports,
|
|
85
134
|
ComAtprotoAccountResetPassword: () => resetPassword_exports,
|
|
135
|
+
ComAtprotoAdminGetModerationAction: () => getModerationAction_exports,
|
|
136
|
+
ComAtprotoAdminGetModerationActions: () => getModerationActions_exports,
|
|
137
|
+
ComAtprotoAdminGetModerationReport: () => getModerationReport_exports,
|
|
138
|
+
ComAtprotoAdminGetModerationReports: () => getModerationReports_exports,
|
|
139
|
+
ComAtprotoAdminGetRecord: () => getRecord_exports,
|
|
140
|
+
ComAtprotoAdminGetRepo: () => getRepo_exports,
|
|
141
|
+
ComAtprotoAdminModerationAction: () => moderationAction_exports,
|
|
142
|
+
ComAtprotoAdminModerationReport: () => moderationReport_exports,
|
|
143
|
+
ComAtprotoAdminRecord: () => record_exports,
|
|
144
|
+
ComAtprotoAdminRepo: () => repo_exports,
|
|
145
|
+
ComAtprotoAdminResolveModerationReports: () => resolveModerationReports_exports,
|
|
146
|
+
ComAtprotoAdminReverseModerationAction: () => reverseModerationAction_exports,
|
|
147
|
+
ComAtprotoAdminSearchRepos: () => searchRepos_exports,
|
|
148
|
+
ComAtprotoAdminTakeModerationAction: () => takeModerationAction_exports,
|
|
86
149
|
ComAtprotoBlobUpload: () => upload_exports,
|
|
87
150
|
ComAtprotoHandleResolve: () => resolve_exports,
|
|
88
151
|
ComAtprotoRepoBatchWrite: () => batchWrite_exports,
|
|
89
152
|
ComAtprotoRepoCreateRecord: () => createRecord_exports,
|
|
90
153
|
ComAtprotoRepoDeleteRecord: () => deleteRecord_exports,
|
|
91
154
|
ComAtprotoRepoDescribe: () => describe_exports,
|
|
92
|
-
ComAtprotoRepoGetRecord: () =>
|
|
155
|
+
ComAtprotoRepoGetRecord: () => getRecord_exports2,
|
|
93
156
|
ComAtprotoRepoListRecords: () => listRecords_exports,
|
|
94
157
|
ComAtprotoRepoPutRecord: () => putRecord_exports,
|
|
158
|
+
ComAtprotoRepoRecordRef: () => recordRef_exports,
|
|
159
|
+
ComAtprotoRepoRepoRef: () => repoRef_exports,
|
|
95
160
|
ComAtprotoRepoStrongRef: () => strongRef_exports,
|
|
161
|
+
ComAtprotoReportCreate: () => create_exports2,
|
|
162
|
+
ComAtprotoReportReasonType: () => reasonType_exports,
|
|
163
|
+
ComAtprotoReportSubject: () => subject_exports,
|
|
96
164
|
ComAtprotoServerGetAccountsConfig: () => getAccountsConfig_exports,
|
|
97
|
-
ComAtprotoSessionCreate: () =>
|
|
165
|
+
ComAtprotoSessionCreate: () => create_exports3,
|
|
98
166
|
ComAtprotoSessionDelete: () => delete_exports2,
|
|
99
167
|
ComAtprotoSessionGet: () => get_exports2,
|
|
100
168
|
ComAtprotoSessionRefresh: () => refresh_exports,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
169
|
+
ComAtprotoSyncGetCheckout: () => getCheckout_exports,
|
|
170
|
+
ComAtprotoSyncGetCommitPath: () => getCommitPath_exports,
|
|
171
|
+
ComAtprotoSyncGetHead: () => getHead_exports,
|
|
172
|
+
ComAtprotoSyncGetRecord: () => getRecord_exports3,
|
|
173
|
+
ComAtprotoSyncGetRepo: () => getRepo_exports2,
|
|
104
174
|
ComNS: () => ComNS,
|
|
105
175
|
ConfirmationRecord: () => ConfirmationRecord,
|
|
106
176
|
DeclarationRecord: () => DeclarationRecord,
|
|
@@ -113,6 +183,7 @@ __export(src_exports, {
|
|
|
113
183
|
PostRecord: () => PostRecord,
|
|
114
184
|
ProfileRecord: () => ProfileRecord,
|
|
115
185
|
RepoNS: () => RepoNS,
|
|
186
|
+
ReportNS: () => ReportNS,
|
|
116
187
|
RepostRecord: () => RepostRecord,
|
|
117
188
|
ServerNS: () => ServerNS,
|
|
118
189
|
ServiceClient: () => ServiceClient2,
|
|
@@ -123,7 +194,6 @@ __export(src_exports, {
|
|
|
123
194
|
SessionXrpcServiceClient: () => SessionXrpcServiceClient,
|
|
124
195
|
SyncNS: () => SyncNS,
|
|
125
196
|
SystemNS: () => SystemNS,
|
|
126
|
-
TrendRecord: () => TrendRecord,
|
|
127
197
|
VoteRecord: () => VoteRecord,
|
|
128
198
|
default: () => client_default,
|
|
129
199
|
sessionClient: () => session_default
|
|
@@ -3283,6 +3353,11 @@ var lexArray = mod.object({
|
|
|
3283
3353
|
minLength: mod.number().int().optional(),
|
|
3284
3354
|
maxLength: mod.number().int().optional()
|
|
3285
3355
|
});
|
|
3356
|
+
var lexPrimitiveArray = lexArray.merge(
|
|
3357
|
+
mod.object({
|
|
3358
|
+
items: lexPrimitive
|
|
3359
|
+
})
|
|
3360
|
+
);
|
|
3286
3361
|
var lexToken = mod.object({
|
|
3287
3362
|
type: mod.literal("token"),
|
|
3288
3363
|
description: mod.string().optional()
|
|
@@ -3297,7 +3372,7 @@ var lexXrpcParameters = mod.object({
|
|
|
3297
3372
|
type: mod.literal("params"),
|
|
3298
3373
|
description: mod.string().optional(),
|
|
3299
3374
|
required: mod.string().array().optional(),
|
|
3300
|
-
properties: mod.record(lexPrimitive)
|
|
3375
|
+
properties: mod.record(mod.union([lexPrimitive, lexPrimitiveArray]))
|
|
3301
3376
|
});
|
|
3302
3377
|
var lexXrpcBody = mod.object({
|
|
3303
3378
|
description: mod.string().optional(),
|
|
@@ -3393,6 +3468,7 @@ var LexiconDefNotFoundError = class extends Error {
|
|
|
3393
3468
|
};
|
|
3394
3469
|
|
|
3395
3470
|
// ../lexicon/src/validators/primitives.ts
|
|
3471
|
+
var import_iso_datestring_validator = __toESM(require_dist());
|
|
3396
3472
|
function validate(lexicons2, path, def, value) {
|
|
3397
3473
|
switch (def.type) {
|
|
3398
3474
|
case "boolean":
|
|
@@ -3580,8 +3656,7 @@ function datetime(lexicons2, path, def, value) {
|
|
|
3580
3656
|
}
|
|
3581
3657
|
{
|
|
3582
3658
|
try {
|
|
3583
|
-
|
|
3584
|
-
if (value !== date.toISOString()) {
|
|
3659
|
+
if (typeof value !== "string" || !(0, import_iso_datestring_validator.isValidISODateString)(value)) {
|
|
3585
3660
|
throw new ValidationError(
|
|
3586
3661
|
`${path} must be an iso8601 formatted datetime`
|
|
3587
3662
|
);
|
|
@@ -3669,7 +3744,6 @@ function validate2(lexicons2, path, def, value) {
|
|
|
3669
3744
|
}
|
|
3670
3745
|
}
|
|
3671
3746
|
function array(lexicons2, path, def, value) {
|
|
3672
|
-
def = def;
|
|
3673
3747
|
if (!Array.isArray(value)) {
|
|
3674
3748
|
return {
|
|
3675
3749
|
success: false,
|
|
@@ -3717,7 +3791,7 @@ function object(lexicons2, path, def, value) {
|
|
|
3717
3791
|
}
|
|
3718
3792
|
if (Array.isArray(def.required)) {
|
|
3719
3793
|
for (const key of def.required) {
|
|
3720
|
-
if (
|
|
3794
|
+
if (typeof value[key] === "undefined") {
|
|
3721
3795
|
return {
|
|
3722
3796
|
success: false,
|
|
3723
3797
|
error: new ValidationError(`${path} must have the property "${key}"`)
|
|
@@ -3821,13 +3895,12 @@ function toConcreteTypes(lexicons2, def) {
|
|
|
3821
3895
|
|
|
3822
3896
|
// ../lexicon/src/validators/xrpc.ts
|
|
3823
3897
|
function params(lexicons2, path, def, value) {
|
|
3824
|
-
def = def;
|
|
3825
3898
|
if (!value || typeof value !== "object") {
|
|
3826
3899
|
value = {};
|
|
3827
3900
|
}
|
|
3828
3901
|
if (Array.isArray(def.required)) {
|
|
3829
3902
|
for (const key of def.required) {
|
|
3830
|
-
if (
|
|
3903
|
+
if (typeof value[key] === "undefined") {
|
|
3831
3904
|
return {
|
|
3832
3905
|
success: false,
|
|
3833
3906
|
error: new ValidationError(`${path} must have the property "${key}"`)
|
|
@@ -3840,12 +3913,8 @@ function params(lexicons2, path, def, value) {
|
|
|
3840
3913
|
continue;
|
|
3841
3914
|
}
|
|
3842
3915
|
const paramDef = def.properties[key];
|
|
3843
|
-
const
|
|
3844
|
-
|
|
3845
|
-
key,
|
|
3846
|
-
paramDef,
|
|
3847
|
-
value[key]
|
|
3848
|
-
);
|
|
3916
|
+
const val = value[key];
|
|
3917
|
+
const res = paramDef.type === "array" ? array(lexicons2, key, paramDef, val) : validate(lexicons2, key, paramDef, val);
|
|
3849
3918
|
if (!res.success) {
|
|
3850
3919
|
return res;
|
|
3851
3920
|
}
|
|
@@ -4038,7 +4107,17 @@ function constructMethodCallUri(nsid, schema, serviceUri, params2) {
|
|
|
4038
4107
|
throw new Error(`Invalid query parameter: ${key}`);
|
|
4039
4108
|
}
|
|
4040
4109
|
if (value !== void 0) {
|
|
4041
|
-
|
|
4110
|
+
if (paramSchema.type === "array") {
|
|
4111
|
+
const vals = [];
|
|
4112
|
+
vals.concat(value).forEach((val) => {
|
|
4113
|
+
uri.searchParams.append(
|
|
4114
|
+
key,
|
|
4115
|
+
encodeQueryParam(paramSchema.items.type, val)
|
|
4116
|
+
);
|
|
4117
|
+
});
|
|
4118
|
+
} else {
|
|
4119
|
+
uri.searchParams.set(key, encodeQueryParam(paramSchema.type, value));
|
|
4120
|
+
}
|
|
4042
4121
|
}
|
|
4043
4122
|
}
|
|
4044
4123
|
}
|
|
@@ -4216,11 +4295,13 @@ var ServiceClient = class {
|
|
|
4216
4295
|
};
|
|
4217
4296
|
async function defaultFetchHandler(httpUri, httpMethod, httpHeaders, httpReqBody) {
|
|
4218
4297
|
try {
|
|
4219
|
-
const
|
|
4298
|
+
const reqInit = {
|
|
4220
4299
|
method: httpMethod,
|
|
4221
4300
|
headers: httpHeaders,
|
|
4222
|
-
body: encodeMethodCallBody(httpHeaders, httpReqBody)
|
|
4223
|
-
|
|
4301
|
+
body: encodeMethodCallBody(httpHeaders, httpReqBody),
|
|
4302
|
+
duplex: "half"
|
|
4303
|
+
};
|
|
4304
|
+
const res = await fetch(httpUri, reqInit);
|
|
4224
4305
|
const resBody = await res.arrayBuffer();
|
|
4225
4306
|
return {
|
|
4226
4307
|
status: res.status,
|
|
@@ -4418,44 +4499,53 @@ var schemaDict = {
|
|
|
4418
4499
|
}
|
|
4419
4500
|
}
|
|
4420
4501
|
},
|
|
4421
|
-
|
|
4502
|
+
ComAtprotoAdminGetModerationAction: {
|
|
4422
4503
|
lexicon: 1,
|
|
4423
|
-
id: "com.atproto.
|
|
4504
|
+
id: "com.atproto.admin.getModerationAction",
|
|
4424
4505
|
defs: {
|
|
4425
4506
|
main: {
|
|
4426
|
-
type: "
|
|
4427
|
-
description: "
|
|
4428
|
-
|
|
4429
|
-
|
|
4507
|
+
type: "query",
|
|
4508
|
+
description: "View details about a moderation action.",
|
|
4509
|
+
parameters: {
|
|
4510
|
+
type: "params",
|
|
4511
|
+
required: ["id"],
|
|
4512
|
+
properties: {
|
|
4513
|
+
id: {
|
|
4514
|
+
type: "number"
|
|
4515
|
+
}
|
|
4516
|
+
}
|
|
4430
4517
|
},
|
|
4431
4518
|
output: {
|
|
4432
4519
|
encoding: "application/json",
|
|
4433
4520
|
schema: {
|
|
4434
|
-
type: "
|
|
4435
|
-
|
|
4436
|
-
properties: {
|
|
4437
|
-
cid: {
|
|
4438
|
-
type: "string"
|
|
4439
|
-
}
|
|
4440
|
-
}
|
|
4521
|
+
type: "ref",
|
|
4522
|
+
ref: "lex:com.atproto.admin.moderationAction#viewDetail"
|
|
4441
4523
|
}
|
|
4442
4524
|
}
|
|
4443
4525
|
}
|
|
4444
4526
|
}
|
|
4445
4527
|
},
|
|
4446
|
-
|
|
4528
|
+
ComAtprotoAdminGetModerationActions: {
|
|
4447
4529
|
lexicon: 1,
|
|
4448
|
-
id: "com.atproto.
|
|
4530
|
+
id: "com.atproto.admin.getModerationActions",
|
|
4449
4531
|
defs: {
|
|
4450
4532
|
main: {
|
|
4451
4533
|
type: "query",
|
|
4452
|
-
description: "
|
|
4534
|
+
description: "List moderation actions related to a subject.",
|
|
4453
4535
|
parameters: {
|
|
4454
4536
|
type: "params",
|
|
4455
4537
|
properties: {
|
|
4456
|
-
|
|
4457
|
-
type: "string"
|
|
4458
|
-
|
|
4538
|
+
subject: {
|
|
4539
|
+
type: "string"
|
|
4540
|
+
},
|
|
4541
|
+
limit: {
|
|
4542
|
+
type: "integer",
|
|
4543
|
+
minimum: 1,
|
|
4544
|
+
maximum: 100,
|
|
4545
|
+
default: 50
|
|
4546
|
+
},
|
|
4547
|
+
before: {
|
|
4548
|
+
type: "string"
|
|
4459
4549
|
}
|
|
4460
4550
|
}
|
|
4461
4551
|
},
|
|
@@ -4463,10 +4553,17 @@ var schemaDict = {
|
|
|
4463
4553
|
encoding: "application/json",
|
|
4464
4554
|
schema: {
|
|
4465
4555
|
type: "object",
|
|
4466
|
-
required: ["
|
|
4556
|
+
required: ["actions"],
|
|
4467
4557
|
properties: {
|
|
4468
|
-
|
|
4558
|
+
cursor: {
|
|
4469
4559
|
type: "string"
|
|
4560
|
+
},
|
|
4561
|
+
actions: {
|
|
4562
|
+
type: "array",
|
|
4563
|
+
items: {
|
|
4564
|
+
type: "ref",
|
|
4565
|
+
ref: "lex:com.atproto.admin.moderationAction#view"
|
|
4566
|
+
}
|
|
4470
4567
|
}
|
|
4471
4568
|
}
|
|
4472
4569
|
}
|
|
@@ -4474,130 +4571,56 @@ var schemaDict = {
|
|
|
4474
4571
|
}
|
|
4475
4572
|
}
|
|
4476
4573
|
},
|
|
4477
|
-
|
|
4574
|
+
ComAtprotoAdminGetModerationReport: {
|
|
4478
4575
|
lexicon: 1,
|
|
4479
|
-
id: "com.atproto.
|
|
4576
|
+
id: "com.atproto.admin.getModerationReport",
|
|
4480
4577
|
defs: {
|
|
4481
4578
|
main: {
|
|
4482
|
-
type: "
|
|
4483
|
-
description: "
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
did: {
|
|
4491
|
-
type: "string",
|
|
4492
|
-
description: "The DID of the repo."
|
|
4493
|
-
},
|
|
4494
|
-
validate: {
|
|
4495
|
-
type: "boolean",
|
|
4496
|
-
default: true,
|
|
4497
|
-
description: "Validate the records?"
|
|
4498
|
-
},
|
|
4499
|
-
writes: {
|
|
4500
|
-
type: "array",
|
|
4501
|
-
items: {
|
|
4502
|
-
type: "union",
|
|
4503
|
-
refs: [
|
|
4504
|
-
"lex:com.atproto.repo.batchWrite#create",
|
|
4505
|
-
"lex:com.atproto.repo.batchWrite#update",
|
|
4506
|
-
"lex:com.atproto.repo.batchWrite#delete"
|
|
4507
|
-
],
|
|
4508
|
-
closed: true
|
|
4509
|
-
}
|
|
4510
|
-
}
|
|
4579
|
+
type: "query",
|
|
4580
|
+
description: "View details about a moderation report.",
|
|
4581
|
+
parameters: {
|
|
4582
|
+
type: "params",
|
|
4583
|
+
required: ["id"],
|
|
4584
|
+
properties: {
|
|
4585
|
+
id: {
|
|
4586
|
+
type: "number"
|
|
4511
4587
|
}
|
|
4512
4588
|
}
|
|
4513
|
-
}
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
action: {
|
|
4520
|
-
type: "string",
|
|
4521
|
-
const: "create"
|
|
4522
|
-
},
|
|
4523
|
-
collection: {
|
|
4524
|
-
type: "string"
|
|
4525
|
-
},
|
|
4526
|
-
rkey: {
|
|
4527
|
-
type: "string"
|
|
4528
|
-
},
|
|
4529
|
-
value: {
|
|
4530
|
-
type: "unknown"
|
|
4531
|
-
}
|
|
4532
|
-
}
|
|
4533
|
-
},
|
|
4534
|
-
update: {
|
|
4535
|
-
type: "object",
|
|
4536
|
-
required: ["action", "collection", "rkey", "value"],
|
|
4537
|
-
properties: {
|
|
4538
|
-
action: {
|
|
4539
|
-
type: "string",
|
|
4540
|
-
const: "update"
|
|
4541
|
-
},
|
|
4542
|
-
collection: {
|
|
4543
|
-
type: "string"
|
|
4544
|
-
},
|
|
4545
|
-
rkey: {
|
|
4546
|
-
type: "string"
|
|
4547
|
-
},
|
|
4548
|
-
value: {
|
|
4549
|
-
type: "unknown"
|
|
4550
|
-
}
|
|
4551
|
-
}
|
|
4552
|
-
},
|
|
4553
|
-
delete: {
|
|
4554
|
-
type: "object",
|
|
4555
|
-
required: ["action", "collection", "rkey"],
|
|
4556
|
-
properties: {
|
|
4557
|
-
action: {
|
|
4558
|
-
type: "string",
|
|
4559
|
-
const: "delete"
|
|
4560
|
-
},
|
|
4561
|
-
collection: {
|
|
4562
|
-
type: "string"
|
|
4563
|
-
},
|
|
4564
|
-
rkey: {
|
|
4565
|
-
type: "string"
|
|
4589
|
+
},
|
|
4590
|
+
output: {
|
|
4591
|
+
encoding: "application/json",
|
|
4592
|
+
schema: {
|
|
4593
|
+
type: "ref",
|
|
4594
|
+
ref: "lex:com.atproto.admin.moderationReport#viewDetail"
|
|
4566
4595
|
}
|
|
4567
4596
|
}
|
|
4568
4597
|
}
|
|
4569
4598
|
}
|
|
4570
4599
|
},
|
|
4571
|
-
|
|
4600
|
+
ComAtprotoAdminGetModerationReports: {
|
|
4572
4601
|
lexicon: 1,
|
|
4573
|
-
id: "com.atproto.
|
|
4602
|
+
id: "com.atproto.admin.getModerationReports",
|
|
4574
4603
|
defs: {
|
|
4575
4604
|
main: {
|
|
4576
|
-
type: "
|
|
4577
|
-
description: "
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
description: "Validate the record?"
|
|
4596
|
-
},
|
|
4597
|
-
record: {
|
|
4598
|
-
type: "unknown",
|
|
4599
|
-
description: "The record to create."
|
|
4600
|
-
}
|
|
4605
|
+
type: "query",
|
|
4606
|
+
description: "List moderation reports related to a subject.",
|
|
4607
|
+
parameters: {
|
|
4608
|
+
type: "params",
|
|
4609
|
+
properties: {
|
|
4610
|
+
subject: {
|
|
4611
|
+
type: "string"
|
|
4612
|
+
},
|
|
4613
|
+
resolved: {
|
|
4614
|
+
type: "boolean"
|
|
4615
|
+
},
|
|
4616
|
+
limit: {
|
|
4617
|
+
type: "integer",
|
|
4618
|
+
minimum: 1,
|
|
4619
|
+
maximum: 100,
|
|
4620
|
+
default: 50
|
|
4621
|
+
},
|
|
4622
|
+
before: {
|
|
4623
|
+
type: "string"
|
|
4601
4624
|
}
|
|
4602
4625
|
}
|
|
4603
4626
|
},
|
|
@@ -4605,13 +4628,17 @@ var schemaDict = {
|
|
|
4605
4628
|
encoding: "application/json",
|
|
4606
4629
|
schema: {
|
|
4607
4630
|
type: "object",
|
|
4608
|
-
required: ["
|
|
4631
|
+
required: ["reports"],
|
|
4609
4632
|
properties: {
|
|
4610
|
-
|
|
4633
|
+
cursor: {
|
|
4611
4634
|
type: "string"
|
|
4612
4635
|
},
|
|
4613
|
-
|
|
4614
|
-
type: "
|
|
4636
|
+
reports: {
|
|
4637
|
+
type: "array",
|
|
4638
|
+
items: {
|
|
4639
|
+
type: "ref",
|
|
4640
|
+
ref: "lex:com.atproto.admin.moderationReport#view"
|
|
4641
|
+
}
|
|
4615
4642
|
}
|
|
4616
4643
|
}
|
|
4617
4644
|
}
|
|
@@ -4619,64 +4646,920 @@ var schemaDict = {
|
|
|
4619
4646
|
}
|
|
4620
4647
|
}
|
|
4621
4648
|
},
|
|
4622
|
-
|
|
4649
|
+
ComAtprotoAdminGetRecord: {
|
|
4623
4650
|
lexicon: 1,
|
|
4624
|
-
id: "com.atproto.
|
|
4651
|
+
id: "com.atproto.admin.getRecord",
|
|
4625
4652
|
defs: {
|
|
4626
4653
|
main: {
|
|
4627
|
-
type: "
|
|
4628
|
-
description: "
|
|
4629
|
-
|
|
4654
|
+
type: "query",
|
|
4655
|
+
description: "View details about a record.",
|
|
4656
|
+
parameters: {
|
|
4657
|
+
type: "params",
|
|
4658
|
+
required: ["uri"],
|
|
4659
|
+
properties: {
|
|
4660
|
+
uri: {
|
|
4661
|
+
type: "string"
|
|
4662
|
+
},
|
|
4663
|
+
cid: {
|
|
4664
|
+
type: "string"
|
|
4665
|
+
}
|
|
4666
|
+
}
|
|
4667
|
+
},
|
|
4668
|
+
output: {
|
|
4630
4669
|
encoding: "application/json",
|
|
4631
4670
|
schema: {
|
|
4632
|
-
type: "
|
|
4633
|
-
|
|
4634
|
-
properties: {
|
|
4635
|
-
did: {
|
|
4636
|
-
type: "string",
|
|
4637
|
-
description: "The DID of the repo."
|
|
4638
|
-
},
|
|
4639
|
-
collection: {
|
|
4640
|
-
type: "string",
|
|
4641
|
-
description: "The NSID of the record collection."
|
|
4642
|
-
},
|
|
4643
|
-
rkey: {
|
|
4644
|
-
type: "string",
|
|
4645
|
-
description: "The key of the record."
|
|
4646
|
-
}
|
|
4647
|
-
}
|
|
4671
|
+
type: "ref",
|
|
4672
|
+
ref: "lex:com.atproto.admin.record#viewDetail"
|
|
4648
4673
|
}
|
|
4649
4674
|
}
|
|
4650
4675
|
}
|
|
4651
4676
|
}
|
|
4652
4677
|
},
|
|
4653
|
-
|
|
4678
|
+
ComAtprotoAdminGetRepo: {
|
|
4654
4679
|
lexicon: 1,
|
|
4655
|
-
id: "com.atproto.
|
|
4680
|
+
id: "com.atproto.admin.getRepo",
|
|
4656
4681
|
defs: {
|
|
4657
4682
|
main: {
|
|
4658
4683
|
type: "query",
|
|
4659
|
-
description: "
|
|
4684
|
+
description: "View details about a repository.",
|
|
4660
4685
|
parameters: {
|
|
4661
4686
|
type: "params",
|
|
4662
|
-
required: ["
|
|
4687
|
+
required: ["did"],
|
|
4663
4688
|
properties: {
|
|
4664
|
-
|
|
4665
|
-
type: "string"
|
|
4666
|
-
description: "The handle or DID of the repo."
|
|
4689
|
+
did: {
|
|
4690
|
+
type: "string"
|
|
4667
4691
|
}
|
|
4668
4692
|
}
|
|
4669
4693
|
},
|
|
4670
4694
|
output: {
|
|
4671
4695
|
encoding: "application/json",
|
|
4672
4696
|
schema: {
|
|
4673
|
-
type: "
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4697
|
+
type: "ref",
|
|
4698
|
+
ref: "lex:com.atproto.admin.repo#viewDetail"
|
|
4699
|
+
}
|
|
4700
|
+
}
|
|
4701
|
+
}
|
|
4702
|
+
}
|
|
4703
|
+
},
|
|
4704
|
+
ComAtprotoAdminModerationAction: {
|
|
4705
|
+
lexicon: 1,
|
|
4706
|
+
id: "com.atproto.admin.moderationAction",
|
|
4707
|
+
defs: {
|
|
4708
|
+
view: {
|
|
4709
|
+
type: "object",
|
|
4710
|
+
required: [
|
|
4711
|
+
"id",
|
|
4712
|
+
"action",
|
|
4713
|
+
"subject",
|
|
4714
|
+
"reason",
|
|
4715
|
+
"createdBy",
|
|
4716
|
+
"createdAt",
|
|
4717
|
+
"resolvedReportIds"
|
|
4718
|
+
],
|
|
4719
|
+
properties: {
|
|
4720
|
+
id: {
|
|
4721
|
+
type: "integer"
|
|
4722
|
+
},
|
|
4723
|
+
action: {
|
|
4724
|
+
type: "string",
|
|
4725
|
+
knownValues: [
|
|
4726
|
+
"com.atproto.admin.moderationAction#takedown",
|
|
4727
|
+
"com.atproto.admin.moderationAction#flag",
|
|
4728
|
+
"com.atproto.admin.moderationAction#acknowledge"
|
|
4729
|
+
]
|
|
4730
|
+
},
|
|
4731
|
+
subject: {
|
|
4732
|
+
type: "union",
|
|
4733
|
+
refs: [
|
|
4734
|
+
"lex:com.atproto.repo.repoRef",
|
|
4735
|
+
"lex:com.atproto.repo.strongRef"
|
|
4736
|
+
]
|
|
4737
|
+
},
|
|
4738
|
+
reason: {
|
|
4739
|
+
type: "string"
|
|
4740
|
+
},
|
|
4741
|
+
createdBy: {
|
|
4742
|
+
type: "string"
|
|
4743
|
+
},
|
|
4744
|
+
createdAt: {
|
|
4745
|
+
type: "string"
|
|
4746
|
+
},
|
|
4747
|
+
reversal: {
|
|
4748
|
+
type: "ref",
|
|
4749
|
+
ref: "lex:com.atproto.admin.moderationAction#reversal"
|
|
4750
|
+
},
|
|
4751
|
+
resolvedReportIds: {
|
|
4752
|
+
type: "array",
|
|
4753
|
+
items: {
|
|
4754
|
+
type: "integer"
|
|
4755
|
+
}
|
|
4756
|
+
}
|
|
4757
|
+
}
|
|
4758
|
+
},
|
|
4759
|
+
viewDetail: {
|
|
4760
|
+
type: "object",
|
|
4761
|
+
required: [
|
|
4762
|
+
"id",
|
|
4763
|
+
"action",
|
|
4764
|
+
"subject",
|
|
4765
|
+
"reason",
|
|
4766
|
+
"createdBy",
|
|
4767
|
+
"createdAt",
|
|
4768
|
+
"resolvedReports"
|
|
4769
|
+
],
|
|
4770
|
+
properties: {
|
|
4771
|
+
id: {
|
|
4772
|
+
type: "integer"
|
|
4773
|
+
},
|
|
4774
|
+
action: {
|
|
4775
|
+
type: "string",
|
|
4776
|
+
knownValues: [
|
|
4777
|
+
"com.atproto.admin.moderationAction#takedown",
|
|
4778
|
+
"com.atproto.admin.moderationAction#flag",
|
|
4779
|
+
"com.atproto.admin.moderationAction#acknowledge"
|
|
4780
|
+
]
|
|
4781
|
+
},
|
|
4782
|
+
subject: {
|
|
4783
|
+
type: "union",
|
|
4784
|
+
refs: [
|
|
4785
|
+
"lex:com.atproto.admin.repo#view",
|
|
4786
|
+
"lex:com.atproto.admin.record#view"
|
|
4787
|
+
]
|
|
4788
|
+
},
|
|
4789
|
+
reason: {
|
|
4790
|
+
type: "string"
|
|
4791
|
+
},
|
|
4792
|
+
createdBy: {
|
|
4793
|
+
type: "string"
|
|
4794
|
+
},
|
|
4795
|
+
createdAt: {
|
|
4796
|
+
type: "string"
|
|
4797
|
+
},
|
|
4798
|
+
reversal: {
|
|
4799
|
+
type: "ref",
|
|
4800
|
+
ref: "lex:com.atproto.admin.moderationAction#reversal"
|
|
4801
|
+
},
|
|
4802
|
+
resolvedReports: {
|
|
4803
|
+
type: "array",
|
|
4804
|
+
items: {
|
|
4805
|
+
type: "ref",
|
|
4806
|
+
ref: "lex:com.atproto.admin.moderationReport#view"
|
|
4807
|
+
}
|
|
4808
|
+
}
|
|
4809
|
+
}
|
|
4810
|
+
},
|
|
4811
|
+
reversal: {
|
|
4812
|
+
type: "object",
|
|
4813
|
+
required: ["reason", "createdBy", "createdAt"],
|
|
4814
|
+
properties: {
|
|
4815
|
+
reason: {
|
|
4816
|
+
type: "string"
|
|
4817
|
+
},
|
|
4818
|
+
createdBy: {
|
|
4819
|
+
type: "string"
|
|
4820
|
+
},
|
|
4821
|
+
createdAt: {
|
|
4822
|
+
type: "string"
|
|
4823
|
+
}
|
|
4824
|
+
}
|
|
4825
|
+
},
|
|
4826
|
+
takedown: {
|
|
4827
|
+
type: "token",
|
|
4828
|
+
description: "Moderation action type: Takedown. Indicates that content should not be served by the PDS."
|
|
4829
|
+
},
|
|
4830
|
+
flag: {
|
|
4831
|
+
type: "token",
|
|
4832
|
+
description: "Moderation action type: Flag. Indicates that the content was reviewed and considered to violate PDS rules, but may still be served."
|
|
4833
|
+
},
|
|
4834
|
+
acknowledge: {
|
|
4835
|
+
type: "token",
|
|
4836
|
+
description: "Moderation action type: Acknowledge. Indicates that the content was reviewed and not considered to violate PDS rules."
|
|
4837
|
+
}
|
|
4838
|
+
}
|
|
4839
|
+
},
|
|
4840
|
+
ComAtprotoAdminModerationReport: {
|
|
4841
|
+
lexicon: 1,
|
|
4842
|
+
id: "com.atproto.admin.moderationReport",
|
|
4843
|
+
defs: {
|
|
4844
|
+
view: {
|
|
4845
|
+
type: "object",
|
|
4846
|
+
required: [
|
|
4847
|
+
"id",
|
|
4848
|
+
"reasonType",
|
|
4849
|
+
"subject",
|
|
4850
|
+
"reportedByDid",
|
|
4851
|
+
"createdAt",
|
|
4852
|
+
"resolvedByActionIds"
|
|
4853
|
+
],
|
|
4854
|
+
properties: {
|
|
4855
|
+
id: {
|
|
4856
|
+
type: "integer"
|
|
4857
|
+
},
|
|
4858
|
+
reasonType: {
|
|
4859
|
+
type: "ref",
|
|
4860
|
+
ref: "lex:com.atproto.report.reasonType"
|
|
4861
|
+
},
|
|
4862
|
+
reason: {
|
|
4863
|
+
type: "string"
|
|
4864
|
+
},
|
|
4865
|
+
subject: {
|
|
4866
|
+
type: "union",
|
|
4867
|
+
refs: [
|
|
4868
|
+
"lex:com.atproto.repo.repoRef",
|
|
4869
|
+
"lex:com.atproto.repo.strongRef"
|
|
4870
|
+
]
|
|
4871
|
+
},
|
|
4872
|
+
reportedByDid: {
|
|
4873
|
+
type: "string"
|
|
4874
|
+
},
|
|
4875
|
+
createdAt: {
|
|
4876
|
+
type: "datetime"
|
|
4877
|
+
},
|
|
4878
|
+
resolvedByActionIds: {
|
|
4879
|
+
type: "array",
|
|
4880
|
+
items: {
|
|
4881
|
+
type: "integer"
|
|
4882
|
+
}
|
|
4883
|
+
}
|
|
4884
|
+
}
|
|
4885
|
+
},
|
|
4886
|
+
viewDetail: {
|
|
4887
|
+
type: "object",
|
|
4888
|
+
required: [
|
|
4889
|
+
"id",
|
|
4890
|
+
"reasonType",
|
|
4891
|
+
"subject",
|
|
4892
|
+
"reportedByDid",
|
|
4893
|
+
"createdAt",
|
|
4894
|
+
"resolvedByActions"
|
|
4895
|
+
],
|
|
4896
|
+
properties: {
|
|
4897
|
+
id: {
|
|
4898
|
+
type: "integer"
|
|
4899
|
+
},
|
|
4900
|
+
reasonType: {
|
|
4901
|
+
type: "ref",
|
|
4902
|
+
ref: "lex:com.atproto.report.reasonType"
|
|
4903
|
+
},
|
|
4904
|
+
reason: {
|
|
4905
|
+
type: "string"
|
|
4906
|
+
},
|
|
4907
|
+
subject: {
|
|
4908
|
+
type: "union",
|
|
4909
|
+
refs: [
|
|
4910
|
+
"lex:com.atproto.admin.repo#view",
|
|
4911
|
+
"lex:com.atproto.admin.record#view"
|
|
4912
|
+
]
|
|
4913
|
+
},
|
|
4914
|
+
reportedByDid: {
|
|
4915
|
+
type: "string"
|
|
4916
|
+
},
|
|
4917
|
+
createdAt: {
|
|
4918
|
+
type: "datetime"
|
|
4919
|
+
},
|
|
4920
|
+
resolvedByActions: {
|
|
4921
|
+
type: "array",
|
|
4922
|
+
items: {
|
|
4923
|
+
type: "ref",
|
|
4924
|
+
ref: "lex:com.atproto.admin.moderationAction#view"
|
|
4925
|
+
}
|
|
4926
|
+
}
|
|
4927
|
+
}
|
|
4928
|
+
}
|
|
4929
|
+
}
|
|
4930
|
+
},
|
|
4931
|
+
ComAtprotoAdminRecord: {
|
|
4932
|
+
lexicon: 1,
|
|
4933
|
+
id: "com.atproto.admin.record",
|
|
4934
|
+
defs: {
|
|
4935
|
+
view: {
|
|
4936
|
+
type: "object",
|
|
4937
|
+
required: ["uri", "cid", "value", "indexedAt", "moderation", "repo"],
|
|
4938
|
+
properties: {
|
|
4939
|
+
uri: {
|
|
4940
|
+
type: "string"
|
|
4941
|
+
},
|
|
4942
|
+
cid: {
|
|
4943
|
+
type: "string"
|
|
4944
|
+
},
|
|
4945
|
+
value: {
|
|
4946
|
+
type: "unknown"
|
|
4947
|
+
},
|
|
4948
|
+
indexedAt: {
|
|
4949
|
+
type: "string"
|
|
4950
|
+
},
|
|
4951
|
+
moderation: {
|
|
4952
|
+
type: "ref",
|
|
4953
|
+
ref: "lex:com.atproto.admin.record#moderation"
|
|
4954
|
+
},
|
|
4955
|
+
repo: {
|
|
4956
|
+
type: "ref",
|
|
4957
|
+
ref: "lex:com.atproto.admin.repo#view"
|
|
4958
|
+
}
|
|
4959
|
+
}
|
|
4960
|
+
},
|
|
4961
|
+
viewDetail: {
|
|
4962
|
+
type: "object",
|
|
4963
|
+
required: ["uri", "cid", "value", "indexedAt", "moderation", "repo"],
|
|
4964
|
+
properties: {
|
|
4965
|
+
uri: {
|
|
4966
|
+
type: "string"
|
|
4967
|
+
},
|
|
4968
|
+
cid: {
|
|
4969
|
+
type: "string"
|
|
4970
|
+
},
|
|
4971
|
+
value: {
|
|
4972
|
+
type: "unknown"
|
|
4973
|
+
},
|
|
4974
|
+
indexedAt: {
|
|
4975
|
+
type: "string"
|
|
4976
|
+
},
|
|
4977
|
+
moderation: {
|
|
4978
|
+
type: "ref",
|
|
4979
|
+
ref: "lex:com.atproto.admin.record#moderationDetail"
|
|
4980
|
+
},
|
|
4981
|
+
repo: {
|
|
4982
|
+
type: "ref",
|
|
4983
|
+
ref: "lex:com.atproto.admin.repo#view"
|
|
4984
|
+
}
|
|
4985
|
+
}
|
|
4986
|
+
},
|
|
4987
|
+
moderation: {
|
|
4988
|
+
type: "object",
|
|
4989
|
+
required: [],
|
|
4990
|
+
properties: {
|
|
4991
|
+
takedownId: {
|
|
4992
|
+
type: "integer"
|
|
4993
|
+
}
|
|
4994
|
+
}
|
|
4995
|
+
},
|
|
4996
|
+
moderationDetail: {
|
|
4997
|
+
type: "object",
|
|
4998
|
+
required: ["actions", "reports"],
|
|
4999
|
+
properties: {
|
|
5000
|
+
actions: {
|
|
5001
|
+
type: "array",
|
|
5002
|
+
items: {
|
|
5003
|
+
type: "ref",
|
|
5004
|
+
ref: "lex:com.atproto.admin.moderationAction#view"
|
|
5005
|
+
}
|
|
5006
|
+
},
|
|
5007
|
+
reports: {
|
|
5008
|
+
type: "array",
|
|
5009
|
+
items: {
|
|
5010
|
+
type: "ref",
|
|
5011
|
+
ref: "lex:com.atproto.admin.moderationReport#view"
|
|
5012
|
+
}
|
|
5013
|
+
},
|
|
5014
|
+
takedownId: {
|
|
5015
|
+
type: "integer"
|
|
5016
|
+
}
|
|
5017
|
+
}
|
|
5018
|
+
}
|
|
5019
|
+
}
|
|
5020
|
+
},
|
|
5021
|
+
ComAtprotoAdminRepo: {
|
|
5022
|
+
lexicon: 1,
|
|
5023
|
+
id: "com.atproto.admin.repo",
|
|
5024
|
+
defs: {
|
|
5025
|
+
view: {
|
|
5026
|
+
type: "object",
|
|
5027
|
+
required: [
|
|
5028
|
+
"did",
|
|
5029
|
+
"handle",
|
|
5030
|
+
"relatedRecords",
|
|
5031
|
+
"indexedAt",
|
|
5032
|
+
"moderation"
|
|
5033
|
+
],
|
|
5034
|
+
properties: {
|
|
5035
|
+
did: {
|
|
5036
|
+
type: "string"
|
|
5037
|
+
},
|
|
5038
|
+
handle: {
|
|
5039
|
+
type: "string"
|
|
5040
|
+
},
|
|
5041
|
+
account: {
|
|
5042
|
+
type: "ref",
|
|
5043
|
+
ref: "lex:com.atproto.admin.repo#account"
|
|
5044
|
+
},
|
|
5045
|
+
relatedRecords: {
|
|
5046
|
+
type: "array",
|
|
5047
|
+
items: {
|
|
5048
|
+
type: "unknown"
|
|
5049
|
+
}
|
|
5050
|
+
},
|
|
5051
|
+
indexedAt: {
|
|
5052
|
+
type: "string"
|
|
5053
|
+
},
|
|
5054
|
+
moderation: {
|
|
5055
|
+
type: "ref",
|
|
5056
|
+
ref: "lex:com.atproto.admin.repo#moderation"
|
|
5057
|
+
}
|
|
5058
|
+
}
|
|
5059
|
+
},
|
|
5060
|
+
viewDetail: {
|
|
5061
|
+
type: "object",
|
|
5062
|
+
required: [
|
|
5063
|
+
"did",
|
|
5064
|
+
"handle",
|
|
5065
|
+
"relatedRecords",
|
|
5066
|
+
"indexedAt",
|
|
5067
|
+
"moderation"
|
|
5068
|
+
],
|
|
5069
|
+
properties: {
|
|
5070
|
+
did: {
|
|
5071
|
+
type: "string"
|
|
5072
|
+
},
|
|
5073
|
+
handle: {
|
|
5074
|
+
type: "string"
|
|
5075
|
+
},
|
|
5076
|
+
account: {
|
|
5077
|
+
type: "ref",
|
|
5078
|
+
ref: "lex:com.atproto.admin.repo#account"
|
|
5079
|
+
},
|
|
5080
|
+
relatedRecords: {
|
|
5081
|
+
type: "array",
|
|
5082
|
+
items: {
|
|
5083
|
+
type: "unknown"
|
|
5084
|
+
}
|
|
5085
|
+
},
|
|
5086
|
+
indexedAt: {
|
|
5087
|
+
type: "string"
|
|
5088
|
+
},
|
|
5089
|
+
moderation: {
|
|
5090
|
+
type: "ref",
|
|
5091
|
+
ref: "lex:com.atproto.admin.repo#moderationDetail"
|
|
5092
|
+
}
|
|
5093
|
+
}
|
|
5094
|
+
},
|
|
5095
|
+
account: {
|
|
5096
|
+
type: "object",
|
|
5097
|
+
required: ["email"],
|
|
5098
|
+
properties: {
|
|
5099
|
+
email: {
|
|
5100
|
+
type: "string"
|
|
5101
|
+
}
|
|
5102
|
+
}
|
|
5103
|
+
},
|
|
5104
|
+
moderation: {
|
|
5105
|
+
type: "object",
|
|
5106
|
+
required: [],
|
|
5107
|
+
properties: {
|
|
5108
|
+
takedownId: {
|
|
5109
|
+
type: "integer"
|
|
5110
|
+
}
|
|
5111
|
+
}
|
|
5112
|
+
},
|
|
5113
|
+
moderationDetail: {
|
|
5114
|
+
type: "object",
|
|
5115
|
+
required: ["actions", "reports"],
|
|
5116
|
+
properties: {
|
|
5117
|
+
actions: {
|
|
5118
|
+
type: "array",
|
|
5119
|
+
items: {
|
|
5120
|
+
type: "ref",
|
|
5121
|
+
ref: "lex:com.atproto.admin.moderationAction#view"
|
|
5122
|
+
}
|
|
5123
|
+
},
|
|
5124
|
+
reports: {
|
|
5125
|
+
type: "array",
|
|
5126
|
+
items: {
|
|
5127
|
+
type: "ref",
|
|
5128
|
+
ref: "lex:com.atproto.admin.moderationReport#view"
|
|
5129
|
+
}
|
|
5130
|
+
},
|
|
5131
|
+
takedownId: {
|
|
5132
|
+
type: "integer"
|
|
5133
|
+
}
|
|
5134
|
+
}
|
|
5135
|
+
}
|
|
5136
|
+
}
|
|
5137
|
+
},
|
|
5138
|
+
ComAtprotoAdminResolveModerationReports: {
|
|
5139
|
+
lexicon: 1,
|
|
5140
|
+
id: "com.atproto.admin.resolveModerationReports",
|
|
5141
|
+
defs: {
|
|
5142
|
+
main: {
|
|
5143
|
+
type: "procedure",
|
|
5144
|
+
description: "Resolve moderation reports by an action.",
|
|
5145
|
+
input: {
|
|
5146
|
+
encoding: "application/json",
|
|
5147
|
+
schema: {
|
|
5148
|
+
type: "object",
|
|
5149
|
+
required: ["actionId", "reportIds", "createdBy"],
|
|
5150
|
+
properties: {
|
|
5151
|
+
actionId: {
|
|
5152
|
+
type: "integer"
|
|
5153
|
+
},
|
|
5154
|
+
reportIds: {
|
|
5155
|
+
type: "array",
|
|
5156
|
+
items: {
|
|
5157
|
+
type: "integer"
|
|
5158
|
+
}
|
|
5159
|
+
},
|
|
5160
|
+
createdBy: {
|
|
5161
|
+
type: "string"
|
|
5162
|
+
}
|
|
5163
|
+
}
|
|
5164
|
+
}
|
|
5165
|
+
},
|
|
5166
|
+
output: {
|
|
5167
|
+
encoding: "application/json",
|
|
5168
|
+
schema: {
|
|
5169
|
+
type: "ref",
|
|
5170
|
+
ref: "lex:com.atproto.admin.moderationAction#view"
|
|
5171
|
+
}
|
|
5172
|
+
}
|
|
5173
|
+
}
|
|
5174
|
+
}
|
|
5175
|
+
},
|
|
5176
|
+
ComAtprotoAdminReverseModerationAction: {
|
|
5177
|
+
lexicon: 1,
|
|
5178
|
+
id: "com.atproto.admin.reverseModerationAction",
|
|
5179
|
+
defs: {
|
|
5180
|
+
main: {
|
|
5181
|
+
type: "procedure",
|
|
5182
|
+
description: "Reverse a moderation action.",
|
|
5183
|
+
input: {
|
|
5184
|
+
encoding: "application/json",
|
|
5185
|
+
schema: {
|
|
5186
|
+
type: "object",
|
|
5187
|
+
required: ["id", "reason", "createdBy"],
|
|
5188
|
+
properties: {
|
|
5189
|
+
id: {
|
|
5190
|
+
type: "integer"
|
|
5191
|
+
},
|
|
5192
|
+
reason: {
|
|
5193
|
+
type: "string"
|
|
5194
|
+
},
|
|
5195
|
+
createdBy: {
|
|
5196
|
+
type: "string"
|
|
5197
|
+
}
|
|
5198
|
+
}
|
|
5199
|
+
}
|
|
5200
|
+
},
|
|
5201
|
+
output: {
|
|
5202
|
+
encoding: "application/json",
|
|
5203
|
+
schema: {
|
|
5204
|
+
type: "ref",
|
|
5205
|
+
ref: "lex:com.atproto.admin.moderationAction#view"
|
|
5206
|
+
}
|
|
5207
|
+
}
|
|
5208
|
+
}
|
|
5209
|
+
}
|
|
5210
|
+
},
|
|
5211
|
+
ComAtprotoAdminSearchRepos: {
|
|
5212
|
+
lexicon: 1,
|
|
5213
|
+
id: "com.atproto.admin.searchRepos",
|
|
5214
|
+
defs: {
|
|
5215
|
+
main: {
|
|
5216
|
+
type: "query",
|
|
5217
|
+
description: "Find repositories based on a search term.",
|
|
5218
|
+
parameters: {
|
|
5219
|
+
type: "params",
|
|
5220
|
+
properties: {
|
|
5221
|
+
term: {
|
|
5222
|
+
type: "string"
|
|
5223
|
+
},
|
|
5224
|
+
limit: {
|
|
5225
|
+
type: "integer",
|
|
5226
|
+
minimum: 1,
|
|
5227
|
+
maximum: 100,
|
|
5228
|
+
default: 50
|
|
5229
|
+
},
|
|
5230
|
+
before: {
|
|
5231
|
+
type: "string"
|
|
5232
|
+
}
|
|
5233
|
+
}
|
|
5234
|
+
},
|
|
5235
|
+
output: {
|
|
5236
|
+
encoding: "application/json",
|
|
5237
|
+
schema: {
|
|
5238
|
+
type: "object",
|
|
5239
|
+
required: ["repos"],
|
|
5240
|
+
properties: {
|
|
5241
|
+
cursor: {
|
|
5242
|
+
type: "string"
|
|
5243
|
+
},
|
|
5244
|
+
repos: {
|
|
5245
|
+
type: "array",
|
|
5246
|
+
items: {
|
|
5247
|
+
type: "ref",
|
|
5248
|
+
ref: "lex:com.atproto.admin.repo#view"
|
|
5249
|
+
}
|
|
5250
|
+
}
|
|
5251
|
+
}
|
|
5252
|
+
}
|
|
5253
|
+
}
|
|
5254
|
+
}
|
|
5255
|
+
}
|
|
5256
|
+
},
|
|
5257
|
+
ComAtprotoAdminTakeModerationAction: {
|
|
5258
|
+
lexicon: 1,
|
|
5259
|
+
id: "com.atproto.admin.takeModerationAction",
|
|
5260
|
+
defs: {
|
|
5261
|
+
main: {
|
|
5262
|
+
type: "procedure",
|
|
5263
|
+
description: "Take a moderation action on a repo.",
|
|
5264
|
+
input: {
|
|
5265
|
+
encoding: "application/json",
|
|
5266
|
+
schema: {
|
|
5267
|
+
type: "object",
|
|
5268
|
+
required: ["action", "subject", "reason", "createdBy"],
|
|
5269
|
+
properties: {
|
|
5270
|
+
action: {
|
|
5271
|
+
type: "string",
|
|
5272
|
+
knownValues: [
|
|
5273
|
+
"com.atproto.admin.moderationAction#takedown",
|
|
5274
|
+
"com.atproto.admin.moderationAction#flag",
|
|
5275
|
+
"com.atproto.admin.moderationAction#acknowledge"
|
|
5276
|
+
]
|
|
5277
|
+
},
|
|
5278
|
+
subject: {
|
|
5279
|
+
type: "union",
|
|
5280
|
+
refs: [
|
|
5281
|
+
"lex:com.atproto.repo.repoRef",
|
|
5282
|
+
"lex:com.atproto.repo.recordRef"
|
|
5283
|
+
]
|
|
5284
|
+
},
|
|
5285
|
+
reason: {
|
|
5286
|
+
type: "string"
|
|
5287
|
+
},
|
|
5288
|
+
createdBy: {
|
|
5289
|
+
type: "string"
|
|
5290
|
+
}
|
|
5291
|
+
}
|
|
5292
|
+
}
|
|
5293
|
+
},
|
|
5294
|
+
output: {
|
|
5295
|
+
encoding: "application/json",
|
|
5296
|
+
schema: {
|
|
5297
|
+
type: "ref",
|
|
5298
|
+
ref: "lex:com.atproto.admin.moderationAction#view"
|
|
5299
|
+
}
|
|
5300
|
+
}
|
|
5301
|
+
}
|
|
5302
|
+
}
|
|
5303
|
+
},
|
|
5304
|
+
ComAtprotoBlobUpload: {
|
|
5305
|
+
lexicon: 1,
|
|
5306
|
+
id: "com.atproto.blob.upload",
|
|
5307
|
+
defs: {
|
|
5308
|
+
main: {
|
|
5309
|
+
type: "procedure",
|
|
5310
|
+
description: "Upload a new blob to be added to repo in a later request.",
|
|
5311
|
+
input: {
|
|
5312
|
+
encoding: "*/*"
|
|
5313
|
+
},
|
|
5314
|
+
output: {
|
|
5315
|
+
encoding: "application/json",
|
|
5316
|
+
schema: {
|
|
5317
|
+
type: "object",
|
|
5318
|
+
required: ["cid"],
|
|
5319
|
+
properties: {
|
|
5320
|
+
cid: {
|
|
5321
|
+
type: "string"
|
|
5322
|
+
}
|
|
5323
|
+
}
|
|
5324
|
+
}
|
|
5325
|
+
}
|
|
5326
|
+
}
|
|
5327
|
+
}
|
|
5328
|
+
},
|
|
5329
|
+
ComAtprotoHandleResolve: {
|
|
5330
|
+
lexicon: 1,
|
|
5331
|
+
id: "com.atproto.handle.resolve",
|
|
5332
|
+
defs: {
|
|
5333
|
+
main: {
|
|
5334
|
+
type: "query",
|
|
5335
|
+
description: "Provides the DID of a repo.",
|
|
5336
|
+
parameters: {
|
|
5337
|
+
type: "params",
|
|
5338
|
+
properties: {
|
|
5339
|
+
handle: {
|
|
5340
|
+
type: "string",
|
|
5341
|
+
description: "The handle to resolve. If not supplied, will resolve the host's own handle."
|
|
5342
|
+
}
|
|
5343
|
+
}
|
|
5344
|
+
},
|
|
5345
|
+
output: {
|
|
5346
|
+
encoding: "application/json",
|
|
5347
|
+
schema: {
|
|
5348
|
+
type: "object",
|
|
5349
|
+
required: ["did"],
|
|
5350
|
+
properties: {
|
|
5351
|
+
did: {
|
|
5352
|
+
type: "string"
|
|
5353
|
+
}
|
|
5354
|
+
}
|
|
5355
|
+
}
|
|
5356
|
+
}
|
|
5357
|
+
}
|
|
5358
|
+
}
|
|
5359
|
+
},
|
|
5360
|
+
ComAtprotoRepoBatchWrite: {
|
|
5361
|
+
lexicon: 1,
|
|
5362
|
+
id: "com.atproto.repo.batchWrite",
|
|
5363
|
+
defs: {
|
|
5364
|
+
main: {
|
|
5365
|
+
type: "procedure",
|
|
5366
|
+
description: "Apply a batch transaction of creates, puts, and deletes.",
|
|
5367
|
+
input: {
|
|
5368
|
+
encoding: "application/json",
|
|
5369
|
+
schema: {
|
|
5370
|
+
type: "object",
|
|
5371
|
+
required: ["did", "writes"],
|
|
5372
|
+
properties: {
|
|
5373
|
+
did: {
|
|
5374
|
+
type: "string",
|
|
5375
|
+
description: "The DID of the repo."
|
|
5376
|
+
},
|
|
5377
|
+
validate: {
|
|
5378
|
+
type: "boolean",
|
|
5379
|
+
default: true,
|
|
5380
|
+
description: "Validate the records?"
|
|
5381
|
+
},
|
|
5382
|
+
writes: {
|
|
5383
|
+
type: "array",
|
|
5384
|
+
items: {
|
|
5385
|
+
type: "union",
|
|
5386
|
+
refs: [
|
|
5387
|
+
"lex:com.atproto.repo.batchWrite#create",
|
|
5388
|
+
"lex:com.atproto.repo.batchWrite#update",
|
|
5389
|
+
"lex:com.atproto.repo.batchWrite#delete"
|
|
5390
|
+
],
|
|
5391
|
+
closed: true
|
|
5392
|
+
}
|
|
5393
|
+
}
|
|
5394
|
+
}
|
|
5395
|
+
}
|
|
5396
|
+
}
|
|
5397
|
+
},
|
|
5398
|
+
create: {
|
|
5399
|
+
type: "object",
|
|
5400
|
+
required: ["action", "collection", "value"],
|
|
5401
|
+
properties: {
|
|
5402
|
+
action: {
|
|
5403
|
+
type: "string",
|
|
5404
|
+
const: "create"
|
|
5405
|
+
},
|
|
5406
|
+
collection: {
|
|
5407
|
+
type: "string"
|
|
5408
|
+
},
|
|
5409
|
+
rkey: {
|
|
5410
|
+
type: "string"
|
|
5411
|
+
},
|
|
5412
|
+
value: {
|
|
5413
|
+
type: "unknown"
|
|
5414
|
+
}
|
|
5415
|
+
}
|
|
5416
|
+
},
|
|
5417
|
+
update: {
|
|
5418
|
+
type: "object",
|
|
5419
|
+
required: ["action", "collection", "rkey", "value"],
|
|
5420
|
+
properties: {
|
|
5421
|
+
action: {
|
|
5422
|
+
type: "string",
|
|
5423
|
+
const: "update"
|
|
5424
|
+
},
|
|
5425
|
+
collection: {
|
|
5426
|
+
type: "string"
|
|
5427
|
+
},
|
|
5428
|
+
rkey: {
|
|
5429
|
+
type: "string"
|
|
5430
|
+
},
|
|
5431
|
+
value: {
|
|
5432
|
+
type: "unknown"
|
|
5433
|
+
}
|
|
5434
|
+
}
|
|
5435
|
+
},
|
|
5436
|
+
delete: {
|
|
5437
|
+
type: "object",
|
|
5438
|
+
required: ["action", "collection", "rkey"],
|
|
5439
|
+
properties: {
|
|
5440
|
+
action: {
|
|
5441
|
+
type: "string",
|
|
5442
|
+
const: "delete"
|
|
5443
|
+
},
|
|
5444
|
+
collection: {
|
|
5445
|
+
type: "string"
|
|
5446
|
+
},
|
|
5447
|
+
rkey: {
|
|
5448
|
+
type: "string"
|
|
5449
|
+
}
|
|
5450
|
+
}
|
|
5451
|
+
}
|
|
5452
|
+
}
|
|
5453
|
+
},
|
|
5454
|
+
ComAtprotoRepoCreateRecord: {
|
|
5455
|
+
lexicon: 1,
|
|
5456
|
+
id: "com.atproto.repo.createRecord",
|
|
5457
|
+
defs: {
|
|
5458
|
+
main: {
|
|
5459
|
+
type: "procedure",
|
|
5460
|
+
description: "Create a new record.",
|
|
5461
|
+
input: {
|
|
5462
|
+
encoding: "application/json",
|
|
5463
|
+
schema: {
|
|
5464
|
+
type: "object",
|
|
5465
|
+
required: ["did", "collection", "record"],
|
|
5466
|
+
properties: {
|
|
5467
|
+
did: {
|
|
5468
|
+
type: "string",
|
|
5469
|
+
description: "The DID of the repo."
|
|
5470
|
+
},
|
|
5471
|
+
collection: {
|
|
5472
|
+
type: "string",
|
|
5473
|
+
description: "The NSID of the record collection."
|
|
5474
|
+
},
|
|
5475
|
+
validate: {
|
|
5476
|
+
type: "boolean",
|
|
5477
|
+
default: true,
|
|
5478
|
+
description: "Validate the record?"
|
|
5479
|
+
},
|
|
5480
|
+
record: {
|
|
5481
|
+
type: "unknown",
|
|
5482
|
+
description: "The record to create."
|
|
5483
|
+
}
|
|
5484
|
+
}
|
|
5485
|
+
}
|
|
5486
|
+
},
|
|
5487
|
+
output: {
|
|
5488
|
+
encoding: "application/json",
|
|
5489
|
+
schema: {
|
|
5490
|
+
type: "object",
|
|
5491
|
+
required: ["uri", "cid"],
|
|
5492
|
+
properties: {
|
|
5493
|
+
uri: {
|
|
5494
|
+
type: "string"
|
|
5495
|
+
},
|
|
5496
|
+
cid: {
|
|
5497
|
+
type: "string"
|
|
5498
|
+
}
|
|
5499
|
+
}
|
|
5500
|
+
}
|
|
5501
|
+
}
|
|
5502
|
+
}
|
|
5503
|
+
}
|
|
5504
|
+
},
|
|
5505
|
+
ComAtprotoRepoDeleteRecord: {
|
|
5506
|
+
lexicon: 1,
|
|
5507
|
+
id: "com.atproto.repo.deleteRecord",
|
|
5508
|
+
defs: {
|
|
5509
|
+
main: {
|
|
5510
|
+
type: "procedure",
|
|
5511
|
+
description: "Delete a record.",
|
|
5512
|
+
input: {
|
|
5513
|
+
encoding: "application/json",
|
|
5514
|
+
schema: {
|
|
5515
|
+
type: "object",
|
|
5516
|
+
required: ["did", "collection", "rkey"],
|
|
5517
|
+
properties: {
|
|
5518
|
+
did: {
|
|
5519
|
+
type: "string",
|
|
5520
|
+
description: "The DID of the repo."
|
|
5521
|
+
},
|
|
5522
|
+
collection: {
|
|
5523
|
+
type: "string",
|
|
5524
|
+
description: "The NSID of the record collection."
|
|
5525
|
+
},
|
|
5526
|
+
rkey: {
|
|
5527
|
+
type: "string",
|
|
5528
|
+
description: "The key of the record."
|
|
5529
|
+
}
|
|
5530
|
+
}
|
|
5531
|
+
}
|
|
5532
|
+
}
|
|
5533
|
+
}
|
|
5534
|
+
}
|
|
5535
|
+
},
|
|
5536
|
+
ComAtprotoRepoDescribe: {
|
|
5537
|
+
lexicon: 1,
|
|
5538
|
+
id: "com.atproto.repo.describe",
|
|
5539
|
+
defs: {
|
|
5540
|
+
main: {
|
|
5541
|
+
type: "query",
|
|
5542
|
+
description: "Get information about the repo, including the list of collections.",
|
|
5543
|
+
parameters: {
|
|
5544
|
+
type: "params",
|
|
5545
|
+
required: ["user"],
|
|
5546
|
+
properties: {
|
|
5547
|
+
user: {
|
|
5548
|
+
type: "string",
|
|
5549
|
+
description: "The handle or DID of the repo."
|
|
5550
|
+
}
|
|
5551
|
+
}
|
|
5552
|
+
},
|
|
5553
|
+
output: {
|
|
5554
|
+
encoding: "application/json",
|
|
5555
|
+
schema: {
|
|
5556
|
+
type: "object",
|
|
5557
|
+
required: [
|
|
5558
|
+
"handle",
|
|
5559
|
+
"did",
|
|
5560
|
+
"didDoc",
|
|
5561
|
+
"collections",
|
|
5562
|
+
"handleIsCorrect"
|
|
4680
5563
|
],
|
|
4681
5564
|
properties: {
|
|
4682
5565
|
handle: {
|
|
@@ -4885,6 +5768,41 @@ var schemaDict = {
|
|
|
4885
5768
|
}
|
|
4886
5769
|
}
|
|
4887
5770
|
},
|
|
5771
|
+
ComAtprotoRepoRecordRef: {
|
|
5772
|
+
lexicon: 1,
|
|
5773
|
+
id: "com.atproto.repo.recordRef",
|
|
5774
|
+
description: "A URI with optional content-hash fingerprint.",
|
|
5775
|
+
defs: {
|
|
5776
|
+
main: {
|
|
5777
|
+
type: "object",
|
|
5778
|
+
required: ["uri"],
|
|
5779
|
+
properties: {
|
|
5780
|
+
uri: {
|
|
5781
|
+
type: "string"
|
|
5782
|
+
},
|
|
5783
|
+
cid: {
|
|
5784
|
+
type: "string"
|
|
5785
|
+
}
|
|
5786
|
+
}
|
|
5787
|
+
}
|
|
5788
|
+
}
|
|
5789
|
+
},
|
|
5790
|
+
ComAtprotoRepoRepoRef: {
|
|
5791
|
+
lexicon: 1,
|
|
5792
|
+
id: "com.atproto.repo.repoRef",
|
|
5793
|
+
description: "A did identifying a repository.",
|
|
5794
|
+
defs: {
|
|
5795
|
+
main: {
|
|
5796
|
+
type: "object",
|
|
5797
|
+
required: ["did"],
|
|
5798
|
+
properties: {
|
|
5799
|
+
did: {
|
|
5800
|
+
type: "string"
|
|
5801
|
+
}
|
|
5802
|
+
}
|
|
5803
|
+
}
|
|
5804
|
+
}
|
|
5805
|
+
},
|
|
4888
5806
|
ComAtprotoRepoStrongRef: {
|
|
4889
5807
|
lexicon: 1,
|
|
4890
5808
|
id: "com.atproto.repo.strongRef",
|
|
@@ -4904,6 +5822,148 @@ var schemaDict = {
|
|
|
4904
5822
|
}
|
|
4905
5823
|
}
|
|
4906
5824
|
},
|
|
5825
|
+
ComAtprotoReportCreate: {
|
|
5826
|
+
lexicon: 1,
|
|
5827
|
+
id: "com.atproto.report.create",
|
|
5828
|
+
defs: {
|
|
5829
|
+
main: {
|
|
5830
|
+
type: "procedure",
|
|
5831
|
+
description: "Report a repo or a record.",
|
|
5832
|
+
input: {
|
|
5833
|
+
encoding: "application/json",
|
|
5834
|
+
schema: {
|
|
5835
|
+
type: "object",
|
|
5836
|
+
required: ["reasonType", "subject"],
|
|
5837
|
+
properties: {
|
|
5838
|
+
reasonType: {
|
|
5839
|
+
type: "ref",
|
|
5840
|
+
ref: "lex:com.atproto.report.reasonType"
|
|
5841
|
+
},
|
|
5842
|
+
reason: {
|
|
5843
|
+
type: "string"
|
|
5844
|
+
},
|
|
5845
|
+
subject: {
|
|
5846
|
+
type: "union",
|
|
5847
|
+
refs: [
|
|
5848
|
+
"lex:com.atproto.repo.repoRef",
|
|
5849
|
+
"lex:com.atproto.repo.recordRef"
|
|
5850
|
+
]
|
|
5851
|
+
}
|
|
5852
|
+
}
|
|
5853
|
+
}
|
|
5854
|
+
},
|
|
5855
|
+
output: {
|
|
5856
|
+
encoding: "application/json",
|
|
5857
|
+
schema: {
|
|
5858
|
+
type: "object",
|
|
5859
|
+
required: [
|
|
5860
|
+
"id",
|
|
5861
|
+
"reasonType",
|
|
5862
|
+
"subject",
|
|
5863
|
+
"reportedByDid",
|
|
5864
|
+
"createdAt"
|
|
5865
|
+
],
|
|
5866
|
+
properties: {
|
|
5867
|
+
id: {
|
|
5868
|
+
type: "integer"
|
|
5869
|
+
},
|
|
5870
|
+
reasonType: {
|
|
5871
|
+
type: "ref",
|
|
5872
|
+
ref: "lex:com.atproto.report.reasonType"
|
|
5873
|
+
},
|
|
5874
|
+
reason: {
|
|
5875
|
+
type: "string"
|
|
5876
|
+
},
|
|
5877
|
+
subject: {
|
|
5878
|
+
type: "union",
|
|
5879
|
+
refs: [
|
|
5880
|
+
"lex:com.atproto.repo.repoRef",
|
|
5881
|
+
"lex:com.atproto.repo.strongRef"
|
|
5882
|
+
]
|
|
5883
|
+
},
|
|
5884
|
+
reportedByDid: {
|
|
5885
|
+
type: "string"
|
|
5886
|
+
},
|
|
5887
|
+
createdAt: {
|
|
5888
|
+
type: "datetime"
|
|
5889
|
+
}
|
|
5890
|
+
}
|
|
5891
|
+
}
|
|
5892
|
+
}
|
|
5893
|
+
}
|
|
5894
|
+
}
|
|
5895
|
+
},
|
|
5896
|
+
ComAtprotoReportReasonType: {
|
|
5897
|
+
lexicon: 1,
|
|
5898
|
+
id: "com.atproto.report.reasonType",
|
|
5899
|
+
defs: {
|
|
5900
|
+
main: {
|
|
5901
|
+
type: "string",
|
|
5902
|
+
knownValues: [
|
|
5903
|
+
"com.atproto.report.reason#spam",
|
|
5904
|
+
"com.atproto.report.reason#other"
|
|
5905
|
+
]
|
|
5906
|
+
},
|
|
5907
|
+
spam: {
|
|
5908
|
+
type: "token",
|
|
5909
|
+
description: "Moderation report reason: Spam."
|
|
5910
|
+
},
|
|
5911
|
+
other: {
|
|
5912
|
+
type: "token",
|
|
5913
|
+
description: "Moderation report reason: Other."
|
|
5914
|
+
}
|
|
5915
|
+
}
|
|
5916
|
+
},
|
|
5917
|
+
ComAtprotoReportSubject: {
|
|
5918
|
+
lexicon: 1,
|
|
5919
|
+
id: "com.atproto.report.subject",
|
|
5920
|
+
defs: {
|
|
5921
|
+
repo: {
|
|
5922
|
+
type: "object",
|
|
5923
|
+
required: ["did"],
|
|
5924
|
+
properties: {
|
|
5925
|
+
did: {
|
|
5926
|
+
type: "string",
|
|
5927
|
+
description: "The DID of the repo."
|
|
5928
|
+
}
|
|
5929
|
+
}
|
|
5930
|
+
},
|
|
5931
|
+
record: {
|
|
5932
|
+
type: "object",
|
|
5933
|
+
required: ["did", "collection", "rkey"],
|
|
5934
|
+
properties: {
|
|
5935
|
+
did: {
|
|
5936
|
+
type: "string",
|
|
5937
|
+
description: "The DID of the repo."
|
|
5938
|
+
},
|
|
5939
|
+
collection: {
|
|
5940
|
+
type: "string",
|
|
5941
|
+
description: "The NSID of the collection."
|
|
5942
|
+
},
|
|
5943
|
+
rkey: {
|
|
5944
|
+
type: "string",
|
|
5945
|
+
description: "The key of the record."
|
|
5946
|
+
},
|
|
5947
|
+
cid: {
|
|
5948
|
+
type: "string",
|
|
5949
|
+
description: "The CID of the version of the record. If not specified, defaults to the most recent version."
|
|
5950
|
+
}
|
|
5951
|
+
}
|
|
5952
|
+
},
|
|
5953
|
+
recordRef: {
|
|
5954
|
+
type: "object",
|
|
5955
|
+
required: ["uri", "cid"],
|
|
5956
|
+
properties: {
|
|
5957
|
+
uri: {
|
|
5958
|
+
type: "string"
|
|
5959
|
+
},
|
|
5960
|
+
cid: {
|
|
5961
|
+
type: "string"
|
|
5962
|
+
}
|
|
5963
|
+
}
|
|
5964
|
+
}
|
|
5965
|
+
}
|
|
5966
|
+
},
|
|
4907
5967
|
ComAtprotoServerGetAccountsConfig: {
|
|
4908
5968
|
lexicon: 1,
|
|
4909
5969
|
id: "com.atproto.server.getAccountsConfig",
|
|
@@ -4958,10 +6018,11 @@ var schemaDict = {
|
|
|
4958
6018
|
encoding: "application/json",
|
|
4959
6019
|
schema: {
|
|
4960
6020
|
type: "object",
|
|
4961
|
-
required: ["
|
|
6021
|
+
required: ["password"],
|
|
4962
6022
|
properties: {
|
|
4963
|
-
|
|
4964
|
-
type: "string"
|
|
6023
|
+
identifier: {
|
|
6024
|
+
type: "string",
|
|
6025
|
+
description: "Handle or other identifier supported by the server for the authenticating user."
|
|
4965
6026
|
},
|
|
4966
6027
|
password: {
|
|
4967
6028
|
type: "string"
|
|
@@ -4989,7 +6050,12 @@ var schemaDict = {
|
|
|
4989
6050
|
}
|
|
4990
6051
|
}
|
|
4991
6052
|
}
|
|
4992
|
-
}
|
|
6053
|
+
},
|
|
6054
|
+
errors: [
|
|
6055
|
+
{
|
|
6056
|
+
name: "AccountTakedown"
|
|
6057
|
+
}
|
|
6058
|
+
]
|
|
4993
6059
|
}
|
|
4994
6060
|
}
|
|
4995
6061
|
},
|
|
@@ -5055,17 +6121,49 @@ var schemaDict = {
|
|
|
5055
6121
|
}
|
|
5056
6122
|
}
|
|
5057
6123
|
}
|
|
6124
|
+
},
|
|
6125
|
+
errors: [
|
|
6126
|
+
{
|
|
6127
|
+
name: "AccountTakedown"
|
|
6128
|
+
}
|
|
6129
|
+
]
|
|
6130
|
+
}
|
|
6131
|
+
}
|
|
6132
|
+
},
|
|
6133
|
+
ComAtprotoSyncGetCheckout: {
|
|
6134
|
+
lexicon: 1,
|
|
6135
|
+
id: "com.atproto.sync.getCheckout",
|
|
6136
|
+
defs: {
|
|
6137
|
+
main: {
|
|
6138
|
+
type: "query",
|
|
6139
|
+
description: "Gets the repo state.",
|
|
6140
|
+
parameters: {
|
|
6141
|
+
type: "params",
|
|
6142
|
+
required: ["did"],
|
|
6143
|
+
properties: {
|
|
6144
|
+
did: {
|
|
6145
|
+
type: "string",
|
|
6146
|
+
description: "The DID of the repo."
|
|
6147
|
+
},
|
|
6148
|
+
commit: {
|
|
6149
|
+
type: "string",
|
|
6150
|
+
description: "The commit to get the checkout from. Defaults to current HEAD."
|
|
6151
|
+
}
|
|
6152
|
+
}
|
|
6153
|
+
},
|
|
6154
|
+
output: {
|
|
6155
|
+
encoding: "application/vnd.ipld.car"
|
|
5058
6156
|
}
|
|
5059
6157
|
}
|
|
5060
6158
|
}
|
|
5061
6159
|
},
|
|
5062
|
-
|
|
6160
|
+
ComAtprotoSyncGetCommitPath: {
|
|
5063
6161
|
lexicon: 1,
|
|
5064
|
-
id: "com.atproto.sync.
|
|
6162
|
+
id: "com.atproto.sync.getCommitPath",
|
|
5065
6163
|
defs: {
|
|
5066
6164
|
main: {
|
|
5067
6165
|
type: "query",
|
|
5068
|
-
description: "Gets the repo
|
|
6166
|
+
description: "Gets the path of repo commits",
|
|
5069
6167
|
parameters: {
|
|
5070
6168
|
type: "params",
|
|
5071
6169
|
required: ["did"],
|
|
@@ -5074,25 +6172,41 @@ var schemaDict = {
|
|
|
5074
6172
|
type: "string",
|
|
5075
6173
|
description: "The DID of the repo."
|
|
5076
6174
|
},
|
|
5077
|
-
|
|
6175
|
+
latest: {
|
|
5078
6176
|
type: "string",
|
|
5079
|
-
description: "
|
|
6177
|
+
description: "The most recent commit"
|
|
6178
|
+
},
|
|
6179
|
+
earliest: {
|
|
6180
|
+
type: "string",
|
|
6181
|
+
description: "The earliest commit to start from"
|
|
5080
6182
|
}
|
|
5081
6183
|
}
|
|
5082
6184
|
},
|
|
5083
6185
|
output: {
|
|
5084
|
-
encoding: "application/
|
|
6186
|
+
encoding: "application/json",
|
|
6187
|
+
schema: {
|
|
6188
|
+
type: "object",
|
|
6189
|
+
required: ["commits"],
|
|
6190
|
+
properties: {
|
|
6191
|
+
commits: {
|
|
6192
|
+
type: "array",
|
|
6193
|
+
items: {
|
|
6194
|
+
type: "string"
|
|
6195
|
+
}
|
|
6196
|
+
}
|
|
6197
|
+
}
|
|
6198
|
+
}
|
|
5085
6199
|
}
|
|
5086
6200
|
}
|
|
5087
6201
|
}
|
|
5088
6202
|
},
|
|
5089
|
-
|
|
6203
|
+
ComAtprotoSyncGetHead: {
|
|
5090
6204
|
lexicon: 1,
|
|
5091
|
-
id: "com.atproto.sync.
|
|
6205
|
+
id: "com.atproto.sync.getHead",
|
|
5092
6206
|
defs: {
|
|
5093
6207
|
main: {
|
|
5094
6208
|
type: "query",
|
|
5095
|
-
description: "Gets the current
|
|
6209
|
+
description: "Gets the current HEAD CID of a repo.",
|
|
5096
6210
|
parameters: {
|
|
5097
6211
|
type: "params",
|
|
5098
6212
|
required: ["did"],
|
|
@@ -5118,78 +6232,63 @@ var schemaDict = {
|
|
|
5118
6232
|
}
|
|
5119
6233
|
}
|
|
5120
6234
|
},
|
|
5121
|
-
|
|
6235
|
+
ComAtprotoSyncGetRecord: {
|
|
5122
6236
|
lexicon: 1,
|
|
5123
|
-
id: "com.atproto.sync.
|
|
6237
|
+
id: "com.atproto.sync.getRecord",
|
|
5124
6238
|
defs: {
|
|
5125
6239
|
main: {
|
|
5126
|
-
type: "
|
|
5127
|
-
description: "
|
|
6240
|
+
type: "query",
|
|
6241
|
+
description: "Gets blocks needed for existence or non-existence of record.",
|
|
5128
6242
|
parameters: {
|
|
5129
6243
|
type: "params",
|
|
5130
|
-
required: ["did"],
|
|
6244
|
+
required: ["did", "collection", "rkey"],
|
|
5131
6245
|
properties: {
|
|
5132
6246
|
did: {
|
|
5133
6247
|
type: "string",
|
|
5134
6248
|
description: "The DID of the repo."
|
|
6249
|
+
},
|
|
6250
|
+
collection: {
|
|
6251
|
+
type: "string"
|
|
6252
|
+
},
|
|
6253
|
+
rkey: {
|
|
6254
|
+
type: "string"
|
|
6255
|
+
},
|
|
6256
|
+
commit: {
|
|
6257
|
+
type: "string",
|
|
6258
|
+
description: "An optional past commit CID."
|
|
5135
6259
|
}
|
|
5136
6260
|
}
|
|
5137
6261
|
},
|
|
5138
|
-
|
|
5139
|
-
encoding: "application/
|
|
6262
|
+
output: {
|
|
6263
|
+
encoding: "application/vnd.ipld.car"
|
|
5140
6264
|
}
|
|
5141
6265
|
}
|
|
5142
6266
|
}
|
|
5143
6267
|
},
|
|
5144
|
-
|
|
6268
|
+
ComAtprotoSyncGetRepo: {
|
|
5145
6269
|
lexicon: 1,
|
|
5146
|
-
id: "
|
|
6270
|
+
id: "com.atproto.sync.getRepo",
|
|
5147
6271
|
defs: {
|
|
5148
6272
|
main: {
|
|
5149
|
-
type: "
|
|
5150
|
-
description: "
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
}
|
|
6273
|
+
type: "query",
|
|
6274
|
+
description: "Gets the repo state.",
|
|
6275
|
+
parameters: {
|
|
6276
|
+
type: "params",
|
|
6277
|
+
required: ["did"],
|
|
6278
|
+
properties: {
|
|
6279
|
+
did: {
|
|
6280
|
+
type: "string",
|
|
6281
|
+
description: "The DID of the repo."
|
|
6282
|
+
},
|
|
6283
|
+
from: {
|
|
6284
|
+
type: "string",
|
|
6285
|
+
description: "A past commit CID."
|
|
5163
6286
|
}
|
|
5164
6287
|
}
|
|
5165
6288
|
},
|
|
5166
6289
|
output: {
|
|
5167
|
-
encoding: "application/
|
|
5168
|
-
|
|
5169
|
-
type: "object",
|
|
5170
|
-
required: ["handle", "did", "declaration"],
|
|
5171
|
-
properties: {
|
|
5172
|
-
handle: {
|
|
5173
|
-
type: "string"
|
|
5174
|
-
},
|
|
5175
|
-
did: {
|
|
5176
|
-
type: "string"
|
|
5177
|
-
},
|
|
5178
|
-
declaration: {
|
|
5179
|
-
type: "ref",
|
|
5180
|
-
ref: "lex:app.bsky.system.declRef"
|
|
5181
|
-
}
|
|
5182
|
-
}
|
|
5183
|
-
}
|
|
5184
|
-
},
|
|
5185
|
-
errors: [
|
|
5186
|
-
{
|
|
5187
|
-
name: "InvalidHandle"
|
|
5188
|
-
},
|
|
5189
|
-
{
|
|
5190
|
-
name: "HandleNotAvailable"
|
|
5191
|
-
}
|
|
5192
|
-
]
|
|
6290
|
+
encoding: "application/vnd.ipld.car"
|
|
6291
|
+
}
|
|
5193
6292
|
}
|
|
5194
6293
|
}
|
|
5195
6294
|
},
|
|
@@ -5219,7 +6318,6 @@ var schemaDict = {
|
|
|
5219
6318
|
"creator",
|
|
5220
6319
|
"followersCount",
|
|
5221
6320
|
"followsCount",
|
|
5222
|
-
"membersCount",
|
|
5223
6321
|
"postsCount"
|
|
5224
6322
|
],
|
|
5225
6323
|
properties: {
|
|
@@ -5256,9 +6354,6 @@ var schemaDict = {
|
|
|
5256
6354
|
followsCount: {
|
|
5257
6355
|
type: "integer"
|
|
5258
6356
|
},
|
|
5259
|
-
membersCount: {
|
|
5260
|
-
type: "integer"
|
|
5261
|
-
},
|
|
5262
6357
|
postsCount: {
|
|
5263
6358
|
type: "integer"
|
|
5264
6359
|
},
|
|
@@ -5276,9 +6371,6 @@ var schemaDict = {
|
|
|
5276
6371
|
follow: {
|
|
5277
6372
|
type: "string"
|
|
5278
6373
|
},
|
|
5279
|
-
member: {
|
|
5280
|
-
type: "string"
|
|
5281
|
-
},
|
|
5282
6374
|
muted: {
|
|
5283
6375
|
type: "boolean"
|
|
5284
6376
|
}
|
|
@@ -5471,7 +6563,6 @@ var schemaDict = {
|
|
|
5471
6563
|
description: "Find users matching search criteria.",
|
|
5472
6564
|
parameters: {
|
|
5473
6565
|
type: "params",
|
|
5474
|
-
required: ["term"],
|
|
5475
6566
|
properties: {
|
|
5476
6567
|
term: {
|
|
5477
6568
|
type: "string"
|
|
@@ -5547,7 +6638,6 @@ var schemaDict = {
|
|
|
5547
6638
|
description: "Find user suggestions for a search term.",
|
|
5548
6639
|
parameters: {
|
|
5549
6640
|
type: "params",
|
|
5550
|
-
required: ["term"],
|
|
5551
6641
|
properties: {
|
|
5552
6642
|
term: {
|
|
5553
6643
|
type: "string"
|
|
@@ -5614,9 +6704,6 @@ var schemaDict = {
|
|
|
5614
6704
|
schema: {
|
|
5615
6705
|
type: "object",
|
|
5616
6706
|
properties: {
|
|
5617
|
-
did: {
|
|
5618
|
-
type: "string"
|
|
5619
|
-
},
|
|
5620
6707
|
displayName: {
|
|
5621
6708
|
type: "string",
|
|
5622
6709
|
maxLength: 64
|
|
@@ -5828,10 +6915,7 @@ var schemaDict = {
|
|
|
5828
6915
|
},
|
|
5829
6916
|
reason: {
|
|
5830
6917
|
type: "union",
|
|
5831
|
-
refs: [
|
|
5832
|
-
"lex:app.bsky.feed.feedViewPost#reasonTrend",
|
|
5833
|
-
"lex:app.bsky.feed.feedViewPost#reasonRepost"
|
|
5834
|
-
]
|
|
6918
|
+
refs: ["lex:app.bsky.feed.feedViewPost#reasonRepost"]
|
|
5835
6919
|
}
|
|
5836
6920
|
}
|
|
5837
6921
|
},
|
|
@@ -5849,19 +6933,6 @@ var schemaDict = {
|
|
|
5849
6933
|
}
|
|
5850
6934
|
}
|
|
5851
6935
|
},
|
|
5852
|
-
reasonTrend: {
|
|
5853
|
-
type: "object",
|
|
5854
|
-
required: ["by", "indexedAt"],
|
|
5855
|
-
properties: {
|
|
5856
|
-
by: {
|
|
5857
|
-
type: "ref",
|
|
5858
|
-
ref: "lex:app.bsky.actor.ref#withInfo"
|
|
5859
|
-
},
|
|
5860
|
-
indexedAt: {
|
|
5861
|
-
type: "datetime"
|
|
5862
|
-
}
|
|
5863
|
-
}
|
|
5864
|
-
},
|
|
5865
6936
|
reasonRepost: {
|
|
5866
6937
|
type: "object",
|
|
5867
6938
|
required: ["by", "indexedAt"],
|
|
@@ -6436,29 +7507,6 @@ var schemaDict = {
|
|
|
6436
7507
|
}
|
|
6437
7508
|
}
|
|
6438
7509
|
},
|
|
6439
|
-
AppBskyFeedTrend: {
|
|
6440
|
-
lexicon: 1,
|
|
6441
|
-
id: "app.bsky.feed.trend",
|
|
6442
|
-
defs: {
|
|
6443
|
-
main: {
|
|
6444
|
-
type: "record",
|
|
6445
|
-
key: "tid",
|
|
6446
|
-
record: {
|
|
6447
|
-
type: "object",
|
|
6448
|
-
required: ["subject", "createdAt"],
|
|
6449
|
-
properties: {
|
|
6450
|
-
subject: {
|
|
6451
|
-
type: "ref",
|
|
6452
|
-
ref: "lex:com.atproto.repo.strongRef"
|
|
6453
|
-
},
|
|
6454
|
-
createdAt: {
|
|
6455
|
-
type: "datetime"
|
|
6456
|
-
}
|
|
6457
|
-
}
|
|
6458
|
-
}
|
|
6459
|
-
}
|
|
6460
|
-
}
|
|
6461
|
-
},
|
|
6462
7510
|
AppBskyFeedVote: {
|
|
6463
7511
|
lexicon: 1,
|
|
6464
7512
|
id: "app.bsky.feed.vote",
|
|
@@ -6564,134 +7612,20 @@ var schemaDict = {
|
|
|
6564
7612
|
id: "app.bsky.graph.follow",
|
|
6565
7613
|
defs: {
|
|
6566
7614
|
main: {
|
|
6567
|
-
type: "record",
|
|
6568
|
-
description: "A social follow.",
|
|
6569
|
-
key: "tid",
|
|
6570
|
-
record: {
|
|
6571
|
-
type: "object",
|
|
6572
|
-
required: ["subject", "createdAt"],
|
|
6573
|
-
properties: {
|
|
6574
|
-
subject: {
|
|
6575
|
-
type: "ref",
|
|
6576
|
-
ref: "lex:app.bsky.actor.ref"
|
|
6577
|
-
},
|
|
6578
|
-
createdAt: {
|
|
6579
|
-
type: "datetime"
|
|
6580
|
-
}
|
|
6581
|
-
}
|
|
6582
|
-
}
|
|
6583
|
-
}
|
|
6584
|
-
}
|
|
6585
|
-
},
|
|
6586
|
-
AppBskyGraphGetAssertions: {
|
|
6587
|
-
lexicon: 1,
|
|
6588
|
-
id: "app.bsky.graph.getAssertions",
|
|
6589
|
-
defs: {
|
|
6590
|
-
main: {
|
|
6591
|
-
type: "query",
|
|
6592
|
-
description: "General-purpose query for assertions.",
|
|
6593
|
-
parameters: {
|
|
6594
|
-
type: "params",
|
|
6595
|
-
properties: {
|
|
6596
|
-
author: {
|
|
6597
|
-
type: "string"
|
|
6598
|
-
},
|
|
6599
|
-
subject: {
|
|
6600
|
-
type: "string"
|
|
6601
|
-
},
|
|
6602
|
-
assertion: {
|
|
6603
|
-
type: "string"
|
|
6604
|
-
},
|
|
6605
|
-
confirmed: {
|
|
6606
|
-
type: "boolean"
|
|
6607
|
-
},
|
|
6608
|
-
limit: {
|
|
6609
|
-
type: "integer",
|
|
6610
|
-
minimum: 1,
|
|
6611
|
-
maximum: 100,
|
|
6612
|
-
default: 50
|
|
6613
|
-
},
|
|
6614
|
-
before: {
|
|
6615
|
-
type: "string"
|
|
6616
|
-
}
|
|
6617
|
-
}
|
|
6618
|
-
},
|
|
6619
|
-
output: {
|
|
6620
|
-
encoding: "application/json",
|
|
6621
|
-
schema: {
|
|
6622
|
-
type: "object",
|
|
6623
|
-
required: ["assertions"],
|
|
6624
|
-
properties: {
|
|
6625
|
-
cursor: {
|
|
6626
|
-
type: "string"
|
|
6627
|
-
},
|
|
6628
|
-
assertions: {
|
|
6629
|
-
type: "array",
|
|
6630
|
-
items: {
|
|
6631
|
-
type: "ref",
|
|
6632
|
-
ref: "lex:app.bsky.graph.getAssertions#assertion"
|
|
6633
|
-
}
|
|
6634
|
-
}
|
|
6635
|
-
}
|
|
6636
|
-
}
|
|
6637
|
-
}
|
|
6638
|
-
},
|
|
6639
|
-
assertion: {
|
|
6640
|
-
type: "object",
|
|
6641
|
-
required: [
|
|
6642
|
-
"uri",
|
|
6643
|
-
"cid",
|
|
6644
|
-
"assertion",
|
|
6645
|
-
"author",
|
|
6646
|
-
"subject",
|
|
6647
|
-
"indexedAt",
|
|
6648
|
-
"createdAt"
|
|
6649
|
-
],
|
|
6650
|
-
properties: {
|
|
6651
|
-
uri: {
|
|
6652
|
-
type: "string"
|
|
6653
|
-
},
|
|
6654
|
-
cid: {
|
|
6655
|
-
type: "string"
|
|
6656
|
-
},
|
|
6657
|
-
assertion: {
|
|
6658
|
-
type: "string"
|
|
6659
|
-
},
|
|
6660
|
-
confirmation: {
|
|
6661
|
-
type: "ref",
|
|
6662
|
-
ref: "lex:app.bsky.graph.getAssertions#confirmation"
|
|
6663
|
-
},
|
|
6664
|
-
author: {
|
|
6665
|
-
type: "ref",
|
|
6666
|
-
ref: "lex:app.bsky.actor.ref#withInfo"
|
|
6667
|
-
},
|
|
6668
|
-
subject: {
|
|
6669
|
-
type: "ref",
|
|
6670
|
-
ref: "lex:app.bsky.actor.ref#withInfo"
|
|
6671
|
-
},
|
|
6672
|
-
indexedAt: {
|
|
6673
|
-
type: "datetime"
|
|
6674
|
-
},
|
|
6675
|
-
createdAt: {
|
|
6676
|
-
type: "datetime"
|
|
6677
|
-
}
|
|
6678
|
-
}
|
|
6679
|
-
},
|
|
6680
|
-
confirmation: {
|
|
6681
|
-
type: "object",
|
|
6682
|
-
required: ["uri", "cid", "indexedAt", "createdAt"],
|
|
6683
|
-
properties: {
|
|
6684
|
-
uri: {
|
|
6685
|
-
type: "string"
|
|
6686
|
-
},
|
|
6687
|
-
cid: {
|
|
6688
|
-
type: "string"
|
|
6689
|
-
},
|
|
6690
|
-
indexedAt: {
|
|
6691
|
-
type: "datetime"
|
|
6692
|
-
},
|
|
6693
|
-
createdAt: {
|
|
6694
|
-
type: "datetime"
|
|
7615
|
+
type: "record",
|
|
7616
|
+
description: "A social follow.",
|
|
7617
|
+
key: "tid",
|
|
7618
|
+
record: {
|
|
7619
|
+
type: "object",
|
|
7620
|
+
required: ["subject", "createdAt"],
|
|
7621
|
+
properties: {
|
|
7622
|
+
subject: {
|
|
7623
|
+
type: "ref",
|
|
7624
|
+
ref: "lex:app.bsky.actor.ref"
|
|
7625
|
+
},
|
|
7626
|
+
createdAt: {
|
|
7627
|
+
type: "datetime"
|
|
7628
|
+
}
|
|
6695
7629
|
}
|
|
6696
7630
|
}
|
|
6697
7631
|
}
|
|
@@ -6844,160 +7778,9 @@ var schemaDict = {
|
|
|
6844
7778
|
type: "string",
|
|
6845
7779
|
maxLength: 64
|
|
6846
7780
|
},
|
|
6847
|
-
|
|
6848
|
-
type: "datetime"
|
|
6849
|
-
},
|
|
6850
|
-
indexedAt: {
|
|
6851
|
-
type: "datetime"
|
|
6852
|
-
}
|
|
6853
|
-
}
|
|
6854
|
-
}
|
|
6855
|
-
}
|
|
6856
|
-
},
|
|
6857
|
-
AppBskyGraphGetMembers: {
|
|
6858
|
-
lexicon: 1,
|
|
6859
|
-
id: "app.bsky.graph.getMembers",
|
|
6860
|
-
defs: {
|
|
6861
|
-
main: {
|
|
6862
|
-
type: "query",
|
|
6863
|
-
description: "Who is a member of the group?",
|
|
6864
|
-
parameters: {
|
|
6865
|
-
type: "params",
|
|
6866
|
-
required: ["actor"],
|
|
6867
|
-
properties: {
|
|
6868
|
-
actor: {
|
|
6869
|
-
type: "string"
|
|
6870
|
-
},
|
|
6871
|
-
limit: {
|
|
6872
|
-
type: "integer",
|
|
6873
|
-
minimum: 1,
|
|
6874
|
-
maximum: 100,
|
|
6875
|
-
default: 50
|
|
6876
|
-
},
|
|
6877
|
-
before: {
|
|
6878
|
-
type: "string"
|
|
6879
|
-
}
|
|
6880
|
-
}
|
|
6881
|
-
},
|
|
6882
|
-
output: {
|
|
6883
|
-
encoding: "application/json",
|
|
6884
|
-
schema: {
|
|
6885
|
-
type: "object",
|
|
6886
|
-
required: ["subject", "members"],
|
|
6887
|
-
properties: {
|
|
6888
|
-
subject: {
|
|
6889
|
-
type: "ref",
|
|
6890
|
-
ref: "lex:app.bsky.actor.ref#withInfo"
|
|
6891
|
-
},
|
|
6892
|
-
cursor: {
|
|
6893
|
-
type: "string"
|
|
6894
|
-
},
|
|
6895
|
-
members: {
|
|
6896
|
-
type: "array",
|
|
6897
|
-
items: {
|
|
6898
|
-
type: "ref",
|
|
6899
|
-
ref: "lex:app.bsky.graph.getMembers#member"
|
|
6900
|
-
}
|
|
6901
|
-
}
|
|
6902
|
-
}
|
|
6903
|
-
}
|
|
6904
|
-
}
|
|
6905
|
-
},
|
|
6906
|
-
member: {
|
|
6907
|
-
type: "object",
|
|
6908
|
-
required: ["did", "declaration", "handle", "indexedAt"],
|
|
6909
|
-
properties: {
|
|
6910
|
-
did: {
|
|
6911
|
-
type: "string"
|
|
6912
|
-
},
|
|
6913
|
-
declaration: {
|
|
6914
|
-
type: "ref",
|
|
6915
|
-
ref: "lex:app.bsky.system.declRef"
|
|
6916
|
-
},
|
|
6917
|
-
handle: {
|
|
6918
|
-
type: "string"
|
|
6919
|
-
},
|
|
6920
|
-
displayName: {
|
|
6921
|
-
type: "string",
|
|
6922
|
-
maxLength: 64
|
|
6923
|
-
},
|
|
6924
|
-
createdAt: {
|
|
6925
|
-
type: "datetime"
|
|
6926
|
-
},
|
|
6927
|
-
indexedAt: {
|
|
6928
|
-
type: "datetime"
|
|
6929
|
-
}
|
|
6930
|
-
}
|
|
6931
|
-
}
|
|
6932
|
-
}
|
|
6933
|
-
},
|
|
6934
|
-
AppBskyGraphGetMemberships: {
|
|
6935
|
-
lexicon: 1,
|
|
6936
|
-
id: "app.bsky.graph.getMemberships",
|
|
6937
|
-
defs: {
|
|
6938
|
-
main: {
|
|
6939
|
-
type: "query",
|
|
6940
|
-
description: "Which groups is the actor a member of?",
|
|
6941
|
-
parameters: {
|
|
6942
|
-
type: "params",
|
|
6943
|
-
required: ["actor"],
|
|
6944
|
-
properties: {
|
|
6945
|
-
actor: {
|
|
6946
|
-
type: "string"
|
|
6947
|
-
},
|
|
6948
|
-
limit: {
|
|
6949
|
-
type: "integer",
|
|
6950
|
-
minimum: 1,
|
|
6951
|
-
maximum: 100,
|
|
6952
|
-
default: 50
|
|
6953
|
-
},
|
|
6954
|
-
before: {
|
|
6955
|
-
type: "string"
|
|
6956
|
-
}
|
|
6957
|
-
}
|
|
6958
|
-
},
|
|
6959
|
-
output: {
|
|
6960
|
-
encoding: "application/json",
|
|
6961
|
-
schema: {
|
|
6962
|
-
type: "object",
|
|
6963
|
-
required: ["subject", "memberships"],
|
|
6964
|
-
properties: {
|
|
6965
|
-
subject: {
|
|
6966
|
-
type: "ref",
|
|
6967
|
-
ref: "lex:app.bsky.actor.ref#withInfo"
|
|
6968
|
-
},
|
|
6969
|
-
cursor: {
|
|
6970
|
-
type: "string"
|
|
6971
|
-
},
|
|
6972
|
-
memberships: {
|
|
6973
|
-
type: "array",
|
|
6974
|
-
items: {
|
|
6975
|
-
type: "ref",
|
|
6976
|
-
ref: "lex:app.bsky.graph.getMemberships#membership"
|
|
6977
|
-
}
|
|
6978
|
-
}
|
|
6979
|
-
}
|
|
6980
|
-
}
|
|
6981
|
-
}
|
|
6982
|
-
},
|
|
6983
|
-
membership: {
|
|
6984
|
-
type: "object",
|
|
6985
|
-
required: ["did", "declaration", "handle", "indexedAt"],
|
|
6986
|
-
properties: {
|
|
6987
|
-
did: {
|
|
6988
|
-
type: "string"
|
|
6989
|
-
},
|
|
6990
|
-
declaration: {
|
|
6991
|
-
type: "ref",
|
|
6992
|
-
ref: "lex:app.bsky.system.declRef"
|
|
6993
|
-
},
|
|
6994
|
-
handle: {
|
|
7781
|
+
avatar: {
|
|
6995
7782
|
type: "string"
|
|
6996
7783
|
},
|
|
6997
|
-
displayName: {
|
|
6998
|
-
type: "string",
|
|
6999
|
-
maxLength: 64
|
|
7000
|
-
},
|
|
7001
7784
|
createdAt: {
|
|
7002
7785
|
type: "datetime"
|
|
7003
7786
|
},
|
|
@@ -7203,11 +7986,10 @@ var schemaDict = {
|
|
|
7203
7986
|
},
|
|
7204
7987
|
reason: {
|
|
7205
7988
|
type: "string",
|
|
7206
|
-
description: "Expected values are 'vote', 'repost', '
|
|
7989
|
+
description: "Expected values are 'vote', 'repost', 'follow', 'invite', 'mention' and 'reply'.",
|
|
7207
7990
|
knownValues: [
|
|
7208
7991
|
"vote",
|
|
7209
7992
|
"repost",
|
|
7210
|
-
"trend",
|
|
7211
7993
|
"follow",
|
|
7212
7994
|
"invite",
|
|
7213
7995
|
"mention",
|
|
@@ -7252,16 +8034,6 @@ var schemaDict = {
|
|
|
7252
8034
|
}
|
|
7253
8035
|
}
|
|
7254
8036
|
},
|
|
7255
|
-
AppBskySystemActorScene: {
|
|
7256
|
-
lexicon: 1,
|
|
7257
|
-
id: "app.bsky.system.actorScene",
|
|
7258
|
-
defs: {
|
|
7259
|
-
main: {
|
|
7260
|
-
type: "token",
|
|
7261
|
-
description: "Actor type: Scene. Defined for app.bsky.system.declaration's actorType."
|
|
7262
|
-
}
|
|
7263
|
-
}
|
|
7264
|
-
},
|
|
7265
8037
|
AppBskySystemActorUser: {
|
|
7266
8038
|
lexicon: 1,
|
|
7267
8039
|
id: "app.bsky.system.actorUser",
|
|
@@ -7286,10 +8058,7 @@ var schemaDict = {
|
|
|
7286
8058
|
},
|
|
7287
8059
|
actorType: {
|
|
7288
8060
|
type: "string",
|
|
7289
|
-
knownValues: [
|
|
7290
|
-
"app.bsky.system.actorUser",
|
|
7291
|
-
"app.bsky.system.actorScene"
|
|
7292
|
-
]
|
|
8061
|
+
knownValues: ["app.bsky.system.actorUser"]
|
|
7293
8062
|
}
|
|
7294
8063
|
}
|
|
7295
8064
|
}
|
|
@@ -7309,10 +8078,7 @@ var schemaDict = {
|
|
|
7309
8078
|
properties: {
|
|
7310
8079
|
actorType: {
|
|
7311
8080
|
type: "string",
|
|
7312
|
-
knownValues: [
|
|
7313
|
-
"app.bsky.system.actorUser",
|
|
7314
|
-
"app.bsky.system.actorScene"
|
|
7315
|
-
]
|
|
8081
|
+
knownValues: ["app.bsky.system.actorUser"]
|
|
7316
8082
|
}
|
|
7317
8083
|
}
|
|
7318
8084
|
}
|
|
@@ -7410,29 +8176,139 @@ function toKnownErr5(e) {
|
|
|
7410
8176
|
return e;
|
|
7411
8177
|
}
|
|
7412
8178
|
|
|
7413
|
-
// src/client/types/com/atproto/account/resetPassword.ts
|
|
7414
|
-
var resetPassword_exports = {};
|
|
7415
|
-
__export(resetPassword_exports, {
|
|
7416
|
-
ExpiredTokenError: () => ExpiredTokenError,
|
|
7417
|
-
InvalidTokenError: () => InvalidTokenError,
|
|
7418
|
-
toKnownErr: () => toKnownErr6
|
|
8179
|
+
// src/client/types/com/atproto/account/resetPassword.ts
|
|
8180
|
+
var resetPassword_exports = {};
|
|
8181
|
+
__export(resetPassword_exports, {
|
|
8182
|
+
ExpiredTokenError: () => ExpiredTokenError,
|
|
8183
|
+
InvalidTokenError: () => InvalidTokenError,
|
|
8184
|
+
toKnownErr: () => toKnownErr6
|
|
8185
|
+
});
|
|
8186
|
+
var ExpiredTokenError = class extends XRPCError {
|
|
8187
|
+
constructor(src) {
|
|
8188
|
+
super(src.status, src.error, src.message);
|
|
8189
|
+
}
|
|
8190
|
+
};
|
|
8191
|
+
var InvalidTokenError = class extends XRPCError {
|
|
8192
|
+
constructor(src) {
|
|
8193
|
+
super(src.status, src.error, src.message);
|
|
8194
|
+
}
|
|
8195
|
+
};
|
|
8196
|
+
function toKnownErr6(e) {
|
|
8197
|
+
if (e instanceof XRPCError) {
|
|
8198
|
+
if (e.error === "ExpiredToken")
|
|
8199
|
+
return new ExpiredTokenError(e);
|
|
8200
|
+
if (e.error === "InvalidToken")
|
|
8201
|
+
return new InvalidTokenError(e);
|
|
8202
|
+
}
|
|
8203
|
+
return e;
|
|
8204
|
+
}
|
|
8205
|
+
|
|
8206
|
+
// src/client/types/com/atproto/admin/getModerationAction.ts
|
|
8207
|
+
var getModerationAction_exports = {};
|
|
8208
|
+
__export(getModerationAction_exports, {
|
|
8209
|
+
toKnownErr: () => toKnownErr7
|
|
8210
|
+
});
|
|
8211
|
+
function toKnownErr7(e) {
|
|
8212
|
+
if (e instanceof XRPCError) {
|
|
8213
|
+
}
|
|
8214
|
+
return e;
|
|
8215
|
+
}
|
|
8216
|
+
|
|
8217
|
+
// src/client/types/com/atproto/admin/getModerationActions.ts
|
|
8218
|
+
var getModerationActions_exports = {};
|
|
8219
|
+
__export(getModerationActions_exports, {
|
|
8220
|
+
toKnownErr: () => toKnownErr8
|
|
8221
|
+
});
|
|
8222
|
+
function toKnownErr8(e) {
|
|
8223
|
+
if (e instanceof XRPCError) {
|
|
8224
|
+
}
|
|
8225
|
+
return e;
|
|
8226
|
+
}
|
|
8227
|
+
|
|
8228
|
+
// src/client/types/com/atproto/admin/getModerationReport.ts
|
|
8229
|
+
var getModerationReport_exports = {};
|
|
8230
|
+
__export(getModerationReport_exports, {
|
|
8231
|
+
toKnownErr: () => toKnownErr9
|
|
8232
|
+
});
|
|
8233
|
+
function toKnownErr9(e) {
|
|
8234
|
+
if (e instanceof XRPCError) {
|
|
8235
|
+
}
|
|
8236
|
+
return e;
|
|
8237
|
+
}
|
|
8238
|
+
|
|
8239
|
+
// src/client/types/com/atproto/admin/getModerationReports.ts
|
|
8240
|
+
var getModerationReports_exports = {};
|
|
8241
|
+
__export(getModerationReports_exports, {
|
|
8242
|
+
toKnownErr: () => toKnownErr10
|
|
8243
|
+
});
|
|
8244
|
+
function toKnownErr10(e) {
|
|
8245
|
+
if (e instanceof XRPCError) {
|
|
8246
|
+
}
|
|
8247
|
+
return e;
|
|
8248
|
+
}
|
|
8249
|
+
|
|
8250
|
+
// src/client/types/com/atproto/admin/getRecord.ts
|
|
8251
|
+
var getRecord_exports = {};
|
|
8252
|
+
__export(getRecord_exports, {
|
|
8253
|
+
toKnownErr: () => toKnownErr11
|
|
8254
|
+
});
|
|
8255
|
+
function toKnownErr11(e) {
|
|
8256
|
+
if (e instanceof XRPCError) {
|
|
8257
|
+
}
|
|
8258
|
+
return e;
|
|
8259
|
+
}
|
|
8260
|
+
|
|
8261
|
+
// src/client/types/com/atproto/admin/getRepo.ts
|
|
8262
|
+
var getRepo_exports = {};
|
|
8263
|
+
__export(getRepo_exports, {
|
|
8264
|
+
toKnownErr: () => toKnownErr12
|
|
8265
|
+
});
|
|
8266
|
+
function toKnownErr12(e) {
|
|
8267
|
+
if (e instanceof XRPCError) {
|
|
8268
|
+
}
|
|
8269
|
+
return e;
|
|
8270
|
+
}
|
|
8271
|
+
|
|
8272
|
+
// src/client/types/com/atproto/admin/resolveModerationReports.ts
|
|
8273
|
+
var resolveModerationReports_exports = {};
|
|
8274
|
+
__export(resolveModerationReports_exports, {
|
|
8275
|
+
toKnownErr: () => toKnownErr13
|
|
8276
|
+
});
|
|
8277
|
+
function toKnownErr13(e) {
|
|
8278
|
+
if (e instanceof XRPCError) {
|
|
8279
|
+
}
|
|
8280
|
+
return e;
|
|
8281
|
+
}
|
|
8282
|
+
|
|
8283
|
+
// src/client/types/com/atproto/admin/reverseModerationAction.ts
|
|
8284
|
+
var reverseModerationAction_exports = {};
|
|
8285
|
+
__export(reverseModerationAction_exports, {
|
|
8286
|
+
toKnownErr: () => toKnownErr14
|
|
8287
|
+
});
|
|
8288
|
+
function toKnownErr14(e) {
|
|
8289
|
+
if (e instanceof XRPCError) {
|
|
8290
|
+
}
|
|
8291
|
+
return e;
|
|
8292
|
+
}
|
|
8293
|
+
|
|
8294
|
+
// src/client/types/com/atproto/admin/searchRepos.ts
|
|
8295
|
+
var searchRepos_exports = {};
|
|
8296
|
+
__export(searchRepos_exports, {
|
|
8297
|
+
toKnownErr: () => toKnownErr15
|
|
7419
8298
|
});
|
|
7420
|
-
|
|
7421
|
-
|
|
7422
|
-
super(src.status, src.error, src.message);
|
|
7423
|
-
}
|
|
7424
|
-
};
|
|
7425
|
-
var InvalidTokenError = class extends XRPCError {
|
|
7426
|
-
constructor(src) {
|
|
7427
|
-
super(src.status, src.error, src.message);
|
|
8299
|
+
function toKnownErr15(e) {
|
|
8300
|
+
if (e instanceof XRPCError) {
|
|
7428
8301
|
}
|
|
7429
|
-
|
|
7430
|
-
|
|
8302
|
+
return e;
|
|
8303
|
+
}
|
|
8304
|
+
|
|
8305
|
+
// src/client/types/com/atproto/admin/takeModerationAction.ts
|
|
8306
|
+
var takeModerationAction_exports = {};
|
|
8307
|
+
__export(takeModerationAction_exports, {
|
|
8308
|
+
toKnownErr: () => toKnownErr16
|
|
8309
|
+
});
|
|
8310
|
+
function toKnownErr16(e) {
|
|
7431
8311
|
if (e instanceof XRPCError) {
|
|
7432
|
-
if (e.error === "ExpiredToken")
|
|
7433
|
-
return new ExpiredTokenError(e);
|
|
7434
|
-
if (e.error === "InvalidToken")
|
|
7435
|
-
return new InvalidTokenError(e);
|
|
7436
8312
|
}
|
|
7437
8313
|
return e;
|
|
7438
8314
|
}
|
|
@@ -7440,9 +8316,9 @@ function toKnownErr6(e) {
|
|
|
7440
8316
|
// src/client/types/com/atproto/blob/upload.ts
|
|
7441
8317
|
var upload_exports = {};
|
|
7442
8318
|
__export(upload_exports, {
|
|
7443
|
-
toKnownErr: () =>
|
|
8319
|
+
toKnownErr: () => toKnownErr17
|
|
7444
8320
|
});
|
|
7445
|
-
function
|
|
8321
|
+
function toKnownErr17(e) {
|
|
7446
8322
|
if (e instanceof XRPCError) {
|
|
7447
8323
|
}
|
|
7448
8324
|
return e;
|
|
@@ -7451,9 +8327,9 @@ function toKnownErr7(e) {
|
|
|
7451
8327
|
// src/client/types/com/atproto/handle/resolve.ts
|
|
7452
8328
|
var resolve_exports = {};
|
|
7453
8329
|
__export(resolve_exports, {
|
|
7454
|
-
toKnownErr: () =>
|
|
8330
|
+
toKnownErr: () => toKnownErr18
|
|
7455
8331
|
});
|
|
7456
|
-
function
|
|
8332
|
+
function toKnownErr18(e) {
|
|
7457
8333
|
if (e instanceof XRPCError) {
|
|
7458
8334
|
}
|
|
7459
8335
|
return e;
|
|
@@ -7465,7 +8341,7 @@ __export(batchWrite_exports, {
|
|
|
7465
8341
|
isCreate: () => isCreate,
|
|
7466
8342
|
isDelete: () => isDelete,
|
|
7467
8343
|
isUpdate: () => isUpdate,
|
|
7468
|
-
toKnownErr: () =>
|
|
8344
|
+
toKnownErr: () => toKnownErr19,
|
|
7469
8345
|
validateCreate: () => validateCreate,
|
|
7470
8346
|
validateDelete: () => validateDelete,
|
|
7471
8347
|
validateUpdate: () => validateUpdate
|
|
@@ -7480,7 +8356,7 @@ function hasProp2(data, prop) {
|
|
|
7480
8356
|
}
|
|
7481
8357
|
|
|
7482
8358
|
// src/client/types/com/atproto/repo/batchWrite.ts
|
|
7483
|
-
function
|
|
8359
|
+
function toKnownErr19(e) {
|
|
7484
8360
|
if (e instanceof XRPCError) {
|
|
7485
8361
|
}
|
|
7486
8362
|
return e;
|
|
@@ -7507,9 +8383,9 @@ function validateDelete(v) {
|
|
|
7507
8383
|
// src/client/types/com/atproto/repo/createRecord.ts
|
|
7508
8384
|
var createRecord_exports = {};
|
|
7509
8385
|
__export(createRecord_exports, {
|
|
7510
|
-
toKnownErr: () =>
|
|
8386
|
+
toKnownErr: () => toKnownErr20
|
|
7511
8387
|
});
|
|
7512
|
-
function
|
|
8388
|
+
function toKnownErr20(e) {
|
|
7513
8389
|
if (e instanceof XRPCError) {
|
|
7514
8390
|
}
|
|
7515
8391
|
return e;
|
|
@@ -7518,9 +8394,9 @@ function toKnownErr10(e) {
|
|
|
7518
8394
|
// src/client/types/com/atproto/repo/deleteRecord.ts
|
|
7519
8395
|
var deleteRecord_exports = {};
|
|
7520
8396
|
__export(deleteRecord_exports, {
|
|
7521
|
-
toKnownErr: () =>
|
|
8397
|
+
toKnownErr: () => toKnownErr21
|
|
7522
8398
|
});
|
|
7523
|
-
function
|
|
8399
|
+
function toKnownErr21(e) {
|
|
7524
8400
|
if (e instanceof XRPCError) {
|
|
7525
8401
|
}
|
|
7526
8402
|
return e;
|
|
@@ -7529,20 +8405,20 @@ function toKnownErr11(e) {
|
|
|
7529
8405
|
// src/client/types/com/atproto/repo/describe.ts
|
|
7530
8406
|
var describe_exports = {};
|
|
7531
8407
|
__export(describe_exports, {
|
|
7532
|
-
toKnownErr: () =>
|
|
8408
|
+
toKnownErr: () => toKnownErr22
|
|
7533
8409
|
});
|
|
7534
|
-
function
|
|
8410
|
+
function toKnownErr22(e) {
|
|
7535
8411
|
if (e instanceof XRPCError) {
|
|
7536
8412
|
}
|
|
7537
8413
|
return e;
|
|
7538
8414
|
}
|
|
7539
8415
|
|
|
7540
8416
|
// src/client/types/com/atproto/repo/getRecord.ts
|
|
7541
|
-
var
|
|
7542
|
-
__export(
|
|
7543
|
-
toKnownErr: () =>
|
|
8417
|
+
var getRecord_exports2 = {};
|
|
8418
|
+
__export(getRecord_exports2, {
|
|
8419
|
+
toKnownErr: () => toKnownErr23
|
|
7544
8420
|
});
|
|
7545
|
-
function
|
|
8421
|
+
function toKnownErr23(e) {
|
|
7546
8422
|
if (e instanceof XRPCError) {
|
|
7547
8423
|
}
|
|
7548
8424
|
return e;
|
|
@@ -7552,10 +8428,10 @@ function toKnownErr13(e) {
|
|
|
7552
8428
|
var listRecords_exports = {};
|
|
7553
8429
|
__export(listRecords_exports, {
|
|
7554
8430
|
isRecord: () => isRecord,
|
|
7555
|
-
toKnownErr: () =>
|
|
8431
|
+
toKnownErr: () => toKnownErr24,
|
|
7556
8432
|
validateRecord: () => validateRecord
|
|
7557
8433
|
});
|
|
7558
|
-
function
|
|
8434
|
+
function toKnownErr24(e) {
|
|
7559
8435
|
if (e instanceof XRPCError) {
|
|
7560
8436
|
}
|
|
7561
8437
|
return e;
|
|
@@ -7570,9 +8446,20 @@ function validateRecord(v) {
|
|
|
7570
8446
|
// src/client/types/com/atproto/repo/putRecord.ts
|
|
7571
8447
|
var putRecord_exports = {};
|
|
7572
8448
|
__export(putRecord_exports, {
|
|
7573
|
-
toKnownErr: () =>
|
|
8449
|
+
toKnownErr: () => toKnownErr25
|
|
7574
8450
|
});
|
|
7575
|
-
function
|
|
8451
|
+
function toKnownErr25(e) {
|
|
8452
|
+
if (e instanceof XRPCError) {
|
|
8453
|
+
}
|
|
8454
|
+
return e;
|
|
8455
|
+
}
|
|
8456
|
+
|
|
8457
|
+
// src/client/types/com/atproto/report/create.ts
|
|
8458
|
+
var create_exports2 = {};
|
|
8459
|
+
__export(create_exports2, {
|
|
8460
|
+
toKnownErr: () => toKnownErr26
|
|
8461
|
+
});
|
|
8462
|
+
function toKnownErr26(e) {
|
|
7576
8463
|
if (e instanceof XRPCError) {
|
|
7577
8464
|
}
|
|
7578
8465
|
return e;
|
|
@@ -7582,10 +8469,10 @@ function toKnownErr15(e) {
|
|
|
7582
8469
|
var getAccountsConfig_exports = {};
|
|
7583
8470
|
__export(getAccountsConfig_exports, {
|
|
7584
8471
|
isLinks: () => isLinks,
|
|
7585
|
-
toKnownErr: () =>
|
|
8472
|
+
toKnownErr: () => toKnownErr27,
|
|
7586
8473
|
validateLinks: () => validateLinks
|
|
7587
8474
|
});
|
|
7588
|
-
function
|
|
8475
|
+
function toKnownErr27(e) {
|
|
7589
8476
|
if (e instanceof XRPCError) {
|
|
7590
8477
|
}
|
|
7591
8478
|
return e;
|
|
@@ -7598,12 +8485,20 @@ function validateLinks(v) {
|
|
|
7598
8485
|
}
|
|
7599
8486
|
|
|
7600
8487
|
// src/client/types/com/atproto/session/create.ts
|
|
7601
|
-
var
|
|
7602
|
-
__export(
|
|
7603
|
-
|
|
8488
|
+
var create_exports3 = {};
|
|
8489
|
+
__export(create_exports3, {
|
|
8490
|
+
AccountTakedownError: () => AccountTakedownError,
|
|
8491
|
+
toKnownErr: () => toKnownErr28
|
|
7604
8492
|
});
|
|
7605
|
-
|
|
8493
|
+
var AccountTakedownError = class extends XRPCError {
|
|
8494
|
+
constructor(src) {
|
|
8495
|
+
super(src.status, src.error, src.message);
|
|
8496
|
+
}
|
|
8497
|
+
};
|
|
8498
|
+
function toKnownErr28(e) {
|
|
7606
8499
|
if (e instanceof XRPCError) {
|
|
8500
|
+
if (e.error === "AccountTakedown")
|
|
8501
|
+
return new AccountTakedownError(e);
|
|
7607
8502
|
}
|
|
7608
8503
|
return e;
|
|
7609
8504
|
}
|
|
@@ -7611,9 +8506,9 @@ function toKnownErr17(e) {
|
|
|
7611
8506
|
// src/client/types/com/atproto/session/delete.ts
|
|
7612
8507
|
var delete_exports2 = {};
|
|
7613
8508
|
__export(delete_exports2, {
|
|
7614
|
-
toKnownErr: () =>
|
|
8509
|
+
toKnownErr: () => toKnownErr29
|
|
7615
8510
|
});
|
|
7616
|
-
function
|
|
8511
|
+
function toKnownErr29(e) {
|
|
7617
8512
|
if (e instanceof XRPCError) {
|
|
7618
8513
|
}
|
|
7619
8514
|
return e;
|
|
@@ -7622,9 +8517,9 @@ function toKnownErr18(e) {
|
|
|
7622
8517
|
// src/client/types/com/atproto/session/get.ts
|
|
7623
8518
|
var get_exports2 = {};
|
|
7624
8519
|
__export(get_exports2, {
|
|
7625
|
-
toKnownErr: () =>
|
|
8520
|
+
toKnownErr: () => toKnownErr30
|
|
7626
8521
|
});
|
|
7627
|
-
function
|
|
8522
|
+
function toKnownErr30(e) {
|
|
7628
8523
|
if (e instanceof XRPCError) {
|
|
7629
8524
|
}
|
|
7630
8525
|
return e;
|
|
@@ -7633,70 +8528,73 @@ function toKnownErr19(e) {
|
|
|
7633
8528
|
// src/client/types/com/atproto/session/refresh.ts
|
|
7634
8529
|
var refresh_exports = {};
|
|
7635
8530
|
__export(refresh_exports, {
|
|
7636
|
-
|
|
8531
|
+
AccountTakedownError: () => AccountTakedownError2,
|
|
8532
|
+
toKnownErr: () => toKnownErr31
|
|
7637
8533
|
});
|
|
7638
|
-
|
|
8534
|
+
var AccountTakedownError2 = class extends XRPCError {
|
|
8535
|
+
constructor(src) {
|
|
8536
|
+
super(src.status, src.error, src.message);
|
|
8537
|
+
}
|
|
8538
|
+
};
|
|
8539
|
+
function toKnownErr31(e) {
|
|
7639
8540
|
if (e instanceof XRPCError) {
|
|
8541
|
+
if (e.error === "AccountTakedown")
|
|
8542
|
+
return new AccountTakedownError2(e);
|
|
7640
8543
|
}
|
|
7641
8544
|
return e;
|
|
7642
8545
|
}
|
|
7643
8546
|
|
|
7644
|
-
// src/client/types/com/atproto/sync/
|
|
7645
|
-
var
|
|
7646
|
-
__export(
|
|
7647
|
-
toKnownErr: () =>
|
|
8547
|
+
// src/client/types/com/atproto/sync/getCheckout.ts
|
|
8548
|
+
var getCheckout_exports = {};
|
|
8549
|
+
__export(getCheckout_exports, {
|
|
8550
|
+
toKnownErr: () => toKnownErr32
|
|
7648
8551
|
});
|
|
7649
|
-
function
|
|
8552
|
+
function toKnownErr32(e) {
|
|
7650
8553
|
if (e instanceof XRPCError) {
|
|
7651
8554
|
}
|
|
7652
8555
|
return e;
|
|
7653
8556
|
}
|
|
7654
8557
|
|
|
7655
|
-
// src/client/types/com/atproto/sync/
|
|
7656
|
-
var
|
|
7657
|
-
__export(
|
|
7658
|
-
toKnownErr: () =>
|
|
8558
|
+
// src/client/types/com/atproto/sync/getCommitPath.ts
|
|
8559
|
+
var getCommitPath_exports = {};
|
|
8560
|
+
__export(getCommitPath_exports, {
|
|
8561
|
+
toKnownErr: () => toKnownErr33
|
|
7659
8562
|
});
|
|
7660
|
-
function
|
|
8563
|
+
function toKnownErr33(e) {
|
|
7661
8564
|
if (e instanceof XRPCError) {
|
|
7662
8565
|
}
|
|
7663
8566
|
return e;
|
|
7664
8567
|
}
|
|
7665
8568
|
|
|
7666
|
-
// src/client/types/com/atproto/sync/
|
|
7667
|
-
var
|
|
7668
|
-
__export(
|
|
7669
|
-
toKnownErr: () =>
|
|
8569
|
+
// src/client/types/com/atproto/sync/getHead.ts
|
|
8570
|
+
var getHead_exports = {};
|
|
8571
|
+
__export(getHead_exports, {
|
|
8572
|
+
toKnownErr: () => toKnownErr34
|
|
7670
8573
|
});
|
|
7671
|
-
function
|
|
8574
|
+
function toKnownErr34(e) {
|
|
7672
8575
|
if (e instanceof XRPCError) {
|
|
7673
8576
|
}
|
|
7674
8577
|
return e;
|
|
7675
8578
|
}
|
|
7676
8579
|
|
|
7677
|
-
// src/client/types/
|
|
7678
|
-
var
|
|
7679
|
-
__export(
|
|
7680
|
-
|
|
7681
|
-
InvalidHandleError: () => InvalidHandleError2,
|
|
7682
|
-
toKnownErr: () => toKnownErr24
|
|
8580
|
+
// src/client/types/com/atproto/sync/getRecord.ts
|
|
8581
|
+
var getRecord_exports3 = {};
|
|
8582
|
+
__export(getRecord_exports3, {
|
|
8583
|
+
toKnownErr: () => toKnownErr35
|
|
7683
8584
|
});
|
|
7684
|
-
|
|
7685
|
-
|
|
7686
|
-
super(src.status, src.error, src.message);
|
|
7687
|
-
}
|
|
7688
|
-
};
|
|
7689
|
-
var HandleNotAvailableError2 = class extends XRPCError {
|
|
7690
|
-
constructor(src) {
|
|
7691
|
-
super(src.status, src.error, src.message);
|
|
8585
|
+
function toKnownErr35(e) {
|
|
8586
|
+
if (e instanceof XRPCError) {
|
|
7692
8587
|
}
|
|
7693
|
-
|
|
7694
|
-
|
|
8588
|
+
return e;
|
|
8589
|
+
}
|
|
8590
|
+
|
|
8591
|
+
// src/client/types/com/atproto/sync/getRepo.ts
|
|
8592
|
+
var getRepo_exports2 = {};
|
|
8593
|
+
__export(getRepo_exports2, {
|
|
8594
|
+
toKnownErr: () => toKnownErr36
|
|
8595
|
+
});
|
|
8596
|
+
function toKnownErr36(e) {
|
|
7695
8597
|
if (e instanceof XRPCError) {
|
|
7696
|
-
if (e.error === "InvalidHandle")
|
|
7697
|
-
return new InvalidHandleError2(e);
|
|
7698
|
-
if (e.error === "HandleNotAvailable")
|
|
7699
|
-
return new HandleNotAvailableError2(e);
|
|
7700
8598
|
}
|
|
7701
8599
|
return e;
|
|
7702
8600
|
}
|
|
@@ -7705,10 +8603,10 @@ function toKnownErr24(e) {
|
|
|
7705
8603
|
var getProfile_exports = {};
|
|
7706
8604
|
__export(getProfile_exports, {
|
|
7707
8605
|
isMyState: () => isMyState,
|
|
7708
|
-
toKnownErr: () =>
|
|
8606
|
+
toKnownErr: () => toKnownErr37,
|
|
7709
8607
|
validateMyState: () => validateMyState
|
|
7710
8608
|
});
|
|
7711
|
-
function
|
|
8609
|
+
function toKnownErr37(e) {
|
|
7712
8610
|
if (e instanceof XRPCError) {
|
|
7713
8611
|
}
|
|
7714
8612
|
return e;
|
|
@@ -7725,11 +8623,11 @@ var getSuggestions_exports = {};
|
|
|
7725
8623
|
__export(getSuggestions_exports, {
|
|
7726
8624
|
isActor: () => isActor,
|
|
7727
8625
|
isMyState: () => isMyState2,
|
|
7728
|
-
toKnownErr: () =>
|
|
8626
|
+
toKnownErr: () => toKnownErr38,
|
|
7729
8627
|
validateActor: () => validateActor,
|
|
7730
8628
|
validateMyState: () => validateMyState2
|
|
7731
8629
|
});
|
|
7732
|
-
function
|
|
8630
|
+
function toKnownErr38(e) {
|
|
7733
8631
|
if (e instanceof XRPCError) {
|
|
7734
8632
|
}
|
|
7735
8633
|
return e;
|
|
@@ -7751,10 +8649,10 @@ function validateMyState2(v) {
|
|
|
7751
8649
|
var search_exports = {};
|
|
7752
8650
|
__export(search_exports, {
|
|
7753
8651
|
isUser: () => isUser,
|
|
7754
|
-
toKnownErr: () =>
|
|
8652
|
+
toKnownErr: () => toKnownErr39,
|
|
7755
8653
|
validateUser: () => validateUser
|
|
7756
8654
|
});
|
|
7757
|
-
function
|
|
8655
|
+
function toKnownErr39(e) {
|
|
7758
8656
|
if (e instanceof XRPCError) {
|
|
7759
8657
|
}
|
|
7760
8658
|
return e;
|
|
@@ -7770,10 +8668,10 @@ function validateUser(v) {
|
|
|
7770
8668
|
var searchTypeahead_exports = {};
|
|
7771
8669
|
__export(searchTypeahead_exports, {
|
|
7772
8670
|
isUser: () => isUser2,
|
|
7773
|
-
toKnownErr: () =>
|
|
8671
|
+
toKnownErr: () => toKnownErr40,
|
|
7774
8672
|
validateUser: () => validateUser2
|
|
7775
8673
|
});
|
|
7776
|
-
function
|
|
8674
|
+
function toKnownErr40(e) {
|
|
7777
8675
|
if (e instanceof XRPCError) {
|
|
7778
8676
|
}
|
|
7779
8677
|
return e;
|
|
@@ -7792,7 +8690,7 @@ __export(updateProfile_exports, {
|
|
|
7792
8690
|
InvalidBlobError: () => InvalidBlobError,
|
|
7793
8691
|
InvalidImageDimensionsError: () => InvalidImageDimensionsError,
|
|
7794
8692
|
InvalidMimeTypeError: () => InvalidMimeTypeError,
|
|
7795
|
-
toKnownErr: () =>
|
|
8693
|
+
toKnownErr: () => toKnownErr41
|
|
7796
8694
|
});
|
|
7797
8695
|
var InvalidBlobError = class extends XRPCError {
|
|
7798
8696
|
constructor(src) {
|
|
@@ -7814,7 +8712,7 @@ var InvalidImageDimensionsError = class extends XRPCError {
|
|
|
7814
8712
|
super(src.status, src.error, src.message);
|
|
7815
8713
|
}
|
|
7816
8714
|
};
|
|
7817
|
-
function
|
|
8715
|
+
function toKnownErr41(e) {
|
|
7818
8716
|
if (e instanceof XRPCError) {
|
|
7819
8717
|
if (e.error === "InvalidBlob")
|
|
7820
8718
|
return new InvalidBlobError(e);
|
|
@@ -7831,9 +8729,9 @@ function toKnownErr29(e) {
|
|
|
7831
8729
|
// src/client/types/app/bsky/feed/getAuthorFeed.ts
|
|
7832
8730
|
var getAuthorFeed_exports = {};
|
|
7833
8731
|
__export(getAuthorFeed_exports, {
|
|
7834
|
-
toKnownErr: () =>
|
|
8732
|
+
toKnownErr: () => toKnownErr42
|
|
7835
8733
|
});
|
|
7836
|
-
function
|
|
8734
|
+
function toKnownErr42(e) {
|
|
7837
8735
|
if (e instanceof XRPCError) {
|
|
7838
8736
|
}
|
|
7839
8737
|
return e;
|
|
@@ -7845,7 +8743,7 @@ __export(getPostThread_exports, {
|
|
|
7845
8743
|
NotFoundError: () => NotFoundError,
|
|
7846
8744
|
isNotFoundPost: () => isNotFoundPost,
|
|
7847
8745
|
isThreadViewPost: () => isThreadViewPost,
|
|
7848
|
-
toKnownErr: () =>
|
|
8746
|
+
toKnownErr: () => toKnownErr43,
|
|
7849
8747
|
validateNotFoundPost: () => validateNotFoundPost,
|
|
7850
8748
|
validateThreadViewPost: () => validateThreadViewPost
|
|
7851
8749
|
});
|
|
@@ -7854,7 +8752,7 @@ var NotFoundError = class extends XRPCError {
|
|
|
7854
8752
|
super(src.status, src.error, src.message);
|
|
7855
8753
|
}
|
|
7856
8754
|
};
|
|
7857
|
-
function
|
|
8755
|
+
function toKnownErr43(e) {
|
|
7858
8756
|
if (e instanceof XRPCError) {
|
|
7859
8757
|
if (e.error === "NotFound")
|
|
7860
8758
|
return new NotFoundError(e);
|
|
@@ -7878,10 +8776,10 @@ function validateNotFoundPost(v) {
|
|
|
7878
8776
|
var getRepostedBy_exports = {};
|
|
7879
8777
|
__export(getRepostedBy_exports, {
|
|
7880
8778
|
isRepostedBy: () => isRepostedBy,
|
|
7881
|
-
toKnownErr: () =>
|
|
8779
|
+
toKnownErr: () => toKnownErr44,
|
|
7882
8780
|
validateRepostedBy: () => validateRepostedBy
|
|
7883
8781
|
});
|
|
7884
|
-
function
|
|
8782
|
+
function toKnownErr44(e) {
|
|
7885
8783
|
if (e instanceof XRPCError) {
|
|
7886
8784
|
}
|
|
7887
8785
|
return e;
|
|
@@ -7896,9 +8794,9 @@ function validateRepostedBy(v) {
|
|
|
7896
8794
|
// src/client/types/app/bsky/feed/getTimeline.ts
|
|
7897
8795
|
var getTimeline_exports = {};
|
|
7898
8796
|
__export(getTimeline_exports, {
|
|
7899
|
-
toKnownErr: () =>
|
|
8797
|
+
toKnownErr: () => toKnownErr45
|
|
7900
8798
|
});
|
|
7901
|
-
function
|
|
8799
|
+
function toKnownErr45(e) {
|
|
7902
8800
|
if (e instanceof XRPCError) {
|
|
7903
8801
|
}
|
|
7904
8802
|
return e;
|
|
@@ -7908,10 +8806,10 @@ function toKnownErr33(e) {
|
|
|
7908
8806
|
var getVotes_exports = {};
|
|
7909
8807
|
__export(getVotes_exports, {
|
|
7910
8808
|
isVote: () => isVote,
|
|
7911
|
-
toKnownErr: () =>
|
|
8809
|
+
toKnownErr: () => toKnownErr46,
|
|
7912
8810
|
validateVote: () => validateVote
|
|
7913
8811
|
});
|
|
7914
|
-
function
|
|
8812
|
+
function toKnownErr46(e) {
|
|
7915
8813
|
if (e instanceof XRPCError) {
|
|
7916
8814
|
}
|
|
7917
8815
|
return e;
|
|
@@ -7926,49 +8824,22 @@ function validateVote(v) {
|
|
|
7926
8824
|
// src/client/types/app/bsky/feed/setVote.ts
|
|
7927
8825
|
var setVote_exports = {};
|
|
7928
8826
|
__export(setVote_exports, {
|
|
7929
|
-
toKnownErr: () =>
|
|
7930
|
-
});
|
|
7931
|
-
function toKnownErr35(e) {
|
|
7932
|
-
if (e instanceof XRPCError) {
|
|
7933
|
-
}
|
|
7934
|
-
return e;
|
|
7935
|
-
}
|
|
7936
|
-
|
|
7937
|
-
// src/client/types/app/bsky/graph/getAssertions.ts
|
|
7938
|
-
var getAssertions_exports = {};
|
|
7939
|
-
__export(getAssertions_exports, {
|
|
7940
|
-
isAssertion: () => isAssertion,
|
|
7941
|
-
isConfirmation: () => isConfirmation,
|
|
7942
|
-
toKnownErr: () => toKnownErr36,
|
|
7943
|
-
validateAssertion: () => validateAssertion,
|
|
7944
|
-
validateConfirmation: () => validateConfirmation
|
|
8827
|
+
toKnownErr: () => toKnownErr47
|
|
7945
8828
|
});
|
|
7946
|
-
function
|
|
8829
|
+
function toKnownErr47(e) {
|
|
7947
8830
|
if (e instanceof XRPCError) {
|
|
7948
8831
|
}
|
|
7949
8832
|
return e;
|
|
7950
8833
|
}
|
|
7951
|
-
function isAssertion(v) {
|
|
7952
|
-
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.graph.getAssertions#assertion";
|
|
7953
|
-
}
|
|
7954
|
-
function validateAssertion(v) {
|
|
7955
|
-
return lexicons.validate("app.bsky.graph.getAssertions#assertion", v);
|
|
7956
|
-
}
|
|
7957
|
-
function isConfirmation(v) {
|
|
7958
|
-
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.graph.getAssertions#confirmation";
|
|
7959
|
-
}
|
|
7960
|
-
function validateConfirmation(v) {
|
|
7961
|
-
return lexicons.validate("app.bsky.graph.getAssertions#confirmation", v);
|
|
7962
|
-
}
|
|
7963
8834
|
|
|
7964
8835
|
// src/client/types/app/bsky/graph/getFollowers.ts
|
|
7965
8836
|
var getFollowers_exports = {};
|
|
7966
8837
|
__export(getFollowers_exports, {
|
|
7967
8838
|
isFollower: () => isFollower,
|
|
7968
|
-
toKnownErr: () =>
|
|
8839
|
+
toKnownErr: () => toKnownErr48,
|
|
7969
8840
|
validateFollower: () => validateFollower
|
|
7970
8841
|
});
|
|
7971
|
-
function
|
|
8842
|
+
function toKnownErr48(e) {
|
|
7972
8843
|
if (e instanceof XRPCError) {
|
|
7973
8844
|
}
|
|
7974
8845
|
return e;
|
|
@@ -7984,10 +8855,10 @@ function validateFollower(v) {
|
|
|
7984
8855
|
var getFollows_exports = {};
|
|
7985
8856
|
__export(getFollows_exports, {
|
|
7986
8857
|
isFollow: () => isFollow,
|
|
7987
|
-
toKnownErr: () =>
|
|
8858
|
+
toKnownErr: () => toKnownErr49,
|
|
7988
8859
|
validateFollow: () => validateFollow
|
|
7989
8860
|
});
|
|
7990
|
-
function
|
|
8861
|
+
function toKnownErr49(e) {
|
|
7991
8862
|
if (e instanceof XRPCError) {
|
|
7992
8863
|
}
|
|
7993
8864
|
return e;
|
|
@@ -7999,52 +8870,14 @@ function validateFollow(v) {
|
|
|
7999
8870
|
return lexicons.validate("app.bsky.graph.getFollows#follow", v);
|
|
8000
8871
|
}
|
|
8001
8872
|
|
|
8002
|
-
// src/client/types/app/bsky/graph/getMembers.ts
|
|
8003
|
-
var getMembers_exports = {};
|
|
8004
|
-
__export(getMembers_exports, {
|
|
8005
|
-
isMember: () => isMember,
|
|
8006
|
-
toKnownErr: () => toKnownErr39,
|
|
8007
|
-
validateMember: () => validateMember
|
|
8008
|
-
});
|
|
8009
|
-
function toKnownErr39(e) {
|
|
8010
|
-
if (e instanceof XRPCError) {
|
|
8011
|
-
}
|
|
8012
|
-
return e;
|
|
8013
|
-
}
|
|
8014
|
-
function isMember(v) {
|
|
8015
|
-
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.graph.getMembers#member";
|
|
8016
|
-
}
|
|
8017
|
-
function validateMember(v) {
|
|
8018
|
-
return lexicons.validate("app.bsky.graph.getMembers#member", v);
|
|
8019
|
-
}
|
|
8020
|
-
|
|
8021
|
-
// src/client/types/app/bsky/graph/getMemberships.ts
|
|
8022
|
-
var getMemberships_exports = {};
|
|
8023
|
-
__export(getMemberships_exports, {
|
|
8024
|
-
isMembership: () => isMembership,
|
|
8025
|
-
toKnownErr: () => toKnownErr40,
|
|
8026
|
-
validateMembership: () => validateMembership
|
|
8027
|
-
});
|
|
8028
|
-
function toKnownErr40(e) {
|
|
8029
|
-
if (e instanceof XRPCError) {
|
|
8030
|
-
}
|
|
8031
|
-
return e;
|
|
8032
|
-
}
|
|
8033
|
-
function isMembership(v) {
|
|
8034
|
-
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.graph.getMemberships#membership";
|
|
8035
|
-
}
|
|
8036
|
-
function validateMembership(v) {
|
|
8037
|
-
return lexicons.validate("app.bsky.graph.getMemberships#membership", v);
|
|
8038
|
-
}
|
|
8039
|
-
|
|
8040
8873
|
// src/client/types/app/bsky/graph/getMutes.ts
|
|
8041
8874
|
var getMutes_exports = {};
|
|
8042
8875
|
__export(getMutes_exports, {
|
|
8043
8876
|
isMute: () => isMute,
|
|
8044
|
-
toKnownErr: () =>
|
|
8877
|
+
toKnownErr: () => toKnownErr50,
|
|
8045
8878
|
validateMute: () => validateMute
|
|
8046
8879
|
});
|
|
8047
|
-
function
|
|
8880
|
+
function toKnownErr50(e) {
|
|
8048
8881
|
if (e instanceof XRPCError) {
|
|
8049
8882
|
}
|
|
8050
8883
|
return e;
|
|
@@ -8059,9 +8892,9 @@ function validateMute(v) {
|
|
|
8059
8892
|
// src/client/types/app/bsky/graph/mute.ts
|
|
8060
8893
|
var mute_exports = {};
|
|
8061
8894
|
__export(mute_exports, {
|
|
8062
|
-
toKnownErr: () =>
|
|
8895
|
+
toKnownErr: () => toKnownErr51
|
|
8063
8896
|
});
|
|
8064
|
-
function
|
|
8897
|
+
function toKnownErr51(e) {
|
|
8065
8898
|
if (e instanceof XRPCError) {
|
|
8066
8899
|
}
|
|
8067
8900
|
return e;
|
|
@@ -8070,9 +8903,9 @@ function toKnownErr42(e) {
|
|
|
8070
8903
|
// src/client/types/app/bsky/graph/unmute.ts
|
|
8071
8904
|
var unmute_exports = {};
|
|
8072
8905
|
__export(unmute_exports, {
|
|
8073
|
-
toKnownErr: () =>
|
|
8906
|
+
toKnownErr: () => toKnownErr52
|
|
8074
8907
|
});
|
|
8075
|
-
function
|
|
8908
|
+
function toKnownErr52(e) {
|
|
8076
8909
|
if (e instanceof XRPCError) {
|
|
8077
8910
|
}
|
|
8078
8911
|
return e;
|
|
@@ -8081,9 +8914,9 @@ function toKnownErr43(e) {
|
|
|
8081
8914
|
// src/client/types/app/bsky/notification/getCount.ts
|
|
8082
8915
|
var getCount_exports = {};
|
|
8083
8916
|
__export(getCount_exports, {
|
|
8084
|
-
toKnownErr: () =>
|
|
8917
|
+
toKnownErr: () => toKnownErr53
|
|
8085
8918
|
});
|
|
8086
|
-
function
|
|
8919
|
+
function toKnownErr53(e) {
|
|
8087
8920
|
if (e instanceof XRPCError) {
|
|
8088
8921
|
}
|
|
8089
8922
|
return e;
|
|
@@ -8093,10 +8926,10 @@ function toKnownErr44(e) {
|
|
|
8093
8926
|
var list_exports = {};
|
|
8094
8927
|
__export(list_exports, {
|
|
8095
8928
|
isNotification: () => isNotification,
|
|
8096
|
-
toKnownErr: () =>
|
|
8929
|
+
toKnownErr: () => toKnownErr54,
|
|
8097
8930
|
validateNotification: () => validateNotification
|
|
8098
8931
|
});
|
|
8099
|
-
function
|
|
8932
|
+
function toKnownErr54(e) {
|
|
8100
8933
|
if (e instanceof XRPCError) {
|
|
8101
8934
|
}
|
|
8102
8935
|
return e;
|
|
@@ -8108,57 +8941,259 @@ function validateNotification(v) {
|
|
|
8108
8941
|
return lexicons.validate("app.bsky.notification.list#notification", v);
|
|
8109
8942
|
}
|
|
8110
8943
|
|
|
8111
|
-
// src/client/types/app/bsky/notification/updateSeen.ts
|
|
8112
|
-
var updateSeen_exports = {};
|
|
8113
|
-
__export(updateSeen_exports, {
|
|
8114
|
-
toKnownErr: () =>
|
|
8944
|
+
// src/client/types/app/bsky/notification/updateSeen.ts
|
|
8945
|
+
var updateSeen_exports = {};
|
|
8946
|
+
__export(updateSeen_exports, {
|
|
8947
|
+
toKnownErr: () => toKnownErr55
|
|
8948
|
+
});
|
|
8949
|
+
function toKnownErr55(e) {
|
|
8950
|
+
if (e instanceof XRPCError) {
|
|
8951
|
+
}
|
|
8952
|
+
return e;
|
|
8953
|
+
}
|
|
8954
|
+
|
|
8955
|
+
// src/client/types/com/atproto/admin/moderationAction.ts
|
|
8956
|
+
var moderationAction_exports = {};
|
|
8957
|
+
__export(moderationAction_exports, {
|
|
8958
|
+
ACKNOWLEDGE: () => ACKNOWLEDGE,
|
|
8959
|
+
FLAG: () => FLAG,
|
|
8960
|
+
TAKEDOWN: () => TAKEDOWN,
|
|
8961
|
+
isReversal: () => isReversal,
|
|
8962
|
+
isView: () => isView,
|
|
8963
|
+
isViewDetail: () => isViewDetail,
|
|
8964
|
+
validateReversal: () => validateReversal,
|
|
8965
|
+
validateView: () => validateView,
|
|
8966
|
+
validateViewDetail: () => validateViewDetail
|
|
8967
|
+
});
|
|
8968
|
+
function isView(v) {
|
|
8969
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.admin.moderationAction#view";
|
|
8970
|
+
}
|
|
8971
|
+
function validateView(v) {
|
|
8972
|
+
return lexicons.validate("com.atproto.admin.moderationAction#view", v);
|
|
8973
|
+
}
|
|
8974
|
+
function isViewDetail(v) {
|
|
8975
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.admin.moderationAction#viewDetail";
|
|
8976
|
+
}
|
|
8977
|
+
function validateViewDetail(v) {
|
|
8978
|
+
return lexicons.validate("com.atproto.admin.moderationAction#viewDetail", v);
|
|
8979
|
+
}
|
|
8980
|
+
function isReversal(v) {
|
|
8981
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.admin.moderationAction#reversal";
|
|
8982
|
+
}
|
|
8983
|
+
function validateReversal(v) {
|
|
8984
|
+
return lexicons.validate("com.atproto.admin.moderationAction#reversal", v);
|
|
8985
|
+
}
|
|
8986
|
+
var TAKEDOWN = "com.atproto.admin.moderationAction#takedown";
|
|
8987
|
+
var FLAG = "com.atproto.admin.moderationAction#flag";
|
|
8988
|
+
var ACKNOWLEDGE = "com.atproto.admin.moderationAction#acknowledge";
|
|
8989
|
+
|
|
8990
|
+
// src/client/types/com/atproto/admin/moderationReport.ts
|
|
8991
|
+
var moderationReport_exports = {};
|
|
8992
|
+
__export(moderationReport_exports, {
|
|
8993
|
+
isView: () => isView2,
|
|
8994
|
+
isViewDetail: () => isViewDetail2,
|
|
8995
|
+
validateView: () => validateView2,
|
|
8996
|
+
validateViewDetail: () => validateViewDetail2
|
|
8997
|
+
});
|
|
8998
|
+
function isView2(v) {
|
|
8999
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.admin.moderationReport#view";
|
|
9000
|
+
}
|
|
9001
|
+
function validateView2(v) {
|
|
9002
|
+
return lexicons.validate("com.atproto.admin.moderationReport#view", v);
|
|
9003
|
+
}
|
|
9004
|
+
function isViewDetail2(v) {
|
|
9005
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.admin.moderationReport#viewDetail";
|
|
9006
|
+
}
|
|
9007
|
+
function validateViewDetail2(v) {
|
|
9008
|
+
return lexicons.validate("com.atproto.admin.moderationReport#viewDetail", v);
|
|
9009
|
+
}
|
|
9010
|
+
|
|
9011
|
+
// src/client/types/com/atproto/admin/record.ts
|
|
9012
|
+
var record_exports = {};
|
|
9013
|
+
__export(record_exports, {
|
|
9014
|
+
isModeration: () => isModeration,
|
|
9015
|
+
isModerationDetail: () => isModerationDetail,
|
|
9016
|
+
isView: () => isView3,
|
|
9017
|
+
isViewDetail: () => isViewDetail3,
|
|
9018
|
+
validateModeration: () => validateModeration,
|
|
9019
|
+
validateModerationDetail: () => validateModerationDetail,
|
|
9020
|
+
validateView: () => validateView3,
|
|
9021
|
+
validateViewDetail: () => validateViewDetail3
|
|
9022
|
+
});
|
|
9023
|
+
function isView3(v) {
|
|
9024
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.admin.record#view";
|
|
9025
|
+
}
|
|
9026
|
+
function validateView3(v) {
|
|
9027
|
+
return lexicons.validate("com.atproto.admin.record#view", v);
|
|
9028
|
+
}
|
|
9029
|
+
function isViewDetail3(v) {
|
|
9030
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.admin.record#viewDetail";
|
|
9031
|
+
}
|
|
9032
|
+
function validateViewDetail3(v) {
|
|
9033
|
+
return lexicons.validate("com.atproto.admin.record#viewDetail", v);
|
|
9034
|
+
}
|
|
9035
|
+
function isModeration(v) {
|
|
9036
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.admin.record#moderation";
|
|
9037
|
+
}
|
|
9038
|
+
function validateModeration(v) {
|
|
9039
|
+
return lexicons.validate("com.atproto.admin.record#moderation", v);
|
|
9040
|
+
}
|
|
9041
|
+
function isModerationDetail(v) {
|
|
9042
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.admin.record#moderationDetail";
|
|
9043
|
+
}
|
|
9044
|
+
function validateModerationDetail(v) {
|
|
9045
|
+
return lexicons.validate("com.atproto.admin.record#moderationDetail", v);
|
|
9046
|
+
}
|
|
9047
|
+
|
|
9048
|
+
// src/client/types/com/atproto/admin/repo.ts
|
|
9049
|
+
var repo_exports = {};
|
|
9050
|
+
__export(repo_exports, {
|
|
9051
|
+
isAccount: () => isAccount,
|
|
9052
|
+
isModeration: () => isModeration2,
|
|
9053
|
+
isModerationDetail: () => isModerationDetail2,
|
|
9054
|
+
isView: () => isView4,
|
|
9055
|
+
isViewDetail: () => isViewDetail4,
|
|
9056
|
+
validateAccount: () => validateAccount,
|
|
9057
|
+
validateModeration: () => validateModeration2,
|
|
9058
|
+
validateModerationDetail: () => validateModerationDetail2,
|
|
9059
|
+
validateView: () => validateView4,
|
|
9060
|
+
validateViewDetail: () => validateViewDetail4
|
|
9061
|
+
});
|
|
9062
|
+
function isView4(v) {
|
|
9063
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.admin.repo#view";
|
|
9064
|
+
}
|
|
9065
|
+
function validateView4(v) {
|
|
9066
|
+
return lexicons.validate("com.atproto.admin.repo#view", v);
|
|
9067
|
+
}
|
|
9068
|
+
function isViewDetail4(v) {
|
|
9069
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.admin.repo#viewDetail";
|
|
9070
|
+
}
|
|
9071
|
+
function validateViewDetail4(v) {
|
|
9072
|
+
return lexicons.validate("com.atproto.admin.repo#viewDetail", v);
|
|
9073
|
+
}
|
|
9074
|
+
function isAccount(v) {
|
|
9075
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.admin.repo#account";
|
|
9076
|
+
}
|
|
9077
|
+
function validateAccount(v) {
|
|
9078
|
+
return lexicons.validate("com.atproto.admin.repo#account", v);
|
|
9079
|
+
}
|
|
9080
|
+
function isModeration2(v) {
|
|
9081
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.admin.repo#moderation";
|
|
9082
|
+
}
|
|
9083
|
+
function validateModeration2(v) {
|
|
9084
|
+
return lexicons.validate("com.atproto.admin.repo#moderation", v);
|
|
9085
|
+
}
|
|
9086
|
+
function isModerationDetail2(v) {
|
|
9087
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.admin.repo#moderationDetail";
|
|
9088
|
+
}
|
|
9089
|
+
function validateModerationDetail2(v) {
|
|
9090
|
+
return lexicons.validate("com.atproto.admin.repo#moderationDetail", v);
|
|
9091
|
+
}
|
|
9092
|
+
|
|
9093
|
+
// src/client/types/com/atproto/repo/recordRef.ts
|
|
9094
|
+
var recordRef_exports = {};
|
|
9095
|
+
__export(recordRef_exports, {
|
|
9096
|
+
isMain: () => isMain,
|
|
9097
|
+
validateMain: () => validateMain
|
|
9098
|
+
});
|
|
9099
|
+
function isMain(v) {
|
|
9100
|
+
return isObj2(v) && hasProp2(v, "$type") && (v.$type === "com.atproto.repo.recordRef#main" || v.$type === "com.atproto.repo.recordRef");
|
|
9101
|
+
}
|
|
9102
|
+
function validateMain(v) {
|
|
9103
|
+
return lexicons.validate("com.atproto.repo.recordRef#main", v);
|
|
9104
|
+
}
|
|
9105
|
+
|
|
9106
|
+
// src/client/types/com/atproto/repo/repoRef.ts
|
|
9107
|
+
var repoRef_exports = {};
|
|
9108
|
+
__export(repoRef_exports, {
|
|
9109
|
+
isMain: () => isMain2,
|
|
9110
|
+
validateMain: () => validateMain2
|
|
8115
9111
|
});
|
|
8116
|
-
function
|
|
8117
|
-
|
|
8118
|
-
|
|
8119
|
-
|
|
9112
|
+
function isMain2(v) {
|
|
9113
|
+
return isObj2(v) && hasProp2(v, "$type") && (v.$type === "com.atproto.repo.repoRef#main" || v.$type === "com.atproto.repo.repoRef");
|
|
9114
|
+
}
|
|
9115
|
+
function validateMain2(v) {
|
|
9116
|
+
return lexicons.validate("com.atproto.repo.repoRef#main", v);
|
|
8120
9117
|
}
|
|
8121
9118
|
|
|
8122
9119
|
// src/client/types/com/atproto/repo/strongRef.ts
|
|
8123
9120
|
var strongRef_exports = {};
|
|
8124
9121
|
__export(strongRef_exports, {
|
|
8125
|
-
isMain: () =>
|
|
8126
|
-
validateMain: () =>
|
|
9122
|
+
isMain: () => isMain3,
|
|
9123
|
+
validateMain: () => validateMain3
|
|
8127
9124
|
});
|
|
8128
|
-
function
|
|
9125
|
+
function isMain3(v) {
|
|
8129
9126
|
return isObj2(v) && hasProp2(v, "$type") && (v.$type === "com.atproto.repo.strongRef#main" || v.$type === "com.atproto.repo.strongRef");
|
|
8130
9127
|
}
|
|
8131
|
-
function
|
|
9128
|
+
function validateMain3(v) {
|
|
8132
9129
|
return lexicons.validate("com.atproto.repo.strongRef#main", v);
|
|
8133
9130
|
}
|
|
8134
9131
|
|
|
9132
|
+
// src/client/types/com/atproto/report/reasonType.ts
|
|
9133
|
+
var reasonType_exports = {};
|
|
9134
|
+
__export(reasonType_exports, {
|
|
9135
|
+
OTHER: () => OTHER,
|
|
9136
|
+
SPAM: () => SPAM
|
|
9137
|
+
});
|
|
9138
|
+
var SPAM = "com.atproto.report.reasonType#spam";
|
|
9139
|
+
var OTHER = "com.atproto.report.reasonType#other";
|
|
9140
|
+
|
|
9141
|
+
// src/client/types/com/atproto/report/subject.ts
|
|
9142
|
+
var subject_exports = {};
|
|
9143
|
+
__export(subject_exports, {
|
|
9144
|
+
isRecord: () => isRecord2,
|
|
9145
|
+
isRecordRef: () => isRecordRef,
|
|
9146
|
+
isRepo: () => isRepo,
|
|
9147
|
+
validateRecord: () => validateRecord2,
|
|
9148
|
+
validateRecordRef: () => validateRecordRef,
|
|
9149
|
+
validateRepo: () => validateRepo
|
|
9150
|
+
});
|
|
9151
|
+
function isRepo(v) {
|
|
9152
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.report.subject#repo";
|
|
9153
|
+
}
|
|
9154
|
+
function validateRepo(v) {
|
|
9155
|
+
return lexicons.validate("com.atproto.report.subject#repo", v);
|
|
9156
|
+
}
|
|
9157
|
+
function isRecord2(v) {
|
|
9158
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.report.subject#record";
|
|
9159
|
+
}
|
|
9160
|
+
function validateRecord2(v) {
|
|
9161
|
+
return lexicons.validate("com.atproto.report.subject#record", v);
|
|
9162
|
+
}
|
|
9163
|
+
function isRecordRef(v) {
|
|
9164
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.report.subject#recordRef";
|
|
9165
|
+
}
|
|
9166
|
+
function validateRecordRef(v) {
|
|
9167
|
+
return lexicons.validate("com.atproto.report.subject#recordRef", v);
|
|
9168
|
+
}
|
|
9169
|
+
|
|
8135
9170
|
// src/client/types/app/bsky/actor/profile.ts
|
|
8136
9171
|
var profile_exports = {};
|
|
8137
9172
|
__export(profile_exports, {
|
|
8138
|
-
isRecord: () =>
|
|
8139
|
-
validateRecord: () =>
|
|
9173
|
+
isRecord: () => isRecord3,
|
|
9174
|
+
validateRecord: () => validateRecord3
|
|
8140
9175
|
});
|
|
8141
|
-
function
|
|
9176
|
+
function isRecord3(v) {
|
|
8142
9177
|
return isObj2(v) && hasProp2(v, "$type") && (v.$type === "app.bsky.actor.profile#main" || v.$type === "app.bsky.actor.profile");
|
|
8143
9178
|
}
|
|
8144
|
-
function
|
|
9179
|
+
function validateRecord3(v) {
|
|
8145
9180
|
return lexicons.validate("app.bsky.actor.profile#main", v);
|
|
8146
9181
|
}
|
|
8147
9182
|
|
|
8148
9183
|
// src/client/types/app/bsky/actor/ref.ts
|
|
8149
9184
|
var ref_exports = {};
|
|
8150
9185
|
__export(ref_exports, {
|
|
8151
|
-
isMain: () =>
|
|
9186
|
+
isMain: () => isMain4,
|
|
8152
9187
|
isViewerState: () => isViewerState,
|
|
8153
9188
|
isWithInfo: () => isWithInfo,
|
|
8154
|
-
validateMain: () =>
|
|
9189
|
+
validateMain: () => validateMain4,
|
|
8155
9190
|
validateViewerState: () => validateViewerState,
|
|
8156
9191
|
validateWithInfo: () => validateWithInfo
|
|
8157
9192
|
});
|
|
8158
|
-
function
|
|
9193
|
+
function isMain4(v) {
|
|
8159
9194
|
return isObj2(v) && hasProp2(v, "$type") && (v.$type === "app.bsky.actor.ref#main" || v.$type === "app.bsky.actor.ref");
|
|
8160
9195
|
}
|
|
8161
|
-
function
|
|
9196
|
+
function validateMain4(v) {
|
|
8162
9197
|
return lexicons.validate("app.bsky.actor.ref#main", v);
|
|
8163
9198
|
}
|
|
8164
9199
|
function isWithInfo(v) {
|
|
@@ -8178,18 +9213,18 @@ function validateViewerState(v) {
|
|
|
8178
9213
|
var external_exports = {};
|
|
8179
9214
|
__export(external_exports, {
|
|
8180
9215
|
isExternal: () => isExternal,
|
|
8181
|
-
isMain: () =>
|
|
9216
|
+
isMain: () => isMain5,
|
|
8182
9217
|
isPresented: () => isPresented,
|
|
8183
9218
|
isPresentedExternal: () => isPresentedExternal,
|
|
8184
9219
|
validateExternal: () => validateExternal,
|
|
8185
|
-
validateMain: () =>
|
|
9220
|
+
validateMain: () => validateMain5,
|
|
8186
9221
|
validatePresented: () => validatePresented,
|
|
8187
9222
|
validatePresentedExternal: () => validatePresentedExternal
|
|
8188
9223
|
});
|
|
8189
|
-
function
|
|
9224
|
+
function isMain5(v) {
|
|
8190
9225
|
return isObj2(v) && hasProp2(v, "$type") && (v.$type === "app.bsky.embed.external#main" || v.$type === "app.bsky.embed.external");
|
|
8191
9226
|
}
|
|
8192
|
-
function
|
|
9227
|
+
function validateMain5(v) {
|
|
8193
9228
|
return lexicons.validate("app.bsky.embed.external#main", v);
|
|
8194
9229
|
}
|
|
8195
9230
|
function isExternal(v) {
|
|
@@ -8215,18 +9250,18 @@ function validatePresentedExternal(v) {
|
|
|
8215
9250
|
var images_exports = {};
|
|
8216
9251
|
__export(images_exports, {
|
|
8217
9252
|
isImage: () => isImage,
|
|
8218
|
-
isMain: () =>
|
|
9253
|
+
isMain: () => isMain6,
|
|
8219
9254
|
isPresented: () => isPresented2,
|
|
8220
9255
|
isPresentedImage: () => isPresentedImage,
|
|
8221
9256
|
validateImage: () => validateImage,
|
|
8222
|
-
validateMain: () =>
|
|
9257
|
+
validateMain: () => validateMain6,
|
|
8223
9258
|
validatePresented: () => validatePresented2,
|
|
8224
9259
|
validatePresentedImage: () => validatePresentedImage
|
|
8225
9260
|
});
|
|
8226
|
-
function
|
|
9261
|
+
function isMain6(v) {
|
|
8227
9262
|
return isObj2(v) && hasProp2(v, "$type") && (v.$type === "app.bsky.embed.images#main" || v.$type === "app.bsky.embed.images");
|
|
8228
9263
|
}
|
|
8229
|
-
function
|
|
9264
|
+
function validateMain6(v) {
|
|
8230
9265
|
return lexicons.validate("app.bsky.embed.images#main", v);
|
|
8231
9266
|
}
|
|
8232
9267
|
function isImage(v) {
|
|
@@ -8251,19 +9286,17 @@ function validatePresentedImage(v) {
|
|
|
8251
9286
|
// src/client/types/app/bsky/feed/feedViewPost.ts
|
|
8252
9287
|
var feedViewPost_exports = {};
|
|
8253
9288
|
__export(feedViewPost_exports, {
|
|
8254
|
-
isMain: () =>
|
|
9289
|
+
isMain: () => isMain7,
|
|
8255
9290
|
isReasonRepost: () => isReasonRepost,
|
|
8256
|
-
isReasonTrend: () => isReasonTrend,
|
|
8257
9291
|
isReplyRef: () => isReplyRef,
|
|
8258
|
-
validateMain: () =>
|
|
9292
|
+
validateMain: () => validateMain7,
|
|
8259
9293
|
validateReasonRepost: () => validateReasonRepost,
|
|
8260
|
-
validateReasonTrend: () => validateReasonTrend,
|
|
8261
9294
|
validateReplyRef: () => validateReplyRef
|
|
8262
9295
|
});
|
|
8263
|
-
function
|
|
9296
|
+
function isMain7(v) {
|
|
8264
9297
|
return isObj2(v) && hasProp2(v, "$type") && (v.$type === "app.bsky.feed.feedViewPost#main" || v.$type === "app.bsky.feed.feedViewPost");
|
|
8265
9298
|
}
|
|
8266
|
-
function
|
|
9299
|
+
function validateMain7(v) {
|
|
8267
9300
|
return lexicons.validate("app.bsky.feed.feedViewPost#main", v);
|
|
8268
9301
|
}
|
|
8269
9302
|
function isReplyRef(v) {
|
|
@@ -8272,12 +9305,6 @@ function isReplyRef(v) {
|
|
|
8272
9305
|
function validateReplyRef(v) {
|
|
8273
9306
|
return lexicons.validate("app.bsky.feed.feedViewPost#replyRef", v);
|
|
8274
9307
|
}
|
|
8275
|
-
function isReasonTrend(v) {
|
|
8276
|
-
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.feed.feedViewPost#reasonTrend";
|
|
8277
|
-
}
|
|
8278
|
-
function validateReasonTrend(v) {
|
|
8279
|
-
return lexicons.validate("app.bsky.feed.feedViewPost#reasonTrend", v);
|
|
8280
|
-
}
|
|
8281
9308
|
function isReasonRepost(v) {
|
|
8282
9309
|
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.feed.feedViewPost#reasonRepost";
|
|
8283
9310
|
}
|
|
@@ -8289,22 +9316,22 @@ function validateReasonRepost(v) {
|
|
|
8289
9316
|
var post_exports = {};
|
|
8290
9317
|
__export(post_exports, {
|
|
8291
9318
|
isEntity: () => isEntity,
|
|
8292
|
-
isRecord: () =>
|
|
9319
|
+
isRecord: () => isRecord4,
|
|
8293
9320
|
isReplyRef: () => isReplyRef2,
|
|
8294
9321
|
isTextSlice: () => isTextSlice,
|
|
8295
|
-
isView: () =>
|
|
9322
|
+
isView: () => isView5,
|
|
8296
9323
|
isViewerState: () => isViewerState2,
|
|
8297
9324
|
validateEntity: () => validateEntity,
|
|
8298
|
-
validateRecord: () =>
|
|
9325
|
+
validateRecord: () => validateRecord4,
|
|
8299
9326
|
validateReplyRef: () => validateReplyRef2,
|
|
8300
9327
|
validateTextSlice: () => validateTextSlice,
|
|
8301
|
-
validateView: () =>
|
|
9328
|
+
validateView: () => validateView5,
|
|
8302
9329
|
validateViewerState: () => validateViewerState2
|
|
8303
9330
|
});
|
|
8304
|
-
function
|
|
9331
|
+
function isRecord4(v) {
|
|
8305
9332
|
return isObj2(v) && hasProp2(v, "$type") && (v.$type === "app.bsky.feed.post#main" || v.$type === "app.bsky.feed.post");
|
|
8306
9333
|
}
|
|
8307
|
-
function
|
|
9334
|
+
function validateRecord4(v) {
|
|
8308
9335
|
return lexicons.validate("app.bsky.feed.post#main", v);
|
|
8309
9336
|
}
|
|
8310
9337
|
function isReplyRef2(v) {
|
|
@@ -8325,10 +9352,10 @@ function isTextSlice(v) {
|
|
|
8325
9352
|
function validateTextSlice(v) {
|
|
8326
9353
|
return lexicons.validate("app.bsky.feed.post#textSlice", v);
|
|
8327
9354
|
}
|
|
8328
|
-
function
|
|
9355
|
+
function isView5(v) {
|
|
8329
9356
|
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.feed.post#view";
|
|
8330
9357
|
}
|
|
8331
|
-
function
|
|
9358
|
+
function validateView5(v) {
|
|
8332
9359
|
return lexicons.validate("app.bsky.feed.post#view", v);
|
|
8333
9360
|
}
|
|
8334
9361
|
function isViewerState2(v) {
|
|
@@ -8341,27 +9368,14 @@ function validateViewerState2(v) {
|
|
|
8341
9368
|
// src/client/types/app/bsky/feed/repost.ts
|
|
8342
9369
|
var repost_exports = {};
|
|
8343
9370
|
__export(repost_exports, {
|
|
8344
|
-
isRecord: () => isRecord4,
|
|
8345
|
-
validateRecord: () => validateRecord4
|
|
8346
|
-
});
|
|
8347
|
-
function isRecord4(v) {
|
|
8348
|
-
return isObj2(v) && hasProp2(v, "$type") && (v.$type === "app.bsky.feed.repost#main" || v.$type === "app.bsky.feed.repost");
|
|
8349
|
-
}
|
|
8350
|
-
function validateRecord4(v) {
|
|
8351
|
-
return lexicons.validate("app.bsky.feed.repost#main", v);
|
|
8352
|
-
}
|
|
8353
|
-
|
|
8354
|
-
// src/client/types/app/bsky/feed/trend.ts
|
|
8355
|
-
var trend_exports = {};
|
|
8356
|
-
__export(trend_exports, {
|
|
8357
9371
|
isRecord: () => isRecord5,
|
|
8358
9372
|
validateRecord: () => validateRecord5
|
|
8359
9373
|
});
|
|
8360
9374
|
function isRecord5(v) {
|
|
8361
|
-
return isObj2(v) && hasProp2(v, "$type") && (v.$type === "app.bsky.feed.
|
|
9375
|
+
return isObj2(v) && hasProp2(v, "$type") && (v.$type === "app.bsky.feed.repost#main" || v.$type === "app.bsky.feed.repost");
|
|
8362
9376
|
}
|
|
8363
9377
|
function validateRecord5(v) {
|
|
8364
|
-
return lexicons.validate("app.bsky.feed.
|
|
9378
|
+
return lexicons.validate("app.bsky.feed.repost#main", v);
|
|
8365
9379
|
}
|
|
8366
9380
|
|
|
8367
9381
|
// src/client/types/app/bsky/feed/vote.ts
|
|
@@ -8430,30 +9444,23 @@ function validateRecord9(v) {
|
|
|
8430
9444
|
return lexicons.validate("app.bsky.graph.follow#main", v);
|
|
8431
9445
|
}
|
|
8432
9446
|
|
|
8433
|
-
// src/client/types/app/bsky/system/actorScene.ts
|
|
8434
|
-
var actorScene_exports = {};
|
|
8435
|
-
__export(actorScene_exports, {
|
|
8436
|
-
MAIN: () => MAIN3
|
|
8437
|
-
});
|
|
8438
|
-
var MAIN3 = "app.bsky.system.actorScene#main";
|
|
8439
|
-
|
|
8440
9447
|
// src/client/types/app/bsky/system/actorUser.ts
|
|
8441
9448
|
var actorUser_exports = {};
|
|
8442
9449
|
__export(actorUser_exports, {
|
|
8443
|
-
MAIN: () =>
|
|
9450
|
+
MAIN: () => MAIN3
|
|
8444
9451
|
});
|
|
8445
|
-
var
|
|
9452
|
+
var MAIN3 = "app.bsky.system.actorUser#main";
|
|
8446
9453
|
|
|
8447
9454
|
// src/client/types/app/bsky/system/declRef.ts
|
|
8448
9455
|
var declRef_exports = {};
|
|
8449
9456
|
__export(declRef_exports, {
|
|
8450
|
-
isMain: () =>
|
|
8451
|
-
validateMain: () =>
|
|
9457
|
+
isMain: () => isMain8,
|
|
9458
|
+
validateMain: () => validateMain8
|
|
8452
9459
|
});
|
|
8453
|
-
function
|
|
9460
|
+
function isMain8(v) {
|
|
8454
9461
|
return isObj2(v) && hasProp2(v, "$type") && (v.$type === "app.bsky.system.declRef#main" || v.$type === "app.bsky.system.declRef");
|
|
8455
9462
|
}
|
|
8456
|
-
function
|
|
9463
|
+
function validateMain8(v) {
|
|
8457
9464
|
return lexicons.validate("app.bsky.system.declRef#main", v);
|
|
8458
9465
|
}
|
|
8459
9466
|
|
|
@@ -8471,12 +9478,20 @@ function validateRecord10(v) {
|
|
|
8471
9478
|
}
|
|
8472
9479
|
|
|
8473
9480
|
// src/client/index.ts
|
|
9481
|
+
var COM_ATPROTO_ADMIN = {
|
|
9482
|
+
ModerationActionTakedown: "com.atproto.admin.moderationAction#takedown",
|
|
9483
|
+
ModerationActionFlag: "com.atproto.admin.moderationAction#flag",
|
|
9484
|
+
ModerationActionAcknowledge: "com.atproto.admin.moderationAction#acknowledge"
|
|
9485
|
+
};
|
|
9486
|
+
var COM_ATPROTO_REPORT = {
|
|
9487
|
+
ReasonTypeSpam: "com.atproto.report.reasonType#spam",
|
|
9488
|
+
ReasonTypeOther: "com.atproto.report.reasonType#other"
|
|
9489
|
+
};
|
|
8474
9490
|
var APP_BSKY_GRAPH = {
|
|
8475
9491
|
AssertCreator: "app.bsky.graph.assertCreator",
|
|
8476
9492
|
AssertMember: "app.bsky.graph.assertMember"
|
|
8477
9493
|
};
|
|
8478
9494
|
var APP_BSKY_SYSTEM = {
|
|
8479
|
-
ActorScene: "app.bsky.system.actorScene",
|
|
8480
9495
|
ActorUser: "app.bsky.system.actorUser"
|
|
8481
9496
|
};
|
|
8482
9497
|
var Client2 = class {
|
|
@@ -8511,9 +9526,11 @@ var AtprotoNS = class {
|
|
|
8511
9526
|
constructor(service) {
|
|
8512
9527
|
this._service = service;
|
|
8513
9528
|
this.account = new AccountNS(service);
|
|
9529
|
+
this.admin = new AdminNS(service);
|
|
8514
9530
|
this.blob = new BlobNS(service);
|
|
8515
9531
|
this.handle = new HandleNS(service);
|
|
8516
9532
|
this.repo = new RepoNS(service);
|
|
9533
|
+
this.report = new ReportNS(service);
|
|
8517
9534
|
this.server = new ServerNS(service);
|
|
8518
9535
|
this.session = new SessionNS(service);
|
|
8519
9536
|
this.sync = new SyncNS(service);
|
|
@@ -8554,13 +9571,68 @@ var AccountNS = class {
|
|
|
8554
9571
|
});
|
|
8555
9572
|
}
|
|
8556
9573
|
};
|
|
9574
|
+
var AdminNS = class {
|
|
9575
|
+
constructor(service) {
|
|
9576
|
+
this._service = service;
|
|
9577
|
+
}
|
|
9578
|
+
getModerationAction(params2, opts) {
|
|
9579
|
+
return this._service.xrpc.call("com.atproto.admin.getModerationAction", params2, void 0, opts).catch((e) => {
|
|
9580
|
+
throw toKnownErr7(e);
|
|
9581
|
+
});
|
|
9582
|
+
}
|
|
9583
|
+
getModerationActions(params2, opts) {
|
|
9584
|
+
return this._service.xrpc.call("com.atproto.admin.getModerationActions", params2, void 0, opts).catch((e) => {
|
|
9585
|
+
throw toKnownErr8(e);
|
|
9586
|
+
});
|
|
9587
|
+
}
|
|
9588
|
+
getModerationReport(params2, opts) {
|
|
9589
|
+
return this._service.xrpc.call("com.atproto.admin.getModerationReport", params2, void 0, opts).catch((e) => {
|
|
9590
|
+
throw toKnownErr9(e);
|
|
9591
|
+
});
|
|
9592
|
+
}
|
|
9593
|
+
getModerationReports(params2, opts) {
|
|
9594
|
+
return this._service.xrpc.call("com.atproto.admin.getModerationReports", params2, void 0, opts).catch((e) => {
|
|
9595
|
+
throw toKnownErr10(e);
|
|
9596
|
+
});
|
|
9597
|
+
}
|
|
9598
|
+
getRecord(params2, opts) {
|
|
9599
|
+
return this._service.xrpc.call("com.atproto.admin.getRecord", params2, void 0, opts).catch((e) => {
|
|
9600
|
+
throw toKnownErr11(e);
|
|
9601
|
+
});
|
|
9602
|
+
}
|
|
9603
|
+
getRepo(params2, opts) {
|
|
9604
|
+
return this._service.xrpc.call("com.atproto.admin.getRepo", params2, void 0, opts).catch((e) => {
|
|
9605
|
+
throw toKnownErr12(e);
|
|
9606
|
+
});
|
|
9607
|
+
}
|
|
9608
|
+
resolveModerationReports(data, opts) {
|
|
9609
|
+
return this._service.xrpc.call("com.atproto.admin.resolveModerationReports", opts?.qp, data, opts).catch((e) => {
|
|
9610
|
+
throw toKnownErr13(e);
|
|
9611
|
+
});
|
|
9612
|
+
}
|
|
9613
|
+
reverseModerationAction(data, opts) {
|
|
9614
|
+
return this._service.xrpc.call("com.atproto.admin.reverseModerationAction", opts?.qp, data, opts).catch((e) => {
|
|
9615
|
+
throw toKnownErr14(e);
|
|
9616
|
+
});
|
|
9617
|
+
}
|
|
9618
|
+
searchRepos(params2, opts) {
|
|
9619
|
+
return this._service.xrpc.call("com.atproto.admin.searchRepos", params2, void 0, opts).catch((e) => {
|
|
9620
|
+
throw toKnownErr15(e);
|
|
9621
|
+
});
|
|
9622
|
+
}
|
|
9623
|
+
takeModerationAction(data, opts) {
|
|
9624
|
+
return this._service.xrpc.call("com.atproto.admin.takeModerationAction", opts?.qp, data, opts).catch((e) => {
|
|
9625
|
+
throw toKnownErr16(e);
|
|
9626
|
+
});
|
|
9627
|
+
}
|
|
9628
|
+
};
|
|
8557
9629
|
var BlobNS = class {
|
|
8558
9630
|
constructor(service) {
|
|
8559
9631
|
this._service = service;
|
|
8560
9632
|
}
|
|
8561
9633
|
upload(data, opts) {
|
|
8562
9634
|
return this._service.xrpc.call("com.atproto.blob.upload", opts?.qp, data, opts).catch((e) => {
|
|
8563
|
-
throw
|
|
9635
|
+
throw toKnownErr17(e);
|
|
8564
9636
|
});
|
|
8565
9637
|
}
|
|
8566
9638
|
};
|
|
@@ -8570,7 +9642,7 @@ var HandleNS = class {
|
|
|
8570
9642
|
}
|
|
8571
9643
|
resolve(params2, opts) {
|
|
8572
9644
|
return this._service.xrpc.call("com.atproto.handle.resolve", params2, void 0, opts).catch((e) => {
|
|
8573
|
-
throw
|
|
9645
|
+
throw toKnownErr18(e);
|
|
8574
9646
|
});
|
|
8575
9647
|
}
|
|
8576
9648
|
};
|
|
@@ -8580,37 +9652,47 @@ var RepoNS = class {
|
|
|
8580
9652
|
}
|
|
8581
9653
|
batchWrite(data, opts) {
|
|
8582
9654
|
return this._service.xrpc.call("com.atproto.repo.batchWrite", opts?.qp, data, opts).catch((e) => {
|
|
8583
|
-
throw
|
|
9655
|
+
throw toKnownErr19(e);
|
|
8584
9656
|
});
|
|
8585
9657
|
}
|
|
8586
9658
|
createRecord(data, opts) {
|
|
8587
9659
|
return this._service.xrpc.call("com.atproto.repo.createRecord", opts?.qp, data, opts).catch((e) => {
|
|
8588
|
-
throw
|
|
9660
|
+
throw toKnownErr20(e);
|
|
8589
9661
|
});
|
|
8590
9662
|
}
|
|
8591
9663
|
deleteRecord(data, opts) {
|
|
8592
9664
|
return this._service.xrpc.call("com.atproto.repo.deleteRecord", opts?.qp, data, opts).catch((e) => {
|
|
8593
|
-
throw
|
|
9665
|
+
throw toKnownErr21(e);
|
|
8594
9666
|
});
|
|
8595
9667
|
}
|
|
8596
9668
|
describe(params2, opts) {
|
|
8597
9669
|
return this._service.xrpc.call("com.atproto.repo.describe", params2, void 0, opts).catch((e) => {
|
|
8598
|
-
throw
|
|
9670
|
+
throw toKnownErr22(e);
|
|
8599
9671
|
});
|
|
8600
9672
|
}
|
|
8601
9673
|
getRecord(params2, opts) {
|
|
8602
9674
|
return this._service.xrpc.call("com.atproto.repo.getRecord", params2, void 0, opts).catch((e) => {
|
|
8603
|
-
throw
|
|
9675
|
+
throw toKnownErr23(e);
|
|
8604
9676
|
});
|
|
8605
9677
|
}
|
|
8606
9678
|
listRecords(params2, opts) {
|
|
8607
9679
|
return this._service.xrpc.call("com.atproto.repo.listRecords", params2, void 0, opts).catch((e) => {
|
|
8608
|
-
throw
|
|
9680
|
+
throw toKnownErr24(e);
|
|
8609
9681
|
});
|
|
8610
9682
|
}
|
|
8611
9683
|
putRecord(data, opts) {
|
|
8612
9684
|
return this._service.xrpc.call("com.atproto.repo.putRecord", opts?.qp, data, opts).catch((e) => {
|
|
8613
|
-
throw
|
|
9685
|
+
throw toKnownErr25(e);
|
|
9686
|
+
});
|
|
9687
|
+
}
|
|
9688
|
+
};
|
|
9689
|
+
var ReportNS = class {
|
|
9690
|
+
constructor(service) {
|
|
9691
|
+
this._service = service;
|
|
9692
|
+
}
|
|
9693
|
+
create(data, opts) {
|
|
9694
|
+
return this._service.xrpc.call("com.atproto.report.create", opts?.qp, data, opts).catch((e) => {
|
|
9695
|
+
throw toKnownErr26(e);
|
|
8614
9696
|
});
|
|
8615
9697
|
}
|
|
8616
9698
|
};
|
|
@@ -8620,7 +9702,7 @@ var ServerNS = class {
|
|
|
8620
9702
|
}
|
|
8621
9703
|
getAccountsConfig(params2, opts) {
|
|
8622
9704
|
return this._service.xrpc.call("com.atproto.server.getAccountsConfig", params2, void 0, opts).catch((e) => {
|
|
8623
|
-
throw
|
|
9705
|
+
throw toKnownErr27(e);
|
|
8624
9706
|
});
|
|
8625
9707
|
}
|
|
8626
9708
|
};
|
|
@@ -8630,22 +9712,22 @@ var SessionNS = class {
|
|
|
8630
9712
|
}
|
|
8631
9713
|
create(data, opts) {
|
|
8632
9714
|
return this._service.xrpc.call("com.atproto.session.create", opts?.qp, data, opts).catch((e) => {
|
|
8633
|
-
throw
|
|
9715
|
+
throw toKnownErr28(e);
|
|
8634
9716
|
});
|
|
8635
9717
|
}
|
|
8636
9718
|
delete(data, opts) {
|
|
8637
9719
|
return this._service.xrpc.call("com.atproto.session.delete", opts?.qp, data, opts).catch((e) => {
|
|
8638
|
-
throw
|
|
9720
|
+
throw toKnownErr29(e);
|
|
8639
9721
|
});
|
|
8640
9722
|
}
|
|
8641
9723
|
get(params2, opts) {
|
|
8642
9724
|
return this._service.xrpc.call("com.atproto.session.get", params2, void 0, opts).catch((e) => {
|
|
8643
|
-
throw
|
|
9725
|
+
throw toKnownErr30(e);
|
|
8644
9726
|
});
|
|
8645
9727
|
}
|
|
8646
9728
|
refresh(data, opts) {
|
|
8647
9729
|
return this._service.xrpc.call("com.atproto.session.refresh", opts?.qp, data, opts).catch((e) => {
|
|
8648
|
-
throw
|
|
9730
|
+
throw toKnownErr31(e);
|
|
8649
9731
|
});
|
|
8650
9732
|
}
|
|
8651
9733
|
};
|
|
@@ -8653,19 +9735,29 @@ var SyncNS = class {
|
|
|
8653
9735
|
constructor(service) {
|
|
8654
9736
|
this._service = service;
|
|
8655
9737
|
}
|
|
8656
|
-
|
|
8657
|
-
return this._service.xrpc.call("com.atproto.sync.
|
|
8658
|
-
throw
|
|
9738
|
+
getCheckout(params2, opts) {
|
|
9739
|
+
return this._service.xrpc.call("com.atproto.sync.getCheckout", params2, void 0, opts).catch((e) => {
|
|
9740
|
+
throw toKnownErr32(e);
|
|
8659
9741
|
});
|
|
8660
9742
|
}
|
|
8661
|
-
|
|
8662
|
-
return this._service.xrpc.call("com.atproto.sync.
|
|
8663
|
-
throw
|
|
9743
|
+
getCommitPath(params2, opts) {
|
|
9744
|
+
return this._service.xrpc.call("com.atproto.sync.getCommitPath", params2, void 0, opts).catch((e) => {
|
|
9745
|
+
throw toKnownErr33(e);
|
|
8664
9746
|
});
|
|
8665
9747
|
}
|
|
8666
|
-
|
|
8667
|
-
return this._service.xrpc.call("com.atproto.sync.
|
|
8668
|
-
throw
|
|
9748
|
+
getHead(params2, opts) {
|
|
9749
|
+
return this._service.xrpc.call("com.atproto.sync.getHead", params2, void 0, opts).catch((e) => {
|
|
9750
|
+
throw toKnownErr34(e);
|
|
9751
|
+
});
|
|
9752
|
+
}
|
|
9753
|
+
getRecord(params2, opts) {
|
|
9754
|
+
return this._service.xrpc.call("com.atproto.sync.getRecord", params2, void 0, opts).catch((e) => {
|
|
9755
|
+
throw toKnownErr35(e);
|
|
9756
|
+
});
|
|
9757
|
+
}
|
|
9758
|
+
getRepo(params2, opts) {
|
|
9759
|
+
return this._service.xrpc.call("com.atproto.sync.getRepo", params2, void 0, opts).catch((e) => {
|
|
9760
|
+
throw toKnownErr36(e);
|
|
8669
9761
|
});
|
|
8670
9762
|
}
|
|
8671
9763
|
};
|
|
@@ -8691,34 +9783,29 @@ var ActorNS = class {
|
|
|
8691
9783
|
this._service = service;
|
|
8692
9784
|
this.profile = new ProfileRecord(service);
|
|
8693
9785
|
}
|
|
8694
|
-
createScene(data, opts) {
|
|
8695
|
-
return this._service.xrpc.call("app.bsky.actor.createScene", opts?.qp, data, opts).catch((e) => {
|
|
8696
|
-
throw toKnownErr24(e);
|
|
8697
|
-
});
|
|
8698
|
-
}
|
|
8699
9786
|
getProfile(params2, opts) {
|
|
8700
9787
|
return this._service.xrpc.call("app.bsky.actor.getProfile", params2, void 0, opts).catch((e) => {
|
|
8701
|
-
throw
|
|
9788
|
+
throw toKnownErr37(e);
|
|
8702
9789
|
});
|
|
8703
9790
|
}
|
|
8704
9791
|
getSuggestions(params2, opts) {
|
|
8705
9792
|
return this._service.xrpc.call("app.bsky.actor.getSuggestions", params2, void 0, opts).catch((e) => {
|
|
8706
|
-
throw
|
|
9793
|
+
throw toKnownErr38(e);
|
|
8707
9794
|
});
|
|
8708
9795
|
}
|
|
8709
9796
|
search(params2, opts) {
|
|
8710
9797
|
return this._service.xrpc.call("app.bsky.actor.search", params2, void 0, opts).catch((e) => {
|
|
8711
|
-
throw
|
|
9798
|
+
throw toKnownErr39(e);
|
|
8712
9799
|
});
|
|
8713
9800
|
}
|
|
8714
9801
|
searchTypeahead(params2, opts) {
|
|
8715
9802
|
return this._service.xrpc.call("app.bsky.actor.searchTypeahead", params2, void 0, opts).catch((e) => {
|
|
8716
|
-
throw
|
|
9803
|
+
throw toKnownErr40(e);
|
|
8717
9804
|
});
|
|
8718
9805
|
}
|
|
8719
9806
|
updateProfile(data, opts) {
|
|
8720
9807
|
return this._service.xrpc.call("app.bsky.actor.updateProfile", opts?.qp, data, opts).catch((e) => {
|
|
8721
|
-
throw
|
|
9808
|
+
throw toKnownErr41(e);
|
|
8722
9809
|
});
|
|
8723
9810
|
}
|
|
8724
9811
|
};
|
|
@@ -8769,37 +9856,36 @@ var FeedNS = class {
|
|
|
8769
9856
|
this._service = service;
|
|
8770
9857
|
this.post = new PostRecord(service);
|
|
8771
9858
|
this.repost = new RepostRecord(service);
|
|
8772
|
-
this.trend = new TrendRecord(service);
|
|
8773
9859
|
this.vote = new VoteRecord(service);
|
|
8774
9860
|
}
|
|
8775
9861
|
getAuthorFeed(params2, opts) {
|
|
8776
9862
|
return this._service.xrpc.call("app.bsky.feed.getAuthorFeed", params2, void 0, opts).catch((e) => {
|
|
8777
|
-
throw
|
|
9863
|
+
throw toKnownErr42(e);
|
|
8778
9864
|
});
|
|
8779
9865
|
}
|
|
8780
9866
|
getPostThread(params2, opts) {
|
|
8781
9867
|
return this._service.xrpc.call("app.bsky.feed.getPostThread", params2, void 0, opts).catch((e) => {
|
|
8782
|
-
throw
|
|
9868
|
+
throw toKnownErr43(e);
|
|
8783
9869
|
});
|
|
8784
9870
|
}
|
|
8785
9871
|
getRepostedBy(params2, opts) {
|
|
8786
9872
|
return this._service.xrpc.call("app.bsky.feed.getRepostedBy", params2, void 0, opts).catch((e) => {
|
|
8787
|
-
throw
|
|
9873
|
+
throw toKnownErr44(e);
|
|
8788
9874
|
});
|
|
8789
9875
|
}
|
|
8790
9876
|
getTimeline(params2, opts) {
|
|
8791
9877
|
return this._service.xrpc.call("app.bsky.feed.getTimeline", params2, void 0, opts).catch((e) => {
|
|
8792
|
-
throw
|
|
9878
|
+
throw toKnownErr45(e);
|
|
8793
9879
|
});
|
|
8794
9880
|
}
|
|
8795
9881
|
getVotes(params2, opts) {
|
|
8796
9882
|
return this._service.xrpc.call("app.bsky.feed.getVotes", params2, void 0, opts).catch((e) => {
|
|
8797
|
-
throw
|
|
9883
|
+
throw toKnownErr46(e);
|
|
8798
9884
|
});
|
|
8799
9885
|
}
|
|
8800
9886
|
setVote(data, opts) {
|
|
8801
9887
|
return this._service.xrpc.call("app.bsky.feed.setVote", opts?.qp, data, opts).catch((e) => {
|
|
8802
|
-
throw
|
|
9888
|
+
throw toKnownErr47(e);
|
|
8803
9889
|
});
|
|
8804
9890
|
}
|
|
8805
9891
|
};
|
|
@@ -8877,43 +9963,6 @@ var RepostRecord = class {
|
|
|
8877
9963
|
);
|
|
8878
9964
|
}
|
|
8879
9965
|
};
|
|
8880
|
-
var TrendRecord = class {
|
|
8881
|
-
constructor(service) {
|
|
8882
|
-
this._service = service;
|
|
8883
|
-
}
|
|
8884
|
-
async list(params2) {
|
|
8885
|
-
const res = await this._service.xrpc.call("com.atproto.repo.listRecords", {
|
|
8886
|
-
collection: "app.bsky.feed.trend",
|
|
8887
|
-
...params2
|
|
8888
|
-
});
|
|
8889
|
-
return res.data;
|
|
8890
|
-
}
|
|
8891
|
-
async get(params2) {
|
|
8892
|
-
const res = await this._service.xrpc.call("com.atproto.repo.getRecord", {
|
|
8893
|
-
collection: "app.bsky.feed.trend",
|
|
8894
|
-
...params2
|
|
8895
|
-
});
|
|
8896
|
-
return res.data;
|
|
8897
|
-
}
|
|
8898
|
-
async create(params2, record, headers) {
|
|
8899
|
-
record.$type = "app.bsky.feed.trend";
|
|
8900
|
-
const res = await this._service.xrpc.call(
|
|
8901
|
-
"com.atproto.repo.createRecord",
|
|
8902
|
-
void 0,
|
|
8903
|
-
{ collection: "app.bsky.feed.trend", ...params2, record },
|
|
8904
|
-
{ encoding: "application/json", headers }
|
|
8905
|
-
);
|
|
8906
|
-
return res.data;
|
|
8907
|
-
}
|
|
8908
|
-
async delete(params2, headers) {
|
|
8909
|
-
await this._service.xrpc.call(
|
|
8910
|
-
"com.atproto.repo.deleteRecord",
|
|
8911
|
-
void 0,
|
|
8912
|
-
{ collection: "app.bsky.feed.trend", ...params2 },
|
|
8913
|
-
{ headers }
|
|
8914
|
-
);
|
|
8915
|
-
}
|
|
8916
|
-
};
|
|
8917
9966
|
var VoteRecord = class {
|
|
8918
9967
|
constructor(service) {
|
|
8919
9968
|
this._service = service;
|
|
@@ -8958,44 +10007,29 @@ var GraphNS = class {
|
|
|
8958
10007
|
this.confirmation = new ConfirmationRecord(service);
|
|
8959
10008
|
this.follow = new FollowRecord(service);
|
|
8960
10009
|
}
|
|
8961
|
-
getAssertions(params2, opts) {
|
|
8962
|
-
return this._service.xrpc.call("app.bsky.graph.getAssertions", params2, void 0, opts).catch((e) => {
|
|
8963
|
-
throw toKnownErr36(e);
|
|
8964
|
-
});
|
|
8965
|
-
}
|
|
8966
10010
|
getFollowers(params2, opts) {
|
|
8967
10011
|
return this._service.xrpc.call("app.bsky.graph.getFollowers", params2, void 0, opts).catch((e) => {
|
|
8968
|
-
throw
|
|
10012
|
+
throw toKnownErr48(e);
|
|
8969
10013
|
});
|
|
8970
10014
|
}
|
|
8971
10015
|
getFollows(params2, opts) {
|
|
8972
10016
|
return this._service.xrpc.call("app.bsky.graph.getFollows", params2, void 0, opts).catch((e) => {
|
|
8973
|
-
throw
|
|
8974
|
-
});
|
|
8975
|
-
}
|
|
8976
|
-
getMembers(params2, opts) {
|
|
8977
|
-
return this._service.xrpc.call("app.bsky.graph.getMembers", params2, void 0, opts).catch((e) => {
|
|
8978
|
-
throw toKnownErr39(e);
|
|
8979
|
-
});
|
|
8980
|
-
}
|
|
8981
|
-
getMemberships(params2, opts) {
|
|
8982
|
-
return this._service.xrpc.call("app.bsky.graph.getMemberships", params2, void 0, opts).catch((e) => {
|
|
8983
|
-
throw toKnownErr40(e);
|
|
10017
|
+
throw toKnownErr49(e);
|
|
8984
10018
|
});
|
|
8985
10019
|
}
|
|
8986
10020
|
getMutes(params2, opts) {
|
|
8987
10021
|
return this._service.xrpc.call("app.bsky.graph.getMutes", params2, void 0, opts).catch((e) => {
|
|
8988
|
-
throw
|
|
10022
|
+
throw toKnownErr50(e);
|
|
8989
10023
|
});
|
|
8990
10024
|
}
|
|
8991
10025
|
mute(data, opts) {
|
|
8992
10026
|
return this._service.xrpc.call("app.bsky.graph.mute", opts?.qp, data, opts).catch((e) => {
|
|
8993
|
-
throw
|
|
10027
|
+
throw toKnownErr51(e);
|
|
8994
10028
|
});
|
|
8995
10029
|
}
|
|
8996
10030
|
unmute(data, opts) {
|
|
8997
10031
|
return this._service.xrpc.call("app.bsky.graph.unmute", opts?.qp, data, opts).catch((e) => {
|
|
8998
|
-
throw
|
|
10032
|
+
throw toKnownErr52(e);
|
|
8999
10033
|
});
|
|
9000
10034
|
}
|
|
9001
10035
|
};
|
|
@@ -9116,17 +10150,17 @@ var NotificationNS = class {
|
|
|
9116
10150
|
}
|
|
9117
10151
|
getCount(params2, opts) {
|
|
9118
10152
|
return this._service.xrpc.call("app.bsky.notification.getCount", params2, void 0, opts).catch((e) => {
|
|
9119
|
-
throw
|
|
10153
|
+
throw toKnownErr53(e);
|
|
9120
10154
|
});
|
|
9121
10155
|
}
|
|
9122
10156
|
list(params2, opts) {
|
|
9123
10157
|
return this._service.xrpc.call("app.bsky.notification.list", params2, void 0, opts).catch((e) => {
|
|
9124
|
-
throw
|
|
10158
|
+
throw toKnownErr54(e);
|
|
9125
10159
|
});
|
|
9126
10160
|
}
|
|
9127
10161
|
updateSeen(data, opts) {
|
|
9128
10162
|
return this._service.xrpc.call("app.bsky.notification.updateSeen", opts?.qp, data, opts).catch((e) => {
|
|
9129
|
-
throw
|
|
10163
|
+
throw toKnownErr55(e);
|
|
9130
10164
|
});
|
|
9131
10165
|
}
|
|
9132
10166
|
};
|
|
@@ -9303,7 +10337,7 @@ var SessionManager = class extends import_events.default {
|
|
|
9303
10337
|
APP_BSKY_SYSTEM,
|
|
9304
10338
|
AccountNS,
|
|
9305
10339
|
ActorNS,
|
|
9306
|
-
|
|
10340
|
+
AdminNS,
|
|
9307
10341
|
AppBskyActorGetProfile,
|
|
9308
10342
|
AppBskyActorGetSuggestions,
|
|
9309
10343
|
AppBskyActorProfile,
|
|
@@ -9322,25 +10356,20 @@ var SessionManager = class extends import_events.default {
|
|
|
9322
10356
|
AppBskyFeedPost,
|
|
9323
10357
|
AppBskyFeedRepost,
|
|
9324
10358
|
AppBskyFeedSetVote,
|
|
9325
|
-
AppBskyFeedTrend,
|
|
9326
10359
|
AppBskyFeedVote,
|
|
9327
10360
|
AppBskyGraphAssertCreator,
|
|
9328
10361
|
AppBskyGraphAssertMember,
|
|
9329
10362
|
AppBskyGraphAssertion,
|
|
9330
10363
|
AppBskyGraphConfirmation,
|
|
9331
10364
|
AppBskyGraphFollow,
|
|
9332
|
-
AppBskyGraphGetAssertions,
|
|
9333
10365
|
AppBskyGraphGetFollowers,
|
|
9334
10366
|
AppBskyGraphGetFollows,
|
|
9335
|
-
AppBskyGraphGetMembers,
|
|
9336
|
-
AppBskyGraphGetMemberships,
|
|
9337
10367
|
AppBskyGraphGetMutes,
|
|
9338
10368
|
AppBskyGraphMute,
|
|
9339
10369
|
AppBskyGraphUnmute,
|
|
9340
10370
|
AppBskyNotificationGetCount,
|
|
9341
10371
|
AppBskyNotificationList,
|
|
9342
10372
|
AppBskyNotificationUpdateSeen,
|
|
9343
|
-
AppBskySystemActorScene,
|
|
9344
10373
|
AppBskySystemActorUser,
|
|
9345
10374
|
AppBskySystemDeclRef,
|
|
9346
10375
|
AppBskySystemDeclaration,
|
|
@@ -9349,6 +10378,8 @@ var SessionManager = class extends import_events.default {
|
|
|
9349
10378
|
AtprotoNS,
|
|
9350
10379
|
BlobNS,
|
|
9351
10380
|
BskyNS,
|
|
10381
|
+
COM_ATPROTO_ADMIN,
|
|
10382
|
+
COM_ATPROTO_REPORT,
|
|
9352
10383
|
Client,
|
|
9353
10384
|
ComAtprotoAccountCreate,
|
|
9354
10385
|
ComAtprotoAccountCreateInviteCode,
|
|
@@ -9356,6 +10387,20 @@ var SessionManager = class extends import_events.default {
|
|
|
9356
10387
|
ComAtprotoAccountGet,
|
|
9357
10388
|
ComAtprotoAccountRequestPasswordReset,
|
|
9358
10389
|
ComAtprotoAccountResetPassword,
|
|
10390
|
+
ComAtprotoAdminGetModerationAction,
|
|
10391
|
+
ComAtprotoAdminGetModerationActions,
|
|
10392
|
+
ComAtprotoAdminGetModerationReport,
|
|
10393
|
+
ComAtprotoAdminGetModerationReports,
|
|
10394
|
+
ComAtprotoAdminGetRecord,
|
|
10395
|
+
ComAtprotoAdminGetRepo,
|
|
10396
|
+
ComAtprotoAdminModerationAction,
|
|
10397
|
+
ComAtprotoAdminModerationReport,
|
|
10398
|
+
ComAtprotoAdminRecord,
|
|
10399
|
+
ComAtprotoAdminRepo,
|
|
10400
|
+
ComAtprotoAdminResolveModerationReports,
|
|
10401
|
+
ComAtprotoAdminReverseModerationAction,
|
|
10402
|
+
ComAtprotoAdminSearchRepos,
|
|
10403
|
+
ComAtprotoAdminTakeModerationAction,
|
|
9359
10404
|
ComAtprotoBlobUpload,
|
|
9360
10405
|
ComAtprotoHandleResolve,
|
|
9361
10406
|
ComAtprotoRepoBatchWrite,
|
|
@@ -9365,15 +10410,22 @@ var SessionManager = class extends import_events.default {
|
|
|
9365
10410
|
ComAtprotoRepoGetRecord,
|
|
9366
10411
|
ComAtprotoRepoListRecords,
|
|
9367
10412
|
ComAtprotoRepoPutRecord,
|
|
10413
|
+
ComAtprotoRepoRecordRef,
|
|
10414
|
+
ComAtprotoRepoRepoRef,
|
|
9368
10415
|
ComAtprotoRepoStrongRef,
|
|
10416
|
+
ComAtprotoReportCreate,
|
|
10417
|
+
ComAtprotoReportReasonType,
|
|
10418
|
+
ComAtprotoReportSubject,
|
|
9369
10419
|
ComAtprotoServerGetAccountsConfig,
|
|
9370
10420
|
ComAtprotoSessionCreate,
|
|
9371
10421
|
ComAtprotoSessionDelete,
|
|
9372
10422
|
ComAtprotoSessionGet,
|
|
9373
10423
|
ComAtprotoSessionRefresh,
|
|
10424
|
+
ComAtprotoSyncGetCheckout,
|
|
10425
|
+
ComAtprotoSyncGetCommitPath,
|
|
10426
|
+
ComAtprotoSyncGetHead,
|
|
10427
|
+
ComAtprotoSyncGetRecord,
|
|
9374
10428
|
ComAtprotoSyncGetRepo,
|
|
9375
|
-
ComAtprotoSyncGetRoot,
|
|
9376
|
-
ComAtprotoSyncUpdateRepo,
|
|
9377
10429
|
ComNS,
|
|
9378
10430
|
ConfirmationRecord,
|
|
9379
10431
|
DeclarationRecord,
|
|
@@ -9386,6 +10438,7 @@ var SessionManager = class extends import_events.default {
|
|
|
9386
10438
|
PostRecord,
|
|
9387
10439
|
ProfileRecord,
|
|
9388
10440
|
RepoNS,
|
|
10441
|
+
ReportNS,
|
|
9389
10442
|
RepostRecord,
|
|
9390
10443
|
ServerNS,
|
|
9391
10444
|
ServiceClient,
|
|
@@ -9396,7 +10449,6 @@ var SessionManager = class extends import_events.default {
|
|
|
9396
10449
|
SessionXrpcServiceClient,
|
|
9397
10450
|
SyncNS,
|
|
9398
10451
|
SystemNS,
|
|
9399
|
-
TrendRecord,
|
|
9400
10452
|
VoteRecord,
|
|
9401
10453
|
sessionClient
|
|
9402
10454
|
});
|