@atproto/ozone
Version:
Backend service for moderating the Bluesky network.
1,350 lines (1,349 loc) • 71.3 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
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.ComAtprotoLexiconNS = exports.ComAtprotoLabelNS = exports.ComAtprotoIdentityNS = exports.ComAtprotoAdminNS = exports.ComAtprotoNS = exports.ComNS = exports.ChatBskyModerationNS = exports.ChatBskyConvoNS = exports.ChatBskyActorNS = exports.ChatBskyNS = exports.ChatNS = exports.AppBskyVideoNS = exports.AppBskyUnspeccedNS = exports.AppBskyRichtextNS = exports.AppBskyNotificationNS = exports.AppBskyLabelerNS = exports.AppBskyGraphNS = exports.AppBskyFeedNS = exports.AppBskyEmbedNS = exports.AppBskyDraftNS = exports.AppBskyContactNS = exports.AppBskyBookmarkNS = exports.AppBskyAgeassuranceNS = exports.AppBskyActorNS = exports.AppBskyNS = exports.AppNS = exports.Server = exports.TOOLS_OZONE_TEAM = exports.TOOLS_OZONE_REPORT = exports.TOOLS_OZONE_MODERATION = exports.COM_ATPROTO_MODERATION = exports.APP_BSKY_GRAPH = exports.APP_BSKY_FEED = exports.APP_BSKY_ACTOR = void 0;
exports.ToolsOzoneVerificationNS = void 0;
exports.createServer = createServer;
/**
* GENERATED CODE - DO NOT MODIFY
*/
const xrpc_server_1 = require("@atproto/xrpc-server");
const lexicons_js_1 = require("./lexicons.js");
exports.APP_BSKY_ACTOR = {
StatusLive: 'app.bsky.actor.status#live',
};
exports.APP_BSKY_FEED = {
DefsRequestLess: 'app.bsky.feed.defs#requestLess',
DefsRequestMore: 'app.bsky.feed.defs#requestMore',
DefsClickthroughItem: 'app.bsky.feed.defs#clickthroughItem',
DefsClickthroughAuthor: 'app.bsky.feed.defs#clickthroughAuthor',
DefsClickthroughReposter: 'app.bsky.feed.defs#clickthroughReposter',
DefsClickthroughEmbed: 'app.bsky.feed.defs#clickthroughEmbed',
DefsContentModeUnspecified: 'app.bsky.feed.defs#contentModeUnspecified',
DefsContentModeVideo: 'app.bsky.feed.defs#contentModeVideo',
DefsInteractionSeen: 'app.bsky.feed.defs#interactionSeen',
DefsInteractionLike: 'app.bsky.feed.defs#interactionLike',
DefsInteractionRepost: 'app.bsky.feed.defs#interactionRepost',
DefsInteractionReply: 'app.bsky.feed.defs#interactionReply',
DefsInteractionQuote: 'app.bsky.feed.defs#interactionQuote',
DefsInteractionShare: 'app.bsky.feed.defs#interactionShare',
};
exports.APP_BSKY_GRAPH = {
DefsModlist: 'app.bsky.graph.defs#modlist',
DefsCuratelist: 'app.bsky.graph.defs#curatelist',
DefsReferencelist: 'app.bsky.graph.defs#referencelist',
};
exports.COM_ATPROTO_MODERATION = {
DefsReasonSpam: 'com.atproto.moderation.defs#reasonSpam',
DefsReasonViolation: 'com.atproto.moderation.defs#reasonViolation',
DefsReasonMisleading: 'com.atproto.moderation.defs#reasonMisleading',
DefsReasonSexual: 'com.atproto.moderation.defs#reasonSexual',
DefsReasonRude: 'com.atproto.moderation.defs#reasonRude',
DefsReasonOther: 'com.atproto.moderation.defs#reasonOther',
DefsReasonAppeal: 'com.atproto.moderation.defs#reasonAppeal',
};
exports.TOOLS_OZONE_MODERATION = {
DefsReviewOpen: 'tools.ozone.moderation.defs#reviewOpen',
DefsReviewEscalated: 'tools.ozone.moderation.defs#reviewEscalated',
DefsReviewClosed: 'tools.ozone.moderation.defs#reviewClosed',
DefsReviewNone: 'tools.ozone.moderation.defs#reviewNone',
DefsTimelineEventPlcCreate: 'tools.ozone.moderation.defs#timelineEventPlcCreate',
DefsTimelineEventPlcOperation: 'tools.ozone.moderation.defs#timelineEventPlcOperation',
DefsTimelineEventPlcTombstone: 'tools.ozone.moderation.defs#timelineEventPlcTombstone',
};
exports.TOOLS_OZONE_REPORT = {
DefsReasonAppeal: 'tools.ozone.report.defs#reasonAppeal',
DefsReasonOther: 'tools.ozone.report.defs#reasonOther',
DefsReasonViolenceAnimal: 'tools.ozone.report.defs#reasonViolenceAnimal',
DefsReasonViolenceThreats: 'tools.ozone.report.defs#reasonViolenceThreats',
DefsReasonViolenceGraphicContent: 'tools.ozone.report.defs#reasonViolenceGraphicContent',
DefsReasonViolenceGlorification: 'tools.ozone.report.defs#reasonViolenceGlorification',
DefsReasonViolenceExtremistContent: 'tools.ozone.report.defs#reasonViolenceExtremistContent',
DefsReasonViolenceTrafficking: 'tools.ozone.report.defs#reasonViolenceTrafficking',
DefsReasonViolenceOther: 'tools.ozone.report.defs#reasonViolenceOther',
DefsReasonSexualAbuseContent: 'tools.ozone.report.defs#reasonSexualAbuseContent',
DefsReasonSexualNCII: 'tools.ozone.report.defs#reasonSexualNCII',
DefsReasonSexualDeepfake: 'tools.ozone.report.defs#reasonSexualDeepfake',
DefsReasonSexualAnimal: 'tools.ozone.report.defs#reasonSexualAnimal',
DefsReasonSexualUnlabeled: 'tools.ozone.report.defs#reasonSexualUnlabeled',
DefsReasonSexualOther: 'tools.ozone.report.defs#reasonSexualOther',
DefsReasonChildSafetyCSAM: 'tools.ozone.report.defs#reasonChildSafetyCSAM',
DefsReasonChildSafetyGroom: 'tools.ozone.report.defs#reasonChildSafetyGroom',
DefsReasonChildSafetyPrivacy: 'tools.ozone.report.defs#reasonChildSafetyPrivacy',
DefsReasonChildSafetyHarassment: 'tools.ozone.report.defs#reasonChildSafetyHarassment',
DefsReasonChildSafetyOther: 'tools.ozone.report.defs#reasonChildSafetyOther',
DefsReasonHarassmentTroll: 'tools.ozone.report.defs#reasonHarassmentTroll',
DefsReasonHarassmentTargeted: 'tools.ozone.report.defs#reasonHarassmentTargeted',
DefsReasonHarassmentHateSpeech: 'tools.ozone.report.defs#reasonHarassmentHateSpeech',
DefsReasonHarassmentDoxxing: 'tools.ozone.report.defs#reasonHarassmentDoxxing',
DefsReasonHarassmentOther: 'tools.ozone.report.defs#reasonHarassmentOther',
DefsReasonMisleadingBot: 'tools.ozone.report.defs#reasonMisleadingBot',
DefsReasonMisleadingImpersonation: 'tools.ozone.report.defs#reasonMisleadingImpersonation',
DefsReasonMisleadingSpam: 'tools.ozone.report.defs#reasonMisleadingSpam',
DefsReasonMisleadingScam: 'tools.ozone.report.defs#reasonMisleadingScam',
DefsReasonMisleadingElections: 'tools.ozone.report.defs#reasonMisleadingElections',
DefsReasonMisleadingOther: 'tools.ozone.report.defs#reasonMisleadingOther',
DefsReasonRuleSiteSecurity: 'tools.ozone.report.defs#reasonRuleSiteSecurity',
DefsReasonRuleProhibitedSales: 'tools.ozone.report.defs#reasonRuleProhibitedSales',
DefsReasonRuleBanEvasion: 'tools.ozone.report.defs#reasonRuleBanEvasion',
DefsReasonRuleOther: 'tools.ozone.report.defs#reasonRuleOther',
DefsReasonSelfHarmContent: 'tools.ozone.report.defs#reasonSelfHarmContent',
DefsReasonSelfHarmED: 'tools.ozone.report.defs#reasonSelfHarmED',
DefsReasonSelfHarmStunts: 'tools.ozone.report.defs#reasonSelfHarmStunts',
DefsReasonSelfHarmSubstances: 'tools.ozone.report.defs#reasonSelfHarmSubstances',
DefsReasonSelfHarmOther: 'tools.ozone.report.defs#reasonSelfHarmOther',
};
exports.TOOLS_OZONE_TEAM = {
DefsRoleAdmin: 'tools.ozone.team.defs#roleAdmin',
DefsRoleModerator: 'tools.ozone.team.defs#roleModerator',
DefsRoleTriage: 'tools.ozone.team.defs#roleTriage',
DefsRoleVerifier: 'tools.ozone.team.defs#roleVerifier',
};
function createServer(options) {
return new Server(options);
}
class Server {
constructor(options) {
Object.defineProperty(this, "xrpc", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "app", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "chat", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "com", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "tools", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
this.xrpc = (0, xrpc_server_1.createServer)(lexicons_js_1.schemas, options);
this.app = new AppNS(this);
this.chat = new ChatNS(this);
this.com = new ComNS(this);
this.tools = new ToolsNS(this);
}
}
exports.Server = Server;
class AppNS {
constructor(server) {
Object.defineProperty(this, "_server", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "bsky", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
this._server = server;
this.bsky = new AppBskyNS(server);
}
}
exports.AppNS = AppNS;
class AppBskyNS {
constructor(server) {
Object.defineProperty(this, "_server", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "actor", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "ageassurance", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "bookmark", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "contact", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "draft", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "embed", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "feed", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "graph", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "labeler", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "notification", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "richtext", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "unspecced", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "video", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
this._server = server;
this.actor = new AppBskyActorNS(server);
this.ageassurance = new AppBskyAgeassuranceNS(server);
this.bookmark = new AppBskyBookmarkNS(server);
this.contact = new AppBskyContactNS(server);
this.draft = new AppBskyDraftNS(server);
this.embed = new AppBskyEmbedNS(server);
this.feed = new AppBskyFeedNS(server);
this.graph = new AppBskyGraphNS(server);
this.labeler = new AppBskyLabelerNS(server);
this.notification = new AppBskyNotificationNS(server);
this.richtext = new AppBskyRichtextNS(server);
this.unspecced = new AppBskyUnspeccedNS(server);
this.video = new AppBskyVideoNS(server);
}
}
exports.AppBskyNS = AppBskyNS;
class AppBskyActorNS {
constructor(server) {
Object.defineProperty(this, "_server", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
this._server = server;
}
getPreferences(cfg) {
const nsid = 'app.bsky.actor.getPreferences'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getProfile(cfg) {
const nsid = 'app.bsky.actor.getProfile'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getProfiles(cfg) {
const nsid = 'app.bsky.actor.getProfiles'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getSuggestions(cfg) {
const nsid = 'app.bsky.actor.getSuggestions'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
putPreferences(cfg) {
const nsid = 'app.bsky.actor.putPreferences'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
searchActors(cfg) {
const nsid = 'app.bsky.actor.searchActors'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
searchActorsTypeahead(cfg) {
const nsid = 'app.bsky.actor.searchActorsTypeahead'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
}
exports.AppBskyActorNS = AppBskyActorNS;
class AppBskyAgeassuranceNS {
constructor(server) {
Object.defineProperty(this, "_server", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
this._server = server;
}
begin(cfg) {
const nsid = 'app.bsky.ageassurance.begin'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getConfig(cfg) {
const nsid = 'app.bsky.ageassurance.getConfig'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getState(cfg) {
const nsid = 'app.bsky.ageassurance.getState'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
}
exports.AppBskyAgeassuranceNS = AppBskyAgeassuranceNS;
class AppBskyBookmarkNS {
constructor(server) {
Object.defineProperty(this, "_server", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
this._server = server;
}
createBookmark(cfg) {
const nsid = 'app.bsky.bookmark.createBookmark'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
deleteBookmark(cfg) {
const nsid = 'app.bsky.bookmark.deleteBookmark'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getBookmarks(cfg) {
const nsid = 'app.bsky.bookmark.getBookmarks'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
}
exports.AppBskyBookmarkNS = AppBskyBookmarkNS;
class AppBskyContactNS {
constructor(server) {
Object.defineProperty(this, "_server", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
this._server = server;
}
dismissMatch(cfg) {
const nsid = 'app.bsky.contact.dismissMatch'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getMatches(cfg) {
const nsid = 'app.bsky.contact.getMatches'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getSyncStatus(cfg) {
const nsid = 'app.bsky.contact.getSyncStatus'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
importContacts(cfg) {
const nsid = 'app.bsky.contact.importContacts'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
removeData(cfg) {
const nsid = 'app.bsky.contact.removeData'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
sendNotification(cfg) {
const nsid = 'app.bsky.contact.sendNotification'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
startPhoneVerification(cfg) {
const nsid = 'app.bsky.contact.startPhoneVerification'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
verifyPhone(cfg) {
const nsid = 'app.bsky.contact.verifyPhone'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
}
exports.AppBskyContactNS = AppBskyContactNS;
class AppBskyDraftNS {
constructor(server) {
Object.defineProperty(this, "_server", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
this._server = server;
}
createDraft(cfg) {
const nsid = 'app.bsky.draft.createDraft'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
deleteDraft(cfg) {
const nsid = 'app.bsky.draft.deleteDraft'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getDrafts(cfg) {
const nsid = 'app.bsky.draft.getDrafts'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
updateDraft(cfg) {
const nsid = 'app.bsky.draft.updateDraft'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
}
exports.AppBskyDraftNS = AppBskyDraftNS;
class AppBskyEmbedNS {
constructor(server) {
Object.defineProperty(this, "_server", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
this._server = server;
}
}
exports.AppBskyEmbedNS = AppBskyEmbedNS;
class AppBskyFeedNS {
constructor(server) {
Object.defineProperty(this, "_server", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
this._server = server;
}
describeFeedGenerator(cfg) {
const nsid = 'app.bsky.feed.describeFeedGenerator'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getActorFeeds(cfg) {
const nsid = 'app.bsky.feed.getActorFeeds'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getActorLikes(cfg) {
const nsid = 'app.bsky.feed.getActorLikes'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getAuthorFeed(cfg) {
const nsid = 'app.bsky.feed.getAuthorFeed'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getFeed(cfg) {
const nsid = 'app.bsky.feed.getFeed'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getFeedGenerator(cfg) {
const nsid = 'app.bsky.feed.getFeedGenerator'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getFeedGenerators(cfg) {
const nsid = 'app.bsky.feed.getFeedGenerators'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getFeedSkeleton(cfg) {
const nsid = 'app.bsky.feed.getFeedSkeleton'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getLikes(cfg) {
const nsid = 'app.bsky.feed.getLikes'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getListFeed(cfg) {
const nsid = 'app.bsky.feed.getListFeed'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getPostThread(cfg) {
const nsid = 'app.bsky.feed.getPostThread'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getPosts(cfg) {
const nsid = 'app.bsky.feed.getPosts'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getQuotes(cfg) {
const nsid = 'app.bsky.feed.getQuotes'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getRepostedBy(cfg) {
const nsid = 'app.bsky.feed.getRepostedBy'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getSuggestedFeeds(cfg) {
const nsid = 'app.bsky.feed.getSuggestedFeeds'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getTimeline(cfg) {
const nsid = 'app.bsky.feed.getTimeline'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
searchPosts(cfg) {
const nsid = 'app.bsky.feed.searchPosts'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
sendInteractions(cfg) {
const nsid = 'app.bsky.feed.sendInteractions'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
}
exports.AppBskyFeedNS = AppBskyFeedNS;
class AppBskyGraphNS {
constructor(server) {
Object.defineProperty(this, "_server", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
this._server = server;
}
getActorStarterPacks(cfg) {
const nsid = 'app.bsky.graph.getActorStarterPacks'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getBlocks(cfg) {
const nsid = 'app.bsky.graph.getBlocks'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getFollowers(cfg) {
const nsid = 'app.bsky.graph.getFollowers'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getFollows(cfg) {
const nsid = 'app.bsky.graph.getFollows'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getKnownFollowers(cfg) {
const nsid = 'app.bsky.graph.getKnownFollowers'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getList(cfg) {
const nsid = 'app.bsky.graph.getList'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getListBlocks(cfg) {
const nsid = 'app.bsky.graph.getListBlocks'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getListMutes(cfg) {
const nsid = 'app.bsky.graph.getListMutes'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getLists(cfg) {
const nsid = 'app.bsky.graph.getLists'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getListsWithMembership(cfg) {
const nsid = 'app.bsky.graph.getListsWithMembership'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getMutes(cfg) {
const nsid = 'app.bsky.graph.getMutes'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getRelationships(cfg) {
const nsid = 'app.bsky.graph.getRelationships'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getStarterPack(cfg) {
const nsid = 'app.bsky.graph.getStarterPack'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getStarterPacks(cfg) {
const nsid = 'app.bsky.graph.getStarterPacks'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getStarterPacksWithMembership(cfg) {
const nsid = 'app.bsky.graph.getStarterPacksWithMembership'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getSuggestedFollowsByActor(cfg) {
const nsid = 'app.bsky.graph.getSuggestedFollowsByActor'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
muteActor(cfg) {
const nsid = 'app.bsky.graph.muteActor'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
muteActorList(cfg) {
const nsid = 'app.bsky.graph.muteActorList'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
muteThread(cfg) {
const nsid = 'app.bsky.graph.muteThread'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
searchStarterPacks(cfg) {
const nsid = 'app.bsky.graph.searchStarterPacks'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
unmuteActor(cfg) {
const nsid = 'app.bsky.graph.unmuteActor'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
unmuteActorList(cfg) {
const nsid = 'app.bsky.graph.unmuteActorList'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
unmuteThread(cfg) {
const nsid = 'app.bsky.graph.unmuteThread'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
}
exports.AppBskyGraphNS = AppBskyGraphNS;
class AppBskyLabelerNS {
constructor(server) {
Object.defineProperty(this, "_server", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
this._server = server;
}
getServices(cfg) {
const nsid = 'app.bsky.labeler.getServices'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
}
exports.AppBskyLabelerNS = AppBskyLabelerNS;
class AppBskyNotificationNS {
constructor(server) {
Object.defineProperty(this, "_server", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
this._server = server;
}
getPreferences(cfg) {
const nsid = 'app.bsky.notification.getPreferences'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getUnreadCount(cfg) {
const nsid = 'app.bsky.notification.getUnreadCount'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
listActivitySubscriptions(cfg) {
const nsid = 'app.bsky.notification.listActivitySubscriptions'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
listNotifications(cfg) {
const nsid = 'app.bsky.notification.listNotifications'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
putActivitySubscription(cfg) {
const nsid = 'app.bsky.notification.putActivitySubscription'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
putPreferences(cfg) {
const nsid = 'app.bsky.notification.putPreferences'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
putPreferencesV2(cfg) {
const nsid = 'app.bsky.notification.putPreferencesV2'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
registerPush(cfg) {
const nsid = 'app.bsky.notification.registerPush'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
unregisterPush(cfg) {
const nsid = 'app.bsky.notification.unregisterPush'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
updateSeen(cfg) {
const nsid = 'app.bsky.notification.updateSeen'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
}
exports.AppBskyNotificationNS = AppBskyNotificationNS;
class AppBskyRichtextNS {
constructor(server) {
Object.defineProperty(this, "_server", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
this._server = server;
}
}
exports.AppBskyRichtextNS = AppBskyRichtextNS;
class AppBskyUnspeccedNS {
constructor(server) {
Object.defineProperty(this, "_server", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
this._server = server;
}
getAgeAssuranceState(cfg) {
const nsid = 'app.bsky.unspecced.getAgeAssuranceState'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getConfig(cfg) {
const nsid = 'app.bsky.unspecced.getConfig'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getOnboardingSuggestedStarterPacks(cfg) {
const nsid = 'app.bsky.unspecced.getOnboardingSuggestedStarterPacks'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getOnboardingSuggestedStarterPacksSkeleton(cfg) {
const nsid = 'app.bsky.unspecced.getOnboardingSuggestedStarterPacksSkeleton'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getOnboardingSuggestedUsersSkeleton(cfg) {
const nsid = 'app.bsky.unspecced.getOnboardingSuggestedUsersSkeleton'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getPopularFeedGenerators(cfg) {
const nsid = 'app.bsky.unspecced.getPopularFeedGenerators'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getPostThreadOtherV2(cfg) {
const nsid = 'app.bsky.unspecced.getPostThreadOtherV2'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getPostThreadV2(cfg) {
const nsid = 'app.bsky.unspecced.getPostThreadV2'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getSuggestedFeeds(cfg) {
const nsid = 'app.bsky.unspecced.getSuggestedFeeds'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getSuggestedFeedsSkeleton(cfg) {
const nsid = 'app.bsky.unspecced.getSuggestedFeedsSkeleton'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getSuggestedOnboardingUsers(cfg) {
const nsid = 'app.bsky.unspecced.getSuggestedOnboardingUsers'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getSuggestedStarterPacks(cfg) {
const nsid = 'app.bsky.unspecced.getSuggestedStarterPacks'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getSuggestedStarterPacksSkeleton(cfg) {
const nsid = 'app.bsky.unspecced.getSuggestedStarterPacksSkeleton'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getSuggestedUsers(cfg) {
const nsid = 'app.bsky.unspecced.getSuggestedUsers'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getSuggestedUsersSkeleton(cfg) {
const nsid = 'app.bsky.unspecced.getSuggestedUsersSkeleton'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getSuggestionsSkeleton(cfg) {
const nsid = 'app.bsky.unspecced.getSuggestionsSkeleton'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getTaggedSuggestions(cfg) {
const nsid = 'app.bsky.unspecced.getTaggedSuggestions'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getTrendingTopics(cfg) {
const nsid = 'app.bsky.unspecced.getTrendingTopics'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getTrends(cfg) {
const nsid = 'app.bsky.unspecced.getTrends'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getTrendsSkeleton(cfg) {
const nsid = 'app.bsky.unspecced.getTrendsSkeleton'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
initAgeAssurance(cfg) {
const nsid = 'app.bsky.unspecced.initAgeAssurance'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
searchActorsSkeleton(cfg) {
const nsid = 'app.bsky.unspecced.searchActorsSkeleton'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
searchPostsSkeleton(cfg) {
const nsid = 'app.bsky.unspecced.searchPostsSkeleton'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
searchStarterPacksSkeleton(cfg) {
const nsid = 'app.bsky.unspecced.searchStarterPacksSkeleton'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
}
exports.AppBskyUnspeccedNS = AppBskyUnspeccedNS;
class AppBskyVideoNS {
constructor(server) {
Object.defineProperty(this, "_server", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
this._server = server;
}
getJobStatus(cfg) {
const nsid = 'app.bsky.video.getJobStatus'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getUploadLimits(cfg) {
const nsid = 'app.bsky.video.getUploadLimits'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
uploadVideo(cfg) {
const nsid = 'app.bsky.video.uploadVideo'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
}
exports.AppBskyVideoNS = AppBskyVideoNS;
class ChatNS {
constructor(server) {
Object.defineProperty(this, "_server", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "bsky", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
this._server = server;
this.bsky = new ChatBskyNS(server);
}
}
exports.ChatNS = ChatNS;
class ChatBskyNS {
constructor(server) {
Object.defineProperty(this, "_server", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "actor", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "convo", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "moderation", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
this._server = server;
this.actor = new ChatBskyActorNS(server);
this.convo = new ChatBskyConvoNS(server);
this.moderation = new ChatBskyModerationNS(server);
}
}
exports.ChatBskyNS = ChatBskyNS;
class ChatBskyActorNS {
constructor(server) {
Object.defineProperty(this, "_server", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
this._server = server;
}
deleteAccount(cfg) {
const nsid = 'chat.bsky.actor.deleteAccount'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
exportAccountData(cfg) {
const nsid = 'chat.bsky.actor.exportAccountData'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
}
exports.ChatBskyActorNS = ChatBskyActorNS;
class ChatBskyConvoNS {
constructor(server) {
Object.defineProperty(this, "_server", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
this._server = server;
}
acceptConvo(cfg) {
const nsid = 'chat.bsky.convo.acceptConvo'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
addReaction(cfg) {
const nsid = 'chat.bsky.convo.addReaction'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
deleteMessageForSelf(cfg) {
const nsid = 'chat.bsky.convo.deleteMessageForSelf'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getConvo(cfg) {
const nsid = 'chat.bsky.convo.getConvo'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getConvoAvailability(cfg) {
const nsid = 'chat.bsky.convo.getConvoAvailability'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getConvoForMembers(cfg) {
const nsid = 'chat.bsky.convo.getConvoForMembers'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getLog(cfg) {
const nsid = 'chat.bsky.convo.getLog'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getMessages(cfg) {
const nsid = 'chat.bsky.convo.getMessages'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
leaveConvo(cfg) {
const nsid = 'chat.bsky.convo.leaveConvo'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
listConvos(cfg) {
const nsid = 'chat.bsky.convo.listConvos'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
muteConvo(cfg) {
const nsid = 'chat.bsky.convo.muteConvo'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
removeReaction(cfg) {
const nsid = 'chat.bsky.convo.removeReaction'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
sendMessage(cfg) {
const nsid = 'chat.bsky.convo.sendMessage'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
sendMessageBatch(cfg) {
const nsid = 'chat.bsky.convo.sendMessageBatch'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
unmuteConvo(cfg) {
const nsid = 'chat.bsky.convo.unmuteConvo'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
updateAllRead(cfg) {
const nsid = 'chat.bsky.convo.updateAllRead'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
updateRead(cfg) {
const nsid = 'chat.bsky.convo.updateRead'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
}
exports.ChatBskyConvoNS = ChatBskyConvoNS;
class ChatBskyModerationNS {
constructor(server) {
Object.defineProperty(this, "_server", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
this._server = server;
}
getActorMetadata(cfg) {
const nsid = 'chat.bsky.moderation.getActorMetadata'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getMessageContext(cfg) {
const nsid = 'chat.bsky.moderation.getMessageContext'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
updateActorAccess(cfg) {
const nsid = 'chat.bsky.moderation.updateActorAccess'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
}
exports.ChatBskyModerationNS = ChatBskyModerationNS;
class ComNS {
constructor(server) {
Object.defineProperty(this, "_server", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "atproto", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
this._server = server;
this.atproto = new ComAtprotoNS(server);
}
}
exports.ComNS = ComNS;
class ComAtprotoNS {
constructor(server) {
Object.defineProperty(this, "_server", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "admin", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "identity", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "label", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "lexicon", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "moderation", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "repo", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "server", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "sync", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "temp", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
this._server = server;
this.admin = new ComAtprotoAdminNS(server);
this.identity = new ComAtprotoIdentityNS(server);
this.label = new ComAtprotoLabelNS(server);
this.lexicon = new ComAtprotoLexiconNS(server);
this.moderation = new ComAtprotoModerationNS(server);
this.repo = new ComAtprotoRepoNS(server);
this.server = new ComAtprotoServerNS(server);
this.sync = new ComAtprotoSyncNS(server);
this.temp = new ComAtprotoTempNS(server);
}
}
exports.ComAtprotoNS = ComAtprotoNS;
class ComAtprotoAdminNS {
constructor(server) {
Object.defineProperty(this, "_server", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
this._server = server;
}
deleteAccount(cfg) {
const nsid = 'com.atproto.admin.deleteAccount'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
disableAccountInvites(cfg) {
const nsid = 'com.atproto.admin.disableAccountInvites'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
disableInviteCodes(cfg) {
const nsid = 'com.atproto.admin.disableInviteCodes'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
enableAccountInvites(cfg) {
const nsid = 'com.atproto.admin.enableAccountInvites'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getAccountInfo(cfg) {
const nsid = 'com.atproto.admin.getAccountInfo'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getAccountInfos(cfg) {
const nsid = 'com.atproto.admin.getAccountInfos'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getInviteCodes(cfg) {
const nsid = 'com.atproto.admin.getInviteCodes'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getSubjectStatus(cfg) {
const nsid = 'com.atproto.admin.getSubjectStatus'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
searchAccounts(cfg) {
const nsid = 'com.atproto.admin.searchAccounts'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
sendEmail(cfg) {
const nsid = 'com.atproto.admin.sendEmail'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
updateAccountEmail(cfg) {
const nsid = 'com.atproto.admin.updateAccountEmail'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
updateAccountHandle(cfg) {
const nsid = 'com.atproto.admin.updateAccountHandle'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
updateAccountPassword(cfg) {
const nsid = 'com.atproto.admin.updateAccountPassword'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
updateAccountSigningKey(cfg) {
const nsid = 'com.atproto.admin.updateAccountSigningKey'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
updateSubjectStatus(cfg) {
const nsid = 'com.atproto.admin.updateSubjectStatus'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
}
exports.ComAtprotoAdminNS = ComAtprotoAdminNS;
class ComAtprotoIdentityNS {
constructor(server) {
Object.defineProperty(this, "_server", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
this._server = server;
}
getRecommendedDidCredentials(cfg) {
const nsid = 'com.atproto.identity.getRecommendedDidCredentials'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
refreshIdentity(cfg) {
const nsid = 'com.atproto.identity.refreshIdentity'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
requestPlcOperationSignature(cfg) {
const nsid = 'com.atproto.identity.requestPlcOperationSignature'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
resolveDid(cfg) {
const nsid = 'com.atproto.identity.resolveDid'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
resolveHandle(cfg) {
const nsid = 'com.atproto.identity.resolveHandle'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
resolveIdentity(cfg) {
const nsid = 'com.atproto.identity.resolveIdentity'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
signPlcOperation(cfg) {
const nsid = 'com.atproto.identity.signPlcOperation'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
submitPlcOperation(cfg) {
const nsid = 'com.atproto.identity.submitPlcOperation'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
updateHandle(cfg) {
const nsid = 'com.atproto.identity.updateHandle'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
}
exports.ComAtprotoIdentityNS = ComAtprotoIdentityNS;
class ComAtprotoLabelNS {
constructor(server) {
Object.defineProperty(this, "_server", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
this._server = server;
}
queryLabels(cfg) {
const nsid = 'com.atproto.label.queryLabels'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
subscribeLabels(cfg) {
const nsid = 'com.atproto.label.subscribeLabels'; // @ts-ignore
return this._server.xrpc.streamMethod(nsid, cfg);
}
}
exports.ComAtprotoLabelNS = ComAtprotoLabelNS;
class ComAtprotoLexiconNS {
constructor(server) {
Object.defineProperty(this, "_server", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
this._server = server;
}
resolveLexicon(cfg) {
const nsid = 'com.atproto.lexicon.resolveLexicon'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
}
exports.ComAtprotoLexiconNS = ComAtprotoLexiconNS;
class ComAtprotoModerationNS {
constructor(server) {
Object.defineProperty(this, "_server", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
this._server = server;
}
createReport(cfg) {
const nsid = 'com.atproto.moderation.createReport'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
}
exports.ComAtprotoModerationNS = ComAtprotoModerationNS;
class ComAtprotoRepoNS {
constructor(server) {
Object.defineProperty(this, "_server", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
this._server = server;
}
applyWrites(cfg) {
const nsid = 'com.atproto.repo.applyWrites'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
createRecord(cfg) {
const nsid = 'com.atproto.repo.createRecord'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
deleteRecord(cfg) {
const nsid = 'com.atproto.repo.deleteRecord'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
describeRepo(cfg) {
const nsid = 'com.atproto.repo.describeRepo'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
getRecord(cfg) {
const nsid = 'com.atproto.repo.getRecord'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
importRepo(cfg) {
const nsid = 'com.atproto.repo.importRepo'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
listMissingBlobs(cfg) {
const nsid = 'com.atproto.repo.listMissingBlobs'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
listRecords(cfg) {
const nsid = 'com.atproto.repo.listRecords'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
putRecord(cfg) {
const nsid = 'com.atproto.repo.putRecord'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
uploadBlob(cfg) {
const nsid = 'com.atproto.repo.uploadBlob'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
}
exports.ComAtprotoRepoNS = ComAtprotoRepoNS;
class ComAtprotoServerNS {
constructor(server) {
Object.defineProperty(this, "_server", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
this._server = server;
}
activateAccount(cfg) {
const nsid = 'com.atproto.server.activateAccount'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}
checkAccountStatus(cfg) {
const nsid = 'com.atproto.server.checkAccountStatus'; // @ts-ignore
return this._server.xrpc.method(nsid, cfg);
}