Complete stubs for com.atproto; Begin stubs for app.bsky

This commit is contained in:
Rudy Fraser
2023-11-24 23:25:54 -05:00
parent 3dbf0baf24
commit 13faa55c67
104 changed files with 396 additions and 4 deletions

1
.idea/rsky.iml generated
View File

@ -5,6 +5,7 @@
<sourceFolder url="file://$MODULE_DIR$/rsky-feedgen/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/rsky-firehose/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/rsky-lexicon/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/rsky-pds/src" isTestSource="false" />
<excludeFolder url="file://$MODULE_DIR$/target" />
<excludeFolder url="file://$MODULE_DIR$/venv" />
</content>

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/app.bsky.actor.getPreferences")]
pub async fn get_preferences() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/app.bsky.actor.getProfile")]
pub async fn get_profile() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/app.bsky.actor.getProfiles")]
pub async fn get_profiles() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/app.bsky.actor.getSuggestions")]
pub async fn get_suggestions() {
todo!();
}

View File

@ -0,0 +1,7 @@
pub mod get_preferences;
pub mod get_profile;
pub mod get_profiles;
pub mod get_suggestions;
pub mod put_preferences;
pub mod search_actors;
pub mod search_actors_typeahead;

View File

@ -0,0 +1,4 @@
#[rocket::post("/xrpc/app.bsky.actor.putPreferences")]
pub async fn put_preferences() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/app.bsky.actor.searchActors")]
pub async fn search_actors() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/app.bsky.actor.searchActorsTypeahead")]
pub async fn search_actors_typeahead() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/app.bsky.feed.describeFeedGenerator")]
pub async fn describe_feed_generator() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/app.bsky.feed.getActorFeeds")]
pub async fn get_actor_feeds() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/app.bsky.feed.getActorLikes")]
pub async fn get_actor_likes() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/app.bsky.feed.getAuthorFeed")]
pub async fn get_author_feed() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/app.bsky.feed.getFeed")]
pub async fn get_feed() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/app.bsky.feed.getFeedGenerator")]
pub async fn get_feed_generator() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/app.bsky.feed.getFeedGenerators")]
pub async fn get_feed_generators() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/app.bsky.feed.getFeedSkeleton")]
pub async fn get_feed_skeleton() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/app.bsky.feed.getLikes")]
pub async fn get_likes() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/app.bsky.feed.getListFeed")]
pub async fn get_list_feed() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/app.bsky.feed.getPostThread")]
pub async fn get_post_thread() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/app.bsky.feed.getPosts")]
pub async fn get_posts() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/app.bsky.feed.getRepostedBy")]
pub async fn get_reposted_by() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/app.bsky.feed.getSuggestedFeeds")]
pub async fn get_suggested_feeds() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/app.bsky.feed.getTimeline")]
pub async fn get_timeline() {
todo!();
}

View File

@ -0,0 +1,15 @@
pub mod describe_feed_generator;
pub mod get_actor_feeds;
pub mod get_actor_likes;
pub mod get_author_feed;
pub mod get_feed;
pub mod get_feed_generator;
pub mod get_feed_generators;
pub mod get_likes;
pub mod get_list_feed;
pub mod get_post_thread;
pub mod get_posts;
pub mod get_reposted_by;
pub mod get_suggested_feeds;
pub mod get_timeline;
pub mod search_posts;

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/app.bsky.feed.searchPosts")]
pub async fn search_posts() {
todo!();
}

View File

@ -0,0 +1,7 @@
pub mod actor;
pub mod embed;
pub mod feed;
pub mod graph;
pub mod notification;
pub mod richtext;
pub mod unspecced;

View File

@ -1,4 +1,4 @@
#[crate::rocket::post("/xrpc/com.atproto.admin.disableAccountInvites")]
#[rocket::post("/xrpc/com.atproto.admin.disableAccountInvites")]
pub async fn disable_account_invites() {
todo!();
}

View File

@ -1,4 +1,4 @@
#[crate::rocket::post("/xrpc/com.atproto.admin.disableInviteCodes")]
#[rocket::post("/xrpc/com.atproto.admin.disableInviteCodes")]
pub async fn disable_invite_codes() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::post("/xrpc/com.atproto.admin.enableAccountInvites")]
pub async fn enable_account_invites() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/com.atproto.admin.getAccountInfo")]
pub async fn get_account_info() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/com.atproto.admin.getInviteCodes")]
pub async fn get_invite_codes() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/com.atproto.admin.getModerationAction")]
pub async fn get_moderation_action() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/com.atproto.admin.getModerationActions")]
pub async fn get_moderation_actions() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/com.atproto.admin.getModerationReport")]
pub async fn get_moderation_report() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/com.atproto.admin.getModerationReports")]
pub async fn get_moderation_reports() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/com.atproto.admin.getRecord")]
pub async fn get_record() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/com.atproto.admin.getRepo")]
pub async fn get_repo() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/com.atproto.admin.getSubjectStatus")]
pub async fn get_subject_status() {
todo!();
}

View File

@ -1,6 +1,6 @@
pub mod disable_account_invites;
pub mod disable_invite_codes;
pub mod enable_accoun_invites;
pub mod enable_account_invites;
pub mod get_account_info;
pub mod get_invite_codes;
pub mod get_moderation_action;

View File

