@atproto/api 0.16.2 → 0.16.4
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 +430 -430
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +1372 -1372
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +16657 -16649
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +9330 -9326
- package/dist/client/lexicons.js.map +1 -1
- 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 +2546 -2546
- package/src/client/lexicons.ts +9420 -9415
- package/src/client/types/tools/ozone/moderation/queryEvents.ts +2 -0
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.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.
|
|
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"));
|
|
@@ -335,6 +243,98 @@ exports.ChatBskyConvoUpdateRead = __importStar(require("./types/chat/bsky/convo/
|
|
|
335
243
|
exports.ChatBskyModerationGetActorMetadata = __importStar(require("./types/chat/bsky/moderation/getActorMetadata.js"));
|
|
336
244
|
exports.ChatBskyModerationGetMessageContext = __importStar(require("./types/chat/bsky/moderation/getMessageContext.js"));
|
|
337
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"));
|
|
338
338
|
exports.ToolsOzoneCommunicationCreateTemplate = __importStar(require("./types/tools/ozone/communication/createTemplate.js"));
|
|
339
339
|
exports.ToolsOzoneCommunicationDefs = __importStar(require("./types/tools/ozone/communication/defs.js"));
|
|
340
340
|
exports.ToolsOzoneCommunicationDeleteTemplate = __importStar(require("./types/tools/ozone/communication/deleteTemplate.js"));
|
|
@@ -385,15 +385,6 @@ exports.ToolsOzoneVerificationDefs = __importStar(require("./types/tools/ozone/v
|
|
|
385
385
|
exports.ToolsOzoneVerificationGrantVerifications = __importStar(require("./types/tools/ozone/verification/grantVerifications.js"));
|
|
386
386
|
exports.ToolsOzoneVerificationListVerifications = __importStar(require("./types/tools/ozone/verification/listVerifications.js"));
|
|
387
387
|
exports.ToolsOzoneVerificationRevokeVerifications = __importStar(require("./types/tools/ozone/verification/revokeVerifications.js"));
|
|
388
|
-
exports.COM_ATPROTO_MODERATION = {
|
|
389
|
-
DefsReasonSpam: 'com.atproto.moderation.defs#reasonSpam',
|
|
390
|
-
DefsReasonViolation: 'com.atproto.moderation.defs#reasonViolation',
|
|
391
|
-
DefsReasonMisleading: 'com.atproto.moderation.defs#reasonMisleading',
|
|
392
|
-
DefsReasonSexual: 'com.atproto.moderation.defs#reasonSexual',
|
|
393
|
-
DefsReasonRude: 'com.atproto.moderation.defs#reasonRude',
|
|
394
|
-
DefsReasonOther: 'com.atproto.moderation.defs#reasonOther',
|
|
395
|
-
DefsReasonAppeal: 'com.atproto.moderation.defs#reasonAppeal',
|
|
396
|
-
};
|
|
397
388
|
exports.APP_BSKY_ACTOR = {
|
|
398
389
|
StatusLive: 'app.bsky.actor.status#live',
|
|
399
390
|
};
|
|
@@ -418,6 +409,15 @@ exports.APP_BSKY_GRAPH = {
|
|
|
418
409
|
DefsCuratelist: 'app.bsky.graph.defs#curatelist',
|
|
419
410
|
DefsReferencelist: 'app.bsky.graph.defs#referencelist',
|
|
420
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
|
+
};
|
|
421
421
|
exports.TOOLS_OZONE_MODERATION = {
|
|
422
422
|
DefsReviewOpen: 'tools.ozone.moderation.defs#reviewOpen',
|
|
423
423
|
DefsReviewEscalated: 'tools.ozone.moderation.defs#reviewEscalated',
|
|
@@ -436,19 +436,19 @@ exports.TOOLS_OZONE_TEAM = {
|
|
|
436
436
|
class AtpBaseClient extends xrpc_1.XrpcClient {
|
|
437
437
|
constructor(options) {
|
|
438
438
|
super(options, lexicons_js_1.schemas);
|
|
439
|
-
Object.defineProperty(this, "
|
|
439
|
+
Object.defineProperty(this, "app", {
|
|
440
440
|
enumerable: true,
|
|
441
441
|
configurable: true,
|
|
442
442
|
writable: true,
|
|
443
443
|
value: void 0
|
|
444
444
|
});
|
|
445
|
-
Object.defineProperty(this, "
|
|
445
|
+
Object.defineProperty(this, "chat", {
|
|
446
446
|
enumerable: true,
|
|
447
447
|
configurable: true,
|
|
448
448
|
writable: true,
|
|
449
449
|
value: void 0
|
|
450
450
|
});
|
|
451
|
-
Object.defineProperty(this, "
|
|
451
|
+
Object.defineProperty(this, "com", {
|
|
452
452
|
enumerable: true,
|
|
453
453
|
configurable: true,
|
|
454
454
|
writable: true,
|
|
@@ -460,9 +460,9 @@ class AtpBaseClient extends xrpc_1.XrpcClient {
|
|
|
460
460
|
writable: true,
|
|
461
461
|
value: void 0
|
|
462
462
|
});
|
|
463
|
-
this.com = new ComNS(this);
|
|
464
463
|
this.app = new AppNS(this);
|
|
465
464
|
this.chat = new ChatNS(this);
|
|
465
|
+
this.com = new ComNS(this);
|
|
466
466
|
this.tools = new ToolsNS(this);
|
|
467
467
|
}
|
|
468
468
|
/** @deprecated use `this` instead */
|
|
@@ -471,7 +471,7 @@ class AtpBaseClient extends xrpc_1.XrpcClient {
|
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
473
|
exports.AtpBaseClient = AtpBaseClient;
|
|
474
|
-
class
|
|
474
|
+
class AppNS {
|
|
475
475
|
constructor(client) {
|
|
476
476
|
Object.defineProperty(this, "_client", {
|
|
477
477
|
enumerable: true,
|
|
@@ -479,18 +479,18 @@ class ComNS {
|
|
|
479
479
|
writable: true,
|
|
480
480
|
value: void 0
|
|
481
481
|
});
|
|
482
|
-
Object.defineProperty(this, "
|
|
482
|
+
Object.defineProperty(this, "bsky", {
|
|
483
483
|
enumerable: true,
|
|
484
484
|
configurable: true,
|
|
485
485
|
writable: true,
|
|
486
486
|
value: void 0
|
|
487
487
|
});
|
|
488
488
|
this._client = client;
|
|
489
|
-
this.
|
|
489
|
+
this.bsky = new AppBskyNS(client);
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
|
-
exports.
|
|
493
|
-
class
|
|
492
|
+
exports.AppNS = AppNS;
|
|
493
|
+
class AppBskyNS {
|
|
494
494
|
constructor(client) {
|
|
495
495
|
Object.defineProperty(this, "_client", {
|
|
496
496
|
enumerable: true,
|
|
@@ -498,74 +498,74 @@ class ComAtprotoNS {
|
|
|
498
498
|
writable: true,
|
|
499
499
|
value: void 0
|
|
500
500
|
});
|
|
501
|
-
Object.defineProperty(this, "
|
|
501
|
+
Object.defineProperty(this, "actor", {
|
|
502
502
|
enumerable: true,
|
|
503
503
|
configurable: true,
|
|
504
504
|
writable: true,
|
|
505
505
|
value: void 0
|
|
506
506
|
});
|
|
507
|
-
Object.defineProperty(this, "
|
|
507
|
+
Object.defineProperty(this, "embed", {
|
|
508
508
|
enumerable: true,
|
|
509
509
|
configurable: true,
|
|
510
510
|
writable: true,
|
|
511
511
|
value: void 0
|
|
512
512
|
});
|
|
513
|
-
Object.defineProperty(this, "
|
|
513
|
+
Object.defineProperty(this, "feed", {
|
|
514
514
|
enumerable: true,
|
|
515
515
|
configurable: true,
|
|
516
516
|
writable: true,
|
|
517
517
|
value: void 0
|
|
518
518
|
});
|
|
519
|
-
Object.defineProperty(this, "
|
|
519
|
+
Object.defineProperty(this, "graph", {
|
|
520
520
|
enumerable: true,
|
|
521
521
|
configurable: true,
|
|
522
522
|
writable: true,
|
|
523
523
|
value: void 0
|
|
524
524
|
});
|
|
525
|
-
Object.defineProperty(this, "
|
|
525
|
+
Object.defineProperty(this, "labeler", {
|
|
526
526
|
enumerable: true,
|
|
527
527
|
configurable: true,
|
|
528
528
|
writable: true,
|
|
529
529
|
value: void 0
|
|
530
530
|
});
|
|
531
|
-
Object.defineProperty(this, "
|
|
531
|
+
Object.defineProperty(this, "notification", {
|
|
532
532
|
enumerable: true,
|
|
533
533
|
configurable: true,
|
|
534
534
|
writable: true,
|
|
535
535
|
value: void 0
|
|
536
536
|
});
|
|
537
|
-
Object.defineProperty(this, "
|
|
537
|
+
Object.defineProperty(this, "richtext", {
|
|
538
538
|
enumerable: true,
|
|
539
539
|
configurable: true,
|
|
540
540
|
writable: true,
|
|
541
541
|
value: void 0
|
|
542
542
|
});
|
|
543
|
-
Object.defineProperty(this, "
|
|
543
|
+
Object.defineProperty(this, "unspecced", {
|
|
544
544
|
enumerable: true,
|
|
545
545
|
configurable: true,
|
|
546
546
|
writable: true,
|
|
547
547
|
value: void 0
|
|
548
548
|
});
|
|
549
|
-
Object.defineProperty(this, "
|
|
549
|
+
Object.defineProperty(this, "video", {
|
|
550
550
|
enumerable: true,
|
|
551
551
|
configurable: true,
|
|
552
552
|
writable: true,
|
|
553
553
|
value: void 0
|
|
554
554
|
});
|
|
555
555
|
this._client = client;
|
|
556
|
-
this.
|
|
557
|
-
this.
|
|
558
|
-
this.
|
|
559
|
-
this.
|
|
560
|
-
this.
|
|
561
|
-
this.
|
|
562
|
-
this.
|
|
563
|
-
this.
|
|
564
|
-
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);
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
|
-
exports.
|
|
568
|
-
class
|
|
567
|
+
exports.AppBskyNS = AppBskyNS;
|
|
568
|
+
class AppBskyActorNS {
|
|
569
569
|
constructor(client) {
|
|
570
570
|
Object.defineProperty(this, "_client", {
|
|
571
571
|
enumerable: true,
|
|
@@ -573,111 +573,46 @@ class ComAtprotoAdminNS {
|
|
|
573
573
|
writable: true,
|
|
574
574
|
value: void 0
|
|
575
575
|
});
|
|
576
|
-
this
|
|
577
|
-
}
|
|
578
|
-
deleteAccount(data, opts) {
|
|
579
|
-
return this._client.call('com.atproto.admin.deleteAccount', opts?.qp, data, opts);
|
|
580
|
-
}
|
|
581
|
-
disableAccountInvites(data, opts) {
|
|
582
|
-
return this._client.call('com.atproto.admin.disableAccountInvites', opts?.qp, data, opts);
|
|
583
|
-
}
|
|
584
|
-
disableInviteCodes(data, opts) {
|
|
585
|
-
return this._client.call('com.atproto.admin.disableInviteCodes', opts?.qp, data, opts);
|
|
586
|
-
}
|
|
587
|
-
enableAccountInvites(data, opts) {
|
|
588
|
-
return this._client.call('com.atproto.admin.enableAccountInvites', opts?.qp, data, opts);
|
|
589
|
-
}
|
|
590
|
-
getAccountInfo(params, opts) {
|
|
591
|
-
return this._client.call('com.atproto.admin.getAccountInfo', params, undefined, opts);
|
|
592
|
-
}
|
|
593
|
-
getAccountInfos(params, opts) {
|
|
594
|
-
return this._client.call('com.atproto.admin.getAccountInfos', params, undefined, opts);
|
|
595
|
-
}
|
|
596
|
-
getInviteCodes(params, opts) {
|
|
597
|
-
return this._client.call('com.atproto.admin.getInviteCodes', params, undefined, opts);
|
|
598
|
-
}
|
|
599
|
-
getSubjectStatus(params, opts) {
|
|
600
|
-
return this._client.call('com.atproto.admin.getSubjectStatus', params, undefined, opts);
|
|
601
|
-
}
|
|
602
|
-
searchAccounts(params, opts) {
|
|
603
|
-
return this._client.call('com.atproto.admin.searchAccounts', params, undefined, opts);
|
|
604
|
-
}
|
|
605
|
-
sendEmail(data, opts) {
|
|
606
|
-
return this._client.call('com.atproto.admin.sendEmail', opts?.qp, data, opts);
|
|
607
|
-
}
|
|
608
|
-
updateAccountEmail(data, opts) {
|
|
609
|
-
return this._client.call('com.atproto.admin.updateAccountEmail', opts?.qp, data, opts);
|
|
610
|
-
}
|
|
611
|
-
updateAccountHandle(data, opts) {
|
|
612
|
-
return this._client.call('com.atproto.admin.updateAccountHandle', opts?.qp, data, opts);
|
|
613
|
-
}
|
|
614
|
-
updateAccountPassword(data, opts) {
|
|
615
|
-
return this._client.call('com.atproto.admin.updateAccountPassword', opts?.qp, data, opts);
|
|
616
|
-
}
|
|
617
|
-
updateAccountSigningKey(data, opts) {
|
|
618
|
-
return this._client.call('com.atproto.admin.updateAccountSigningKey', opts?.qp, data, opts);
|
|
619
|
-
}
|
|
620
|
-
updateSubjectStatus(data, opts) {
|
|
621
|
-
return this._client.call('com.atproto.admin.updateSubjectStatus', opts?.qp, data, opts);
|
|
622
|
-
}
|
|
623
|
-
}
|
|
624
|
-
exports.ComAtprotoAdminNS = ComAtprotoAdminNS;
|
|
625
|
-
class ComAtprotoIdentityNS {
|
|
626
|
-
constructor(client) {
|
|
627
|
-
Object.defineProperty(this, "_client", {
|
|
576
|
+
Object.defineProperty(this, "profile", {
|
|
628
577
|
enumerable: true,
|
|
629
578
|
configurable: true,
|
|
630
579
|
writable: true,
|
|
631
580
|
value: void 0
|
|
632
581
|
});
|
|
633
|
-
this
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
refreshIdentity(data, opts) {
|
|
639
|
-
return this._client
|
|
640
|
-
.call('com.atproto.identity.refreshIdentity', opts?.qp, data, opts)
|
|
641
|
-
.catch((e) => {
|
|
642
|
-
throw ComAtprotoIdentityRefreshIdentity.toKnownErr(e);
|
|
582
|
+
Object.defineProperty(this, "status", {
|
|
583
|
+
enumerable: true,
|
|
584
|
+
configurable: true,
|
|
585
|
+
writable: true,
|
|
586
|
+
value: void 0
|
|
643
587
|
});
|
|
588
|
+
this._client = client;
|
|
589
|
+
this.profile = new AppBskyActorProfileRecord(client);
|
|
590
|
+
this.status = new AppBskyActorStatusRecord(client);
|
|
644
591
|
}
|
|
645
|
-
|
|
646
|
-
return this._client.call('
|
|
592
|
+
getPreferences(params, opts) {
|
|
593
|
+
return this._client.call('app.bsky.actor.getPreferences', params, undefined, opts);
|
|
647
594
|
}
|
|
648
|
-
|
|
649
|
-
return this._client
|
|
650
|
-
.call('com.atproto.identity.resolveDid', params, undefined, opts)
|
|
651
|
-
.catch((e) => {
|
|
652
|
-
throw ComAtprotoIdentityResolveDid.toKnownErr(e);
|
|
653
|
-
});
|
|
595
|
+
getProfile(params, opts) {
|
|
596
|
+
return this._client.call('app.bsky.actor.getProfile', params, undefined, opts);
|
|
654
597
|
}
|
|
655
|
-
|
|
656
|
-
return this._client
|
|
657
|
-
.call('com.atproto.identity.resolveHandle', params, undefined, opts)
|
|
658
|
-
.catch((e) => {
|
|
659
|
-
throw ComAtprotoIdentityResolveHandle.toKnownErr(e);
|
|
660
|
-
});
|
|
598
|
+
getProfiles(params, opts) {
|
|
599
|
+
return this._client.call('app.bsky.actor.getProfiles', params, undefined, opts);
|
|
661
600
|
}
|
|
662
|
-
|
|
663
|
-
return this._client
|
|
664
|
-
.call('com.atproto.identity.resolveIdentity', params, undefined, opts)
|
|
665
|
-
.catch((e) => {
|
|
666
|
-
throw ComAtprotoIdentityResolveIdentity.toKnownErr(e);
|
|
667
|
-
});
|
|
601
|
+
getSuggestions(params, opts) {
|
|
602
|
+
return this._client.call('app.bsky.actor.getSuggestions', params, undefined, opts);
|
|
668
603
|
}
|
|
669
|
-
|
|
670
|
-
return this._client.call('
|
|
604
|
+
putPreferences(data, opts) {
|
|
605
|
+
return this._client.call('app.bsky.actor.putPreferences', opts?.qp, data, opts);
|
|
671
606
|
}
|
|
672
|
-
|
|
673
|
-
return this._client.call('
|
|
607
|
+
searchActors(params, opts) {
|
|
608
|
+
return this._client.call('app.bsky.actor.searchActors', params, undefined, opts);
|
|
674
609
|
}
|
|
675
|
-
|
|
676
|
-
return this._client.call('
|
|
610
|
+
searchActorsTypeahead(params, opts) {
|
|
611
|
+
return this._client.call('app.bsky.actor.searchActorsTypeahead', params, undefined, opts);
|
|
677
612
|
}
|
|
678
613
|
}
|
|
679
|
-
exports.
|
|
680
|
-
class
|
|
614
|
+
exports.AppBskyActorNS = AppBskyActorNS;
|
|
615
|
+
class AppBskyActorProfileRecord {
|
|
681
616
|
constructor(client) {
|
|
682
617
|
Object.defineProperty(this, "_client", {
|
|
683
618
|
enumerable: true,
|
|
@@ -687,31 +622,41 @@ class ComAtprotoLabelNS {
|
|
|
687
622
|
});
|
|
688
623
|
this._client = client;
|
|
689
624
|
}
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
exports.ComAtprotoLabelNS = ComAtprotoLabelNS;
|
|
695
|
-
class ComAtprotoLexiconNS {
|
|
696
|
-
constructor(client) {
|
|
697
|
-
Object.defineProperty(this, "_client", {
|
|
698
|
-
enumerable: true,
|
|
699
|
-
configurable: true,
|
|
700
|
-
writable: true,
|
|
701
|
-
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,
|
|
702
629
|
});
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
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,
|
|
708
636
|
});
|
|
709
|
-
|
|
710
|
-
|
|
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 });
|
|
711
656
|
}
|
|
712
657
|
}
|
|
713
|
-
exports.
|
|
714
|
-
class
|
|
658
|
+
exports.AppBskyActorProfileRecord = AppBskyActorProfileRecord;
|
|
659
|
+
class AppBskyActorStatusRecord {
|
|
715
660
|
constructor(client) {
|
|
716
661
|
Object.defineProperty(this, "_client", {
|
|
717
662
|
enumerable: true,
|
|
@@ -723,34 +668,39 @@ class ComAtprotoLexiconSchemaRecord {
|
|
|
723
668
|
}
|
|
724
669
|
async list(params) {
|
|
725
670
|
const res = await this._client.call('com.atproto.repo.listRecords', {
|
|
726
|
-
collection: '
|
|
671
|
+
collection: 'app.bsky.actor.status',
|
|
727
672
|
...params,
|
|
728
673
|
});
|
|
729
674
|
return res.data;
|
|
730
675
|
}
|
|
731
676
|
async get(params) {
|
|
732
677
|
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
733
|
-
collection: '
|
|
678
|
+
collection: 'app.bsky.actor.status',
|
|
734
679
|
...params,
|
|
735
680
|
});
|
|
736
681
|
return res.data;
|
|
737
682
|
}
|
|
738
683
|
async create(params, record, headers) {
|
|
739
|
-
const collection = '
|
|
740
|
-
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 });
|
|
741
691
|
return res.data;
|
|
742
692
|
}
|
|
743
693
|
async put(params, record, headers) {
|
|
744
|
-
const collection = '
|
|
694
|
+
const collection = 'app.bsky.actor.status';
|
|
745
695
|
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
746
696
|
return res.data;
|
|
747
697
|
}
|
|
748
698
|
async delete(params, headers) {
|
|
749
|
-
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 });
|
|
750
700
|
}
|
|
751
701
|
}
|
|
752
|
-
exports.
|
|
753
|
-
class
|
|
702
|
+
exports.AppBskyActorStatusRecord = AppBskyActorStatusRecord;
|
|
703
|
+
class AppBskyEmbedNS {
|
|
754
704
|
constructor(client) {
|
|
755
705
|
Object.defineProperty(this, "_client", {
|
|
756
706
|
enumerable: true,
|
|
@@ -760,12 +710,9 @@ class ComAtprotoModerationNS {
|
|
|
760
710
|
});
|
|
761
711
|
this._client = client;
|
|
762
712
|
}
|
|
763
|
-
createReport(data, opts) {
|
|
764
|
-
return this._client.call('com.atproto.moderation.createReport', opts?.qp, data, opts);
|
|
765
|
-
}
|
|
766
713
|
}
|
|
767
|
-
exports.
|
|
768
|
-
class
|
|
714
|
+
exports.AppBskyEmbedNS = AppBskyEmbedNS;
|
|
715
|
+
class AppBskyFeedNS {
|
|
769
716
|
constructor(client) {
|
|
770
717
|
Object.defineProperty(this, "_client", {
|
|
771
718
|
enumerable: true,
|
|
@@ -773,192 +720,135 @@ class ComAtprotoRepoNS {
|
|
|
773
720
|
writable: true,
|
|
774
721
|
value: void 0
|
|
775
722
|
});
|
|
776
|
-
this
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
.catch((e) => {
|
|
782
|
-
throw ComAtprotoRepoApplyWrites.toKnownErr(e);
|
|
723
|
+
Object.defineProperty(this, "generator", {
|
|
724
|
+
enumerable: true,
|
|
725
|
+
configurable: true,
|
|
726
|
+
writable: true,
|
|
727
|
+
value: void 0
|
|
783
728
|
});
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
throw ComAtprotoRepoCreateRecord.toKnownErr(e);
|
|
729
|
+
Object.defineProperty(this, "like", {
|
|
730
|
+
enumerable: true,
|
|
731
|
+
configurable: true,
|
|
732
|
+
writable: true,
|
|
733
|
+
value: void 0
|
|
790
734
|
});
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
throw ComAtprotoRepoDeleteRecord.toKnownErr(e);
|
|
735
|
+
Object.defineProperty(this, "post", {
|
|
736
|
+
enumerable: true,
|
|
737
|
+
configurable: true,
|
|
738
|
+
writable: true,
|
|
739
|
+
value: void 0
|
|
797
740
|
});
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
return this._client
|
|
804
|
-
.call('com.atproto.repo.getRecord', params, undefined, opts)
|
|
805
|
-
.catch((e) => {
|
|
806
|
-
throw ComAtprotoRepoGetRecord.toKnownErr(e);
|
|
741
|
+
Object.defineProperty(this, "postgate", {
|
|
742
|
+
enumerable: true,
|
|
743
|
+
configurable: true,
|
|
744
|
+
writable: true,
|
|
745
|
+
value: void 0
|
|
807
746
|
});
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
return this._client.call('com.atproto.repo.listMissingBlobs', params, undefined, opts);
|
|
814
|
-
}
|
|
815
|
-
listRecords(params, opts) {
|
|
816
|
-
return this._client.call('com.atproto.repo.listRecords', params, undefined, opts);
|
|
817
|
-
}
|
|
818
|
-
putRecord(data, opts) {
|
|
819
|
-
return this._client
|
|
820
|
-
.call('com.atproto.repo.putRecord', opts?.qp, data, opts)
|
|
821
|
-
.catch((e) => {
|
|
822
|
-
throw ComAtprotoRepoPutRecord.toKnownErr(e);
|
|
747
|
+
Object.defineProperty(this, "repost", {
|
|
748
|
+
enumerable: true,
|
|
749
|
+
configurable: true,
|
|
750
|
+
writable: true,
|
|
751
|
+
value: void 0
|
|
823
752
|
});
|
|
824
|
-
|
|
825
|
-
uploadBlob(data, opts) {
|
|
826
|
-
return this._client.call('com.atproto.repo.uploadBlob', opts?.qp, data, opts);
|
|
827
|
-
}
|
|
828
|
-
}
|
|
829
|
-
exports.ComAtprotoRepoNS = ComAtprotoRepoNS;
|
|
830
|
-
class ComAtprotoServerNS {
|
|
831
|
-
constructor(client) {
|
|
832
|
-
Object.defineProperty(this, "_client", {
|
|
753
|
+
Object.defineProperty(this, "threadgate", {
|
|
833
754
|
enumerable: true,
|
|
834
755
|
configurable: true,
|
|
835
756
|
writable: true,
|
|
836
757
|
value: void 0
|
|
837
758
|
});
|
|
838
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);
|
|
839
766
|
}
|
|
840
|
-
|
|
841
|
-
return this._client.call('
|
|
842
|
-
}
|
|
843
|
-
checkAccountStatus(params, opts) {
|
|
844
|
-
return this._client.call('com.atproto.server.checkAccountStatus', params, undefined, opts);
|
|
845
|
-
}
|
|
846
|
-
confirmEmail(data, opts) {
|
|
847
|
-
return this._client
|
|
848
|
-
.call('com.atproto.server.confirmEmail', opts?.qp, data, opts)
|
|
849
|
-
.catch((e) => {
|
|
850
|
-
throw ComAtprotoServerConfirmEmail.toKnownErr(e);
|
|
851
|
-
});
|
|
767
|
+
describeFeedGenerator(params, opts) {
|
|
768
|
+
return this._client.call('app.bsky.feed.describeFeedGenerator', params, undefined, opts);
|
|
852
769
|
}
|
|
853
|
-
|
|
854
|
-
return this._client
|
|
855
|
-
.call('com.atproto.server.createAccount', opts?.qp, data, opts)
|
|
856
|
-
.catch((e) => {
|
|
857
|
-
throw ComAtprotoServerCreateAccount.toKnownErr(e);
|
|
858
|
-
});
|
|
770
|
+
getActorFeeds(params, opts) {
|
|
771
|
+
return this._client.call('app.bsky.feed.getActorFeeds', params, undefined, opts);
|
|
859
772
|
}
|
|
860
|
-
|
|
773
|
+
getActorLikes(params, opts) {
|
|
861
774
|
return this._client
|
|
862
|
-
.call('
|
|
775
|
+
.call('app.bsky.feed.getActorLikes', params, undefined, opts)
|
|
863
776
|
.catch((e) => {
|
|
864
|
-
throw
|
|
777
|
+
throw AppBskyFeedGetActorLikes.toKnownErr(e);
|
|
865
778
|
});
|
|
866
779
|
}
|
|
867
|
-
|
|
868
|
-
return this._client.call('com.atproto.server.createInviteCode', opts?.qp, data, opts);
|
|
869
|
-
}
|
|
870
|
-
createInviteCodes(data, opts) {
|
|
871
|
-
return this._client.call('com.atproto.server.createInviteCodes', opts?.qp, data, opts);
|
|
872
|
-
}
|
|
873
|
-
createSession(data, opts) {
|
|
780
|
+
getAuthorFeed(params, opts) {
|
|
874
781
|
return this._client
|
|
875
|
-
.call('
|
|
782
|
+
.call('app.bsky.feed.getAuthorFeed', params, undefined, opts)
|
|
876
783
|
.catch((e) => {
|
|
877
|
-
throw
|
|
784
|
+
throw AppBskyFeedGetAuthorFeed.toKnownErr(e);
|
|
878
785
|
});
|
|
879
786
|
}
|
|
880
|
-
|
|
881
|
-
return this._client.call('com.atproto.server.deactivateAccount', opts?.qp, data, opts);
|
|
882
|
-
}
|
|
883
|
-
deleteAccount(data, opts) {
|
|
787
|
+
getFeed(params, opts) {
|
|
884
788
|
return this._client
|
|
885
|
-
.call('
|
|
789
|
+
.call('app.bsky.feed.getFeed', params, undefined, opts)
|
|
886
790
|
.catch((e) => {
|
|
887
|
-
throw
|
|
791
|
+
throw AppBskyFeedGetFeed.toKnownErr(e);
|
|
888
792
|
});
|
|
889
793
|
}
|
|
890
|
-
|
|
891
|
-
return this._client.call('
|
|
892
|
-
}
|
|
893
|
-
describeServer(params, opts) {
|
|
894
|
-
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);
|
|
895
796
|
}
|
|
896
|
-
|
|
897
|
-
return this._client
|
|
898
|
-
.call('com.atproto.server.getAccountInviteCodes', params, undefined, opts)
|
|
899
|
-
.catch((e) => {
|
|
900
|
-
throw ComAtprotoServerGetAccountInviteCodes.toKnownErr(e);
|
|
901
|
-
});
|
|
797
|
+
getFeedGenerators(params, opts) {
|
|
798
|
+
return this._client.call('app.bsky.feed.getFeedGenerators', params, undefined, opts);
|
|
902
799
|
}
|
|
903
|
-
|
|
800
|
+
getFeedSkeleton(params, opts) {
|
|
904
801
|
return this._client
|
|
905
|
-
.call('
|
|
802
|
+
.call('app.bsky.feed.getFeedSkeleton', params, undefined, opts)
|
|
906
803
|
.catch((e) => {
|
|
907
|
-
throw
|
|
804
|
+
throw AppBskyFeedGetFeedSkeleton.toKnownErr(e);
|
|
908
805
|
});
|
|
909
806
|
}
|
|
910
|
-
|
|
911
|
-
return this._client.call('
|
|
807
|
+
getLikes(params, opts) {
|
|
808
|
+
return this._client.call('app.bsky.feed.getLikes', params, undefined, opts);
|
|
912
809
|
}
|
|
913
|
-
|
|
810
|
+
getListFeed(params, opts) {
|
|
914
811
|
return this._client
|
|
915
|
-
.call('
|
|
812
|
+
.call('app.bsky.feed.getListFeed', params, undefined, opts)
|
|
916
813
|
.catch((e) => {
|
|
917
|
-
throw
|
|
814
|
+
throw AppBskyFeedGetListFeed.toKnownErr(e);
|
|
918
815
|
});
|
|
919
816
|
}
|
|
920
|
-
|
|
817
|
+
getPostThread(params, opts) {
|
|
921
818
|
return this._client
|
|
922
|
-
.call('
|
|
819
|
+
.call('app.bsky.feed.getPostThread', params, undefined, opts)
|
|
923
820
|
.catch((e) => {
|
|
924
|
-
throw
|
|
821
|
+
throw AppBskyFeedGetPostThread.toKnownErr(e);
|
|
925
822
|
});
|
|
926
823
|
}
|
|
927
|
-
|
|
928
|
-
return this._client.call('
|
|
824
|
+
getPosts(params, opts) {
|
|
825
|
+
return this._client.call('app.bsky.feed.getPosts', params, undefined, opts);
|
|
929
826
|
}
|
|
930
|
-
|
|
931
|
-
return this._client.call('
|
|
827
|
+
getQuotes(params, opts) {
|
|
828
|
+
return this._client.call('app.bsky.feed.getQuotes', params, undefined, opts);
|
|
932
829
|
}
|
|
933
|
-
|
|
934
|
-
return this._client.call('
|
|
830
|
+
getRepostedBy(params, opts) {
|
|
831
|
+
return this._client.call('app.bsky.feed.getRepostedBy', params, undefined, opts);
|
|
935
832
|
}
|
|
936
|
-
|
|
937
|
-
return this._client.call('
|
|
833
|
+
getSuggestedFeeds(params, opts) {
|
|
834
|
+
return this._client.call('app.bsky.feed.getSuggestedFeeds', params, undefined, opts);
|
|
938
835
|
}
|
|
939
|
-
|
|
940
|
-
return this._client.call('
|
|
836
|
+
getTimeline(params, opts) {
|
|
837
|
+
return this._client.call('app.bsky.feed.getTimeline', params, undefined, opts);
|
|
941
838
|
}
|
|
942
|
-
|
|
839
|
+
searchPosts(params, opts) {
|
|
943
840
|
return this._client
|
|
944
|
-
.call('
|
|
841
|
+
.call('app.bsky.feed.searchPosts', params, undefined, opts)
|
|
945
842
|
.catch((e) => {
|
|
946
|
-
throw
|
|
843
|
+
throw AppBskyFeedSearchPosts.toKnownErr(e);
|
|
947
844
|
});
|
|
948
845
|
}
|
|
949
|
-
|
|
950
|
-
return this._client.call('
|
|
951
|
-
}
|
|
952
|
-
updateEmail(data, opts) {
|
|
953
|
-
return this._client
|
|
954
|
-
.call('com.atproto.server.updateEmail', opts?.qp, data, opts)
|
|
955
|
-
.catch((e) => {
|
|
956
|
-
throw ComAtprotoServerUpdateEmail.toKnownErr(e);
|
|
957
|
-
});
|
|
846
|
+
sendInteractions(data, opts) {
|
|
847
|
+
return this._client.call('app.bsky.feed.sendInteractions', opts?.qp, data, opts);
|
|
958
848
|
}
|
|
959
849
|
}
|
|
960
|
-
exports.
|
|
961
|
-
class
|
|
850
|
+
exports.AppBskyFeedNS = AppBskyFeedNS;
|
|
851
|
+
class AppBskyFeedGeneratorRecord {
|
|
962
852
|
constructor(client) {
|
|
963
853
|
Object.defineProperty(this, "_client", {
|
|
964
854
|
enumerable: true,
|
|
@@ -968,94 +858,75 @@ class ComAtprotoSyncNS {
|
|
|
968
858
|
});
|
|
969
859
|
this._client = client;
|
|
970
860
|
}
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
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,
|
|
976
865
|
});
|
|
866
|
+
return res.data;
|
|
977
867
|
}
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
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,
|
|
983
872
|
});
|
|
873
|
+
return res.data;
|
|
984
874
|
}
|
|
985
|
-
|
|
986
|
-
|
|
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;
|
|
987
879
|
}
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
throw ComAtprotoSyncGetHead.toKnownErr(e);
|
|
993
|
-
});
|
|
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;
|
|
994
884
|
}
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
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
|
|
1000
897
|
});
|
|
898
|
+
this._client = client;
|
|
1001
899
|
}
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
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,
|
|
1007
904
|
});
|
|
905
|
+
return res.data;
|
|
1008
906
|
}
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
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,
|
|
1014
911
|
});
|
|
912
|
+
return res.data;
|
|
1015
913
|
}
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
throw ComAtprotoSyncGetRepo.toKnownErr(e);
|
|
1021
|
-
});
|
|
1022
|
-
}
|
|
1023
|
-
getRepoStatus(params, opts) {
|
|
1024
|
-
return this._client
|
|
1025
|
-
.call('com.atproto.sync.getRepoStatus', params, undefined, opts)
|
|
1026
|
-
.catch((e) => {
|
|
1027
|
-
throw ComAtprotoSyncGetRepoStatus.toKnownErr(e);
|
|
1028
|
-
});
|
|
1029
|
-
}
|
|
1030
|
-
listBlobs(params, opts) {
|
|
1031
|
-
return this._client
|
|
1032
|
-
.call('com.atproto.sync.listBlobs', params, undefined, opts)
|
|
1033
|
-
.catch((e) => {
|
|
1034
|
-
throw ComAtprotoSyncListBlobs.toKnownErr(e);
|
|
1035
|
-
});
|
|
1036
|
-
}
|
|
1037
|
-
listHosts(params, opts) {
|
|
1038
|
-
return this._client.call('com.atproto.sync.listHosts', params, undefined, opts);
|
|
1039
|
-
}
|
|
1040
|
-
listRepos(params, opts) {
|
|
1041
|
-
return this._client.call('com.atproto.sync.listRepos', params, undefined, opts);
|
|
1042
|
-
}
|
|
1043
|
-
listReposByCollection(params, opts) {
|
|
1044
|
-
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;
|
|
1045
918
|
}
|
|
1046
|
-
|
|
1047
|
-
|
|
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;
|
|
1048
923
|
}
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
.call('com.atproto.sync.requestCrawl', opts?.qp, data, opts)
|
|
1052
|
-
.catch((e) => {
|
|
1053
|
-
throw ComAtprotoSyncRequestCrawl.toKnownErr(e);
|
|
1054
|
-
});
|
|
924
|
+
async delete(params, headers) {
|
|
925
|
+
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.feed.like', ...params }, { headers });
|
|
1055
926
|
}
|
|
1056
927
|
}
|
|
1057
|
-
exports.
|
|
1058
|
-
class
|
|
928
|
+
exports.AppBskyFeedLikeRecord = AppBskyFeedLikeRecord;
|
|
929
|
+
class AppBskyFeedPostRecord {
|
|
1059
930
|
constructor(client) {
|
|
1060
931
|
Object.defineProperty(this, "_client", {
|
|
1061
932
|
enumerable: true,
|
|
@@ -1065,28 +936,36 @@ class ComAtprotoTempNS {
|
|
|
1065
936
|
});
|
|
1066
937
|
this._client = client;
|
|
1067
938
|
}
|
|
1068
|
-
|
|
1069
|
-
|
|
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;
|
|
1070
945
|
}
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
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,
|
|
1076
950
|
});
|
|
951
|
+
return res.data;
|
|
1077
952
|
}
|
|
1078
|
-
|
|
1079
|
-
|
|
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;
|
|
1080
957
|
}
|
|
1081
|
-
|
|
1082
|
-
|
|
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;
|
|
1083
962
|
}
|
|
1084
|
-
|
|
1085
|
-
|
|
963
|
+
async delete(params, headers) {
|
|
964
|
+
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.feed.post', ...params }, { headers });
|
|
1086
965
|
}
|
|
1087
966
|
}
|
|
1088
|
-
exports.
|
|
1089
|
-
class
|
|
967
|
+
exports.AppBskyFeedPostRecord = AppBskyFeedPostRecord;
|
|
968
|
+
class AppBskyFeedPostgateRecord {
|
|
1090
969
|
constructor(client) {
|
|
1091
970
|
Object.defineProperty(this, "_client", {
|
|
1092
971
|
enumerable: true,
|
|
@@ -1094,18 +973,38 @@ class AppNS {
|
|
|
1094
973
|
writable: true,
|
|
1095
974
|
value: void 0
|
|
1096
975
|
});
|
|
1097
|
-
Object.defineProperty(this, "bsky", {
|
|
1098
|
-
enumerable: true,
|
|
1099
|
-
configurable: true,
|
|
1100
|
-
writable: true,
|
|
1101
|
-
value: void 0
|
|
1102
|
-
});
|
|
1103
976
|
this._client = client;
|
|
1104
|
-
|
|
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 });
|
|
1105
1004
|
}
|
|
1106
1005
|
}
|
|
1107
|
-
exports.
|
|
1108
|
-
class
|
|
1006
|
+
exports.AppBskyFeedPostgateRecord = AppBskyFeedPostgateRecord;
|
|
1007
|
+
class AppBskyFeedRepostRecord {
|
|
1109
1008
|
constructor(client) {
|
|
1110
1009
|
Object.defineProperty(this, "_client", {
|
|
1111
1010
|
enumerable: true,
|
|
@@ -1113,121 +1012,211 @@ class AppBskyNS {
|
|
|
1113
1012
|
writable: true,
|
|
1114
1013
|
value: void 0
|
|
1115
1014
|
});
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
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,
|
|
1121
1021
|
});
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
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,
|
|
1127
1028
|
});
|
|
1128
|
-
|
|
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", {
|
|
1129
1049
|
enumerable: true,
|
|
1130
1050
|
configurable: true,
|
|
1131
1051
|
writable: true,
|
|
1132
1052
|
value: void 0
|
|
1133
1053
|
});
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
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,
|
|
1139
1060
|
});
|
|
1140
|
-
|
|
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", {
|
|
1141
1088
|
enumerable: true,
|
|
1142
1089
|
configurable: true,
|
|
1143
1090
|
writable: true,
|
|
1144
1091
|
value: void 0
|
|
1145
1092
|
});
|
|
1146
|
-
Object.defineProperty(this, "
|
|
1093
|
+
Object.defineProperty(this, "block", {
|
|
1147
1094
|
enumerable: true,
|
|
1148
1095
|
configurable: true,
|
|
1149
1096
|
writable: true,
|
|
1150
1097
|
value: void 0
|
|
1151
1098
|
});
|
|
1152
|
-
Object.defineProperty(this, "
|
|
1099
|
+
Object.defineProperty(this, "follow", {
|
|
1153
1100
|
enumerable: true,
|
|
1154
1101
|
configurable: true,
|
|
1155
1102
|
writable: true,
|
|
1156
1103
|
value: void 0
|
|
1157
1104
|
});
|
|
1158
|
-
Object.defineProperty(this, "
|
|
1105
|
+
Object.defineProperty(this, "list", {
|
|
1159
1106
|
enumerable: true,
|
|
1160
1107
|
configurable: true,
|
|
1161
1108
|
writable: true,
|
|
1162
1109
|
value: void 0
|
|
1163
1110
|
});
|
|
1164
|
-
Object.defineProperty(this, "
|
|
1111
|
+
Object.defineProperty(this, "listblock", {
|
|
1165
1112
|
enumerable: true,
|
|
1166
1113
|
configurable: true,
|
|
1167
1114
|
writable: true,
|
|
1168
1115
|
value: void 0
|
|
1169
1116
|
});
|
|
1170
|
-
this
|
|
1171
|
-
this.actor = new AppBskyActorNS(client);
|
|
1172
|
-
this.embed = new AppBskyEmbedNS(client);
|
|
1173
|
-
this.feed = new AppBskyFeedNS(client);
|
|
1174
|
-
this.graph = new AppBskyGraphNS(client);
|
|
1175
|
-
this.labeler = new AppBskyLabelerNS(client);
|
|
1176
|
-
this.notification = new AppBskyNotificationNS(client);
|
|
1177
|
-
this.richtext = new AppBskyRichtextNS(client);
|
|
1178
|
-
this.unspecced = new AppBskyUnspeccedNS(client);
|
|
1179
|
-
this.video = new AppBskyVideoNS(client);
|
|
1180
|
-
}
|
|
1181
|
-
}
|
|
1182
|
-
exports.AppBskyNS = AppBskyNS;
|
|
1183
|
-
class AppBskyActorNS {
|
|
1184
|
-
constructor(client) {
|
|
1185
|
-
Object.defineProperty(this, "_client", {
|
|
1117
|
+
Object.defineProperty(this, "listitem", {
|
|
1186
1118
|
enumerable: true,
|
|
1187
1119
|
configurable: true,
|
|
1188
1120
|
writable: true,
|
|
1189
1121
|
value: void 0
|
|
1190
1122
|
});
|
|
1191
|
-
Object.defineProperty(this, "
|
|
1123
|
+
Object.defineProperty(this, "starterpack", {
|
|
1192
1124
|
enumerable: true,
|
|
1193
1125
|
configurable: true,
|
|
1194
1126
|
writable: true,
|
|
1195
1127
|
value: void 0
|
|
1196
1128
|
});
|
|
1197
|
-
Object.defineProperty(this, "
|
|
1129
|
+
Object.defineProperty(this, "verification", {
|
|
1198
1130
|
enumerable: true,
|
|
1199
1131
|
configurable: true,
|
|
1200
1132
|
writable: true,
|
|
1201
1133
|
value: void 0
|
|
1202
1134
|
});
|
|
1203
1135
|
this._client = client;
|
|
1204
|
-
this.
|
|
1205
|
-
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);
|
|
1206
1143
|
}
|
|
1207
|
-
|
|
1208
|
-
return this._client.call('app.bsky.
|
|
1144
|
+
getActorStarterPacks(params, opts) {
|
|
1145
|
+
return this._client.call('app.bsky.graph.getActorStarterPacks', params, undefined, opts);
|
|
1209
1146
|
}
|
|
1210
|
-
|
|
1211
|
-
return this._client.call('app.bsky.
|
|
1147
|
+
getBlocks(params, opts) {
|
|
1148
|
+
return this._client.call('app.bsky.graph.getBlocks', params, undefined, opts);
|
|
1212
1149
|
}
|
|
1213
|
-
|
|
1214
|
-
return this._client.call('app.bsky.
|
|
1150
|
+
getFollowers(params, opts) {
|
|
1151
|
+
return this._client.call('app.bsky.graph.getFollowers', params, undefined, opts);
|
|
1215
1152
|
}
|
|
1216
|
-
|
|
1217
|
-
return this._client.call('app.bsky.
|
|
1153
|
+
getFollows(params, opts) {
|
|
1154
|
+
return this._client.call('app.bsky.graph.getFollows', params, undefined, opts);
|
|
1218
1155
|
}
|
|
1219
|
-
|
|
1220
|
-
return this._client.call('app.bsky.
|
|
1156
|
+
getKnownFollowers(params, opts) {
|
|
1157
|
+
return this._client.call('app.bsky.graph.getKnownFollowers', params, undefined, opts);
|
|
1221
1158
|
}
|
|
1222
|
-
|
|
1223
|
-
return this._client.call('app.bsky.
|
|
1159
|
+
getList(params, opts) {
|
|
1160
|
+
return this._client.call('app.bsky.graph.getList', params, undefined, opts);
|
|
1224
1161
|
}
|
|
1225
|
-
|
|
1226
|
-
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);
|
|
1227
1216
|
}
|
|
1228
1217
|
}
|
|
1229
|
-
exports.
|
|
1230
|
-
class
|
|
1218
|
+
exports.AppBskyGraphNS = AppBskyGraphNS;
|
|
1219
|
+
class AppBskyGraphBlockRecord {
|
|
1231
1220
|
constructor(client) {
|
|
1232
1221
|
Object.defineProperty(this, "_client", {
|
|
1233
1222
|
enumerable: true,
|
|
@@ -1239,39 +1228,34 @@ class AppBskyActorProfileRecord {
|
|
|
1239
1228
|
}
|
|
1240
1229
|
async list(params) {
|
|
1241
1230
|
const res = await this._client.call('com.atproto.repo.listRecords', {
|
|
1242
|
-
collection: 'app.bsky.
|
|
1231
|
+
collection: 'app.bsky.graph.block',
|
|
1243
1232
|
...params,
|
|
1244
1233
|
});
|
|
1245
1234
|
return res.data;
|
|
1246
1235
|
}
|
|
1247
1236
|
async get(params) {
|
|
1248
1237
|
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
1249
|
-
collection: 'app.bsky.
|
|
1238
|
+
collection: 'app.bsky.graph.block',
|
|
1250
1239
|
...params,
|
|
1251
1240
|
});
|
|
1252
1241
|
return res.data;
|
|
1253
1242
|
}
|
|
1254
1243
|
async create(params, record, headers) {
|
|
1255
|
-
const collection = 'app.bsky.
|
|
1256
|
-
const res = await this._client.call('com.atproto.repo.createRecord', undefined, {
|
|
1257
|
-
collection,
|
|
1258
|
-
rkey: 'self',
|
|
1259
|
-
...params,
|
|
1260
|
-
record: { ...record, $type: collection },
|
|
1261
|
-
}, { 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 });
|
|
1262
1246
|
return res.data;
|
|
1263
1247
|
}
|
|
1264
1248
|
async put(params, record, headers) {
|
|
1265
|
-
const collection = 'app.bsky.
|
|
1249
|
+
const collection = 'app.bsky.graph.block';
|
|
1266
1250
|
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1267
1251
|
return res.data;
|
|
1268
1252
|
}
|
|
1269
1253
|
async delete(params, headers) {
|
|
1270
|
-
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 });
|
|
1271
1255
|
}
|
|
1272
1256
|
}
|
|
1273
|
-
exports.
|
|
1274
|
-
class
|
|
1257
|
+
exports.AppBskyGraphBlockRecord = AppBskyGraphBlockRecord;
|
|
1258
|
+
class AppBskyGraphFollowRecord {
|
|
1275
1259
|
constructor(client) {
|
|
1276
1260
|
Object.defineProperty(this, "_client", {
|
|
1277
1261
|
enumerable: true,
|
|
@@ -1283,39 +1267,34 @@ class AppBskyActorStatusRecord {
|
|
|
1283
1267
|
}
|
|
1284
1268
|
async list(params) {
|
|
1285
1269
|
const res = await this._client.call('com.atproto.repo.listRecords', {
|
|
1286
|
-
collection: 'app.bsky.
|
|
1270
|
+
collection: 'app.bsky.graph.follow',
|
|
1287
1271
|
...params,
|
|
1288
1272
|
});
|
|
1289
1273
|
return res.data;
|
|
1290
1274
|
}
|
|
1291
1275
|
async get(params) {
|
|
1292
1276
|
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
1293
|
-
collection: 'app.bsky.
|
|
1277
|
+
collection: 'app.bsky.graph.follow',
|
|
1294
1278
|
...params,
|
|
1295
1279
|
});
|
|
1296
1280
|
return res.data;
|
|
1297
1281
|
}
|
|
1298
1282
|
async create(params, record, headers) {
|
|
1299
|
-
const collection = 'app.bsky.
|
|
1300
|
-
const res = await this._client.call('com.atproto.repo.createRecord', undefined, {
|
|
1301
|
-
collection,
|
|
1302
|
-
rkey: 'self',
|
|
1303
|
-
...params,
|
|
1304
|
-
record: { ...record, $type: collection },
|
|
1305
|
-
}, { 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 });
|
|
1306
1285
|
return res.data;
|
|
1307
1286
|
}
|
|
1308
1287
|
async put(params, record, headers) {
|
|
1309
|
-
const collection = 'app.bsky.
|
|
1288
|
+
const collection = 'app.bsky.graph.follow';
|
|
1310
1289
|
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1311
1290
|
return res.data;
|
|
1312
1291
|
}
|
|
1313
1292
|
async delete(params, headers) {
|
|
1314
|
-
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 });
|
|
1315
1294
|
}
|
|
1316
1295
|
}
|
|
1317
|
-
exports.
|
|
1318
|
-
class
|
|
1296
|
+
exports.AppBskyGraphFollowRecord = AppBskyGraphFollowRecord;
|
|
1297
|
+
class AppBskyGraphListRecord {
|
|
1319
1298
|
constructor(client) {
|
|
1320
1299
|
Object.defineProperty(this, "_client", {
|
|
1321
1300
|
enumerable: true,
|
|
@@ -1325,9 +1304,36 @@ class AppBskyEmbedNS {
|
|
|
1325
1304
|
});
|
|
1326
1305
|
this._client = client;
|
|
1327
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
|
+
}
|
|
1328
1334
|
}
|
|
1329
|
-
exports.
|
|
1330
|
-
class
|
|
1335
|
+
exports.AppBskyGraphListRecord = AppBskyGraphListRecord;
|
|
1336
|
+
class AppBskyGraphListblockRecord {
|
|
1331
1337
|
constructor(client) {
|
|
1332
1338
|
Object.defineProperty(this, "_client", {
|
|
1333
1339
|
enumerable: true,
|
|
@@ -1335,174 +1341,116 @@ class AppBskyFeedNS {
|
|
|
1335
1341
|
writable: true,
|
|
1336
1342
|
value: void 0
|
|
1337
1343
|
});
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
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,
|
|
1343
1350
|
});
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
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,
|
|
1349
1357
|
});
|
|
1350
|
-
|
|
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", {
|
|
1351
1378
|
enumerable: true,
|
|
1352
1379
|
configurable: true,
|
|
1353
1380
|
writable: true,
|
|
1354
1381
|
value: void 0
|
|
1355
1382
|
});
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
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,
|
|
1361
1389
|
});
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
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,
|
|
1367
1396
|
});
|
|
1368
|
-
|
|
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", {
|
|
1369
1417
|
enumerable: true,
|
|
1370
1418
|
configurable: true,
|
|
1371
1419
|
writable: true,
|
|
1372
1420
|
value: void 0
|
|
1373
1421
|
});
|
|
1374
1422
|
this._client = client;
|
|
1375
|
-
this.generator = new AppBskyFeedGeneratorRecord(client);
|
|
1376
|
-
this.like = new AppBskyFeedLikeRecord(client);
|
|
1377
|
-
this.post = new AppBskyFeedPostRecord(client);
|
|
1378
|
-
this.postgate = new AppBskyFeedPostgateRecord(client);
|
|
1379
|
-
this.repost = new AppBskyFeedRepostRecord(client);
|
|
1380
|
-
this.threadgate = new AppBskyFeedThreadgateRecord(client);
|
|
1381
1423
|
}
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
return this._client.call('app.bsky.feed.getActorFeeds', params, undefined, opts);
|
|
1387
|
-
}
|
|
1388
|
-
getActorLikes(params, opts) {
|
|
1389
|
-
return this._client
|
|
1390
|
-
.call('app.bsky.feed.getActorLikes', params, undefined, opts)
|
|
1391
|
-
.catch((e) => {
|
|
1392
|
-
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,
|
|
1393
1428
|
});
|
|
1394
|
-
|
|
1395
|
-
getAuthorFeed(params, opts) {
|
|
1396
|
-
return this._client
|
|
1397
|
-
.call('app.bsky.feed.getAuthorFeed', params, undefined, opts)
|
|
1398
|
-
.catch((e) => {
|
|
1399
|
-
throw AppBskyFeedGetAuthorFeed.toKnownErr(e);
|
|
1400
|
-
});
|
|
1401
|
-
}
|
|
1402
|
-
getFeed(params, opts) {
|
|
1403
|
-
return this._client
|
|
1404
|
-
.call('app.bsky.feed.getFeed', params, undefined, opts)
|
|
1405
|
-
.catch((e) => {
|
|
1406
|
-
throw AppBskyFeedGetFeed.toKnownErr(e);
|
|
1407
|
-
});
|
|
1408
|
-
}
|
|
1409
|
-
getFeedGenerator(params, opts) {
|
|
1410
|
-
return this._client.call('app.bsky.feed.getFeedGenerator', params, undefined, opts);
|
|
1411
|
-
}
|
|
1412
|
-
getFeedGenerators(params, opts) {
|
|
1413
|
-
return this._client.call('app.bsky.feed.getFeedGenerators', params, undefined, opts);
|
|
1414
|
-
}
|
|
1415
|
-
getFeedSkeleton(params, opts) {
|
|
1416
|
-
return this._client
|
|
1417
|
-
.call('app.bsky.feed.getFeedSkeleton', params, undefined, opts)
|
|
1418
|
-
.catch((e) => {
|
|
1419
|
-
throw AppBskyFeedGetFeedSkeleton.toKnownErr(e);
|
|
1420
|
-
});
|
|
1421
|
-
}
|
|
1422
|
-
getLikes(params, opts) {
|
|
1423
|
-
return this._client.call('app.bsky.feed.getLikes', params, undefined, opts);
|
|
1424
|
-
}
|
|
1425
|
-
getListFeed(params, opts) {
|
|
1426
|
-
return this._client
|
|
1427
|
-
.call('app.bsky.feed.getListFeed', params, undefined, opts)
|
|
1428
|
-
.catch((e) => {
|
|
1429
|
-
throw AppBskyFeedGetListFeed.toKnownErr(e);
|
|
1430
|
-
});
|
|
1431
|
-
}
|
|
1432
|
-
getPostThread(params, opts) {
|
|
1433
|
-
return this._client
|
|
1434
|
-
.call('app.bsky.feed.getPostThread', params, undefined, opts)
|
|
1435
|
-
.catch((e) => {
|
|
1436
|
-
throw AppBskyFeedGetPostThread.toKnownErr(e);
|
|
1437
|
-
});
|
|
1438
|
-
}
|
|
1439
|
-
getPosts(params, opts) {
|
|
1440
|
-
return this._client.call('app.bsky.feed.getPosts', params, undefined, opts);
|
|
1441
|
-
}
|
|
1442
|
-
getQuotes(params, opts) {
|
|
1443
|
-
return this._client.call('app.bsky.feed.getQuotes', params, undefined, opts);
|
|
1444
|
-
}
|
|
1445
|
-
getRepostedBy(params, opts) {
|
|
1446
|
-
return this._client.call('app.bsky.feed.getRepostedBy', params, undefined, opts);
|
|
1447
|
-
}
|
|
1448
|
-
getSuggestedFeeds(params, opts) {
|
|
1449
|
-
return this._client.call('app.bsky.feed.getSuggestedFeeds', params, undefined, opts);
|
|
1450
|
-
}
|
|
1451
|
-
getTimeline(params, opts) {
|
|
1452
|
-
return this._client.call('app.bsky.feed.getTimeline', params, undefined, opts);
|
|
1453
|
-
}
|
|
1454
|
-
searchPosts(params, opts) {
|
|
1455
|
-
return this._client
|
|
1456
|
-
.call('app.bsky.feed.searchPosts', params, undefined, opts)
|
|
1457
|
-
.catch((e) => {
|
|
1458
|
-
throw AppBskyFeedSearchPosts.toKnownErr(e);
|
|
1459
|
-
});
|
|
1460
|
-
}
|
|
1461
|
-
sendInteractions(data, opts) {
|
|
1462
|
-
return this._client.call('app.bsky.feed.sendInteractions', opts?.qp, data, opts);
|
|
1463
|
-
}
|
|
1464
|
-
}
|
|
1465
|
-
exports.AppBskyFeedNS = AppBskyFeedNS;
|
|
1466
|
-
class AppBskyFeedGeneratorRecord {
|
|
1467
|
-
constructor(client) {
|
|
1468
|
-
Object.defineProperty(this, "_client", {
|
|
1469
|
-
enumerable: true,
|
|
1470
|
-
configurable: true,
|
|
1471
|
-
writable: true,
|
|
1472
|
-
value: void 0
|
|
1473
|
-
});
|
|
1474
|
-
this._client = client;
|
|
1475
|
-
}
|
|
1476
|
-
async list(params) {
|
|
1477
|
-
const res = await this._client.call('com.atproto.repo.listRecords', {
|
|
1478
|
-
collection: 'app.bsky.feed.generator',
|
|
1479
|
-
...params,
|
|
1480
|
-
});
|
|
1481
|
-
return res.data;
|
|
1429
|
+
return res.data;
|
|
1482
1430
|
}
|
|
1483
1431
|
async get(params) {
|
|
1484
1432
|
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
1485
|
-
collection: 'app.bsky.
|
|
1433
|
+
collection: 'app.bsky.graph.starterpack',
|
|
1486
1434
|
...params,
|
|
1487
1435
|
});
|
|
1488
1436
|
return res.data;
|
|
1489
1437
|
}
|
|
1490
1438
|
async create(params, record, headers) {
|
|
1491
|
-
const collection = 'app.bsky.
|
|
1439
|
+
const collection = 'app.bsky.graph.starterpack';
|
|
1492
1440
|
const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1493
1441
|
return res.data;
|
|
1494
1442
|
}
|
|
1495
1443
|
async put(params, record, headers) {
|
|
1496
|
-
const collection = 'app.bsky.
|
|
1444
|
+
const collection = 'app.bsky.graph.starterpack';
|
|
1497
1445
|
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1498
1446
|
return res.data;
|
|
1499
1447
|
}
|
|
1500
1448
|
async delete(params, headers) {
|
|
1501
|
-
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 });
|
|
1502
1450
|
}
|
|
1503
1451
|
}
|
|
1504
|
-
exports.
|
|
1505
|
-
class
|
|
1452
|
+
exports.AppBskyGraphStarterpackRecord = AppBskyGraphStarterpackRecord;
|
|
1453
|
+
class AppBskyGraphVerificationRecord {
|
|
1506
1454
|
constructor(client) {
|
|
1507
1455
|
Object.defineProperty(this, "_client", {
|
|
1508
1456
|
enumerable: true,
|
|
@@ -1514,34 +1462,34 @@ class AppBskyFeedLikeRecord {
|
|
|
1514
1462
|
}
|
|
1515
1463
|
async list(params) {
|
|
1516
1464
|
const res = await this._client.call('com.atproto.repo.listRecords', {
|
|
1517
|
-
collection: 'app.bsky.
|
|
1465
|
+
collection: 'app.bsky.graph.verification',
|
|
1518
1466
|
...params,
|
|
1519
1467
|
});
|
|
1520
1468
|
return res.data;
|
|
1521
1469
|
}
|
|
1522
1470
|
async get(params) {
|
|
1523
1471
|
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
1524
|
-
collection: 'app.bsky.
|
|
1472
|
+
collection: 'app.bsky.graph.verification',
|
|
1525
1473
|
...params,
|
|
1526
1474
|
});
|
|
1527
1475
|
return res.data;
|
|
1528
1476
|
}
|
|
1529
1477
|
async create(params, record, headers) {
|
|
1530
|
-
const collection = 'app.bsky.
|
|
1478
|
+
const collection = 'app.bsky.graph.verification';
|
|
1531
1479
|
const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1532
1480
|
return res.data;
|
|
1533
1481
|
}
|
|
1534
1482
|
async put(params, record, headers) {
|
|
1535
|
-
const collection = 'app.bsky.
|
|
1483
|
+
const collection = 'app.bsky.graph.verification';
|
|
1536
1484
|
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1537
1485
|
return res.data;
|
|
1538
1486
|
}
|
|
1539
1487
|
async delete(params, headers) {
|
|
1540
|
-
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 });
|
|
1541
1489
|
}
|
|
1542
1490
|
}
|
|
1543
|
-
exports.
|
|
1544
|
-
class
|
|
1491
|
+
exports.AppBskyGraphVerificationRecord = AppBskyGraphVerificationRecord;
|
|
1492
|
+
class AppBskyLabelerNS {
|
|
1545
1493
|
constructor(client) {
|
|
1546
1494
|
Object.defineProperty(this, "_client", {
|
|
1547
1495
|
enumerable: true,
|
|
@@ -1549,38 +1497,21 @@ class AppBskyFeedPostRecord {
|
|
|
1549
1497
|
writable: true,
|
|
1550
1498
|
value: void 0
|
|
1551
1499
|
});
|
|
1552
|
-
this
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
...params,
|
|
1558
|
-
});
|
|
1559
|
-
return res.data;
|
|
1560
|
-
}
|
|
1561
|
-
async get(params) {
|
|
1562
|
-
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
1563
|
-
collection: 'app.bsky.feed.post',
|
|
1564
|
-
...params,
|
|
1500
|
+
Object.defineProperty(this, "service", {
|
|
1501
|
+
enumerable: true,
|
|
1502
|
+
configurable: true,
|
|
1503
|
+
writable: true,
|
|
1504
|
+
value: void 0
|
|
1565
1505
|
});
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
async create(params, record, headers) {
|
|
1569
|
-
const collection = 'app.bsky.feed.post';
|
|
1570
|
-
const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1571
|
-
return res.data;
|
|
1572
|
-
}
|
|
1573
|
-
async put(params, record, headers) {
|
|
1574
|
-
const collection = 'app.bsky.feed.post';
|
|
1575
|
-
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1576
|
-
return res.data;
|
|
1506
|
+
this._client = client;
|
|
1507
|
+
this.service = new AppBskyLabelerServiceRecord(client);
|
|
1577
1508
|
}
|
|
1578
|
-
|
|
1579
|
-
|
|
1509
|
+
getServices(params, opts) {
|
|
1510
|
+
return this._client.call('app.bsky.labeler.getServices', params, undefined, opts);
|
|
1580
1511
|
}
|
|
1581
1512
|
}
|
|
1582
|
-
exports.
|
|
1583
|
-
class
|
|
1513
|
+
exports.AppBskyLabelerNS = AppBskyLabelerNS;
|
|
1514
|
+
class AppBskyLabelerServiceRecord {
|
|
1584
1515
|
constructor(client) {
|
|
1585
1516
|
Object.defineProperty(this, "_client", {
|
|
1586
1517
|
enumerable: true,
|
|
@@ -1592,34 +1523,39 @@ class AppBskyFeedPostgateRecord {
|
|
|
1592
1523
|
}
|
|
1593
1524
|
async list(params) {
|
|
1594
1525
|
const res = await this._client.call('com.atproto.repo.listRecords', {
|
|
1595
|
-
collection: 'app.bsky.
|
|
1526
|
+
collection: 'app.bsky.labeler.service',
|
|
1596
1527
|
...params,
|
|
1597
1528
|
});
|
|
1598
1529
|
return res.data;
|
|
1599
1530
|
}
|
|
1600
1531
|
async get(params) {
|
|
1601
1532
|
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
1602
|
-
collection: 'app.bsky.
|
|
1533
|
+
collection: 'app.bsky.labeler.service',
|
|
1603
1534
|
...params,
|
|
1604
1535
|
});
|
|
1605
1536
|
return res.data;
|
|
1606
1537
|
}
|
|
1607
1538
|
async create(params, record, headers) {
|
|
1608
|
-
const collection = 'app.bsky.
|
|
1609
|
-
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 });
|
|
1610
1546
|
return res.data;
|
|
1611
1547
|
}
|
|
1612
1548
|
async put(params, record, headers) {
|
|
1613
|
-
const collection = 'app.bsky.
|
|
1549
|
+
const collection = 'app.bsky.labeler.service';
|
|
1614
1550
|
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1615
1551
|
return res.data;
|
|
1616
1552
|
}
|
|
1617
1553
|
async delete(params, headers) {
|
|
1618
|
-
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 });
|
|
1619
1555
|
}
|
|
1620
1556
|
}
|
|
1621
|
-
exports.
|
|
1622
|
-
class
|
|
1557
|
+
exports.AppBskyLabelerServiceRecord = AppBskyLabelerServiceRecord;
|
|
1558
|
+
class AppBskyNotificationNS {
|
|
1623
1559
|
constructor(client) {
|
|
1624
1560
|
Object.defineProperty(this, "_client", {
|
|
1625
1561
|
enumerable: true,
|
|
@@ -1627,38 +1563,48 @@ class AppBskyFeedRepostRecord {
|
|
|
1627
1563
|
writable: true,
|
|
1628
1564
|
value: void 0
|
|
1629
1565
|
});
|
|
1566
|
+
Object.defineProperty(this, "declaration", {
|
|
1567
|
+
enumerable: true,
|
|
1568
|
+
configurable: true,
|
|
1569
|
+
writable: true,
|
|
1570
|
+
value: void 0
|
|
1571
|
+
});
|
|
1630
1572
|
this._client = client;
|
|
1573
|
+
this.declaration = new AppBskyNotificationDeclarationRecord(client);
|
|
1631
1574
|
}
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
collection: 'app.bsky.feed.repost',
|
|
1635
|
-
...params,
|
|
1636
|
-
});
|
|
1637
|
-
return res.data;
|
|
1575
|
+
getPreferences(params, opts) {
|
|
1576
|
+
return this._client.call('app.bsky.notification.getPreferences', params, undefined, opts);
|
|
1638
1577
|
}
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
collection: 'app.bsky.feed.repost',
|
|
1642
|
-
...params,
|
|
1643
|
-
});
|
|
1644
|
-
return res.data;
|
|
1578
|
+
getUnreadCount(params, opts) {
|
|
1579
|
+
return this._client.call('app.bsky.notification.getUnreadCount', params, undefined, opts);
|
|
1645
1580
|
}
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1649
|
-
return res.data;
|
|
1581
|
+
listActivitySubscriptions(params, opts) {
|
|
1582
|
+
return this._client.call('app.bsky.notification.listActivitySubscriptions', params, undefined, opts);
|
|
1650
1583
|
}
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1654
|
-
return res.data;
|
|
1584
|
+
listNotifications(params, opts) {
|
|
1585
|
+
return this._client.call('app.bsky.notification.listNotifications', params, undefined, opts);
|
|
1655
1586
|
}
|
|
1656
|
-
|
|
1657
|
-
|
|
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);
|
|
1658
1604
|
}
|
|
1659
1605
|
}
|
|
1660
|
-
exports.
|
|
1661
|
-
class
|
|
1606
|
+
exports.AppBskyNotificationNS = AppBskyNotificationNS;
|
|
1607
|
+
class AppBskyNotificationDeclarationRecord {
|
|
1662
1608
|
constructor(client) {
|
|
1663
1609
|
Object.defineProperty(this, "_client", {
|
|
1664
1610
|
enumerable: true,
|
|
@@ -1670,34 +1616,39 @@ class AppBskyFeedThreadgateRecord {
|
|
|
1670
1616
|
}
|
|
1671
1617
|
async list(params) {
|
|
1672
1618
|
const res = await this._client.call('com.atproto.repo.listRecords', {
|
|
1673
|
-
collection: 'app.bsky.
|
|
1619
|
+
collection: 'app.bsky.notification.declaration',
|
|
1674
1620
|
...params,
|
|
1675
1621
|
});
|
|
1676
1622
|
return res.data;
|
|
1677
1623
|
}
|
|
1678
1624
|
async get(params) {
|
|
1679
1625
|
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
1680
|
-
collection: 'app.bsky.
|
|
1626
|
+
collection: 'app.bsky.notification.declaration',
|
|
1681
1627
|
...params,
|
|
1682
1628
|
});
|
|
1683
1629
|
return res.data;
|
|
1684
1630
|
}
|
|
1685
1631
|
async create(params, record, headers) {
|
|
1686
|
-
const collection = 'app.bsky.
|
|
1687
|
-
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 });
|
|
1688
1639
|
return res.data;
|
|
1689
1640
|
}
|
|
1690
1641
|
async put(params, record, headers) {
|
|
1691
|
-
const collection = 'app.bsky.
|
|
1642
|
+
const collection = 'app.bsky.notification.declaration';
|
|
1692
1643
|
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1693
1644
|
return res.data;
|
|
1694
1645
|
}
|
|
1695
1646
|
async delete(params, headers) {
|
|
1696
|
-
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 });
|
|
1697
1648
|
}
|
|
1698
1649
|
}
|
|
1699
|
-
exports.
|
|
1700
|
-
class
|
|
1650
|
+
exports.AppBskyNotificationDeclarationRecord = AppBskyNotificationDeclarationRecord;
|
|
1651
|
+
class AppBskyRichtextNS {
|
|
1701
1652
|
constructor(client) {
|
|
1702
1653
|
Object.defineProperty(this, "_client", {
|
|
1703
1654
|
enumerable: true,
|
|
@@ -1705,133 +1656,197 @@ class AppBskyGraphNS {
|
|
|
1705
1656
|
writable: true,
|
|
1706
1657
|
value: void 0
|
|
1707
1658
|
});
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1659
|
+
this._client = client;
|
|
1660
|
+
}
|
|
1661
|
+
}
|
|
1662
|
+
exports.AppBskyRichtextNS = AppBskyRichtextNS;
|
|
1663
|
+
class AppBskyUnspeccedNS {
|
|
1664
|
+
constructor(client) {
|
|
1665
|
+
Object.defineProperty(this, "_client", {
|
|
1666
|
+
enumerable: true,
|
|
1667
|
+
configurable: true,
|
|
1711
1668
|
writable: true,
|
|
1712
1669
|
value: void 0
|
|
1713
1670
|
});
|
|
1714
|
-
|
|
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", {
|
|
1715
1754
|
enumerable: true,
|
|
1716
1755
|
configurable: true,
|
|
1717
1756
|
writable: true,
|
|
1718
1757
|
value: void 0
|
|
1719
1758
|
});
|
|
1720
|
-
|
|
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", {
|
|
1721
1775
|
enumerable: true,
|
|
1722
1776
|
configurable: true,
|
|
1723
1777
|
writable: true,
|
|
1724
1778
|
value: void 0
|
|
1725
1779
|
});
|
|
1726
|
-
Object.defineProperty(this, "
|
|
1780
|
+
Object.defineProperty(this, "bsky", {
|
|
1727
1781
|
enumerable: true,
|
|
1728
1782
|
configurable: true,
|
|
1729
1783
|
writable: true,
|
|
1730
1784
|
value: void 0
|
|
1731
1785
|
});
|
|
1732
|
-
|
|
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", {
|
|
1733
1794
|
enumerable: true,
|
|
1734
1795
|
configurable: true,
|
|
1735
1796
|
writable: true,
|
|
1736
1797
|
value: void 0
|
|
1737
1798
|
});
|
|
1738
|
-
Object.defineProperty(this, "
|
|
1799
|
+
Object.defineProperty(this, "actor", {
|
|
1739
1800
|
enumerable: true,
|
|
1740
1801
|
configurable: true,
|
|
1741
1802
|
writable: true,
|
|
1742
1803
|
value: void 0
|
|
1743
1804
|
});
|
|
1744
|
-
Object.defineProperty(this, "
|
|
1805
|
+
Object.defineProperty(this, "convo", {
|
|
1806
|
+
enumerable: true,
|
|
1807
|
+
configurable: true,
|
|
1808
|
+
writable: true,
|
|
1809
|
+
value: void 0
|
|
1810
|
+
});
|
|
1811
|
+
Object.defineProperty(this, "moderation", {
|
|
1745
1812
|
enumerable: true,
|
|
1746
1813
|
configurable: true,
|
|
1747
1814
|
writable: true,
|
|
1748
1815
|
value: void 0
|
|
1749
1816
|
});
|
|
1750
1817
|
this._client = client;
|
|
1751
|
-
this.
|
|
1752
|
-
this.
|
|
1753
|
-
this.
|
|
1754
|
-
this.listblock = new AppBskyGraphListblockRecord(client);
|
|
1755
|
-
this.listitem = new AppBskyGraphListitemRecord(client);
|
|
1756
|
-
this.starterpack = new AppBskyGraphStarterpackRecord(client);
|
|
1757
|
-
this.verification = new AppBskyGraphVerificationRecord(client);
|
|
1758
|
-
}
|
|
1759
|
-
getActorStarterPacks(params, opts) {
|
|
1760
|
-
return this._client.call('app.bsky.graph.getActorStarterPacks', params, undefined, opts);
|
|
1761
|
-
}
|
|
1762
|
-
getBlocks(params, opts) {
|
|
1763
|
-
return this._client.call('app.bsky.graph.getBlocks', params, undefined, opts);
|
|
1764
|
-
}
|
|
1765
|
-
getFollowers(params, opts) {
|
|
1766
|
-
return this._client.call('app.bsky.graph.getFollowers', params, undefined, opts);
|
|
1767
|
-
}
|
|
1768
|
-
getFollows(params, opts) {
|
|
1769
|
-
return this._client.call('app.bsky.graph.getFollows', params, undefined, opts);
|
|
1770
|
-
}
|
|
1771
|
-
getKnownFollowers(params, opts) {
|
|
1772
|
-
return this._client.call('app.bsky.graph.getKnownFollowers', params, undefined, opts);
|
|
1773
|
-
}
|
|
1774
|
-
getList(params, opts) {
|
|
1775
|
-
return this._client.call('app.bsky.graph.getList', params, undefined, opts);
|
|
1776
|
-
}
|
|
1777
|
-
getListBlocks(params, opts) {
|
|
1778
|
-
return this._client.call('app.bsky.graph.getListBlocks', params, undefined, opts);
|
|
1779
|
-
}
|
|
1780
|
-
getListMutes(params, opts) {
|
|
1781
|
-
return this._client.call('app.bsky.graph.getListMutes', params, undefined, opts);
|
|
1782
|
-
}
|
|
1783
|
-
getLists(params, opts) {
|
|
1784
|
-
return this._client.call('app.bsky.graph.getLists', params, undefined, opts);
|
|
1785
|
-
}
|
|
1786
|
-
getListsWithMembership(params, opts) {
|
|
1787
|
-
return this._client.call('app.bsky.graph.getListsWithMembership', params, undefined, opts);
|
|
1788
|
-
}
|
|
1789
|
-
getMutes(params, opts) {
|
|
1790
|
-
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);
|
|
1791
1821
|
}
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
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
|
|
1797
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);
|
|
1798
1840
|
}
|
|
1799
|
-
|
|
1800
|
-
return this._client.call('
|
|
1801
|
-
}
|
|
1802
|
-
getStarterPacks(params, opts) {
|
|
1803
|
-
return this._client.call('app.bsky.graph.getStarterPacks', params, undefined, opts);
|
|
1804
|
-
}
|
|
1805
|
-
getStarterPacksWithMembership(params, opts) {
|
|
1806
|
-
return this._client.call('app.bsky.graph.getStarterPacksWithMembership', params, undefined, opts);
|
|
1807
|
-
}
|
|
1808
|
-
getSuggestedFollowsByActor(params, opts) {
|
|
1809
|
-
return this._client.call('app.bsky.graph.getSuggestedFollowsByActor', params, undefined, opts);
|
|
1810
|
-
}
|
|
1811
|
-
muteActor(data, opts) {
|
|
1812
|
-
return this._client.call('app.bsky.graph.muteActor', opts?.qp, data, opts);
|
|
1813
|
-
}
|
|
1814
|
-
muteActorList(data, opts) {
|
|
1815
|
-
return this._client.call('app.bsky.graph.muteActorList', opts?.qp, data, opts);
|
|
1816
|
-
}
|
|
1817
|
-
muteThread(data, opts) {
|
|
1818
|
-
return this._client.call('app.bsky.graph.muteThread', opts?.qp, data, opts);
|
|
1819
|
-
}
|
|
1820
|
-
searchStarterPacks(params, opts) {
|
|
1821
|
-
return this._client.call('app.bsky.graph.searchStarterPacks', params, undefined, opts);
|
|
1822
|
-
}
|
|
1823
|
-
unmuteActor(data, opts) {
|
|
1824
|
-
return this._client.call('app.bsky.graph.unmuteActor', opts?.qp, data, opts);
|
|
1825
|
-
}
|
|
1826
|
-
unmuteActorList(data, opts) {
|
|
1827
|
-
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);
|
|
1828
1843
|
}
|
|
1829
|
-
|
|
1830
|
-
return this._client.call('
|
|
1844
|
+
exportAccountData(params, opts) {
|
|
1845
|
+
return this._client.call('chat.bsky.actor.exportAccountData', params, undefined, opts);
|
|
1831
1846
|
}
|
|
1832
1847
|
}
|
|
1833
|
-
exports.
|
|
1834
|
-
class
|
|
1848
|
+
exports.ChatBskyActorNS = ChatBskyActorNS;
|
|
1849
|
+
class ChatBskyActorDeclarationRecord {
|
|
1835
1850
|
constructor(client) {
|
|
1836
1851
|
Object.defineProperty(this, "_client", {
|
|
1837
1852
|
enumerable: true,
|
|
@@ -1843,34 +1858,39 @@ class AppBskyGraphBlockRecord {
|
|
|
1843
1858
|
}
|
|
1844
1859
|
async list(params) {
|
|
1845
1860
|
const res = await this._client.call('com.atproto.repo.listRecords', {
|
|
1846
|
-
collection: '
|
|
1861
|
+
collection: 'chat.bsky.actor.declaration',
|
|
1847
1862
|
...params,
|
|
1848
1863
|
});
|
|
1849
1864
|
return res.data;
|
|
1850
1865
|
}
|
|
1851
1866
|
async get(params) {
|
|
1852
1867
|
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
1853
|
-
collection: '
|
|
1868
|
+
collection: 'chat.bsky.actor.declaration',
|
|
1854
1869
|
...params,
|
|
1855
1870
|
});
|
|
1856
1871
|
return res.data;
|
|
1857
1872
|
}
|
|
1858
1873
|
async create(params, record, headers) {
|
|
1859
|
-
const collection = '
|
|
1860
|
-
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 });
|
|
1861
1881
|
return res.data;
|
|
1862
1882
|
}
|
|
1863
1883
|
async put(params, record, headers) {
|
|
1864
|
-
const collection = '
|
|
1884
|
+
const collection = 'chat.bsky.actor.declaration';
|
|
1865
1885
|
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1866
1886
|
return res.data;
|
|
1867
1887
|
}
|
|
1868
1888
|
async delete(params, headers) {
|
|
1869
|
-
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 });
|
|
1870
1890
|
}
|
|
1871
1891
|
}
|
|
1872
|
-
exports.
|
|
1873
|
-
class
|
|
1892
|
+
exports.ChatBskyActorDeclarationRecord = ChatBskyActorDeclarationRecord;
|
|
1893
|
+
class ChatBskyConvoNS {
|
|
1874
1894
|
constructor(client) {
|
|
1875
1895
|
Object.defineProperty(this, "_client", {
|
|
1876
1896
|
enumerable: true,
|
|
@@ -1880,114 +1900,68 @@ class AppBskyGraphFollowRecord {
|
|
|
1880
1900
|
});
|
|
1881
1901
|
this._client = client;
|
|
1882
1902
|
}
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
collection: 'app.bsky.graph.follow',
|
|
1886
|
-
...params,
|
|
1887
|
-
});
|
|
1888
|
-
return res.data;
|
|
1903
|
+
acceptConvo(data, opts) {
|
|
1904
|
+
return this._client.call('chat.bsky.convo.acceptConvo', opts?.qp, data, opts);
|
|
1889
1905
|
}
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
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);
|
|
1894
1911
|
});
|
|
1895
|
-
return res.data;
|
|
1896
1912
|
}
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1900
|
-
return res.data;
|
|
1913
|
+
deleteMessageForSelf(data, opts) {
|
|
1914
|
+
return this._client.call('chat.bsky.convo.deleteMessageForSelf', opts?.qp, data, opts);
|
|
1901
1915
|
}
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1905
|
-
return res.data;
|
|
1916
|
+
getConvo(params, opts) {
|
|
1917
|
+
return this._client.call('chat.bsky.convo.getConvo', params, undefined, opts);
|
|
1906
1918
|
}
|
|
1907
|
-
|
|
1908
|
-
|
|
1919
|
+
getConvoAvailability(params, opts) {
|
|
1920
|
+
return this._client.call('chat.bsky.convo.getConvoAvailability', params, undefined, opts);
|
|
1909
1921
|
}
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
class AppBskyGraphListRecord {
|
|
1913
|
-
constructor(client) {
|
|
1914
|
-
Object.defineProperty(this, "_client", {
|
|
1915
|
-
enumerable: true,
|
|
1916
|
-
configurable: true,
|
|
1917
|
-
writable: true,
|
|
1918
|
-
value: void 0
|
|
1919
|
-
});
|
|
1920
|
-
this._client = client;
|
|
1922
|
+
getConvoForMembers(params, opts) {
|
|
1923
|
+
return this._client.call('chat.bsky.convo.getConvoForMembers', params, undefined, opts);
|
|
1921
1924
|
}
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
collection: 'app.bsky.graph.list',
|
|
1925
|
-
...params,
|
|
1926
|
-
});
|
|
1927
|
-
return res.data;
|
|
1925
|
+
getLog(params, opts) {
|
|
1926
|
+
return this._client.call('chat.bsky.convo.getLog', params, undefined, opts);
|
|
1928
1927
|
}
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
collection: 'app.bsky.graph.list',
|
|
1932
|
-
...params,
|
|
1933
|
-
});
|
|
1934
|
-
return res.data;
|
|
1928
|
+
getMessages(params, opts) {
|
|
1929
|
+
return this._client.call('chat.bsky.convo.getMessages', params, undefined, opts);
|
|
1935
1930
|
}
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1939
|
-
return res.data;
|
|
1931
|
+
leaveConvo(data, opts) {
|
|
1932
|
+
return this._client.call('chat.bsky.convo.leaveConvo', opts?.qp, data, opts);
|
|
1940
1933
|
}
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1944
|
-
return res.data;
|
|
1934
|
+
listConvos(params, opts) {
|
|
1935
|
+
return this._client.call('chat.bsky.convo.listConvos', params, undefined, opts);
|
|
1945
1936
|
}
|
|
1946
|
-
|
|
1947
|
-
|
|
1937
|
+
muteConvo(data, opts) {
|
|
1938
|
+
return this._client.call('chat.bsky.convo.muteConvo', opts?.qp, data, opts);
|
|
1948
1939
|
}
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
enumerable: true,
|
|
1955
|
-
configurable: true,
|
|
1956
|
-
writable: true,
|
|
1957
|
-
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);
|
|
1958
1945
|
});
|
|
1959
|
-
this._client = client;
|
|
1960
1946
|
}
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
collection: 'app.bsky.graph.listblock',
|
|
1964
|
-
...params,
|
|
1965
|
-
});
|
|
1966
|
-
return res.data;
|
|
1947
|
+
sendMessage(data, opts) {
|
|
1948
|
+
return this._client.call('chat.bsky.convo.sendMessage', opts?.qp, data, opts);
|
|
1967
1949
|
}
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
collection: 'app.bsky.graph.listblock',
|
|
1971
|
-
...params,
|
|
1972
|
-
});
|
|
1973
|
-
return res.data;
|
|
1950
|
+
sendMessageBatch(data, opts) {
|
|
1951
|
+
return this._client.call('chat.bsky.convo.sendMessageBatch', opts?.qp, data, opts);
|
|
1974
1952
|
}
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1978
|
-
return res.data;
|
|
1953
|
+
unmuteConvo(data, opts) {
|
|
1954
|
+
return this._client.call('chat.bsky.convo.unmuteConvo', opts?.qp, data, opts);
|
|
1979
1955
|
}
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1983
|
-
return res.data;
|
|
1956
|
+
updateAllRead(data, opts) {
|
|
1957
|
+
return this._client.call('chat.bsky.convo.updateAllRead', opts?.qp, data, opts);
|
|
1984
1958
|
}
|
|
1985
|
-
|
|
1986
|
-
|
|
1959
|
+
updateRead(data, opts) {
|
|
1960
|
+
return this._client.call('chat.bsky.convo.updateRead', opts?.qp, data, opts);
|
|
1987
1961
|
}
|
|
1988
1962
|
}
|
|
1989
|
-
exports.
|
|
1990
|
-
class
|
|
1963
|
+
exports.ChatBskyConvoNS = ChatBskyConvoNS;
|
|
1964
|
+
class ChatBskyModerationNS {
|
|
1991
1965
|
constructor(client) {
|
|
1992
1966
|
Object.defineProperty(this, "_client", {
|
|
1993
1967
|
enumerable: true,
|
|
@@ -1997,36 +1971,18 @@ class AppBskyGraphListitemRecord {
|
|
|
1997
1971
|
});
|
|
1998
1972
|
this._client = client;
|
|
1999
1973
|
}
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
collection: 'app.bsky.graph.listitem',
|
|
2003
|
-
...params,
|
|
2004
|
-
});
|
|
2005
|
-
return res.data;
|
|
2006
|
-
}
|
|
2007
|
-
async get(params) {
|
|
2008
|
-
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
2009
|
-
collection: 'app.bsky.graph.listitem',
|
|
2010
|
-
...params,
|
|
2011
|
-
});
|
|
2012
|
-
return res.data;
|
|
2013
|
-
}
|
|
2014
|
-
async create(params, record, headers) {
|
|
2015
|
-
const collection = 'app.bsky.graph.listitem';
|
|
2016
|
-
const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
2017
|
-
return res.data;
|
|
1974
|
+
getActorMetadata(params, opts) {
|
|
1975
|
+
return this._client.call('chat.bsky.moderation.getActorMetadata', params, undefined, opts);
|
|
2018
1976
|
}
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
2022
|
-
return res.data;
|
|
1977
|
+
getMessageContext(params, opts) {
|
|
1978
|
+
return this._client.call('chat.bsky.moderation.getMessageContext', params, undefined, opts);
|
|
2023
1979
|
}
|
|
2024
|
-
|
|
2025
|
-
|
|
1980
|
+
updateActorAccess(data, opts) {
|
|
1981
|
+
return this._client.call('chat.bsky.moderation.updateActorAccess', opts?.qp, data, opts);
|
|
2026
1982
|
}
|
|
2027
1983
|
}
|
|
2028
|
-
exports.
|
|
2029
|
-
class
|
|
1984
|
+
exports.ChatBskyModerationNS = ChatBskyModerationNS;
|
|
1985
|
+
class ComNS {
|
|
2030
1986
|
constructor(client) {
|
|
2031
1987
|
Object.defineProperty(this, "_client", {
|
|
2032
1988
|
enumerable: true,
|
|
@@ -2034,77 +1990,18 @@ class AppBskyGraphStarterpackRecord {
|
|
|
2034
1990
|
writable: true,
|
|
2035
1991
|
value: void 0
|
|
2036
1992
|
});
|
|
2037
|
-
this
|
|
2038
|
-
}
|
|
2039
|
-
async list(params) {
|
|
2040
|
-
const res = await this._client.call('com.atproto.repo.listRecords', {
|
|
2041
|
-
collection: 'app.bsky.graph.starterpack',
|
|
2042
|
-
...params,
|
|
2043
|
-
});
|
|
2044
|
-
return res.data;
|
|
2045
|
-
}
|
|
2046
|
-
async get(params) {
|
|
2047
|
-
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
2048
|
-
collection: 'app.bsky.graph.starterpack',
|
|
2049
|
-
...params,
|
|
2050
|
-
});
|
|
2051
|
-
return res.data;
|
|
2052
|
-
}
|
|
2053
|
-
async create(params, record, headers) {
|
|
2054
|
-
const collection = 'app.bsky.graph.starterpack';
|
|
2055
|
-
const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
2056
|
-
return res.data;
|
|
2057
|
-
}
|
|
2058
|
-
async put(params, record, headers) {
|
|
2059
|
-
const collection = 'app.bsky.graph.starterpack';
|
|
2060
|
-
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
2061
|
-
return res.data;
|
|
2062
|
-
}
|
|
2063
|
-
async delete(params, headers) {
|
|
2064
|
-
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.graph.starterpack', ...params }, { headers });
|
|
2065
|
-
}
|
|
2066
|
-
}
|
|
2067
|
-
exports.AppBskyGraphStarterpackRecord = AppBskyGraphStarterpackRecord;
|
|
2068
|
-
class AppBskyGraphVerificationRecord {
|
|
2069
|
-
constructor(client) {
|
|
2070
|
-
Object.defineProperty(this, "_client", {
|
|
1993
|
+
Object.defineProperty(this, "atproto", {
|
|
2071
1994
|
enumerable: true,
|
|
2072
1995
|
configurable: true,
|
|
2073
1996
|
writable: true,
|
|
2074
1997
|
value: void 0
|
|
2075
1998
|
});
|
|
2076
1999
|
this._client = client;
|
|
2077
|
-
|
|
2078
|
-
async list(params) {
|
|
2079
|
-
const res = await this._client.call('com.atproto.repo.listRecords', {
|
|
2080
|
-
collection: 'app.bsky.graph.verification',
|
|
2081
|
-
...params,
|
|
2082
|
-
});
|
|
2083
|
-
return res.data;
|
|
2084
|
-
}
|
|
2085
|
-
async get(params) {
|
|
2086
|
-
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
2087
|
-
collection: 'app.bsky.graph.verification',
|
|
2088
|
-
...params,
|
|
2089
|
-
});
|
|
2090
|
-
return res.data;
|
|
2091
|
-
}
|
|
2092
|
-
async create(params, record, headers) {
|
|
2093
|
-
const collection = 'app.bsky.graph.verification';
|
|
2094
|
-
const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
2095
|
-
return res.data;
|
|
2096
|
-
}
|
|
2097
|
-
async put(params, record, headers) {
|
|
2098
|
-
const collection = 'app.bsky.graph.verification';
|
|
2099
|
-
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
2100
|
-
return res.data;
|
|
2101
|
-
}
|
|
2102
|
-
async delete(params, headers) {
|
|
2103
|
-
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'app.bsky.graph.verification', ...params }, { headers });
|
|
2000
|
+
this.atproto = new ComAtprotoNS(client);
|
|
2104
2001
|
}
|
|
2105
2002
|
}
|
|
2106
|
-
exports.
|
|
2107
|
-
class
|
|
2003
|
+
exports.ComNS = ComNS;
|
|
2004
|
+
class ComAtprotoNS {
|
|
2108
2005
|
constructor(client) {
|
|
2109
2006
|
Object.defineProperty(this, "_client", {
|
|
2110
2007
|
enumerable: true,
|
|
@@ -2112,65 +2009,74 @@ class AppBskyLabelerNS {
|
|
|
2112
2009
|
writable: true,
|
|
2113
2010
|
value: void 0
|
|
2114
2011
|
});
|
|
2115
|
-
Object.defineProperty(this, "
|
|
2012
|
+
Object.defineProperty(this, "admin", {
|
|
2116
2013
|
enumerable: true,
|
|
2117
2014
|
configurable: true,
|
|
2118
2015
|
writable: true,
|
|
2119
2016
|
value: void 0
|
|
2120
2017
|
});
|
|
2121
|
-
this
|
|
2122
|
-
this.service = new AppBskyLabelerServiceRecord(client);
|
|
2123
|
-
}
|
|
2124
|
-
getServices(params, opts) {
|
|
2125
|
-
return this._client.call('app.bsky.labeler.getServices', params, undefined, opts);
|
|
2126
|
-
}
|
|
2127
|
-
}
|
|
2128
|
-
exports.AppBskyLabelerNS = AppBskyLabelerNS;
|
|
2129
|
-
class AppBskyLabelerServiceRecord {
|
|
2130
|
-
constructor(client) {
|
|
2131
|
-
Object.defineProperty(this, "_client", {
|
|
2018
|
+
Object.defineProperty(this, "identity", {
|
|
2132
2019
|
enumerable: true,
|
|
2133
2020
|
configurable: true,
|
|
2134
2021
|
writable: true,
|
|
2135
2022
|
value: void 0
|
|
2136
2023
|
});
|
|
2137
|
-
this
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
...params,
|
|
2024
|
+
Object.defineProperty(this, "label", {
|
|
2025
|
+
enumerable: true,
|
|
2026
|
+
configurable: true,
|
|
2027
|
+
writable: true,
|
|
2028
|
+
value: void 0
|
|
2143
2029
|
});
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
...params,
|
|
2030
|
+
Object.defineProperty(this, "lexicon", {
|
|
2031
|
+
enumerable: true,
|
|
2032
|
+
configurable: true,
|
|
2033
|
+
writable: true,
|
|
2034
|
+
value: void 0
|
|
2150
2035
|
});
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2036
|
+
Object.defineProperty(this, "moderation", {
|
|
2037
|
+
enumerable: true,
|
|
2038
|
+
configurable: true,
|
|
2039
|
+
writable: true,
|
|
2040
|
+
value: void 0
|
|
2041
|
+
});
|
|
2042
|
+
Object.defineProperty(this, "repo", {
|
|
2043
|
+
enumerable: true,
|
|
2044
|
+
configurable: true,
|
|
2045
|
+
writable: true,
|
|
2046
|
+
value: void 0
|
|
2047
|
+
});
|
|
2048
|
+
Object.defineProperty(this, "server", {
|
|
2049
|
+
enumerable: true,
|
|
2050
|
+
configurable: true,
|
|
2051
|
+
writable: true,
|
|
2052
|
+
value: void 0
|
|
2053
|
+
});
|
|
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);
|
|
2170
2076
|
}
|
|
2171
2077
|
}
|
|
2172
|
-
exports.
|
|
2173
|
-
class
|
|
2078
|
+
exports.ComAtprotoNS = ComAtprotoNS;
|
|
2079
|
+
class ComAtprotoAdminNS {
|
|
2174
2080
|
constructor(client) {
|
|
2175
2081
|
Object.defineProperty(this, "_client", {
|
|
2176
2082
|
enumerable: true,
|
|
@@ -2178,48 +2084,145 @@ class AppBskyNotificationNS {
|
|
|
2178
2084
|
writable: true,
|
|
2179
2085
|
value: void 0
|
|
2180
2086
|
});
|
|
2181
|
-
|
|
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", {
|
|
2182
2139
|
enumerable: true,
|
|
2183
2140
|
configurable: true,
|
|
2184
2141
|
writable: true,
|
|
2185
2142
|
value: void 0
|
|
2186
2143
|
});
|
|
2187
2144
|
this._client = client;
|
|
2188
|
-
this.declaration = new AppBskyNotificationDeclarationRecord(client);
|
|
2189
2145
|
}
|
|
2190
|
-
|
|
2191
|
-
return this._client.call('
|
|
2146
|
+
getRecommendedDidCredentials(params, opts) {
|
|
2147
|
+
return this._client.call('com.atproto.identity.getRecommendedDidCredentials', params, undefined, opts);
|
|
2192
2148
|
}
|
|
2193
|
-
|
|
2194
|
-
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
|
+
});
|
|
2195
2155
|
}
|
|
2196
|
-
|
|
2197
|
-
return this._client.call('
|
|
2156
|
+
requestPlcOperationSignature(data, opts) {
|
|
2157
|
+
return this._client.call('com.atproto.identity.requestPlcOperationSignature', opts?.qp, data, opts);
|
|
2198
2158
|
}
|
|
2199
|
-
|
|
2200
|
-
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
|
+
});
|
|
2201
2165
|
}
|
|
2202
|
-
|
|
2203
|
-
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
|
+
});
|
|
2204
2172
|
}
|
|
2205
|
-
|
|
2206
|
-
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
|
+
});
|
|
2207
2179
|
}
|
|
2208
|
-
|
|
2209
|
-
return this._client.call('
|
|
2180
|
+
signPlcOperation(data, opts) {
|
|
2181
|
+
return this._client.call('com.atproto.identity.signPlcOperation', opts?.qp, data, opts);
|
|
2210
2182
|
}
|
|
2211
|
-
|
|
2212
|
-
return this._client.call('
|
|
2183
|
+
submitPlcOperation(data, opts) {
|
|
2184
|
+
return this._client.call('com.atproto.identity.submitPlcOperation', opts?.qp, data, opts);
|
|
2213
2185
|
}
|
|
2214
|
-
|
|
2215
|
-
return this._client.call('
|
|
2186
|
+
updateHandle(data, opts) {
|
|
2187
|
+
return this._client.call('com.atproto.identity.updateHandle', opts?.qp, data, opts);
|
|
2216
2188
|
}
|
|
2217
|
-
|
|
2218
|
-
|
|
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);
|
|
2219
2203
|
}
|
|
2220
2204
|
}
|
|
2221
|
-
exports.
|
|
2222
|
-
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 {
|
|
2223
2226
|
constructor(client) {
|
|
2224
2227
|
Object.defineProperty(this, "_client", {
|
|
2225
2228
|
enumerable: true,
|
|
@@ -2231,39 +2234,34 @@ class AppBskyNotificationDeclarationRecord {
|
|
|
2231
2234
|
}
|
|
2232
2235
|
async list(params) {
|
|
2233
2236
|
const res = await this._client.call('com.atproto.repo.listRecords', {
|
|
2234
|
-
collection: '
|
|
2237
|
+
collection: 'com.atproto.lexicon.schema',
|
|
2235
2238
|
...params,
|
|
2236
2239
|
});
|
|
2237
2240
|
return res.data;
|
|
2238
2241
|
}
|
|
2239
2242
|
async get(params) {
|
|
2240
2243
|
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
2241
|
-
collection: '
|
|
2244
|
+
collection: 'com.atproto.lexicon.schema',
|
|
2242
2245
|
...params,
|
|
2243
2246
|
});
|
|
2244
2247
|
return res.data;
|
|
2245
2248
|
}
|
|
2246
2249
|
async create(params, record, headers) {
|
|
2247
|
-
const collection = '
|
|
2248
|
-
const res = await this._client.call('com.atproto.repo.createRecord', undefined, {
|
|
2249
|
-
collection,
|
|
2250
|
-
rkey: 'self',
|
|
2251
|
-
...params,
|
|
2252
|
-
record: { ...record, $type: collection },
|
|
2253
|
-
}, { 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 });
|
|
2254
2252
|
return res.data;
|
|
2255
2253
|
}
|
|
2256
2254
|
async put(params, record, headers) {
|
|
2257
|
-
const collection = '
|
|
2255
|
+
const collection = 'com.atproto.lexicon.schema';
|
|
2258
2256
|
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
2259
2257
|
return res.data;
|
|
2260
2258
|
}
|
|
2261
2259
|
async delete(params, headers) {
|
|
2262
|
-
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 });
|
|
2263
2261
|
}
|
|
2264
2262
|
}
|
|
2265
|
-
exports.
|
|
2266
|
-
class
|
|
2263
|
+
exports.ComAtprotoLexiconSchemaRecord = ComAtprotoLexiconSchemaRecord;
|
|
2264
|
+
class ComAtprotoModerationNS {
|
|
2267
2265
|
constructor(client) {
|
|
2268
2266
|
Object.defineProperty(this, "_client", {
|
|
2269
2267
|
enumerable: true,
|
|
@@ -2273,9 +2271,12 @@ class AppBskyRichtextNS {
|
|
|
2273
2271
|
});
|
|
2274
2272
|
this._client = client;
|
|
2275
2273
|
}
|
|
2274
|
+
createReport(data, opts) {
|
|
2275
|
+
return this._client.call('com.atproto.moderation.createReport', opts?.qp, data, opts);
|
|
2276
|
+
}
|
|
2276
2277
|
}
|
|
2277
|
-
exports.
|
|
2278
|
-
class
|
|
2278
|
+
exports.ComAtprotoModerationNS = ComAtprotoModerationNS;
|
|
2279
|
+
class ComAtprotoRepoNS {
|
|
2279
2280
|
constructor(client) {
|
|
2280
2281
|
Object.defineProperty(this, "_client", {
|
|
2281
2282
|
enumerable: true,
|
|
@@ -2285,85 +2286,59 @@ class AppBskyUnspeccedNS {
|
|
|
2285
2286
|
});
|
|
2286
2287
|
this._client = client;
|
|
2287
2288
|
}
|
|
2288
|
-
|
|
2289
|
-
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
|
+
});
|
|
2290
2295
|
}
|
|
2291
|
-
|
|
2292
|
-
return this._client.call('app.bsky.unspecced.getConfig', params, undefined, opts);
|
|
2293
|
-
}
|
|
2294
|
-
getPopularFeedGenerators(params, opts) {
|
|
2295
|
-
return this._client.call('app.bsky.unspecced.getPopularFeedGenerators', params, undefined, opts);
|
|
2296
|
-
}
|
|
2297
|
-
getPostThreadOtherV2(params, opts) {
|
|
2298
|
-
return this._client.call('app.bsky.unspecced.getPostThreadOtherV2', params, undefined, opts);
|
|
2299
|
-
}
|
|
2300
|
-
getPostThreadV2(params, opts) {
|
|
2301
|
-
return this._client.call('app.bsky.unspecced.getPostThreadV2', params, undefined, opts);
|
|
2302
|
-
}
|
|
2303
|
-
getSuggestedFeeds(params, opts) {
|
|
2304
|
-
return this._client.call('app.bsky.unspecced.getSuggestedFeeds', params, undefined, opts);
|
|
2305
|
-
}
|
|
2306
|
-
getSuggestedFeedsSkeleton(params, opts) {
|
|
2307
|
-
return this._client.call('app.bsky.unspecced.getSuggestedFeedsSkeleton', params, undefined, opts);
|
|
2308
|
-
}
|
|
2309
|
-
getSuggestedStarterPacks(params, opts) {
|
|
2310
|
-
return this._client.call('app.bsky.unspecced.getSuggestedStarterPacks', params, undefined, opts);
|
|
2311
|
-
}
|
|
2312
|
-
getSuggestedStarterPacksSkeleton(params, opts) {
|
|
2313
|
-
return this._client.call('app.bsky.unspecced.getSuggestedStarterPacksSkeleton', params, undefined, opts);
|
|
2314
|
-
}
|
|
2315
|
-
getSuggestedUsers(params, opts) {
|
|
2316
|
-
return this._client.call('app.bsky.unspecced.getSuggestedUsers', params, undefined, opts);
|
|
2317
|
-
}
|
|
2318
|
-
getSuggestedUsersSkeleton(params, opts) {
|
|
2319
|
-
return this._client.call('app.bsky.unspecced.getSuggestedUsersSkeleton', params, undefined, opts);
|
|
2320
|
-
}
|
|
2321
|
-
getSuggestionsSkeleton(params, opts) {
|
|
2322
|
-
return this._client.call('app.bsky.unspecced.getSuggestionsSkeleton', params, undefined, opts);
|
|
2323
|
-
}
|
|
2324
|
-
getTaggedSuggestions(params, opts) {
|
|
2325
|
-
return this._client.call('app.bsky.unspecced.getTaggedSuggestions', params, undefined, opts);
|
|
2326
|
-
}
|
|
2327
|
-
getTrendingTopics(params, opts) {
|
|
2328
|
-
return this._client.call('app.bsky.unspecced.getTrendingTopics', params, undefined, opts);
|
|
2329
|
-
}
|
|
2330
|
-
getTrends(params, opts) {
|
|
2331
|
-
return this._client.call('app.bsky.unspecced.getTrends', params, undefined, opts);
|
|
2332
|
-
}
|
|
2333
|
-
getTrendsSkeleton(params, opts) {
|
|
2334
|
-
return this._client.call('app.bsky.unspecced.getTrendsSkeleton', params, undefined, opts);
|
|
2335
|
-
}
|
|
2336
|
-
initAgeAssurance(data, opts) {
|
|
2296
|
+
createRecord(data, opts) {
|
|
2337
2297
|
return this._client
|
|
2338
|
-
.call('
|
|
2298
|
+
.call('com.atproto.repo.createRecord', opts?.qp, data, opts)
|
|
2339
2299
|
.catch((e) => {
|
|
2340
|
-
throw
|
|
2300
|
+
throw ComAtprotoRepoCreateRecord.toKnownErr(e);
|
|
2341
2301
|
});
|
|
2342
2302
|
}
|
|
2343
|
-
|
|
2303
|
+
deleteRecord(data, opts) {
|
|
2344
2304
|
return this._client
|
|
2345
|
-
.call('
|
|
2305
|
+
.call('com.atproto.repo.deleteRecord', opts?.qp, data, opts)
|
|
2346
2306
|
.catch((e) => {
|
|
2347
|
-
throw
|
|
2307
|
+
throw ComAtprotoRepoDeleteRecord.toKnownErr(e);
|
|
2348
2308
|
});
|
|
2349
2309
|
}
|
|
2350
|
-
|
|
2310
|
+
describeRepo(params, opts) {
|
|
2311
|
+
return this._client.call('com.atproto.repo.describeRepo', params, undefined, opts);
|
|
2312
|
+
}
|
|
2313
|
+
getRecord(params, opts) {
|
|
2351
2314
|
return this._client
|
|
2352
|
-
.call('
|
|
2315
|
+
.call('com.atproto.repo.getRecord', params, undefined, opts)
|
|
2353
2316
|
.catch((e) => {
|
|
2354
|
-
throw
|
|
2317
|
+
throw ComAtprotoRepoGetRecord.toKnownErr(e);
|
|
2355
2318
|
});
|
|
2356
2319
|
}
|
|
2357
|
-
|
|
2320
|
+
importRepo(data, opts) {
|
|
2321
|
+
return this._client.call('com.atproto.repo.importRepo', opts?.qp, data, opts);
|
|
2322
|
+
}
|
|
2323
|
+
listMissingBlobs(params, opts) {
|
|
2324
|
+
return this._client.call('com.atproto.repo.listMissingBlobs', params, undefined, opts);
|
|
2325
|
+
}
|
|
2326
|
+
listRecords(params, opts) {
|
|
2327
|
+
return this._client.call('com.atproto.repo.listRecords', params, undefined, opts);
|
|
2328
|
+
}
|
|
2329
|
+
putRecord(data, opts) {
|
|
2358
2330
|
return this._client
|
|
2359
|
-
.call('
|
|
2331
|
+
.call('com.atproto.repo.putRecord', opts?.qp, data, opts)
|
|
2360
2332
|
.catch((e) => {
|
|
2361
|
-
throw
|
|
2333
|
+
throw ComAtprotoRepoPutRecord.toKnownErr(e);
|
|
2362
2334
|
});
|
|
2363
2335
|
}
|
|
2336
|
+
uploadBlob(data, opts) {
|
|
2337
|
+
return this._client.call('com.atproto.repo.uploadBlob', opts?.qp, data, opts);
|
|
2338
|
+
}
|
|
2364
2339
|
}
|
|
2365
|
-
exports.
|
|
2366
|
-
class
|
|
2340
|
+
exports.ComAtprotoRepoNS = ComAtprotoRepoNS;
|
|
2341
|
+
class ComAtprotoServerNS {
|
|
2367
2342
|
constructor(client) {
|
|
2368
2343
|
Object.defineProperty(this, "_client", {
|
|
2369
2344
|
enumerable: true,
|
|
@@ -2373,139 +2348,128 @@ class AppBskyVideoNS {
|
|
|
2373
2348
|
});
|
|
2374
2349
|
this._client = client;
|
|
2375
2350
|
}
|
|
2376
|
-
|
|
2377
|
-
return this._client.call('
|
|
2351
|
+
activateAccount(data, opts) {
|
|
2352
|
+
return this._client.call('com.atproto.server.activateAccount', opts?.qp, data, opts);
|
|
2378
2353
|
}
|
|
2379
|
-
|
|
2380
|
-
return this._client.call('
|
|
2354
|
+
checkAccountStatus(params, opts) {
|
|
2355
|
+
return this._client.call('com.atproto.server.checkAccountStatus', params, undefined, opts);
|
|
2381
2356
|
}
|
|
2382
|
-
|
|
2383
|
-
return this._client
|
|
2357
|
+
confirmEmail(data, opts) {
|
|
2358
|
+
return this._client
|
|
2359
|
+
.call('com.atproto.server.confirmEmail', opts?.qp, data, opts)
|
|
2360
|
+
.catch((e) => {
|
|
2361
|
+
throw ComAtprotoServerConfirmEmail.toKnownErr(e);
|
|
2362
|
+
});
|
|
2384
2363
|
}
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
enumerable: true,
|
|
2391
|
-
configurable: true,
|
|
2392
|
-
writable: true,
|
|
2393
|
-
value: void 0
|
|
2364
|
+
createAccount(data, opts) {
|
|
2365
|
+
return this._client
|
|
2366
|
+
.call('com.atproto.server.createAccount', opts?.qp, data, opts)
|
|
2367
|
+
.catch((e) => {
|
|
2368
|
+
throw ComAtprotoServerCreateAccount.toKnownErr(e);
|
|
2394
2369
|
});
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2370
|
+
}
|
|
2371
|
+
createAppPassword(data, opts) {
|
|
2372
|
+
return this._client
|
|
2373
|
+
.call('com.atproto.server.createAppPassword', opts?.qp, data, opts)
|
|
2374
|
+
.catch((e) => {
|
|
2375
|
+
throw ComAtprotoServerCreateAppPassword.toKnownErr(e);
|
|
2400
2376
|
});
|
|
2401
|
-
this._client = client;
|
|
2402
|
-
this.bsky = new ChatBskyNS(client);
|
|
2403
2377
|
}
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
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) {
|
|
2385
|
+
return this._client
|
|
2386
|
+
.call('com.atproto.server.createSession', opts?.qp, data, opts)
|
|
2387
|
+
.catch((e) => {
|
|
2388
|
+
throw ComAtprotoServerCreateSession.toKnownErr(e);
|
|
2413
2389
|
});
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2390
|
+
}
|
|
2391
|
+
deactivateAccount(data, opts) {
|
|
2392
|
+
return this._client.call('com.atproto.server.deactivateAccount', opts?.qp, data, opts);
|
|
2393
|
+
}
|
|
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);
|
|
2419
2399
|
});
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2400
|
+
}
|
|
2401
|
+
deleteSession(data, opts) {
|
|
2402
|
+
return this._client.call('com.atproto.server.deleteSession', opts?.qp, data, opts);
|
|
2403
|
+
}
|
|
2404
|
+
describeServer(params, opts) {
|
|
2405
|
+
return this._client.call('com.atproto.server.describeServer', params, undefined, opts);
|
|
2406
|
+
}
|
|
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);
|
|
2425
2412
|
});
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2413
|
+
}
|
|
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);
|
|
2431
2419
|
});
|
|
2432
|
-
this._client = client;
|
|
2433
|
-
this.actor = new ChatBskyActorNS(client);
|
|
2434
|
-
this.convo = new ChatBskyConvoNS(client);
|
|
2435
|
-
this.moderation = new ChatBskyModerationNS(client);
|
|
2436
2420
|
}
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
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);
|
|
2446
2429
|
});
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
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);
|
|
2452
2436
|
});
|
|
2453
|
-
this._client = client;
|
|
2454
|
-
this.declaration = new ChatBskyActorDeclarationRecord(client);
|
|
2455
2437
|
}
|
|
2456
|
-
|
|
2457
|
-
return this._client.call('
|
|
2438
|
+
requestAccountDelete(data, opts) {
|
|
2439
|
+
return this._client.call('com.atproto.server.requestAccountDelete', opts?.qp, data, opts);
|
|
2458
2440
|
}
|
|
2459
|
-
|
|
2460
|
-
return this._client.call('
|
|
2441
|
+
requestEmailConfirmation(data, opts) {
|
|
2442
|
+
return this._client.call('com.atproto.server.requestEmailConfirmation', opts?.qp, data, opts);
|
|
2461
2443
|
}
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
class ChatBskyActorDeclarationRecord {
|
|
2465
|
-
constructor(client) {
|
|
2466
|
-
Object.defineProperty(this, "_client", {
|
|
2467
|
-
enumerable: true,
|
|
2468
|
-
configurable: true,
|
|
2469
|
-
writable: true,
|
|
2470
|
-
value: void 0
|
|
2471
|
-
});
|
|
2472
|
-
this._client = client;
|
|
2444
|
+
requestEmailUpdate(data, opts) {
|
|
2445
|
+
return this._client.call('com.atproto.server.requestEmailUpdate', opts?.qp, data, opts);
|
|
2473
2446
|
}
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
collection: 'chat.bsky.actor.declaration',
|
|
2477
|
-
...params,
|
|
2478
|
-
});
|
|
2479
|
-
return res.data;
|
|
2447
|
+
requestPasswordReset(data, opts) {
|
|
2448
|
+
return this._client.call('com.atproto.server.requestPasswordReset', opts?.qp, data, opts);
|
|
2480
2449
|
}
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
collection: 'chat.bsky.actor.declaration',
|
|
2484
|
-
...params,
|
|
2485
|
-
});
|
|
2486
|
-
return res.data;
|
|
2450
|
+
reserveSigningKey(data, opts) {
|
|
2451
|
+
return this._client.call('com.atproto.server.reserveSigningKey', opts?.qp, data, opts);
|
|
2487
2452
|
}
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
record: { ...record, $type: collection },
|
|
2495
|
-
}, { encoding: 'application/json', headers });
|
|
2496
|
-
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
|
+
});
|
|
2497
2459
|
}
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
2501
|
-
return res.data;
|
|
2460
|
+
revokeAppPassword(data, opts) {
|
|
2461
|
+
return this._client.call('com.atproto.server.revokeAppPassword', opts?.qp, data, opts);
|
|
2502
2462
|
}
|
|
2503
|
-
|
|
2504
|
-
|
|
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
|
+
});
|
|
2505
2469
|
}
|
|
2506
2470
|
}
|
|
2507
|
-
exports.
|
|
2508
|
-
class
|
|
2471
|
+
exports.ComAtprotoServerNS = ComAtprotoServerNS;
|
|
2472
|
+
class ComAtprotoSyncNS {
|
|
2509
2473
|
constructor(client) {
|
|
2510
2474
|
Object.defineProperty(this, "_client", {
|
|
2511
2475
|
enumerable: true,
|
|
@@ -2515,68 +2479,94 @@ class ChatBskyConvoNS {
|
|
|
2515
2479
|
});
|
|
2516
2480
|
this._client = client;
|
|
2517
2481
|
}
|
|
2518
|
-
|
|
2519
|
-
return this._client.call('chat.bsky.convo.acceptConvo', opts?.qp, data, opts);
|
|
2520
|
-
}
|
|
2521
|
-
addReaction(data, opts) {
|
|
2482
|
+
getBlob(params, opts) {
|
|
2522
2483
|
return this._client
|
|
2523
|
-
.call('
|
|
2484
|
+
.call('com.atproto.sync.getBlob', params, undefined, opts)
|
|
2524
2485
|
.catch((e) => {
|
|
2525
|
-
throw
|
|
2486
|
+
throw ComAtprotoSyncGetBlob.toKnownErr(e);
|
|
2526
2487
|
});
|
|
2527
2488
|
}
|
|
2528
|
-
|
|
2529
|
-
return this._client
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
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
|
+
});
|
|
2533
2495
|
}
|
|
2534
|
-
|
|
2535
|
-
return this._client.call('
|
|
2496
|
+
getCheckout(params, opts) {
|
|
2497
|
+
return this._client.call('com.atproto.sync.getCheckout', params, undefined, opts);
|
|
2536
2498
|
}
|
|
2537
|
-
|
|
2538
|
-
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
|
+
});
|
|
2539
2505
|
}
|
|
2540
|
-
|
|
2541
|
-
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
|
+
});
|
|
2542
2512
|
}
|
|
2543
|
-
|
|
2544
|
-
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
|
+
});
|
|
2545
2519
|
}
|
|
2546
|
-
|
|
2547
|
-
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
|
+
});
|
|
2548
2526
|
}
|
|
2549
|
-
|
|
2550
|
-
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
|
+
});
|
|
2551
2533
|
}
|
|
2552
|
-
|
|
2553
|
-
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
|
+
});
|
|
2554
2540
|
}
|
|
2555
|
-
|
|
2541
|
+
listBlobs(params, opts) {
|
|
2556
2542
|
return this._client
|
|
2557
|
-
.call('
|
|
2543
|
+
.call('com.atproto.sync.listBlobs', params, undefined, opts)
|
|
2558
2544
|
.catch((e) => {
|
|
2559
|
-
throw
|
|
2545
|
+
throw ComAtprotoSyncListBlobs.toKnownErr(e);
|
|
2560
2546
|
});
|
|
2561
2547
|
}
|
|
2562
|
-
|
|
2563
|
-
return this._client.call('
|
|
2548
|
+
listHosts(params, opts) {
|
|
2549
|
+
return this._client.call('com.atproto.sync.listHosts', params, undefined, opts);
|
|
2564
2550
|
}
|
|
2565
|
-
|
|
2566
|
-
return this._client.call('
|
|
2551
|
+
listRepos(params, opts) {
|
|
2552
|
+
return this._client.call('com.atproto.sync.listRepos', params, undefined, opts);
|
|
2567
2553
|
}
|
|
2568
|
-
|
|
2569
|
-
return this._client.call('
|
|
2554
|
+
listReposByCollection(params, opts) {
|
|
2555
|
+
return this._client.call('com.atproto.sync.listReposByCollection', params, undefined, opts);
|
|
2570
2556
|
}
|
|
2571
|
-
|
|
2572
|
-
return this._client.call('
|
|
2557
|
+
notifyOfUpdate(data, opts) {
|
|
2558
|
+
return this._client.call('com.atproto.sync.notifyOfUpdate', opts?.qp, data, opts);
|
|
2573
2559
|
}
|
|
2574
|
-
|
|
2575
|
-
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
|
+
});
|
|
2576
2566
|
}
|
|
2577
2567
|
}
|
|
2578
|
-
exports.
|
|
2579
|
-
class
|
|
2568
|
+
exports.ComAtprotoSyncNS = ComAtprotoSyncNS;
|
|
2569
|
+
class ComAtprotoTempNS {
|
|
2580
2570
|
constructor(client) {
|
|
2581
2571
|
Object.defineProperty(this, "_client", {
|
|
2582
2572
|
enumerable: true,
|
|
@@ -2586,17 +2576,27 @@ class ChatBskyModerationNS {
|
|
|
2586
2576
|
});
|
|
2587
2577
|
this._client = client;
|
|
2588
2578
|
}
|
|
2589
|
-
|
|
2590
|
-
return this._client.call('
|
|
2579
|
+
addReservedHandle(data, opts) {
|
|
2580
|
+
return this._client.call('com.atproto.temp.addReservedHandle', opts?.qp, data, opts);
|
|
2591
2581
|
}
|
|
2592
|
-
|
|
2593
|
-
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
|
+
});
|
|
2594
2588
|
}
|
|
2595
|
-
|
|
2596
|
-
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);
|
|
2597
2597
|
}
|
|
2598
2598
|
}
|
|
2599
|
-
exports.
|
|
2599
|
+
exports.ComAtprotoTempNS = ComAtprotoTempNS;
|
|
2600
2600
|
class ToolsNS {
|
|
2601
2601
|
constructor(client) {
|
|
2602
2602
|
Object.defineProperty(this, "_client", {
|