@atproto/api 0.16.1 → 0.16.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/client/index.d.ts +436 -430
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +1376 -1368
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +18001 -17705
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +9248 -9098
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/graph/getLists.d.ts +2 -0
- package/dist/client/types/app/bsky/graph/getLists.d.ts.map +1 -1
- package/dist/client/types/app/bsky/graph/getLists.js.map +1 -1
- package/dist/client/types/app/bsky/graph/getListsWithMembership.d.ts +38 -0
- package/dist/client/types/app/bsky/graph/getListsWithMembership.d.ts.map +1 -0
- package/dist/client/types/app/bsky/graph/getListsWithMembership.js +20 -0
- package/dist/client/types/app/bsky/graph/getListsWithMembership.js.map +1 -0
- package/dist/client/types/app/bsky/graph/getStarterPacksWithMembership.d.ts +36 -0
- package/dist/client/types/app/bsky/graph/getStarterPacksWithMembership.d.ts.map +1 -0
- package/dist/client/types/app/bsky/graph/getStarterPacksWithMembership.js +20 -0
- package/dist/client/types/app/bsky/graph/getStarterPacksWithMembership.js.map +1 -0
- package/dist/client/types/tools/ozone/moderation/queryEvents.d.ts +2 -0
- package/dist/client/types/tools/ozone/moderation/queryEvents.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/moderation/queryEvents.js.map +1 -1
- package/package.json +4 -4
- package/src/client/index.ts +2568 -2540
- package/src/client/lexicons.ts +9483 -9325
- package/src/client/types/app/bsky/graph/getLists.ts +2 -0
- package/src/client/types/app/bsky/graph/getListsWithMembership.ts +64 -0
- package/src/client/types/app/bsky/graph/getStarterPacksWithMembership.ts +66 -0
- package/src/client/types/tools/ozone/moderation/queryEvents.ts +2 -0
- package/tsconfig.build.tsbuildinfo +1 -1
package/dist/client/index.js
CHANGED
|
@@ -33,18 +33,32 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.
|
|
37
|
-
exports.
|
|
38
|
-
exports.
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
41
|
-
exports.
|
|
42
|
-
exports.ToolsOzoneVerificationNS = exports.ToolsOzoneTeamNS = exports.ToolsOzoneSignatureNS = exports.ToolsOzoneSettingNS = exports.ToolsOzoneSetNS = exports.ToolsOzoneServerNS = exports.ToolsOzoneSafelinkNS = exports.ToolsOzoneModerationNS = exports.ToolsOzoneHostingNS = exports.ToolsOzoneCommunicationNS = exports.ToolsOzoneNS = exports.ToolsNS = exports.
|
|
36
|
+
exports.AppBskyGraphGetList = exports.AppBskyGraphGetKnownFollowers = exports.AppBskyGraphGetFollows = exports.AppBskyGraphGetFollowers = exports.AppBskyGraphGetBlocks = exports.AppBskyGraphGetActorStarterPacks = exports.AppBskyGraphFollow = exports.AppBskyGraphDefs = exports.AppBskyGraphBlock = exports.AppBskyFeedThreadgate = exports.AppBskyFeedSendInteractions = exports.AppBskyFeedSearchPosts = exports.AppBskyFeedRepost = exports.AppBskyFeedPostgate = exports.AppBskyFeedPost = exports.AppBskyFeedLike = exports.AppBskyFeedGetTimeline = exports.AppBskyFeedGetSuggestedFeeds = exports.AppBskyFeedGetRepostedBy = exports.AppBskyFeedGetQuotes = exports.AppBskyFeedGetPosts = exports.AppBskyFeedGetPostThread = exports.AppBskyFeedGetListFeed = exports.AppBskyFeedGetLikes = exports.AppBskyFeedGetFeedSkeleton = exports.AppBskyFeedGetFeedGenerators = exports.AppBskyFeedGetFeedGenerator = exports.AppBskyFeedGetFeed = exports.AppBskyFeedGetAuthorFeed = exports.AppBskyFeedGetActorLikes = exports.AppBskyFeedGetActorFeeds = exports.AppBskyFeedGenerator = exports.AppBskyFeedDescribeFeedGenerator = exports.AppBskyFeedDefs = exports.AppBskyEmbedVideo = exports.AppBskyEmbedRecordWithMedia = exports.AppBskyEmbedRecord = exports.AppBskyEmbedImages = exports.AppBskyEmbedExternal = exports.AppBskyEmbedDefs = exports.AppBskyActorStatus = exports.AppBskyActorSearchActorsTypeahead = exports.AppBskyActorSearchActors = exports.AppBskyActorPutPreferences = exports.AppBskyActorProfile = exports.AppBskyActorGetSuggestions = exports.AppBskyActorGetProfiles = exports.AppBskyActorGetProfile = exports.AppBskyActorGetPreferences = exports.AppBskyActorDefs = void 0;
|
|
37
|
+
exports.AppBskyUnspeccedGetSuggestedUsersSkeleton = exports.AppBskyUnspeccedGetSuggestedUsers = exports.AppBskyUnspeccedGetSuggestedStarterPacksSkeleton = exports.AppBskyUnspeccedGetSuggestedStarterPacks = exports.AppBskyUnspeccedGetSuggestedFeedsSkeleton = exports.AppBskyUnspeccedGetSuggestedFeeds = exports.AppBskyUnspeccedGetPostThreadV2 = exports.AppBskyUnspeccedGetPostThreadOtherV2 = exports.AppBskyUnspeccedGetPopularFeedGenerators = exports.AppBskyUnspeccedGetConfig = exports.AppBskyUnspeccedGetAgeAssuranceState = exports.AppBskyUnspeccedDefs = exports.AppBskyRichtextFacet = exports.AppBskyNotificationUpdateSeen = exports.AppBskyNotificationUnregisterPush = exports.AppBskyNotificationRegisterPush = exports.AppBskyNotificationPutPreferencesV2 = exports.AppBskyNotificationPutPreferences = exports.AppBskyNotificationPutActivitySubscription = exports.AppBskyNotificationListNotifications = exports.AppBskyNotificationListActivitySubscriptions = exports.AppBskyNotificationGetUnreadCount = exports.AppBskyNotificationGetPreferences = exports.AppBskyNotificationDefs = exports.AppBskyNotificationDeclaration = exports.AppBskyLabelerService = exports.AppBskyLabelerGetServices = exports.AppBskyLabelerDefs = exports.AppBskyGraphVerification = exports.AppBskyGraphUnmuteThread = exports.AppBskyGraphUnmuteActorList = exports.AppBskyGraphUnmuteActor = exports.AppBskyGraphStarterpack = exports.AppBskyGraphSearchStarterPacks = exports.AppBskyGraphMuteThread = exports.AppBskyGraphMuteActorList = exports.AppBskyGraphMuteActor = exports.AppBskyGraphListitem = exports.AppBskyGraphListblock = exports.AppBskyGraphList = exports.AppBskyGraphGetSuggestedFollowsByActor = exports.AppBskyGraphGetStarterPacksWithMembership = exports.AppBskyGraphGetStarterPacks = exports.AppBskyGraphGetStarterPack = exports.AppBskyGraphGetRelationships = exports.AppBskyGraphGetMutes = exports.AppBskyGraphGetListsWithMembership = exports.AppBskyGraphGetLists = exports.AppBskyGraphGetListMutes = exports.AppBskyGraphGetListBlocks = void 0;
|
|
38
|
+
exports.ComAtprotoAdminUpdateAccountEmail = exports.ComAtprotoAdminSendEmail = exports.ComAtprotoAdminSearchAccounts = exports.ComAtprotoAdminGetSubjectStatus = exports.ComAtprotoAdminGetInviteCodes = exports.ComAtprotoAdminGetAccountInfos = exports.ComAtprotoAdminGetAccountInfo = exports.ComAtprotoAdminEnableAccountInvites = exports.ComAtprotoAdminDisableInviteCodes = exports.ComAtprotoAdminDisableAccountInvites = exports.ComAtprotoAdminDeleteAccount = exports.ComAtprotoAdminDefs = exports.ChatBskyModerationUpdateActorAccess = exports.ChatBskyModerationGetMessageContext = exports.ChatBskyModerationGetActorMetadata = exports.ChatBskyConvoUpdateRead = exports.ChatBskyConvoUpdateAllRead = exports.ChatBskyConvoUnmuteConvo = exports.ChatBskyConvoSendMessageBatch = exports.ChatBskyConvoSendMessage = exports.ChatBskyConvoRemoveReaction = exports.ChatBskyConvoMuteConvo = exports.ChatBskyConvoListConvos = exports.ChatBskyConvoLeaveConvo = exports.ChatBskyConvoGetMessages = exports.ChatBskyConvoGetLog = exports.ChatBskyConvoGetConvoForMembers = exports.ChatBskyConvoGetConvoAvailability = exports.ChatBskyConvoGetConvo = exports.ChatBskyConvoDeleteMessageForSelf = exports.ChatBskyConvoDefs = exports.ChatBskyConvoAddReaction = exports.ChatBskyConvoAcceptConvo = exports.ChatBskyActorExportAccountData = exports.ChatBskyActorDeleteAccount = exports.ChatBskyActorDefs = exports.ChatBskyActorDeclaration = exports.AppBskyVideoUploadVideo = exports.AppBskyVideoGetUploadLimits = exports.AppBskyVideoGetJobStatus = exports.AppBskyVideoDefs = exports.AppBskyUnspeccedSearchStarterPacksSkeleton = exports.AppBskyUnspeccedSearchPostsSkeleton = exports.AppBskyUnspeccedSearchActorsSkeleton = exports.AppBskyUnspeccedInitAgeAssurance = exports.AppBskyUnspeccedGetTrendsSkeleton = exports.AppBskyUnspeccedGetTrends = exports.AppBskyUnspeccedGetTrendingTopics = exports.AppBskyUnspeccedGetTaggedSuggestions = exports.AppBskyUnspeccedGetSuggestionsSkeleton = void 0;
|
|
39
|
+
exports.ComAtprotoServerRefreshSession = exports.ComAtprotoServerListAppPasswords = exports.ComAtprotoServerGetSession = exports.ComAtprotoServerGetServiceAuth = exports.ComAtprotoServerGetAccountInviteCodes = exports.ComAtprotoServerDescribeServer = exports.ComAtprotoServerDeleteSession = exports.ComAtprotoServerDeleteAccount = exports.ComAtprotoServerDefs = exports.ComAtprotoServerDeactivateAccount = exports.ComAtprotoServerCreateSession = exports.ComAtprotoServerCreateInviteCodes = exports.ComAtprotoServerCreateInviteCode = exports.ComAtprotoServerCreateAppPassword = exports.ComAtprotoServerCreateAccount = exports.ComAtprotoServerConfirmEmail = exports.ComAtprotoServerCheckAccountStatus = exports.ComAtprotoServerActivateAccount = exports.ComAtprotoRepoUploadBlob = exports.ComAtprotoRepoStrongRef = exports.ComAtprotoRepoPutRecord = exports.ComAtprotoRepoListRecords = exports.ComAtprotoRepoListMissingBlobs = exports.ComAtprotoRepoImportRepo = exports.ComAtprotoRepoGetRecord = exports.ComAtprotoRepoDescribeRepo = exports.ComAtprotoRepoDeleteRecord = exports.ComAtprotoRepoDefs = exports.ComAtprotoRepoCreateRecord = exports.ComAtprotoRepoApplyWrites = exports.ComAtprotoModerationDefs = exports.ComAtprotoModerationCreateReport = exports.ComAtprotoLexiconSchema = exports.ComAtprotoLabelSubscribeLabels = exports.ComAtprotoLabelQueryLabels = exports.ComAtprotoLabelDefs = exports.ComAtprotoIdentityUpdateHandle = exports.ComAtprotoIdentitySubmitPlcOperation = exports.ComAtprotoIdentitySignPlcOperation = exports.ComAtprotoIdentityResolveIdentity = exports.ComAtprotoIdentityResolveHandle = exports.ComAtprotoIdentityResolveDid = exports.ComAtprotoIdentityRequestPlcOperationSignature = exports.ComAtprotoIdentityRefreshIdentity = exports.ComAtprotoIdentityGetRecommendedDidCredentials = exports.ComAtprotoIdentityDefs = exports.ComAtprotoAdminUpdateSubjectStatus = exports.ComAtprotoAdminUpdateAccountSigningKey = exports.ComAtprotoAdminUpdateAccountPassword = exports.ComAtprotoAdminUpdateAccountHandle = void 0;
|
|
40
|
+
exports.ToolsOzoneSafelinkAddRule = exports.ToolsOzoneModerationSearchRepos = exports.ToolsOzoneModerationQueryStatuses = exports.ToolsOzoneModerationQueryEvents = exports.ToolsOzoneModerationGetSubjects = exports.ToolsOzoneModerationGetRepos = exports.ToolsOzoneModerationGetReporterStats = exports.ToolsOzoneModerationGetRepo = exports.ToolsOzoneModerationGetRecords = exports.ToolsOzoneModerationGetRecord = exports.ToolsOzoneModerationGetEvent = exports.ToolsOzoneModerationGetAccountTimeline = exports.ToolsOzoneModerationEmitEvent = exports.ToolsOzoneModerationDefs = exports.ToolsOzoneHostingGetAccountHistory = exports.ToolsOzoneCommunicationUpdateTemplate = exports.ToolsOzoneCommunicationListTemplates = exports.ToolsOzoneCommunicationDeleteTemplate = exports.ToolsOzoneCommunicationDefs = exports.ToolsOzoneCommunicationCreateTemplate = exports.ComAtprotoTempRequestPhoneVerification = exports.ComAtprotoTempFetchLabels = exports.ComAtprotoTempCheckSignupQueue = exports.ComAtprotoTempCheckHandleAvailability = exports.ComAtprotoTempAddReservedHandle = exports.ComAtprotoSyncSubscribeRepos = exports.ComAtprotoSyncRequestCrawl = exports.ComAtprotoSyncNotifyOfUpdate = exports.ComAtprotoSyncListReposByCollection = exports.ComAtprotoSyncListRepos = exports.ComAtprotoSyncListHosts = exports.ComAtprotoSyncListBlobs = exports.ComAtprotoSyncGetRepoStatus = exports.ComAtprotoSyncGetRepo = exports.ComAtprotoSyncGetRecord = exports.ComAtprotoSyncGetLatestCommit = exports.ComAtprotoSyncGetHostStatus = exports.ComAtprotoSyncGetHead = exports.ComAtprotoSyncGetCheckout = exports.ComAtprotoSyncGetBlocks = exports.ComAtprotoSyncGetBlob = exports.ComAtprotoSyncDefs = exports.ComAtprotoServerUpdateEmail = exports.ComAtprotoServerRevokeAppPassword = exports.ComAtprotoServerResetPassword = exports.ComAtprotoServerReserveSigningKey = exports.ComAtprotoServerRequestPasswordReset = exports.ComAtprotoServerRequestEmailUpdate = exports.ComAtprotoServerRequestEmailConfirmation = exports.ComAtprotoServerRequestAccountDelete = void 0;
|
|
41
|
+
exports.AppBskyFeedThreadgateRecord = exports.AppBskyFeedRepostRecord = exports.AppBskyFeedPostgateRecord = exports.AppBskyFeedPostRecord = exports.AppBskyFeedLikeRecord = exports.AppBskyFeedGeneratorRecord = exports.AppBskyFeedNS = exports.AppBskyEmbedNS = exports.AppBskyActorStatusRecord = exports.AppBskyActorProfileRecord = exports.AppBskyActorNS = exports.AppBskyNS = exports.AppNS = exports.AtpBaseClient = exports.TOOLS_OZONE_TEAM = exports.TOOLS_OZONE_MODERATION = exports.COM_ATPROTO_MODERATION = exports.APP_BSKY_GRAPH = exports.APP_BSKY_FEED = exports.APP_BSKY_ACTOR = exports.ToolsOzoneVerificationRevokeVerifications = exports.ToolsOzoneVerificationListVerifications = exports.ToolsOzoneVerificationGrantVerifications = exports.ToolsOzoneVerificationDefs = exports.ToolsOzoneTeamUpdateMember = exports.ToolsOzoneTeamListMembers = exports.ToolsOzoneTeamDeleteMember = exports.ToolsOzoneTeamDefs = exports.ToolsOzoneTeamAddMember = exports.ToolsOzoneSignatureSearchAccounts = exports.ToolsOzoneSignatureFindRelatedAccounts = exports.ToolsOzoneSignatureFindCorrelation = exports.ToolsOzoneSignatureDefs = exports.ToolsOzoneSettingUpsertOption = exports.ToolsOzoneSettingRemoveOptions = exports.ToolsOzoneSettingListOptions = exports.ToolsOzoneSettingDefs = exports.ToolsOzoneSetUpsertSet = exports.ToolsOzoneSetQuerySets = exports.ToolsOzoneSetGetValues = exports.ToolsOzoneSetDeleteValues = exports.ToolsOzoneSetDeleteSet = exports.ToolsOzoneSetDefs = exports.ToolsOzoneSetAddValues = exports.ToolsOzoneServerGetConfig = exports.ToolsOzoneSafelinkUpdateRule = exports.ToolsOzoneSafelinkRemoveRule = exports.ToolsOzoneSafelinkQueryRules = exports.ToolsOzoneSafelinkQueryEvents = exports.ToolsOzoneSafelinkDefs = void 0;
|
|
42
|
+
exports.ToolsOzoneVerificationNS = exports.ToolsOzoneTeamNS = exports.ToolsOzoneSignatureNS = exports.ToolsOzoneSettingNS = exports.ToolsOzoneSetNS = exports.ToolsOzoneServerNS = exports.ToolsOzoneSafelinkNS = exports.ToolsOzoneModerationNS = exports.ToolsOzoneHostingNS = exports.ToolsOzoneCommunicationNS = exports.ToolsOzoneNS = exports.ToolsNS = exports.ComAtprotoTempNS = exports.ComAtprotoSyncNS = exports.ComAtprotoServerNS = exports.ComAtprotoRepoNS = exports.ComAtprotoModerationNS = exports.ComAtprotoLexiconSchemaRecord = exports.ComAtprotoLexiconNS = exports.ComAtprotoLabelNS = exports.ComAtprotoIdentityNS = exports.ComAtprotoAdminNS = exports.ComAtprotoNS = exports.ComNS = exports.ChatBskyModerationNS = exports.ChatBskyConvoNS = exports.ChatBskyActorDeclarationRecord = exports.ChatBskyActorNS = exports.ChatBskyNS = exports.ChatNS = exports.AppBskyVideoNS = exports.AppBskyUnspeccedNS = exports.AppBskyRichtextNS = exports.AppBskyNotificationDeclarationRecord = exports.AppBskyNotificationNS = exports.AppBskyLabelerServiceRecord = exports.AppBskyLabelerNS = exports.AppBskyGraphVerificationRecord = exports.AppBskyGraphStarterpackRecord = exports.AppBskyGraphListitemRecord = exports.AppBskyGraphListblockRecord = exports.AppBskyGraphListRecord = exports.AppBskyGraphFollowRecord = exports.AppBskyGraphBlockRecord = exports.AppBskyGraphNS = void 0;
|
|
43
43
|
/**
|
|
44
44
|
* GENERATED CODE - DO NOT MODIFY
|
|
45
45
|
*/
|
|
46
46
|
const xrpc_1 = require("@atproto/xrpc");
|
|
47
47
|
const lexicons_js_1 = require("./lexicons.js");
|
|
48
|
+
const AppBskyFeedGetActorLikes = __importStar(require("./types/app/bsky/feed/getActorLikes.js"));
|
|
49
|
+
const AppBskyFeedGetAuthorFeed = __importStar(require("./types/app/bsky/feed/getAuthorFeed.js"));
|
|
50
|
+
const AppBskyFeedGetFeed = __importStar(require("./types/app/bsky/feed/getFeed.js"));
|
|
51
|
+
const AppBskyFeedGetFeedSkeleton = __importStar(require("./types/app/bsky/feed/getFeedSkeleton.js"));
|
|
52
|
+
const AppBskyFeedGetListFeed = __importStar(require("./types/app/bsky/feed/getListFeed.js"));
|
|
53
|
+
const AppBskyFeedGetPostThread = __importStar(require("./types/app/bsky/feed/getPostThread.js"));
|
|
54
|
+
const AppBskyFeedSearchPosts = __importStar(require("./types/app/bsky/feed/searchPosts.js"));
|
|
55
|
+
const AppBskyGraphGetRelationships = __importStar(require("./types/app/bsky/graph/getRelationships.js"));
|
|
56
|
+
const AppBskyUnspeccedInitAgeAssurance = __importStar(require("./types/app/bsky/unspecced/initAgeAssurance.js"));
|
|
57
|
+
const AppBskyUnspeccedSearchActorsSkeleton = __importStar(require("./types/app/bsky/unspecced/searchActorsSkeleton.js"));
|
|
58
|
+
const AppBskyUnspeccedSearchPostsSkeleton = __importStar(require("./types/app/bsky/unspecced/searchPostsSkeleton.js"));
|
|
59
|
+
const AppBskyUnspeccedSearchStarterPacksSkeleton = __importStar(require("./types/app/bsky/unspecced/searchStarterPacksSkeleton.js"));
|
|
60
|
+
const ChatBskyConvoAddReaction = __importStar(require("./types/chat/bsky/convo/addReaction.js"));
|
|
61
|
+
const ChatBskyConvoRemoveReaction = __importStar(require("./types/chat/bsky/convo/removeReaction.js"));
|
|
48
62
|
const ComAtprotoIdentityRefreshIdentity = __importStar(require("./types/com/atproto/identity/refreshIdentity.js"));
|
|
49
63
|
const ComAtprotoIdentityResolveDid = __importStar(require("./types/com/atproto/identity/resolveDid.js"));
|
|
50
64
|
const ComAtprotoIdentityResolveHandle = __importStar(require("./types/com/atproto/identity/resolveHandle.js"));
|
|
@@ -76,20 +90,6 @@ const ComAtprotoSyncGetRepoStatus = __importStar(require("./types/com/atproto/sy
|
|
|
76
90
|
const ComAtprotoSyncListBlobs = __importStar(require("./types/com/atproto/sync/listBlobs.js"));
|
|
77
91
|
const ComAtprotoSyncRequestCrawl = __importStar(require("./types/com/atproto/sync/requestCrawl.js"));
|
|
78
92
|
const ComAtprotoTempCheckHandleAvailability = __importStar(require("./types/com/atproto/temp/checkHandleAvailability.js"));
|
|
79
|
-
const AppBskyFeedGetActorLikes = __importStar(require("./types/app/bsky/feed/getActorLikes.js"));
|
|
80
|
-
const AppBskyFeedGetAuthorFeed = __importStar(require("./types/app/bsky/feed/getAuthorFeed.js"));
|
|
81
|
-
const AppBskyFeedGetFeed = __importStar(require("./types/app/bsky/feed/getFeed.js"));
|
|
82
|
-
const AppBskyFeedGetFeedSkeleton = __importStar(require("./types/app/bsky/feed/getFeedSkeleton.js"));
|
|
83
|
-
const AppBskyFeedGetListFeed = __importStar(require("./types/app/bsky/feed/getListFeed.js"));
|
|
84
|
-
const AppBskyFeedGetPostThread = __importStar(require("./types/app/bsky/feed/getPostThread.js"));
|
|
85
|
-
const AppBskyFeedSearchPosts = __importStar(require("./types/app/bsky/feed/searchPosts.js"));
|
|
86
|
-
const AppBskyGraphGetRelationships = __importStar(require("./types/app/bsky/graph/getRelationships.js"));
|
|
87
|
-
const AppBskyUnspeccedInitAgeAssurance = __importStar(require("./types/app/bsky/unspecced/initAgeAssurance.js"));
|
|
88
|
-
const AppBskyUnspeccedSearchActorsSkeleton = __importStar(require("./types/app/bsky/unspecced/searchActorsSkeleton.js"));
|
|
89
|
-
const AppBskyUnspeccedSearchPostsSkeleton = __importStar(require("./types/app/bsky/unspecced/searchPostsSkeleton.js"));
|
|
90
|
-
const AppBskyUnspeccedSearchStarterPacksSkeleton = __importStar(require("./types/app/bsky/unspecced/searchStarterPacksSkeleton.js"));
|
|
91
|
-
const ChatBskyConvoAddReaction = __importStar(require("./types/chat/bsky/convo/addReaction.js"));
|
|
92
|
-
const ChatBskyConvoRemoveReaction = __importStar(require("./types/chat/bsky/convo/removeReaction.js"));
|
|
93
93
|
const ToolsOzoneCommunicationCreateTemplate = __importStar(require("./types/tools/ozone/communication/createTemplate.js"));
|
|
94
94
|
const ToolsOzoneCommunicationUpdateTemplate = __importStar(require("./types/tools/ozone/communication/updateTemplate.js"));
|
|
95
95
|
const ToolsOzoneModerationEmitEvent = __importStar(require("./types/tools/ozone/moderation/emitEvent.js"));
|
|
@@ -105,98 +105,6 @@ const ToolsOzoneSetGetValues = __importStar(require("./types/tools/ozone/set/get
|
|
|
105
105
|
const ToolsOzoneTeamAddMember = __importStar(require("./types/tools/ozone/team/addMember.js"));
|
|
106
106
|
const ToolsOzoneTeamDeleteMember = __importStar(require("./types/tools/ozone/team/deleteMember.js"));
|
|
107
107
|
const ToolsOzoneTeamUpdateMember = __importStar(require("./types/tools/ozone/team/updateMember.js"));
|
|
108
|
-
exports.ComAtprotoAdminDefs = __importStar(require("./types/com/atproto/admin/defs.js"));
|
|
109
|
-
exports.ComAtprotoAdminDeleteAccount = __importStar(require("./types/com/atproto/admin/deleteAccount.js"));
|
|
110
|
-
exports.ComAtprotoAdminDisableAccountInvites = __importStar(require("./types/com/atproto/admin/disableAccountInvites.js"));
|
|
111
|
-
exports.ComAtprotoAdminDisableInviteCodes = __importStar(require("./types/com/atproto/admin/disableInviteCodes.js"));
|
|
112
|
-
exports.ComAtprotoAdminEnableAccountInvites = __importStar(require("./types/com/atproto/admin/enableAccountInvites.js"));
|
|
113
|
-
exports.ComAtprotoAdminGetAccountInfo = __importStar(require("./types/com/atproto/admin/getAccountInfo.js"));
|
|
114
|
-
exports.ComAtprotoAdminGetAccountInfos = __importStar(require("./types/com/atproto/admin/getAccountInfos.js"));
|
|
115
|
-
exports.ComAtprotoAdminGetInviteCodes = __importStar(require("./types/com/atproto/admin/getInviteCodes.js"));
|
|
116
|
-
exports.ComAtprotoAdminGetSubjectStatus = __importStar(require("./types/com/atproto/admin/getSubjectStatus.js"));
|
|
117
|
-
exports.ComAtprotoAdminSearchAccounts = __importStar(require("./types/com/atproto/admin/searchAccounts.js"));
|
|
118
|
-
exports.ComAtprotoAdminSendEmail = __importStar(require("./types/com/atproto/admin/sendEmail.js"));
|
|
119
|
-
exports.ComAtprotoAdminUpdateAccountEmail = __importStar(require("./types/com/atproto/admin/updateAccountEmail.js"));
|
|
120
|
-
exports.ComAtprotoAdminUpdateAccountHandle = __importStar(require("./types/com/atproto/admin/updateAccountHandle.js"));
|
|
121
|
-
exports.ComAtprotoAdminUpdateAccountPassword = __importStar(require("./types/com/atproto/admin/updateAccountPassword.js"));
|
|
122
|
-
exports.ComAtprotoAdminUpdateAccountSigningKey = __importStar(require("./types/com/atproto/admin/updateAccountSigningKey.js"));
|
|
123
|
-
exports.ComAtprotoAdminUpdateSubjectStatus = __importStar(require("./types/com/atproto/admin/updateSubjectStatus.js"));
|
|
124
|
-
exports.ComAtprotoIdentityDefs = __importStar(require("./types/com/atproto/identity/defs.js"));
|
|
125
|
-
exports.ComAtprotoIdentityGetRecommendedDidCredentials = __importStar(require("./types/com/atproto/identity/getRecommendedDidCredentials.js"));
|
|
126
|
-
exports.ComAtprotoIdentityRefreshIdentity = __importStar(require("./types/com/atproto/identity/refreshIdentity.js"));
|
|
127
|
-
exports.ComAtprotoIdentityRequestPlcOperationSignature = __importStar(require("./types/com/atproto/identity/requestPlcOperationSignature.js"));
|
|
128
|
-
exports.ComAtprotoIdentityResolveDid = __importStar(require("./types/com/atproto/identity/resolveDid.js"));
|
|
129
|
-
exports.ComAtprotoIdentityResolveHandle = __importStar(require("./types/com/atproto/identity/resolveHandle.js"));
|
|
130
|
-
exports.ComAtprotoIdentityResolveIdentity = __importStar(require("./types/com/atproto/identity/resolveIdentity.js"));
|
|
131
|
-
exports.ComAtprotoIdentitySignPlcOperation = __importStar(require("./types/com/atproto/identity/signPlcOperation.js"));
|
|
132
|
-
exports.ComAtprotoIdentitySubmitPlcOperation = __importStar(require("./types/com/atproto/identity/submitPlcOperation.js"));
|
|
133
|
-
exports.ComAtprotoIdentityUpdateHandle = __importStar(require("./types/com/atproto/identity/updateHandle.js"));
|
|
134
|
-
exports.ComAtprotoLabelDefs = __importStar(require("./types/com/atproto/label/defs.js"));
|
|
135
|
-
exports.ComAtprotoLabelQueryLabels = __importStar(require("./types/com/atproto/label/queryLabels.js"));
|
|
136
|
-
exports.ComAtprotoLabelSubscribeLabels = __importStar(require("./types/com/atproto/label/subscribeLabels.js"));
|
|
137
|
-
exports.ComAtprotoLexiconSchema = __importStar(require("./types/com/atproto/lexicon/schema.js"));
|
|
138
|
-
exports.ComAtprotoModerationCreateReport = __importStar(require("./types/com/atproto/moderation/createReport.js"));
|
|
139
|
-
exports.ComAtprotoModerationDefs = __importStar(require("./types/com/atproto/moderation/defs.js"));
|
|
140
|
-
exports.ComAtprotoRepoApplyWrites = __importStar(require("./types/com/atproto/repo/applyWrites.js"));
|
|
141
|
-
exports.ComAtprotoRepoCreateRecord = __importStar(require("./types/com/atproto/repo/createRecord.js"));
|
|
142
|
-
exports.ComAtprotoRepoDefs = __importStar(require("./types/com/atproto/repo/defs.js"));
|
|
143
|
-
exports.ComAtprotoRepoDeleteRecord = __importStar(require("./types/com/atproto/repo/deleteRecord.js"));
|
|
144
|
-
exports.ComAtprotoRepoDescribeRepo = __importStar(require("./types/com/atproto/repo/describeRepo.js"));
|
|
145
|
-
exports.ComAtprotoRepoGetRecord = __importStar(require("./types/com/atproto/repo/getRecord.js"));
|
|
146
|
-
exports.ComAtprotoRepoImportRepo = __importStar(require("./types/com/atproto/repo/importRepo.js"));
|
|
147
|
-
exports.ComAtprotoRepoListMissingBlobs = __importStar(require("./types/com/atproto/repo/listMissingBlobs.js"));
|
|
148
|
-
exports.ComAtprotoRepoListRecords = __importStar(require("./types/com/atproto/repo/listRecords.js"));
|
|
149
|
-
exports.ComAtprotoRepoPutRecord = __importStar(require("./types/com/atproto/repo/putRecord.js"));
|
|
150
|
-
exports.ComAtprotoRepoStrongRef = __importStar(require("./types/com/atproto/repo/strongRef.js"));
|
|
151
|
-
exports.ComAtprotoRepoUploadBlob = __importStar(require("./types/com/atproto/repo/uploadBlob.js"));
|
|
152
|
-
exports.ComAtprotoServerActivateAccount = __importStar(require("./types/com/atproto/server/activateAccount.js"));
|
|
153
|
-
exports.ComAtprotoServerCheckAccountStatus = __importStar(require("./types/com/atproto/server/checkAccountStatus.js"));
|
|
154
|
-
exports.ComAtprotoServerConfirmEmail = __importStar(require("./types/com/atproto/server/confirmEmail.js"));
|
|
155
|
-
exports.ComAtprotoServerCreateAccount = __importStar(require("./types/com/atproto/server/createAccount.js"));
|
|
156
|
-
exports.ComAtprotoServerCreateAppPassword = __importStar(require("./types/com/atproto/server/createAppPassword.js"));
|
|
157
|
-
exports.ComAtprotoServerCreateInviteCode = __importStar(require("./types/com/atproto/server/createInviteCode.js"));
|
|
158
|
-
exports.ComAtprotoServerCreateInviteCodes = __importStar(require("./types/com/atproto/server/createInviteCodes.js"));
|
|
159
|
-
exports.ComAtprotoServerCreateSession = __importStar(require("./types/com/atproto/server/createSession.js"));
|
|
160
|
-
exports.ComAtprotoServerDeactivateAccount = __importStar(require("./types/com/atproto/server/deactivateAccount.js"));
|
|
161
|
-
exports.ComAtprotoServerDefs = __importStar(require("./types/com/atproto/server/defs.js"));
|
|
162
|
-
exports.ComAtprotoServerDeleteAccount = __importStar(require("./types/com/atproto/server/deleteAccount.js"));
|
|
163
|
-
exports.ComAtprotoServerDeleteSession = __importStar(require("./types/com/atproto/server/deleteSession.js"));
|
|
164
|
-
exports.ComAtprotoServerDescribeServer = __importStar(require("./types/com/atproto/server/describeServer.js"));
|
|
165
|
-
exports.ComAtprotoServerGetAccountInviteCodes = __importStar(require("./types/com/atproto/server/getAccountInviteCodes.js"));
|
|
166
|
-
exports.ComAtprotoServerGetServiceAuth = __importStar(require("./types/com/atproto/server/getServiceAuth.js"));
|
|
167
|
-
exports.ComAtprotoServerGetSession = __importStar(require("./types/com/atproto/server/getSession.js"));
|
|
168
|
-
exports.ComAtprotoServerListAppPasswords = __importStar(require("./types/com/atproto/server/listAppPasswords.js"));
|
|
169
|
-
exports.ComAtprotoServerRefreshSession = __importStar(require("./types/com/atproto/server/refreshSession.js"));
|
|
170
|
-
exports.ComAtprotoServerRequestAccountDelete = __importStar(require("./types/com/atproto/server/requestAccountDelete.js"));
|
|
171
|
-
exports.ComAtprotoServerRequestEmailConfirmation = __importStar(require("./types/com/atproto/server/requestEmailConfirmation.js"));
|
|
172
|
-
exports.ComAtprotoServerRequestEmailUpdate = __importStar(require("./types/com/atproto/server/requestEmailUpdate.js"));
|
|
173
|
-
exports.ComAtprotoServerRequestPasswordReset = __importStar(require("./types/com/atproto/server/requestPasswordReset.js"));
|
|
174
|
-
exports.ComAtprotoServerReserveSigningKey = __importStar(require("./types/com/atproto/server/reserveSigningKey.js"));
|
|
175
|
-
exports.ComAtprotoServerResetPassword = __importStar(require("./types/com/atproto/server/resetPassword.js"));
|
|
176
|
-
exports.ComAtprotoServerRevokeAppPassword = __importStar(require("./types/com/atproto/server/revokeAppPassword.js"));
|
|
177
|
-
exports.ComAtprotoServerUpdateEmail = __importStar(require("./types/com/atproto/server/updateEmail.js"));
|
|
178
|
-
exports.ComAtprotoSyncDefs = __importStar(require("./types/com/atproto/sync/defs.js"));
|
|
179
|
-
exports.ComAtprotoSyncGetBlob = __importStar(require("./types/com/atproto/sync/getBlob.js"));
|
|
180
|
-
exports.ComAtprotoSyncGetBlocks = __importStar(require("./types/com/atproto/sync/getBlocks.js"));
|
|
181
|
-
exports.ComAtprotoSyncGetCheckout = __importStar(require("./types/com/atproto/sync/getCheckout.js"));
|
|
182
|
-
exports.ComAtprotoSyncGetHead = __importStar(require("./types/com/atproto/sync/getHead.js"));
|
|
183
|
-
exports.ComAtprotoSyncGetHostStatus = __importStar(require("./types/com/atproto/sync/getHostStatus.js"));
|
|
184
|
-
exports.ComAtprotoSyncGetLatestCommit = __importStar(require("./types/com/atproto/sync/getLatestCommit.js"));
|
|
185
|
-
exports.ComAtprotoSyncGetRecord = __importStar(require("./types/com/atproto/sync/getRecord.js"));
|
|
186
|
-
exports.ComAtprotoSyncGetRepo = __importStar(require("./types/com/atproto/sync/getRepo.js"));
|
|
187
|
-
exports.ComAtprotoSyncGetRepoStatus = __importStar(require("./types/com/atproto/sync/getRepoStatus.js"));
|
|
188
|
-
exports.ComAtprotoSyncListBlobs = __importStar(require("./types/com/atproto/sync/listBlobs.js"));
|
|
189
|
-
exports.ComAtprotoSyncListHosts = __importStar(require("./types/com/atproto/sync/listHosts.js"));
|
|
190
|
-
exports.ComAtprotoSyncListRepos = __importStar(require("./types/com/atproto/sync/listRepos.js"));
|
|
191
|
-
exports.ComAtprotoSyncListReposByCollection = __importStar(require("./types/com/atproto/sync/listReposByCollection.js"));
|
|
192
|
-
exports.ComAtprotoSyncNotifyOfUpdate = __importStar(require("./types/com/atproto/sync/notifyOfUpdate.js"));
|
|
193
|
-
exports.ComAtprotoSyncRequestCrawl = __importStar(require("./types/com/atproto/sync/requestCrawl.js"));
|
|
194
|
-
exports.ComAtprotoSyncSubscribeRepos = __importStar(require("./types/com/atproto/sync/subscribeRepos.js"));
|
|
195
|
-
exports.ComAtprotoTempAddReservedHandle = __importStar(require("./types/com/atproto/temp/addReservedHandle.js"));
|
|
196
|
-
exports.ComAtprotoTempCheckHandleAvailability = __importStar(require("./types/com/atproto/temp/checkHandleAvailability.js"));
|
|
197
|
-
exports.ComAtprotoTempCheckSignupQueue = __importStar(require("./types/com/atproto/temp/checkSignupQueue.js"));
|
|
198
|
-
exports.ComAtprotoTempFetchLabels = __importStar(require("./types/com/atproto/temp/fetchLabels.js"));
|
|
199
|
-
exports.ComAtprotoTempRequestPhoneVerification = __importStar(require("./types/com/atproto/temp/requestPhoneVerification.js"));
|
|
200
108
|
exports.AppBskyActorDefs = __importStar(require("./types/app/bsky/actor/defs.js"));
|
|
201
109
|
exports.AppBskyActorGetPreferences = __importStar(require("./types/app/bsky/actor/getPreferences.js"));
|
|
202
110
|
exports.AppBskyActorGetProfile = __importStar(require("./types/app/bsky/actor/getProfile.js"));
|
|
@@ -250,10 +158,12 @@ exports.AppBskyGraphGetList = __importStar(require("./types/app/bsky/graph/getLi
|
|
|
250
158
|
exports.AppBskyGraphGetListBlocks = __importStar(require("./types/app/bsky/graph/getListBlocks.js"));
|
|
251
159
|
exports.AppBskyGraphGetListMutes = __importStar(require("./types/app/bsky/graph/getListMutes.js"));
|
|
252
160
|
exports.AppBskyGraphGetLists = __importStar(require("./types/app/bsky/graph/getLists.js"));
|
|
161
|
+
exports.AppBskyGraphGetListsWithMembership = __importStar(require("./types/app/bsky/graph/getListsWithMembership.js"));
|
|
253
162
|
exports.AppBskyGraphGetMutes = __importStar(require("./types/app/bsky/graph/getMutes.js"));
|
|
254
163
|
exports.AppBskyGraphGetRelationships = __importStar(require("./types/app/bsky/graph/getRelationships.js"));
|
|
255
164
|
exports.AppBskyGraphGetStarterPack = __importStar(require("./types/app/bsky/graph/getStarterPack.js"));
|
|
256
165
|
exports.AppBskyGraphGetStarterPacks = __importStar(require("./types/app/bsky/graph/getStarterPacks.js"));
|
|
166
|
+
exports.AppBskyGraphGetStarterPacksWithMembership = __importStar(require("./types/app/bsky/graph/getStarterPacksWithMembership.js"));
|
|
257
167
|
exports.AppBskyGraphGetSuggestedFollowsByActor = __importStar(require("./types/app/bsky/graph/getSuggestedFollowsByActor.js"));
|
|
258
168
|
exports.AppBskyGraphList = __importStar(require("./types/app/bsky/graph/list.js"));
|
|
259
169
|
exports.AppBskyGraphListblock = __importStar(require("./types/app/bsky/graph/listblock.js"));
|
|
@@ -333,6 +243,98 @@ exports.ChatBskyConvoUpdateRead = __importStar(require("./types/chat/bsky/convo/
|
|
|
333
243
|
exports.ChatBskyModerationGetActorMetadata = __importStar(require("./types/chat/bsky/moderation/getActorMetadata.js"));
|
|
334
244
|
exports.ChatBskyModerationGetMessageContext = __importStar(require("./types/chat/bsky/moderation/getMessageContext.js"));
|
|
335
245
|
exports.ChatBskyModerationUpdateActorAccess = __importStar(require("./types/chat/bsky/moderation/updateActorAccess.js"));
|
|
246
|
+
exports.ComAtprotoAdminDefs = __importStar(require("./types/com/atproto/admin/defs.js"));
|
|
247
|
+
exports.ComAtprotoAdminDeleteAccount = __importStar(require("./types/com/atproto/admin/deleteAccount.js"));
|
|
248
|
+
exports.ComAtprotoAdminDisableAccountInvites = __importStar(require("./types/com/atproto/admin/disableAccountInvites.js"));
|
|
249
|
+
exports.ComAtprotoAdminDisableInviteCodes = __importStar(require("./types/com/atproto/admin/disableInviteCodes.js"));
|
|
250
|
+
exports.ComAtprotoAdminEnableAccountInvites = __importStar(require("./types/com/atproto/admin/enableAccountInvites.js"));
|
|
251
|
+
exports.ComAtprotoAdminGetAccountInfo = __importStar(require("./types/com/atproto/admin/getAccountInfo.js"));
|
|
252
|
+
exports.ComAtprotoAdminGetAccountInfos = __importStar(require("./types/com/atproto/admin/getAccountInfos.js"));
|
|
253
|
+
exports.ComAtprotoAdminGetInviteCodes = __importStar(require("./types/com/atproto/admin/getInviteCodes.js"));
|
|
254
|
+
exports.ComAtprotoAdminGetSubjectStatus = __importStar(require("./types/com/atproto/admin/getSubjectStatus.js"));
|
|
255
|
+
exports.ComAtprotoAdminSearchAccounts = __importStar(require("./types/com/atproto/admin/searchAccounts.js"));
|
|
256
|
+
exports.ComAtprotoAdminSendEmail = __importStar(require("./types/com/atproto/admin/sendEmail.js"));
|
|
257
|
+
exports.ComAtprotoAdminUpdateAccountEmail = __importStar(require("./types/com/atproto/admin/updateAccountEmail.js"));
|
|
258
|
+
exports.ComAtprotoAdminUpdateAccountHandle = __importStar(require("./types/com/atproto/admin/updateAccountHandle.js"));
|
|
259
|
+
exports.ComAtprotoAdminUpdateAccountPassword = __importStar(require("./types/com/atproto/admin/updateAccountPassword.js"));
|
|
260
|
+
exports.ComAtprotoAdminUpdateAccountSigningKey = __importStar(require("./types/com/atproto/admin/updateAccountSigningKey.js"));
|
|
261
|
+
exports.ComAtprotoAdminUpdateSubjectStatus = __importStar(require("./types/com/atproto/admin/updateSubjectStatus.js"));
|
|
262
|
+
exports.ComAtprotoIdentityDefs = __importStar(require("./types/com/atproto/identity/defs.js"));
|
|
263
|
+
exports.ComAtprotoIdentityGetRecommendedDidCredentials = __importStar(require("./types/com/atproto/identity/getRecommendedDidCredentials.js"));
|
|
264
|
+
exports.ComAtprotoIdentityRefreshIdentity = __importStar(require("./types/com/atproto/identity/refreshIdentity.js"));
|
|
265
|
+
exports.ComAtprotoIdentityRequestPlcOperationSignature = __importStar(require("./types/com/atproto/identity/requestPlcOperationSignature.js"));
|
|
266
|
+
exports.ComAtprotoIdentityResolveDid = __importStar(require("./types/com/atproto/identity/resolveDid.js"));
|
|
267
|
+
exports.ComAtprotoIdentityResolveHandle = __importStar(require("./types/com/atproto/identity/resolveHandle.js"));
|
|
268
|
+
exports.ComAtprotoIdentityResolveIdentity = __importStar(require("./types/com/atproto/identity/resolveIdentity.js"));
|
|
269
|
+
exports.ComAtprotoIdentitySignPlcOperation = __importStar(require("./types/com/atproto/identity/signPlcOperation.js"));
|
|
270
|
+
exports.ComAtprotoIdentitySubmitPlcOperation = __importStar(require("./types/com/atproto/identity/submitPlcOperation.js"));
|
|
271
|
+
exports.ComAtprotoIdentityUpdateHandle = __importStar(require("./types/com/atproto/identity/updateHandle.js"));
|
|
272
|
+
exports.ComAtprotoLabelDefs = __importStar(require("./types/com/atproto/label/defs.js"));
|
|
273
|
+
exports.ComAtprotoLabelQueryLabels = __importStar(require("./types/com/atproto/label/queryLabels.js"));
|
|
274
|
+
exports.ComAtprotoLabelSubscribeLabels = __importStar(require("./types/com/atproto/label/subscribeLabels.js"));
|
|
275
|
+
exports.ComAtprotoLexiconSchema = __importStar(require("./types/com/atproto/lexicon/schema.js"));
|
|
276
|
+
exports.ComAtprotoModerationCreateReport = __importStar(require("./types/com/atproto/moderation/createReport.js"));
|
|
277
|
+
exports.ComAtprotoModerationDefs = __importStar(require("./types/com/atproto/moderation/defs.js"));
|
|
278
|
+
exports.ComAtprotoRepoApplyWrites = __importStar(require("./types/com/atproto/repo/applyWrites.js"));
|
|
279
|
+
exports.ComAtprotoRepoCreateRecord = __importStar(require("./types/com/atproto/repo/createRecord.js"));
|
|
280
|
+
exports.ComAtprotoRepoDefs = __importStar(require("./types/com/atproto/repo/defs.js"));
|
|
281
|
+
exports.ComAtprotoRepoDeleteRecord = __importStar(require("./types/com/atproto/repo/deleteRecord.js"));
|
|
282
|
+
exports.ComAtprotoRepoDescribeRepo = __importStar(require("./types/com/atproto/repo/describeRepo.js"));
|
|
283
|
+
exports.ComAtprotoRepoGetRecord = __importStar(require("./types/com/atproto/repo/getRecord.js"));
|
|
284
|
+
exports.ComAtprotoRepoImportRepo = __importStar(require("./types/com/atproto/repo/importRepo.js"));
|
|
285
|
+
exports.ComAtprotoRepoListMissingBlobs = __importStar(require("./types/com/atproto/repo/listMissingBlobs.js"));
|
|
286
|
+
exports.ComAtprotoRepoListRecords = __importStar(require("./types/com/atproto/repo/listRecords.js"));
|
|
287
|
+
exports.ComAtprotoRepoPutRecord = __importStar(require("./types/com/atproto/repo/putRecord.js"));
|
|
288
|
+
exports.ComAtprotoRepoStrongRef = __importStar(require("./types/com/atproto/repo/strongRef.js"));
|
|
289
|
+
exports.ComAtprotoRepoUploadBlob = __importStar(require("./types/com/atproto/repo/uploadBlob.js"));
|
|
290
|
+
exports.ComAtprotoServerActivateAccount = __importStar(require("./types/com/atproto/server/activateAccount.js"));
|
|
291
|
+
exports.ComAtprotoServerCheckAccountStatus = __importStar(require("./types/com/atproto/server/checkAccountStatus.js"));
|
|
292
|
+
exports.ComAtprotoServerConfirmEmail = __importStar(require("./types/com/atproto/server/confirmEmail.js"));
|
|
293
|
+
exports.ComAtprotoServerCreateAccount = __importStar(require("./types/com/atproto/server/createAccount.js"));
|
|
294
|
+
exports.ComAtprotoServerCreateAppPassword = __importStar(require("./types/com/atproto/server/createAppPassword.js"));
|
|
295
|
+
exports.ComAtprotoServerCreateInviteCode = __importStar(require("./types/com/atproto/server/createInviteCode.js"));
|
|
296
|
+
exports.ComAtprotoServerCreateInviteCodes = __importStar(require("./types/com/atproto/server/createInviteCodes.js"));
|
|
297
|
+
exports.ComAtprotoServerCreateSession = __importStar(require("./types/com/atproto/server/createSession.js"));
|
|
298
|
+
exports.ComAtprotoServerDeactivateAccount = __importStar(require("./types/com/atproto/server/deactivateAccount.js"));
|
|
299
|
+
exports.ComAtprotoServerDefs = __importStar(require("./types/com/atproto/server/defs.js"));
|
|
300
|
+
exports.ComAtprotoServerDeleteAccount = __importStar(require("./types/com/atproto/server/deleteAccount.js"));
|
|
301
|
+
exports.ComAtprotoServerDeleteSession = __importStar(require("./types/com/atproto/server/deleteSession.js"));
|
|
302
|
+
exports.ComAtprotoServerDescribeServer = __importStar(require("./types/com/atproto/server/describeServer.js"));
|
|
303
|
+
exports.ComAtprotoServerGetAccountInviteCodes = __importStar(require("./types/com/atproto/server/getAccountInviteCodes.js"));
|
|
304
|
+
exports.ComAtprotoServerGetServiceAuth = __importStar(require("./types/com/atproto/server/getServiceAuth.js"));
|
|
305
|
+
exports.ComAtprotoServerGetSession = __importStar(require("./types/com/atproto/server/getSession.js"));
|
|
306
|
+
exports.ComAtprotoServerListAppPasswords = __importStar(require("./types/com/atproto/server/listAppPasswords.js"));
|
|
307
|
+
exports.ComAtprotoServerRefreshSession = __importStar(require("./types/com/atproto/server/refreshSession.js"));
|
|
308
|
+
exports.ComAtprotoServerRequestAccountDelete = __importStar(require("./types/com/atproto/server/requestAccountDelete.js"));
|
|
309
|
+
exports.ComAtprotoServerRequestEmailConfirmation = __importStar(require("./types/com/atproto/server/requestEmailConfirmation.js"));
|
|
310
|
+
exports.ComAtprotoServerRequestEmailUpdate = __importStar(require("./types/com/atproto/server/requestEmailUpdate.js"));
|
|
311
|
+
exports.ComAtprotoServerRequestPasswordReset = __importStar(require("./types/com/atproto/server/requestPasswordReset.js"));
|
|
312
|
+
exports.ComAtprotoServerReserveSigningKey = __importStar(require("./types/com/atproto/server/reserveSigningKey.js"));
|
|
313
|
+
exports.ComAtprotoServerResetPassword = __importStar(require("./types/com/atproto/server/resetPassword.js"));
|
|
314
|
+
exports.ComAtprotoServerRevokeAppPassword = __importStar(require("./types/com/atproto/server/revokeAppPassword.js"));
|
|
315
|
+
exports.ComAtprotoServerUpdateEmail = __importStar(require("./types/com/atproto/server/updateEmail.js"));
|
|
316
|
+
exports.ComAtprotoSyncDefs = __importStar(require("./types/com/atproto/sync/defs.js"));
|
|
317
|
+
exports.ComAtprotoSyncGetBlob = __importStar(require("./types/com/atproto/sync/getBlob.js"));
|
|
318
|
+
exports.ComAtprotoSyncGetBlocks = __importStar(require("./types/com/atproto/sync/getBlocks.js"));
|
|
319
|
+
exports.ComAtprotoSyncGetCheckout = __importStar(require("./types/com/atproto/sync/getCheckout.js"));
|
|
320
|
+
exports.ComAtprotoSyncGetHead = __importStar(require("./types/com/atproto/sync/getHead.js"));
|
|
321
|
+
exports.ComAtprotoSyncGetHostStatus = __importStar(require("./types/com/atproto/sync/getHostStatus.js"));
|
|
322
|
+
exports.ComAtprotoSyncGetLatestCommit = __importStar(require("./types/com/atproto/sync/getLatestCommit.js"));
|
|
323
|
+
exports.ComAtprotoSyncGetRecord = __importStar(require("./types/com/atproto/sync/getRecord.js"));
|
|
324
|
+
exports.ComAtprotoSyncGetRepo = __importStar(require("./types/com/atproto/sync/getRepo.js"));
|
|
325
|
+
exports.ComAtprotoSyncGetRepoStatus = __importStar(require("./types/com/atproto/sync/getRepoStatus.js"));
|
|
326
|
+
exports.ComAtprotoSyncListBlobs = __importStar(require("./types/com/atproto/sync/listBlobs.js"));
|
|
327
|
+
exports.ComAtprotoSyncListHosts = __importStar(require("./types/com/atproto/sync/listHosts.js"));
|
|
328
|
+
exports.ComAtprotoSyncListRepos = __importStar(require("./types/com/atproto/sync/listRepos.js"));
|
|
329
|
+
exports.ComAtprotoSyncListReposByCollection = __importStar(require("./types/com/atproto/sync/listReposByCollection.js"));
|
|
330
|
+
exports.ComAtprotoSyncNotifyOfUpdate = __importStar(require("./types/com/atproto/sync/notifyOfUpdate.js"));
|
|
331
|
+
exports.ComAtprotoSyncRequestCrawl = __importStar(require("./types/com/atproto/sync/requestCrawl.js"));
|
|
332
|
+
exports.ComAtprotoSyncSubscribeRepos = __importStar(require("./types/com/atproto/sync/subscribeRepos.js"));
|
|
333
|
+
exports.ComAtprotoTempAddReservedHandle = __importStar(require("./types/com/atproto/temp/addReservedHandle.js"));
|
|
334
|
+
exports.ComAtprotoTempCheckHandleAvailability = __importStar(require("./types/com/atproto/temp/checkHandleAvailability.js"));
|
|
335
|
+
exports.ComAtprotoTempCheckSignupQueue = __importStar(require("./types/com/atproto/temp/checkSignupQueue.js"));
|
|
336
|
+
exports.ComAtprotoTempFetchLabels = __importStar(require("./types/com/atproto/temp/fetchLabels.js"));
|
|
337
|
+
exports.ComAtprotoTempRequestPhoneVerification = __importStar(require("./types/com/atproto/temp/requestPhoneVerification.js"));
|
|
336
338
|
exports.ToolsOzoneCommunicationCreateTemplate = __importStar(require("./types/tools/ozone/communication/createTemplate.js"));
|
|
337
339
|
exports.ToolsOzoneCommunicationDefs = __importStar(require("./types/tools/ozone/communication/defs.js"));
|
|
338
340
|
exports.ToolsOzoneCommunicationDeleteTemplate = __importStar(require("./types/tools/ozone/communication/deleteTemplate.js"));
|
|
@@ -383,15 +385,6 @@ exports.ToolsOzoneVerificationDefs = __importStar(require("./types/tools/ozone/v
|
|
|
383
385
|
exports.ToolsOzoneVerificationGrantVerifications = __importStar(require("./types/tools/ozone/verification/grantVerifications.js"));
|
|
384
386
|
exports.ToolsOzoneVerificationListVerifications = __importStar(require("./types/tools/ozone/verification/listVerifications.js"));
|
|
385
387
|
exports.ToolsOzoneVerificationRevokeVerifications = __importStar(require("./types/tools/ozone/verification/revokeVerifications.js"));
|
|
386
|
-
exports.COM_ATPROTO_MODERATION = {
|
|
387
|
-
DefsReasonSpam: 'com.atproto.moderation.defs#reasonSpam',
|
|
388
|
-
DefsReasonViolation: 'com.atproto.moderation.defs#reasonViolation',
|
|
389
|
-
DefsReasonMisleading: 'com.atproto.moderation.defs#reasonMisleading',
|
|
390
|
-
DefsReasonSexual: 'com.atproto.moderation.defs#reasonSexual',
|
|
391
|
-
DefsReasonRude: 'com.atproto.moderation.defs#reasonRude',
|
|
392
|
-
DefsReasonOther: 'com.atproto.moderation.defs#reasonOther',
|
|
393
|
-
DefsReasonAppeal: 'com.atproto.moderation.defs#reasonAppeal',
|
|
394
|
-
};
|
|
395
388
|
exports.APP_BSKY_ACTOR = {
|
|
396
389
|
StatusLive: 'app.bsky.actor.status#live',
|
|
397
390
|
};
|
|
@@ -416,6 +409,15 @@ exports.APP_BSKY_GRAPH = {
|
|
|
416
409
|
DefsCuratelist: 'app.bsky.graph.defs#curatelist',
|
|
417
410
|
DefsReferencelist: 'app.bsky.graph.defs#referencelist',
|
|
418
411
|
};
|
|
412
|
+
exports.COM_ATPROTO_MODERATION = {
|
|
413
|
+
DefsReasonSpam: 'com.atproto.moderation.defs#reasonSpam',
|
|
414
|
+
DefsReasonViolation: 'com.atproto.moderation.defs#reasonViolation',
|
|
415
|
+
DefsReasonMisleading: 'com.atproto.moderation.defs#reasonMisleading',
|
|
416
|
+
DefsReasonSexual: 'com.atproto.moderation.defs#reasonSexual',
|
|
417
|
+
DefsReasonRude: 'com.atproto.moderation.defs#reasonRude',
|
|
418
|
+
DefsReasonOther: 'com.atproto.moderation.defs#reasonOther',
|
|
419
|
+
DefsReasonAppeal: 'com.atproto.moderation.defs#reasonAppeal',
|
|
420
|
+
};
|
|
419
421
|
exports.TOOLS_OZONE_MODERATION = {
|
|
420
422
|
DefsReviewOpen: 'tools.ozone.moderation.defs#reviewOpen',
|
|
421
423
|
DefsReviewEscalated: 'tools.ozone.moderation.defs#reviewEscalated',
|
|
@@ -434,19 +436,19 @@ exports.TOOLS_OZONE_TEAM = {
|
|
|
434
436
|
class AtpBaseClient extends xrpc_1.XrpcClient {
|
|
435
437
|
constructor(options) {
|
|
436
438
|
super(options, lexicons_js_1.schemas);
|
|
437
|
-
Object.defineProperty(this, "
|
|
439
|
+
Object.defineProperty(this, "app", {
|
|
438
440
|
enumerable: true,
|
|
439
441
|
configurable: true,
|
|
440
442
|
writable: true,
|
|
441
443
|
value: void 0
|
|
442
444
|
});
|
|
443
|
-
Object.defineProperty(this, "
|
|
445
|
+
Object.defineProperty(this, "chat", {
|
|
444
446
|
enumerable: true,
|
|
445
447
|
configurable: true,
|
|
446
448
|
writable: true,
|
|
447
449
|
value: void 0
|
|
448
450
|
});
|
|
449
|
-
Object.defineProperty(this, "
|
|
451
|
+
Object.defineProperty(this, "com", {
|
|
450
452
|
enumerable: true,
|
|
451
453
|
configurable: true,
|
|
452
454
|
writable: true,
|
|
@@ -458,9 +460,9 @@ class AtpBaseClient extends xrpc_1.XrpcClient {
|
|
|
458
460
|
writable: true,
|
|
459
461
|
value: void 0
|
|
460
462
|
});
|
|
461
|
-
this.com = new ComNS(this);
|
|
462
463
|
this.app = new AppNS(this);
|
|
463
464
|
this.chat = new ChatNS(this);
|
|
465
|
+
this.com = new ComNS(this);
|
|
464
466
|
this.tools = new ToolsNS(this);
|
|
465
467
|
}
|
|
466
468
|
/** @deprecated use `this` instead */
|
|
@@ -469,7 +471,7 @@ class AtpBaseClient extends xrpc_1.XrpcClient {
|
|
|
469
471
|
}
|
|
470
472
|
}
|
|
471
473
|
exports.AtpBaseClient = AtpBaseClient;
|
|
472
|
-
class
|
|
474
|
+
class AppNS {
|
|
473
475
|
constructor(client) {
|
|
474
476
|
Object.defineProperty(this, "_client", {
|
|
475
477
|
enumerable: true,
|
|
@@ -477,18 +479,18 @@ class ComNS {
|
|
|
477
479
|
writable: true,
|
|
478
480
|
value: void 0
|
|
479
481
|
});
|
|
480
|
-
Object.defineProperty(this, "
|
|
482
|
+
Object.defineProperty(this, "bsky", {
|
|
481
483
|
enumerable: true,
|
|
482
484
|
configurable: true,
|
|
483
485
|
writable: true,
|
|
484
486
|
value: void 0
|
|
485
487
|
});
|
|
486
488
|
this._client = client;
|
|
487
|
-
this.
|
|
489
|
+
this.bsky = new AppBskyNS(client);
|
|
488
490
|
}
|
|
489
491
|
}
|
|
490
|
-
exports.
|
|
491
|
-
class
|
|
492
|
+
exports.AppNS = AppNS;
|
|
493
|
+
class AppBskyNS {
|
|
492
494
|
constructor(client) {
|
|
493
495
|
Object.defineProperty(this, "_client", {
|
|
494
496
|
enumerable: true,
|
|
@@ -496,74 +498,74 @@ class ComAtprotoNS {
|
|
|
496
498
|
writable: true,
|
|
497
499
|
value: void 0
|
|
498
500
|
});
|
|
499
|
-
Object.defineProperty(this, "
|
|
501
|
+
Object.defineProperty(this, "actor", {
|
|
500
502
|
enumerable: true,
|
|
501
503
|
configurable: true,
|
|
502
504
|
writable: true,
|
|
503
505
|
value: void 0
|
|
504
506
|
});
|
|
505
|
-
Object.defineProperty(this, "
|
|
507
|
+
Object.defineProperty(this, "embed", {
|
|
506
508
|
enumerable: true,
|
|
507
509
|
configurable: true,
|
|
508
510
|
writable: true,
|
|
509
511
|
value: void 0
|
|
510
512
|
});
|
|
511
|
-
Object.defineProperty(this, "
|
|
513
|
+
Object.defineProperty(this, "feed", {
|
|
512
514
|
enumerable: true,
|
|
513
515
|
configurable: true,
|
|
514
516
|
writable: true,
|
|
515
517
|
value: void 0
|
|
516
518
|
});
|
|
517
|
-
Object.defineProperty(this, "
|
|
519
|
+
Object.defineProperty(this, "graph", {
|
|
518
520
|
enumerable: true,
|
|
519
521
|
configurable: true,
|
|
520
522
|
writable: true,
|
|
521
523
|
value: void 0
|
|
522
524
|
});
|
|
523
|
-
Object.defineProperty(this, "
|
|
525
|
+
Object.defineProperty(this, "labeler", {
|
|
524
526
|
enumerable: true,
|
|
525
527
|
configurable: true,
|
|
526
528
|
writable: true,
|
|
527
529
|
value: void 0
|
|
528
530
|
});
|
|
529
|
-
Object.defineProperty(this, "
|
|
531
|
+
Object.defineProperty(this, "notification", {
|
|
530
532
|
enumerable: true,
|
|
531
533
|
configurable: true,
|
|
532
534
|
writable: true,
|
|
533
535
|
value: void 0
|
|
534
536
|
});
|
|
535
|
-
Object.defineProperty(this, "
|
|
537
|
+
Object.defineProperty(this, "richtext", {
|
|
536
538
|
enumerable: true,
|
|
537
539
|
configurable: true,
|
|
538
540
|
writable: true,
|
|
539
541
|
value: void 0
|
|
540
542
|
});
|
|
541
|
-
Object.defineProperty(this, "
|
|
543
|
+
Object.defineProperty(this, "unspecced", {
|
|
542
544
|
enumerable: true,
|
|
543
545
|
configurable: true,
|
|
544
546
|
writable: true,
|
|
545
547
|
value: void 0
|
|
546
548
|
});
|
|
547
|
-
Object.defineProperty(this, "
|
|
549
|
+
Object.defineProperty(this, "video", {
|
|
548
550
|
enumerable: true,
|
|
549
551
|
configurable: true,
|
|
550
552
|
writable: true,
|
|
551
553
|
value: void 0
|
|
552
554
|
});
|
|
553
555
|
this._client = client;
|
|
554
|
-
this.
|
|
555
|
-
this.
|
|
556
|
-
this.
|
|
557
|
-
this.
|
|
558
|
-
this.
|
|
559
|
-
this.
|
|
560
|
-
this.
|
|
561
|
-
this.
|
|
562
|
-
this.
|
|
556
|
+
this.actor = new AppBskyActorNS(client);
|
|
557
|
+
this.embed = new AppBskyEmbedNS(client);
|
|
558
|
+
this.feed = new AppBskyFeedNS(client);
|
|
559
|
+
this.graph = new AppBskyGraphNS(client);
|
|
560
|
+
this.labeler = new AppBskyLabelerNS(client);
|
|
561
|
+
this.notification = new AppBskyNotificationNS(client);
|
|
562
|
+
this.richtext = new AppBskyRichtextNS(client);
|
|
563
|
+
this.unspecced = new AppBskyUnspeccedNS(client);
|
|
564
|
+
this.video = new AppBskyVideoNS(client);
|
|
563
565
|
}
|
|
564
566
|
}
|
|
565
|
-
exports.
|
|
566
|
-
class
|
|
567
|
+
exports.AppBskyNS = AppBskyNS;
|
|
568
|
+
class AppBskyActorNS {
|
|
567
569
|
constructor(client) {
|
|
568
570
|
Object.defineProperty(this, "_client", {
|
|
569
571
|
enumerable: true,
|
|
@@ -571,111 +573,46 @@ class ComAtprotoAdminNS {
|
|
|
571
573
|
writable: true,
|
|
572
574
|
value: void 0
|
|
573
575
|
});
|
|
574
|
-
this
|
|
575
|
-
}
|
|
576
|
-
deleteAccount(data, opts) {
|
|
577
|
-
return this._client.call('com.atproto.admin.deleteAccount', opts?.qp, data, opts);
|
|
578
|
-
}
|
|
579
|
-
disableAccountInvites(data, opts) {
|
|
580
|
-
return this._client.call('com.atproto.admin.disableAccountInvites', opts?.qp, data, opts);
|
|
581
|
-
}
|
|
582
|
-
disableInviteCodes(data, opts) {
|
|
583
|
-
return this._client.call('com.atproto.admin.disableInviteCodes', opts?.qp, data, opts);
|
|
584
|
-
}
|
|
585
|
-
enableAccountInvites(data, opts) {
|
|
586
|
-
return this._client.call('com.atproto.admin.enableAccountInvites', opts?.qp, data, opts);
|
|
587
|
-
}
|
|
588
|
-
getAccountInfo(params, opts) {
|
|
589
|
-
return this._client.call('com.atproto.admin.getAccountInfo', params, undefined, opts);
|
|
590
|
-
}
|
|
591
|
-
getAccountInfos(params, opts) {
|
|
592
|
-
return this._client.call('com.atproto.admin.getAccountInfos', params, undefined, opts);
|
|
593
|
-
}
|
|
594
|
-
getInviteCodes(params, opts) {
|
|
595
|
-
return this._client.call('com.atproto.admin.getInviteCodes', params, undefined, opts);
|
|
596
|
-
}
|
|
597
|
-
getSubjectStatus(params, opts) {
|
|
598
|
-
return this._client.call('com.atproto.admin.getSubjectStatus', params, undefined, opts);
|
|
599
|
-
}
|
|
600
|
-
searchAccounts(params, opts) {
|
|
601
|
-
return this._client.call('com.atproto.admin.searchAccounts', params, undefined, opts);
|
|
602
|
-
}
|
|
603
|
-
sendEmail(data, opts) {
|
|
604
|
-
return this._client.call('com.atproto.admin.sendEmail', opts?.qp, data, opts);
|
|
605
|
-
}
|
|
606
|
-
updateAccountEmail(data, opts) {
|
|
607
|
-
return this._client.call('com.atproto.admin.updateAccountEmail', opts?.qp, data, opts);
|
|
608
|
-
}
|
|
609
|
-
updateAccountHandle(data, opts) {
|
|
610
|
-
return this._client.call('com.atproto.admin.updateAccountHandle', opts?.qp, data, opts);
|
|
611
|
-
}
|
|
612
|
-
updateAccountPassword(data, opts) {
|
|
613
|
-
return this._client.call('com.atproto.admin.updateAccountPassword', opts?.qp, data, opts);
|
|
614
|
-
}
|
|
615
|
-
updateAccountSigningKey(data, opts) {
|
|
616
|
-
return this._client.call('com.atproto.admin.updateAccountSigningKey', opts?.qp, data, opts);
|
|
617
|
-
}
|
|
618
|
-
updateSubjectStatus(data, opts) {
|
|
619
|
-
return this._client.call('com.atproto.admin.updateSubjectStatus', opts?.qp, data, opts);
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
exports.ComAtprotoAdminNS = ComAtprotoAdminNS;
|
|
623
|
-
class ComAtprotoIdentityNS {
|
|
624
|
-
constructor(client) {
|
|
625
|
-
Object.defineProperty(this, "_client", {
|
|
576
|
+
Object.defineProperty(this, "profile", {
|
|
626
577
|
enumerable: true,
|
|
627
578
|
configurable: true,
|
|
628
579
|
writable: true,
|
|
629
580
|
value: void 0
|
|
630
581
|
});
|
|
631
|
-
this
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
refreshIdentity(data, opts) {
|
|
637
|
-
return this._client
|
|
638
|
-
.call('com.atproto.identity.refreshIdentity', opts?.qp, data, opts)
|
|
639
|
-
.catch((e) => {
|
|
640
|
-
throw ComAtprotoIdentityRefreshIdentity.toKnownErr(e);
|
|
582
|
+
Object.defineProperty(this, "status", {
|
|
583
|
+
enumerable: true,
|
|
584
|
+
configurable: true,
|
|
585
|
+
writable: true,
|
|
586
|
+
value: void 0
|
|
641
587
|
});
|
|
588
|
+
this._client = client;
|
|
589
|
+
this.profile = new AppBskyActorProfileRecord(client);
|
|
590
|
+
this.status = new AppBskyActorStatusRecord(client);
|
|
642
591
|
}
|
|
643
|
-
|
|
644
|
-
return this._client.call('
|
|
592
|
+
getPreferences(params, opts) {
|
|
593
|
+
return this._client.call('app.bsky.actor.getPreferences', params, undefined, opts);
|
|
645
594
|
}
|
|
646
|
-
|
|
647
|
-
return this._client
|
|
648
|
-
.call('com.atproto.identity.resolveDid', params, undefined, opts)
|
|
649
|
-
.catch((e) => {
|
|
650
|
-
throw ComAtprotoIdentityResolveDid.toKnownErr(e);
|
|
651
|
-
});
|
|
595
|
+
getProfile(params, opts) {
|
|
596
|
+
return this._client.call('app.bsky.actor.getProfile', params, undefined, opts);
|
|
652
597
|
}
|
|
653
|
-
|
|
654
|
-
return this._client
|
|
655
|
-
.call('com.atproto.identity.resolveHandle', params, undefined, opts)
|
|
656
|
-
.catch((e) => {
|
|
657
|
-
throw ComAtprotoIdentityResolveHandle.toKnownErr(e);
|
|
658
|
-
});
|
|
598
|
+
getProfiles(params, opts) {
|
|
599
|
+
return this._client.call('app.bsky.actor.getProfiles', params, undefined, opts);
|
|
659
600
|
}
|
|
660
|
-
|
|
661
|
-
return this._client
|
|
662
|
-
.call('com.atproto.identity.resolveIdentity', params, undefined, opts)
|
|
663
|
-
.catch((e) => {
|
|
664
|
-
throw ComAtprotoIdentityResolveIdentity.toKnownErr(e);
|
|
665
|
-
});
|
|
601
|
+
getSuggestions(params, opts) {
|
|
602
|
+
return this._client.call('app.bsky.actor.getSuggestions', params, undefined, opts);
|
|
666
603
|
}
|
|
667
|
-
|
|
668
|
-
return this._client.call('
|
|
604
|
+
putPreferences(data, opts) {
|
|
605
|
+
return this._client.call('app.bsky.actor.putPreferences', opts?.qp, data, opts);
|
|
669
606
|
}
|
|
670
|
-
|
|
671
|
-
return this._client.call('
|
|
607
|
+
searchActors(params, opts) {
|
|
608
|
+
return this._client.call('app.bsky.actor.searchActors', params, undefined, opts);
|
|
672
609
|
}
|
|
673
|
-
|
|
674
|
-
return this._client.call('
|
|
610
|
+
searchActorsTypeahead(params, opts) {
|
|
611
|
+
return this._client.call('app.bsky.actor.searchActorsTypeahead', params, undefined, opts);
|
|
675
612
|
}
|
|
676
613
|
}
|
|
677
|
-
exports.
|
|
678
|
-
class
|
|
614
|
+
exports.AppBskyActorNS = AppBskyActorNS;
|
|
615
|
+
class AppBskyActorProfileRecord {
|
|
679
616
|
constructor(client) {
|
|
680
617
|
Object.defineProperty(this, "_client", {
|
|
681
618
|
enumerable: true,
|
|
@@ -685,31 +622,41 @@ class ComAtprotoLabelNS {
|
|
|
685
622
|
});
|
|
686
623
|
this._client = client;
|
|
687
624
|
}
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
exports.ComAtprotoLabelNS = ComAtprotoLabelNS;
|
|
693
|
-
class ComAtprotoLexiconNS {
|
|
694
|
-
constructor(client) {
|
|
695
|
-
Object.defineProperty(this, "_client", {
|
|
696
|
-
enumerable: true,
|
|
697
|
-
configurable: true,
|
|
698
|
-
writable: true,
|
|
699
|
-
value: void 0
|
|
625
|
+
async list(params) {
|
|
626
|
+
const res = await this._client.call('com.atproto.repo.listRecords', {
|
|
627
|
+
collection: 'app.bsky.actor.profile',
|
|
628
|
+
...params,
|
|
700
629
|
});
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
630
|
+
return res.data;
|
|
631
|
+
}
|
|
632
|
+
async get(params) {
|
|
633
|
+
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
634
|
+
collection: 'app.bsky.actor.profile',
|
|
635
|
+
...params,
|
|
706
636
|
});
|
|
707
|
-
|
|
708
|
-
|
|
637
|
+
return res.data;
|
|
638
|
+
}
|
|
639
|
+
async create(params, record, headers) {
|
|
640
|
+
const collection = 'app.bsky.actor.profile';
|
|
641
|
+
const res = await this._client.call('com.atproto.repo.createRecord', undefined, {
|
|
642
|
+
collection,
|
|
643
|
+
rkey: 'self',
|
|
644
|
+
...params,
|
|
645
|
+
record: { ...record, $type: collection },
|
|
646
|
+
}, { encoding: 'application/json', headers });
|
|
647
|
+
return res.data;
|
|
648
|
+
}
|
|
649
|
+
async put(params, record, headers) {
|
|
650
|
+
const collection = 'app.bsky.actor.profile';
|
|
651
|
+
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
652
|
+
return res.data;
|
|
653
|
+
}
|
|
654
|
+
async delete(params, headers) {
|
|
655
|
+
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.actor.profile', ...params }, { headers });
|
|
709
656
|
}
|
|
710
657
|
}
|
|
711
|
-
exports.
|
|
712
|
-
class
|
|
658
|
+
exports.AppBskyActorProfileRecord = AppBskyActorProfileRecord;
|
|
659
|
+
class AppBskyActorStatusRecord {
|
|
713
660
|
constructor(client) {
|
|
714
661
|
Object.defineProperty(this, "_client", {
|
|
715
662
|
enumerable: true,
|
|
@@ -721,34 +668,39 @@ class ComAtprotoLexiconSchemaRecord {
|
|
|
721
668
|
}
|
|
722
669
|
async list(params) {
|
|
723
670
|
const res = await this._client.call('com.atproto.repo.listRecords', {
|
|
724
|
-
collection: '
|
|
671
|
+
collection: 'app.bsky.actor.status',
|
|
725
672
|
...params,
|
|
726
673
|
});
|
|
727
674
|
return res.data;
|
|
728
675
|
}
|
|
729
676
|
async get(params) {
|
|
730
677
|
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
731
|
-
collection: '
|
|
678
|
+
collection: 'app.bsky.actor.status',
|
|
732
679
|
...params,
|
|
733
680
|
});
|
|
734
681
|
return res.data;
|
|
735
682
|
}
|
|
736
683
|
async create(params, record, headers) {
|
|
737
|
-
const collection = '
|
|
738
|
-
const res = await this._client.call('com.atproto.repo.createRecord', undefined, {
|
|
684
|
+
const collection = 'app.bsky.actor.status';
|
|
685
|
+
const res = await this._client.call('com.atproto.repo.createRecord', undefined, {
|
|
686
|
+
collection,
|
|
687
|
+
rkey: 'self',
|
|
688
|
+
...params,
|
|
689
|
+
record: { ...record, $type: collection },
|
|
690
|
+
}, { encoding: 'application/json', headers });
|
|
739
691
|
return res.data;
|
|
740
692
|
}
|
|
741
693
|
async put(params, record, headers) {
|
|
742
|
-
const collection = '
|
|
694
|
+
const collection = 'app.bsky.actor.status';
|
|
743
695
|
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
744
696
|
return res.data;
|
|
745
697
|
}
|
|
746
698
|
async delete(params, headers) {
|
|
747
|
-
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: '
|
|
699
|
+
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.actor.status', ...params }, { headers });
|
|
748
700
|
}
|
|
749
701
|
}
|
|
750
|
-
exports.
|
|
751
|
-
class
|
|
702
|
+
exports.AppBskyActorStatusRecord = AppBskyActorStatusRecord;
|
|
703
|
+
class AppBskyEmbedNS {
|
|
752
704
|
constructor(client) {
|
|
753
705
|
Object.defineProperty(this, "_client", {
|
|
754
706
|
enumerable: true,
|
|
@@ -758,12 +710,9 @@ class ComAtprotoModerationNS {
|
|
|
758
710
|
});
|
|
759
711
|
this._client = client;
|
|
760
712
|
}
|
|
761
|
-
createReport(data, opts) {
|
|
762
|
-
return this._client.call('com.atproto.moderation.createReport', opts?.qp, data, opts);
|
|
763
|
-
}
|
|
764
713
|
}
|
|
765
|
-
exports.
|
|
766
|
-
class
|
|
714
|
+
exports.AppBskyEmbedNS = AppBskyEmbedNS;
|
|
715
|
+
class AppBskyFeedNS {
|
|
767
716
|
constructor(client) {
|
|
768
717
|
Object.defineProperty(this, "_client", {
|
|
769
718
|
enumerable: true,
|
|
@@ -771,192 +720,135 @@ class ComAtprotoRepoNS {
|
|
|
771
720
|
writable: true,
|
|
772
721
|
value: void 0
|
|
773
722
|
});
|
|
774
|
-
this
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
.catch((e) => {
|
|
780
|
-
throw ComAtprotoRepoApplyWrites.toKnownErr(e);
|
|
723
|
+
Object.defineProperty(this, "generator", {
|
|
724
|
+
enumerable: true,
|
|
725
|
+
configurable: true,
|
|
726
|
+
writable: true,
|
|
727
|
+
value: void 0
|
|
781
728
|
});
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
throw ComAtprotoRepoCreateRecord.toKnownErr(e);
|
|
729
|
+
Object.defineProperty(this, "like", {
|
|
730
|
+
enumerable: true,
|
|
731
|
+
configurable: true,
|
|
732
|
+
writable: true,
|
|
733
|
+
value: void 0
|
|
788
734
|
});
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
throw ComAtprotoRepoDeleteRecord.toKnownErr(e);
|
|
735
|
+
Object.defineProperty(this, "post", {
|
|
736
|
+
enumerable: true,
|
|
737
|
+
configurable: true,
|
|
738
|
+
writable: true,
|
|
739
|
+
value: void 0
|
|
795
740
|
});
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
return this._client
|
|
802
|
-
.call('com.atproto.repo.getRecord', params, undefined, opts)
|
|
803
|
-
.catch((e) => {
|
|
804
|
-
throw ComAtprotoRepoGetRecord.toKnownErr(e);
|
|
741
|
+
Object.defineProperty(this, "postgate", {
|
|
742
|
+
enumerable: true,
|
|
743
|
+
configurable: true,
|
|
744
|
+
writable: true,
|
|
745
|
+
value: void 0
|
|
805
746
|
});
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
return this._client.call('com.atproto.repo.listMissingBlobs', params, undefined, opts);
|
|
812
|
-
}
|
|
813
|
-
listRecords(params, opts) {
|
|
814
|
-
return this._client.call('com.atproto.repo.listRecords', params, undefined, opts);
|
|
815
|
-
}
|
|
816
|
-
putRecord(data, opts) {
|
|
817
|
-
return this._client
|
|
818
|
-
.call('com.atproto.repo.putRecord', opts?.qp, data, opts)
|
|
819
|
-
.catch((e) => {
|
|
820
|
-
throw ComAtprotoRepoPutRecord.toKnownErr(e);
|
|
747
|
+
Object.defineProperty(this, "repost", {
|
|
748
|
+
enumerable: true,
|
|
749
|
+
configurable: true,
|
|
750
|
+
writable: true,
|
|
751
|
+
value: void 0
|
|
821
752
|
});
|
|
822
|
-
|
|
823
|
-
uploadBlob(data, opts) {
|
|
824
|
-
return this._client.call('com.atproto.repo.uploadBlob', opts?.qp, data, opts);
|
|
825
|
-
}
|
|
826
|
-
}
|
|
827
|
-
exports.ComAtprotoRepoNS = ComAtprotoRepoNS;
|
|
828
|
-
class ComAtprotoServerNS {
|
|
829
|
-
constructor(client) {
|
|
830
|
-
Object.defineProperty(this, "_client", {
|
|
753
|
+
Object.defineProperty(this, "threadgate", {
|
|
831
754
|
enumerable: true,
|
|
832
755
|
configurable: true,
|
|
833
756
|
writable: true,
|
|
834
757
|
value: void 0
|
|
835
758
|
});
|
|
836
759
|
this._client = client;
|
|
760
|
+
this.generator = new AppBskyFeedGeneratorRecord(client);
|
|
761
|
+
this.like = new AppBskyFeedLikeRecord(client);
|
|
762
|
+
this.post = new AppBskyFeedPostRecord(client);
|
|
763
|
+
this.postgate = new AppBskyFeedPostgateRecord(client);
|
|
764
|
+
this.repost = new AppBskyFeedRepostRecord(client);
|
|
765
|
+
this.threadgate = new AppBskyFeedThreadgateRecord(client);
|
|
837
766
|
}
|
|
838
|
-
|
|
839
|
-
return this._client.call('
|
|
840
|
-
}
|
|
841
|
-
checkAccountStatus(params, opts) {
|
|
842
|
-
return this._client.call('com.atproto.server.checkAccountStatus', params, undefined, opts);
|
|
843
|
-
}
|
|
844
|
-
confirmEmail(data, opts) {
|
|
845
|
-
return this._client
|
|
846
|
-
.call('com.atproto.server.confirmEmail', opts?.qp, data, opts)
|
|
847
|
-
.catch((e) => {
|
|
848
|
-
throw ComAtprotoServerConfirmEmail.toKnownErr(e);
|
|
849
|
-
});
|
|
767
|
+
describeFeedGenerator(params, opts) {
|
|
768
|
+
return this._client.call('app.bsky.feed.describeFeedGenerator', params, undefined, opts);
|
|
850
769
|
}
|
|
851
|
-
|
|
852
|
-
return this._client
|
|
853
|
-
.call('com.atproto.server.createAccount', opts?.qp, data, opts)
|
|
854
|
-
.catch((e) => {
|
|
855
|
-
throw ComAtprotoServerCreateAccount.toKnownErr(e);
|
|
856
|
-
});
|
|
770
|
+
getActorFeeds(params, opts) {
|
|
771
|
+
return this._client.call('app.bsky.feed.getActorFeeds', params, undefined, opts);
|
|
857
772
|
}
|
|
858
|
-
|
|
773
|
+
getActorLikes(params, opts) {
|
|
859
774
|
return this._client
|
|
860
|
-
.call('
|
|
775
|
+
.call('app.bsky.feed.getActorLikes', params, undefined, opts)
|
|
861
776
|
.catch((e) => {
|
|
862
|
-
throw
|
|
777
|
+
throw AppBskyFeedGetActorLikes.toKnownErr(e);
|
|
863
778
|
});
|
|
864
779
|
}
|
|
865
|
-
|
|
866
|
-
return this._client.call('com.atproto.server.createInviteCode', opts?.qp, data, opts);
|
|
867
|
-
}
|
|
868
|
-
createInviteCodes(data, opts) {
|
|
869
|
-
return this._client.call('com.atproto.server.createInviteCodes', opts?.qp, data, opts);
|
|
870
|
-
}
|
|
871
|
-
createSession(data, opts) {
|
|
780
|
+
getAuthorFeed(params, opts) {
|
|
872
781
|
return this._client
|
|
873
|
-
.call('
|
|
782
|
+
.call('app.bsky.feed.getAuthorFeed', params, undefined, opts)
|
|
874
783
|
.catch((e) => {
|
|
875
|
-
throw
|
|
784
|
+
throw AppBskyFeedGetAuthorFeed.toKnownErr(e);
|
|
876
785
|
});
|
|
877
786
|
}
|
|
878
|
-
|
|
879
|
-
return this._client.call('com.atproto.server.deactivateAccount', opts?.qp, data, opts);
|
|
880
|
-
}
|
|
881
|
-
deleteAccount(data, opts) {
|
|
787
|
+
getFeed(params, opts) {
|
|
882
788
|
return this._client
|
|
883
|
-
.call('
|
|
789
|
+
.call('app.bsky.feed.getFeed', params, undefined, opts)
|
|
884
790
|
.catch((e) => {
|
|
885
|
-
throw
|
|
791
|
+
throw AppBskyFeedGetFeed.toKnownErr(e);
|
|
886
792
|
});
|
|
887
793
|
}
|
|
888
|
-
|
|
889
|
-
return this._client.call('
|
|
890
|
-
}
|
|
891
|
-
describeServer(params, opts) {
|
|
892
|
-
return this._client.call('com.atproto.server.describeServer', params, undefined, opts);
|
|
794
|
+
getFeedGenerator(params, opts) {
|
|
795
|
+
return this._client.call('app.bsky.feed.getFeedGenerator', params, undefined, opts);
|
|
893
796
|
}
|
|
894
|
-
|
|
895
|
-
return this._client
|
|
896
|
-
.call('com.atproto.server.getAccountInviteCodes', params, undefined, opts)
|
|
897
|
-
.catch((e) => {
|
|
898
|
-
throw ComAtprotoServerGetAccountInviteCodes.toKnownErr(e);
|
|
899
|
-
});
|
|
797
|
+
getFeedGenerators(params, opts) {
|
|
798
|
+
return this._client.call('app.bsky.feed.getFeedGenerators', params, undefined, opts);
|
|
900
799
|
}
|
|
901
|
-
|
|
800
|
+
getFeedSkeleton(params, opts) {
|
|
902
801
|
return this._client
|
|
903
|
-
.call('
|
|
802
|
+
.call('app.bsky.feed.getFeedSkeleton', params, undefined, opts)
|
|
904
803
|
.catch((e) => {
|
|
905
|
-
throw
|
|
804
|
+
throw AppBskyFeedGetFeedSkeleton.toKnownErr(e);
|
|
906
805
|
});
|
|
907
806
|
}
|
|
908
|
-
|
|
909
|
-
return this._client.call('
|
|
807
|
+
getLikes(params, opts) {
|
|
808
|
+
return this._client.call('app.bsky.feed.getLikes', params, undefined, opts);
|
|
910
809
|
}
|
|
911
|
-
|
|
810
|
+
getListFeed(params, opts) {
|
|
912
811
|
return this._client
|
|
913
|
-
.call('
|
|
812
|
+
.call('app.bsky.feed.getListFeed', params, undefined, opts)
|
|
914
813
|
.catch((e) => {
|
|
915
|
-
throw
|
|
814
|
+
throw AppBskyFeedGetListFeed.toKnownErr(e);
|
|
916
815
|
});
|
|
917
816
|
}
|
|
918
|
-
|
|
817
|
+
getPostThread(params, opts) {
|
|
919
818
|
return this._client
|
|
920
|
-
.call('
|
|
819
|
+
.call('app.bsky.feed.getPostThread', params, undefined, opts)
|
|
921
820
|
.catch((e) => {
|
|
922
|
-
throw
|
|
821
|
+
throw AppBskyFeedGetPostThread.toKnownErr(e);
|
|
923
822
|
});
|
|
924
823
|
}
|
|
925
|
-
|
|
926
|
-
return this._client.call('
|
|
824
|
+
getPosts(params, opts) {
|
|
825
|
+
return this._client.call('app.bsky.feed.getPosts', params, undefined, opts);
|
|
927
826
|
}
|
|
928
|
-
|
|
929
|
-
return this._client.call('
|
|
827
|
+
getQuotes(params, opts) {
|
|
828
|
+
return this._client.call('app.bsky.feed.getQuotes', params, undefined, opts);
|
|
930
829
|
}
|
|
931
|
-
|
|
932
|
-
return this._client.call('
|
|
830
|
+
getRepostedBy(params, opts) {
|
|
831
|
+
return this._client.call('app.bsky.feed.getRepostedBy', params, undefined, opts);
|
|
933
832
|
}
|
|
934
|
-
|
|
935
|
-
return this._client.call('
|
|
833
|
+
getSuggestedFeeds(params, opts) {
|
|
834
|
+
return this._client.call('app.bsky.feed.getSuggestedFeeds', params, undefined, opts);
|
|
936
835
|
}
|
|
937
|
-
|
|
938
|
-
return this._client.call('
|
|
836
|
+
getTimeline(params, opts) {
|
|
837
|
+
return this._client.call('app.bsky.feed.getTimeline', params, undefined, opts);
|
|
939
838
|
}
|
|
940
|
-
|
|
839
|
+
searchPosts(params, opts) {
|
|
941
840
|
return this._client
|
|
942
|
-
.call('
|
|
841
|
+
.call('app.bsky.feed.searchPosts', params, undefined, opts)
|
|
943
842
|
.catch((e) => {
|
|
944
|
-
throw
|
|
843
|
+
throw AppBskyFeedSearchPosts.toKnownErr(e);
|
|
945
844
|
});
|
|
946
845
|
}
|
|
947
|
-
|
|
948
|
-
return this._client.call('
|
|
949
|
-
}
|
|
950
|
-
updateEmail(data, opts) {
|
|
951
|
-
return this._client
|
|
952
|
-
.call('com.atproto.server.updateEmail', opts?.qp, data, opts)
|
|
953
|
-
.catch((e) => {
|
|
954
|
-
throw ComAtprotoServerUpdateEmail.toKnownErr(e);
|
|
955
|
-
});
|
|
846
|
+
sendInteractions(data, opts) {
|
|
847
|
+
return this._client.call('app.bsky.feed.sendInteractions', opts?.qp, data, opts);
|
|
956
848
|
}
|
|
957
849
|
}
|
|
958
|
-
exports.
|
|
959
|
-
class
|
|
850
|
+
exports.AppBskyFeedNS = AppBskyFeedNS;
|
|
851
|
+
class AppBskyFeedGeneratorRecord {
|
|
960
852
|
constructor(client) {
|
|
961
853
|
Object.defineProperty(this, "_client", {
|
|
962
854
|
enumerable: true,
|
|
@@ -966,94 +858,75 @@ class ComAtprotoSyncNS {
|
|
|
966
858
|
});
|
|
967
859
|
this._client = client;
|
|
968
860
|
}
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
throw ComAtprotoSyncGetBlob.toKnownErr(e);
|
|
861
|
+
async list(params) {
|
|
862
|
+
const res = await this._client.call('com.atproto.repo.listRecords', {
|
|
863
|
+
collection: 'app.bsky.feed.generator',
|
|
864
|
+
...params,
|
|
974
865
|
});
|
|
866
|
+
return res.data;
|
|
975
867
|
}
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
throw ComAtprotoSyncGetBlocks.toKnownErr(e);
|
|
868
|
+
async get(params) {
|
|
869
|
+
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
870
|
+
collection: 'app.bsky.feed.generator',
|
|
871
|
+
...params,
|
|
981
872
|
});
|
|
873
|
+
return res.data;
|
|
982
874
|
}
|
|
983
|
-
|
|
984
|
-
|
|
875
|
+
async create(params, record, headers) {
|
|
876
|
+
const collection = 'app.bsky.feed.generator';
|
|
877
|
+
const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
878
|
+
return res.data;
|
|
985
879
|
}
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
throw ComAtprotoSyncGetHead.toKnownErr(e);
|
|
991
|
-
});
|
|
880
|
+
async put(params, record, headers) {
|
|
881
|
+
const collection = 'app.bsky.feed.generator';
|
|
882
|
+
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
883
|
+
return res.data;
|
|
992
884
|
}
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
885
|
+
async delete(params, headers) {
|
|
886
|
+
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.feed.generator', ...params }, { headers });
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
exports.AppBskyFeedGeneratorRecord = AppBskyFeedGeneratorRecord;
|
|
890
|
+
class AppBskyFeedLikeRecord {
|
|
891
|
+
constructor(client) {
|
|
892
|
+
Object.defineProperty(this, "_client", {
|
|
893
|
+
enumerable: true,
|
|
894
|
+
configurable: true,
|
|
895
|
+
writable: true,
|
|
896
|
+
value: void 0
|
|
998
897
|
});
|
|
898
|
+
this._client = client;
|
|
999
899
|
}
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
throw ComAtprotoSyncGetLatestCommit.toKnownErr(e);
|
|
900
|
+
async list(params) {
|
|
901
|
+
const res = await this._client.call('com.atproto.repo.listRecords', {
|
|
902
|
+
collection: 'app.bsky.feed.like',
|
|
903
|
+
...params,
|
|
1005
904
|
});
|
|
905
|
+
return res.data;
|
|
1006
906
|
}
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
throw ComAtprotoSyncGetRecord.toKnownErr(e);
|
|
907
|
+
async get(params) {
|
|
908
|
+
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
909
|
+
collection: 'app.bsky.feed.like',
|
|
910
|
+
...params,
|
|
1012
911
|
});
|
|
912
|
+
return res.data;
|
|
1013
913
|
}
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
throw ComAtprotoSyncGetRepo.toKnownErr(e);
|
|
1019
|
-
});
|
|
1020
|
-
}
|
|
1021
|
-
getRepoStatus(params, opts) {
|
|
1022
|
-
return this._client
|
|
1023
|
-
.call('com.atproto.sync.getRepoStatus', params, undefined, opts)
|
|
1024
|
-
.catch((e) => {
|
|
1025
|
-
throw ComAtprotoSyncGetRepoStatus.toKnownErr(e);
|
|
1026
|
-
});
|
|
1027
|
-
}
|
|
1028
|
-
listBlobs(params, opts) {
|
|
1029
|
-
return this._client
|
|
1030
|
-
.call('com.atproto.sync.listBlobs', params, undefined, opts)
|
|
1031
|
-
.catch((e) => {
|
|
1032
|
-
throw ComAtprotoSyncListBlobs.toKnownErr(e);
|
|
1033
|
-
});
|
|
1034
|
-
}
|
|
1035
|
-
listHosts(params, opts) {
|
|
1036
|
-
return this._client.call('com.atproto.sync.listHosts', params, undefined, opts);
|
|
1037
|
-
}
|
|
1038
|
-
listRepos(params, opts) {
|
|
1039
|
-
return this._client.call('com.atproto.sync.listRepos', params, undefined, opts);
|
|
1040
|
-
}
|
|
1041
|
-
listReposByCollection(params, opts) {
|
|
1042
|
-
return this._client.call('com.atproto.sync.listReposByCollection', params, undefined, opts);
|
|
914
|
+
async create(params, record, headers) {
|
|
915
|
+
const collection = 'app.bsky.feed.like';
|
|
916
|
+
const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
917
|
+
return res.data;
|
|
1043
918
|
}
|
|
1044
|
-
|
|
1045
|
-
|
|
919
|
+
async put(params, record, headers) {
|
|
920
|
+
const collection = 'app.bsky.feed.like';
|
|
921
|
+
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
922
|
+
return res.data;
|
|
1046
923
|
}
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
.call('com.atproto.sync.requestCrawl', opts?.qp, data, opts)
|
|
1050
|
-
.catch((e) => {
|
|
1051
|
-
throw ComAtprotoSyncRequestCrawl.toKnownErr(e);
|
|
1052
|
-
});
|
|
924
|
+
async delete(params, headers) {
|
|
925
|
+
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.feed.like', ...params }, { headers });
|
|
1053
926
|
}
|
|
1054
927
|
}
|
|
1055
|
-
exports.
|
|
1056
|
-
class
|
|
928
|
+
exports.AppBskyFeedLikeRecord = AppBskyFeedLikeRecord;
|
|
929
|
+
class AppBskyFeedPostRecord {
|
|
1057
930
|
constructor(client) {
|
|
1058
931
|
Object.defineProperty(this, "_client", {
|
|
1059
932
|
enumerable: true,
|
|
@@ -1063,28 +936,36 @@ class ComAtprotoTempNS {
|
|
|
1063
936
|
});
|
|
1064
937
|
this._client = client;
|
|
1065
938
|
}
|
|
1066
|
-
|
|
1067
|
-
|
|
939
|
+
async list(params) {
|
|
940
|
+
const res = await this._client.call('com.atproto.repo.listRecords', {
|
|
941
|
+
collection: 'app.bsky.feed.post',
|
|
942
|
+
...params,
|
|
943
|
+
});
|
|
944
|
+
return res.data;
|
|
1068
945
|
}
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
throw ComAtprotoTempCheckHandleAvailability.toKnownErr(e);
|
|
946
|
+
async get(params) {
|
|
947
|
+
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
948
|
+
collection: 'app.bsky.feed.post',
|
|
949
|
+
...params,
|
|
1074
950
|
});
|
|
951
|
+
return res.data;
|
|
1075
952
|
}
|
|
1076
|
-
|
|
1077
|
-
|
|
953
|
+
async create(params, record, headers) {
|
|
954
|
+
const collection = 'app.bsky.feed.post';
|
|
955
|
+
const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
956
|
+
return res.data;
|
|
1078
957
|
}
|
|
1079
|
-
|
|
1080
|
-
|
|
958
|
+
async put(params, record, headers) {
|
|
959
|
+
const collection = 'app.bsky.feed.post';
|
|
960
|
+
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
961
|
+
return res.data;
|
|
1081
962
|
}
|
|
1082
|
-
|
|
1083
|
-
|
|
963
|
+
async delete(params, headers) {
|
|
964
|
+
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.feed.post', ...params }, { headers });
|
|
1084
965
|
}
|
|
1085
966
|
}
|
|
1086
|
-
exports.
|
|
1087
|
-
class
|
|
967
|
+
exports.AppBskyFeedPostRecord = AppBskyFeedPostRecord;
|
|
968
|
+
class AppBskyFeedPostgateRecord {
|
|
1088
969
|
constructor(client) {
|
|
1089
970
|
Object.defineProperty(this, "_client", {
|
|
1090
971
|
enumerable: true,
|
|
@@ -1092,18 +973,38 @@ class AppNS {
|
|
|
1092
973
|
writable: true,
|
|
1093
974
|
value: void 0
|
|
1094
975
|
});
|
|
1095
|
-
Object.defineProperty(this, "bsky", {
|
|
1096
|
-
enumerable: true,
|
|
1097
|
-
configurable: true,
|
|
1098
|
-
writable: true,
|
|
1099
|
-
value: void 0
|
|
1100
|
-
});
|
|
1101
976
|
this._client = client;
|
|
1102
|
-
|
|
977
|
+
}
|
|
978
|
+
async list(params) {
|
|
979
|
+
const res = await this._client.call('com.atproto.repo.listRecords', {
|
|
980
|
+
collection: 'app.bsky.feed.postgate',
|
|
981
|
+
...params,
|
|
982
|
+
});
|
|
983
|
+
return res.data;
|
|
984
|
+
}
|
|
985
|
+
async get(params) {
|
|
986
|
+
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
987
|
+
collection: 'app.bsky.feed.postgate',
|
|
988
|
+
...params,
|
|
989
|
+
});
|
|
990
|
+
return res.data;
|
|
991
|
+
}
|
|
992
|
+
async create(params, record, headers) {
|
|
993
|
+
const collection = 'app.bsky.feed.postgate';
|
|
994
|
+
const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
995
|
+
return res.data;
|
|
996
|
+
}
|
|
997
|
+
async put(params, record, headers) {
|
|
998
|
+
const collection = 'app.bsky.feed.postgate';
|
|
999
|
+
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1000
|
+
return res.data;
|
|
1001
|
+
}
|
|
1002
|
+
async delete(params, headers) {
|
|
1003
|
+
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.feed.postgate', ...params }, { headers });
|
|
1103
1004
|
}
|
|
1104
1005
|
}
|
|
1105
|
-
exports.
|
|
1106
|
-
class
|
|
1006
|
+
exports.AppBskyFeedPostgateRecord = AppBskyFeedPostgateRecord;
|
|
1007
|
+
class AppBskyFeedRepostRecord {
|
|
1107
1008
|
constructor(client) {
|
|
1108
1009
|
Object.defineProperty(this, "_client", {
|
|
1109
1010
|
enumerable: true,
|
|
@@ -1111,121 +1012,211 @@ class AppBskyNS {
|
|
|
1111
1012
|
writable: true,
|
|
1112
1013
|
value: void 0
|
|
1113
1014
|
});
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1015
|
+
this._client = client;
|
|
1016
|
+
}
|
|
1017
|
+
async list(params) {
|
|
1018
|
+
const res = await this._client.call('com.atproto.repo.listRecords', {
|
|
1019
|
+
collection: 'app.bsky.feed.repost',
|
|
1020
|
+
...params,
|
|
1119
1021
|
});
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1022
|
+
return res.data;
|
|
1023
|
+
}
|
|
1024
|
+
async get(params) {
|
|
1025
|
+
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
1026
|
+
collection: 'app.bsky.feed.repost',
|
|
1027
|
+
...params,
|
|
1125
1028
|
});
|
|
1126
|
-
|
|
1029
|
+
return res.data;
|
|
1030
|
+
}
|
|
1031
|
+
async create(params, record, headers) {
|
|
1032
|
+
const collection = 'app.bsky.feed.repost';
|
|
1033
|
+
const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1034
|
+
return res.data;
|
|
1035
|
+
}
|
|
1036
|
+
async put(params, record, headers) {
|
|
1037
|
+
const collection = 'app.bsky.feed.repost';
|
|
1038
|
+
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1039
|
+
return res.data;
|
|
1040
|
+
}
|
|
1041
|
+
async delete(params, headers) {
|
|
1042
|
+
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.feed.repost', ...params }, { headers });
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1045
|
+
exports.AppBskyFeedRepostRecord = AppBskyFeedRepostRecord;
|
|
1046
|
+
class AppBskyFeedThreadgateRecord {
|
|
1047
|
+
constructor(client) {
|
|
1048
|
+
Object.defineProperty(this, "_client", {
|
|
1127
1049
|
enumerable: true,
|
|
1128
1050
|
configurable: true,
|
|
1129
1051
|
writable: true,
|
|
1130
1052
|
value: void 0
|
|
1131
1053
|
});
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1054
|
+
this._client = client;
|
|
1055
|
+
}
|
|
1056
|
+
async list(params) {
|
|
1057
|
+
const res = await this._client.call('com.atproto.repo.listRecords', {
|
|
1058
|
+
collection: 'app.bsky.feed.threadgate',
|
|
1059
|
+
...params,
|
|
1137
1060
|
});
|
|
1138
|
-
|
|
1061
|
+
return res.data;
|
|
1062
|
+
}
|
|
1063
|
+
async get(params) {
|
|
1064
|
+
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
1065
|
+
collection: 'app.bsky.feed.threadgate',
|
|
1066
|
+
...params,
|
|
1067
|
+
});
|
|
1068
|
+
return res.data;
|
|
1069
|
+
}
|
|
1070
|
+
async create(params, record, headers) {
|
|
1071
|
+
const collection = 'app.bsky.feed.threadgate';
|
|
1072
|
+
const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1073
|
+
return res.data;
|
|
1074
|
+
}
|
|
1075
|
+
async put(params, record, headers) {
|
|
1076
|
+
const collection = 'app.bsky.feed.threadgate';
|
|
1077
|
+
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1078
|
+
return res.data;
|
|
1079
|
+
}
|
|
1080
|
+
async delete(params, headers) {
|
|
1081
|
+
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.feed.threadgate', ...params }, { headers });
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
exports.AppBskyFeedThreadgateRecord = AppBskyFeedThreadgateRecord;
|
|
1085
|
+
class AppBskyGraphNS {
|
|
1086
|
+
constructor(client) {
|
|
1087
|
+
Object.defineProperty(this, "_client", {
|
|
1139
1088
|
enumerable: true,
|
|
1140
1089
|
configurable: true,
|
|
1141
1090
|
writable: true,
|
|
1142
1091
|
value: void 0
|
|
1143
1092
|
});
|
|
1144
|
-
Object.defineProperty(this, "
|
|
1093
|
+
Object.defineProperty(this, "block", {
|
|
1145
1094
|
enumerable: true,
|
|
1146
1095
|
configurable: true,
|
|
1147
1096
|
writable: true,
|
|
1148
1097
|
value: void 0
|
|
1149
1098
|
});
|
|
1150
|
-
Object.defineProperty(this, "
|
|
1099
|
+
Object.defineProperty(this, "follow", {
|
|
1151
1100
|
enumerable: true,
|
|
1152
1101
|
configurable: true,
|
|
1153
1102
|
writable: true,
|
|
1154
1103
|
value: void 0
|
|
1155
1104
|
});
|
|
1156
|
-
Object.defineProperty(this, "
|
|
1105
|
+
Object.defineProperty(this, "list", {
|
|
1157
1106
|
enumerable: true,
|
|
1158
1107
|
configurable: true,
|
|
1159
1108
|
writable: true,
|
|
1160
1109
|
value: void 0
|
|
1161
1110
|
});
|
|
1162
|
-
Object.defineProperty(this, "
|
|
1111
|
+
Object.defineProperty(this, "listblock", {
|
|
1163
1112
|
enumerable: true,
|
|
1164
1113
|
configurable: true,
|
|
1165
1114
|
writable: true,
|
|
1166
1115
|
value: void 0
|
|
1167
1116
|
});
|
|
1168
|
-
this
|
|
1169
|
-
this.actor = new AppBskyActorNS(client);
|
|
1170
|
-
this.embed = new AppBskyEmbedNS(client);
|
|
1171
|
-
this.feed = new AppBskyFeedNS(client);
|
|
1172
|
-
this.graph = new AppBskyGraphNS(client);
|
|
1173
|
-
this.labeler = new AppBskyLabelerNS(client);
|
|
1174
|
-
this.notification = new AppBskyNotificationNS(client);
|
|
1175
|
-
this.richtext = new AppBskyRichtextNS(client);
|
|
1176
|
-
this.unspecced = new AppBskyUnspeccedNS(client);
|
|
1177
|
-
this.video = new AppBskyVideoNS(client);
|
|
1178
|
-
}
|
|
1179
|
-
}
|
|
1180
|
-
exports.AppBskyNS = AppBskyNS;
|
|
1181
|
-
class AppBskyActorNS {
|
|
1182
|
-
constructor(client) {
|
|
1183
|
-
Object.defineProperty(this, "_client", {
|
|
1117
|
+
Object.defineProperty(this, "listitem", {
|
|
1184
1118
|
enumerable: true,
|
|
1185
1119
|
configurable: true,
|
|
1186
1120
|
writable: true,
|
|
1187
1121
|
value: void 0
|
|
1188
1122
|
});
|
|
1189
|
-
Object.defineProperty(this, "
|
|
1123
|
+
Object.defineProperty(this, "starterpack", {
|
|
1190
1124
|
enumerable: true,
|
|
1191
1125
|
configurable: true,
|
|
1192
1126
|
writable: true,
|
|
1193
1127
|
value: void 0
|
|
1194
1128
|
});
|
|
1195
|
-
Object.defineProperty(this, "
|
|
1129
|
+
Object.defineProperty(this, "verification", {
|
|
1196
1130
|
enumerable: true,
|
|
1197
1131
|
configurable: true,
|
|
1198
1132
|
writable: true,
|
|
1199
1133
|
value: void 0
|
|
1200
1134
|
});
|
|
1201
1135
|
this._client = client;
|
|
1202
|
-
this.
|
|
1203
|
-
this.
|
|
1136
|
+
this.block = new AppBskyGraphBlockRecord(client);
|
|
1137
|
+
this.follow = new AppBskyGraphFollowRecord(client);
|
|
1138
|
+
this.list = new AppBskyGraphListRecord(client);
|
|
1139
|
+
this.listblock = new AppBskyGraphListblockRecord(client);
|
|
1140
|
+
this.listitem = new AppBskyGraphListitemRecord(client);
|
|
1141
|
+
this.starterpack = new AppBskyGraphStarterpackRecord(client);
|
|
1142
|
+
this.verification = new AppBskyGraphVerificationRecord(client);
|
|
1204
1143
|
}
|
|
1205
|
-
|
|
1206
|
-
return this._client.call('app.bsky.
|
|
1144
|
+
getActorStarterPacks(params, opts) {
|
|
1145
|
+
return this._client.call('app.bsky.graph.getActorStarterPacks', params, undefined, opts);
|
|
1207
1146
|
}
|
|
1208
|
-
|
|
1209
|
-
return this._client.call('app.bsky.
|
|
1147
|
+
getBlocks(params, opts) {
|
|
1148
|
+
return this._client.call('app.bsky.graph.getBlocks', params, undefined, opts);
|
|
1210
1149
|
}
|
|
1211
|
-
|
|
1212
|
-
return this._client.call('app.bsky.
|
|
1150
|
+
getFollowers(params, opts) {
|
|
1151
|
+
return this._client.call('app.bsky.graph.getFollowers', params, undefined, opts);
|
|
1213
1152
|
}
|
|
1214
|
-
|
|
1215
|
-
return this._client.call('app.bsky.
|
|
1153
|
+
getFollows(params, opts) {
|
|
1154
|
+
return this._client.call('app.bsky.graph.getFollows', params, undefined, opts);
|
|
1216
1155
|
}
|
|
1217
|
-
|
|
1218
|
-
return this._client.call('app.bsky.
|
|
1156
|
+
getKnownFollowers(params, opts) {
|
|
1157
|
+
return this._client.call('app.bsky.graph.getKnownFollowers', params, undefined, opts);
|
|
1219
1158
|
}
|
|
1220
|
-
|
|
1221
|
-
return this._client.call('app.bsky.
|
|
1159
|
+
getList(params, opts) {
|
|
1160
|
+
return this._client.call('app.bsky.graph.getList', params, undefined, opts);
|
|
1222
1161
|
}
|
|
1223
|
-
|
|
1224
|
-
return this._client.call('app.bsky.
|
|
1162
|
+
getListBlocks(params, opts) {
|
|
1163
|
+
return this._client.call('app.bsky.graph.getListBlocks', params, undefined, opts);
|
|
1164
|
+
}
|
|
1165
|
+
getListMutes(params, opts) {
|
|
1166
|
+
return this._client.call('app.bsky.graph.getListMutes', params, undefined, opts);
|
|
1167
|
+
}
|
|
1168
|
+
getLists(params, opts) {
|
|
1169
|
+
return this._client.call('app.bsky.graph.getLists', params, undefined, opts);
|
|
1170
|
+
}
|
|
1171
|
+
getListsWithMembership(params, opts) {
|
|
1172
|
+
return this._client.call('app.bsky.graph.getListsWithMembership', params, undefined, opts);
|
|
1173
|
+
}
|
|
1174
|
+
getMutes(params, opts) {
|
|
1175
|
+
return this._client.call('app.bsky.graph.getMutes', params, undefined, opts);
|
|
1176
|
+
}
|
|
1177
|
+
getRelationships(params, opts) {
|
|
1178
|
+
return this._client
|
|
1179
|
+
.call('app.bsky.graph.getRelationships', params, undefined, opts)
|
|
1180
|
+
.catch((e) => {
|
|
1181
|
+
throw AppBskyGraphGetRelationships.toKnownErr(e);
|
|
1182
|
+
});
|
|
1183
|
+
}
|
|
1184
|
+
getStarterPack(params, opts) {
|
|
1185
|
+
return this._client.call('app.bsky.graph.getStarterPack', params, undefined, opts);
|
|
1186
|
+
}
|
|
1187
|
+
getStarterPacks(params, opts) {
|
|
1188
|
+
return this._client.call('app.bsky.graph.getStarterPacks', params, undefined, opts);
|
|
1189
|
+
}
|
|
1190
|
+
getStarterPacksWithMembership(params, opts) {
|
|
1191
|
+
return this._client.call('app.bsky.graph.getStarterPacksWithMembership', params, undefined, opts);
|
|
1192
|
+
}
|
|
1193
|
+
getSuggestedFollowsByActor(params, opts) {
|
|
1194
|
+
return this._client.call('app.bsky.graph.getSuggestedFollowsByActor', params, undefined, opts);
|
|
1195
|
+
}
|
|
1196
|
+
muteActor(data, opts) {
|
|
1197
|
+
return this._client.call('app.bsky.graph.muteActor', opts?.qp, data, opts);
|
|
1198
|
+
}
|
|
1199
|
+
muteActorList(data, opts) {
|
|
1200
|
+
return this._client.call('app.bsky.graph.muteActorList', opts?.qp, data, opts);
|
|
1201
|
+
}
|
|
1202
|
+
muteThread(data, opts) {
|
|
1203
|
+
return this._client.call('app.bsky.graph.muteThread', opts?.qp, data, opts);
|
|
1204
|
+
}
|
|
1205
|
+
searchStarterPacks(params, opts) {
|
|
1206
|
+
return this._client.call('app.bsky.graph.searchStarterPacks', params, undefined, opts);
|
|
1207
|
+
}
|
|
1208
|
+
unmuteActor(data, opts) {
|
|
1209
|
+
return this._client.call('app.bsky.graph.unmuteActor', opts?.qp, data, opts);
|
|
1210
|
+
}
|
|
1211
|
+
unmuteActorList(data, opts) {
|
|
1212
|
+
return this._client.call('app.bsky.graph.unmuteActorList', opts?.qp, data, opts);
|
|
1213
|
+
}
|
|
1214
|
+
unmuteThread(data, opts) {
|
|
1215
|
+
return this._client.call('app.bsky.graph.unmuteThread', opts?.qp, data, opts);
|
|
1225
1216
|
}
|
|
1226
1217
|
}
|
|
1227
|
-
exports.
|
|
1228
|
-
class
|
|
1218
|
+
exports.AppBskyGraphNS = AppBskyGraphNS;
|
|
1219
|
+
class AppBskyGraphBlockRecord {
|
|
1229
1220
|
constructor(client) {
|
|
1230
1221
|
Object.defineProperty(this, "_client", {
|
|
1231
1222
|
enumerable: true,
|
|
@@ -1237,39 +1228,34 @@ class AppBskyActorProfileRecord {
|
|
|
1237
1228
|
}
|
|
1238
1229
|
async list(params) {
|
|
1239
1230
|
const res = await this._client.call('com.atproto.repo.listRecords', {
|
|
1240
|
-
collection: 'app.bsky.
|
|
1231
|
+
collection: 'app.bsky.graph.block',
|
|
1241
1232
|
...params,
|
|
1242
1233
|
});
|
|
1243
1234
|
return res.data;
|
|
1244
1235
|
}
|
|
1245
1236
|
async get(params) {
|
|
1246
1237
|
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
1247
|
-
collection: 'app.bsky.
|
|
1238
|
+
collection: 'app.bsky.graph.block',
|
|
1248
1239
|
...params,
|
|
1249
1240
|
});
|
|
1250
1241
|
return res.data;
|
|
1251
1242
|
}
|
|
1252
1243
|
async create(params, record, headers) {
|
|
1253
|
-
const collection = 'app.bsky.
|
|
1254
|
-
const res = await this._client.call('com.atproto.repo.createRecord', undefined, {
|
|
1255
|
-
collection,
|
|
1256
|
-
rkey: 'self',
|
|
1257
|
-
...params,
|
|
1258
|
-
record: { ...record, $type: collection },
|
|
1259
|
-
}, { encoding: 'application/json', headers });
|
|
1244
|
+
const collection = 'app.bsky.graph.block';
|
|
1245
|
+
const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1260
1246
|
return res.data;
|
|
1261
1247
|
}
|
|
1262
1248
|
async put(params, record, headers) {
|
|
1263
|
-
const collection = 'app.bsky.
|
|
1249
|
+
const collection = 'app.bsky.graph.block';
|
|
1264
1250
|
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1265
1251
|
return res.data;
|
|
1266
1252
|
}
|
|
1267
1253
|
async delete(params, headers) {
|
|
1268
|
-
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.
|
|
1254
|
+
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.graph.block', ...params }, { headers });
|
|
1269
1255
|
}
|
|
1270
1256
|
}
|
|
1271
|
-
exports.
|
|
1272
|
-
class
|
|
1257
|
+
exports.AppBskyGraphBlockRecord = AppBskyGraphBlockRecord;
|
|
1258
|
+
class AppBskyGraphFollowRecord {
|
|
1273
1259
|
constructor(client) {
|
|
1274
1260
|
Object.defineProperty(this, "_client", {
|
|
1275
1261
|
enumerable: true,
|
|
@@ -1281,39 +1267,34 @@ class AppBskyActorStatusRecord {
|
|
|
1281
1267
|
}
|
|
1282
1268
|
async list(params) {
|
|
1283
1269
|
const res = await this._client.call('com.atproto.repo.listRecords', {
|
|
1284
|
-
collection: 'app.bsky.
|
|
1270
|
+
collection: 'app.bsky.graph.follow',
|
|
1285
1271
|
...params,
|
|
1286
1272
|
});
|
|
1287
1273
|
return res.data;
|
|
1288
1274
|
}
|
|
1289
1275
|
async get(params) {
|
|
1290
1276
|
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
1291
|
-
collection: 'app.bsky.
|
|
1277
|
+
collection: 'app.bsky.graph.follow',
|
|
1292
1278
|
...params,
|
|
1293
1279
|
});
|
|
1294
1280
|
return res.data;
|
|
1295
1281
|
}
|
|
1296
1282
|
async create(params, record, headers) {
|
|
1297
|
-
const collection = 'app.bsky.
|
|
1298
|
-
const res = await this._client.call('com.atproto.repo.createRecord', undefined, {
|
|
1299
|
-
collection,
|
|
1300
|
-
rkey: 'self',
|
|
1301
|
-
...params,
|
|
1302
|
-
record: { ...record, $type: collection },
|
|
1303
|
-
}, { encoding: 'application/json', headers });
|
|
1283
|
+
const collection = 'app.bsky.graph.follow';
|
|
1284
|
+
const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1304
1285
|
return res.data;
|
|
1305
1286
|
}
|
|
1306
1287
|
async put(params, record, headers) {
|
|
1307
|
-
const collection = 'app.bsky.
|
|
1288
|
+
const collection = 'app.bsky.graph.follow';
|
|
1308
1289
|
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1309
1290
|
return res.data;
|
|
1310
1291
|
}
|
|
1311
1292
|
async delete(params, headers) {
|
|
1312
|
-
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.
|
|
1293
|
+
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.graph.follow', ...params }, { headers });
|
|
1313
1294
|
}
|
|
1314
1295
|
}
|
|
1315
|
-
exports.
|
|
1316
|
-
class
|
|
1296
|
+
exports.AppBskyGraphFollowRecord = AppBskyGraphFollowRecord;
|
|
1297
|
+
class AppBskyGraphListRecord {
|
|
1317
1298
|
constructor(client) {
|
|
1318
1299
|
Object.defineProperty(this, "_client", {
|
|
1319
1300
|
enumerable: true,
|
|
@@ -1323,9 +1304,36 @@ class AppBskyEmbedNS {
|
|
|
1323
1304
|
});
|
|
1324
1305
|
this._client = client;
|
|
1325
1306
|
}
|
|
1307
|
+
async list(params) {
|
|
1308
|
+
const res = await this._client.call('com.atproto.repo.listRecords', {
|
|
1309
|
+
collection: 'app.bsky.graph.list',
|
|
1310
|
+
...params,
|
|
1311
|
+
});
|
|
1312
|
+
return res.data;
|
|
1313
|
+
}
|
|
1314
|
+
async get(params) {
|
|
1315
|
+
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
1316
|
+
collection: 'app.bsky.graph.list',
|
|
1317
|
+
...params,
|
|
1318
|
+
});
|
|
1319
|
+
return res.data;
|
|
1320
|
+
}
|
|
1321
|
+
async create(params, record, headers) {
|
|
1322
|
+
const collection = 'app.bsky.graph.list';
|
|
1323
|
+
const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1324
|
+
return res.data;
|
|
1325
|
+
}
|
|
1326
|
+
async put(params, record, headers) {
|
|
1327
|
+
const collection = 'app.bsky.graph.list';
|
|
1328
|
+
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1329
|
+
return res.data;
|
|
1330
|
+
}
|
|
1331
|
+
async delete(params, headers) {
|
|
1332
|
+
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.graph.list', ...params }, { headers });
|
|
1333
|
+
}
|
|
1326
1334
|
}
|
|
1327
|
-
exports.
|
|
1328
|
-
class
|
|
1335
|
+
exports.AppBskyGraphListRecord = AppBskyGraphListRecord;
|
|
1336
|
+
class AppBskyGraphListblockRecord {
|
|
1329
1337
|
constructor(client) {
|
|
1330
1338
|
Object.defineProperty(this, "_client", {
|
|
1331
1339
|
enumerable: true,
|
|
@@ -1333,174 +1341,116 @@ class AppBskyFeedNS {
|
|
|
1333
1341
|
writable: true,
|
|
1334
1342
|
value: void 0
|
|
1335
1343
|
});
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1344
|
+
this._client = client;
|
|
1345
|
+
}
|
|
1346
|
+
async list(params) {
|
|
1347
|
+
const res = await this._client.call('com.atproto.repo.listRecords', {
|
|
1348
|
+
collection: 'app.bsky.graph.listblock',
|
|
1349
|
+
...params,
|
|
1341
1350
|
});
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1351
|
+
return res.data;
|
|
1352
|
+
}
|
|
1353
|
+
async get(params) {
|
|
1354
|
+
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
1355
|
+
collection: 'app.bsky.graph.listblock',
|
|
1356
|
+
...params,
|
|
1347
1357
|
});
|
|
1348
|
-
|
|
1358
|
+
return res.data;
|
|
1359
|
+
}
|
|
1360
|
+
async create(params, record, headers) {
|
|
1361
|
+
const collection = 'app.bsky.graph.listblock';
|
|
1362
|
+
const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1363
|
+
return res.data;
|
|
1364
|
+
}
|
|
1365
|
+
async put(params, record, headers) {
|
|
1366
|
+
const collection = 'app.bsky.graph.listblock';
|
|
1367
|
+
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1368
|
+
return res.data;
|
|
1369
|
+
}
|
|
1370
|
+
async delete(params, headers) {
|
|
1371
|
+
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.graph.listblock', ...params }, { headers });
|
|
1372
|
+
}
|
|
1373
|
+
}
|
|
1374
|
+
exports.AppBskyGraphListblockRecord = AppBskyGraphListblockRecord;
|
|
1375
|
+
class AppBskyGraphListitemRecord {
|
|
1376
|
+
constructor(client) {
|
|
1377
|
+
Object.defineProperty(this, "_client", {
|
|
1349
1378
|
enumerable: true,
|
|
1350
1379
|
configurable: true,
|
|
1351
1380
|
writable: true,
|
|
1352
1381
|
value: void 0
|
|
1353
1382
|
});
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1383
|
+
this._client = client;
|
|
1384
|
+
}
|
|
1385
|
+
async list(params) {
|
|
1386
|
+
const res = await this._client.call('com.atproto.repo.listRecords', {
|
|
1387
|
+
collection: 'app.bsky.graph.listitem',
|
|
1388
|
+
...params,
|
|
1359
1389
|
});
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1390
|
+
return res.data;
|
|
1391
|
+
}
|
|
1392
|
+
async get(params) {
|
|
1393
|
+
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
1394
|
+
collection: 'app.bsky.graph.listitem',
|
|
1395
|
+
...params,
|
|
1365
1396
|
});
|
|
1366
|
-
|
|
1397
|
+
return res.data;
|
|
1398
|
+
}
|
|
1399
|
+
async create(params, record, headers) {
|
|
1400
|
+
const collection = 'app.bsky.graph.listitem';
|
|
1401
|
+
const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1402
|
+
return res.data;
|
|
1403
|
+
}
|
|
1404
|
+
async put(params, record, headers) {
|
|
1405
|
+
const collection = 'app.bsky.graph.listitem';
|
|
1406
|
+
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1407
|
+
return res.data;
|
|
1408
|
+
}
|
|
1409
|
+
async delete(params, headers) {
|
|
1410
|
+
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.graph.listitem', ...params }, { headers });
|
|
1411
|
+
}
|
|
1412
|
+
}
|
|
1413
|
+
exports.AppBskyGraphListitemRecord = AppBskyGraphListitemRecord;
|
|
1414
|
+
class AppBskyGraphStarterpackRecord {
|
|
1415
|
+
constructor(client) {
|
|
1416
|
+
Object.defineProperty(this, "_client", {
|
|
1367
1417
|
enumerable: true,
|
|
1368
1418
|
configurable: true,
|
|
1369
1419
|
writable: true,
|
|
1370
1420
|
value: void 0
|
|
1371
1421
|
});
|
|
1372
1422
|
this._client = client;
|
|
1373
|
-
this.generator = new AppBskyFeedGeneratorRecord(client);
|
|
1374
|
-
this.like = new AppBskyFeedLikeRecord(client);
|
|
1375
|
-
this.post = new AppBskyFeedPostRecord(client);
|
|
1376
|
-
this.postgate = new AppBskyFeedPostgateRecord(client);
|
|
1377
|
-
this.repost = new AppBskyFeedRepostRecord(client);
|
|
1378
|
-
this.threadgate = new AppBskyFeedThreadgateRecord(client);
|
|
1379
|
-
}
|
|
1380
|
-
describeFeedGenerator(params, opts) {
|
|
1381
|
-
return this._client.call('app.bsky.feed.describeFeedGenerator', params, undefined, opts);
|
|
1382
|
-
}
|
|
1383
|
-
getActorFeeds(params, opts) {
|
|
1384
|
-
return this._client.call('app.bsky.feed.getActorFeeds', params, undefined, opts);
|
|
1385
1423
|
}
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
throw AppBskyFeedGetActorLikes.toKnownErr(e);
|
|
1424
|
+
async list(params) {
|
|
1425
|
+
const res = await this._client.call('com.atproto.repo.listRecords', {
|
|
1426
|
+
collection: 'app.bsky.graph.starterpack',
|
|
1427
|
+
...params,
|
|
1391
1428
|
});
|
|
1392
|
-
|
|
1393
|
-
getAuthorFeed(params, opts) {
|
|
1394
|
-
return this._client
|
|
1395
|
-
.call('app.bsky.feed.getAuthorFeed', params, undefined, opts)
|
|
1396
|
-
.catch((e) => {
|
|
1397
|
-
throw AppBskyFeedGetAuthorFeed.toKnownErr(e);
|
|
1398
|
-
});
|
|
1399
|
-
}
|
|
1400
|
-
getFeed(params, opts) {
|
|
1401
|
-
return this._client
|
|
1402
|
-
.call('app.bsky.feed.getFeed', params, undefined, opts)
|
|
1403
|
-
.catch((e) => {
|
|
1404
|
-
throw AppBskyFeedGetFeed.toKnownErr(e);
|
|
1405
|
-
});
|
|
1406
|
-
}
|
|
1407
|
-
getFeedGenerator(params, opts) {
|
|
1408
|
-
return this._client.call('app.bsky.feed.getFeedGenerator', params, undefined, opts);
|
|
1409
|
-
}
|
|
1410
|
-
getFeedGenerators(params, opts) {
|
|
1411
|
-
return this._client.call('app.bsky.feed.getFeedGenerators', params, undefined, opts);
|
|
1412
|
-
}
|
|
1413
|
-
getFeedSkeleton(params, opts) {
|
|
1414
|
-
return this._client
|
|
1415
|
-
.call('app.bsky.feed.getFeedSkeleton', params, undefined, opts)
|
|
1416
|
-
.catch((e) => {
|
|
1417
|
-
throw AppBskyFeedGetFeedSkeleton.toKnownErr(e);
|
|
1418
|
-
});
|
|
1419
|
-
}
|
|
1420
|
-
getLikes(params, opts) {
|
|
1421
|
-
return this._client.call('app.bsky.feed.getLikes', params, undefined, opts);
|
|
1422
|
-
}
|
|
1423
|
-
getListFeed(params, opts) {
|
|
1424
|
-
return this._client
|
|
1425
|
-
.call('app.bsky.feed.getListFeed', params, undefined, opts)
|
|
1426
|
-
.catch((e) => {
|
|
1427
|
-
throw AppBskyFeedGetListFeed.toKnownErr(e);
|
|
1428
|
-
});
|
|
1429
|
-
}
|
|
1430
|
-
getPostThread(params, opts) {
|
|
1431
|
-
return this._client
|
|
1432
|
-
.call('app.bsky.feed.getPostThread', params, undefined, opts)
|
|
1433
|
-
.catch((e) => {
|
|
1434
|
-
throw AppBskyFeedGetPostThread.toKnownErr(e);
|
|
1435
|
-
});
|
|
1436
|
-
}
|
|
1437
|
-
getPosts(params, opts) {
|
|
1438
|
-
return this._client.call('app.bsky.feed.getPosts', params, undefined, opts);
|
|
1439
|
-
}
|
|
1440
|
-
getQuotes(params, opts) {
|
|
1441
|
-
return this._client.call('app.bsky.feed.getQuotes', params, undefined, opts);
|
|
1442
|
-
}
|
|
1443
|
-
getRepostedBy(params, opts) {
|
|
1444
|
-
return this._client.call('app.bsky.feed.getRepostedBy', params, undefined, opts);
|
|
1445
|
-
}
|
|
1446
|
-
getSuggestedFeeds(params, opts) {
|
|
1447
|
-
return this._client.call('app.bsky.feed.getSuggestedFeeds', params, undefined, opts);
|
|
1448
|
-
}
|
|
1449
|
-
getTimeline(params, opts) {
|
|
1450
|
-
return this._client.call('app.bsky.feed.getTimeline', params, undefined, opts);
|
|
1451
|
-
}
|
|
1452
|
-
searchPosts(params, opts) {
|
|
1453
|
-
return this._client
|
|
1454
|
-
.call('app.bsky.feed.searchPosts', params, undefined, opts)
|
|
1455
|
-
.catch((e) => {
|
|
1456
|
-
throw AppBskyFeedSearchPosts.toKnownErr(e);
|
|
1457
|
-
});
|
|
1458
|
-
}
|
|
1459
|
-
sendInteractions(data, opts) {
|
|
1460
|
-
return this._client.call('app.bsky.feed.sendInteractions', opts?.qp, data, opts);
|
|
1461
|
-
}
|
|
1462
|
-
}
|
|
1463
|
-
exports.AppBskyFeedNS = AppBskyFeedNS;
|
|
1464
|
-
class AppBskyFeedGeneratorRecord {
|
|
1465
|
-
constructor(client) {
|
|
1466
|
-
Object.defineProperty(this, "_client", {
|
|
1467
|
-
enumerable: true,
|
|
1468
|
-
configurable: true,
|
|
1469
|
-
writable: true,
|
|
1470
|
-
value: void 0
|
|
1471
|
-
});
|
|
1472
|
-
this._client = client;
|
|
1473
|
-
}
|
|
1474
|
-
async list(params) {
|
|
1475
|
-
const res = await this._client.call('com.atproto.repo.listRecords', {
|
|
1476
|
-
collection: 'app.bsky.feed.generator',
|
|
1477
|
-
...params,
|
|
1478
|
-
});
|
|
1479
|
-
return res.data;
|
|
1429
|
+
return res.data;
|
|
1480
1430
|
}
|
|
1481
1431
|
async get(params) {
|
|
1482
1432
|
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
1483
|
-
collection: 'app.bsky.
|
|
1433
|
+
collection: 'app.bsky.graph.starterpack',
|
|
1484
1434
|
...params,
|
|
1485
1435
|
});
|
|
1486
1436
|
return res.data;
|
|
1487
1437
|
}
|
|
1488
1438
|
async create(params, record, headers) {
|
|
1489
|
-
const collection = 'app.bsky.
|
|
1439
|
+
const collection = 'app.bsky.graph.starterpack';
|
|
1490
1440
|
const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1491
1441
|
return res.data;
|
|
1492
1442
|
}
|
|
1493
1443
|
async put(params, record, headers) {
|
|
1494
|
-
const collection = 'app.bsky.
|
|
1444
|
+
const collection = 'app.bsky.graph.starterpack';
|
|
1495
1445
|
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1496
1446
|
return res.data;
|
|
1497
1447
|
}
|
|
1498
1448
|
async delete(params, headers) {
|
|
1499
|
-
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.
|
|
1449
|
+
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.graph.starterpack', ...params }, { headers });
|
|
1500
1450
|
}
|
|
1501
1451
|
}
|
|
1502
|
-
exports.
|
|
1503
|
-
class
|
|
1452
|
+
exports.AppBskyGraphStarterpackRecord = AppBskyGraphStarterpackRecord;
|
|
1453
|
+
class AppBskyGraphVerificationRecord {
|
|
1504
1454
|
constructor(client) {
|
|
1505
1455
|
Object.defineProperty(this, "_client", {
|
|
1506
1456
|
enumerable: true,
|
|
@@ -1512,34 +1462,34 @@ class AppBskyFeedLikeRecord {
|
|
|
1512
1462
|
}
|
|
1513
1463
|
async list(params) {
|
|
1514
1464
|
const res = await this._client.call('com.atproto.repo.listRecords', {
|
|
1515
|
-
collection: 'app.bsky.
|
|
1465
|
+
collection: 'app.bsky.graph.verification',
|
|
1516
1466
|
...params,
|
|
1517
1467
|
});
|
|
1518
1468
|
return res.data;
|
|
1519
1469
|
}
|
|
1520
1470
|
async get(params) {
|
|
1521
1471
|
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
1522
|
-
collection: 'app.bsky.
|
|
1472
|
+
collection: 'app.bsky.graph.verification',
|
|
1523
1473
|
...params,
|
|
1524
1474
|
});
|
|
1525
1475
|
return res.data;
|
|
1526
1476
|
}
|
|
1527
1477
|
async create(params, record, headers) {
|
|
1528
|
-
const collection = 'app.bsky.
|
|
1478
|
+
const collection = 'app.bsky.graph.verification';
|
|
1529
1479
|
const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1530
1480
|
return res.data;
|
|
1531
1481
|
}
|
|
1532
1482
|
async put(params, record, headers) {
|
|
1533
|
-
const collection = 'app.bsky.
|
|
1483
|
+
const collection = 'app.bsky.graph.verification';
|
|
1534
1484
|
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1535
1485
|
return res.data;
|
|
1536
1486
|
}
|
|
1537
1487
|
async delete(params, headers) {
|
|
1538
|
-
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.
|
|
1488
|
+
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.graph.verification', ...params }, { headers });
|
|
1539
1489
|
}
|
|
1540
1490
|
}
|
|
1541
|
-
exports.
|
|
1542
|
-
class
|
|
1491
|
+
exports.AppBskyGraphVerificationRecord = AppBskyGraphVerificationRecord;
|
|
1492
|
+
class AppBskyLabelerNS {
|
|
1543
1493
|
constructor(client) {
|
|
1544
1494
|
Object.defineProperty(this, "_client", {
|
|
1545
1495
|
enumerable: true,
|
|
@@ -1547,38 +1497,21 @@ class AppBskyFeedPostRecord {
|
|
|
1547
1497
|
writable: true,
|
|
1548
1498
|
value: void 0
|
|
1549
1499
|
});
|
|
1550
|
-
this
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
...params,
|
|
1556
|
-
});
|
|
1557
|
-
return res.data;
|
|
1558
|
-
}
|
|
1559
|
-
async get(params) {
|
|
1560
|
-
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
1561
|
-
collection: 'app.bsky.feed.post',
|
|
1562
|
-
...params,
|
|
1500
|
+
Object.defineProperty(this, "service", {
|
|
1501
|
+
enumerable: true,
|
|
1502
|
+
configurable: true,
|
|
1503
|
+
writable: true,
|
|
1504
|
+
value: void 0
|
|
1563
1505
|
});
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
async create(params, record, headers) {
|
|
1567
|
-
const collection = 'app.bsky.feed.post';
|
|
1568
|
-
const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1569
|
-
return res.data;
|
|
1570
|
-
}
|
|
1571
|
-
async put(params, record, headers) {
|
|
1572
|
-
const collection = 'app.bsky.feed.post';
|
|
1573
|
-
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1574
|
-
return res.data;
|
|
1506
|
+
this._client = client;
|
|
1507
|
+
this.service = new AppBskyLabelerServiceRecord(client);
|
|
1575
1508
|
}
|
|
1576
|
-
|
|
1577
|
-
|
|
1509
|
+
getServices(params, opts) {
|
|
1510
|
+
return this._client.call('app.bsky.labeler.getServices', params, undefined, opts);
|
|
1578
1511
|
}
|
|
1579
1512
|
}
|
|
1580
|
-
exports.
|
|
1581
|
-
class
|
|
1513
|
+
exports.AppBskyLabelerNS = AppBskyLabelerNS;
|
|
1514
|
+
class AppBskyLabelerServiceRecord {
|
|
1582
1515
|
constructor(client) {
|
|
1583
1516
|
Object.defineProperty(this, "_client", {
|
|
1584
1517
|
enumerable: true,
|
|
@@ -1590,34 +1523,39 @@ class AppBskyFeedPostgateRecord {
|
|
|
1590
1523
|
}
|
|
1591
1524
|
async list(params) {
|
|
1592
1525
|
const res = await this._client.call('com.atproto.repo.listRecords', {
|
|
1593
|
-
collection: 'app.bsky.
|
|
1526
|
+
collection: 'app.bsky.labeler.service',
|
|
1594
1527
|
...params,
|
|
1595
1528
|
});
|
|
1596
1529
|
return res.data;
|
|
1597
1530
|
}
|
|
1598
1531
|
async get(params) {
|
|
1599
1532
|
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
1600
|
-
collection: 'app.bsky.
|
|
1533
|
+
collection: 'app.bsky.labeler.service',
|
|
1601
1534
|
...params,
|
|
1602
1535
|
});
|
|
1603
1536
|
return res.data;
|
|
1604
1537
|
}
|
|
1605
1538
|
async create(params, record, headers) {
|
|
1606
|
-
const collection = 'app.bsky.
|
|
1607
|
-
const res = await this._client.call('com.atproto.repo.createRecord', undefined, {
|
|
1539
|
+
const collection = 'app.bsky.labeler.service';
|
|
1540
|
+
const res = await this._client.call('com.atproto.repo.createRecord', undefined, {
|
|
1541
|
+
collection,
|
|
1542
|
+
rkey: 'self',
|
|
1543
|
+
...params,
|
|
1544
|
+
record: { ...record, $type: collection },
|
|
1545
|
+
}, { encoding: 'application/json', headers });
|
|
1608
1546
|
return res.data;
|
|
1609
1547
|
}
|
|
1610
1548
|
async put(params, record, headers) {
|
|
1611
|
-
const collection = 'app.bsky.
|
|
1549
|
+
const collection = 'app.bsky.labeler.service';
|
|
1612
1550
|
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1613
1551
|
return res.data;
|
|
1614
1552
|
}
|
|
1615
1553
|
async delete(params, headers) {
|
|
1616
|
-
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.
|
|
1554
|
+
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.labeler.service', ...params }, { headers });
|
|
1617
1555
|
}
|
|
1618
1556
|
}
|
|
1619
|
-
exports.
|
|
1620
|
-
class
|
|
1557
|
+
exports.AppBskyLabelerServiceRecord = AppBskyLabelerServiceRecord;
|
|
1558
|
+
class AppBskyNotificationNS {
|
|
1621
1559
|
constructor(client) {
|
|
1622
1560
|
Object.defineProperty(this, "_client", {
|
|
1623
1561
|
enumerable: true,
|
|
@@ -1625,38 +1563,48 @@ class AppBskyFeedRepostRecord {
|
|
|
1625
1563
|
writable: true,
|
|
1626
1564
|
value: void 0
|
|
1627
1565
|
});
|
|
1566
|
+
Object.defineProperty(this, "declaration", {
|
|
1567
|
+
enumerable: true,
|
|
1568
|
+
configurable: true,
|
|
1569
|
+
writable: true,
|
|
1570
|
+
value: void 0
|
|
1571
|
+
});
|
|
1628
1572
|
this._client = client;
|
|
1573
|
+
this.declaration = new AppBskyNotificationDeclarationRecord(client);
|
|
1629
1574
|
}
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
collection: 'app.bsky.feed.repost',
|
|
1633
|
-
...params,
|
|
1634
|
-
});
|
|
1635
|
-
return res.data;
|
|
1575
|
+
getPreferences(params, opts) {
|
|
1576
|
+
return this._client.call('app.bsky.notification.getPreferences', params, undefined, opts);
|
|
1636
1577
|
}
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
collection: 'app.bsky.feed.repost',
|
|
1640
|
-
...params,
|
|
1641
|
-
});
|
|
1642
|
-
return res.data;
|
|
1578
|
+
getUnreadCount(params, opts) {
|
|
1579
|
+
return this._client.call('app.bsky.notification.getUnreadCount', params, undefined, opts);
|
|
1643
1580
|
}
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1647
|
-
return res.data;
|
|
1581
|
+
listActivitySubscriptions(params, opts) {
|
|
1582
|
+
return this._client.call('app.bsky.notification.listActivitySubscriptions', params, undefined, opts);
|
|
1648
1583
|
}
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1652
|
-
return res.data;
|
|
1584
|
+
listNotifications(params, opts) {
|
|
1585
|
+
return this._client.call('app.bsky.notification.listNotifications', params, undefined, opts);
|
|
1653
1586
|
}
|
|
1654
|
-
|
|
1655
|
-
|
|
1587
|
+
putActivitySubscription(data, opts) {
|
|
1588
|
+
return this._client.call('app.bsky.notification.putActivitySubscription', opts?.qp, data, opts);
|
|
1589
|
+
}
|
|
1590
|
+
putPreferences(data, opts) {
|
|
1591
|
+
return this._client.call('app.bsky.notification.putPreferences', opts?.qp, data, opts);
|
|
1592
|
+
}
|
|
1593
|
+
putPreferencesV2(data, opts) {
|
|
1594
|
+
return this._client.call('app.bsky.notification.putPreferencesV2', opts?.qp, data, opts);
|
|
1595
|
+
}
|
|
1596
|
+
registerPush(data, opts) {
|
|
1597
|
+
return this._client.call('app.bsky.notification.registerPush', opts?.qp, data, opts);
|
|
1598
|
+
}
|
|
1599
|
+
unregisterPush(data, opts) {
|
|
1600
|
+
return this._client.call('app.bsky.notification.unregisterPush', opts?.qp, data, opts);
|
|
1601
|
+
}
|
|
1602
|
+
updateSeen(data, opts) {
|
|
1603
|
+
return this._client.call('app.bsky.notification.updateSeen', opts?.qp, data, opts);
|
|
1656
1604
|
}
|
|
1657
1605
|
}
|
|
1658
|
-
exports.
|
|
1659
|
-
class
|
|
1606
|
+
exports.AppBskyNotificationNS = AppBskyNotificationNS;
|
|
1607
|
+
class AppBskyNotificationDeclarationRecord {
|
|
1660
1608
|
constructor(client) {
|
|
1661
1609
|
Object.defineProperty(this, "_client", {
|
|
1662
1610
|
enumerable: true,
|
|
@@ -1668,34 +1616,39 @@ class AppBskyFeedThreadgateRecord {
|
|
|
1668
1616
|
}
|
|
1669
1617
|
async list(params) {
|
|
1670
1618
|
const res = await this._client.call('com.atproto.repo.listRecords', {
|
|
1671
|
-
collection: 'app.bsky.
|
|
1619
|
+
collection: 'app.bsky.notification.declaration',
|
|
1672
1620
|
...params,
|
|
1673
1621
|
});
|
|
1674
1622
|
return res.data;
|
|
1675
1623
|
}
|
|
1676
1624
|
async get(params) {
|
|
1677
1625
|
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
1678
|
-
collection: 'app.bsky.
|
|
1626
|
+
collection: 'app.bsky.notification.declaration',
|
|
1679
1627
|
...params,
|
|
1680
1628
|
});
|
|
1681
1629
|
return res.data;
|
|
1682
1630
|
}
|
|
1683
1631
|
async create(params, record, headers) {
|
|
1684
|
-
const collection = 'app.bsky.
|
|
1685
|
-
const res = await this._client.call('com.atproto.repo.createRecord', undefined, {
|
|
1632
|
+
const collection = 'app.bsky.notification.declaration';
|
|
1633
|
+
const res = await this._client.call('com.atproto.repo.createRecord', undefined, {
|
|
1634
|
+
collection,
|
|
1635
|
+
rkey: 'self',
|
|
1636
|
+
...params,
|
|
1637
|
+
record: { ...record, $type: collection },
|
|
1638
|
+
}, { encoding: 'application/json', headers });
|
|
1686
1639
|
return res.data;
|
|
1687
1640
|
}
|
|
1688
1641
|
async put(params, record, headers) {
|
|
1689
|
-
const collection = 'app.bsky.
|
|
1642
|
+
const collection = 'app.bsky.notification.declaration';
|
|
1690
1643
|
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1691
1644
|
return res.data;
|
|
1692
1645
|
}
|
|
1693
1646
|
async delete(params, headers) {
|
|
1694
|
-
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.
|
|
1647
|
+
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.notification.declaration', ...params }, { headers });
|
|
1695
1648
|
}
|
|
1696
1649
|
}
|
|
1697
|
-
exports.
|
|
1698
|
-
class
|
|
1650
|
+
exports.AppBskyNotificationDeclarationRecord = AppBskyNotificationDeclarationRecord;
|
|
1651
|
+
class AppBskyRichtextNS {
|
|
1699
1652
|
constructor(client) {
|
|
1700
1653
|
Object.defineProperty(this, "_client", {
|
|
1701
1654
|
enumerable: true,
|
|
@@ -1703,127 +1656,197 @@ class AppBskyGraphNS {
|
|
|
1703
1656
|
writable: true,
|
|
1704
1657
|
value: void 0
|
|
1705
1658
|
});
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
Object.defineProperty(this, "
|
|
1659
|
+
this._client = client;
|
|
1660
|
+
}
|
|
1661
|
+
}
|
|
1662
|
+
exports.AppBskyRichtextNS = AppBskyRichtextNS;
|
|
1663
|
+
class AppBskyUnspeccedNS {
|
|
1664
|
+
constructor(client) {
|
|
1665
|
+
Object.defineProperty(this, "_client", {
|
|
1713
1666
|
enumerable: true,
|
|
1714
1667
|
configurable: true,
|
|
1715
1668
|
writable: true,
|
|
1716
1669
|
value: void 0
|
|
1717
1670
|
});
|
|
1718
|
-
|
|
1671
|
+
this._client = client;
|
|
1672
|
+
}
|
|
1673
|
+
getAgeAssuranceState(params, opts) {
|
|
1674
|
+
return this._client.call('app.bsky.unspecced.getAgeAssuranceState', params, undefined, opts);
|
|
1675
|
+
}
|
|
1676
|
+
getConfig(params, opts) {
|
|
1677
|
+
return this._client.call('app.bsky.unspecced.getConfig', params, undefined, opts);
|
|
1678
|
+
}
|
|
1679
|
+
getPopularFeedGenerators(params, opts) {
|
|
1680
|
+
return this._client.call('app.bsky.unspecced.getPopularFeedGenerators', params, undefined, opts);
|
|
1681
|
+
}
|
|
1682
|
+
getPostThreadOtherV2(params, opts) {
|
|
1683
|
+
return this._client.call('app.bsky.unspecced.getPostThreadOtherV2', params, undefined, opts);
|
|
1684
|
+
}
|
|
1685
|
+
getPostThreadV2(params, opts) {
|
|
1686
|
+
return this._client.call('app.bsky.unspecced.getPostThreadV2', params, undefined, opts);
|
|
1687
|
+
}
|
|
1688
|
+
getSuggestedFeeds(params, opts) {
|
|
1689
|
+
return this._client.call('app.bsky.unspecced.getSuggestedFeeds', params, undefined, opts);
|
|
1690
|
+
}
|
|
1691
|
+
getSuggestedFeedsSkeleton(params, opts) {
|
|
1692
|
+
return this._client.call('app.bsky.unspecced.getSuggestedFeedsSkeleton', params, undefined, opts);
|
|
1693
|
+
}
|
|
1694
|
+
getSuggestedStarterPacks(params, opts) {
|
|
1695
|
+
return this._client.call('app.bsky.unspecced.getSuggestedStarterPacks', params, undefined, opts);
|
|
1696
|
+
}
|
|
1697
|
+
getSuggestedStarterPacksSkeleton(params, opts) {
|
|
1698
|
+
return this._client.call('app.bsky.unspecced.getSuggestedStarterPacksSkeleton', params, undefined, opts);
|
|
1699
|
+
}
|
|
1700
|
+
getSuggestedUsers(params, opts) {
|
|
1701
|
+
return this._client.call('app.bsky.unspecced.getSuggestedUsers', params, undefined, opts);
|
|
1702
|
+
}
|
|
1703
|
+
getSuggestedUsersSkeleton(params, opts) {
|
|
1704
|
+
return this._client.call('app.bsky.unspecced.getSuggestedUsersSkeleton', params, undefined, opts);
|
|
1705
|
+
}
|
|
1706
|
+
getSuggestionsSkeleton(params, opts) {
|
|
1707
|
+
return this._client.call('app.bsky.unspecced.getSuggestionsSkeleton', params, undefined, opts);
|
|
1708
|
+
}
|
|
1709
|
+
getTaggedSuggestions(params, opts) {
|
|
1710
|
+
return this._client.call('app.bsky.unspecced.getTaggedSuggestions', params, undefined, opts);
|
|
1711
|
+
}
|
|
1712
|
+
getTrendingTopics(params, opts) {
|
|
1713
|
+
return this._client.call('app.bsky.unspecced.getTrendingTopics', params, undefined, opts);
|
|
1714
|
+
}
|
|
1715
|
+
getTrends(params, opts) {
|
|
1716
|
+
return this._client.call('app.bsky.unspecced.getTrends', params, undefined, opts);
|
|
1717
|
+
}
|
|
1718
|
+
getTrendsSkeleton(params, opts) {
|
|
1719
|
+
return this._client.call('app.bsky.unspecced.getTrendsSkeleton', params, undefined, opts);
|
|
1720
|
+
}
|
|
1721
|
+
initAgeAssurance(data, opts) {
|
|
1722
|
+
return this._client
|
|
1723
|
+
.call('app.bsky.unspecced.initAgeAssurance', opts?.qp, data, opts)
|
|
1724
|
+
.catch((e) => {
|
|
1725
|
+
throw AppBskyUnspeccedInitAgeAssurance.toKnownErr(e);
|
|
1726
|
+
});
|
|
1727
|
+
}
|
|
1728
|
+
searchActorsSkeleton(params, opts) {
|
|
1729
|
+
return this._client
|
|
1730
|
+
.call('app.bsky.unspecced.searchActorsSkeleton', params, undefined, opts)
|
|
1731
|
+
.catch((e) => {
|
|
1732
|
+
throw AppBskyUnspeccedSearchActorsSkeleton.toKnownErr(e);
|
|
1733
|
+
});
|
|
1734
|
+
}
|
|
1735
|
+
searchPostsSkeleton(params, opts) {
|
|
1736
|
+
return this._client
|
|
1737
|
+
.call('app.bsky.unspecced.searchPostsSkeleton', params, undefined, opts)
|
|
1738
|
+
.catch((e) => {
|
|
1739
|
+
throw AppBskyUnspeccedSearchPostsSkeleton.toKnownErr(e);
|
|
1740
|
+
});
|
|
1741
|
+
}
|
|
1742
|
+
searchStarterPacksSkeleton(params, opts) {
|
|
1743
|
+
return this._client
|
|
1744
|
+
.call('app.bsky.unspecced.searchStarterPacksSkeleton', params, undefined, opts)
|
|
1745
|
+
.catch((e) => {
|
|
1746
|
+
throw AppBskyUnspeccedSearchStarterPacksSkeleton.toKnownErr(e);
|
|
1747
|
+
});
|
|
1748
|
+
}
|
|
1749
|
+
}
|
|
1750
|
+
exports.AppBskyUnspeccedNS = AppBskyUnspeccedNS;
|
|
1751
|
+
class AppBskyVideoNS {
|
|
1752
|
+
constructor(client) {
|
|
1753
|
+
Object.defineProperty(this, "_client", {
|
|
1719
1754
|
enumerable: true,
|
|
1720
1755
|
configurable: true,
|
|
1721
1756
|
writable: true,
|
|
1722
1757
|
value: void 0
|
|
1723
1758
|
});
|
|
1724
|
-
|
|
1759
|
+
this._client = client;
|
|
1760
|
+
}
|
|
1761
|
+
getJobStatus(params, opts) {
|
|
1762
|
+
return this._client.call('app.bsky.video.getJobStatus', params, undefined, opts);
|
|
1763
|
+
}
|
|
1764
|
+
getUploadLimits(params, opts) {
|
|
1765
|
+
return this._client.call('app.bsky.video.getUploadLimits', params, undefined, opts);
|
|
1766
|
+
}
|
|
1767
|
+
uploadVideo(data, opts) {
|
|
1768
|
+
return this._client.call('app.bsky.video.uploadVideo', opts?.qp, data, opts);
|
|
1769
|
+
}
|
|
1770
|
+
}
|
|
1771
|
+
exports.AppBskyVideoNS = AppBskyVideoNS;
|
|
1772
|
+
class ChatNS {
|
|
1773
|
+
constructor(client) {
|
|
1774
|
+
Object.defineProperty(this, "_client", {
|
|
1725
1775
|
enumerable: true,
|
|
1726
1776
|
configurable: true,
|
|
1727
1777
|
writable: true,
|
|
1728
1778
|
value: void 0
|
|
1729
1779
|
});
|
|
1730
|
-
Object.defineProperty(this, "
|
|
1780
|
+
Object.defineProperty(this, "bsky", {
|
|
1731
1781
|
enumerable: true,
|
|
1732
1782
|
configurable: true,
|
|
1733
1783
|
writable: true,
|
|
1734
1784
|
value: void 0
|
|
1735
1785
|
});
|
|
1736
|
-
|
|
1786
|
+
this._client = client;
|
|
1787
|
+
this.bsky = new ChatBskyNS(client);
|
|
1788
|
+
}
|
|
1789
|
+
}
|
|
1790
|
+
exports.ChatNS = ChatNS;
|
|
1791
|
+
class ChatBskyNS {
|
|
1792
|
+
constructor(client) {
|
|
1793
|
+
Object.defineProperty(this, "_client", {
|
|
1737
1794
|
enumerable: true,
|
|
1738
1795
|
configurable: true,
|
|
1739
1796
|
writable: true,
|
|
1740
1797
|
value: void 0
|
|
1741
1798
|
});
|
|
1742
|
-
Object.defineProperty(this, "
|
|
1799
|
+
Object.defineProperty(this, "actor", {
|
|
1800
|
+
enumerable: true,
|
|
1801
|
+
configurable: true,
|
|
1802
|
+
writable: true,
|
|
1803
|
+
value: void 0
|
|
1804
|
+
});
|
|
1805
|
+
Object.defineProperty(this, "convo", {
|
|
1806
|
+
enumerable: true,
|
|
1807
|
+
configurable: true,
|
|
1808
|
+
writable: true,
|
|
1809
|
+
value: void 0
|
|
1810
|
+
});
|
|
1811
|
+
Object.defineProperty(this, "moderation", {
|
|
1743
1812
|
enumerable: true,
|
|
1744
1813
|
configurable: true,
|
|
1745
1814
|
writable: true,
|
|
1746
1815
|
value: void 0
|
|
1747
1816
|
});
|
|
1748
1817
|
this._client = client;
|
|
1749
|
-
this.
|
|
1750
|
-
this.
|
|
1751
|
-
this.
|
|
1752
|
-
this.listblock = new AppBskyGraphListblockRecord(client);
|
|
1753
|
-
this.listitem = new AppBskyGraphListitemRecord(client);
|
|
1754
|
-
this.starterpack = new AppBskyGraphStarterpackRecord(client);
|
|
1755
|
-
this.verification = new AppBskyGraphVerificationRecord(client);
|
|
1756
|
-
}
|
|
1757
|
-
getActorStarterPacks(params, opts) {
|
|
1758
|
-
return this._client.call('app.bsky.graph.getActorStarterPacks', params, undefined, opts);
|
|
1759
|
-
}
|
|
1760
|
-
getBlocks(params, opts) {
|
|
1761
|
-
return this._client.call('app.bsky.graph.getBlocks', params, undefined, opts);
|
|
1762
|
-
}
|
|
1763
|
-
getFollowers(params, opts) {
|
|
1764
|
-
return this._client.call('app.bsky.graph.getFollowers', params, undefined, opts);
|
|
1765
|
-
}
|
|
1766
|
-
getFollows(params, opts) {
|
|
1767
|
-
return this._client.call('app.bsky.graph.getFollows', params, undefined, opts);
|
|
1768
|
-
}
|
|
1769
|
-
getKnownFollowers(params, opts) {
|
|
1770
|
-
return this._client.call('app.bsky.graph.getKnownFollowers', params, undefined, opts);
|
|
1771
|
-
}
|
|
1772
|
-
getList(params, opts) {
|
|
1773
|
-
return this._client.call('app.bsky.graph.getList', params, undefined, opts);
|
|
1774
|
-
}
|
|
1775
|
-
getListBlocks(params, opts) {
|
|
1776
|
-
return this._client.call('app.bsky.graph.getListBlocks', params, undefined, opts);
|
|
1777
|
-
}
|
|
1778
|
-
getListMutes(params, opts) {
|
|
1779
|
-
return this._client.call('app.bsky.graph.getListMutes', params, undefined, opts);
|
|
1780
|
-
}
|
|
1781
|
-
getLists(params, opts) {
|
|
1782
|
-
return this._client.call('app.bsky.graph.getLists', params, undefined, opts);
|
|
1783
|
-
}
|
|
1784
|
-
getMutes(params, opts) {
|
|
1785
|
-
return this._client.call('app.bsky.graph.getMutes', params, undefined, opts);
|
|
1818
|
+
this.actor = new ChatBskyActorNS(client);
|
|
1819
|
+
this.convo = new ChatBskyConvoNS(client);
|
|
1820
|
+
this.moderation = new ChatBskyModerationNS(client);
|
|
1786
1821
|
}
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1822
|
+
}
|
|
1823
|
+
exports.ChatBskyNS = ChatBskyNS;
|
|
1824
|
+
class ChatBskyActorNS {
|
|
1825
|
+
constructor(client) {
|
|
1826
|
+
Object.defineProperty(this, "_client", {
|
|
1827
|
+
enumerable: true,
|
|
1828
|
+
configurable: true,
|
|
1829
|
+
writable: true,
|
|
1830
|
+
value: void 0
|
|
1792
1831
|
});
|
|
1832
|
+
Object.defineProperty(this, "declaration", {
|
|
1833
|
+
enumerable: true,
|
|
1834
|
+
configurable: true,
|
|
1835
|
+
writable: true,
|
|
1836
|
+
value: void 0
|
|
1837
|
+
});
|
|
1838
|
+
this._client = client;
|
|
1839
|
+
this.declaration = new ChatBskyActorDeclarationRecord(client);
|
|
1793
1840
|
}
|
|
1794
|
-
|
|
1795
|
-
return this._client.call('
|
|
1796
|
-
}
|
|
1797
|
-
getStarterPacks(params, opts) {
|
|
1798
|
-
return this._client.call('app.bsky.graph.getStarterPacks', params, undefined, opts);
|
|
1799
|
-
}
|
|
1800
|
-
getSuggestedFollowsByActor(params, opts) {
|
|
1801
|
-
return this._client.call('app.bsky.graph.getSuggestedFollowsByActor', params, undefined, opts);
|
|
1802
|
-
}
|
|
1803
|
-
muteActor(data, opts) {
|
|
1804
|
-
return this._client.call('app.bsky.graph.muteActor', opts?.qp, data, opts);
|
|
1805
|
-
}
|
|
1806
|
-
muteActorList(data, opts) {
|
|
1807
|
-
return this._client.call('app.bsky.graph.muteActorList', opts?.qp, data, opts);
|
|
1808
|
-
}
|
|
1809
|
-
muteThread(data, opts) {
|
|
1810
|
-
return this._client.call('app.bsky.graph.muteThread', opts?.qp, data, opts);
|
|
1811
|
-
}
|
|
1812
|
-
searchStarterPacks(params, opts) {
|
|
1813
|
-
return this._client.call('app.bsky.graph.searchStarterPacks', params, undefined, opts);
|
|
1814
|
-
}
|
|
1815
|
-
unmuteActor(data, opts) {
|
|
1816
|
-
return this._client.call('app.bsky.graph.unmuteActor', opts?.qp, data, opts);
|
|
1817
|
-
}
|
|
1818
|
-
unmuteActorList(data, opts) {
|
|
1819
|
-
return this._client.call('app.bsky.graph.unmuteActorList', opts?.qp, data, opts);
|
|
1841
|
+
deleteAccount(data, opts) {
|
|
1842
|
+
return this._client.call('chat.bsky.actor.deleteAccount', opts?.qp, data, opts);
|
|
1820
1843
|
}
|
|
1821
|
-
|
|
1822
|
-
return this._client.call('
|
|
1844
|
+
exportAccountData(params, opts) {
|
|
1845
|
+
return this._client.call('chat.bsky.actor.exportAccountData', params, undefined, opts);
|
|
1823
1846
|
}
|
|
1824
1847
|
}
|
|
1825
|
-
exports.
|
|
1826
|
-
class
|
|
1848
|
+
exports.ChatBskyActorNS = ChatBskyActorNS;
|
|
1849
|
+
class ChatBskyActorDeclarationRecord {
|
|
1827
1850
|
constructor(client) {
|
|
1828
1851
|
Object.defineProperty(this, "_client", {
|
|
1829
1852
|
enumerable: true,
|
|
@@ -1835,34 +1858,39 @@ class AppBskyGraphBlockRecord {
|
|
|
1835
1858
|
}
|
|
1836
1859
|
async list(params) {
|
|
1837
1860
|
const res = await this._client.call('com.atproto.repo.listRecords', {
|
|
1838
|
-
collection: '
|
|
1861
|
+
collection: 'chat.bsky.actor.declaration',
|
|
1839
1862
|
...params,
|
|
1840
1863
|
});
|
|
1841
1864
|
return res.data;
|
|
1842
1865
|
}
|
|
1843
1866
|
async get(params) {
|
|
1844
1867
|
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
1845
|
-
collection: '
|
|
1868
|
+
collection: 'chat.bsky.actor.declaration',
|
|
1846
1869
|
...params,
|
|
1847
1870
|
});
|
|
1848
1871
|
return res.data;
|
|
1849
1872
|
}
|
|
1850
1873
|
async create(params, record, headers) {
|
|
1851
|
-
const collection = '
|
|
1852
|
-
const res = await this._client.call('com.atproto.repo.createRecord', undefined, {
|
|
1874
|
+
const collection = 'chat.bsky.actor.declaration';
|
|
1875
|
+
const res = await this._client.call('com.atproto.repo.createRecord', undefined, {
|
|
1876
|
+
collection,
|
|
1877
|
+
rkey: 'self',
|
|
1878
|
+
...params,
|
|
1879
|
+
record: { ...record, $type: collection },
|
|
1880
|
+
}, { encoding: 'application/json', headers });
|
|
1853
1881
|
return res.data;
|
|
1854
1882
|
}
|
|
1855
1883
|
async put(params, record, headers) {
|
|
1856
|
-
const collection = '
|
|
1884
|
+
const collection = 'chat.bsky.actor.declaration';
|
|
1857
1885
|
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1858
1886
|
return res.data;
|
|
1859
1887
|
}
|
|
1860
1888
|
async delete(params, headers) {
|
|
1861
|
-
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: '
|
|
1889
|
+
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'chat.bsky.actor.declaration', ...params }, { headers });
|
|
1862
1890
|
}
|
|
1863
1891
|
}
|
|
1864
|
-
exports.
|
|
1865
|
-
class
|
|
1892
|
+
exports.ChatBskyActorDeclarationRecord = ChatBskyActorDeclarationRecord;
|
|
1893
|
+
class ChatBskyConvoNS {
|
|
1866
1894
|
constructor(client) {
|
|
1867
1895
|
Object.defineProperty(this, "_client", {
|
|
1868
1896
|
enumerable: true,
|
|
@@ -1872,114 +1900,68 @@ class AppBskyGraphFollowRecord {
|
|
|
1872
1900
|
});
|
|
1873
1901
|
this._client = client;
|
|
1874
1902
|
}
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
collection: 'app.bsky.graph.follow',
|
|
1878
|
-
...params,
|
|
1879
|
-
});
|
|
1880
|
-
return res.data;
|
|
1903
|
+
acceptConvo(data, opts) {
|
|
1904
|
+
return this._client.call('chat.bsky.convo.acceptConvo', opts?.qp, data, opts);
|
|
1881
1905
|
}
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1906
|
+
addReaction(data, opts) {
|
|
1907
|
+
return this._client
|
|
1908
|
+
.call('chat.bsky.convo.addReaction', opts?.qp, data, opts)
|
|
1909
|
+
.catch((e) => {
|
|
1910
|
+
throw ChatBskyConvoAddReaction.toKnownErr(e);
|
|
1886
1911
|
});
|
|
1887
|
-
return res.data;
|
|
1888
1912
|
}
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1892
|
-
return res.data;
|
|
1913
|
+
deleteMessageForSelf(data, opts) {
|
|
1914
|
+
return this._client.call('chat.bsky.convo.deleteMessageForSelf', opts?.qp, data, opts);
|
|
1893
1915
|
}
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1897
|
-
return res.data;
|
|
1916
|
+
getConvo(params, opts) {
|
|
1917
|
+
return this._client.call('chat.bsky.convo.getConvo', params, undefined, opts);
|
|
1898
1918
|
}
|
|
1899
|
-
|
|
1900
|
-
|
|
1919
|
+
getConvoAvailability(params, opts) {
|
|
1920
|
+
return this._client.call('chat.bsky.convo.getConvoAvailability', params, undefined, opts);
|
|
1901
1921
|
}
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
class AppBskyGraphListRecord {
|
|
1905
|
-
constructor(client) {
|
|
1906
|
-
Object.defineProperty(this, "_client", {
|
|
1907
|
-
enumerable: true,
|
|
1908
|
-
configurable: true,
|
|
1909
|
-
writable: true,
|
|
1910
|
-
value: void 0
|
|
1911
|
-
});
|
|
1912
|
-
this._client = client;
|
|
1922
|
+
getConvoForMembers(params, opts) {
|
|
1923
|
+
return this._client.call('chat.bsky.convo.getConvoForMembers', params, undefined, opts);
|
|
1913
1924
|
}
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
collection: 'app.bsky.graph.list',
|
|
1917
|
-
...params,
|
|
1918
|
-
});
|
|
1919
|
-
return res.data;
|
|
1925
|
+
getLog(params, opts) {
|
|
1926
|
+
return this._client.call('chat.bsky.convo.getLog', params, undefined, opts);
|
|
1920
1927
|
}
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
collection: 'app.bsky.graph.list',
|
|
1924
|
-
...params,
|
|
1925
|
-
});
|
|
1926
|
-
return res.data;
|
|
1928
|
+
getMessages(params, opts) {
|
|
1929
|
+
return this._client.call('chat.bsky.convo.getMessages', params, undefined, opts);
|
|
1927
1930
|
}
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1931
|
-
return res.data;
|
|
1931
|
+
leaveConvo(data, opts) {
|
|
1932
|
+
return this._client.call('chat.bsky.convo.leaveConvo', opts?.qp, data, opts);
|
|
1932
1933
|
}
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1936
|
-
return res.data;
|
|
1934
|
+
listConvos(params, opts) {
|
|
1935
|
+
return this._client.call('chat.bsky.convo.listConvos', params, undefined, opts);
|
|
1937
1936
|
}
|
|
1938
|
-
|
|
1939
|
-
|
|
1937
|
+
muteConvo(data, opts) {
|
|
1938
|
+
return this._client.call('chat.bsky.convo.muteConvo', opts?.qp, data, opts);
|
|
1940
1939
|
}
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
enumerable: true,
|
|
1947
|
-
configurable: true,
|
|
1948
|
-
writable: true,
|
|
1949
|
-
value: void 0
|
|
1940
|
+
removeReaction(data, opts) {
|
|
1941
|
+
return this._client
|
|
1942
|
+
.call('chat.bsky.convo.removeReaction', opts?.qp, data, opts)
|
|
1943
|
+
.catch((e) => {
|
|
1944
|
+
throw ChatBskyConvoRemoveReaction.toKnownErr(e);
|
|
1950
1945
|
});
|
|
1951
|
-
this._client = client;
|
|
1952
1946
|
}
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
collection: 'app.bsky.graph.listblock',
|
|
1956
|
-
...params,
|
|
1957
|
-
});
|
|
1958
|
-
return res.data;
|
|
1947
|
+
sendMessage(data, opts) {
|
|
1948
|
+
return this._client.call('chat.bsky.convo.sendMessage', opts?.qp, data, opts);
|
|
1959
1949
|
}
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
collection: 'app.bsky.graph.listblock',
|
|
1963
|
-
...params,
|
|
1964
|
-
});
|
|
1965
|
-
return res.data;
|
|
1950
|
+
sendMessageBatch(data, opts) {
|
|
1951
|
+
return this._client.call('chat.bsky.convo.sendMessageBatch', opts?.qp, data, opts);
|
|
1966
1952
|
}
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1970
|
-
return res.data;
|
|
1953
|
+
unmuteConvo(data, opts) {
|
|
1954
|
+
return this._client.call('chat.bsky.convo.unmuteConvo', opts?.qp, data, opts);
|
|
1971
1955
|
}
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1975
|
-
return res.data;
|
|
1956
|
+
updateAllRead(data, opts) {
|
|
1957
|
+
return this._client.call('chat.bsky.convo.updateAllRead', opts?.qp, data, opts);
|
|
1976
1958
|
}
|
|
1977
|
-
|
|
1978
|
-
|
|
1959
|
+
updateRead(data, opts) {
|
|
1960
|
+
return this._client.call('chat.bsky.convo.updateRead', opts?.qp, data, opts);
|
|
1979
1961
|
}
|
|
1980
1962
|
}
|
|
1981
|
-
exports.
|
|
1982
|
-
class
|
|
1963
|
+
exports.ChatBskyConvoNS = ChatBskyConvoNS;
|
|
1964
|
+
class ChatBskyModerationNS {
|
|
1983
1965
|
constructor(client) {
|
|
1984
1966
|
Object.defineProperty(this, "_client", {
|
|
1985
1967
|
enumerable: true,
|
|
@@ -1989,36 +1971,18 @@ class AppBskyGraphListitemRecord {
|
|
|
1989
1971
|
});
|
|
1990
1972
|
this._client = client;
|
|
1991
1973
|
}
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
collection: 'app.bsky.graph.listitem',
|
|
1995
|
-
...params,
|
|
1996
|
-
});
|
|
1997
|
-
return res.data;
|
|
1998
|
-
}
|
|
1999
|
-
async get(params) {
|
|
2000
|
-
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
2001
|
-
collection: 'app.bsky.graph.listitem',
|
|
2002
|
-
...params,
|
|
2003
|
-
});
|
|
2004
|
-
return res.data;
|
|
2005
|
-
}
|
|
2006
|
-
async create(params, record, headers) {
|
|
2007
|
-
const collection = 'app.bsky.graph.listitem';
|
|
2008
|
-
const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
2009
|
-
return res.data;
|
|
1974
|
+
getActorMetadata(params, opts) {
|
|
1975
|
+
return this._client.call('chat.bsky.moderation.getActorMetadata', params, undefined, opts);
|
|
2010
1976
|
}
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
2014
|
-
return res.data;
|
|
1977
|
+
getMessageContext(params, opts) {
|
|
1978
|
+
return this._client.call('chat.bsky.moderation.getMessageContext', params, undefined, opts);
|
|
2015
1979
|
}
|
|
2016
|
-
|
|
2017
|
-
|
|
1980
|
+
updateActorAccess(data, opts) {
|
|
1981
|
+
return this._client.call('chat.bsky.moderation.updateActorAccess', opts?.qp, data, opts);
|
|
2018
1982
|
}
|
|
2019
1983
|
}
|
|
2020
|
-
exports.
|
|
2021
|
-
class
|
|
1984
|
+
exports.ChatBskyModerationNS = ChatBskyModerationNS;
|
|
1985
|
+
class ComNS {
|
|
2022
1986
|
constructor(client) {
|
|
2023
1987
|
Object.defineProperty(this, "_client", {
|
|
2024
1988
|
enumerable: true,
|
|
@@ -2026,38 +1990,18 @@ class AppBskyGraphStarterpackRecord {
|
|
|
2026
1990
|
writable: true,
|
|
2027
1991
|
value: void 0
|
|
2028
1992
|
});
|
|
2029
|
-
this
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
...params,
|
|
2035
|
-
});
|
|
2036
|
-
return res.data;
|
|
2037
|
-
}
|
|
2038
|
-
async get(params) {
|
|
2039
|
-
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
2040
|
-
collection: 'app.bsky.graph.starterpack',
|
|
2041
|
-
...params,
|
|
1993
|
+
Object.defineProperty(this, "atproto", {
|
|
1994
|
+
enumerable: true,
|
|
1995
|
+
configurable: true,
|
|
1996
|
+
writable: true,
|
|
1997
|
+
value: void 0
|
|
2042
1998
|
});
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
async create(params, record, headers) {
|
|
2046
|
-
const collection = 'app.bsky.graph.starterpack';
|
|
2047
|
-
const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
2048
|
-
return res.data;
|
|
2049
|
-
}
|
|
2050
|
-
async put(params, record, headers) {
|
|
2051
|
-
const collection = 'app.bsky.graph.starterpack';
|
|
2052
|
-
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
2053
|
-
return res.data;
|
|
2054
|
-
}
|
|
2055
|
-
async delete(params, headers) {
|
|
2056
|
-
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.graph.starterpack', ...params }, { headers });
|
|
1999
|
+
this._client = client;
|
|
2000
|
+
this.atproto = new ComAtprotoNS(client);
|
|
2057
2001
|
}
|
|
2058
2002
|
}
|
|
2059
|
-
exports.
|
|
2060
|
-
class
|
|
2003
|
+
exports.ComNS = ComNS;
|
|
2004
|
+
class ComAtprotoNS {
|
|
2061
2005
|
constructor(client) {
|
|
2062
2006
|
Object.defineProperty(this, "_client", {
|
|
2063
2007
|
enumerable: true,
|
|
@@ -2065,104 +2009,74 @@ class AppBskyGraphVerificationRecord {
|
|
|
2065
2009
|
writable: true,
|
|
2066
2010
|
value: void 0
|
|
2067
2011
|
});
|
|
2068
|
-
this
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
...params,
|
|
2012
|
+
Object.defineProperty(this, "admin", {
|
|
2013
|
+
enumerable: true,
|
|
2014
|
+
configurable: true,
|
|
2015
|
+
writable: true,
|
|
2016
|
+
value: void 0
|
|
2074
2017
|
});
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
...params,
|
|
2018
|
+
Object.defineProperty(this, "identity", {
|
|
2019
|
+
enumerable: true,
|
|
2020
|
+
configurable: true,
|
|
2021
|
+
writable: true,
|
|
2022
|
+
value: void 0
|
|
2081
2023
|
});
|
|
2082
|
-
|
|
2083
|
-
}
|
|
2084
|
-
async create(params, record, headers) {
|
|
2085
|
-
const collection = 'app.bsky.graph.verification';
|
|
2086
|
-
const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
2087
|
-
return res.data;
|
|
2088
|
-
}
|
|
2089
|
-
async put(params, record, headers) {
|
|
2090
|
-
const collection = 'app.bsky.graph.verification';
|
|
2091
|
-
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
2092
|
-
return res.data;
|
|
2093
|
-
}
|
|
2094
|
-
async delete(params, headers) {
|
|
2095
|
-
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.graph.verification', ...params }, { headers });
|
|
2096
|
-
}
|
|
2097
|
-
}
|
|
2098
|
-
exports.AppBskyGraphVerificationRecord = AppBskyGraphVerificationRecord;
|
|
2099
|
-
class AppBskyLabelerNS {
|
|
2100
|
-
constructor(client) {
|
|
2101
|
-
Object.defineProperty(this, "_client", {
|
|
2024
|
+
Object.defineProperty(this, "label", {
|
|
2102
2025
|
enumerable: true,
|
|
2103
2026
|
configurable: true,
|
|
2104
2027
|
writable: true,
|
|
2105
2028
|
value: void 0
|
|
2106
2029
|
});
|
|
2107
|
-
Object.defineProperty(this, "
|
|
2030
|
+
Object.defineProperty(this, "lexicon", {
|
|
2108
2031
|
enumerable: true,
|
|
2109
2032
|
configurable: true,
|
|
2110
2033
|
writable: true,
|
|
2111
2034
|
value: void 0
|
|
2112
2035
|
});
|
|
2113
|
-
this
|
|
2114
|
-
this.service = new AppBskyLabelerServiceRecord(client);
|
|
2115
|
-
}
|
|
2116
|
-
getServices(params, opts) {
|
|
2117
|
-
return this._client.call('app.bsky.labeler.getServices', params, undefined, opts);
|
|
2118
|
-
}
|
|
2119
|
-
}
|
|
2120
|
-
exports.AppBskyLabelerNS = AppBskyLabelerNS;
|
|
2121
|
-
class AppBskyLabelerServiceRecord {
|
|
2122
|
-
constructor(client) {
|
|
2123
|
-
Object.defineProperty(this, "_client", {
|
|
2036
|
+
Object.defineProperty(this, "moderation", {
|
|
2124
2037
|
enumerable: true,
|
|
2125
2038
|
configurable: true,
|
|
2126
2039
|
writable: true,
|
|
2127
2040
|
value: void 0
|
|
2128
2041
|
});
|
|
2129
|
-
this
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
...params,
|
|
2042
|
+
Object.defineProperty(this, "repo", {
|
|
2043
|
+
enumerable: true,
|
|
2044
|
+
configurable: true,
|
|
2045
|
+
writable: true,
|
|
2046
|
+
value: void 0
|
|
2135
2047
|
});
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
...params,
|
|
2048
|
+
Object.defineProperty(this, "server", {
|
|
2049
|
+
enumerable: true,
|
|
2050
|
+
configurable: true,
|
|
2051
|
+
writable: true,
|
|
2052
|
+
value: void 0
|
|
2142
2053
|
});
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2054
|
+
Object.defineProperty(this, "sync", {
|
|
2055
|
+
enumerable: true,
|
|
2056
|
+
configurable: true,
|
|
2057
|
+
writable: true,
|
|
2058
|
+
value: void 0
|
|
2059
|
+
});
|
|
2060
|
+
Object.defineProperty(this, "temp", {
|
|
2061
|
+
enumerable: true,
|
|
2062
|
+
configurable: true,
|
|
2063
|
+
writable: true,
|
|
2064
|
+
value: void 0
|
|
2065
|
+
});
|
|
2066
|
+
this._client = client;
|
|
2067
|
+
this.admin = new ComAtprotoAdminNS(client);
|
|
2068
|
+
this.identity = new ComAtprotoIdentityNS(client);
|
|
2069
|
+
this.label = new ComAtprotoLabelNS(client);
|
|
2070
|
+
this.lexicon = new ComAtprotoLexiconNS(client);
|
|
2071
|
+
this.moderation = new ComAtprotoModerationNS(client);
|
|
2072
|
+
this.repo = new ComAtprotoRepoNS(client);
|
|
2073
|
+
this.server = new ComAtprotoServerNS(client);
|
|
2074
|
+
this.sync = new ComAtprotoSyncNS(client);
|
|
2075
|
+
this.temp = new ComAtprotoTempNS(client);
|
|
2162
2076
|
}
|
|
2163
2077
|
}
|
|
2164
|
-
exports.
|
|
2165
|
-
class
|
|
2078
|
+
exports.ComAtprotoNS = ComAtprotoNS;
|
|
2079
|
+
class ComAtprotoAdminNS {
|
|
2166
2080
|
constructor(client) {
|
|
2167
2081
|
Object.defineProperty(this, "_client", {
|
|
2168
2082
|
enumerable: true,
|
|
@@ -2170,48 +2084,145 @@ class AppBskyNotificationNS {
|
|
|
2170
2084
|
writable: true,
|
|
2171
2085
|
value: void 0
|
|
2172
2086
|
});
|
|
2173
|
-
|
|
2087
|
+
this._client = client;
|
|
2088
|
+
}
|
|
2089
|
+
deleteAccount(data, opts) {
|
|
2090
|
+
return this._client.call('com.atproto.admin.deleteAccount', opts?.qp, data, opts);
|
|
2091
|
+
}
|
|
2092
|
+
disableAccountInvites(data, opts) {
|
|
2093
|
+
return this._client.call('com.atproto.admin.disableAccountInvites', opts?.qp, data, opts);
|
|
2094
|
+
}
|
|
2095
|
+
disableInviteCodes(data, opts) {
|
|
2096
|
+
return this._client.call('com.atproto.admin.disableInviteCodes', opts?.qp, data, opts);
|
|
2097
|
+
}
|
|
2098
|
+
enableAccountInvites(data, opts) {
|
|
2099
|
+
return this._client.call('com.atproto.admin.enableAccountInvites', opts?.qp, data, opts);
|
|
2100
|
+
}
|
|
2101
|
+
getAccountInfo(params, opts) {
|
|
2102
|
+
return this._client.call('com.atproto.admin.getAccountInfo', params, undefined, opts);
|
|
2103
|
+
}
|
|
2104
|
+
getAccountInfos(params, opts) {
|
|
2105
|
+
return this._client.call('com.atproto.admin.getAccountInfos', params, undefined, opts);
|
|
2106
|
+
}
|
|
2107
|
+
getInviteCodes(params, opts) {
|
|
2108
|
+
return this._client.call('com.atproto.admin.getInviteCodes', params, undefined, opts);
|
|
2109
|
+
}
|
|
2110
|
+
getSubjectStatus(params, opts) {
|
|
2111
|
+
return this._client.call('com.atproto.admin.getSubjectStatus', params, undefined, opts);
|
|
2112
|
+
}
|
|
2113
|
+
searchAccounts(params, opts) {
|
|
2114
|
+
return this._client.call('com.atproto.admin.searchAccounts', params, undefined, opts);
|
|
2115
|
+
}
|
|
2116
|
+
sendEmail(data, opts) {
|
|
2117
|
+
return this._client.call('com.atproto.admin.sendEmail', opts?.qp, data, opts);
|
|
2118
|
+
}
|
|
2119
|
+
updateAccountEmail(data, opts) {
|
|
2120
|
+
return this._client.call('com.atproto.admin.updateAccountEmail', opts?.qp, data, opts);
|
|
2121
|
+
}
|
|
2122
|
+
updateAccountHandle(data, opts) {
|
|
2123
|
+
return this._client.call('com.atproto.admin.updateAccountHandle', opts?.qp, data, opts);
|
|
2124
|
+
}
|
|
2125
|
+
updateAccountPassword(data, opts) {
|
|
2126
|
+
return this._client.call('com.atproto.admin.updateAccountPassword', opts?.qp, data, opts);
|
|
2127
|
+
}
|
|
2128
|
+
updateAccountSigningKey(data, opts) {
|
|
2129
|
+
return this._client.call('com.atproto.admin.updateAccountSigningKey', opts?.qp, data, opts);
|
|
2130
|
+
}
|
|
2131
|
+
updateSubjectStatus(data, opts) {
|
|
2132
|
+
return this._client.call('com.atproto.admin.updateSubjectStatus', opts?.qp, data, opts);
|
|
2133
|
+
}
|
|
2134
|
+
}
|
|
2135
|
+
exports.ComAtprotoAdminNS = ComAtprotoAdminNS;
|
|
2136
|
+
class ComAtprotoIdentityNS {
|
|
2137
|
+
constructor(client) {
|
|
2138
|
+
Object.defineProperty(this, "_client", {
|
|
2174
2139
|
enumerable: true,
|
|
2175
2140
|
configurable: true,
|
|
2176
2141
|
writable: true,
|
|
2177
2142
|
value: void 0
|
|
2178
2143
|
});
|
|
2179
2144
|
this._client = client;
|
|
2180
|
-
this.declaration = new AppBskyNotificationDeclarationRecord(client);
|
|
2181
2145
|
}
|
|
2182
|
-
|
|
2183
|
-
return this._client.call('
|
|
2146
|
+
getRecommendedDidCredentials(params, opts) {
|
|
2147
|
+
return this._client.call('com.atproto.identity.getRecommendedDidCredentials', params, undefined, opts);
|
|
2184
2148
|
}
|
|
2185
|
-
|
|
2186
|
-
return this._client
|
|
2149
|
+
refreshIdentity(data, opts) {
|
|
2150
|
+
return this._client
|
|
2151
|
+
.call('com.atproto.identity.refreshIdentity', opts?.qp, data, opts)
|
|
2152
|
+
.catch((e) => {
|
|
2153
|
+
throw ComAtprotoIdentityRefreshIdentity.toKnownErr(e);
|
|
2154
|
+
});
|
|
2187
2155
|
}
|
|
2188
|
-
|
|
2189
|
-
return this._client.call('
|
|
2156
|
+
requestPlcOperationSignature(data, opts) {
|
|
2157
|
+
return this._client.call('com.atproto.identity.requestPlcOperationSignature', opts?.qp, data, opts);
|
|
2190
2158
|
}
|
|
2191
|
-
|
|
2192
|
-
return this._client
|
|
2159
|
+
resolveDid(params, opts) {
|
|
2160
|
+
return this._client
|
|
2161
|
+
.call('com.atproto.identity.resolveDid', params, undefined, opts)
|
|
2162
|
+
.catch((e) => {
|
|
2163
|
+
throw ComAtprotoIdentityResolveDid.toKnownErr(e);
|
|
2164
|
+
});
|
|
2193
2165
|
}
|
|
2194
|
-
|
|
2195
|
-
return this._client
|
|
2166
|
+
resolveHandle(params, opts) {
|
|
2167
|
+
return this._client
|
|
2168
|
+
.call('com.atproto.identity.resolveHandle', params, undefined, opts)
|
|
2169
|
+
.catch((e) => {
|
|
2170
|
+
throw ComAtprotoIdentityResolveHandle.toKnownErr(e);
|
|
2171
|
+
});
|
|
2196
2172
|
}
|
|
2197
|
-
|
|
2198
|
-
return this._client
|
|
2173
|
+
resolveIdentity(params, opts) {
|
|
2174
|
+
return this._client
|
|
2175
|
+
.call('com.atproto.identity.resolveIdentity', params, undefined, opts)
|
|
2176
|
+
.catch((e) => {
|
|
2177
|
+
throw ComAtprotoIdentityResolveIdentity.toKnownErr(e);
|
|
2178
|
+
});
|
|
2199
2179
|
}
|
|
2200
|
-
|
|
2201
|
-
return this._client.call('
|
|
2180
|
+
signPlcOperation(data, opts) {
|
|
2181
|
+
return this._client.call('com.atproto.identity.signPlcOperation', opts?.qp, data, opts);
|
|
2202
2182
|
}
|
|
2203
|
-
|
|
2204
|
-
return this._client.call('
|
|
2183
|
+
submitPlcOperation(data, opts) {
|
|
2184
|
+
return this._client.call('com.atproto.identity.submitPlcOperation', opts?.qp, data, opts);
|
|
2205
2185
|
}
|
|
2206
|
-
|
|
2207
|
-
return this._client.call('
|
|
2186
|
+
updateHandle(data, opts) {
|
|
2187
|
+
return this._client.call('com.atproto.identity.updateHandle', opts?.qp, data, opts);
|
|
2208
2188
|
}
|
|
2209
|
-
|
|
2210
|
-
|
|
2189
|
+
}
|
|
2190
|
+
exports.ComAtprotoIdentityNS = ComAtprotoIdentityNS;
|
|
2191
|
+
class ComAtprotoLabelNS {
|
|
2192
|
+
constructor(client) {
|
|
2193
|
+
Object.defineProperty(this, "_client", {
|
|
2194
|
+
enumerable: true,
|
|
2195
|
+
configurable: true,
|
|
2196
|
+
writable: true,
|
|
2197
|
+
value: void 0
|
|
2198
|
+
});
|
|
2199
|
+
this._client = client;
|
|
2200
|
+
}
|
|
2201
|
+
queryLabels(params, opts) {
|
|
2202
|
+
return this._client.call('com.atproto.label.queryLabels', params, undefined, opts);
|
|
2211
2203
|
}
|
|
2212
2204
|
}
|
|
2213
|
-
exports.
|
|
2214
|
-
class
|
|
2205
|
+
exports.ComAtprotoLabelNS = ComAtprotoLabelNS;
|
|
2206
|
+
class ComAtprotoLexiconNS {
|
|
2207
|
+
constructor(client) {
|
|
2208
|
+
Object.defineProperty(this, "_client", {
|
|
2209
|
+
enumerable: true,
|
|
2210
|
+
configurable: true,
|
|
2211
|
+
writable: true,
|
|
2212
|
+
value: void 0
|
|
2213
|
+
});
|
|
2214
|
+
Object.defineProperty(this, "schema", {
|
|
2215
|
+
enumerable: true,
|
|
2216
|
+
configurable: true,
|
|
2217
|
+
writable: true,
|
|
2218
|
+
value: void 0
|
|
2219
|
+
});
|
|
2220
|
+
this._client = client;
|
|
2221
|
+
this.schema = new ComAtprotoLexiconSchemaRecord(client);
|
|
2222
|
+
}
|
|
2223
|
+
}
|
|
2224
|
+
exports.ComAtprotoLexiconNS = ComAtprotoLexiconNS;
|
|
2225
|
+
class ComAtprotoLexiconSchemaRecord {
|
|
2215
2226
|
constructor(client) {
|
|
2216
2227
|
Object.defineProperty(this, "_client", {
|
|
2217
2228
|
enumerable: true,
|
|
@@ -2223,39 +2234,34 @@ class AppBskyNotificationDeclarationRecord {
|
|
|
2223
2234
|
}
|
|
2224
2235
|
async list(params) {
|
|
2225
2236
|
const res = await this._client.call('com.atproto.repo.listRecords', {
|
|
2226
|
-
collection: '
|
|
2237
|
+
collection: 'com.atproto.lexicon.schema',
|
|
2227
2238
|
...params,
|
|
2228
2239
|
});
|
|
2229
2240
|
return res.data;
|
|
2230
2241
|
}
|
|
2231
2242
|
async get(params) {
|
|
2232
2243
|
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
2233
|
-
collection: '
|
|
2244
|
+
collection: 'com.atproto.lexicon.schema',
|
|
2234
2245
|
...params,
|
|
2235
2246
|
});
|
|
2236
2247
|
return res.data;
|
|
2237
2248
|
}
|
|
2238
2249
|
async create(params, record, headers) {
|
|
2239
|
-
const collection = '
|
|
2240
|
-
const res = await this._client.call('com.atproto.repo.createRecord', undefined, {
|
|
2241
|
-
collection,
|
|
2242
|
-
rkey: 'self',
|
|
2243
|
-
...params,
|
|
2244
|
-
record: { ...record, $type: collection },
|
|
2245
|
-
}, { encoding: 'application/json', headers });
|
|
2250
|
+
const collection = 'com.atproto.lexicon.schema';
|
|
2251
|
+
const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
2246
2252
|
return res.data;
|
|
2247
2253
|
}
|
|
2248
2254
|
async put(params, record, headers) {
|
|
2249
|
-
const collection = '
|
|
2255
|
+
const collection = 'com.atproto.lexicon.schema';
|
|
2250
2256
|
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
2251
2257
|
return res.data;
|
|
2252
2258
|
}
|
|
2253
2259
|
async delete(params, headers) {
|
|
2254
|
-
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: '
|
|
2260
|
+
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'com.atproto.lexicon.schema', ...params }, { headers });
|
|
2255
2261
|
}
|
|
2256
2262
|
}
|
|
2257
|
-
exports.
|
|
2258
|
-
class
|
|
2263
|
+
exports.ComAtprotoLexiconSchemaRecord = ComAtprotoLexiconSchemaRecord;
|
|
2264
|
+
class ComAtprotoModerationNS {
|
|
2259
2265
|
constructor(client) {
|
|
2260
2266
|
Object.defineProperty(this, "_client", {
|
|
2261
2267
|
enumerable: true,
|
|
@@ -2265,9 +2271,12 @@ class AppBskyRichtextNS {
|
|
|
2265
2271
|
});
|
|
2266
2272
|
this._client = client;
|
|
2267
2273
|
}
|
|
2274
|
+
createReport(data, opts) {
|
|
2275
|
+
return this._client.call('com.atproto.moderation.createReport', opts?.qp, data, opts);
|
|
2276
|
+
}
|
|
2268
2277
|
}
|
|
2269
|
-
exports.
|
|
2270
|
-
class
|
|
2278
|
+
exports.ComAtprotoModerationNS = ComAtprotoModerationNS;
|
|
2279
|
+
class ComAtprotoRepoNS {
|
|
2271
2280
|
constructor(client) {
|
|
2272
2281
|
Object.defineProperty(this, "_client", {
|
|
2273
2282
|
enumerable: true,
|
|
@@ -2277,227 +2286,190 @@ class AppBskyUnspeccedNS {
|
|
|
2277
2286
|
});
|
|
2278
2287
|
this._client = client;
|
|
2279
2288
|
}
|
|
2280
|
-
|
|
2281
|
-
return this._client
|
|
2289
|
+
applyWrites(data, opts) {
|
|
2290
|
+
return this._client
|
|
2291
|
+
.call('com.atproto.repo.applyWrites', opts?.qp, data, opts)
|
|
2292
|
+
.catch((e) => {
|
|
2293
|
+
throw ComAtprotoRepoApplyWrites.toKnownErr(e);
|
|
2294
|
+
});
|
|
2282
2295
|
}
|
|
2283
|
-
|
|
2284
|
-
return this._client
|
|
2296
|
+
createRecord(data, opts) {
|
|
2297
|
+
return this._client
|
|
2298
|
+
.call('com.atproto.repo.createRecord', opts?.qp, data, opts)
|
|
2299
|
+
.catch((e) => {
|
|
2300
|
+
throw ComAtprotoRepoCreateRecord.toKnownErr(e);
|
|
2301
|
+
});
|
|
2285
2302
|
}
|
|
2286
|
-
|
|
2287
|
-
return this._client
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
getPostThreadV2(params, opts) {
|
|
2293
|
-
return this._client.call('app.bsky.unspecced.getPostThreadV2', params, undefined, opts);
|
|
2294
|
-
}
|
|
2295
|
-
getSuggestedFeeds(params, opts) {
|
|
2296
|
-
return this._client.call('app.bsky.unspecced.getSuggestedFeeds', params, undefined, opts);
|
|
2303
|
+
deleteRecord(data, opts) {
|
|
2304
|
+
return this._client
|
|
2305
|
+
.call('com.atproto.repo.deleteRecord', opts?.qp, data, opts)
|
|
2306
|
+
.catch((e) => {
|
|
2307
|
+
throw ComAtprotoRepoDeleteRecord.toKnownErr(e);
|
|
2308
|
+
});
|
|
2297
2309
|
}
|
|
2298
|
-
|
|
2299
|
-
return this._client.call('
|
|
2310
|
+
describeRepo(params, opts) {
|
|
2311
|
+
return this._client.call('com.atproto.repo.describeRepo', params, undefined, opts);
|
|
2300
2312
|
}
|
|
2301
|
-
|
|
2302
|
-
return this._client
|
|
2313
|
+
getRecord(params, opts) {
|
|
2314
|
+
return this._client
|
|
2315
|
+
.call('com.atproto.repo.getRecord', params, undefined, opts)
|
|
2316
|
+
.catch((e) => {
|
|
2317
|
+
throw ComAtprotoRepoGetRecord.toKnownErr(e);
|
|
2318
|
+
});
|
|
2303
2319
|
}
|
|
2304
|
-
|
|
2305
|
-
return this._client.call('
|
|
2320
|
+
importRepo(data, opts) {
|
|
2321
|
+
return this._client.call('com.atproto.repo.importRepo', opts?.qp, data, opts);
|
|
2306
2322
|
}
|
|
2307
|
-
|
|
2308
|
-
return this._client.call('
|
|
2323
|
+
listMissingBlobs(params, opts) {
|
|
2324
|
+
return this._client.call('com.atproto.repo.listMissingBlobs', params, undefined, opts);
|
|
2309
2325
|
}
|
|
2310
|
-
|
|
2311
|
-
return this._client.call('
|
|
2326
|
+
listRecords(params, opts) {
|
|
2327
|
+
return this._client.call('com.atproto.repo.listRecords', params, undefined, opts);
|
|
2312
2328
|
}
|
|
2313
|
-
|
|
2314
|
-
return this._client
|
|
2329
|
+
putRecord(data, opts) {
|
|
2330
|
+
return this._client
|
|
2331
|
+
.call('com.atproto.repo.putRecord', opts?.qp, data, opts)
|
|
2332
|
+
.catch((e) => {
|
|
2333
|
+
throw ComAtprotoRepoPutRecord.toKnownErr(e);
|
|
2334
|
+
});
|
|
2315
2335
|
}
|
|
2316
|
-
|
|
2317
|
-
return this._client.call('
|
|
2336
|
+
uploadBlob(data, opts) {
|
|
2337
|
+
return this._client.call('com.atproto.repo.uploadBlob', opts?.qp, data, opts);
|
|
2318
2338
|
}
|
|
2319
|
-
|
|
2320
|
-
|
|
2339
|
+
}
|
|
2340
|
+
exports.ComAtprotoRepoNS = ComAtprotoRepoNS;
|
|
2341
|
+
class ComAtprotoServerNS {
|
|
2342
|
+
constructor(client) {
|
|
2343
|
+
Object.defineProperty(this, "_client", {
|
|
2344
|
+
enumerable: true,
|
|
2345
|
+
configurable: true,
|
|
2346
|
+
writable: true,
|
|
2347
|
+
value: void 0
|
|
2348
|
+
});
|
|
2349
|
+
this._client = client;
|
|
2321
2350
|
}
|
|
2322
|
-
|
|
2323
|
-
return this._client.call('
|
|
2351
|
+
activateAccount(data, opts) {
|
|
2352
|
+
return this._client.call('com.atproto.server.activateAccount', opts?.qp, data, opts);
|
|
2324
2353
|
}
|
|
2325
|
-
|
|
2326
|
-
return this._client.call('
|
|
2354
|
+
checkAccountStatus(params, opts) {
|
|
2355
|
+
return this._client.call('com.atproto.server.checkAccountStatus', params, undefined, opts);
|
|
2327
2356
|
}
|
|
2328
|
-
|
|
2357
|
+
confirmEmail(data, opts) {
|
|
2329
2358
|
return this._client
|
|
2330
|
-
.call('
|
|
2359
|
+
.call('com.atproto.server.confirmEmail', opts?.qp, data, opts)
|
|
2331
2360
|
.catch((e) => {
|
|
2332
|
-
throw
|
|
2361
|
+
throw ComAtprotoServerConfirmEmail.toKnownErr(e);
|
|
2333
2362
|
});
|
|
2334
2363
|
}
|
|
2335
|
-
|
|
2364
|
+
createAccount(data, opts) {
|
|
2336
2365
|
return this._client
|
|
2337
|
-
.call('
|
|
2366
|
+
.call('com.atproto.server.createAccount', opts?.qp, data, opts)
|
|
2338
2367
|
.catch((e) => {
|
|
2339
|
-
throw
|
|
2368
|
+
throw ComAtprotoServerCreateAccount.toKnownErr(e);
|
|
2340
2369
|
});
|
|
2341
2370
|
}
|
|
2342
|
-
|
|
2371
|
+
createAppPassword(data, opts) {
|
|
2343
2372
|
return this._client
|
|
2344
|
-
.call('
|
|
2373
|
+
.call('com.atproto.server.createAppPassword', opts?.qp, data, opts)
|
|
2345
2374
|
.catch((e) => {
|
|
2346
|
-
throw
|
|
2375
|
+
throw ComAtprotoServerCreateAppPassword.toKnownErr(e);
|
|
2347
2376
|
});
|
|
2348
2377
|
}
|
|
2349
|
-
|
|
2378
|
+
createInviteCode(data, opts) {
|
|
2379
|
+
return this._client.call('com.atproto.server.createInviteCode', opts?.qp, data, opts);
|
|
2380
|
+
}
|
|
2381
|
+
createInviteCodes(data, opts) {
|
|
2382
|
+
return this._client.call('com.atproto.server.createInviteCodes', opts?.qp, data, opts);
|
|
2383
|
+
}
|
|
2384
|
+
createSession(data, opts) {
|
|
2350
2385
|
return this._client
|
|
2351
|
-
.call('
|
|
2386
|
+
.call('com.atproto.server.createSession', opts?.qp, data, opts)
|
|
2352
2387
|
.catch((e) => {
|
|
2353
|
-
throw
|
|
2388
|
+
throw ComAtprotoServerCreateSession.toKnownErr(e);
|
|
2354
2389
|
});
|
|
2355
2390
|
}
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
class AppBskyVideoNS {
|
|
2359
|
-
constructor(client) {
|
|
2360
|
-
Object.defineProperty(this, "_client", {
|
|
2361
|
-
enumerable: true,
|
|
2362
|
-
configurable: true,
|
|
2363
|
-
writable: true,
|
|
2364
|
-
value: void 0
|
|
2365
|
-
});
|
|
2366
|
-
this._client = client;
|
|
2391
|
+
deactivateAccount(data, opts) {
|
|
2392
|
+
return this._client.call('com.atproto.server.deactivateAccount', opts?.qp, data, opts);
|
|
2367
2393
|
}
|
|
2368
|
-
|
|
2369
|
-
return this._client
|
|
2394
|
+
deleteAccount(data, opts) {
|
|
2395
|
+
return this._client
|
|
2396
|
+
.call('com.atproto.server.deleteAccount', opts?.qp, data, opts)
|
|
2397
|
+
.catch((e) => {
|
|
2398
|
+
throw ComAtprotoServerDeleteAccount.toKnownErr(e);
|
|
2399
|
+
});
|
|
2370
2400
|
}
|
|
2371
|
-
|
|
2372
|
-
return this._client.call('
|
|
2401
|
+
deleteSession(data, opts) {
|
|
2402
|
+
return this._client.call('com.atproto.server.deleteSession', opts?.qp, data, opts);
|
|
2373
2403
|
}
|
|
2374
|
-
|
|
2375
|
-
return this._client.call('
|
|
2404
|
+
describeServer(params, opts) {
|
|
2405
|
+
return this._client.call('com.atproto.server.describeServer', params, undefined, opts);
|
|
2376
2406
|
}
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
enumerable: true,
|
|
2383
|
-
configurable: true,
|
|
2384
|
-
writable: true,
|
|
2385
|
-
value: void 0
|
|
2386
|
-
});
|
|
2387
|
-
Object.defineProperty(this, "bsky", {
|
|
2388
|
-
enumerable: true,
|
|
2389
|
-
configurable: true,
|
|
2390
|
-
writable: true,
|
|
2391
|
-
value: void 0
|
|
2407
|
+
getAccountInviteCodes(params, opts) {
|
|
2408
|
+
return this._client
|
|
2409
|
+
.call('com.atproto.server.getAccountInviteCodes', params, undefined, opts)
|
|
2410
|
+
.catch((e) => {
|
|
2411
|
+
throw ComAtprotoServerGetAccountInviteCodes.toKnownErr(e);
|
|
2392
2412
|
});
|
|
2393
|
-
this._client = client;
|
|
2394
|
-
this.bsky = new ChatBskyNS(client);
|
|
2395
2413
|
}
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
enumerable: true,
|
|
2402
|
-
configurable: true,
|
|
2403
|
-
writable: true,
|
|
2404
|
-
value: void 0
|
|
2405
|
-
});
|
|
2406
|
-
Object.defineProperty(this, "actor", {
|
|
2407
|
-
enumerable: true,
|
|
2408
|
-
configurable: true,
|
|
2409
|
-
writable: true,
|
|
2410
|
-
value: void 0
|
|
2411
|
-
});
|
|
2412
|
-
Object.defineProperty(this, "convo", {
|
|
2413
|
-
enumerable: true,
|
|
2414
|
-
configurable: true,
|
|
2415
|
-
writable: true,
|
|
2416
|
-
value: void 0
|
|
2417
|
-
});
|
|
2418
|
-
Object.defineProperty(this, "moderation", {
|
|
2419
|
-
enumerable: true,
|
|
2420
|
-
configurable: true,
|
|
2421
|
-
writable: true,
|
|
2422
|
-
value: void 0
|
|
2414
|
+
getServiceAuth(params, opts) {
|
|
2415
|
+
return this._client
|
|
2416
|
+
.call('com.atproto.server.getServiceAuth', params, undefined, opts)
|
|
2417
|
+
.catch((e) => {
|
|
2418
|
+
throw ComAtprotoServerGetServiceAuth.toKnownErr(e);
|
|
2423
2419
|
});
|
|
2424
|
-
this._client = client;
|
|
2425
|
-
this.actor = new ChatBskyActorNS(client);
|
|
2426
|
-
this.convo = new ChatBskyConvoNS(client);
|
|
2427
|
-
this.moderation = new ChatBskyModerationNS(client);
|
|
2428
2420
|
}
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
value: void 0
|
|
2421
|
+
getSession(params, opts) {
|
|
2422
|
+
return this._client.call('com.atproto.server.getSession', params, undefined, opts);
|
|
2423
|
+
}
|
|
2424
|
+
listAppPasswords(params, opts) {
|
|
2425
|
+
return this._client
|
|
2426
|
+
.call('com.atproto.server.listAppPasswords', params, undefined, opts)
|
|
2427
|
+
.catch((e) => {
|
|
2428
|
+
throw ComAtprotoServerListAppPasswords.toKnownErr(e);
|
|
2438
2429
|
});
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2430
|
+
}
|
|
2431
|
+
refreshSession(data, opts) {
|
|
2432
|
+
return this._client
|
|
2433
|
+
.call('com.atproto.server.refreshSession', opts?.qp, data, opts)
|
|
2434
|
+
.catch((e) => {
|
|
2435
|
+
throw ComAtprotoServerRefreshSession.toKnownErr(e);
|
|
2444
2436
|
});
|
|
2445
|
-
this._client = client;
|
|
2446
|
-
this.declaration = new ChatBskyActorDeclarationRecord(client);
|
|
2447
2437
|
}
|
|
2448
|
-
|
|
2449
|
-
return this._client.call('
|
|
2438
|
+
requestAccountDelete(data, opts) {
|
|
2439
|
+
return this._client.call('com.atproto.server.requestAccountDelete', opts?.qp, data, opts);
|
|
2450
2440
|
}
|
|
2451
|
-
|
|
2452
|
-
return this._client.call('
|
|
2441
|
+
requestEmailConfirmation(data, opts) {
|
|
2442
|
+
return this._client.call('com.atproto.server.requestEmailConfirmation', opts?.qp, data, opts);
|
|
2453
2443
|
}
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
class ChatBskyActorDeclarationRecord {
|
|
2457
|
-
constructor(client) {
|
|
2458
|
-
Object.defineProperty(this, "_client", {
|
|
2459
|
-
enumerable: true,
|
|
2460
|
-
configurable: true,
|
|
2461
|
-
writable: true,
|
|
2462
|
-
value: void 0
|
|
2463
|
-
});
|
|
2464
|
-
this._client = client;
|
|
2444
|
+
requestEmailUpdate(data, opts) {
|
|
2445
|
+
return this._client.call('com.atproto.server.requestEmailUpdate', opts?.qp, data, opts);
|
|
2465
2446
|
}
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
collection: 'chat.bsky.actor.declaration',
|
|
2469
|
-
...params,
|
|
2470
|
-
});
|
|
2471
|
-
return res.data;
|
|
2447
|
+
requestPasswordReset(data, opts) {
|
|
2448
|
+
return this._client.call('com.atproto.server.requestPasswordReset', opts?.qp, data, opts);
|
|
2472
2449
|
}
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
collection: 'chat.bsky.actor.declaration',
|
|
2476
|
-
...params,
|
|
2477
|
-
});
|
|
2478
|
-
return res.data;
|
|
2450
|
+
reserveSigningKey(data, opts) {
|
|
2451
|
+
return this._client.call('com.atproto.server.reserveSigningKey', opts?.qp, data, opts);
|
|
2479
2452
|
}
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
record: { ...record, $type: collection },
|
|
2487
|
-
}, { encoding: 'application/json', headers });
|
|
2488
|
-
return res.data;
|
|
2453
|
+
resetPassword(data, opts) {
|
|
2454
|
+
return this._client
|
|
2455
|
+
.call('com.atproto.server.resetPassword', opts?.qp, data, opts)
|
|
2456
|
+
.catch((e) => {
|
|
2457
|
+
throw ComAtprotoServerResetPassword.toKnownErr(e);
|
|
2458
|
+
});
|
|
2489
2459
|
}
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
2493
|
-
return res.data;
|
|
2460
|
+
revokeAppPassword(data, opts) {
|
|
2461
|
+
return this._client.call('com.atproto.server.revokeAppPassword', opts?.qp, data, opts);
|
|
2494
2462
|
}
|
|
2495
|
-
|
|
2496
|
-
|
|
2463
|
+
updateEmail(data, opts) {
|
|
2464
|
+
return this._client
|
|
2465
|
+
.call('com.atproto.server.updateEmail', opts?.qp, data, opts)
|
|
2466
|
+
.catch((e) => {
|
|
2467
|
+
throw ComAtprotoServerUpdateEmail.toKnownErr(e);
|
|
2468
|
+
});
|
|
2497
2469
|
}
|
|
2498
2470
|
}
|
|
2499
|
-
exports.
|
|
2500
|
-
class
|
|
2471
|
+
exports.ComAtprotoServerNS = ComAtprotoServerNS;
|
|
2472
|
+
class ComAtprotoSyncNS {
|
|
2501
2473
|
constructor(client) {
|
|
2502
2474
|
Object.defineProperty(this, "_client", {
|
|
2503
2475
|
enumerable: true,
|
|
@@ -2507,68 +2479,94 @@ class ChatBskyConvoNS {
|
|
|
2507
2479
|
});
|
|
2508
2480
|
this._client = client;
|
|
2509
2481
|
}
|
|
2510
|
-
|
|
2511
|
-
return this._client.call('chat.bsky.convo.acceptConvo', opts?.qp, data, opts);
|
|
2512
|
-
}
|
|
2513
|
-
addReaction(data, opts) {
|
|
2482
|
+
getBlob(params, opts) {
|
|
2514
2483
|
return this._client
|
|
2515
|
-
.call('
|
|
2484
|
+
.call('com.atproto.sync.getBlob', params, undefined, opts)
|
|
2516
2485
|
.catch((e) => {
|
|
2517
|
-
throw
|
|
2486
|
+
throw ComAtprotoSyncGetBlob.toKnownErr(e);
|
|
2518
2487
|
});
|
|
2519
2488
|
}
|
|
2520
|
-
|
|
2521
|
-
return this._client
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2489
|
+
getBlocks(params, opts) {
|
|
2490
|
+
return this._client
|
|
2491
|
+
.call('com.atproto.sync.getBlocks', params, undefined, opts)
|
|
2492
|
+
.catch((e) => {
|
|
2493
|
+
throw ComAtprotoSyncGetBlocks.toKnownErr(e);
|
|
2494
|
+
});
|
|
2525
2495
|
}
|
|
2526
|
-
|
|
2527
|
-
return this._client.call('
|
|
2496
|
+
getCheckout(params, opts) {
|
|
2497
|
+
return this._client.call('com.atproto.sync.getCheckout', params, undefined, opts);
|
|
2528
2498
|
}
|
|
2529
|
-
|
|
2530
|
-
return this._client
|
|
2499
|
+
getHead(params, opts) {
|
|
2500
|
+
return this._client
|
|
2501
|
+
.call('com.atproto.sync.getHead', params, undefined, opts)
|
|
2502
|
+
.catch((e) => {
|
|
2503
|
+
throw ComAtprotoSyncGetHead.toKnownErr(e);
|
|
2504
|
+
});
|
|
2531
2505
|
}
|
|
2532
|
-
|
|
2533
|
-
return this._client
|
|
2506
|
+
getHostStatus(params, opts) {
|
|
2507
|
+
return this._client
|
|
2508
|
+
.call('com.atproto.sync.getHostStatus', params, undefined, opts)
|
|
2509
|
+
.catch((e) => {
|
|
2510
|
+
throw ComAtprotoSyncGetHostStatus.toKnownErr(e);
|
|
2511
|
+
});
|
|
2534
2512
|
}
|
|
2535
|
-
|
|
2536
|
-
return this._client
|
|
2513
|
+
getLatestCommit(params, opts) {
|
|
2514
|
+
return this._client
|
|
2515
|
+
.call('com.atproto.sync.getLatestCommit', params, undefined, opts)
|
|
2516
|
+
.catch((e) => {
|
|
2517
|
+
throw ComAtprotoSyncGetLatestCommit.toKnownErr(e);
|
|
2518
|
+
});
|
|
2537
2519
|
}
|
|
2538
|
-
|
|
2539
|
-
return this._client
|
|
2520
|
+
getRecord(params, opts) {
|
|
2521
|
+
return this._client
|
|
2522
|
+
.call('com.atproto.sync.getRecord', params, undefined, opts)
|
|
2523
|
+
.catch((e) => {
|
|
2524
|
+
throw ComAtprotoSyncGetRecord.toKnownErr(e);
|
|
2525
|
+
});
|
|
2540
2526
|
}
|
|
2541
|
-
|
|
2542
|
-
return this._client
|
|
2527
|
+
getRepo(params, opts) {
|
|
2528
|
+
return this._client
|
|
2529
|
+
.call('com.atproto.sync.getRepo', params, undefined, opts)
|
|
2530
|
+
.catch((e) => {
|
|
2531
|
+
throw ComAtprotoSyncGetRepo.toKnownErr(e);
|
|
2532
|
+
});
|
|
2543
2533
|
}
|
|
2544
|
-
|
|
2545
|
-
return this._client
|
|
2534
|
+
getRepoStatus(params, opts) {
|
|
2535
|
+
return this._client
|
|
2536
|
+
.call('com.atproto.sync.getRepoStatus', params, undefined, opts)
|
|
2537
|
+
.catch((e) => {
|
|
2538
|
+
throw ComAtprotoSyncGetRepoStatus.toKnownErr(e);
|
|
2539
|
+
});
|
|
2546
2540
|
}
|
|
2547
|
-
|
|
2541
|
+
listBlobs(params, opts) {
|
|
2548
2542
|
return this._client
|
|
2549
|
-
.call('
|
|
2543
|
+
.call('com.atproto.sync.listBlobs', params, undefined, opts)
|
|
2550
2544
|
.catch((e) => {
|
|
2551
|
-
throw
|
|
2545
|
+
throw ComAtprotoSyncListBlobs.toKnownErr(e);
|
|
2552
2546
|
});
|
|
2553
2547
|
}
|
|
2554
|
-
|
|
2555
|
-
return this._client.call('
|
|
2548
|
+
listHosts(params, opts) {
|
|
2549
|
+
return this._client.call('com.atproto.sync.listHosts', params, undefined, opts);
|
|
2556
2550
|
}
|
|
2557
|
-
|
|
2558
|
-
return this._client.call('
|
|
2551
|
+
listRepos(params, opts) {
|
|
2552
|
+
return this._client.call('com.atproto.sync.listRepos', params, undefined, opts);
|
|
2559
2553
|
}
|
|
2560
|
-
|
|
2561
|
-
return this._client.call('
|
|
2554
|
+
listReposByCollection(params, opts) {
|
|
2555
|
+
return this._client.call('com.atproto.sync.listReposByCollection', params, undefined, opts);
|
|
2562
2556
|
}
|
|
2563
|
-
|
|
2564
|
-
return this._client.call('
|
|
2557
|
+
notifyOfUpdate(data, opts) {
|
|
2558
|
+
return this._client.call('com.atproto.sync.notifyOfUpdate', opts?.qp, data, opts);
|
|
2565
2559
|
}
|
|
2566
|
-
|
|
2567
|
-
return this._client
|
|
2560
|
+
requestCrawl(data, opts) {
|
|
2561
|
+
return this._client
|
|
2562
|
+
.call('com.atproto.sync.requestCrawl', opts?.qp, data, opts)
|
|
2563
|
+
.catch((e) => {
|
|
2564
|
+
throw ComAtprotoSyncRequestCrawl.toKnownErr(e);
|
|
2565
|
+
});
|
|
2568
2566
|
}
|
|
2569
2567
|
}
|
|
2570
|
-
exports.
|
|
2571
|
-
class
|
|
2568
|
+
exports.ComAtprotoSyncNS = ComAtprotoSyncNS;
|
|
2569
|
+
class ComAtprotoTempNS {
|
|
2572
2570
|
constructor(client) {
|
|
2573
2571
|
Object.defineProperty(this, "_client", {
|
|
2574
2572
|
enumerable: true,
|
|
@@ -2578,17 +2576,27 @@ class ChatBskyModerationNS {
|
|
|
2578
2576
|
});
|
|
2579
2577
|
this._client = client;
|
|
2580
2578
|
}
|
|
2581
|
-
|
|
2582
|
-
return this._client.call('
|
|
2579
|
+
addReservedHandle(data, opts) {
|
|
2580
|
+
return this._client.call('com.atproto.temp.addReservedHandle', opts?.qp, data, opts);
|
|
2583
2581
|
}
|
|
2584
|
-
|
|
2585
|
-
return this._client
|
|
2582
|
+
checkHandleAvailability(params, opts) {
|
|
2583
|
+
return this._client
|
|
2584
|
+
.call('com.atproto.temp.checkHandleAvailability', params, undefined, opts)
|
|
2585
|
+
.catch((e) => {
|
|
2586
|
+
throw ComAtprotoTempCheckHandleAvailability.toKnownErr(e);
|
|
2587
|
+
});
|
|
2586
2588
|
}
|
|
2587
|
-
|
|
2588
|
-
return this._client.call('
|
|
2589
|
+
checkSignupQueue(params, opts) {
|
|
2590
|
+
return this._client.call('com.atproto.temp.checkSignupQueue', params, undefined, opts);
|
|
2591
|
+
}
|
|
2592
|
+
fetchLabels(params, opts) {
|
|
2593
|
+
return this._client.call('com.atproto.temp.fetchLabels', params, undefined, opts);
|
|
2594
|
+
}
|
|
2595
|
+
requestPhoneVerification(data, opts) {
|
|
2596
|
+
return this._client.call('com.atproto.temp.requestPhoneVerification', opts?.qp, data, opts);
|
|
2589
2597
|
}
|
|
2590
2598
|
}
|
|
2591
|
-
exports.
|
|
2599
|
+
exports.ComAtprotoTempNS = ComAtprotoTempNS;
|
|
2592
2600
|
class ToolsNS {
|
|
2593
2601
|
constructor(client) {
|
|
2594
2602
|
Object.defineProperty(this, "_client", {
|