@ -0,0 +1,4 @@
#[rocket::post("/xrpc/com.atproto.admin.resolveModerationReports")]
pub async fn resolve_moderation_reports() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::post("/xrpc/com.atproto.admin.reverseModerationAction")]
pub async fn reverse_moderation_action() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/com.atproto.admin.searchRepos")]
pub async fn search_repos() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::post("/xrpc/com.atproto.admin.sendEmail")]
pub async fn send_email() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::post("/xrpc/com.atproto.admin.takeModerationAction")]
pub async fn take_moderation_action() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::post("/xrpc/com.atproto.admin.updateAccountEmail")]
pub async fn update_account_email() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::post("/xrpc/com.atproto.admin.updateAccountHandle")]
pub async fn update_account_handle() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::post("/xrpc/com.atproto.admin.updateSubjectStatus")]
pub async fn update_subject_status() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/com.atproto.identity.resolveHandle")]
pub async fn resolve_handle() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::post("/xrpc/com.atproto.identity.updateHandle")]
pub async fn update_handle() {
todo!();
}

View File

@ -0,0 +1,2 @@
pub mod query_labels;
pub mod subscribe_labels;

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/com.atproto.label.queryLabels")]
pub async fn query_labels() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/com.atproto.label.subscribeLabels")]
pub async fn query_labels() {
todo!();
}

View File

@ -4,3 +4,5 @@ pub mod moderation;
pub mod repo;
pub mod server;
pub mod sync;
pub mod label;
pub mod temp;

View File

@ -0,0 +1,4 @@
#[rocket::post("/xrpc/com.atproto.moderation.createReport")]
pub async fn create_report() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::post("/xrpc/com.atproto.repo.applyWrites")]
pub async fn apply_writes() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::post("/xrpc/com.atproto.repo.createRecord")]
pub async fn create_record() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::post("/xrpc/com.atproto.repo.deleteRecord")]
pub async fn delete_record() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/com.atproto.repo.describeRepo")]
pub async fn describe_repo() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/com.atproto.repo.getRecord")]
pub async fn get_record() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/com.atproto.repo.listRecords")]
pub async fn list_records() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::post("/xrpc/com.atproto.repo.putRecord")]
pub async fn put_record() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::post("/xrpc/com.atproto.repo.uploadBlob")]
pub async fn upload_blob() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::post("/xrpc/com.atproto.server.confirmEmail")]
pub async fn confirm_email() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::post("/xrpc/com.atproto.server.createAccount")]
pub async fn create_account() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::post("/xrpc/com.atproto.server.createAppPassword")]
pub async fn create_app_password() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::post("/xrpc/com.atproto.server.createInviteCode")]
pub async fn create_invite_code() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::post("/xrpc/com.atproto.server.createInviteCodes")]
pub async fn create_invite_codes() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::post("/xrpc/com.atproto.server.createSession")]
pub async fn create_session() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::post("/xrpc/com.atproto.server.deleteAccount")]
pub async fn delete_account() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::post("/xrpc/com.atproto.server.deleteSession")]
pub async fn delete_session() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/com.atproto.server.describeServer")]
pub async fn describe_server() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/com.atproto.server.getAccountInviteCodes")]
pub async fn get_account_invite_codes() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/com.atproto.server.getSession")]
pub async fn get_session() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/com.atproto.server.listAppPasswords")]
pub async fn list_app_passwords() {
todo!();
}

View File

@ -17,4 +17,5 @@ pub mod request_email_update;
pub mod request_password_reset;
pub mod reset_password;
pub mod revoke_app_password;
pub mod update_email;
pub mod update_email;
pub mod reserve_signing_key;

View File

@ -0,0 +1,4 @@
#[rocket::post("/xrpc/com.atproto.server.refreshSession")]
pub async fn refresh_session() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::post("/xrpc/com.atproto.server.requestAccountDelete")]
pub async fn request_account_delete() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::post("/xrpc/com.atproto.server.requestEmailConfirmation")]
pub async fn request_email_confirmation() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::post("/xrpc/com.atproto.server.requestEmailUpdate")]
pub async fn request_email_update() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::post("/xrpc/com.atproto.server.requestPasswordReset")]
pub async fn request_password_reset() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::post("/xrpc/com.atproto.server.reserveSigningKey")]
pub async fn reserve_signing_key() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::post("/xrpc/com.atproto.server.resetPassword")]
pub async fn reset_password() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::post("/xrpc/com.atproto.server.revokeAppPassword")]
pub async fn revoke_app_password() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::post("/xrpc/com.atproto.server.updateEmail")]
pub async fn update_email() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/com.atproto.sync.getBlob")]
pub async fn get_blob() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/com.atproto.sync.getBlocks")]
pub async fn get_blocks() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/com.atproto.sync.getCheckout")]
pub async fn get_checkout() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/com.atproto.sync.getHead")]
pub async fn get_head() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/com.atproto.sync.getLatestCommit")]
pub async fn get_latest_commit() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/com.atproto.sync.getRecord")]
pub async fn get_record() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/com.atproto.sync.getRepo")]
pub async fn get_repo() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/com.atproto.sync.listBlobs")]
pub async fn list_blobs() {
todo!();
}

View File

@ -0,0 +1,4 @@
#[rocket::get("/xrpc/com.atproto.sync.listRepos")]
pub async fn list_repos() {
todo!();
}

View File

@ -6,3 +6,7 @@ pub mod get_repo;
pub mod list_blobs;
pub mod list_repos;
pub mod subscribe_repos;
pub mod get_checkout;
pub mod get_head;
pub mod notify_of_update;
pub mod request_crawl;

View File

@ -0,0 +1,4 @@
#[rocket::post("/xrpc/com.atproto.sync.notifyOfUpdate")]
pub async fn notify_of_update() {
todo!();
}

Some files were not shown because too many files have changed in this diff Show More