From 44466ef619537da085810a6830a25beb2419dd8c Mon Sep 17 00:00:00 2001 From: Orual Date: Tue, 28 Oct 2025 19:50:23 -0400 Subject: [PATCH] rewrote in jacquard --- Cargo.lock | 2984 ++++--- Cargo.toml | 6 +- crates/weaver-appview/Cargo.toml | 11 +- .../down.sql | 16 +- .../2025-05-15-230036_create_appviewdb/up.sql | 41 +- crates/weaver-appview/src/api_error.rs | 2 +- crates/weaver-appview/src/models.rs | 43 +- crates/weaver-appview/src/oauth.rs | 264 +- crates/weaver-appview/src/routes/oauth.rs | 66 +- crates/weaver-appview/src/schema.rs | 21 +- crates/weaver-appview/src/state.rs | 54 +- crates/weaver-cli/Cargo.toml | 16 +- crates/weaver-cli/src/main.rs | 223 +- crates/weaver-common/Cargo.toml | 13 +- crates/weaver-common/src/agent.rs | 541 -- crates/weaver-common/src/config.rs | 118 - crates/weaver-common/src/error.rs | 236 +- crates/weaver-common/src/filestore.rs | 187 - crates/weaver-common/src/lexicons/app.rs | 3 - crates/weaver-common/src/lexicons/app/bsky.rs | 11 - .../src/lexicons/app/bsky/actor.rs | 24 - .../src/lexicons/app/bsky/actor/defs.rs | 455 -- .../app/bsky/actor/get_preferences.rs | 21 - .../lexicons/app/bsky/actor/get_profile.rs | 19 - .../lexicons/app/bsky/actor/get_profiles.rs | 23 - .../app/bsky/actor/get_suggestions.rs | 31 - .../src/lexicons/app/bsky/actor/profile.rs | 41 - .../app/bsky/actor/put_preferences.rs | 17 - .../lexicons/app/bsky/actor/search_actors.rs | 34 - .../app/bsky/actor/search_actors_typeahead.rs | 30 - .../src/lexicons/app/bsky/actor/status.rs | 30 - .../src/lexicons/app/bsky/embed.rs | 8 - .../src/lexicons/app/bsky/embed/defs.rs | 10 - .../src/lexicons/app/bsky/embed/external.rs | 35 - .../src/lexicons/app/bsky/embed/images.rs | 38 - .../src/lexicons/app/bsky/embed/record.rs | 100 - .../app/bsky/embed/record_with_media.rs | 37 - .../src/lexicons/app/bsky/embed/video.rs | 37 - .../src/lexicons/app/bsky/feed.rs | 63 - .../src/lexicons/app/bsky/feed/defs.rs | 321 - .../app/bsky/feed/describe_feed_generator.rs | 35 - .../src/lexicons/app/bsky/feed/generator.rs | 38 - .../lexicons/app/bsky/feed/get_actor_feeds.rs | 29 - .../lexicons/app/bsky/feed/get_actor_likes.rs | 46 - .../lexicons/app/bsky/feed/get_author_feed.rs | 51 - .../src/lexicons/app/bsky/feed/get_feed.rs | 39 - .../app/bsky/feed/get_feed_generator.rs | 28 - .../app/bsky/feed/get_feed_generators.rs | 23 - .../app/bsky/feed/get_feed_skeleton.rs | 43 - .../src/lexicons/app/bsky/feed/get_likes.rs | 44 - .../lexicons/app/bsky/feed/get_list_feed.rs | 40 - .../lexicons/app/bsky/feed/get_post_thread.rs | 52 - .../src/lexicons/app/bsky/feed/get_posts.rs | 24 - .../src/lexicons/app/bsky/feed/get_quotes.rs | 36 - .../lexicons/app/bsky/feed/get_reposted_by.rs | 36 - .../app/bsky/feed/get_suggested_feeds.rs | 28 - .../lexicons/app/bsky/feed/get_timeline.rs | 31 - .../src/lexicons/app/bsky/feed/like.rs | 17 - .../src/lexicons/app/bsky/feed/post.rs | 83 - .../src/lexicons/app/bsky/feed/postgate.rs | 35 - .../src/lexicons/app/bsky/feed/repost.rs | 17 - .../lexicons/app/bsky/feed/search_posts.rs | 71 - .../app/bsky/feed/send_interactions.rs | 21 - .../src/lexicons/app/bsky/feed/threadgate.rs | 56 - .../src/lexicons/app/bsky/graph.rs | 73 - .../src/lexicons/app/bsky/graph/block.rs | 16 - .../src/lexicons/app/bsky/graph/defs.rs | 130 - .../src/lexicons/app/bsky/graph/follow.rs | 15 - .../app/bsky/graph/get_actor_starter_packs.rs | 29 - .../src/lexicons/app/bsky/graph/get_blocks.rs | 28 - .../lexicons/app/bsky/graph/get_followers.rs | 30 - .../lexicons/app/bsky/graph/get_follows.rs | 30 - .../app/bsky/graph/get_known_followers.rs | 30 - .../src/lexicons/app/bsky/graph/get_list.rs | 31 - .../app/bsky/graph/get_list_blocks.rs | 28 - .../lexicons/app/bsky/graph/get_list_mutes.rs | 28 - .../src/lexicons/app/bsky/graph/get_lists.rs | 30 - .../src/lexicons/app/bsky/graph/get_mutes.rs | 28 - .../app/bsky/graph/get_relationships.rs | 48 - .../app/bsky/graph/get_starter_pack.rs | 24 - .../app/bsky/graph/get_starter_packs.rs | 23 - .../graph/get_suggested_follows_by_actor.rs | 29 - .../src/lexicons/app/bsky/graph/list.rs | 34 - .../src/lexicons/app/bsky/graph/listblock.rs | 16 - .../src/lexicons/app/bsky/graph/listitem.rs | 18 - .../src/lexicons/app/bsky/graph/mute_actor.rs | 17 - .../app/bsky/graph/mute_actor_list.rs | 17 - .../lexicons/app/bsky/graph/mute_thread.rs | 17 - .../app/bsky/graph/search_starter_packs.rs | 30 - .../lexicons/app/bsky/graph/starterpack.rs | 32 - .../lexicons/app/bsky/graph/unmute_actor.rs | 17 - .../app/bsky/graph/unmute_actor_list.rs | 17 - .../lexicons/app/bsky/graph/unmute_thread.rs | 17 - .../lexicons/app/bsky/graph/verification.rs | 21 - .../src/lexicons/app/bsky/labeler.rs | 11 - .../src/lexicons/app/bsky/labeler/defs.rs | 65 - .../lexicons/app/bsky/labeler/get_services.rs | 35 - .../src/lexicons/app/bsky/labeler/service.rs | 36 - .../src/lexicons/app/bsky/notification.rs | 8 - .../lexicons/app/bsky/notification/defs.rs | 6 - .../app/bsky/notification/get_unread_count.rs | 26 - .../bsky/notification/list_notifications.rs | 56 - .../app/bsky/notification/put_preferences.rs | 17 - .../app/bsky/notification/register_push.rs | 20 - .../app/bsky/notification/update_seen.rs | 17 - .../src/lexicons/app/bsky/richtext.rs | 3 - .../src/lexicons/app/bsky/richtext/facet.rs | 49 - .../src/lexicons/app/bsky/unspecced.rs | 19 - .../src/lexicons/app/bsky/unspecced/defs.rs | 63 - .../lexicons/app/bsky/unspecced/get_config.rs | 27 - .../unspecced/get_popular_feed_generators.rs | 30 - .../app/bsky/unspecced/get_suggested_feeds.rs | 24 - .../unspecced/get_suggested_feeds_skeleton.rs | 27 - .../unspecced/get_suggested_starter_packs.rs | 24 - .../get_suggested_starter_packs_skeleton.rs | 27 - .../app/bsky/unspecced/get_suggested_users.rs | 27 - .../unspecced/get_suggested_users_skeleton.rs | 30 - .../unspecced/get_suggestions_skeleton.rs | 40 - .../bsky/unspecced/get_tagged_suggestions.rs | 29 - .../app/bsky/unspecced/get_trending_topics.rs | 28 - .../lexicons/app/bsky/unspecced/get_trends.rs | 24 - .../app/bsky/unspecced/get_trends_skeleton.rs | 27 - .../bsky/unspecced/search_actors_skeleton.rs | 50 - .../bsky/unspecced/search_posts_skeleton.rs | 74 - .../search_starter_packs_skeleton.rs | 47 - .../src/lexicons/app/bsky/video.rs | 6 - .../src/lexicons/app/bsky/video/defs.rs | 20 - .../lexicons/app/bsky/video/get_job_status.rs | 23 - .../app/bsky/video/get_upload_limits.rs | 25 - .../lexicons/app/bsky/video/upload_video.rs | 17 - crates/weaver-common/src/lexicons/chat.rs | 3 - .../weaver-common/src/lexicons/chat/bsky.rs | 5 - .../src/lexicons/chat/bsky/actor.rs | 12 - .../lexicons/chat/bsky/actor/declaration.rs | 14 - .../src/lexicons/chat/bsky/actor/defs.rs | 28 - .../chat/bsky/actor/delete_account.rs | 15 - .../chat/bsky/actor/export_account_data.rs | 11 - .../src/lexicons/chat/bsky/convo.rs | 20 - .../lexicons/chat/bsky/convo/accept_convo.rs | 25 - .../lexicons/chat/bsky/convo/add_reaction.rs | 52 - .../src/lexicons/chat/bsky/convo/defs.rs | 238 - .../bsky/convo/delete_message_for_self.rs | 19 - .../src/lexicons/chat/bsky/convo/get_convo.rs | 23 - .../chat/bsky/convo/get_convo_availability.rs | 25 - .../chat/bsky/convo/get_convo_for_members.rs | 23 - .../src/lexicons/chat/bsky/convo/get_log.rs | 56 - .../lexicons/chat/bsky/convo/get_messages.rs | 39 - .../lexicons/chat/bsky/convo/leave_convo.rs | 24 - .../lexicons/chat/bsky/convo/list_convos.rs | 32 - .../lexicons/chat/bsky/convo/mute_convo.rs | 23 - .../chat/bsky/convo/remove_reaction.rs | 44 - .../lexicons/chat/bsky/convo/send_message.rs | 19 - .../chat/bsky/convo/send_message_batch.rs | 30 - .../lexicons/chat/bsky/convo/unmute_convo.rs | 23 - .../chat/bsky/convo/update_all_read.rs | 25 - .../lexicons/chat/bsky/convo/update_read.rs | 25 - .../src/lexicons/chat/bsky/moderation.rs | 5 - .../bsky/moderation/get_actor_metadata.rs | 34 - .../bsky/moderation/get_message_context.rs | 40 - .../bsky/moderation/update_actor_access.rs | 20 - crates/weaver-common/src/lexicons/client.rs | 7117 ----------------- crates/weaver-common/src/lexicons/com.rs | 3 - .../weaver-common/src/lexicons/com/atproto.rs | 11 - .../src/lexicons/com/atproto/admin.rs | 18 - .../src/lexicons/com/atproto/admin/defs.rs | 60 - .../com/atproto/admin/delete_account.rs | 17 - .../atproto/admin/disable_account_invites.rs | 20 - .../com/atproto/admin/disable_invite_codes.rs | 20 - .../atproto/admin/enable_account_invites.rs | 20 - .../com/atproto/admin/get_account_info.rs | 18 - .../com/atproto/admin/get_account_infos.rs | 23 - .../com/atproto/admin/get_invite_codes.rs | 30 - .../com/atproto/admin/get_subject_status.rs | 42 - .../com/atproto/admin/search_accounts.rs | 30 - .../lexicons/com/atproto/admin/send_email.rs | 30 - .../com/atproto/admin/update_account_email.rs | 19 - .../atproto/admin/update_account_handle.rs | 18 - .../atproto/admin/update_account_password.rs | 18 - .../admin/update_account_signing_key.rs | 19 - .../atproto/admin/update_subject_status.rs | 49 - .../src/lexicons/com/atproto/identity.rs | 12 - .../src/lexicons/com/atproto/identity/defs.rs | 12 - .../get_recommended_did_credentials.rs | 25 - .../com/atproto/identity/refresh_identity.rs | 45 - .../request_plc_operation_signature.rs | 11 - .../com/atproto/identity/resolve_did.rs | 44 - .../com/atproto/identity/resolve_handle.rs | 35 - .../com/atproto/identity/resolve_identity.rs | 46 - .../atproto/identity/sign_plc_operation.rs | 34 - .../atproto/identity/submit_plc_operation.rs | 17 - .../com/atproto/identity/update_handle.rs | 18 - .../src/lexicons/com/atproto/label.rs | 5 - .../src/lexicons/com/atproto/label/defs.rs | 82 - .../com/atproto/label/query_labels.rs | 33 - .../com/atproto/label/subscribe_labels.rs | 52 - .../src/lexicons/com/atproto/lexicon.rs | 9 - .../lexicons/com/atproto/lexicon/schema.rs | 15 - .../src/lexicons/com/atproto/moderation.rs | 4 - .../com/atproto/moderation/create_report.rs | 50 - .../lexicons/com/atproto/moderation/defs.rs | 19 - .../src/lexicons/com/atproto/repo.rs | 14 - .../lexicons/com/atproto/repo/apply_writes.rs | 115 - .../com/atproto/repo/create_record.rs | 53 - .../src/lexicons/com/atproto/repo/defs.rs | 9 - .../com/atproto/repo/delete_record.rs | 45 - .../com/atproto/repo/describe_repo.rs | 31 - .../lexicons/com/atproto/repo/get_record.rs | 44 - .../lexicons/com/atproto/repo/import_repo.rs | 11 - .../com/atproto/repo/list_missing_blobs.rs | 35 - .../lexicons/com/atproto/repo/list_records.rs | 44 - .../lexicons/com/atproto/repo/put_record.rs | 54 - .../lexicons/com/atproto/repo/strong_ref.rs | 10 - .../lexicons/com/atproto/repo/upload_blob.rs | 17 - .../src/lexicons/com/atproto/server.rs | 28 - .../com/atproto/server/activate_account.rs | 11 - .../atproto/server/check_account_status.rs | 25 - .../com/atproto/server/confirm_email.rs | 49 - .../com/atproto/server/create_account.rs | 104 - .../com/atproto/server/create_app_password.rs | 42 - .../com/atproto/server/create_invite_code.rs | 25 - .../com/atproto/server/create_invite_codes.rs | 33 - .../com/atproto/server/create_session.rs | 63 - .../com/atproto/server/deactivate_account.rs | 19 - .../src/lexicons/com/atproto/server/defs.rs | 21 - .../com/atproto/server/delete_account.rs | 36 - .../com/atproto/server/delete_session.rs | 11 - .../com/atproto/server/describe_server.rs | 47 - .../server/get_account_invite_codes.rs | 37 - .../com/atproto/server/get_service_auth.rs | 41 - .../com/atproto/server/get_session.rs | 31 - .../com/atproto/server/list_app_passwords.rs | 36 - .../com/atproto/server/refresh_session.rs | 37 - .../atproto/server/request_account_delete.rs | 11 - .../server/request_email_confirmation.rs | 11 - .../atproto/server/request_email_update.rs | 17 - .../atproto/server/request_password_reset.rs | 17 - .../com/atproto/server/reserve_signing_key.rs | 26 - .../com/atproto/server/reset_password.rs | 35 - .../com/atproto/server/revoke_app_password.rs | 17 - .../com/atproto/server/update_email.rs | 46 - .../src/lexicons/com/atproto/sync.rs | 19 - .../src/lexicons/com/atproto/sync/defs.rs | 3 - .../src/lexicons/com/atproto/sync/get_blob.rs | 58 - .../lexicons/com/atproto/sync/get_blocks.rs | 57 - .../lexicons/com/atproto/sync/get_checkout.rs | 18 - .../src/lexicons/com/atproto/sync/get_head.rs | 34 - .../com/atproto/sync/get_host_status.rs | 42 - .../com/atproto/sync/get_latest_commit.rs | 56 - .../lexicons/com/atproto/sync/get_record.rs | 59 - .../src/lexicons/com/atproto/sync/get_repo.rs | 52 - .../com/atproto/sync/get_repo_status.rs | 41 - .../lexicons/com/atproto/sync/list_blobs.rs | 64 - .../lexicons/com/atproto/sync/list_hosts.rs | 43 - .../lexicons/com/atproto/sync/list_repos.rs | 42 - .../atproto/sync/list_repos_by_collection.rs | 36 - .../com/atproto/sync/notify_of_update.rs | 18 - .../com/atproto/sync/request_crawl.rs | 28 - .../com/atproto/sync/subscribe_repos.rs | 147 - .../src/lexicons/com/atproto/temp.rs | 6 - .../com/atproto/temp/add_reserved_handle.rs | 21 - .../com/atproto/temp/check_signup_queue.rs | 21 - .../lexicons/com/atproto/temp/fetch_labels.rs | 26 - .../temp/request_phone_verification.rs | 17 - crates/weaver-common/src/lexicons/mod.rs | 9 - crates/weaver-common/src/lexicons/place.rs | 3 - .../src/lexicons/place/stream.rs | 3 - .../src/lexicons/place/stream/live.rs | 9 - .../src/lexicons/place/stream/live/profile.rs | 45 - crates/weaver-common/src/lexicons/record.rs | 359 - crates/weaver-common/src/lexicons/sh.rs | 4 - .../weaver-common/src/lexicons/sh/tangled.rs | 3 - .../src/lexicons/sh/tangled/actor.rs | 9 - .../src/lexicons/sh/tangled/actor/profile.rs | 28 - .../weaver-common/src/lexicons/sh/weaver.rs | 7 - .../src/lexicons/sh/weaver/actor.rs | 11 - .../src/lexicons/sh/weaver/actor/defs.rs | 78 - .../lexicons/sh/weaver/actor/get_profile.rs | 19 - .../src/lexicons/sh/weaver/actor/profile.rs | 40 - .../src/lexicons/sh/weaver/edit.rs | 24 - .../src/lexicons/sh/weaver/edit/cursor.rs | 61 - .../src/lexicons/sh/weaver/edit/defs.rs | 28 - .../src/lexicons/sh/weaver/edit/diff.rs | 16 - .../src/lexicons/sh/weaver/edit/root.rs | 17 - .../src/lexicons/sh/weaver/embed.rs | 8 - .../src/lexicons/sh/weaver/embed/defs.rs | 18 - .../src/lexicons/sh/weaver/embed/external.rs | 35 - .../src/lexicons/sh/weaver/embed/images.rs | 32 - .../sh/weaver/embed/record_with_media.rs | 61 - .../src/lexicons/sh/weaver/embed/records.rs | 110 - .../src/lexicons/sh/weaver/embed/video.rs | 37 - .../src/lexicons/sh/weaver/notebook.rs | 31 - .../lexicons/sh/weaver/notebook/authors.rs | 38 - .../src/lexicons/sh/weaver/notebook/book.rs | 22 - .../lexicons/sh/weaver/notebook/chapter.rs | 24 - .../src/lexicons/sh/weaver/notebook/defs.rs | 86 - .../src/lexicons/sh/weaver/notebook/entry.rs | 23 - .../src/lexicons/sh/weaver/publish.rs | 10 - .../src/lexicons/sh/weaver/publish/blob.rs | 15 - .../src/lexicons/sh/weaver/publish/defs.rs | 2 - crates/weaver-common/src/lexicons/tools.rs | 3 - .../weaver-common/src/lexicons/tools/ozone.rs | 11 - .../src/lexicons/tools/ozone/communication.rs | 7 - .../ozone/communication/create_template.rs | 39 - .../tools/ozone/communication/defs.rs | 23 - .../ozone/communication/delete_template.rs | 17 - .../ozone/communication/list_templates.rs | 19 - .../ozone/communication/update_template.rs | 46 - .../src/lexicons/tools/ozone/hosting.rs | 3 - .../ozone/hosting/get_account_history.rs | 84 - .../src/lexicons/tools/ozone/moderation.rs | 14 - .../lexicons/tools/ozone/moderation/defs.rs | 690 -- .../tools/ozone/moderation/emit_event.rs | 120 - .../tools/ozone/moderation/get_event.rs | 18 - .../tools/ozone/moderation/get_record.rs | 30 - .../tools/ozone/moderation/get_records.rs | 35 - .../tools/ozone/moderation/get_repo.rs | 28 - .../ozone/moderation/get_reporter_stats.rs | 23 - .../tools/ozone/moderation/get_repos.rs | 35 - .../tools/ozone/moderation/get_subjects.rs | 23 - .../tools/ozone/moderation/query_events.rs | 75 - .../tools/ozone/moderation/query_statuses.rs | 123 - .../tools/ozone/moderation/search_repos.rs | 33 - .../src/lexicons/tools/ozone/server.rs | 3 - .../lexicons/tools/ozone/server/get_config.rs | 43 - .../src/lexicons/tools/ozone/set.rs | 9 - .../lexicons/tools/ozone/set/add_values.rs | 20 - .../src/lexicons/tools/ozone/set/defs.rs | 21 - .../lexicons/tools/ozone/set/delete_set.rs | 33 - .../lexicons/tools/ozone/set/delete_values.rs | 31 - .../lexicons/tools/ozone/set/get_values.rs | 41 - .../lexicons/tools/ozone/set/query_sets.rs | 35 - .../lexicons/tools/ozone/set/upsert_set.rs | 13 - .../src/lexicons/tools/ozone/setting.rs | 6 - .../src/lexicons/tools/ozone/setting/defs.rs | 21 - .../tools/ozone/setting/list_options.rs | 36 - .../tools/ozone/setting/remove_options.rs | 22 - .../tools/ozone/setting/upsert_option.rs | 29 - .../src/lexicons/tools/ozone/signature.rs | 6 - .../lexicons/tools/ozone/signature/defs.rs | 9 - .../tools/ozone/signature/find_correlation.rs | 23 - .../ozone/signature/find_related_accounts.rs | 39 - .../tools/ozone/signature/search_accounts.rs | 29 - .../src/lexicons/tools/ozone/team.rs | 7 - .../lexicons/tools/ozone/team/add_member.rs | 30 - .../src/lexicons/tools/ozone/team/defs.rs | 29 - .../tools/ozone/team/delete_member.rs | 36 - .../lexicons/tools/ozone/team/list_members.rs | 34 - .../tools/ozone/team/update_member.rs | 33 - .../src/lexicons/tools/ozone/verification.rs | 6 - .../lexicons/tools/ozone/verification/defs.rs | 75 - .../ozone/verification/grant_verifications.rs | 49 - .../ozone/verification/list_verifications.rs | 48 - .../verification/revoke_verifications.rs | 40 - crates/weaver-common/src/lib.rs | 161 +- crates/weaver-common/src/oauth.rs | 289 - crates/weaver-common/src/resolver.rs | 31 - crates/weaver-common/src/xrpc_server.rs | 9 - crates/weaver-renderer/Cargo.toml | 6 +- crates/weaver-renderer/src/lib.rs | 7 +- crates/weaver-renderer/src/static_site.rs | 197 +- crates/weaver-renderer/src/types.rs | 36 +- crates/weaver-server/Cargo.toml | 3 + crates/weaver-workspace-hack/Cargo.toml | 77 +- flake.lock | 24 +- 364 files changed, 2693 insertions(+), 22308 deletions(-) delete mode 100644 crates/weaver-common/src/agent.rs delete mode 100644 crates/weaver-common/src/config.rs delete mode 100644 crates/weaver-common/src/filestore.rs delete mode 100644 crates/weaver-common/src/lexicons/app.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/actor.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/actor/defs.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/actor/get_preferences.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/actor/get_profile.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/actor/get_profiles.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/actor/get_suggestions.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/actor/profile.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/actor/put_preferences.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/actor/search_actors.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/actor/search_actors_typeahead.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/actor/status.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/embed.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/embed/defs.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/embed/external.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/embed/images.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/embed/record.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/embed/record_with_media.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/embed/video.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/feed.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/feed/defs.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/feed/describe_feed_generator.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/feed/generator.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/feed/get_actor_feeds.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/feed/get_actor_likes.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/feed/get_author_feed.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/feed/get_feed.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/feed/get_feed_generator.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/feed/get_feed_generators.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/feed/get_feed_skeleton.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/feed/get_likes.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/feed/get_list_feed.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/feed/get_post_thread.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/feed/get_posts.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/feed/get_quotes.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/feed/get_reposted_by.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/feed/get_suggested_feeds.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/feed/get_timeline.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/feed/like.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/feed/post.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/feed/postgate.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/feed/repost.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/feed/search_posts.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/feed/send_interactions.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/feed/threadgate.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/graph.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/graph/block.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/graph/defs.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/graph/follow.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/graph/get_actor_starter_packs.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/graph/get_blocks.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/graph/get_followers.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/graph/get_follows.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/graph/get_known_followers.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/graph/get_list.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/graph/get_list_blocks.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/graph/get_list_mutes.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/graph/get_lists.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/graph/get_mutes.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/graph/get_relationships.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/graph/get_starter_pack.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/graph/get_starter_packs.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/graph/get_suggested_follows_by_actor.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/graph/list.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/graph/listblock.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/graph/listitem.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/graph/mute_actor.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/graph/mute_actor_list.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/graph/mute_thread.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/graph/search_starter_packs.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/graph/starterpack.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/graph/unmute_actor.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/graph/unmute_actor_list.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/graph/unmute_thread.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/graph/verification.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/labeler.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/labeler/defs.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/labeler/get_services.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/labeler/service.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/notification.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/notification/defs.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/notification/get_unread_count.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/notification/list_notifications.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/notification/put_preferences.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/notification/register_push.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/notification/update_seen.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/richtext.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/richtext/facet.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/unspecced.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/unspecced/defs.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/unspecced/get_config.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/unspecced/get_popular_feed_generators.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/unspecced/get_suggested_feeds.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/unspecced/get_suggested_feeds_skeleton.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/unspecced/get_suggested_starter_packs.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/unspecced/get_suggested_starter_packs_skeleton.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/unspecced/get_suggested_users.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/unspecced/get_suggested_users_skeleton.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/unspecced/get_suggestions_skeleton.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/unspecced/get_tagged_suggestions.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/unspecced/get_trending_topics.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/unspecced/get_trends.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/unspecced/get_trends_skeleton.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/unspecced/search_actors_skeleton.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/unspecced/search_posts_skeleton.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/unspecced/search_starter_packs_skeleton.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/video.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/video/defs.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/video/get_job_status.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/video/get_upload_limits.rs delete mode 100644 crates/weaver-common/src/lexicons/app/bsky/video/upload_video.rs delete mode 100644 crates/weaver-common/src/lexicons/chat.rs delete mode 100644 crates/weaver-common/src/lexicons/chat/bsky.rs delete mode 100644 crates/weaver-common/src/lexicons/chat/bsky/actor.rs delete mode 100644 crates/weaver-common/src/lexicons/chat/bsky/actor/declaration.rs delete mode 100644 crates/weaver-common/src/lexicons/chat/bsky/actor/defs.rs delete mode 100644 crates/weaver-common/src/lexicons/chat/bsky/actor/delete_account.rs delete mode 100644 crates/weaver-common/src/lexicons/chat/bsky/actor/export_account_data.rs delete mode 100644 crates/weaver-common/src/lexicons/chat/bsky/convo.rs delete mode 100644 crates/weaver-common/src/lexicons/chat/bsky/convo/accept_convo.rs delete mode 100644 crates/weaver-common/src/lexicons/chat/bsky/convo/add_reaction.rs delete mode 100644 crates/weaver-common/src/lexicons/chat/bsky/convo/defs.rs delete mode 100644 crates/weaver-common/src/lexicons/chat/bsky/convo/delete_message_for_self.rs delete mode 100644 crates/weaver-common/src/lexicons/chat/bsky/convo/get_convo.rs delete mode 100644 crates/weaver-common/src/lexicons/chat/bsky/convo/get_convo_availability.rs delete mode 100644 crates/weaver-common/src/lexicons/chat/bsky/convo/get_convo_for_members.rs delete mode 100644 crates/weaver-common/src/lexicons/chat/bsky/convo/get_log.rs delete mode 100644 crates/weaver-common/src/lexicons/chat/bsky/convo/get_messages.rs delete mode 100644 crates/weaver-common/src/lexicons/chat/bsky/convo/leave_convo.rs delete mode 100644 crates/weaver-common/src/lexicons/chat/bsky/convo/list_convos.rs delete mode 100644 crates/weaver-common/src/lexicons/chat/bsky/convo/mute_convo.rs delete mode 100644 crates/weaver-common/src/lexicons/chat/bsky/convo/remove_reaction.rs delete mode 100644 crates/weaver-common/src/lexicons/chat/bsky/convo/send_message.rs delete mode 100644 crates/weaver-common/src/lexicons/chat/bsky/convo/send_message_batch.rs delete mode 100644 crates/weaver-common/src/lexicons/chat/bsky/convo/unmute_convo.rs delete mode 100644 crates/weaver-common/src/lexicons/chat/bsky/convo/update_all_read.rs delete mode 100644 crates/weaver-common/src/lexicons/chat/bsky/convo/update_read.rs delete mode 100644 crates/weaver-common/src/lexicons/chat/bsky/moderation.rs delete mode 100644 crates/weaver-common/src/lexicons/chat/bsky/moderation/get_actor_metadata.rs delete mode 100644 crates/weaver-common/src/lexicons/chat/bsky/moderation/get_message_context.rs delete mode 100644 crates/weaver-common/src/lexicons/chat/bsky/moderation/update_actor_access.rs delete mode 100644 crates/weaver-common/src/lexicons/client.rs delete mode 100644 crates/weaver-common/src/lexicons/com.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/admin.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/admin/defs.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/admin/delete_account.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/admin/disable_account_invites.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/admin/disable_invite_codes.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/admin/enable_account_invites.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/admin/get_account_info.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/admin/get_account_infos.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/admin/get_invite_codes.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/admin/get_subject_status.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/admin/search_accounts.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/admin/send_email.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/admin/update_account_email.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/admin/update_account_handle.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/admin/update_account_password.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/admin/update_account_signing_key.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/admin/update_subject_status.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/identity.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/identity/defs.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/identity/get_recommended_did_credentials.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/identity/refresh_identity.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/identity/request_plc_operation_signature.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/identity/resolve_did.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/identity/resolve_handle.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/identity/resolve_identity.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/identity/sign_plc_operation.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/identity/submit_plc_operation.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/identity/update_handle.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/label.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/label/defs.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/label/query_labels.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/label/subscribe_labels.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/lexicon.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/lexicon/schema.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/moderation.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/moderation/create_report.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/moderation/defs.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/repo.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/repo/apply_writes.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/repo/create_record.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/repo/defs.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/repo/delete_record.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/repo/describe_repo.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/repo/get_record.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/repo/import_repo.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/repo/list_missing_blobs.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/repo/list_records.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/repo/put_record.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/repo/strong_ref.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/repo/upload_blob.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/server.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/server/activate_account.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/server/check_account_status.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/server/confirm_email.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/server/create_account.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/server/create_app_password.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/server/create_invite_code.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/server/create_invite_codes.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/server/create_session.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/server/deactivate_account.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/server/defs.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/server/delete_account.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/server/delete_session.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/server/describe_server.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/server/get_account_invite_codes.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/server/get_service_auth.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/server/get_session.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/server/list_app_passwords.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/server/refresh_session.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/server/request_account_delete.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/server/request_email_confirmation.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/server/request_email_update.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/server/request_password_reset.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/server/reserve_signing_key.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/server/reset_password.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/server/revoke_app_password.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/server/update_email.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/sync.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/sync/defs.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/sync/get_blob.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/sync/get_blocks.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/sync/get_checkout.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/sync/get_head.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/sync/get_host_status.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/sync/get_latest_commit.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/sync/get_record.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/sync/get_repo.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/sync/get_repo_status.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/sync/list_blobs.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/sync/list_hosts.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/sync/list_repos.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/sync/list_repos_by_collection.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/sync/notify_of_update.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/sync/request_crawl.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/sync/subscribe_repos.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/temp.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/temp/add_reserved_handle.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/temp/check_signup_queue.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/temp/fetch_labels.rs delete mode 100644 crates/weaver-common/src/lexicons/com/atproto/temp/request_phone_verification.rs delete mode 100644 crates/weaver-common/src/lexicons/mod.rs delete mode 100644 crates/weaver-common/src/lexicons/place.rs delete mode 100644 crates/weaver-common/src/lexicons/place/stream.rs delete mode 100644 crates/weaver-common/src/lexicons/place/stream/live.rs delete mode 100644 crates/weaver-common/src/lexicons/place/stream/live/profile.rs delete mode 100644 crates/weaver-common/src/lexicons/record.rs delete mode 100644 crates/weaver-common/src/lexicons/sh.rs delete mode 100644 crates/weaver-common/src/lexicons/sh/tangled.rs delete mode 100644 crates/weaver-common/src/lexicons/sh/tangled/actor.rs delete mode 100644 crates/weaver-common/src/lexicons/sh/tangled/actor/profile.rs delete mode 100644 crates/weaver-common/src/lexicons/sh/weaver.rs delete mode 100644 crates/weaver-common/src/lexicons/sh/weaver/actor.rs delete mode 100644 crates/weaver-common/src/lexicons/sh/weaver/actor/defs.rs delete mode 100644 crates/weaver-common/src/lexicons/sh/weaver/actor/get_profile.rs delete mode 100644 crates/weaver-common/src/lexicons/sh/weaver/actor/profile.rs delete mode 100644 crates/weaver-common/src/lexicons/sh/weaver/edit.rs delete mode 100644 crates/weaver-common/src/lexicons/sh/weaver/edit/cursor.rs delete mode 100644 crates/weaver-common/src/lexicons/sh/weaver/edit/defs.rs delete mode 100644 crates/weaver-common/src/lexicons/sh/weaver/edit/diff.rs delete mode 100644 crates/weaver-common/src/lexicons/sh/weaver/edit/root.rs delete mode 100644 crates/weaver-common/src/lexicons/sh/weaver/embed.rs delete mode 100644 crates/weaver-common/src/lexicons/sh/weaver/embed/defs.rs delete mode 100644 crates/weaver-common/src/lexicons/sh/weaver/embed/external.rs delete mode 100644 crates/weaver-common/src/lexicons/sh/weaver/embed/images.rs delete mode 100644 crates/weaver-common/src/lexicons/sh/weaver/embed/record_with_media.rs delete mode 100644 crates/weaver-common/src/lexicons/sh/weaver/embed/records.rs delete mode 100644 crates/weaver-common/src/lexicons/sh/weaver/embed/video.rs delete mode 100644 crates/weaver-common/src/lexicons/sh/weaver/notebook.rs delete mode 100644 crates/weaver-common/src/lexicons/sh/weaver/notebook/authors.rs delete mode 100644 crates/weaver-common/src/lexicons/sh/weaver/notebook/book.rs delete mode 100644 crates/weaver-common/src/lexicons/sh/weaver/notebook/chapter.rs delete mode 100644 crates/weaver-common/src/lexicons/sh/weaver/notebook/defs.rs delete mode 100644 crates/weaver-common/src/lexicons/sh/weaver/notebook/entry.rs delete mode 100644 crates/weaver-common/src/lexicons/sh/weaver/publish.rs delete mode 100644 crates/weaver-common/src/lexicons/sh/weaver/publish/blob.rs delete mode 100644 crates/weaver-common/src/lexicons/sh/weaver/publish/defs.rs delete mode 100644 crates/weaver-common/src/lexicons/tools.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/communication.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/communication/create_template.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/communication/defs.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/communication/delete_template.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/communication/list_templates.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/communication/update_template.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/hosting.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/hosting/get_account_history.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/moderation.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/moderation/defs.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/moderation/emit_event.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/moderation/get_event.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/moderation/get_record.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/moderation/get_records.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/moderation/get_repo.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/moderation/get_reporter_stats.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/moderation/get_repos.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/moderation/get_subjects.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/moderation/query_events.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/moderation/query_statuses.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/moderation/search_repos.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/server.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/server/get_config.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/set.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/set/add_values.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/set/defs.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/set/delete_set.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/set/delete_values.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/set/get_values.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/set/query_sets.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/set/upsert_set.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/setting.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/setting/defs.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/setting/list_options.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/setting/remove_options.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/setting/upsert_option.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/signature.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/signature/defs.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/signature/find_correlation.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/signature/find_related_accounts.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/signature/search_accounts.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/team.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/team/add_member.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/team/defs.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/team/delete_member.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/team/list_members.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/team/update_member.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/verification.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/verification/defs.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/verification/grant_verifications.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/verification/list_verifications.rs delete mode 100644 crates/weaver-common/src/lexicons/tools/ozone/verification/revoke_verifications.rs delete mode 100644 crates/weaver-common/src/oauth.rs delete mode 100644 crates/weaver-common/src/resolver.rs delete mode 100644 crates/weaver-common/src/xrpc_server.rs diff --git a/Cargo.lock b/Cargo.lock index 69cbe1f..34c44a5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,20 +2,39 @@ # It is not intended for manual editing. version = 4 +[[package]] +name = "abnf" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "087113bd50d9adce24850eed5d0476c7d199d532fce8fab5173650331e09033a" +dependencies = [ + "abnf-core", + "nom", +] + +[[package]] +name = "abnf-core" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c44e09c43ae1c368fb91a03a566472d0087c26cf7e1b9e8e289c14ede681dd7d" +dependencies = [ + "nom", +] + [[package]] name = "addr2line" -version = "0.24.2" +version = "0.25.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dfbe277e56a376000877090da837660b4427aad530e3028d44e0bffe4f89a1c1" +checksum = "1b5d307320b3181d6d7954e663bd7c774a838b8220fe0593c86d9fb09f498b4b" dependencies = [ "gimli", ] [[package]] name = "adler2" -version = "2.0.0" +version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627" +checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" [[package]] name = "adler32" @@ -24,25 +43,19 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "aae1277d39aeec15cb388266ecc24b11c80469deae6067e17a1a7aa9e5c1f234" [[package]] -name = "ahash" -version = "0.8.12" +name = "aho-corasick" +version = "1.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75" +checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301" dependencies = [ - "cfg-if", - "once_cell", - "version_check", - "zerocopy", + "memchr", ] [[package]] -name = "aho-corasick" -version = "1.1.3" +name = "aliasable" +version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916" -dependencies = [ - "memchr", -] +checksum = "250f629c0161ad8107cf89319e990051fae62832fd343083bea452d93e2205fd" [[package]] name = "alloc-no-stdlib" @@ -65,12 +78,6 @@ version = "0.2.21" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923" -[[package]] -name = "android-tzdata" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0" - [[package]] name = "android_system_properties" version = "0.1.5" @@ -82,9 +89,9 @@ dependencies = [ [[package]] name = "anstream" -version = "0.6.18" +version = "0.6.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8acc5369981196006228e28809f761875c0327210a891e941f4c683b3a99529b" +checksum = "43d5b281e737544384e969a5ccad3f1cdd24b48086a0fc1b2a5262a26b8f4f4a" dependencies = [ "anstyle", "anstyle-parse", @@ -97,37 +104,37 @@ dependencies = [ [[package]] name = "anstyle" -version = "1.0.10" +version = "1.0.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55cc3b69f167a1ef2e161439aa98aed94e6028e5f9a59be9a6ffb47aef1651f9" +checksum = "5192cca8006f1fd4f7237516f40fa183bb07f8fbdfedaa0036de5ea9b0b45e78" [[package]] name = "anstyle-parse" -version = "0.2.6" +version = "0.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b2d16507662817a6a20a9ea92df6652ee4f94f914589377d69f3b21bc5798a9" +checksum = "4e7644824f0aa2c7b9384579234ef10eb7efb6a0deb83f9630a49594dd9c15c2" dependencies = [ "utf8parse", ] [[package]] name = "anstyle-query" -version = "1.1.2" +version = "1.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79947af37f4177cfead1110013d678905c37501914fba0efea834c3fe9a8d60c" +checksum = "9e231f6134f61b71076a3eab506c379d4f36122f2af15a9ff04415ea4c3339e2" dependencies = [ - "windows-sys 0.59.0", + "windows-sys 0.60.2", ] [[package]] name = "anstyle-wincon" -version = "3.0.8" +version = "3.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6680de5231bd6ee4c6191b8a1325daa282b415391ec9d3a37bd34f2060dc73fa" +checksum = "3e0633414522a32ffaac8ac6cc8f748e090c5717661fddeea04219e2344f5f2a" dependencies = [ "anstyle", "once_cell_polyfill", - "windows-sys 0.59.0", + "windows-sys 0.60.2", ] [[package]] @@ -144,22 +151,22 @@ checksum = "d92bec98840b8f03a5ff5413de5293bfcd8bf96467cf5452609f939ec6f5de16" [[package]] name = "async-compression" -version = "0.4.23" +version = "0.4.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b37fc50485c4f3f736a4fb14199f6d5f5ba008d7f28fe710306c92780f004c07" +checksum = "5a89bce6054c720275ac2432fbba080a66a2106a44a1b804553930ca6909f4e0" dependencies = [ - "flate2", + "compression-codecs", + "compression-core", "futures-core", - "memchr", "pin-project-lite", "tokio", ] [[package]] name = "async-lock" -version = "3.4.0" +version = "3.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff6e472cdea888a4bd64f342f09b3f50e1886d32afe8df3d663c01140b811b18" +checksum = "5fd03604047cee9b6ce9de9f70c6cd540a0520c813cbd49bae61f33ab80ed1dc" dependencies = [ "event-listener", "event-listener-strategy", @@ -168,13 +175,13 @@ dependencies = [ [[package]] name = "async-trait" -version = "0.1.88" +version = "0.1.89" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e539d3fca749fcee5236ab05e93a52867dd549cc157c8cb7f99595f3cedffdb5" +checksum = "9035ad2d096bed7955a320ee7e2230574d28fd3c3a0f186cbea1ff3c7eed5dbb" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.108", ] [[package]] @@ -183,132 +190,17 @@ version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" -[[package]] -name = "atrium-api" -version = "0.25.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46355d3245edc7b3160b2a45fe55d09a6963ebd3eee0252feb6b72fb0eb71463" -dependencies = [ - "atrium-common", - "atrium-xrpc", - "chrono", - "http", - "ipld-core", - "langtag", - "regex", - "serde", - "serde_bytes", - "serde_json", - "thiserror 1.0.69", - "tokio", - "trait-variant", -] - -[[package]] -name = "atrium-common" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ed5610654043faa396a5a15afac0ac646d76aebe45aebd7cef4f8b96b0ab7f4" -dependencies = [ - "dashmap", - "lru", - "moka", - "thiserror 1.0.69", - "tokio", - "trait-variant", - "web-time", -] - -[[package]] -name = "atrium-identity" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9e2d42bb4dbea038f4f5f45e3af2a89d61a9894a75f06aa550b74a60d2be380" -dependencies = [ - "atrium-api", - "atrium-common", - "atrium-xrpc", - "serde", - "serde_html_form", - "serde_json", - "thiserror 1.0.69", - "trait-variant", -] - -[[package]] -name = "atrium-lex" -version = "0.1.0" -source = "git+https://github.com/sugyan/atrium.git?rev=f162f815a04b5ecb0421b390d521c883c41d5f75#f162f815a04b5ecb0421b390d521c883c41d5f75" -dependencies = [ - "serde", - "serde_repr", - "serde_with", -] - -[[package]] -name = "atrium-oauth" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca22dc4eaf77fd9bf050b21192ac58cd654a437d28e000ec114ebd93a51d36f5" -dependencies = [ - "atrium-api", - "atrium-common", - "atrium-identity", - "atrium-xrpc", - "base64 0.22.1", - "chrono", - "dashmap", - "ecdsa", - "elliptic-curve", - "jose-jwa", - "jose-jwk", - "p256", - "rand 0.8.5", - "reqwest", - "serde", - "serde_html_form", - "serde_json", - "sha2", - "thiserror 1.0.69", - "tokio", - "trait-variant", -] - -[[package]] -name = "atrium-xrpc" -version = "0.12.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0216ad50ce34e9ff982e171c3659e65dedaa2ed5ac2994524debdc9a9647ffa8" -dependencies = [ - "http", - "serde", - "serde_html_form", - "serde_json", - "thiserror 1.0.69", - "trait-variant", -] - -[[package]] -name = "atrium-xrpc-client" -version = "0.5.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e099e5171f79faef52364ef0657a4cab086a71b384a779a29597a91b780de0d5" -dependencies = [ - "atrium-xrpc", - "reqwest", -] - [[package]] name = "autocfg" -version = "1.4.0" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" +checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" [[package]] name = "axum" -version = "0.8.4" +version = "0.8.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "021e862c184ae977658b36c4500f7feac3221ca5da43e3f25bd04ab6c79a29b5" +checksum = "8a18ed336352031311f4e0b4dd2ff392d4fbb370777c9d18d7fc9d7359f73871" dependencies = [ "axum-core", "bytes", @@ -325,8 +217,7 @@ dependencies = [ "mime", "percent-encoding", "pin-project-lite", - "rustversion", - "serde", + "serde_core", "serde_json", "serde_path_to_error", "serde_urlencoded", @@ -340,9 +231,9 @@ dependencies = [ [[package]] name = "axum-core" -version = "0.5.2" +version = "0.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68464cd0412f486726fb3373129ef5d2993f90c34bc2bc1c1e9943b2f4fc7ca6" +checksum = "59446ce19cd142f8833f856eb31f3eb097812d1479ab224f54d72428ca21ea22" dependencies = [ "bytes", "futures-core", @@ -351,7 +242,6 @@ dependencies = [ "http-body-util", "mime", "pin-project-lite", - "rustversion", "sync_wrapper", "tower-layer", "tower-service", @@ -360,9 +250,9 @@ dependencies = [ [[package]] name = "backtrace" -version = "0.3.75" +version = "0.3.76" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6806a6321ec58106fea15becdad98371e28d92ccbc7c8f1b3b6dd724fe8f1002" +checksum = "bb531853791a215d7c62a30daf0dde835f381ab5de4589cfe7c649d2cbe92bd6" dependencies = [ "addr2line", "cfg-if", @@ -370,7 +260,7 @@ dependencies = [ "miniz_oxide", "object", "rustc-demangle", - "windows-targets 0.52.6", + "windows-link 0.2.1", ] [[package]] @@ -394,6 +284,16 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4c7f02d4ea65f2c1853089ffd8d2787bdbc63de2f0d29dedbcf8ccdfa0ccd4cf" +[[package]] +name = "base256emoji" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5e9430d9a245a77c92176e649af6e275f20839a48389859d1661e9a128d077c" +dependencies = [ + "const-str", + "match-lookup", +] + [[package]] name = "base64" version = "0.13.1" @@ -408,9 +308,9 @@ checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" [[package]] name = "base64ct" -version = "1.7.3" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89e25b6adfb930f02d1981565a6e5d9c547ac15a96606256d3b59040e5cd4ca3" +checksum = "55248b47b0caf0546f7988906588779981c43bb1bc9d0c44087278f80cdb44ba" [[package]] name = "bincode" @@ -423,18 +323,18 @@ dependencies = [ [[package]] name = "bit-set" -version = "0.5.3" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0700ddab506f33b20a03b13996eccd309a48e5ff77d0d95926aa0210fb4e95f1" +checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3" dependencies = [ "bit-vec", ] [[package]] name = "bit-vec" -version = "0.6.3" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb" +checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7" [[package]] name = "bitflags" @@ -444,9 +344,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bitflags" -version = "2.9.1" +version = "2.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b8e56985ec62d17e9c1001dc89c88ecd7dc08e47eba5ec7c29c7b5eeecde967" +checksum = "812e12b5285cc515a9c72a5c1d3b6d46a19dac5acfef5265968c166106e31dd3" [[package]] name = "block-buffer" @@ -457,12 +357,46 @@ dependencies = [ "generic-array", ] +[[package]] +name = "bon" +version = "3.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebeb9aaf9329dff6ceb65c689ca3db33dbf15f324909c60e4e5eef5701ce31b1" +dependencies = [ + "bon-macros", + "rustversion", +] + +[[package]] +name = "bon-macros" +version = "3.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77e9d642a7e3a318e37c2c9427b5a6a48aa1ad55dcd986f3034ab2239045a645" +dependencies = [ + "darling 0.21.3", + "ident_case", + "prettyplease", + "proc-macro2", + "quote", + "rustversion", + "syn 2.0.108", +] + [[package]] name = "borrow-or-share" version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3eeab4423108c5d7c744f4d234de88d18d636100093ae04caf4825134b9c3a32" +[[package]] +name = "borsh" +version = "1.5.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad8646f98db542e39fc66e68a20b2144f6a732636df7c2354e74645faaa433ce" +dependencies = [ + "cfg_aliases", +] + [[package]] name = "brotli" version = "3.5.0" @@ -486,14 +420,38 @@ dependencies = [ [[package]] name = "bstr" -version = "1.12.0" +version = "1.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "234113d19d0d7d613b40e86fb654acf958910802bcceab913a4f9e7cda03b1a4" +checksum = "63044e1ae8e69f3b5a92c736ca6269b8d12fa7efe39bf34ddb06d102cf0e2cab" dependencies = [ "memchr", "serde", ] +[[package]] +name = "btree-range-map" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1be5c9672446d3800bcbcaabaeba121fe22f1fb25700c4562b22faf76d377c33" +dependencies = [ + "btree-slab", + "cc-traits", + "range-traits", + "serde", + "slab", +] + +[[package]] +name = "btree-slab" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a2b56d3029f075c4fa892428a098425b86cef5c89ae54073137ece416aef13c" +dependencies = [ + "cc-traits", + "slab", + "smallvec", +] + [[package]] name = "buf_redux" version = "0.8.4" @@ -506,9 +464,9 @@ dependencies = [ [[package]] name = "bumpalo" -version = "3.17.0" +version = "3.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1628fb46dfa0b37568d12e5edd512553eccf6a22a78e8bde00bb4aed84d5bdbf" +checksum = "46c5e41b57b8bba42a04676d81cb89e9ee8e859a1a66f80a5a72e1cb76b34d43" [[package]] name = "byteorder" @@ -521,14 +479,8 @@ name = "bytes" version = "1.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d71b6127be86fdcfddb610f7182ac57211d4b18a3e9c82eb2d17662f2227ad6a" - -[[package]] -name = "castaway" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0abae9be0aaf9ea96a3b1b8b1b55c602ca751eba1b1500220cea4ecbafe7c0d5" dependencies = [ - "rustversion", + "serde", ] [[package]] @@ -542,18 +494,36 @@ dependencies = [ [[package]] name = "cc" -version = "1.2.24" +version = "1.2.43" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16595d3be041c03b09d08d0858631facccee9221e579704070e6e9e4915d3bc7" +checksum = "739eb0f94557554b3ca9a86d2d37bebd49c5e6d0c1d2bda35ba5bdac830befc2" dependencies = [ + "find-msvc-tools", + "jobserver", + "libc", "shlex", ] +[[package]] +name = "cc-traits" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "060303ef31ef4a522737e1b1ab68c67916f2a787bb2f4f54f383279adba962b5" +dependencies = [ + "slab", +] + +[[package]] +name = "cesu8" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c" + [[package]] name = "cfg-if" -version = "1.0.0" +version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" +checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" [[package]] name = "cfg_aliases" @@ -563,17 +533,16 @@ checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" [[package]] name = "chrono" -version = "0.4.41" +version = "0.4.42" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c469d952047f47f91b68d1cba3f10d63c11d73e4636f24f08daf0278abf01c4d" +checksum = "145052bdd345b87320e369255277e3fb5152762ad123a901ef5c262dd38fe8d2" dependencies = [ - "android-tzdata", "iana-time-zone", "js-sys", "num-traits", "serde", "wasm-bindgen", - "windows-link", + "windows-link 0.2.1", ] [[package]] @@ -582,6 +551,33 @@ version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6e4de3bc4ea267985becf712dc6d9eed8b04c953b3fcfb339ebc87acd9804901" +[[package]] +name = "ciborium" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42e69ffd6f0917f5c029256a24d0161db17cea3997d185db0d35926308770f0e" +dependencies = [ + "ciborium-io", + "ciborium-ll", + "serde", +] + +[[package]] +name = "ciborium-io" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05afea1e0a06c9be33d539b876f1ce3692f4afea2cb41f740e7743225ed1c757" + +[[package]] +name = "ciborium-ll" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57663b653d948a338bfb3eeba9bb2fd5fcfaecb9e199e87e1eda4d9e8b240fd9" +dependencies = [ + "ciborium-io", + "half 2.7.1", +] + [[package]] name = "cid" version = "0.11.1" @@ -598,9 +594,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.5.39" +version = "4.5.50" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd60e63e9be68e5fb56422e397cf9baddded06dae1d2e523401542383bc72a9f" +checksum = "0c2cfd7bf8a6017ddaa4e32ffe7403d547790db06bd171c1c53926faab501623" dependencies = [ "clap_builder", "clap_derive", @@ -608,77 +604,79 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.5.39" +version = "4.5.50" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89cc6392a1f72bbeb820d71f32108f61fdaf18bc526e1d23954168a67759ef51" +checksum = "0a4c05b9e80c5ccd3a7ef080ad7b6ba7d6fc00a985b8b157197075677c82c7a0" dependencies = [ "anstream", "anstyle", "clap_lex", "strsim", "unicase", - "unicode-width 0.2.0", + "unicode-width 0.2.2", ] [[package]] name = "clap_derive" -version = "4.5.32" +version = "4.5.49" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09176aae279615badda0765c0c0b3f6ed53f4709118af73cf4655d85d1530cd7" +checksum = "2a0b5487afeab2deb2ff4e03a807ad1a03ac532ff5a2cee5d86884440c7f7671" dependencies = [ "heck 0.5.0", "proc-macro2", "quote", - "syn", + "syn 2.0.108", ] [[package]] name = "clap_lex" -version = "0.7.4" +version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f46ad14479a25103f283c0f10005961cf086d8dc42205bb44c46ac563475dca6" +checksum = "a1d728cc89cf3aee9ff92b05e62b19ee65a02b5702cff7d5a377e32c6ae29d8d" [[package]] name = "colorchoice" -version = "1.0.3" +version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b63caa9aa9397e2d9480a9b13673856c78d8ac123288526c37d7839f2a86990" +checksum = "b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75" [[package]] -name = "compact_bytes" -version = "0.1.4" +name = "combine" +version = "4.6.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b8688f4a138f72f4dc214e7cafcd80c629363415c26db3040842acd26cb37eb" +checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd" dependencies = [ - "serde", - "static_assertions", + "bytes", + "memchr", ] [[package]] -name = "compact_str" -version = "0.8.1" +name = "compact_string" +version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b79c4069c6cad78e2e0cdfcbd26275770669fb39fd308a752dc110e83b9af32" +checksum = "5255b88d8ea09573f588088dea17fbea682b4442abea6761a15d1da2c3a76c5c" dependencies = [ - "castaway", - "cfg-if", - "itoa", - "rustversion", - "ryu", "serde", - "static_assertions", + "thiserror 1.0.69", ] [[package]] -name = "compact_string" -version = "0.1.0" +name = "compression-codecs" +version = "0.4.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5255b88d8ea09573f588088dea17fbea682b4442abea6761a15d1da2c3a76c5c" +checksum = "ef8a506ec4b81c460798f572caead636d57d3d7e940f998160f52bd254bf2d23" dependencies = [ - "serde", - "thiserror 1.0.69", + "compression-core", + "flate2", + "memchr", ] +[[package]] +name = "compression-core" +version = "0.4.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e47641d3deaf41fb1538ac1f54735925e275eaf3bf4d55c81b137fba797e5cbb" + [[package]] name = "concurrent-queue" version = "2.5.0" @@ -694,6 +692,12 @@ version = "0.9.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8" +[[package]] +name = "const-str" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f421161cb492475f1661ddc9815a745a1c894592070661180fdec3d4872e9c3" + [[package]] name = "cookie" version = "0.18.1" @@ -725,6 +729,16 @@ dependencies = [ "libc", ] +[[package]] +name = "core-foundation" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6" +dependencies = [ + "core-foundation-sys", + "libc", +] + [[package]] name = "core-foundation-sys" version = "0.8.7" @@ -751,9 +765,9 @@ dependencies = [ [[package]] name = "crc32fast" -version = "1.4.2" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a97769d94ddab943e4510d138150169a2758b5ef3eb191a9ee688de3e23ef7b3" +checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511" dependencies = [ "cfg-if", ] @@ -792,6 +806,12 @@ version = "0.8.21" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" +[[package]] +name = "crunchy" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5" + [[package]] name = "crypto-bigint" version = "0.5.5" @@ -838,7 +858,7 @@ checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.108", ] [[package]] @@ -847,8 +867,18 @@ version = "0.20.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fc7f46116c46ff9ab3eb1597a45688b6715c6e628b5c133e288e709a29bcb4ee" dependencies = [ - "darling_core", - "darling_macro", + "darling_core 0.20.11", + "darling_macro 0.20.11", +] + +[[package]] +name = "darling" +version = "0.21.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9cdf337090841a411e2a7f3deb9187445851f91b309c0c0a29e05f74a00a48c0" +dependencies = [ + "darling_core 0.21.3", + "darling_macro 0.21.3", ] [[package]] @@ -862,7 +892,21 @@ dependencies = [ "proc-macro2", "quote", "strsim", - "syn", + "syn 2.0.108", +] + +[[package]] +name = "darling_core" +version = "0.21.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1247195ecd7e3c85f83c8d2a366e4210d588e802133e1e355180a9870b517ea4" +dependencies = [ + "fnv", + "ident_case", + "proc-macro2", + "quote", + "strsim", + "syn 2.0.108", ] [[package]] @@ -871,9 +915,20 @@ version = "0.20.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fc34b93ccb385b40dc71c6fceac4b2ad23662c7eeb248cf10d529b7e055b6ead" dependencies = [ - "darling_core", + "darling_core 0.20.11", "quote", - "syn", + "syn 2.0.108", +] + +[[package]] +name = "darling_macro" +version = "0.21.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d38308df82d1080de0afee5d069fa14b0326a88c14f15c5ccda35b4a6c414c81" +dependencies = [ + "darling_core 0.21.3", + "quote", + "syn 2.0.108", ] [[package]] @@ -913,16 +968,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8d162beedaa69905488a8da94f5ac3edb4dd4788b732fadb7bd120b2625c1976" dependencies = [ "data-encoding", - "syn", + "syn 2.0.108", ] [[package]] name = "deadpool" -version = "0.12.2" +version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ed5957ff93768adf7a65ab167a17835c3d2c3c50d084fe305174c112f468e2f" +checksum = "0be2b1d1d6ec8d846f05e137292d0b89133caf95ef33695424c09568bdd39b1b" dependencies = [ "deadpool-runtime", + "lazy_static", "num_cpus", "tokio", ] @@ -956,12 +1012,12 @@ dependencies = [ [[package]] name = "deranged" -version = "0.4.0" +version = "0.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c9e6a11ca8224451684bc0d7d5a7adbf8f2fd6887261a1cfc3c0432f9d4068e" +checksum = "ececcb659e7ba858fb4f10388c250a7252eb0a27373f1a72b8748afdd248e587" dependencies = [ "powerfmt", - "serde", + "serde_core", ] [[package]] @@ -981,7 +1037,7 @@ checksum = "cb7330aeadfbe296029522e6c40f315320aba36fc43a5b3632f3795348f3bd22" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.108", "unicode-xid", ] @@ -993,11 +1049,11 @@ checksum = "ab03c107fafeb3ee9f5925686dbb7a73bc76e3932abb0d2b365cb64b169cf04c" [[package]] name = "diesel" -version = "2.2.10" +version = "2.2.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff3e1edb1f37b4953dd5176916347289ed43d7119cc2e6c7c3f7849ff44ea506" +checksum = "229850a212cd9b84d4f0290ad9d294afc0ae70fccaa8949dbe8b43ffafa1e20c" dependencies = [ - "bitflags 2.9.1", + "bitflags 2.10.0", "byteorder", "chrono", "diesel_derives", @@ -1025,15 +1081,15 @@ dependencies = [ [[package]] name = "diesel_derives" -version = "2.2.5" +version = "2.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68d4216021b3ea446fd2047f5c8f8fe6e98af34508a254a01e4d6bc1e844f84d" +checksum = "1b96984c469425cb577bf6f17121ecb3e4fe1e81de5d8f780dd372802858d756" dependencies = [ "diesel_table_macro_syntax", "dsl_auto_type", "proc-macro2", "quote", - "syn", + "syn 2.0.108", ] [[package]] @@ -1053,7 +1109,7 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "209c735641a413bc68c4923a9d6ad4bcb3ca306b794edaa7eb0b3228a99ffb25" dependencies = [ - "syn", + "syn 2.0.108", ] [[package]] @@ -1086,7 +1142,7 @@ dependencies = [ "libc", "option-ext", "redox_users", - "windows-sys 0.59.0", + "windows-sys 0.61.2", ] [[package]] @@ -1097,7 +1153,7 @@ checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.108", ] [[package]] @@ -1112,14 +1168,20 @@ version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "139ae9aca7527f85f26dd76483eb38533fd84bd571065da1739656ef71c5ff5b" dependencies = [ - "darling", + "darling 0.20.11", "either", "heck 0.5.0", "proc-macro2", "quote", - "syn", + "syn 2.0.108", ] +[[package]] +name = "dyn-clone" +version = "1.0.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555" + [[package]] name = "dynosaur" version = "0.2.0" @@ -1138,7 +1200,7 @@ checksum = "7a4102713839a8c01c77c165bc38ef2e83948f6397fa1e1dcfacec0f07b149d3" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.108", ] [[package]] @@ -1166,9 +1228,9 @@ dependencies = [ [[package]] name = "ed25519-dalek" -version = "2.1.1" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a3daa8e81a3963a60642bcc1f90a670680bd4a77535faa384e9d1c79d620871" +checksum = "70e796c081cee67dc755e1a36a0a172b897fab85fc3f6bc48307991f64e4eca9" dependencies = [ "curve25519-dalek", "ed25519", @@ -1225,7 +1287,7 @@ dependencies = [ "heck 0.5.0", "proc-macro2", "quote", - "syn", + "syn 2.0.108", ] [[package]] @@ -1236,35 +1298,19 @@ checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" [[package]] name = "errno" -version = "0.3.12" +version = "0.3.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cea14ef9355e3beab063703aa9dab15afd25f0667c341310c1e5274bb1d0da18" +checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" dependencies = [ "libc", - "windows-sys 0.59.0", -] - -[[package]] -name = "esquema-codegen" -version = "0.1.0" -source = "git+https://github.com/fatfingers23/esquema.git?branch=main#9ef00b9d631b746bd6396fb46ba255eb9360e43f" -dependencies = [ - "atrium-lex", - "heck 0.4.1", - "itertools", - "prettyplease", - "proc-macro2", - "quote", - "serde", - "serde_json", - "syn", + "windows-sys 0.61.2", ] [[package]] name = "event-listener" -version = "5.4.0" +version = "5.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3492acde4c3fc54c845eaab3eed8bd00c7a7d881f78bfc801e43a93dec1331ae" +checksum = "e13b66accf52311f30a0db42147dadea9850cb48cd070028831ae5f5d4b856ab" dependencies = [ "concurrent-queue", "parking", @@ -1289,12 +1335,13 @@ checksum = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7" [[package]] name = "fancy-regex" -version = "0.11.0" +version = "0.16.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b95f7c0680e4142284cf8b22c14a476e87d61b004a3a0861872b32ef7ead40a2" +checksum = "998b056554fbe42e03ae0e152895cd1a7e1002aec800fdc6635d20270260c46f" dependencies = [ "bit-set", - "regex", + "regex-automata", + "regex-syntax", ] [[package]] @@ -1321,21 +1368,27 @@ checksum = "28dea519a9695b9977216879a3ebfddf92f1c08c05d984f8996aecd6ecdc811d" [[package]] name = "filetime" -version = "0.2.25" +version = "0.2.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "35c0522e981e68cbfa8c3f978441a5f34b30b96e146b33cd3359176b50fe8586" +checksum = "bc0505cd1b6fa6580283f6bdf70a73fcf4aba1184038c90902b92b3dd0df63ed" dependencies = [ "cfg-if", "libc", "libredox", - "windows-sys 0.59.0", + "windows-sys 0.60.2", ] +[[package]] +name = "find-msvc-tools" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52051878f80a721bb68ebfbc930e07b65ba72f2da88968ea5c06fd6ca3d3a127" + [[package]] name = "flate2" -version = "1.1.1" +version = "1.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ced92e76e966ca2fd84c8f7aa01a4aea65b0eb6648d72f7c8f3e2764a67fece" +checksum = "bfe33edd8e85a12a67454e37f8c75e730830d83e313556ab9ebf9ee7fbeb3bfb" dependencies = [ "crc32fast", "miniz_oxide", @@ -1380,9 +1433,9 @@ checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" [[package]] name = "form_urlencoded" -version = "1.2.1" +version = "1.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456" +checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" dependencies = [ "percent-encoding", ] @@ -1396,17 +1449,42 @@ dependencies = [ "libc", ] +[[package]] +name = "futf" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df420e2e84819663797d1ec6544b13c5be84629e7bb00dc960d6917db2987843" +dependencies = [ + "mac", + "new_debug_unreachable", +] + +[[package]] +name = "futures" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65bc07b1a8bc7c85c5f2e110c476c7389b4554ba72af57d8445ea63a576b0876" +dependencies = [ + "futures-channel", + "futures-core", + "futures-executor", + "futures-io", + "futures-sink", + "futures-task", + "futures-util", +] + [[package]] name = "futures-buffered" -version = "0.2.11" +version = "0.2.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fe940397c8b744b9c2c974791c2c08bca2c3242ce0290393249e98f215a00472" +checksum = "a8e0e1f38ec07ba4abbde21eed377082f17ccb988be9d988a5adbf4bafc118fd" dependencies = [ "cordyceps", "diatomic-waker", "futures-core", "pin-project-lite", - "spin 0.9.8", + "spin 0.10.0", ] [[package]] @@ -1425,6 +1503,17 @@ version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e" +[[package]] +name = "futures-executor" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e28d1d997f585e54aebc3f97d39e72338912123a67330d723fdbb564d646c9f" +dependencies = [ + "futures-core", + "futures-task", + "futures-util", +] + [[package]] name = "futures-io" version = "0.3.31" @@ -1433,9 +1522,9 @@ checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6" [[package]] name = "futures-lite" -version = "2.6.0" +version = "2.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f5edaec856126859abb19ed65f39e90fea3a9574b9707f13539acf4abf7eb532" +checksum = "f78e10609fe0e0b3f4157ffab1876319b5b0db102a2c60dc4626306dc46b44ad" dependencies = [ "fastrand", "futures-core", @@ -1452,7 +1541,7 @@ checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.108", ] [[package]] @@ -1473,10 +1562,13 @@ version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81" dependencies = [ + "futures-channel", "futures-core", + "futures-io", "futures-macro", "futures-sink", "futures-task", + "memchr", "pin-project-lite", "pin-utils", "slab", @@ -1484,9 +1576,9 @@ dependencies = [ [[package]] name = "generator" -version = "0.8.5" +version = "0.8.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d18470a76cb7f8ff746cf1f7470914f900252ec36bbc40b569d74b1258446827" +checksum = "605183a538e3e2a9c1038635cc5c2d194e2ee8fd0d1b66b8349fad7dbacce5a2" dependencies = [ "cc", "cfg-if", @@ -1498,9 +1590,9 @@ dependencies = [ [[package]] name = "generic-array" -version = "0.14.7" +version = "0.14.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" +checksum = "4bb6743198531e02858aeaea5398fcc883e71851fcbcb5a2f773e2fb6cb1edf2" dependencies = [ "serde", "typenum", @@ -1510,11 +1602,11 @@ dependencies = [ [[package]] name = "getopts" -version = "0.2.21" +version = "0.2.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14dbbfd5c71d70241ecf9e6f13737f7b5ce823821063188d7e46c41d371eebd5" +checksum = "cfe4fbac503b8d1f88e6676011885f34b7174f46e59956bba534ba83abded4df" dependencies = [ - "unicode-width 0.1.14", + "unicode-width 0.2.2", ] [[package]] @@ -1526,41 +1618,41 @@ dependencies = [ "cfg-if", "js-sys", "libc", - "wasi 0.11.0+wasi-snapshot-preview1", + "wasi", "wasm-bindgen", ] [[package]] name = "getrandom" -version = "0.3.3" +version = "0.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26145e563e54f2cadc477553f1ec5ee650b00862f0a58bcd12cbdc5f0ea2d2f4" +checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" dependencies = [ "cfg-if", "js-sys", "libc", "r-efi", - "wasi 0.14.2+wasi-0.2.4", + "wasip2", "wasm-bindgen", ] [[package]] name = "gimli" -version = "0.31.1" +version = "0.32.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" +checksum = "e629b9b98ef3dd8afe6ca2bd0f89306cec16d43d907889945bc5d6687f2f13c7" [[package]] name = "globset" -version = "0.4.16" +version = "0.4.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54a1028dfc5f5df5da8a56a73e6c153c9a9708ec57232470703592a3f18e49f5" +checksum = "52dfc19153a48bde0cbd630453615c8151bce3a5adfac7a0aebfbf0a1e1f57e3" dependencies = [ "aho-corasick", "bstr", "log", - "regex-automata 0.4.9", - "regex-syntax 0.8.5", + "regex-automata", + "regex-syntax", ] [[package]] @@ -1585,9 +1677,9 @@ dependencies = [ [[package]] name = "h2" -version = "0.4.10" +version = "0.4.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9421a676d1b147b16b82c9225157dc629087ef8ec4d5e2960f9437a90dac0a5" +checksum = "f3c0b69cfcb4e1b9f1bf2f53f95f766e4661169728ec61cd3fe5a0166f2d1386" dependencies = [ "atomic-waker", "bytes", @@ -1595,7 +1687,7 @@ dependencies = [ "futures-core", "futures-sink", "http", - "indexmap 2.9.0", + "indexmap 2.12.0", "slab", "tokio", "tokio-util", @@ -1608,6 +1700,17 @@ version = "1.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1b43ede17f21864e81be2fa654110bf1e793774238d86ef8555c37e6519c0403" +[[package]] +name = "half" +version = "2.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ea2d84b969582b4b1864a92dc5d27cd2b77b622a8d79306834f1be5ba20d84b" +dependencies = [ + "cfg-if", + "crunchy", + "zerocopy", +] + [[package]] name = "hashbrown" version = "0.12.3" @@ -1619,16 +1722,12 @@ name = "hashbrown" version = "0.14.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" -dependencies = [ - "ahash", - "allocator-api2", -] [[package]] name = "hashbrown" -version = "0.15.3" +version = "0.15.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84b26c544d002229e640969970a2e74021aadf6e2f96372b9c58eff97de08eb3" +checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1" dependencies = [ "allocator-api2", "equivalent", @@ -1637,13 +1736,10 @@ dependencies = [ ] [[package]] -name = "hashlink" -version = "0.8.4" +name = "hashbrown" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8094feaf31ff591f651a2664fb9cfd92bba7a60ce3197265e9482ebe753c8f7" -dependencies = [ - "hashbrown 0.14.5", -] +checksum = "5419bdc4f6a9207fbeba6d11b604d481addf78ecd10c11ad51e76c2f6482748d" [[package]] name = "hashlink" @@ -1651,7 +1747,7 @@ version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7382cf6263419f2d8df38c55d7da83da5c18aef87fc7a7fc1fb1e344edfe14c1" dependencies = [ - "hashbrown 0.15.3", + "hashbrown 0.15.5", ] [[package]] @@ -1668,9 +1764,9 @@ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" [[package]] name = "hermit-abi" -version = "0.3.9" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024" +checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c" [[package]] name = "hex" @@ -1678,6 +1774,12 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" +[[package]] +name = "hex_fmt" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b07f60793ff0a4d9cef0f18e63b5357e06209987153a64648c972c1e5aff336f" + [[package]] name = "hickory-proto" version = "0.24.4" @@ -1732,6 +1834,29 @@ dependencies = [ "digest", ] +[[package]] +name = "home" +version = "0.5.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc627f471c528ff0c4a49e1d5e60450c8f6461dd6d10ba9dcd3a61d3dff7728d" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "html5ever" +version = "0.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c13771afe0e6e846f1e67d038d4cb29998a6779f93c809212e4e9c32efd244d4" +dependencies = [ + "log", + "mac", + "markup5ever", + "proc-macro2", + "quote", + "syn 2.0.108", +] + [[package]] name = "http" version = "1.3.1" @@ -1786,13 +1911,14 @@ checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" [[package]] name = "hyper" -version = "1.6.0" +version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc2b571658e38e0c01b1fdca3bbbe93c00d3d71693ff2770043f8c29bc7d6f80" +checksum = "eb3aa54a13a0dfe7fbe3a59e0c76093041720fdc77b110cc0fc260fafb4dc51e" dependencies = [ + "atomic-waker", "bytes", "futures-channel", - "futures-util", + "futures-core", "h2", "http", "http-body", @@ -1800,6 +1926,7 @@ dependencies = [ "httpdate", "itoa", "pin-project-lite", + "pin-utils", "smallvec", "tokio", "want", @@ -1807,14 +1934,14 @@ dependencies = [ [[package]] name = "hyper-rustls" -version = "0.27.6" +version = "0.27.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03a01595e11bdcec50946522c32dde3fc6914743000a68b93000965f2f02406d" +checksum = "e3c93eb611681b207e1fe55d5a71ecf91572ec8a6705cdb6857f7d8d5242cf58" dependencies = [ "http", "hyper", "hyper-util", - "rustls 0.23.27", + "rustls", "rustls-pki-types", "tokio", "tokio-rustls", @@ -1840,9 +1967,9 @@ dependencies = [ [[package]] name = "hyper-util" -version = "0.1.13" +version = "0.1.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1c293b6b3d21eca78250dc7dbebd6b9210ec5530e038cbfe0661b5c47ab06e8" +checksum = "3c6995591a8f1380fcb4ba966a252a4b29188d51d2b89e3a252f5305be65aea8" dependencies = [ "base64 0.22.1", "bytes", @@ -1856,7 +1983,7 @@ dependencies = [ "libc", "percent-encoding", "pin-project-lite", - "socket2", + "socket2 0.6.1", "system-configuration", "tokio", "tower-service", @@ -1866,9 +1993,9 @@ dependencies = [ [[package]] name = "iana-time-zone" -version = "0.1.63" +version = "0.1.64" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0c919e5debc312ad217002b8048a17b7d83f80703865bbfcfebb0458b0b27d8" +checksum = "33e57f83510bb73707521ebaffa789ec8caf86f9657cad665b092b581d40e9fb" dependencies = [ "android_system_properties", "core-foundation-sys", @@ -1876,7 +2003,7 @@ dependencies = [ "js-sys", "log", "wasm-bindgen", - "windows-core", + "windows-core 0.62.2", ] [[package]] @@ -1890,9 +2017,9 @@ dependencies = [ [[package]] name = "icu_collections" -version = "2.0.0" +version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "200072f5d0e3614556f94a9930d5dc3e0662a652823904c3a75dc3b0af7fee47" +checksum = "4c6b649701667bbe825c3b7e6388cb521c23d88644678e83c0c4d0a621a34b43" dependencies = [ "displaydoc", "potential_utf", @@ -1903,9 +2030,9 @@ dependencies = [ [[package]] name = "icu_locale_core" -version = "2.0.0" +version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0cde2700ccaed3872079a65fb1a78f6c0a36c91570f28755dda67bc8f7d9f00a" +checksum = "edba7861004dd3714265b4db54a3c390e880ab658fec5f7db895fae2046b5bb6" dependencies = [ "displaydoc", "litemap", @@ -1916,11 +2043,10 @@ dependencies = [ [[package]] name = "icu_normalizer" -version = "2.0.0" +version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "436880e8e18df4d7bbc06d58432329d6458cc84531f7ac5f024e93deadb37979" +checksum = "5f6c8828b67bf8908d82127b2054ea1b4427ff0230ee9141c54251934ab1b599" dependencies = [ - "displaydoc", "icu_collections", "icu_normalizer_data", "icu_properties", @@ -1931,42 +2057,38 @@ dependencies = [ [[package]] name = "icu_normalizer_data" -version = "2.0.0" +version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00210d6893afc98edb752b664b8890f0ef174c8adbb8d0be9710fa66fbbf72d3" +checksum = "7aedcccd01fc5fe81e6b489c15b247b8b0690feb23304303a9e560f37efc560a" [[package]] name = "icu_properties" -version = "2.0.1" +version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "016c619c1eeb94efb86809b015c58f479963de65bdb6253345c1a1276f22e32b" +checksum = "e93fcd3157766c0c8da2f8cff6ce651a31f0810eaa1c51ec363ef790bbb5fb99" dependencies = [ - "displaydoc", "icu_collections", "icu_locale_core", "icu_properties_data", "icu_provider", - "potential_utf", "zerotrie", "zerovec", ] [[package]] name = "icu_properties_data" -version = "2.0.1" +version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "298459143998310acd25ffe6810ed544932242d3f07083eee1084d83a71bd632" +checksum = "02845b3647bb045f1100ecd6480ff52f34c35f82d9880e029d329c21d1054899" [[package]] name = "icu_provider" -version = "2.0.0" +version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03c80da27b5f4187909049ee2d72f276f0d9f99a42c306bd0131ecfe04d8e5af" +checksum = "85962cf0ce02e1e0a629cc34e7ca3e373ce20dda4c4d7294bbd0bf1fdb59e614" dependencies = [ "displaydoc", "icu_locale_core", - "stable_deref_trait", - "tinystr", "writeable", "yoke", "zerofrom", @@ -1982,9 +2104,9 @@ checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" [[package]] name = "idna" -version = "1.0.3" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "686f825264d630750a544639377bae737628043f20d38bbc029e8f29ea968a7e" +checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de" dependencies = [ "idna_adapter", "smallvec", @@ -2003,15 +2125,15 @@ dependencies = [ [[package]] name = "ignore" -version = "0.4.23" +version = "0.4.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d89fd380afde86567dfba715db065673989d6253f42b88179abd3eae47bda4b" +checksum = "81776e6f9464432afcc28d03e52eb101c93b6f0566f52aef2427663e700f0403" dependencies = [ "crossbeam-deque", "globset", "log", "memchr", - "regex-automata 0.4.9", + "regex-automata", "same-file", "walkdir", "winapi-util", @@ -2030,12 +2152,23 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.9.0" +version = "2.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cea70ddb795996207ad57735b50c5982d8844f38ba9ee5f1aedcfb708a2aa11e" +checksum = "6717a8d2a5a929a1a2eb43a12812498ed141a0bcfb7e8f7844fbdbe4303bba9f" dependencies = [ "equivalent", - "hashbrown 0.15.3", + "hashbrown 0.16.0", + "serde", + "serde_core", +] + +[[package]] +name = "indoc" +version = "2.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "79cf5c93f93228cf8efb3ba362535fb11199ac548a09ce117c9b1adc3030d706" +dependencies = [ + "rustversion", ] [[package]] @@ -2044,7 +2177,7 @@ version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f37dccff2791ab604f9babef0ba14fbe0be30bd368dc541e2b08d07c8aa908f3" dependencies = [ - "bitflags 2.9.1", + "bitflags 2.10.0", "inotify-sys", "libc", ] @@ -2058,72 +2191,314 @@ dependencies = [ "libc", ] +[[package]] +name = "inventory" +version = "0.3.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc61209c082fbeb19919bee74b176221b27223e27b65d781eb91af24eb1fb46e" +dependencies = [ + "rustversion", +] + [[package]] name = "ipconfig" version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b58db92f96b720de98181bbbe63c831e87005ab460c1bf306eb2622b4707997f" dependencies = [ - "socket2", + "socket2 0.5.10", "widestring", "windows-sys 0.48.0", "winreg", ] [[package]] -name = "ipld-core" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "104718b1cc124d92a6d01ca9c9258a7df311405debb3408c445a36452f9bf8db" +name = "ipld-core" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "104718b1cc124d92a6d01ca9c9258a7df311405debb3408c445a36452f9bf8db" +dependencies = [ + "cid", + "serde", + "serde_bytes", +] + +[[package]] +name = "ipnet" +version = "2.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "469fb0b9cefa57e3ef31275ee7cacb78f2fdca44e4765491884a2b119d4eb130" + +[[package]] +name = "iri-string" +version = "0.7.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dbc5ebe9c3a1a7a5127f920a418f7585e9e758e911d0466ed004f393b0e380b2" +dependencies = [ + "memchr", + "serde", +] + +[[package]] +name = "is_ci" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7655c9839580ee829dfacba1d1278c2b7883e50a277ff7541299489d6bdfdc45" + +[[package]] +name = "is_terminal_polyfill" +version = "1.70.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695" + +[[package]] +name = "itoa" +version = "1.0.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c" + +[[package]] +name = "jacquard" +version = "0.8.0" +source = "git+https://tangled.org/@nonbinary.computer/jacquard#e806ffd7630aee98b94149686061a6cf1741aecf" +dependencies = [ + "bytes", + "getrandom 0.2.16", + "http", + "jacquard-api", + "jacquard-common", + "jacquard-derive", + "jacquard-identity", + "jacquard-oauth", + "jose-jwk", + "miette", + "regex", + "reqwest", + "serde", + "serde_html_form", + "serde_json", + "smol_str", + "thiserror 2.0.17", + "tokio", + "tracing", + "trait-variant", + "url", + "webpage", +] + +[[package]] +name = "jacquard-api" +version = "0.8.0" +source = "git+https://tangled.org/@nonbinary.computer/jacquard#e806ffd7630aee98b94149686061a6cf1741aecf" +dependencies = [ + "bon", + "bytes", + "jacquard-common", + "jacquard-derive", + "jacquard-lexicon", + "miette", + "rustversion", + "serde", + "serde_ipld_dagcbor", + "thiserror 2.0.17", + "unicode-segmentation", +] + +[[package]] +name = "jacquard-axum" +version = "0.8.0" +source = "git+https://tangled.org/@nonbinary.computer/jacquard#e806ffd7630aee98b94149686061a6cf1741aecf" +dependencies = [ + "axum", + "bytes", + "jacquard", + "jacquard-common", + "jacquard-derive", + "jacquard-identity", + "miette", + "multibase", + "serde", + "serde_html_form", + "serde_json", + "thiserror 2.0.17", + "tokio", + "tower-http", + "tracing", +] + +[[package]] +name = "jacquard-common" +version = "0.8.0" +source = "git+https://tangled.org/@nonbinary.computer/jacquard#e806ffd7630aee98b94149686061a6cf1741aecf" +dependencies = [ + "base64 0.22.1", + "bon", + "bytes", + "chrono", + "ciborium", + "cid", + "futures", + "getrandom 0.2.16", + "getrandom 0.3.4", + "http", + "ipld-core", + "k256", + "langtag", + "miette", + "multibase", + "multihash", + "n0-future", + "ouroboros", + "p256", + "rand 0.9.2", + "regex", + "reqwest", + "serde", + "serde_html_form", + "serde_ipld_dagcbor", + "serde_json", + "signature", + "smol_str", + "thiserror 2.0.17", + "tokio", + "tokio-tungstenite-wasm", + "tokio-util", + "tracing", + "trait-variant", + "url", + "zstd", +] + +[[package]] +name = "jacquard-derive" +version = "0.8.0" +source = "git+https://tangled.org/@nonbinary.computer/jacquard#e806ffd7630aee98b94149686061a6cf1741aecf" +dependencies = [ + "heck 0.5.0", + "jacquard-lexicon", + "proc-macro2", + "quote", + "syn 2.0.108", +] + +[[package]] +name = "jacquard-identity" +version = "0.8.0" +source = "git+https://tangled.org/@nonbinary.computer/jacquard#e806ffd7630aee98b94149686061a6cf1741aecf" +dependencies = [ + "bon", + "bytes", + "hickory-resolver", + "http", + "jacquard-api", + "jacquard-common", + "jacquard-lexicon", + "miette", + "moka", + "percent-encoding", + "reqwest", + "serde", + "serde_html_form", + "serde_json", + "thiserror 2.0.17", + "tokio", + "tracing", + "trait-variant", + "url", + "urlencoding", +] + +[[package]] +name = "jacquard-lexicon" +version = "0.8.0" +source = "git+https://tangled.org/@nonbinary.computer/jacquard#e806ffd7630aee98b94149686061a6cf1741aecf" dependencies = [ "cid", + "dashmap", + "heck 0.5.0", + "inventory", + "jacquard-common", + "miette", + "multihash", + "prettyplease", + "proc-macro2", + "quote", "serde", - "serde_bytes", + "serde_ipld_dagcbor", + "serde_json", + "serde_repr", + "serde_with", + "sha2", + "syn 2.0.108", + "thiserror 2.0.17", + "unicode-segmentation", ] [[package]] -name = "ipnet" -version = "2.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "469fb0b9cefa57e3ef31275ee7cacb78f2fdca44e4765491884a2b119d4eb130" - -[[package]] -name = "iri-string" -version = "0.7.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dbc5ebe9c3a1a7a5127f920a418f7585e9e758e911d0466ed004f393b0e380b2" +name = "jacquard-oauth" +version = "0.8.0" +source = "git+https://tangled.org/@nonbinary.computer/jacquard#e806ffd7630aee98b94149686061a6cf1741aecf" dependencies = [ - "memchr", + "base64 0.22.1", + "bytes", + "chrono", + "dashmap", + "elliptic-curve", + "http", + "jacquard-common", + "jacquard-identity", + "jose-jwa", + "jose-jwk", + "miette", + "p256", + "rand 0.8.5", + "rouille", "serde", + "serde_html_form", + "serde_json", + "sha2", + "signature", + "smol_str", + "thiserror 2.0.17", + "tokio", + "tracing", + "trait-variant", + "url", + "webbrowser", ] [[package]] -name = "is_ci" -version = "1.2.0" +name = "jni" +version = "0.21.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7655c9839580ee829dfacba1d1278c2b7883e50a277ff7541299489d6bdfdc45" +checksum = "1a87aa2bb7d2af34197c04845522473242e1aa17c12f4935d5856491a7fb8c97" +dependencies = [ + "cesu8", + "cfg-if", + "combine", + "jni-sys", + "log", + "thiserror 1.0.69", + "walkdir", + "windows-sys 0.45.0", +] [[package]] -name = "is_terminal_polyfill" -version = "1.70.1" +name = "jni-sys" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf" +checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130" [[package]] -name = "itertools" -version = "0.10.5" +name = "jobserver" +version = "0.1.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473" +checksum = "9afb3de4395d6b3e67a780b6de64b51c978ecf11cb9a462c66be7d4ca9039d33" dependencies = [ - "either", + "getrandom 0.3.4", + "libc", ] -[[package]] -name = "itoa" -version = "1.0.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c" - [[package]] name = "jose" version = "0.0.2" @@ -2138,7 +2513,7 @@ dependencies = [ "elliptic-curve", "fluent-uri", "generic-array", - "hashbrown 0.15.3", + "hashbrown 0.15.5", "hmac", "k256", "mediatype", @@ -2153,7 +2528,7 @@ dependencies = [ "sha2", "signature", "subtle", - "thiserror 2.0.12", + "thiserror 2.0.17", "zeroize", ] @@ -2195,9 +2570,9 @@ dependencies = [ [[package]] name = "js-sys" -version = "0.3.77" +version = "0.3.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1cfaf33c695fc6e08064efbc1f72ec937429614f25eef83af942d0e227c3a28f" +checksum = "b011eec8cc36da2aab2d5cff675ec18454fad408585853910a202391cf9f8e65" dependencies = [ "once_cell", "wasm-bindgen", @@ -2237,11 +2612,13 @@ dependencies = [ [[package]] name = "langtag" -version = "0.3.4" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed60c85f254d6ae8450cec15eedd921efbc4d1bdf6fcf6202b9a58b403f6f805" +checksum = "9ecb4c689a30e48ebeaa14237f34037e300dd072e6ad21a9ec72e810ff3c6600" dependencies = [ "serde", + "static-regular-grammar", + "thiserror 1.0.69", ] [[package]] @@ -2255,9 +2632,9 @@ dependencies = [ [[package]] name = "libc" -version = "0.2.172" +version = "0.2.177" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d750af042f7ef4f724306de029d18836c26c1765a54a6a3f094cbd23a7267ffa" +checksum = "2874a2af47a2325c2001a6e6fad9b16a53b802102b528163885171cf92b15976" [[package]] name = "libm" @@ -2267,20 +2644,20 @@ checksum = "f9fbbcab51052fe104eb5e5d351cf728d30a5be1fe14d9be8a3b097481fb97de" [[package]] name = "libredox" -version = "0.1.3" +version = "0.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0ff37bd590ca25063e35af745c343cb7a0271906fb7b37e4813e8f79f00268d" +checksum = "416f7e718bdb06000964960ffa43b4335ad4012ae8b99060261aa4a8088d5ccb" dependencies = [ - "bitflags 2.9.1", + "bitflags 2.10.0", "libc", "redox_syscall", ] [[package]] name = "libsqlite3-sys" -version = "0.33.0" +version = "0.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "947e6816f7825b2b45027c2c32e7085da9934defa535de4a6a46b10a4d5257fa" +checksum = "133c182a6a2c87864fe97778797e46c7e999672690dc9fa3ee8e241aa4a9c13f" dependencies = [ "pkg-config", "vcpkg", @@ -2294,31 +2671,30 @@ checksum = "0717cef1bc8b636c6e1c1bbdefc09e6322da8a9321966e8928ef80d20f7f770f" [[package]] name = "linux-raw-sys" -version = "0.9.4" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd945864f07fe9f5371a27ad7b52a172b4b499999f1d97574c9fa68373937e12" +checksum = "df1d3c3b53da64cf5760482273a98e575c651a67eec7f77df96b5b642de8f039" [[package]] name = "litemap" -version = "0.8.0" +version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "241eaef5fd12c88705a01fc1066c48c4b36e0dd4377dcdc7ec3942cea7a69956" +checksum = "6373607a59f0be73a39b6fe456b8192fcc3585f602af20751600e974dd455e77" [[package]] name = "lock_api" -version = "0.4.12" +version = "0.4.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17" +checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965" dependencies = [ - "autocfg", "scopeguard", ] [[package]] name = "log" -version = "0.4.27" +version = "0.4.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13dc2df351e3202783a1fe0d44375f7295ffb4049267b0f3018346dc122a1d94" +checksum = "34080505efa8e45a4b816c349525ebe327ceaa8559756f0356cba97ef3bf7432" [[package]] name = "loom" @@ -2333,15 +2709,6 @@ dependencies = [ "tracing-subscriber", ] -[[package]] -name = "lru" -version = "0.12.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "234cf4f4a04dc1f57e24b96cc0cd600cf2af460d4161ac5ecdd0af8e1f3b2a38" -dependencies = [ - "hashbrown 0.15.3", -] - [[package]] name = "lru-cache" version = "0.1.2" @@ -2357,12 +2724,27 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "112b39cec0b298b6c1999fee3e31427f74f676e4cb9879ed1a121b43661a4154" +[[package]] +name = "mac" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4" + +[[package]] +name = "malloc_buf" +version = "0.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62bb907fe88d54d8d9ce32a3cceab4218ed2f6b7d35617cafe9adf84e43919cb" +dependencies = [ + "libc", +] + [[package]] name = "markdown-weaver" version = "0.13.0" source = "git+https://github.com/rsform/markdown-weaver#5a93522bc6b69058a34e7eb46f89b39d1b6be006" dependencies = [ - "bitflags 2.9.1", + "bitflags 2.10.0", "getopts", "markdown-weaver-escape", "memchr", @@ -2375,76 +2757,81 @@ version = "0.11.0" source = "git+https://github.com/rsform/markdown-weaver#5a93522bc6b69058a34e7eb46f89b39d1b6be006" [[package]] -name = "matchers" -version = "0.1.0" +name = "markup5ever" +version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8263075bb86c5a1b1427b5ae862e8889656f126e9f77c484496e8b47cf5c5558" +checksum = "16ce3abbeba692c8b8441d036ef91aea6df8da2c6b6e21c7e14d3c18e526be45" dependencies = [ - "regex-automata 0.1.10", + "log", + "phf 0.11.3", + "phf_codegen", + "string_cache", + "string_cache_codegen", + "tendril", ] [[package]] -name = "matchit" -version = "0.8.4" +name = "markup5ever_rcdom" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47e1ffaa40ddd1f3ed91f717a33c8c0ee23fff369e3aa8772b9605cc1d22f4c3" +checksum = "edaa21ab3701bfee5099ade5f7e1f84553fd19228cf332f13cd6e964bf59be18" +dependencies = [ + "html5ever", + "markup5ever", + "tendril", + "xml5ever", +] [[package]] -name = "md-5" -version = "0.10.6" +name = "match-lookup" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d89e7ee0cfbedfc4da3340218492196241d89eefb6dab27de5df917a6d2e78cf" +checksum = "1265724d8cb29dbbc2b0f06fffb8bf1a8c0cf73a78eede9ba73a4a66c52a981e" dependencies = [ - "cfg-if", - "digest", + "proc-macro2", + "quote", + "syn 1.0.109", ] [[package]] -name = "mediatype" -version = "0.19.20" +name = "matchers" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33746aadcb41349ec291e7f2f0a3aa6834d1d7c58066fb4b01f68efc4c4b7631" +checksum = "d1525a2a28c7f4fa0fc98bb91ae755d1e2d1505079e05539e35bc876b5d65ae9" dependencies = [ - "serde", + "regex-automata", ] [[package]] -name = "memchr" -version = "2.7.4" +name = "matchit" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" +checksum = "47e1ffaa40ddd1f3ed91f717a33c8c0ee23fff369e3aa8772b9605cc1d22f4c3" [[package]] -name = "merde" -version = "10.0.7" +name = "md-5" +version = "0.10.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "edd8dc7668eb89ede52dc09d4b21a8c2f7c9cd47168ea1f82550f705615d9b99" +checksum = "d89e7ee0cfbedfc4da3340218492196241d89eefb6dab27de5df917a6d2e78cf" dependencies = [ - "merde_core", - "merde_yaml", + "cfg-if", + "digest", ] [[package]] -name = "merde_core" -version = "10.0.6" +name = "mediatype" +version = "0.19.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e937026f22a5a3567bc402f1edf871ecab0e0222cd6f829ea58abae0185e759c" +checksum = "33746aadcb41349ec291e7f2f0a3aa6834d1d7c58066fb4b01f68efc4c4b7631" dependencies = [ - "compact_bytes", - "compact_str", - "ordered-float 5.0.0", "serde", ] [[package]] -name = "merde_yaml" -version = "10.0.6" +name = "memchr" +version = "2.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c36f61da594ecad0ed986ceeb5061eba47a36fcf839576ce525c7e4ff08f3fa" -dependencies = [ - "merde_core", - "yaml-rust2 0.8.1", -] +checksum = "f52b00d39961fc5b2736ea853c9cc86238e165017a493d1d5c8eac6bdc4cc273" [[package]] name = "miette" @@ -2474,17 +2861,17 @@ checksum = "db5b29714e950dbb20d5e6f74f9dcec4edbcc1067bb7f8ed198c097b8c1a818b" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.108", ] [[package]] name = "migrations_internals" -version = "2.2.0" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd01039851e82f8799046eabbb354056283fb265c8ec0996af940f4e85a380ff" +checksum = "3bda1634d70d5bd53553cf15dca9842a396e8c799982a3ad22998dc44d961f24" dependencies = [ "serde", - "toml", + "toml 0.9.8", ] [[package]] @@ -2516,73 +2903,80 @@ dependencies = [ [[package]] name = "minijinja" -version = "2.10.2" +version = "2.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd72e8b4e42274540edabec853f607c015c73436159b06c39c7af85a20433155" +checksum = "a9f264d75233323f4b7d2f03aefe8a990690cdebfbfe26ea86bcbaec5e9ac990" dependencies = [ "serde", ] [[package]] name = "minijinja-contrib" -version = "2.10.2" +version = "2.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "457f85f9c4c5b17d11fcf9bbe7c0dbba64843c5ee040005956f1a510b6679fe2" +checksum = "182ba1438db4679ddfa03792c183bdc2b9ce26b58e7d41a749e59b06497cf136" dependencies = [ "minijinja", "serde", ] +[[package]] +name = "minimal-lexical" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" + [[package]] name = "miniz_oxide" -version = "0.8.8" +version = "0.8.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3be647b768db090acb35d5ec5db2b0e1f1de11133ca123b9eacf5137868f892a" +checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316" dependencies = [ "adler2", + "simd-adler32", ] [[package]] name = "mio" -version = "1.0.4" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78bed444cc8a2160f01cbcf811ef18cac863ad68ae8ca62092e8db51d51c761c" +checksum = "69d83b0086dc8ecf3ce9ae2874b2d1290252e2a30720bea58a5c6639b0092873" dependencies = [ "libc", "log", - "wasi 0.11.0+wasi-snapshot-preview1", - "windows-sys 0.59.0", + "wasi", + "windows-sys 0.61.2", ] [[package]] name = "moka" -version = "0.12.10" +version = "0.12.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9321642ca94a4282428e6ea4af8cc2ca4eac48ac7a6a4ea8f33f76d0ce70926" +checksum = "8261cd88c312e0004c1d51baad2980c66528dfdb2bee62003e643a4d8f86b077" dependencies = [ "async-lock", "crossbeam-channel", "crossbeam-epoch", "crossbeam-utils", + "equivalent", "event-listener", "futures-util", - "loom", "parking_lot", "portable-atomic", "rustc_version", "smallvec", "tagptr", - "thiserror 1.0.69", "uuid", ] [[package]] name = "multibase" -version = "0.9.1" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b3539ec3c1f04ac9748a260728e855f261b4977f5c3406612c884564f329404" +checksum = "8694bb4835f452b0e3bb06dbebb1d6fc5385b6ca1caf2e55fd165c042390ec77" dependencies = [ "base-x", + "base256emoji", "data-encoding", "data-encoding-macro", ] @@ -2649,19 +3043,40 @@ dependencies = [ "openssl-probe", "openssl-sys", "schannel", - "security-framework", + "security-framework 2.11.1", "security-framework-sys", "tempfile", ] +[[package]] +name = "ndk-context" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b" + +[[package]] +name = "new_debug_unreachable" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086" + +[[package]] +name = "nom" +version = "7.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a" +dependencies = [ + "memchr", + "minimal-lexical", +] + [[package]] name = "notify" -version = "8.0.0" +version = "8.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2fee8403b3d66ac7b26aee6e40a897d85dc5ce26f44da36b8b73e987cc52e943" +checksum = "4d3d07927151ff8575b7087f245456e549fea62edf0ec4e565a5ee50c8402bc3" dependencies = [ - "bitflags 2.9.1", - "filetime", + "bitflags 2.10.0", "fsevent-sys", "inotify", "kqueue", @@ -2670,7 +3085,7 @@ dependencies = [ "mio", "notify-types", "walkdir", - "windows-sys 0.59.0", + "windows-sys 0.60.2", ] [[package]] @@ -2681,12 +3096,11 @@ checksum = "5e0826a989adedc2a244799e823aece04662b66609d96af8dff7ac6df9a8925d" [[package]] name = "nu-ansi-term" -version = "0.46.0" +version = "0.50.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77a8165726e8236064dbb45459242600304b42a5ea24ee2948e18e023bf7ba84" +checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5" dependencies = [ - "overload", - "winapi", + "windows-sys 0.61.2", ] [[package]] @@ -2744,9 +3158,9 @@ dependencies = [ [[package]] name = "num_cpus" -version = "1.16.0" +version = "1.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43" +checksum = "91df4bbde75afed763b708b7eee1e8e7651e02d97f6d5dd763e89367e957b23b" dependencies = [ "hermit-abi", "libc", @@ -2761,11 +3175,20 @@ dependencies = [ "libc", ] +[[package]] +name = "objc" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "915b1b472bc21c53464d6c8461c9d3af805ba1ef837e1cac254428f4a77177b1" +dependencies = [ + "malloc_buf", +] + [[package]] name = "object" -version = "0.36.7" +version = "0.37.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62948e14d923ea95ea2c7c86c71013138b66525b86bdc08d2dcc262bdb497b87" +checksum = "ff76201f031d8863c38aa7f905eca4f53abbfa15f609db4277d44cd8938f33fe" dependencies = [ "memchr", ] @@ -2778,9 +3201,9 @@ checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" [[package]] name = "once_cell_polyfill" -version = "1.70.1" +version = "1.70.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4895175b425cb1f87721b59f0f286c2092bd4af812243672510e1ac53e2e0ad" +checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe" [[package]] name = "onig" @@ -2788,7 +3211,7 @@ version = "6.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "336b9c63443aceef14bea841b899035ae3abe89b7c486aaf4c5bd8aafedac3f0" dependencies = [ - "bitflags 2.9.1", + "bitflags 2.10.0", "libc", "once_cell", "onig_sys", @@ -2806,11 +3229,11 @@ dependencies = [ [[package]] name = "openssl" -version = "0.10.72" +version = "0.10.74" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fedfea7d58a1f73118430a55da6a286e7b044961736ce96a16a17068ea25e5da" +checksum = "24ad14dd45412269e1a30f52ad8f0664f0f4f4a89ee8fe28c3b3527021ebb654" dependencies = [ - "bitflags 2.9.1", + "bitflags 2.10.0", "cfg-if", "foreign-types", "libc", @@ -2827,7 +3250,7 @@ checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.108", ] [[package]] @@ -2838,9 +3261,9 @@ checksum = "d05e27ee213611ffe7d6348b942e8f942b37114c00cc03cec254295a4a17852e" [[package]] name = "openssl-sys" -version = "0.9.108" +version = "0.9.110" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e145e1651e858e820e4860f7b9c5e169bc1d8ce1c86043be79fa7b7634821847" +checksum = "0a9f0075ba3c21b09f8e8b2026584b1d18d49388648f2fbbf3c97ea8deced8e2" dependencies = [ "cc", "libc", @@ -2864,25 +3287,34 @@ dependencies = [ ] [[package]] -name = "ordered-float" -version = "5.0.0" +name = "ouroboros" +version = "0.18.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2c1f9f56e534ac6a9b8a4600bdf0f530fb393b5f393e7b4d03489c3cf0c3f01" +checksum = "1e0f050db9c44b97a94723127e6be766ac5c340c48f2c4bb3ffa11713744be59" dependencies = [ - "num-traits", + "aliasable", + "ouroboros_macro", + "static_assertions", ] [[package]] -name = "overload" -version = "0.1.1" +name = "ouroboros_macro" +version = "0.18.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39" +checksum = "3c7028bdd3d43083f6d8d4d5187680d0d3560d54df4cc9d752005268b41e64d0" +dependencies = [ + "heck 0.4.1", + "proc-macro2", + "proc-macro2-diagnostics", + "quote", + "syn 2.0.108", +] [[package]] name = "owo-colors" -version = "4.2.1" +version = "4.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26995317201fa17f3656c36716aed4a7c81743a9634ac4c99c0eeda495db0cec" +checksum = "9c6901729fa79e91a0913333229e9ca5dc725089d1c363b2f4b4760709dc4a52" [[package]] name = "p256" @@ -2916,9 +3348,9 @@ checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba" [[package]] name = "parking_lot" -version = "0.12.3" +version = "0.12.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27" +checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a" dependencies = [ "lock_api", "parking_lot_core", @@ -2926,15 +3358,15 @@ dependencies = [ [[package]] name = "parking_lot_core" -version = "0.9.10" +version = "0.9.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8" +checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1" dependencies = [ "cfg-if", "libc", "redox_syscall", "smallvec", - "windows-targets 0.52.6", + "windows-link 0.2.1", ] [[package]] @@ -2954,9 +3386,9 @@ dependencies = [ [[package]] name = "percent-encoding" -version = "2.3.1" +version = "2.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" +checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" [[package]] name = "phf" @@ -2964,7 +3396,37 @@ version = "0.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1fd6780a80ae0c52cc120a26a1a42c1ae51b247a253e4e06113d23d2c2edd078" dependencies = [ - "phf_shared", + "phf_shared 0.11.3", +] + +[[package]] +name = "phf" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1562dc717473dbaa4c1f85a36410e03c047b2e7df7f45ee938fbef64ae7fadf" +dependencies = [ + "phf_shared 0.13.1", + "serde", +] + +[[package]] +name = "phf_codegen" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aef8048c789fa5e851558d709946d6d79a8ff88c0440c587967f8e94bfb1216a" +dependencies = [ + "phf_generator", + "phf_shared 0.11.3", +] + +[[package]] +name = "phf_generator" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c80231409c20246a13fddb31776fb942c38553c51e871f8cbd687a4cfb5843d" +dependencies = [ + "phf_shared 0.11.3", + "rand 0.8.5", ] [[package]] @@ -2976,6 +3438,15 @@ dependencies = [ "siphasher", ] +[[package]] +name = "phf_shared" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e57fef6bc5981e38c2ce2d63bfa546861309f875b8a75f092d1d54ae2d64f266" +dependencies = [ + "siphasher", +] + [[package]] name = "pin-project" version = "1.1.10" @@ -2993,7 +3464,7 @@ checksum = "6e918e4ff8c4549eb882f14b3a4bc8c8bc93de829416eacf579f1207a8fbf861" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.108", ] [[package]] @@ -3037,12 +3508,12 @@ checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c" [[package]] name = "plist" -version = "1.7.1" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eac26e981c03a6e53e0aee43c113e3202f5581d5360dae7bd2c70e800dd0451d" +checksum = "740ebea15c5d1428f910cd1a5f52cebf8d25006245ed8ade92702f4943d91e07" dependencies = [ "base64 0.22.1", - "indexmap 2.9.0", + "indexmap 2.12.0", "quick-xml", "serde", "time", @@ -3050,15 +3521,15 @@ dependencies = [ [[package]] name = "portable-atomic" -version = "1.11.0" +version = "1.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "350e9b48cbc6b0e028b0473b114454c6316e57336ee184ceab6e53f72c178b3e" +checksum = "f84267b20a16ea918e43c6a88433c2d54fa145c92a811b5b047ccbe153674483" [[package]] name = "postgres-protocol" -version = "0.6.8" +version = "0.6.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76ff0abab4a9b844b93ef7b81f1efc0a366062aaef2cd702c76256b5dc075c54" +checksum = "fbef655056b916eb868048276cfd5d6a7dea4f81560dfd047f97c8c6fe3fcfd4" dependencies = [ "base64 0.22.1", "byteorder", @@ -3067,16 +3538,16 @@ dependencies = [ "hmac", "md-5", "memchr", - "rand 0.9.1", + "rand 0.9.2", "sha2", "stringprep", ] [[package]] name = "postgres-types" -version = "0.2.9" +version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "613283563cd90e1dfc3518d548caee47e0e725455ed619881f5cf21f36de4b48" +checksum = "ef4605b7c057056dd35baeb6ac0c0338e4975b1f2bef0f65da953285eb007095" dependencies = [ "bytes", "fallible-iterator", @@ -3085,9 +3556,9 @@ dependencies = [ [[package]] name = "potential_utf" -version = "0.1.2" +version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5a7c30837279ca13e7c867e9e40053bc68740f988cb07f7ca6df43cc734b585" +checksum = "b73949432f5e2a09657003c25bca5e19a0e9c84f8058ca374f49e0ebe605af77" dependencies = [ "zerovec", ] @@ -3109,22 +3580,29 @@ dependencies = [ [[package]] name = "pq-sys" -version = "0.7.1" +version = "0.7.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41c852911b98f5981956037b2ca976660612e548986c30af075e753107bc3400" +checksum = "574ddd6a267294433f140b02a726b0640c43cf7c6f717084684aaa3b285aba61" dependencies = [ "libc", + "pkg-config", "vcpkg", ] +[[package]] +name = "precomputed-hash" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" + [[package]] name = "prettyplease" -version = "0.2.32" +version = "0.2.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "664ec5419c51e34154eec046ebcba56312d5a2fc3b09a06da188e1ad21afadf6" +checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b" dependencies = [ "proc-macro2", - "syn", + "syn 2.0.108", ] [[package]] @@ -3136,15 +3614,52 @@ dependencies = [ "elliptic-curve", ] +[[package]] +name = "proc-macro-error" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" +dependencies = [ + "proc-macro-error-attr", + "proc-macro2", + "quote", + "syn 1.0.109", + "version_check", +] + +[[package]] +name = "proc-macro-error-attr" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" +dependencies = [ + "proc-macro2", + "quote", + "version_check", +] + [[package]] name = "proc-macro2" -version = "1.0.95" +version = "1.0.103" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02b3e5e68a3a1a02aad3ec490a98007cbc13c37cbe84a3cd7b8e406d76e7f778" +checksum = "5ee95bc4ef87b8d5ba32e8b7714ccc834865276eab0aed5c9958d00ec45f49e8" dependencies = [ "unicode-ident", ] +[[package]] +name = "proc-macro2-diagnostics" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af066a9c399a26e020ada66a034357a868728e72cd426f3adcd35f80d88d88c8" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.108", + "version_check", + "yansi", +] + [[package]] name = "quick-error" version = "1.2.3" @@ -3153,18 +3668,18 @@ checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0" [[package]] name = "quick-xml" -version = "0.32.0" +version = "0.38.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d3a6e5838b60e0e8fa7a43f22ade549a37d61f8bdbe636d0d7816191de969c2" +checksum = "42a232e7487fc2ef313d96dde7948e7a3c05101870d8985e4fd8d26aedd27b89" dependencies = [ "memchr", ] [[package]] name = "quinn" -version = "0.11.8" +version = "0.11.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "626214629cda6781b6dc1d316ba307189c85ba657213ce642d9c77670f8202c8" +checksum = "b9e20a958963c291dc322d98411f541009df2ced7b5a4f2bd52337638cfccf20" dependencies = [ "bytes", "cfg_aliases", @@ -3172,9 +3687,9 @@ dependencies = [ "quinn-proto", "quinn-udp", "rustc-hash", - "rustls 0.23.27", - "socket2", - "thiserror 2.0.12", + "rustls", + "socket2 0.6.1", + "thiserror 2.0.17", "tokio", "tracing", "web-time", @@ -3182,20 +3697,20 @@ dependencies = [ [[package]] name = "quinn-proto" -version = "0.11.12" +version = "0.11.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49df843a9161c85bb8aae55f101bc0bac8bcafd637a620d9122fd7e0b2f7422e" +checksum = "f1906b49b0c3bc04b5fe5d86a77925ae6524a19b816ae38ce1e426255f1d8a31" dependencies = [ "bytes", - "getrandom 0.3.3", + "getrandom 0.3.4", "lru-slab", - "rand 0.9.1", - "ring 0.17.14", + "rand 0.9.2", + "ring", "rustc-hash", - "rustls 0.23.27", + "rustls", "rustls-pki-types", "slab", - "thiserror 2.0.12", + "thiserror 2.0.17", "tinyvec", "tracing", "web-time", @@ -3203,32 +3718,32 @@ dependencies = [ [[package]] name = "quinn-udp" -version = "0.5.12" +version = "0.5.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee4e529991f949c5e25755532370b8af5d114acae52326361d68d47af64aa842" +checksum = "addec6a0dcad8a8d96a771f815f0eaf55f9d1805756410b39f5fa81332574cbd" dependencies = [ "cfg_aliases", "libc", "once_cell", - "socket2", + "socket2 0.6.1", "tracing", - "windows-sys 0.59.0", + "windows-sys 0.60.2", ] [[package]] name = "quote" -version = "1.0.40" +version = "1.0.41" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d" +checksum = "ce25767e7b499d1b604768e7cde645d14cc8584231ea6b295e9c9eb22c02e1d1" dependencies = [ "proc-macro2", ] [[package]] name = "r-efi" -version = "5.2.0" +version = "5.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74765f6d916ee2faa39bc8e68e4f3ed8949b48cccdac59983d287a7cb71ce9c5" +checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" [[package]] name = "rand" @@ -3243,9 +3758,9 @@ dependencies = [ [[package]] name = "rand" -version = "0.9.1" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9fbfd9d094a40bf3ae768db9361049ace4c0e04a4fd6b359518bd7b73a73dd97" +checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1" dependencies = [ "rand_chacha 0.9.0", "rand_core 0.9.3", @@ -3286,98 +3801,95 @@ version = "0.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "99d9a13982dcf210057a8a78572b2217b667c3beacbf3a0d8b454f6f82837d38" dependencies = [ - "getrandom 0.3.3", + "getrandom 0.3.4", ] +[[package]] +name = "range-traits" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d20581732dd76fa913c7dff1a2412b714afe3573e94d41c34719de73337cc8ab" + +[[package]] +name = "raw-window-handle" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2ff9a1f06a88b01621b7ae906ef0211290d1c8a168a15542486a8f61c0833b9" + [[package]] name = "redox_syscall" -version = "0.5.12" +version = "0.5.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "928fca9cf2aa042393a8325b9ead81d2f0df4cb12e1e24cef072922ccd99c5af" +checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" dependencies = [ - "bitflags 2.9.1", + "bitflags 2.10.0", ] [[package]] name = "redox_users" -version = "0.5.0" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd6f9d3d47bdd2ad6945c5015a226ec6155d0bcdfd8f7cd29f86b71f8de99d2b" +checksum = "a4e608c6638b9c18977b00b475ac1f28d14e84b27d8d42f70e0bf1e3dec127ac" dependencies = [ "getrandom 0.2.16", "libredox", - "thiserror 2.0.12", + "thiserror 2.0.17", ] [[package]] name = "ref-cast" -version = "1.0.24" +version = "1.0.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a0ae411dbe946a674d89546582cea4ba2bb8defac896622d6496f14c23ba5cf" +checksum = "f354300ae66f76f1c85c5f84693f0ce81d747e2c3f21a45fef496d89c960bf7d" dependencies = [ "ref-cast-impl", ] [[package]] name = "ref-cast-impl" -version = "1.0.24" +version = "1.0.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1165225c21bff1f3bbce98f5a1f889949bc902d3575308cc7b0de30b4f6d27c7" +checksum = "b7186006dcb21920990093f30e3dea63b7d6e977bf1256be20c3563a5db070da" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.108", ] [[package]] name = "regex" -version = "1.11.1" +version = "1.12.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191" +checksum = "843bc0191f75f3e22651ae5f1e72939ab2f72a4bc30fa80a066bd66edefc24d4" dependencies = [ "aho-corasick", "memchr", - "regex-automata 0.4.9", - "regex-syntax 0.8.5", + "regex-automata", + "regex-syntax", ] [[package]] name = "regex-automata" -version = "0.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132" -dependencies = [ - "regex-syntax 0.6.29", -] - -[[package]] -name = "regex-automata" -version = "0.4.9" +version = "0.4.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908" +checksum = "5276caf25ac86c8d810222b3dbb938e512c55c6831a10f3e6ed1c93b84041f1c" dependencies = [ "aho-corasick", "memchr", - "regex-syntax 0.8.5", + "regex-syntax", ] [[package]] name = "regex-syntax" -version = "0.6.29" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1" - -[[package]] -name = "regex-syntax" -version = "0.8.5" +version = "0.8.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c" +checksum = "7a2d987857b319362043e95f5353c0535c1f58eec5336fdfcf626430af7def58" [[package]] name = "reqwest" -version = "0.12.16" +version = "0.12.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2bf597b113be201cb2269b4c39b39a804d01b99ee95a4278f0ed04e45cff1c71" +checksum = "9d0946410b9f7b082a427e4ef5c8ff541a88b357bc6c637c40db3a68ac70a36f" dependencies = [ "async-compression", "base64 0.22.1", @@ -3393,16 +3905,14 @@ dependencies = [ "hyper-rustls", "hyper-tls", "hyper-util", - "ipnet", "js-sys", "log", "mime", "native-tls", - "once_cell", "percent-encoding", "pin-project-lite", "quinn", - "rustls 0.23.27", + "rustls", "rustls-pki-types", "serde", "serde_json", @@ -3418,15 +3928,16 @@ dependencies = [ "url", "wasm-bindgen", "wasm-bindgen-futures", + "wasm-streams", "web-sys", "webpki-roots", ] [[package]] name = "resolv-conf" -version = "0.7.4" +version = "0.7.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95325155c684b1c89f7765e30bc1c42e4a6da51ca513615660cb8a62ef9a88e3" +checksum = "6b3789b30bd25ba102de4beabd95d21ac45b69b1be7d14522bab988c526d6799" [[package]] name = "rfc6979" @@ -3438,21 +3949,6 @@ dependencies = [ "subtle", ] -[[package]] -name = "ring" -version = "0.16.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3053cf52e236a3ed746dfc745aa9cacf1b791d846bdaf412f60a8d7d6e17c8fc" -dependencies = [ - "cc", - "libc", - "once_cell", - "spin 0.5.2", - "untrusted 0.7.1", - "web-sys", - "winapi", -] - [[package]] name = "ring" version = "0.17.14" @@ -3463,7 +3959,7 @@ dependencies = [ "cfg-if", "getrandom 0.2.16", "libc", - "untrusted 0.9.0", + "untrusted", "windows-sys 0.52.0", ] @@ -3513,9 +4009,9 @@ dependencies = [ [[package]] name = "rustc-demangle" -version = "0.1.24" +version = "0.1.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f" +checksum = "56f7d92ca342cea22a06f2121d944b4fd82af56988c270852495420f961d4ace" [[package]] name = "rustc-hash" @@ -3534,37 +4030,25 @@ dependencies = [ [[package]] name = "rustix" -version = "1.0.7" +version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c71e83d6afe7ff64890ec6b71d6a69bb8a610ab78ce364b3352876bb4c801266" +checksum = "cd15f8a2c5551a84d56efdc1cd049089e409ac19a3072d5037a17fd70719ff3e" dependencies = [ - "bitflags 2.9.1", + "bitflags 2.10.0", "errno", "libc", "linux-raw-sys", - "windows-sys 0.59.0", -] - -[[package]] -name = "rustls" -version = "0.20.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b80e3dec595989ea8510028f30c408a4630db12c9cbb8de34203b89d6577e99" -dependencies = [ - "log", - "ring 0.16.20", - "sct", - "webpki", + "windows-sys 0.61.2", ] [[package]] name = "rustls" -version = "0.23.27" +version = "0.23.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "730944ca083c1c233a75c09f199e973ca499344a2b7ba9e755c457e86fb4a321" +checksum = "6a9586e9ee2b4f8fab52a0048ca7334d7024eef48e2cb9407e3497bb7cab7fa7" dependencies = [ "once_cell", - "ring 0.17.14", + "ring", "rustls-pki-types", "rustls-webpki", "subtle", @@ -3572,19 +4056,22 @@ dependencies = [ ] [[package]] -name = "rustls-pemfile" -version = "0.2.1" +name = "rustls-native-certs" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5eebeaeb360c87bfb72e84abdb3447159c0eaececf1bef2aecd65a8be949d1c9" +checksum = "9980d917ebb0c0536119ba501e90834767bffc3d60641457fd84a1f3fd337923" dependencies = [ - "base64 0.13.1", + "openssl-probe", + "rustls-pki-types", + "schannel", + "security-framework 3.5.1", ] [[package]] name = "rustls-pki-types" -version = "1.12.0" +version = "1.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "229a4a4c221013e7e1f1a043678c5cc39fe5171437c88fb47151a21e6f5b5c79" +checksum = "94182ad936a0c91c324cd46c6511b9510ed16af436d7b5bab34beab0afd55f7a" dependencies = [ "web-time", "zeroize", @@ -3592,20 +4079,20 @@ dependencies = [ [[package]] name = "rustls-webpki" -version = "0.103.3" +version = "0.103.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e4a72fe2bcf7a6ac6fd7d0b9e5cb68aeb7d4c0a0271730218b3e92d43b4eb435" +checksum = "2ffdfa2f5286e2247234e03f680868ac2815974dc39e00ea15adc445d0aafe52" dependencies = [ - "ring 0.17.14", + "ring", "rustls-pki-types", - "untrusted 0.9.0", + "untrusted", ] [[package]] name = "rustversion" -version = "1.0.21" +version = "1.0.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a0d197bd2c9dc6e53b84da9556a69ba4cdfab8619eb41a8bd1cc2027a0f6b1d" +checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" [[package]] name = "ryu" @@ -3630,11 +4117,35 @@ dependencies = [ [[package]] name = "schannel" -version = "0.1.27" +version = "0.1.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f29ebaa345f945cec9fbbc532eb307f0fdad8161f281b6369539c8d84876b3d" +checksum = "891d81b926048e76efe18581bf793546b4c0eaf8448d72be8de2bbee5fd166e1" dependencies = [ - "windows-sys 0.59.0", + "windows-sys 0.61.2", +] + +[[package]] +name = "schemars" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cd191f9397d57d581cddd31014772520aa448f65ef991055d7f61582c65165f" +dependencies = [ + "dyn-clone", + "ref-cast", + "serde", + "serde_json", +] + +[[package]] +name = "schemars" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82d20c4491bc164fa2f6c5d44565947a52ad80b9505d8e36f8d54c27c739fcd0" +dependencies = [ + "dyn-clone", + "ref-cast", + "serde", + "serde_json", ] [[package]] @@ -3658,16 +4169,6 @@ version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" -[[package]] -name = "sct" -version = "0.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da046153aa2352493d6cb7da4b6e5c0c057d8a1d0a9aa8560baffdd945acd414" -dependencies = [ - "ring 0.17.14", - "untrusted 0.9.0", -] - [[package]] name = "sec1" version = "0.7.3" @@ -3699,8 +4200,21 @@ version = "2.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02" dependencies = [ - "bitflags 2.9.1", - "core-foundation", + "bitflags 2.10.0", + "core-foundation 0.9.4", + "core-foundation-sys", + "libc", + "security-framework-sys", +] + +[[package]] +name = "security-framework" +version = "3.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b3297343eaf830f66ede390ea39da1d462b6b0c1b000f420d0a83f898bbbe6ef" +dependencies = [ + "bitflags 2.10.0", + "core-foundation 0.10.1", "core-foundation-sys", "libc", "security-framework-sys", @@ -3708,9 +4222,9 @@ dependencies = [ [[package]] name = "security-framework-sys" -version = "2.14.0" +version = "2.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49db231d56a190491cb4aeda9527f1ad45345af50b0851622a7adb8c03b01c32" +checksum = "cc1f0cbffaac4852523ce30d8bd3c5cdc873501d96ff467ca09b6767bb8cd5c0" dependencies = [ "core-foundation-sys", "libc", @@ -3718,9 +4232,9 @@ dependencies = [ [[package]] name = "semver" -version = "1.0.26" +version = "1.0.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56e6fa9c48d24d85fb3de5ad847117517440f6beceb7798af16b4a87d616b8d0" +checksum = "d767eb0aabc880b29956c35734170f26ed551a859dbd361d140cdbeca61ab1e2" [[package]] name = "send_wrapper" @@ -3730,10 +4244,11 @@ checksum = "cd0b0ec5f1c1ca621c432a25813d8d60c88abe6d3e08a3eb9cf37d97a0fe3d73" [[package]] name = "serde" -version = "1.0.219" +version = "1.0.228" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6" +checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e" dependencies = [ + "serde_core", "serde_derive", ] @@ -3743,17 +4258,18 @@ version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f3a1a3341211875ef120e117ea7fd5228530ae7e7036a779fdc9117be6b3282c" dependencies = [ - "ordered-float 2.10.1", + "ordered-float", "serde", ] [[package]] name = "serde_bytes" -version = "0.11.17" +version = "0.11.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8437fd221bde2d4ca316d61b90e337e9e702b3820b87d63caa9ba6c02bd06d96" +checksum = "a5d440709e79d88e51ac01c4b72fc6cb7314017bb7da9eeff678aa94c10e3ea8" dependencies = [ "serde", + "serde_core", ] [[package]] @@ -3762,39 +4278,48 @@ version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2bef2ebfde456fb76bbcf9f59315333decc4fda0b2b44b420243c11e0f5ec1f5" dependencies = [ - "half", + "half 1.8.3", "serde", ] +[[package]] +name = "serde_core" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad" +dependencies = [ + "serde_derive", +] + [[package]] name = "serde_derive" -version = "1.0.219" +version = "1.0.228" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00" +checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.108", ] [[package]] name = "serde_html_form" -version = "0.2.7" +version = "0.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d2de91cf02bbc07cde38891769ccd5d4f073d22a40683aa4bc7a95781aaa2c4" +checksum = "b2f2d7ff8a2140333718bb329f5c40fc5f0865b84c426183ce14c97d2ab8154f" dependencies = [ "form_urlencoded", - "indexmap 2.9.0", + "indexmap 2.12.0", "itoa", "ryu", - "serde", + "serde_core", ] [[package]] name = "serde_ipld_dagcbor" -version = "0.6.3" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99600723cf53fb000a66175555098db7e75217c415bdd9a16a65d52a19dcc4fc" +checksum = "46182f4f08349a02b45c998ba3215d3f9de826246ba02bb9dddfe9a2a2100778" dependencies = [ "cbor4ii", "ipld-core", @@ -3804,25 +4329,27 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.140" +version = "1.0.145" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "20068b6e96dc6c9bd23e01df8827e6c7e1f2fddd43c21810382803c136b99373" +checksum = "402a6f66d8c709116cf22f558eab210f5a50187f702eb4d7e5ef38d9a7f1c79c" dependencies = [ - "indexmap 2.9.0", + "indexmap 2.12.0", "itoa", "memchr", "ryu", "serde", + "serde_core", ] [[package]] name = "serde_path_to_error" -version = "0.1.17" +version = "0.1.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59fab13f937fa393d08645bf3a84bdfe86e296747b506ada67bb15f10f218b2a" +checksum = "10a9ff822e371bb5403e391ecd83e182e0e77ba7f6fe0160b795797109d1b457" dependencies = [ "itoa", "serde", + "serde_core", ] [[package]] @@ -3833,18 +4360,27 @@ checksum = "175ee3e80ae9982737ca543e96133087cbd9a485eecc3bc4de9c1a37b47ea59c" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.108", ] [[package]] name = "serde_spanned" -version = "0.6.8" +version = "0.6.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87607cb1398ed59d48732e575a4c28a7a8ebf2454b964fe3f224f2afc07909e1" +checksum = "bf41e0cfaf7226dca15e8197172c295a782857fcb97fad1808a166870dee75a3" dependencies = [ "serde", ] +[[package]] +name = "serde_spanned" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e24345aa0fe688594e73770a5f6d1b216508b4f93484c0026d521acd30134392" +dependencies = [ + "serde_core", +] + [[package]] name = "serde_urlencoded" version = "0.7.1" @@ -3859,15 +4395,18 @@ dependencies = [ [[package]] name = "serde_with" -version = "2.3.3" +version = "3.15.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07ff71d2c147a7b57362cead5e22f772cd52f6ab31cfcd9edcd7f6aeb2a0afbe" +checksum = "aa66c845eee442168b2c8134fec70ac50dc20e760769c8ba0ad1319ca1959b04" dependencies = [ - "base64 0.13.1", + "base64 0.22.1", "chrono", "hex", "indexmap 1.9.3", - "serde", + "indexmap 2.12.0", + "schemars 0.9.0", + "schemars 1.0.4", + "serde_core", "serde_json", "serde_with_macros", "time", @@ -3875,14 +4414,14 @@ dependencies = [ [[package]] name = "serde_with_macros" -version = "2.3.3" +version = "3.15.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "881b6f881b17d13214e5d494c939ebab463d01264ce1811e9d4ac3a882e7695f" +checksum = "b91a903660542fced4e99881aa481bdbaec1634568ee02e0b8bd57c64cb38955" dependencies = [ - "darling", + "darling 0.21.3", "proc-macro2", "quote", - "syn", + "syn 2.0.108", ] [[package]] @@ -3895,6 +4434,17 @@ dependencies = [ "serde", ] +[[package]] +name = "sha1" +version = "0.10.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest", +] + [[package]] name = "sha1_smol" version = "1.0.1" @@ -3929,9 +4479,9 @@ checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" [[package]] name = "signal-hook-registry" -version = "1.4.5" +version = "1.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9203b8055f63a2a00e2f593bb0510367fe707d7ff1e5c872de2f537b339e5410" +checksum = "b2a4719bff48cee6b39d12c020eeb490953ad2443b7055bd0b21fca26bd8c28b" dependencies = [ "libc", ] @@ -3946,6 +4496,12 @@ dependencies = [ "rand_core 0.6.4", ] +[[package]] +name = "simd-adler32" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d66dc143e6b11c1eddc06d5c423cfc97062865baf299914ab64caa38182078fe" + [[package]] name = "siphasher" version = "1.0.1" @@ -3954,18 +4510,25 @@ checksum = "56199f7ddabf13fe5074ce809e7d3f42b42ae711800501b5b16ea82ad029c39d" [[package]] name = "slab" -version = "0.4.9" +version = "0.4.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67" -dependencies = [ - "autocfg", -] +checksum = "7a2ae44ef20feb57a68b23d846850f861394c2e02dc425a50098ae8c90267589" [[package]] name = "smallvec" -version = "1.15.0" +version = "1.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03" + +[[package]] +name = "smol_str" +version = "0.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8917285742e9f3e1683f0a9c4e6b57960b7314d0b08d30d1ecd426713ee2eee9" +checksum = "3498b0a27f93ef1402f20eefacfaa1691272ac4eca1cdc8c596cb0a245d6cbf5" +dependencies = [ + "borsh", + "serde_core", +] [[package]] name = "socket2" @@ -3978,10 +4541,14 @@ dependencies = [ ] [[package]] -name = "spin" -version = "0.5.2" +name = "socket2" +version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" +checksum = "17129e116933cf371d018bb80ae557e889637989d8638274fb25622827b03881" +dependencies = [ + "libc", + "windows-sys 0.60.2", +] [[package]] name = "spin" @@ -3989,6 +4556,12 @@ version = "0.9.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" +[[package]] +name = "spin" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d5fe4ccb98d9c292d56fec89a5e07da7fc4cf0dc11e156b41793132775d3e591" + [[package]] name = "spki" version = "0.7.3" @@ -4001,9 +4574,29 @@ dependencies = [ [[package]] name = "stable_deref_trait" -version = "1.2.0" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" + +[[package]] +name = "static-regular-grammar" +version = "2.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" +checksum = "4f4a6c40247579acfbb138c3cd7de3dab113ab4ac6227f1b7de7d626ee667957" +dependencies = [ + "abnf", + "btree-range-map", + "ciborium", + "hex_fmt", + "indoc", + "proc-macro-error", + "proc-macro2", + "quote", + "serde", + "sha2", + "syn 2.0.108", + "thiserror 1.0.69", +] [[package]] name = "static_assertions" @@ -4011,6 +4604,31 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" +[[package]] +name = "string_cache" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf776ba3fa74f83bf4b63c3dcbbf82173db2632ed8452cb2d891d33f459de70f" +dependencies = [ + "new_debug_unreachable", + "parking_lot", + "phf_shared 0.11.3", + "precomputed-hash", + "serde", +] + +[[package]] +name = "string_cache_codegen" +version = "0.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c711928715f1fe0fe509c53b43e993a9a557babc2d0a3567d0a3006f1ac931a0" +dependencies = [ + "phf_generator", + "phf_shared 0.11.3", + "proc-macro2", + "quote", +] + [[package]] name = "stringprep" version = "0.1.5" @@ -4057,9 +4675,20 @@ checksum = "b7401a30af6cb5818bb64852270bb722533397edcfc7344954a38f420819ece2" [[package]] name = "syn" -version = "2.0.101" +version = "1.0.109" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "2.0.108" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ce2b7fc941b3a24138a0a7cf8e858bfc6a992e7978a068a5c760deb0ed43caf" +checksum = "da58917d35242480a05c2897064da0a80589a2a0476c9a3f2fdc83b53502e917" dependencies = [ "proc-macro2", "quote", @@ -4083,28 +4712,27 @@ checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.108", ] [[package]] name = "syntect" -version = "5.2.0" +version = "5.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "874dcfa363995604333cf947ae9f751ca3af4522c60886774c4963943b4746b1" +checksum = "656b45c05d95a5704399aeef6bd0ddec7b2b3531b7c9e900abbf7c4d2190c925" dependencies = [ "bincode", - "bitflags 1.3.2", "fancy-regex", "flate2", "fnv", "once_cell", "onig", "plist", - "regex-syntax 0.8.5", + "regex-syntax", "serde", "serde_derive", "serde_json", - "thiserror 1.0.69", + "thiserror 2.0.17", "walkdir", "yaml-rust", ] @@ -4115,8 +4743,8 @@ version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3c879d448e9d986b661742763247d3693ed13609438cf3d006f51f5368a5ba6b" dependencies = [ - "bitflags 2.9.1", - "core-foundation", + "bitflags 2.10.0", + "core-foundation 0.9.4", "system-configuration-sys", ] @@ -4138,25 +4766,36 @@ checksum = "7b2093cf4c8eb1e67749a6762251bc9cd836b6fc171623bd0a9d324d37af2417" [[package]] name = "tempfile" -version = "3.20.0" +version = "3.23.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8a64e3985349f2441a1a9ef0b853f869006c3855f2cda6862a94d26ebb9d6a1" +checksum = "2d31c77bdf42a745371d260a26ca7163f1e0924b64afa0b688e61b5a9fa02f16" dependencies = [ "fastrand", - "getrandom 0.3.3", + "getrandom 0.3.4", "once_cell", "rustix", - "windows-sys 0.59.0", + "windows-sys 0.61.2", +] + +[[package]] +name = "tendril" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d24a120c5fc464a3458240ee02c299ebcb9d67b5249c8848b09d639dca8d7bb0" +dependencies = [ + "futf", + "mac", + "utf-8", ] [[package]] name = "terminal_size" -version = "0.4.2" +version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "45c6481c4829e4cc63825e62c49186a34538b7b2750b73b266581ffb612fb5ed" +checksum = "60b8cb979cb11c32ce1603f8137b22262a9d131aaa5c37b5678025f22b8becd0" dependencies = [ "rustix", - "windows-sys 0.59.0", + "windows-sys 0.60.2", ] [[package]] @@ -4166,7 +4805,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c13547615a44dc9c452a8a534638acdf07120d4b6847c8178705da06306a3057" dependencies = [ "unicode-linebreak", - "unicode-width 0.2.0", + "unicode-width 0.2.2", ] [[package]] @@ -4180,11 +4819,11 @@ dependencies = [ [[package]] name = "thiserror" -version = "2.0.12" +version = "2.0.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "567b8a2dae586314f7be2a752ec7474332959c6460e02bde30d702a66d488708" +checksum = "f63587ca0f12b72a0600bcba1d40081f830876000bb46dd2337a3051618f4fc8" dependencies = [ - "thiserror-impl 2.0.12", + "thiserror-impl 2.0.17", ] [[package]] @@ -4195,28 +4834,27 @@ checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.108", ] [[package]] name = "thiserror-impl" -version = "2.0.12" +version = "2.0.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f7cf42b4507d8ea322120659672cf1b9dbb93f8f2d4ecfd6e51350ff5b17a1d" +checksum = "3ff15c8ecd7de3849db632e14d18d2571fa09dfc5ed93479bc4485c7a517c913" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.108", ] [[package]] name = "thread_local" -version = "1.1.8" +version = "1.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b9ef9bad013ada3808854ceac7b46812a6465ba368859a37e2100283d2d719c" +checksum = "f60246a4944f24f6e018aa17cdeffb7818b76356965d03b07d6a9886e8962185" dependencies = [ "cfg-if", - "once_cell", ] [[package]] @@ -4230,9 +4868,9 @@ dependencies = [ [[package]] name = "time" -version = "0.3.41" +version = "0.3.44" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a7619e19bc266e0f9c5e6686659d394bc57973859340060a69221e57dbc0c40" +checksum = "91e7d9e3bb61134e77bde20dd4825b97c010155709965fedf0f49bb138e52a9d" dependencies = [ "deranged", "itoa", @@ -4247,15 +4885,15 @@ dependencies = [ [[package]] name = "time-core" -version = "0.1.4" +version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9e9a38711f559d9e3ce1cdb06dd7c5b8ea546bc90052da6d06bb76da74bb07c" +checksum = "40868e7c1d2f0b8d73e4a8c7f0ff63af4f6d19be117e90bd73eb1d62cf831c6b" [[package]] name = "time-macros" -version = "0.2.22" +version = "0.2.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3526739392ec93fd8b359c8e98514cb3e8e021beb4e5f597b00a0221f8ed8a49" +checksum = "30cfb0125f12d9c277f35663a0a33f8c30190f4e4574868a330595412d34ebf3" dependencies = [ "num-conv", "time-core", @@ -4271,16 +4909,13 @@ dependencies = [ "chunked_transfer", "httpdate", "log", - "rustls 0.20.9", - "rustls-pemfile", - "zeroize", ] [[package]] name = "tinystr" -version = "0.8.1" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d4f6d1145dcb577acf783d4e601bc1d76a13337bb54e6233add580b07344c8b" +checksum = "42d3e9c45c09de15d06dd8acf5f4e0e399e85927b7f00711024eb7ae10fa4869" dependencies = [ "displaydoc", "zerovec", @@ -4288,9 +4923,9 @@ dependencies = [ [[package]] name = "tinyvec" -version = "1.9.0" +version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09b3661f17e86524eccd4371ab0429194e0d7c008abb45f7a7495b1719463c71" +checksum = "bfa5fdc3bce6191a1dbc8c02d5c8bffcf557bafa17c124c5264a458f1b0613fa" dependencies = [ "tinyvec_macros", ] @@ -4303,31 +4938,30 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.45.1" +version = "1.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75ef51a33ef1da925cea3e4eb122833cb377c61439ca401b770f54902b806779" +checksum = "ff360e02eab121e0bc37a2d3b4d4dc622e6eda3a8e5253d5435ecf5bd4c68408" dependencies = [ - "backtrace", "bytes", "libc", "mio", "parking_lot", "pin-project-lite", "signal-hook-registry", - "socket2", + "socket2 0.6.1", "tokio-macros", - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] name = "tokio-macros" -version = "2.5.0" +version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e06d43f1345a3bcd39f6a56dbb7dcab2ba47e68e8ac134855e7e2bdbaf8cab8" +checksum = "af407857209536a95c8e56f8231ef2c2e2aff839b22e07a1ffcbc617e9db9fa5" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.108", ] [[package]] @@ -4342,9 +4976,9 @@ dependencies = [ [[package]] name = "tokio-postgres" -version = "0.7.13" +version = "0.7.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c95d533c83082bb6490e0189acaa0bbeef9084e60471b696ca6988cd0541fb0" +checksum = "2b40d66d9b2cfe04b628173409368e58247e8eddbbd3b0e6c6ba1d09f20f6c9e" dependencies = [ "async-trait", "byteorder", @@ -4355,12 +4989,12 @@ dependencies = [ "log", "parking_lot", "percent-encoding", - "phf", + "phf 0.13.1", "pin-project-lite", "postgres-protocol", "postgres-types", - "rand 0.9.1", - "socket2", + "rand 0.9.2", + "socket2 0.6.1", "tokio", "tokio-util", "whoami", @@ -4368,70 +5002,143 @@ dependencies = [ [[package]] name = "tokio-rustls" -version = "0.26.2" +version = "0.26.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1729aa945f29d91ba541258c8df89027d5792d85a8841fb65e8bf0f4ede4ef61" +dependencies = [ + "rustls", + "tokio", +] + +[[package]] +name = "tokio-tungstenite" +version = "0.24.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "edc5f74e248dc973e0dbb7b74c7e0d6fcc301c694ff50049504004ef4d0cdcd9" +dependencies = [ + "futures-util", + "log", + "rustls", + "rustls-native-certs", + "rustls-pki-types", + "tokio", + "tokio-rustls", + "tungstenite", +] + +[[package]] +name = "tokio-tungstenite-wasm" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e727b36a1a0e8b74c376ac2211e40c2c8af09fb4013c60d910495810f008e9b" +checksum = "e21a5c399399c3db9f08d8297ac12b500e86bca82e930253fdc62eaf9c0de6ae" dependencies = [ - "rustls 0.23.27", + "futures-channel", + "futures-util", + "http", + "httparse", + "js-sys", + "rustls", + "thiserror 1.0.69", "tokio", + "tokio-tungstenite", + "wasm-bindgen", + "web-sys", ] [[package]] name = "tokio-util" -version = "0.7.15" +version = "0.7.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "66a539a9ad6d5d281510d5bd368c973d636c02dbf8a67300bfb6b950696ad7df" +checksum = "14307c986784f72ef81c89db7d9e28d6ac26d16213b109ea501696195e6e3ce5" dependencies = [ "bytes", "futures-core", "futures-sink", "futures-util", - "hashbrown 0.15.3", "pin-project-lite", "tokio", ] [[package]] name = "toml" -version = "0.8.22" +version = "0.8.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05ae329d1f08c4d17a59bed7ff5b5a769d062e64a62d34a3261b219e62cd5aae" +checksum = "dc1beb996b9d83529a9e75c17a1686767d148d70663143c7854d8b4a09ced362" dependencies = [ - "indexmap 2.9.0", + "indexmap 2.12.0", "serde", - "serde_spanned", - "toml_datetime", + "serde_spanned 0.6.9", + "toml_datetime 0.6.11", "toml_edit", ] +[[package]] +name = "toml" +version = "0.9.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0dc8b1fb61449e27716ec0e1bdf0f6b8f3e8f6b05391e8497b8b6d7804ea6d8" +dependencies = [ + "indexmap 2.12.0", + "serde_core", + "serde_spanned 1.0.3", + "toml_datetime 0.7.3", + "toml_parser", + "toml_writer", + "winnow", +] + [[package]] name = "toml_datetime" -version = "0.6.9" +version = "0.6.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3da5db5a963e24bc68be8b17b6fa82814bb22ee8660f192bb182771d498f09a3" +checksum = "22cddaf88f4fbc13c51aebbf5f8eceb5c7c5a9da2ac40a13519eb5b0a0e8f11c" dependencies = [ "serde", ] +[[package]] +name = "toml_datetime" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2cdb639ebbc97961c51720f858597f7f24c4fc295327923af55b74c3c724533" +dependencies = [ + "serde_core", +] + [[package]] name = "toml_edit" -version = "0.22.26" +version = "0.22.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41fe8c660ae4257887cf66394862d21dbca4a6ddd26f04a3560410406a2f819a" +dependencies = [ + "indexmap 2.12.0", + "serde", + "serde_spanned 0.6.9", + "toml_datetime 0.6.11", + "toml_write", + "winnow", +] + +[[package]] +name = "toml_parser" +version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "310068873db2c5b3e7659d2cc35d21855dbafa50d1ce336397c666e3cb08137e" +checksum = "c0cbe268d35bdb4bb5a56a2de88d0ad0eb70af5384a99d648cd4b3d04039800e" dependencies = [ - "indexmap 2.9.0", - "serde", - "serde_spanned", - "toml_datetime", - "toml_write", "winnow", ] [[package]] name = "toml_write" -version = "0.1.1" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfb942dfe1d8e29a7ee7fcbde5bd2b9a25fb89aa70caea2eba3bee836ff41076" +checksum = "5d99f8c9a7727884afe522e9bd5edbfc91a3312b36a77b5fb8926e4c31a41801" + +[[package]] +name = "toml_writer" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df8b2b54733674ad286d16267dcfc7a71ed5c776e4ac7aa3c3e2561f7c637bf2" [[package]] name = "tower" @@ -4467,12 +5174,13 @@ dependencies = [ [[package]] name = "tower-http" -version = "0.6.4" +version = "0.6.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fdb0c213ca27a9f57ab69ddb290fd80d970922355b83ae380b395d3986b8a2e" +checksum = "adc82fd73de2a9722ac5da747f12383d2bfdb93591ee6c58486e0097890f05f2" dependencies = [ - "bitflags 2.9.1", + "bitflags 2.10.0", "bytes", + "futures-core", "futures-util", "http", "http-body", @@ -4532,20 +5240,20 @@ dependencies = [ [[package]] name = "tracing-attributes" -version = "0.1.28" +version = "0.1.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "395ae124c09f9e6918a2310af6038fba074bcf474ac352496d5910dd59a2226d" +checksum = "81383ab64e72a7a8b8e13130c49e3dab29def6d0c7d76a03087b3cf71c5c6903" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.108", ] [[package]] name = "tracing-core" -version = "0.1.33" +version = "0.1.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e672c95779cf947c5311f83787af4fa8fffd12fb27e4993211a84bdfd9610f9c" +checksum = "b9d12581f227e93f094d3af2ae690a574abb8a2b9b7a96e7cfe9647b2b617678" dependencies = [ "once_cell", "valuable", @@ -4574,14 +5282,14 @@ dependencies = [ [[package]] name = "tracing-subscriber" -version = "0.3.19" +version = "0.3.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8189decb5ac0fa7bc8b96b7cb9b2701d60d48805aca84a238004d665fcc4008" +checksum = "2054a14f5307d601f88daf0553e1cbf472acc4f2c51afab632431cdcd72124d5" dependencies = [ "matchers", "nu-ansi-term", "once_cell", - "regex", + "regex-automata", "serde", "serde_json", "sharded-slab", @@ -4601,7 +5309,7 @@ checksum = "70977707304198400eb4835a78f6a9f928bf41bba420deb8fdb175cd965d77a7" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.108", ] [[package]] @@ -4610,6 +5318,26 @@ version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" +[[package]] +name = "tungstenite" +version = "0.24.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "18e5b8366ee7a95b16d32197d0b2604b43a0be89dc5fac9f8e96ccafbaedda8a" +dependencies = [ + "byteorder", + "bytes", + "data-encoding", + "http", + "httparse", + "log", + "rand 0.8.5", + "rustls", + "rustls-pki-types", + "sha1", + "thiserror 1.0.69", + "utf-8", +] + [[package]] name = "twoway" version = "0.1.8" @@ -4621,9 +5349,9 @@ dependencies = [ [[package]] name = "typenum" -version = "1.18.0" +version = "1.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1dccffe3ce07af9386bfd29e80c0ab1a8205a2fc34e4bcd40364df902cfa8f3f" +checksum = "562d481066bde0658276a35467c4af00bdc6ee726305698a55b86e61d7ad82bb" [[package]] name = "unicase" @@ -4639,9 +5367,9 @@ checksum = "5c1cb5db39152898a79168971543b1cb5020dff7fe43c8dc468b0885f5e29df5" [[package]] name = "unicode-ident" -version = "1.0.18" +version = "1.0.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512" +checksum = "462eeb75aeb73aea900253ce739c8e18a67423fadf006037cd3ff27e82748a06" [[package]] name = "unicode-linebreak" @@ -4664,6 +5392,12 @@ version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e70f2a8b45122e719eb623c01822704c4e0907e7e426a05927e1a1cfff5b75d0" +[[package]] +name = "unicode-segmentation" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493" + [[package]] name = "unicode-width" version = "0.1.14" @@ -4672,9 +5406,9 @@ checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af" [[package]] name = "unicode-width" -version = "0.2.0" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fc81956842c57dac11422a97c3b8195a1ff727f06e85c84ed2e8aa277c9a0fd" +checksum = "b4ac048d71ede7ee76d585517add45da530660ef4390e49b098733c6e897f254" [[package]] name = "unicode-xid" @@ -4688,12 +5422,6 @@ version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eb066959b24b5196ae73cb057f45598450d2c5f71460e98c49b738086eff9c06" -[[package]] -name = "untrusted" -version = "0.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a" - [[package]] name = "untrusted" version = "0.9.0" @@ -4702,15 +5430,28 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" [[package]] name = "url" -version = "2.5.4" +version = "2.5.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32f8b686cadd1473f4bd0117a5d28d36b1ade384ea9b5069a1c40aefed7fda60" +checksum = "08bc136a29a3d1758e07a9cca267be308aeebf5cfd5a10f3f67ab2097683ef5b" dependencies = [ "form_urlencoded", "idna", "percent-encoding", + "serde", ] +[[package]] +name = "urlencoding" +version = "2.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "daf8dba3b7eb870caf1ddeed7bc9d2a049f3cfdfae7cb521b087cc33ae4c49da" + +[[package]] +name = "utf-8" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9" + [[package]] name = "utf8_iter" version = "1.0.4" @@ -4725,11 +5466,11 @@ checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" [[package]] name = "uuid" -version = "1.17.0" +version = "1.18.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3cf4199d1e5d15ddd86a694e4d0dffa9c323ce759fea589f00fef9d81cc1931d" +checksum = "2f87b8aa10b915a06587d0dec516c282ff295b475d94abf425d62b57710070a2" dependencies = [ - "getrandom 0.3.3", + "getrandom 0.3.4", "js-sys", "serde", "wasm-bindgen", @@ -4774,17 +5515,17 @@ dependencies = [ [[package]] name = "wasi" -version = "0.11.0+wasi-snapshot-preview1" +version = "0.11.1+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" +checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" [[package]] -name = "wasi" -version = "0.14.2+wasi-0.2.4" +name = "wasip2" +version = "1.0.1+wasi-0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9683f9a5a998d873c0d21fcbe3c083009670149a8fab228644b8bd36b2c48cb3" +checksum = "0562428422c63773dad2c345a1882263bbf4d65cf3f42e90921f787ef5ad58e7" dependencies = [ - "wit-bindgen-rt", + "wit-bindgen", ] [[package]] @@ -4795,35 +5536,22 @@ checksum = "b8dad83b4f25e74f184f64c43b150b91efe7647395b42289f38e50566d82855b" [[package]] name = "wasm-bindgen" -version = "0.2.100" +version = "0.2.105" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1edc8929d7499fc4e8f0be2262a241556cfc54a0bea223790e71446f2aab1ef5" +checksum = "da95793dfc411fbbd93f5be7715b0578ec61fe87cb1a42b12eb625caa5c5ea60" dependencies = [ "cfg-if", "once_cell", "rustversion", "wasm-bindgen-macro", -] - -[[package]] -name = "wasm-bindgen-backend" -version = "0.2.100" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f0a0651a5c2bc21487bde11ee802ccaf4c51935d0d3d42a6101f98161700bc6" -dependencies = [ - "bumpalo", - "log", - "proc-macro2", - "quote", - "syn", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-futures" -version = "0.4.50" +version = "0.4.55" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "555d470ec0bc3bb57890405e5d4322cc9ea83cebb085523ced7be4144dac1e61" +checksum = "551f88106c6d5e7ccc7cd9a16f312dd3b5d36ea8b4954304657d5dfba115d4a0" dependencies = [ "cfg-if", "js-sys", @@ -4834,9 +5562,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.100" +version = "0.2.105" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fe63fc6d09ed3792bd0897b314f53de8e16568c2b3f7982f468c0bf9bd0b407" +checksum = "04264334509e04a7bf8690f2384ef5265f05143a4bff3889ab7a3269adab59c2" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -4844,35 +5572,43 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.100" +version = "0.2.105" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de" +checksum = "420bc339d9f322e562942d52e115d57e950d12d88983a14c79b86859ee6c7ebc" dependencies = [ + "bumpalo", "proc-macro2", "quote", - "syn", - "wasm-bindgen-backend", + "syn 2.0.108", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" -version = "0.2.100" +version = "0.2.105" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a05d73b933a847d6cccdda8f838a22ff101ad9bf93e33684f39c1f5f0eece3d" +checksum = "76f218a38c84bcb33c25ec7059b07847d465ce0e0a76b995e134a45adcb6af76" dependencies = [ "unicode-ident", ] +[[package]] +name = "wasm-streams" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "15053d8d85c7eccdbefef60f06769760a563c7f0a9d6902a13d35c7800b0ad65" +dependencies = [ + "futures-util", + "js-sys", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + [[package]] name = "weaver-appview" version = "0.1.0" dependencies = [ - "atrium-api", - "atrium-common", - "atrium-identity", - "atrium-oauth", - "atrium-xrpc", "axum", "chrono", "clap", @@ -4882,24 +5618,27 @@ dependencies = [ "diesel_migrations", "dotenvy", "hyper", + "jacquard", + "jacquard-api", + "jacquard-axum", "jose", "jose-jwk", - "merde", "miette", "minijinja", "minijinja-contrib", "reqwest", "serde", "serde_json", - "thiserror 2.0.12", + "thiserror 2.0.17", "tokio", - "toml", + "toml 0.8.23", "tower", "tower-cookies", "tower-http", "tracing", "tracing-appender", "tracing-subscriber", + "url", "uuid", "weaver-common", "weaver-workspace-hack", @@ -4909,20 +5648,11 @@ dependencies = [ name = "weaver-cli" version = "0.1.0" dependencies = [ - "atrium-api", - "atrium-common", - "atrium-identity", - "atrium-lex", - "atrium-oauth", - "atrium-xrpc-client", "clap", "dirs", - "esquema-codegen", - "hickory-resolver", + "jacquard", + "jacquard-api", "miette", - "n0-future", - "rouille", - "serde_html_form", "tokio", "weaver-common", "weaver-workspace-hack", @@ -4932,19 +5662,14 @@ dependencies = [ name = "weaver-common" version = "0.1.0" dependencies = [ - "atrium-api", - "atrium-common", - "atrium-identity", - "atrium-oauth", - "atrium-xrpc", "dirs", - "esquema-codegen", "hickory-resolver", "http", + "jacquard", + "jacquard-api", "jose-jwk", "markdown-weaver", "markdown-weaver-escape", - "merde", "miette", "minijinja", "multibase", @@ -4958,12 +5683,13 @@ dependencies = [ "serde_html_form", "serde_ipld_dagcbor", "serde_json", - "thiserror 2.0.12", + "thiserror 2.0.17", "tokio", - "toml", + "toml 0.8.23", "tower-layer", "tower-service", "tracing", + "trait-variant", "weaver-workspace-hack", ] @@ -4972,8 +5698,7 @@ name = "weaver-renderer" version = "0.1.0" dependencies = [ "async-trait", - "atrium-api", - "bitflags 2.9.1", + "bitflags 2.10.0", "compact_string", "dashmap", "dynosaur", @@ -4987,15 +5712,16 @@ dependencies = [ "pin-project", "pin-utils", "regex", + "reqwest", "syntect", - "thiserror 2.0.12", + "thiserror 2.0.17", "tokio", "tokio-util", "unicode-normalization", "url", "weaver-common", "weaver-workspace-hack", - "yaml-rust2 0.10.2", + "yaml-rust2", ] [[package]] @@ -5004,6 +5730,8 @@ version = "0.1.0" dependencies = [ "axum", "clap", + "jacquard", + "jacquard-axum", "notify", "tokio", "weaver-common", @@ -5014,24 +5742,30 @@ dependencies = [ name = "weaver-workspace-hack" version = "0.1.0" dependencies = [ - "base16ct", + "aho-corasick", "byteorder", + "bytes", + "cc", "chrono", "data-encoding", - "der", "diesel", "diesel-async", "diesel_derives", - "ecdsa", - "either", "elliptic-curve", "fastrand", - "ff", "futures-channel", + "futures-core", + "futures-task", + "futures-util", "generic-array", - "group", - "hashbrown 0.15.3", + "hashbrown 0.15.5", "idna", + "jacquard", + "jacquard-api", + "jacquard-common", + "jacquard-identity", + "jacquard-lexicon", + "jacquard-oauth", "log", "memchr", "miette", @@ -5040,34 +5774,34 @@ dependencies = [ "num-traits", "p384", "percent-encoding", - "pkcs8", - "proc-macro2", - "quote", - "rand_core 0.6.4", + "rand 0.8.5", + "regex-automata", "reqwest", - "scopeguard", "sec1", - "serde", + "serde_core", "serde_json", "sha2", "smallvec", - "spki", + "spin 0.9.8", "subtle", - "syn", + "syn 2.0.108", + "syntect", "time", "tokio", "tokio-util", - "toml", + "toml 0.8.23", + "tower-http", "tracing", "tracing-core", + "uuid", "zeroize", ] [[package]] name = "web-sys" -version = "0.3.77" +version = "0.3.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33b6dd2ef9186f1f2072e409e99cd22a975331a6b3591b12c764e0e55c60d5d2" +checksum = "3a1f95c0d03a47f4ae1f7a64643a6bb97465d9b740f0fa8f90ea33915c99a9a1" dependencies = [ "js-sys", "wasm-bindgen", @@ -5084,82 +5818,79 @@ dependencies = [ ] [[package]] -name = "webpki" -version = "0.22.4" +name = "webbrowser" +version = "0.8.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db67ae75a9405634f5882791678772c94ff5f16a66535aae186e26aa0841fc8b" +dependencies = [ + "core-foundation 0.9.4", + "home", + "jni", + "log", + "ndk-context", + "objc", + "raw-window-handle", + "url", + "web-sys", +] + +[[package]] +name = "webpage" +version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed63aea5ce73d0ff405984102c42de94fc55a6b75765d621c65262469b3c9b53" +checksum = "70862efc041d46e6bbaa82bb9c34ae0596d090e86cbd14bd9e93b36ee6802eac" dependencies = [ - "ring 0.17.14", - "untrusted 0.9.0", + "html5ever", + "markup5ever_rcdom", + "serde_json", + "url", ] [[package]] name = "webpki-roots" -version = "1.0.0" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2853738d1cc4f2da3a225c18ec6c3721abb31961096e9dbf5ab35fa88b19cfdb" +checksum = "32b130c0d2d49f8b6889abc456e795e82525204f27c42cf767cf0d7734e089b8" dependencies = [ "rustls-pki-types", ] [[package]] name = "whoami" -version = "1.6.0" +version = "1.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6994d13118ab492c3c80c1f81928718159254c53c472bf9ce36f8dae4add02a7" +checksum = "5d4a4db5077702ca3015d3d02d74974948aba2ad9e12ab7df718ee64ccd7e97d" dependencies = [ - "redox_syscall", + "libredox", "wasite", "web-sys", ] [[package]] name = "widestring" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd7cf3379ca1aac9eea11fba24fd7e315d621f8dfe35c8d7d2be8b793726e07d" - -[[package]] -name = "winapi" -version = "0.3.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" -dependencies = [ - "winapi-i686-pc-windows-gnu", - "winapi-x86_64-pc-windows-gnu", -] - -[[package]] -name = "winapi-i686-pc-windows-gnu" -version = "0.4.0" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" +checksum = "72069c3113ab32ab29e5584db3c6ec55d416895e60715417b5b883a357c3e471" [[package]] name = "winapi-util" -version = "0.1.9" +version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb" +checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" dependencies = [ - "windows-sys 0.59.0", + "windows-sys 0.61.2", ] -[[package]] -name = "winapi-x86_64-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" - [[package]] name = "windows" -version = "0.61.1" +version = "0.61.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5ee8f3d025738cb02bad7868bbb5f8a6327501e870bf51f1b455b0a2454a419" +checksum = "9babd3a767a4c1aef6900409f85f5d53ce2544ccdfaa86dad48c91782c6d6893" dependencies = [ "windows-collections", - "windows-core", + "windows-core 0.61.2", "windows-future", - "windows-link", + "windows-link 0.1.3", "windows-numerics", ] @@ -5169,7 +5900,7 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3beeceb5e5cfd9eb1d76b381630e82c4241ccd0d27f1a39ed41b2760b255c5e8" dependencies = [ - "windows-core", + "windows-core 0.61.2", ] [[package]] @@ -5180,49 +5911,68 @@ checksum = "c0fdd3ddb90610c7638aa2b3a3ab2904fb9e5cdbecc643ddb3647212781c4ae3" dependencies = [ "windows-implement", "windows-interface", - "windows-link", - "windows-result", + "windows-link 0.1.3", + "windows-result 0.3.4", "windows-strings 0.4.2", ] +[[package]] +name = "windows-core" +version = "0.62.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" +dependencies = [ + "windows-implement", + "windows-interface", + "windows-link 0.2.1", + "windows-result 0.4.1", + "windows-strings 0.5.1", +] + [[package]] name = "windows-future" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fc6a41e98427b19fe4b73c550f060b59fa592d7d686537eebf9385621bfbad8e" dependencies = [ - "windows-core", - "windows-link", + "windows-core 0.61.2", + "windows-link 0.1.3", "windows-threading", ] [[package]] name = "windows-implement" -version = "0.60.0" +version = "0.60.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a47fddd13af08290e67f4acabf4b459f647552718f683a7b415d290ac744a836" +checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.108", ] [[package]] name = "windows-interface" -version = "0.59.1" +version = "0.59.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd9211b69f8dcdfa817bfd14bf1c97c9188afa36f4750130fcdf3f400eca9fa8" +checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.108", ] [[package]] name = "windows-link" -version = "0.1.1" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e6ad25900d524eaabdbbb96d20b4311e1e7ae1699af4fb28c17ae66c80d798a" + +[[package]] +name = "windows-link" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76840935b766e1b0a05c0066835fb9ec80071d4c09a16f6bd5f7e655e3c14c38" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" [[package]] name = "windows-numerics" @@ -5230,19 +5980,19 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9150af68066c4c5c07ddc0ce30421554771e528bde427614c61038bc2c92c2b1" dependencies = [ - "windows-core", - "windows-link", + "windows-core 0.61.2", + "windows-link 0.1.3", ] [[package]] name = "windows-registry" -version = "0.4.0" +version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4286ad90ddb45071efd1a66dfa43eb02dd0dfbae1545ad6cc3c51cf34d7e8ba3" +checksum = "5b8a9ed28765efc97bbc954883f4e6796c33a06546ebafacbabee9696967499e" dependencies = [ - "windows-result", - "windows-strings 0.3.1", - "windows-targets 0.53.0", + "windows-link 0.1.3", + "windows-result 0.3.4", + "windows-strings 0.4.2", ] [[package]] @@ -5251,16 +6001,16 @@ version = "0.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "56f42bd332cc6c8eac5af113fc0c1fd6a8fd2aa08a0119358686e5160d0586c6" dependencies = [ - "windows-link", + "windows-link 0.1.3", ] [[package]] -name = "windows-strings" -version = "0.3.1" +name = "windows-result" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87fa48cc5d406560701792be122a10132491cff9d0aeb23583cc2dcafc847319" +checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" dependencies = [ - "windows-link", + "windows-link 0.2.1", ] [[package]] @@ -5269,7 +6019,25 @@ version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "56e6c93f3a0c3b36176cb1327a4958a0353d5d166c2a35cb268ace15e91d3b57" dependencies = [ - "windows-link", + "windows-link 0.1.3", +] + +[[package]] +name = "windows-strings" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" +dependencies = [ + "windows-link 0.2.1", +] + +[[package]] +name = "windows-sys" +version = "0.45.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" +dependencies = [ + "windows-targets 0.42.2", ] [[package]] @@ -5292,11 +6060,35 @@ dependencies = [ [[package]] name = "windows-sys" -version = "0.59.0" +version = "0.60.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" +checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb" dependencies = [ - "windows-targets 0.52.6", + "windows-targets 0.53.5", +] + +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link 0.2.1", +] + +[[package]] +name = "windows-targets" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071" +dependencies = [ + "windows_aarch64_gnullvm 0.42.2", + "windows_aarch64_msvc 0.42.2", + "windows_i686_gnu 0.42.2", + "windows_i686_msvc 0.42.2", + "windows_x86_64_gnu 0.42.2", + "windows_x86_64_gnullvm 0.42.2", + "windows_x86_64_msvc 0.42.2", ] [[package]] @@ -5332,18 +6124,19 @@ dependencies = [ [[package]] name = "windows-targets" -version = "0.53.0" +version = "0.53.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1e4c7e8ceaaf9cb7d7507c974735728ab453b67ef8f18febdd7c11fe59dca8b" +checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3" dependencies = [ - "windows_aarch64_gnullvm 0.53.0", - "windows_aarch64_msvc 0.53.0", - "windows_i686_gnu 0.53.0", - "windows_i686_gnullvm 0.53.0", - "windows_i686_msvc 0.53.0", - "windows_x86_64_gnu 0.53.0", - "windows_x86_64_gnullvm 0.53.0", - "windows_x86_64_msvc 0.53.0", + "windows-link 0.2.1", + "windows_aarch64_gnullvm 0.53.1", + "windows_aarch64_msvc 0.53.1", + "windows_i686_gnu 0.53.1", + "windows_i686_gnullvm 0.53.1", + "windows_i686_msvc 0.53.1", + "windows_x86_64_gnu 0.53.1", + "windows_x86_64_gnullvm 0.53.1", + "windows_x86_64_msvc 0.53.1", ] [[package]] @@ -5352,9 +6145,15 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b66463ad2e0ea3bbf808b7f1d371311c80e115c0b71d60efc142cafbcfb057a6" dependencies = [ - "windows-link", + "windows-link 0.1.3", ] +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8" + [[package]] name = "windows_aarch64_gnullvm" version = "0.48.5" @@ -5369,9 +6168,15 @@ checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" [[package]] name = "windows_aarch64_gnullvm" -version = "0.53.0" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86b8d5f90ddd19cb4a147a5fa63ca848db3df085e25fee3cc10b39b6eebae764" +checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43" [[package]] name = "windows_aarch64_msvc" @@ -5387,9 +6192,15 @@ checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" [[package]] name = "windows_aarch64_msvc" -version = "0.53.0" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006" + +[[package]] +name = "windows_i686_gnu" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7651a1f62a11b8cbd5e0d42526e55f2c99886c77e007179efff86c2b137e66c" +checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f" [[package]] name = "windows_i686_gnu" @@ -5405,9 +6216,9 @@ checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" [[package]] name = "windows_i686_gnu" -version = "0.53.0" +version = "0.53.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1dc67659d35f387f5f6c479dc4e28f1d4bb90ddd1a5d3da2e5d97b42d6272c3" +checksum = "960e6da069d81e09becb0ca57a65220ddff016ff2d6af6a223cf372a506593a3" [[package]] name = "windows_i686_gnullvm" @@ -5417,9 +6228,15 @@ checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" [[package]] name = "windows_i686_gnullvm" -version = "0.53.0" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c" + +[[package]] +name = "windows_i686_msvc" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ce6ccbdedbf6d6354471319e781c0dfef054c81fbc7cf83f338a4296c0cae11" +checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060" [[package]] name = "windows_i686_msvc" @@ -5435,9 +6252,15 @@ checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" [[package]] name = "windows_i686_msvc" -version = "0.53.0" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "581fee95406bb13382d2f65cd4a908ca7b1e4c2f1917f143ba16efe98a589b5d" +checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36" [[package]] name = "windows_x86_64_gnu" @@ -5453,9 +6276,15 @@ checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" [[package]] name = "windows_x86_64_gnu" -version = "0.53.0" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e55b5ac9ea33f2fc1716d1742db15574fd6fc8dadc51caab1c16a3d3b4190ba" +checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3" [[package]] name = "windows_x86_64_gnullvm" @@ -5471,9 +6300,15 @@ checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" [[package]] name = "windows_x86_64_gnullvm" -version = "0.53.0" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a6e035dd0599267ce1ee132e51c27dd29437f63325753051e71dd9e42406c57" +checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0" [[package]] name = "windows_x86_64_msvc" @@ -5489,15 +6324,15 @@ checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" [[package]] name = "windows_x86_64_msvc" -version = "0.53.0" +version = "0.53.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "271414315aff87387382ec3d271b52d7ae78726f5d44ac98b4f4030c91880486" +checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650" [[package]] name = "winnow" -version = "0.7.10" +version = "0.7.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c06928c8748d81b05c9be96aad92e1b6ff01833332f281e8cfca3be4b35fc9ec" +checksum = "21a0236b59786fed61e2a80582dd500fe61f18b5dca67a4a067d0bc9039339cf" dependencies = [ "memchr", ] @@ -5513,19 +6348,27 @@ dependencies = [ ] [[package]] -name = "wit-bindgen-rt" -version = "0.39.0" +name = "wit-bindgen" +version = "0.46.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f42320e61fe2cfd34354ecb597f86f413484a798ba44a8ca1165c58d42da6c1" -dependencies = [ - "bitflags 2.9.1", -] +checksum = "f17a85883d4e6d00e8a97c586de764dabcc06133f7f1d55dce5cdc070ad7fe59" [[package]] name = "writeable" -version = "0.6.1" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9edde0db4769d2dc68579893f2306b26c6ecfbe0ef499b013d731b7b9247e0b9" + +[[package]] +name = "xml5ever" +version = "0.18.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea2f10b9bb0928dfb1b42b65e1f9e36f7f54dbdf08457afefb38afcdec4fa2bb" +checksum = "9bbb26405d8e919bc1547a5aa9abc95cbfa438f04844f5fdd9dc7596b748bf69" +dependencies = [ + "log", + "mac", + "markup5ever", +] [[package]] name = "yaml-rust" @@ -5538,32 +6381,27 @@ dependencies = [ [[package]] name = "yaml-rust2" -version = "0.8.1" +version = "0.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8902160c4e6f2fb145dbe9d6760a75e3c9522d8bf796ed7047c85919ac7115f8" +checksum = "2462ea039c445496d8793d052e13787f2b90e750b833afee748e601c17621ed9" dependencies = [ "arraydeque", - "hashlink 0.8.4", + "encoding_rs", + "hashlink", ] [[package]] -name = "yaml-rust2" -version = "0.10.2" +name = "yansi" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "18b783b2c2789414f8bb84ca3318fc9c2d7e7be1c22907d37839a58dedb369d3" -dependencies = [ - "arraydeque", - "encoding_rs", - "hashlink 0.10.0", -] +checksum = "cfe53a6657fd280eaa890a3bc59152892ffa3e30101319d168b781ed6529b049" [[package]] name = "yoke" -version = "0.8.0" +version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f41bb01b8226ef4bfd589436a297c53d118f65921786300e427be8d487695cc" +checksum = "72d6e5c6afb84d73944e5cedb052c4680d5657337201555f9f2a16b7406d4954" dependencies = [ - "serde", "stable_deref_trait", "yoke-derive", "zerofrom", @@ -5571,34 +6409,34 @@ dependencies = [ [[package]] name = "yoke-derive" -version = "0.8.0" +version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38da3c9736e16c5d3c8c597a9aaa5d1fa565d0532ae05e27c24aa62fb32c0ab6" +checksum = "b659052874eb698efe5b9e8cf382204678a0086ebf46982b79d6ca3182927e5d" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.108", "synstructure", ] [[package]] name = "zerocopy" -version = "0.8.25" +version = "0.8.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1702d9583232ddb9174e01bb7c15a2ab8fb1bc6f227aa1233858c351a3ba0cb" +checksum = "0894878a5fa3edfd6da3f88c4805f4c8558e2b996227a3d864f47fe11e38282c" dependencies = [ "zerocopy-derive", ] [[package]] name = "zerocopy-derive" -version = "0.8.25" +version = "0.8.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28a6e20d751156648aa063f3800b706ee209a32c0b4d9f24be3d980b01be55ef" +checksum = "88d2b8d9c68ad2b9e4340d7832716a4d21a22a1154777ad56ea55c51a9cf3831" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.108", ] [[package]] @@ -5618,15 +6456,15 @@ checksum = "d71e5d6e06ab090c67b5e44993ec16b72dcbaabc526db883a360057678b48502" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.108", "synstructure", ] [[package]] name = "zeroize" -version = "1.8.1" +version = "1.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde" +checksum = "b97154e67e32c85465826e8bcc1c59429aaaf107c1e4a9e53c8d8ccd5eff88d0" dependencies = [ "serde", "zeroize_derive", @@ -5640,14 +6478,14 @@ checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.108", ] [[package]] name = "zerotrie" -version = "0.2.2" +version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "36f0bbd478583f79edad978b407914f61b2972f5af6fa089686016be8f9af595" +checksum = "2a59c17a5562d507e4b54960e8569ebee33bee890c70aa3fe7b97e85a9fd7851" dependencies = [ "displaydoc", "yoke", @@ -5656,9 +6494,9 @@ dependencies = [ [[package]] name = "zerovec" -version = "0.11.2" +version = "0.11.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a05eb080e015ba39cc9e23bbe5e7fb04d5fb040350f99f34e338d5fdd294428" +checksum = "6c28719294829477f525be0186d13efa9a3c602f7ec202ca9e353d310fb9a002" dependencies = [ "yoke", "zerofrom", @@ -5667,11 +6505,39 @@ dependencies = [ [[package]] name = "zerovec-derive" -version = "0.11.1" +version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b96237efa0c878c64bd89c436f661be4e46b2f3eff1ebb976f7ef2321d2f58f" +checksum = "eadce39539ca5cb3985590102671f2567e659fca9666581ad3411d59207951f3" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.108", +] + +[[package]] +name = "zstd" +version = "0.13.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e91ee311a569c327171651566e07972200e76fcfe2242a4fa446149a3881c08a" +dependencies = [ + "zstd-safe", +] + +[[package]] +name = "zstd-safe" +version = "7.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f49c4d5f0abb602a93fb8736af2a4f4dd9512e36f7f570d66e65ff867ed3b9d" +dependencies = [ + "zstd-sys", +] + +[[package]] +name = "zstd-sys" +version = "2.0.16+zstd.1.5.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91e19ebc2adc8f83e43039e79776e3fda8ca919132d68a1fed6a5faca2683748" +dependencies = [ + "cc", + "pkg-config", ] diff --git a/Cargo.toml b/Cargo.toml index 1f6bd41..3dc9afa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,7 +23,6 @@ name = "weaver-workspace" [workspace.dependencies] serde = { version = "1.0", features = ["derive"] } -merde = { version = "10.0.6" } minijinja = { version = "2.9.0", default-features = false } minijinja-contrib = { version = "2.9.0", default-features = false } @@ -40,5 +39,6 @@ lexicon_cid = { package = "cid", version = "0.10.1", features = [ markdown-weaver = { git = "https://github.com/rsform/markdown-weaver" } markdown-weaver-escape = { git = "https://github.com/rsform/markdown-weaver" } -esquema-codegen = { git = "https://github.com/fatfingers23/esquema.git", branch = "main" } -atrium-lex = { git = "https://github.com/sugyan/atrium.git", rev = "f162f815a04b5ecb0421b390d521c883c41d5f75" } +jacquard = { git = "https://tangled.org/@nonbinary.computer/jacquard", default-features = false, features = ["derive", "api_bluesky", "dns"] } +jacquard-api = { git = "https://tangled.org/@nonbinary.computer/jacquard" } +jacquard-axum = { git = "https://tangled.org/@nonbinary.computer/jacquard" } diff --git a/crates/weaver-appview/Cargo.toml b/crates/weaver-appview/Cargo.toml index c7e1853..26cf110 100644 --- a/crates/weaver-appview/Cargo.toml +++ b/crates/weaver-appview/Cargo.toml @@ -23,7 +23,10 @@ chrono = "0.4.41" serde = { version = "1.0.210", features = ["derive"] } serde_json = "1.0.128" uuid = { version = "1.8.0", features = ["v7", "serde"] } -merde.workspace = true + +jacquard = { workspace = true, features = ["websocket", "zstd"] } +jacquard-api = { workspace = true, features = ["sh_weaver"] } +jacquard-axum = { workspace = true } axum = "0.8" hyper = "1.4.1" @@ -44,11 +47,6 @@ reqwest = { version = "0.12.7", default-features = false, features = [ ] } tokio = { version = "1.44", features = ["full"] } -atrium-oauth = "0.1.1" -atrium-xrpc = "0.12.3" -atrium-api = "0.25.3" -atrium-common = "0.1.1" -atrium-identity = "0.1.3" miette = { workspace = true, features = ["fancy", "syntect-highlighter"] } thiserror = { workspace = true } @@ -60,6 +58,7 @@ diesel_migrations = "2.2.0" toml = { version = "0.8.22", features = ["preserve_order"] } jose = { version = "0.0.2", features = ["crypto-rustcrypto"] } jose-jwk = "0.1.2" +url = "2" minijinja = { version = "2.9.0" } minijinja-contrib = { version = "2.9.0" } diff --git a/crates/weaver-appview/migrations/2025-05-15-230036_create_appviewdb/down.sql b/crates/weaver-appview/migrations/2025-05-15-230036_create_appviewdb/down.sql index 06d9438..e002360 100644 --- a/crates/weaver-appview/migrations/2025-05-15-230036_create_appviewdb/down.sql +++ b/crates/weaver-appview/migrations/2025-05-15-230036_create_appviewdb/down.sql @@ -1,4 +1,16 @@ -- This file should undo anything in `up.sql` +drop index if exists idx_oauth_auth_requests_did; + +drop index if exists idx_oauth_auth_requests_expires; + +drop index if exists idx_oauth_sessions_did; + +drop index if exists idx_oauth_sessions_did_session; + +drop table if exists oauth_auth_requests; + +drop table if exists oauth_sessions; + drop table if exists profile_pronouns; drop table if exists profile_links; @@ -14,7 +26,3 @@ drop table if exists follows; drop table if exists public_keys; drop table if exists registrations; - -drop table if exists oauth_sessions; - -drop table if exists oauth_requests; diff --git a/crates/weaver-appview/migrations/2025-05-15-230036_create_appviewdb/up.sql b/crates/weaver-appview/migrations/2025-05-15-230036_create_appviewdb/up.sql index 4a04d21..a3fee76 100644 --- a/crates/weaver-appview/migrations/2025-05-15-230036_create_appviewdb/up.sql +++ b/crates/weaver-appview/migrations/2025-05-15-230036_create_appviewdb/up.sql @@ -91,19 +91,40 @@ create table if not exists profile_pronouns ( foreign key (did) references profile (did) on delete cascade ); -create table if not exists oauth_requests ( +-- OAuth sessions table for jacquard ClientSessionData +create table if not exists oauth_sessions ( id serial primary key, - auth_server_iss text not null, - state text, + -- Extracted from ClientSessionData for indexing did text not null, - pkce_verifier text not null, - dpop_key jsonb not null + session_id text not null, + -- Full ClientSessionData as jsonb + session_data jsonb not null, + created_at timestamp with time zone not null default (now() at time zone 'utc'), + updated_at timestamp with time zone not null default (now() at time zone 'utc'), + unique (did, session_id) ); -create table if not exists oauth_sessions ( +-- OAuth authorization requests table for jacquard AuthRequestData +create table if not exists oauth_auth_requests ( id serial primary key, - did text not null, - pds_url text not null, - session jsonb not null, - expiry text + -- Extracted from AuthRequestData for indexing + state text not null unique, + -- Optional DID if known at auth request time + account_did text, + -- Full AuthRequestData as jsonb + auth_req_data jsonb not null, + created_at timestamp with time zone not null default (now() at time zone 'utc'), + expires_at timestamp with time zone not null default ((now() at time zone 'utc') + interval '10 minutes') ); + +-- Index for quick session lookups +create index if not exists idx_oauth_sessions_did_session on oauth_sessions(did, session_id); + +-- Index for DID lookups +create index if not exists idx_oauth_sessions_did on oauth_sessions(did); + +-- Index for auth request cleanup +create index if not exists idx_oauth_auth_requests_expires on oauth_auth_requests(expires_at); + +-- Index for DID lookups in auth requests +create index if not exists idx_oauth_auth_requests_did on oauth_auth_requests(account_did) where account_did is not null; diff --git a/crates/weaver-appview/src/api_error.rs b/crates/weaver-appview/src/api_error.rs index c57246e..0b71e8f 100644 --- a/crates/weaver-appview/src/api_error.rs +++ b/crates/weaver-appview/src/api_error.rs @@ -30,7 +30,7 @@ pub enum ApiError { #[error("A Weaver error has occurred.")] #[diagnostic(transparent)] - WeaverError(#[from] weaver_common::error::Error), + WeaverError(#[from] weaver_common::error::WeaverError), /// Converts from any `anyhow::Error`. #[error("An internal server error has occurred.")] #[diagnostic(transparent)] diff --git a/crates/weaver-appview/src/models.rs b/crates/weaver-appview/src/models.rs index 824337f..fd464a4 100644 --- a/crates/weaver-appview/src/models.rs +++ b/crates/weaver-appview/src/models.rs @@ -82,23 +82,42 @@ pub struct ProfilePronoun { pub pronoun: String, } +// Jacquard OAuth models + #[derive(Queryable, Selectable)] -#[diesel(table_name = crate::schema::oauth_requests)] -pub struct OauthRequest { +#[diesel(table_name = crate::schema::oauth_sessions)] +pub struct OauthSession { pub id: i32, - pub auth_server_iss: String, - pub state: Option, pub did: String, - pub pkce_verifier: String, - pub dpop_key: serde_json::Value, + pub session_id: String, + pub session_data: serde_json::Value, + pub created_at: DateTime, + pub updated_at: DateTime, } -#[derive(Queryable, Selectable, Insertable)] +#[derive(Insertable)] #[diesel(table_name = crate::schema::oauth_sessions)] -pub struct OauthSession { - pub id: i32, +pub struct NewOauthSession { pub did: String, - pub pds_url: String, - pub session: serde_json::Value, - pub expiry: Option, + pub session_id: String, + pub session_data: serde_json::Value, +} + +#[derive(Queryable, Selectable)] +#[diesel(table_name = crate::schema::oauth_auth_requests)] +pub struct OauthAuthRequest { + pub id: i32, + pub state: String, + pub account_did: Option, + pub auth_req_data: serde_json::Value, + pub created_at: DateTime, + pub expires_at: DateTime, +} + +#[derive(Insertable)] +#[diesel(table_name = crate::schema::oauth_auth_requests)] +pub struct NewOauthAuthRequest { + pub state: String, + pub account_did: Option, + pub auth_req_data: serde_json::Value, } diff --git a/crates/weaver-appview/src/oauth.rs b/crates/weaver-appview/src/oauth.rs index f5e91f4..ce7a4a3 100644 --- a/crates/weaver-appview/src/oauth.rs +++ b/crates/weaver-appview/src/oauth.rs @@ -1,176 +1,200 @@ -use atrium_api::types::string::Did; -use atrium_identity::did::CommonDidResolver; -use atrium_identity::handle::AtprotoHandleResolver; -use atrium_oauth::DefaultHttpClient; -use atrium_oauth::store::session::Session; -use atrium_oauth::store::state::InternalStateData; use diesel::prelude::*; use diesel_async::RunQueryDsl; -use jose_jwk::Key; +use jacquard::oauth::authstore::ClientAuthStore; +use jacquard::oauth::session::{AuthRequestData, ClientSessionData}; +use jacquard::session::SessionStoreError; +use jacquard::types::string::Did; use miette::IntoDiagnostic; -use miette::Result; -use miette::miette; -use weaver_common::agent::WeaverHttpClient; -use weaver_common::oauth::WeaverOAuthClient; -use weaver_common::resolver::HickoryDnsTxtResolver; - -use crate::api_error::ApiError; -use crate::models::OauthRequest; -use crate::models::OauthSession; - -/// Basic implementation of the atrium-common Store trait for a database using diesel-async and deadpool to store OAuth sessions. -pub struct DBSessionStore { + +use crate::models::{NewOauthAuthRequest, NewOauthSession, OauthAuthRequest, OauthSession}; + +/// Database-backed implementation of ClientAuthStore for jacquard OAuth +pub struct DBAuthStore { pub db: crate::db::Db, } -impl DBSessionStore { +impl DBAuthStore { pub fn new(db: &crate::db::Db) -> Self { Self { db: db.clone() } } +} - pub async fn get(&self, user_did: &Did) -> Result> { +impl ClientAuthStore for DBAuthStore { + async fn get_session( + &self, + did_param: &Did<'_>, + session_id_param: &str, + ) -> Result>, SessionStoreError> { use crate::schema::oauth_sessions::dsl::*; - let mut conn = self.db.pool.get().await.into_diagnostic()?; - let results: Vec = oauth_sessions - .filter(did.eq(user_did.as_str())) + let mut conn = self + .db + .pool + .get() + .await + .map_err(|e| SessionStoreError::Other(Box::new(e)))?; + + let result: Vec = oauth_sessions + .filter(did.eq(did_param.as_str())) + .filter(session_id.eq(session_id_param)) .limit(1) .select(OauthSession::as_select()) .load(&mut conn) .await - .into_diagnostic()?; + .map_err(|e| SessionStoreError::Other(Box::new(e)))?; - if let Some(sess) = results.get(0) { - let sess: Option = serde_json::from_value(sess.session.clone()).ok(); - Ok(sess) + if let Some(sess) = result.get(0) { + let data = jacquard::from_json_value::(sess.session_data.clone()) + .map_err(|e| SessionStoreError::Other(Box::new(e)))?; + Ok(Some(data)) } else { Ok(None) } } - async fn set(&self, key: Did, value: Session) -> Result<()> { + async fn upsert_session( + &self, + session: ClientSessionData<'_>, + ) -> Result<(), SessionStoreError> { use crate::schema::oauth_sessions::dsl::*; - let mut conn = self.db.pool.get().await.into_diagnostic()?; - // do an upsert or similar here? - let sess = OauthSession { - id: 0, - did: key.as_str().to_string(), - pds_url: value.token_set.aud.clone(), - session: serde_json::to_value(&value).unwrap(), - expiry: value.token_set.expires_at.map(|t| t.as_str().to_string()), + + let mut conn = self + .db + .pool + .get() + .await + .map_err(|e| SessionStoreError::Other(Box::new(e)))?; + + let session_json = + serde_json::to_value(&session).map_err(|e| SessionStoreError::Other(Box::new(e)))?; + + let new_session = NewOauthSession { + did: session.account_did.as_str().to_string(), + session_id: session.session_id.as_ref().to_string(), + session_data: session_json, }; + // Try insert, on conflict update diesel::insert_into(oauth_sessions) - .values(&sess) + .values(&new_session) + .on_conflict((did, session_id)) + .do_update() + .set(( + session_data.eq(&new_session.session_data), + updated_at.eq(diesel::dsl::now), + )) .execute(&mut conn) .await - .into_diagnostic()?; + .map_err(|e| SessionStoreError::Other(Box::new(e)))?; Ok(()) } - async fn del(&self, key: &Did) -> Result<()> { + async fn delete_session( + &self, + did_param: &Did<'_>, + session_id_param: &str, + ) -> Result<(), SessionStoreError> { use crate::schema::oauth_sessions::dsl::*; - let mut conn = self.db.pool.get().await.into_diagnostic()?; - let query = diesel::delete(oauth_sessions.filter(did.eq(key.as_str()))); - query.execute(&mut conn).await.into_diagnostic()?; - Ok(()) - } - - async fn clear(&self) -> Result<()> { - Err(miette!( - "this would clear the whole fucking table in the database so nope!" - )) - } -} - -impl atrium_common::store::Store for DBSessionStore { - type Error = ApiError; - async fn get(&self, did: &Did) -> Result, Self::Error> { - Ok(self.get(did).await?) - } - - async fn set(&self, key: Did, value: Session) -> Result<(), Self::Error> { - Ok(self.set(key, value).await?) - } + let mut conn = self + .db + .pool + .get() + .await + .map_err(|e| SessionStoreError::Other(Box::new(e)))?; - async fn del(&self, key: &Did) -> Result<(), Self::Error> { - Ok(self.del(key).await?) - } + diesel::delete( + oauth_sessions + .filter(did.eq(did_param.as_str())) + .filter(session_id.eq(session_id_param)), + ) + .execute(&mut conn) + .await + .map_err(|e| SessionStoreError::Other(Box::new(e)))?; - async fn clear(&self) -> Result<(), Self::Error> { - Ok(self.clear().await?) + Ok(()) } -} -impl atrium_oauth::store::session::SessionStore for DBSessionStore {} + async fn get_auth_req_info( + &self, + state_param: &str, + ) -> Result>, SessionStoreError> { + use crate::schema::oauth_auth_requests::dsl::*; -pub struct DBStateStore { - pub db: crate::db::Db, -} - -impl DBStateStore { - pub fn new(db: &crate::db::Db) -> Self { - Self { db: db.clone() } - } - - pub async fn get(&self, key: &str) -> Result> { - use crate::schema::oauth_requests::dsl::*; - let mut conn = self.db.pool.get().await.into_diagnostic()?; + let mut conn = self + .db + .pool + .get() + .await + .map_err(|e| SessionStoreError::Other(Box::new(e)))?; - let results: Vec = oauth_requests - .filter(state.eq(key)) + let result: Vec = oauth_auth_requests + .filter(state.eq(state_param)) .limit(1) - .select(OauthRequest::as_select()) + .select(OauthAuthRequest::as_select()) .load(&mut conn) .await - .into_diagnostic()?; - - if let Some(req) = results.get(0) { - if let Ok(key) = serde_json::from_value::(req.dpop_key.clone()) { - Ok(Some(InternalStateData { - iss: req.auth_server_iss.clone(), - dpop_key: key, - verifier: req.pkce_verifier.clone(), - app_state: req.state.clone(), - })) - } else { - Ok(None) - } + .map_err(|e| SessionStoreError::Other(Box::new(e)))?; + + if let Some(req) = result.get(0) { + let auth_data = jacquard::from_json_value::(req.auth_req_data.clone()) + .map_err(|e| SessionStoreError::Other(Box::new(e)))?; + Ok(Some(auth_data)) } else { Ok(None) } } -} -impl atrium_common::store::Store for DBStateStore { - type Error = ApiError; + async fn save_auth_req_info( + &self, + auth_req_info: &AuthRequestData<'_>, + ) -> Result<(), SessionStoreError> { + use crate::schema::oauth_auth_requests::dsl::*; - async fn get(&self, key: &String) -> Result, Self::Error> { - Ok(self.get(key).await?) - } + let mut conn = self + .db + .pool + .get() + .await + .map_err(|e| SessionStoreError::Other(Box::new(e)))?; + + let auth_json = serde_json::to_value(auth_req_info) + .map_err(|e| SessionStoreError::Other(Box::new(e)))?; + + let new_auth_req = NewOauthAuthRequest { + state: auth_req_info.state.as_ref().to_string(), + account_did: auth_req_info + .account_did + .as_ref() + .map(|d| d.as_str().to_string()), + auth_req_data: auth_json, + }; - async fn set(&self, key: String, value: InternalStateData) -> Result<(), Self::Error> { - todo!() - } + diesel::insert_into(oauth_auth_requests) + .values(&new_auth_req) + .execute(&mut conn) + .await + .map_err(|e| SessionStoreError::Other(Box::new(e)))?; - async fn del(&self, key: &String) -> Result<(), Self::Error> { - todo!() + Ok(()) } - async fn clear(&self) -> Result<(), Self::Error> { - todo!() - } -} + async fn delete_auth_req_info(&self, state_param: &str) -> Result<(), SessionStoreError> { + use crate::schema::oauth_auth_requests::dsl::*; -impl atrium_oauth::store::state::StateStore for DBStateStore {} + let mut conn = self + .db + .pool + .get() + .await + .map_err(|e| SessionStoreError::Other(Box::new(e)))?; -pub type AppviewOAuthSession = atrium_oauth::OAuthSession< - DefaultHttpClient, - CommonDidResolver, - AtprotoHandleResolver, - DBSessionStore, ->; + diesel::delete(oauth_auth_requests.filter(state.eq(state_param))) + .execute(&mut conn) + .await + .map_err(|e| SessionStoreError::Other(Box::new(e)))?; -pub type AppviewOAuthClient = WeaverOAuthClient; + Ok(()) + } +} diff --git a/crates/weaver-appview/src/routes/oauth.rs b/crates/weaver-appview/src/routes/oauth.rs index 17c5d50..f45227f 100644 --- a/crates/weaver-appview/src/routes/oauth.rs +++ b/crates/weaver-appview/src/routes/oauth.rs @@ -1,52 +1,71 @@ -use atrium_oauth::{AuthorizeOptions, CallbackParams}; use axum::{ Form, Json, extract::{Query, State}, }; -use hyper::StatusCode; +use jacquard::{ + IntoStatic, + oauth::{ + atproto::atproto_client_metadata, + types::{AuthorizeOptions, CallbackParams}, + }, +}; use miette::{IntoDiagnostic, Result, miette}; +use serde::{Deserialize, Serialize}; use serde_json::{Value, json}; use crate::{api_error::ApiError, state::AppState}; /// Passthrough callback for native endpoint pub async fn callback_native( - Query(params): Query, + Query(params): Query>, ) -> Result, ApiError> { - Ok(Json(json! ({ + Ok(Json(json!({ "code": params.code, "iss": params.iss, "state": params.state, }))) } +/// OAuth callback handler pub async fn callback( State(state): State, - Query(params): Query, + Query(params): Query>, ) -> Result, ApiError> { let oauth_client = state.oauth_client(); let active_sessions = state.active_sessions(); - let (session, state) = oauth_client + + let session = oauth_client .callback(params) .await - .expect("oauth callback failed"); - if let Some(ref state) = state { - active_sessions.insert(state.clone(), session); - } + .map_err(|e| ApiError::InternalError(miette!("oauth callback failed: {e}")))?; + + let (did, session_id) = session.session_info().await; + let did = did.to_string(); + let session_id = session_id.clone().into_static(); + + active_sessions.insert(session_id.to_string(), session); + Ok(Json(json!({ "status": "authenticated", - "state": state + "did": did, + "session_id": session_id, }))) } +/// Get OAuth client metadata pub async fn get_client_metadata(State(state): State) -> Result, ApiError> { - let client_metadata = &state.oauth_client().client_metadata; + let metadata = atproto_client_metadata( + state.oauth_client().registry.client_data.config.clone(), + &state.oauth_client().registry.client_data.keyset, + ) + .map_err(|e| ApiError::InternalError(miette!("couldn't get oauth metadata: {e}")))?; - Ok(Json(serde_json::to_value(client_metadata).map_err( - |e| ApiError::InternalError(miette!("json serialization error: {e}")), - )?)) + Ok(Json(serde_json::to_value(metadata).map_err(|e| { + ApiError::InternalError(miette!("json serialization error: {e}")) + })?)) } +/// Get JWKS (public keys) pub async fn get_jwks(State(state): State) -> Result, ApiError> { let jwks = state.oauth_client().jwks(); @@ -55,24 +74,31 @@ pub async fn get_jwks(State(state): State) -> Result, ApiE })?)) } -pub async fn login(State(state): State) -> Result, ApiError> { +/// Login stub +pub async fn login(State(_state): State) -> Result, ApiError> { Ok(Json(json!({ "status": "ok" }))) } -pub struct AuthorizeParams(String, AuthorizeOptions); +#[derive(Deserialize)] +pub struct AuthorizeParams { + pub handle: String, +} +/// Start OAuth authorization flow pub async fn authorize( State(state): State, - Form(AuthorizeParams(endpoint, options)): Form, + Form(params): Form, ) -> Result, ApiError> { let url = state .oauth_client() - .authorize(endpoint, options) + .start_auth(params.handle, AuthorizeOptions::default()) .await .map_err(|e| ApiError::InternalError(miette!("oauth authorize error: {e}")))?; + Ok(Json(json!({ "url": url }))) } -pub async fn logout(State(state): State) -> Result, ApiError> { +/// Logout stub +pub async fn logout(State(_state): State) -> Result, ApiError> { Ok(Json(json!({ "status": "ok" }))) } diff --git a/crates/weaver-appview/src/schema.rs b/crates/weaver-appview/src/schema.rs index 846cef7..9bc9861 100644 --- a/crates/weaver-appview/src/schema.rs +++ b/crates/weaver-appview/src/schema.rs @@ -30,13 +30,13 @@ diesel::table! { } diesel::table! { - oauth_requests (id) { + oauth_auth_requests (id) { id -> Int4, - auth_server_iss -> Text, - state -> Nullable, - did -> Text, - pkce_verifier -> Text, - dpop_key -> Jsonb, + state -> Text, + account_did -> Nullable, + auth_req_data -> Jsonb, + created_at -> Timestamptz, + expires_at -> Timestamptz, } } @@ -44,9 +44,10 @@ diesel::table! { oauth_sessions (id) { id -> Int4, did -> Text, - pds_url -> Text, - session -> Jsonb, - expiry -> Nullable, + session_id -> Text, + session_data -> Jsonb, + created_at -> Timestamptz, + updated_at -> Timestamptz, } } @@ -106,7 +107,7 @@ diesel::allow_tables_to_appear_in_same_query!( _jetstream, emails, follows, - oauth_requests, + oauth_auth_requests, oauth_sessions, profile, profile_links, diff --git a/crates/weaver-appview/src/state.rs b/crates/weaver-appview/src/state.rs index 7e4f8f7..67a2cec 100644 --- a/crates/weaver-appview/src/state.rs +++ b/crates/weaver-appview/src/state.rs @@ -1,10 +1,19 @@ -use crate::oauth::AppviewOAuthClient; use dashmap::DashMap; +use jacquard::identity::JacquardResolver; +use jacquard::oauth::atproto::{AtprotoClientMetadata, GrantType}; +use jacquard::oauth::client::OAuthClient; +use jacquard::oauth::keyset::Keyset; +use jacquard::oauth::scopes::Scope; +use jacquard::oauth::session::ClientData; +use std::sync::Arc; +use url::Url; use crate::config::Config; use crate::db::Db; -use crate::oauth::{AppviewOAuthSession, DBSessionStore, DBStateStore}; -use std::sync::Arc; +use crate::oauth::DBAuthStore; + +pub type AppviewOAuthClient = OAuthClient; +pub type AppviewOAuthSession = jacquard::oauth::client::OAuthSession; pub struct AppStateInner { pub cfg: Config, @@ -20,13 +29,38 @@ pub struct AppState { impl AppState { pub fn new(cfg: Config, db: Db) -> Self { - let oauth_client = weaver_common::oauth::oauth_client( - &cfg.core.appview_host, - Some(cfg.oauth.jwks.clone()), - DBSessionStore::new(&db), - DBStateStore::new(&db), - ) - .unwrap(); + let store = DBAuthStore::new(&db); + + // Build keyset from config JWKs + let keyset = Some( + Keyset::try_from(cfg.oauth.jwks.clone()).expect("failed to create keyset from JWKs"), + ); + + // Build AT Protocol client metadata + let client_id = + Url::parse(&cfg.core.appview_host).expect("appview_host must be a valid URL"); + + let redirect_uris = vec![ + Url::parse(&format!("{}/oauth/callback", cfg.core.appview_host)) + .expect("failed to build redirect URI"), + ]; + + let scopes = + Scope::parse_multiple("atproto transition:generic").expect("failed to parse scopes"); + + let config = AtprotoClientMetadata::new( + client_id.clone(), + Some(client_id), + redirect_uris, + vec![GrantType::AuthorizationCode, GrantType::RefreshToken], + scopes, + None, // jwks_uri - None means jwks will be embedded + ); + + let client_data = ClientData { keyset, config }; + + let oauth_client = OAuthClient::new(store, client_data); + Self { db, inner: Arc::new(AppStateInner { diff --git a/crates/weaver-cli/Cargo.toml b/crates/weaver-cli/Cargo.toml index 83a5e4f..ad9a3f4 100644 --- a/crates/weaver-cli/Cargo.toml +++ b/crates/weaver-cli/Cargo.toml @@ -7,24 +7,12 @@ publish = false [dependencies] clap = { version = "4.5", features = ["derive", "env", "cargo", "unicode"] } -n0-future = { workspace = true } weaver-common = { path = "../weaver-common", features = ["native"] } weaver-workspace-hack = { version = "0.1", path = "../weaver-workspace-hack" } miette = { workspace = true, features = ["fancy"] } -hickory-resolver = "0.24.1" -esquema-codegen.workspace = true +jacquard = { workspace = true, features = ["loopback"] } +jacquard-api = { workspace = true, features = ["sh_weaver"] } -atrium-api = "0.25.2" -atrium-common = "0.1.1" -atrium-identity = "0.1.3" -atrium-oauth = "0.1.1" -atrium-xrpc-client = "0.5.13" -atrium-lex = { workspace = true } - -serde_html_form = "0.2.7" - -# temp for testing tokio = { version = "1.45.0", features = ["full"] } -rouille = { version = "3.6.2", features = ["rustls"] } dirs = "6.0.0" diff --git a/crates/weaver-cli/src/main.rs b/crates/weaver-cli/src/main.rs index 793a7e6..9b5b4cf 100644 --- a/crates/weaver-cli/src/main.rs +++ b/crates/weaver-cli/src/main.rs @@ -1,135 +1,145 @@ -use atrium_api::types::string::Did; -use atrium_oauth::AuthorizeOptions; -use atrium_oauth::CallbackParams; -use atrium_oauth::KnownScope; -use atrium_oauth::Scope; -use miette::miette; +use jacquard::client::{Agent, FileAuthStore}; +use jacquard::oauth::client::OAuthClient; +use jacquard::oauth::loopback::LoopbackConfig; +use jacquard::prelude::XrpcClient; +use jacquard::types::ident::AtIdentifier; +use jacquard::types::string::CowStr; +use jacquard_api::app_bsky::actor::get_profile::GetProfile; use miette::{IntoDiagnostic, Result}; -use rouille::Server; -use std::path::Path; use std::path::PathBuf; -use tokio::sync::mpsc; -use weaver_common::agent::WeaverAgent; -use clap::{Args, Parser, Subcommand}; +use clap::{Parser, Subcommand}; #[derive(Parser)] #[command(version, about, long_about = None)] #[command(propagate_version = true)] struct Cli { #[command(subcommand)] - command: Option, + command: Commands, } #[derive(Subcommand)] enum Commands { - /// Authenticate with your atproto PDS, using your handle or the URL of the PDS. You can also set the HANDLE environment variable. - Auth(AuthArgs), - /// Test the native oauth client - Run, -} + /// Authenticate with your atproto PDS using OAuth + Auth { + /// Handle (e.g., alice.bsky.social), DID, or PDS URL + handle: String, -#[derive(Args)] -struct AuthArgs { - handle: Option, + /// Path to auth store file (will be created if missing) + #[arg(long)] + store: Option, + }, + /// Run a test command with stored auth + Run { + /// Path to auth store file + #[arg(long)] + store: Option, + }, } #[tokio::main] async fn main() -> Result<()> { init_miette(); - let args = Cli::parse(); - let base_dir = weaver_common::filestore::config_dir(); - tokio::fs::create_dir_all(&base_dir) - .await - .into_diagnostic()?; - let client = weaver_common::oauth::test_native_oauth_client().into_diagnostic()?; - let (session, server_handle) = if let Some(Commands::Auth(AuthArgs { handle })) = args.command { - let handle = handle.unwrap_or(String::from("https://atproto.systems")); - let (tx, mut rx) = mpsc::channel(5); - let server = Server::new("0.0.0.0:4000", move |request| { - create_callback_router(request, tx.clone()) - }) - .expect("Could not start server"); - let (server_handle, server_stop) = server.stoppable(); - - println!( - "To authenticate with your PDS, visit:\r\n\t {}", - client - .authorize( - handle, - AuthorizeOptions { - scopes: vec![ - Scope::Known(KnownScope::Atproto), - Scope::Known(KnownScope::TransitionGeneric) - ], - ..Default::default() - } - ) - .await - .into_diagnostic()? - ); - - let params = rx.recv().await.unwrap(); - let (session, _) = client.callback(params).await.into_diagnostic()?; - server_stop - .send(()) - .expect("Failed to stop callback server"); - Ok::<_, weaver_common::Error>((session, Some(server_handle))) - } else { - let did = find_session_did(base_dir).await?; - let session = client.restore(&did).await.into_diagnostic()?; - Ok((session, None)) - }?; - - let agent = WeaverAgent::new(session); - let output = agent - .get_profile_pds(agent.did().await.unwrap().into()) - .await?; - println!("{output:?}"); - if let Some(server_handle) = server_handle { - server_handle.join().unwrap(); + + let cli = Cli::parse(); + + match cli.command { + Commands::Auth { handle, store } => { + let store_path = store.unwrap_or_else(default_auth_store_path); + authenticate(handle, store_path).await?; + } + Commands::Run { store } => { + let store_path = store.unwrap_or_else(default_auth_store_path); + run_test(store_path).await?; + } } + Ok(()) } -pub fn create_callback_router( - request: &rouille::Request, - tx: mpsc::Sender, -) -> rouille::Response { - rouille::router!(request, - (GET) (/oauth/callback) => { - let state = request.get_param("state").unwrap(); - let code = request.get_param("code").unwrap(); - let iss = request.get_param("iss").unwrap(); - let callback_params = CallbackParams { - state: Some(state), - code, - iss: Some(iss), - }; - tx.try_send(callback_params).unwrap(); - rouille::Response::text("Logged in!") - }, - _ => rouille::Response::empty_404() - ) +async fn authenticate(handle: String, store_path: PathBuf) -> Result<()> { + println!("Authenticating with {}...", handle); + + let oauth = OAuthClient::with_default_config(FileAuthStore::new(&store_path)); + + let session = oauth + .login_with_local_server(handle, Default::default(), LoopbackConfig::default()) + .await + .into_diagnostic()?; + + let (did, session_id) = session.session_info().await; + + // Save DID and session_id for later use + let config_path = store_path.with_extension("toml"); + let config_content = format!("did = \"{}\"\nsession_id = \"{}\"\n", did, session_id); + std::fs::write(&config_path, config_content).into_diagnostic()?; + + println!("Successfully authenticated!"); + println!("Session saved to: {}", store_path.display()); + println!("DID: {}", did); + + Ok(()) } -pub async fn find_session_did(path: impl AsRef) -> Result { - let path = path.as_ref(); - let mut dir = tokio::fs::read_dir(path).await.into_diagnostic()?; - while let Some(entry) = dir.next_entry().await.into_diagnostic()? { - let file_name = entry.file_name(); - if let Some(file_name) = file_name.to_str() { - if file_name.ends_with("_session.json") { - let did_string = file_name - .strip_suffix("_session.json") - .expect("we JUST checked the suffix lol") - .to_string(); - let did = Did::new(did_string).expect("we should only be writing valid dids"); - return Ok(did); - } - } +async fn run_test(store_path: PathBuf) -> Result<()> { + println!("Loading session from {}...", store_path.display()); + + // Read DID and session_id from config + let config_path = store_path.with_extension("toml"); + let config_content = std::fs::read_to_string(&config_path) + .into_diagnostic() + .map_err(|_| miette::miette!("No auth config found. Run 'weaver auth' first."))?; + + let did_line = config_content + .lines() + .find(|l| l.starts_with("did = ")) + .ok_or_else(|| miette::miette!("Invalid config file"))?; + let session_id_line = config_content + .lines() + .find(|l| l.starts_with("session_id = ")) + .ok_or_else(|| miette::miette!("Invalid config file"))?; + + let did_str = did_line + .trim_start_matches("did = \"") + .trim_end_matches('"'); + let session_id = session_id_line + .trim_start_matches("session_id = \"") + .trim_end_matches('"'); + + let did = jacquard::types::string::Did::new(did_str) + .map_err(|_| miette::miette!("Invalid DID in config"))?; + + let oauth = OAuthClient::with_default_config(FileAuthStore::new(&store_path)); + let session = oauth.restore(&did, session_id).await.into_diagnostic()?; + + let agent = Agent::from(session); + + println!("Fetching profile for {}...", did); + + let profile = agent + .send(GetProfile::new().actor(AtIdentifier::Did(did)).build()) + .await + .into_diagnostic()? + .into_output() + .into_diagnostic()?; + + println!("\nProfile:"); + println!(" Handle: {}", profile.value.handle); + if let Some(display_name) = &profile.value.display_name { + println!(" Display Name: {}", display_name); + } + if let Some(description) = &profile.value.description { + println!(" Description: {}", description); } - Err(miette!("couldn't find any existing sessions!")) + + Ok(()) +} + +fn default_auth_store_path() -> PathBuf { + dirs::config_dir() + .expect("Could not determine config directory") + .join("weaver") + .join("auth.json") } fn init_miette() { @@ -137,7 +147,6 @@ fn init_miette() { Box::new( miette::MietteHandlerOpts::new() .terminal_links(true) - //.rgb_colors(miette::RgbColors::) .with_cause_chain() .with_syntax_highlighting(miette::highlighters::SyntectHighlighter::default()) .color(true) diff --git a/crates/weaver-common/Cargo.toml b/crates/weaver-common/Cargo.toml index c03f46a..dd05b87 100644 --- a/crates/weaver-common/Cargo.toml +++ b/crates/weaver-common/Cargo.toml @@ -18,14 +18,10 @@ markdown-weaver = { workspace = true } http = "1.3.1" -atrium-xrpc = "0.12.3" -atrium-api = "0.25.3" -atrium-common = "0.1.1" -atrium-identity = "0.1.3" -atrium-oauth = "0.1.1" +jacquard = { workspace = true } +jacquard-api = { workspace = true, features = ["sh_weaver"] } +trait-variant = "0.1" - -merde = { workspace = true, features = ["yaml", "serde"] } serde = { workspace = true } serde_json = { version = "1.0.140", features = ["preserve_order", "raw_value"] } serde_ipld_dagcbor = { version = "0.6.1", features = ["codec"] } @@ -67,6 +63,3 @@ markdown-weaver-escape = { workspace = true, features = ["std"] } [dev-dependencies] tokio = { version = "1", features = ["macros", "rt"] } - -[build-dependencies] -esquema-codegen = { workspace = true } diff --git a/crates/weaver-common/src/agent.rs b/crates/weaver-common/src/agent.rs deleted file mode 100644 index c4ecc65..0000000 --- a/crates/weaver-common/src/agent.rs +++ /dev/null @@ -1,541 +0,0 @@ -use crate::app::bsky::actor::defs::ProfileViewDetailedData; -use crate::error::GenericXrpcError; -use crate::resolver::HickoryDnsTxtResolver; -use crate::sh::weaver::actor::defs::ProfileDataViewInnerRefs; -use atrium_api::agent::{CloneWithProxy, Configure}; -use atrium_api::types::string::{Cid, Did, Handle, Nsid, RecordKey, Tid}; -use atrium_api::types::{BlobRef, Collection, LimitedU32, TryIntoUnknown, Union, Unknown}; -use atrium_api::{agent::SessionManager, types::string::AtIdentifier}; -use atrium_common::resolver::Resolver; -use atrium_identity::did::{CommonDidResolver, CommonDidResolverConfig, DEFAULT_PLC_DIRECTORY_URL}; -use atrium_identity::handle::{AtprotoHandleResolver, AtprotoHandleResolverConfig}; -use atrium_identity::identity_resolver::IdentityResolver; -use atrium_xrpc::{Error as XrpcError, HttpClient, OutputDataOrBytes, XrpcClient, XrpcRequest}; -use http::{Request, Response}; -use serde::{Serialize, de::DeserializeOwned}; -use std::{fmt::Debug, ops::Deref, sync::Arc}; - -use crate::Error; -use crate::client::Service; - -pub struct WeaverHttpClient { - pub client: reqwest::Client, -} - -impl atrium_xrpc::HttpClient for WeaverHttpClient { - async fn send_http( - &self, - request: atrium_xrpc::http::Request>, - ) -> core::result::Result< - atrium_xrpc::http::Response>, - Box, - > { - let response = self.client.execute(request.try_into()?).await?; - let mut builder = atrium_xrpc::http::Response::builder().status(response.status()); - for (k, v) in response.headers() { - builder = builder.header(k, v); - } - builder - .body(response.bytes().await?.to_vec()) - .map_err(Into::into) - } -} - -impl Default for WeaverHttpClient { - fn default() -> Self { - Self { - client: reqwest::Client::new(), - } - } -} - -pub struct WeaverAgent -where - M: SessionManager + Send + Sync, -{ - session_manager: Arc>, - resolver: Arc< - IdentityResolver< - CommonDidResolver, - AtprotoHandleResolver, - >, - >, - pub client: Arc, - pub api: Service>, -} - -impl WeaverAgent -where - M: SessionManager + Send + Sync, -{ - /// Creates a new agent with the given session manager. - - pub fn new(session_manager: M) -> Self { - let session_manager = Arc::new(Wrapper::new(session_manager)); - let api = Service::new(session_manager.clone()); - let http_client = Arc::new(WeaverHttpClient::default()); - let resolver_config = atrium_identity::identity_resolver::IdentityResolverConfig { - did_resolver: CommonDidResolver::new(CommonDidResolverConfig { - plc_directory_url: DEFAULT_PLC_DIRECTORY_URL.to_string(), - http_client: Arc::clone(&http_client), - }), - handle_resolver: AtprotoHandleResolver::new(AtprotoHandleResolverConfig { - dns_txt_resolver: HickoryDnsTxtResolver::default(), - http_client: Arc::clone(&http_client), - }), - }; - Self { - session_manager, - resolver: Arc::new(IdentityResolver::new(resolver_config)), - client: Arc::clone(&http_client), - api, - } - } - - /// Returns the DID of the current session. - - pub async fn did(&self) -> Option { - self.session_manager.did().await - } - - pub fn pds(&self) -> String { - self.session_manager.base_uri() - } -} - -impl WeaverAgent -where - M: SessionManager + Configure + Send + Sync, -{ - pub async fn get_bsky_profile( - &self, - actor: AtIdentifier, - ) -> Result { - use crate::app::bsky::actor::get_profile::*; - let result = self - .api - .app - .bsky - .actor - .get_profile(ParametersData { actor }.into()) - .await?; - Ok(result.data) - } - - pub async fn get_weaver_profile_pds( - &self, - actor: AtIdentifier, - ) -> Result { - use crate::sh::weaver::actor::*; - let identity = self - .resolver - .resolve(actor.as_ref()) - .await - .expect("valid identifier"); - let did = Did::new(identity.did).expect("valid did"); - let record = self - .get_record( - Nsid::new(Profile::NSID.into()).expect("valid nsid"), - RecordKey::new(Profile::NSID.to_string()).expect("valid key"), - AtIdentifier::Did(did.clone()), - None, - ) - .await?; - let profile_record = profile::RecordData::from(record.value); - - Ok(defs::ProfileViewData { - avatar: profile_record - .avatar - .map(|avatar| crate::avatar_cdn_url(&did, &avatar)), - created_at: profile_record.created_at, - did, - display_name: profile_record.display_name, - handle: Handle::new(actor.as_ref().to_string()).expect("valid handle"), - labels: None, - links: profile_record.links, - location: profile_record.location, - description: profile_record.description, - pronouns: profile_record.pronouns, - indexed_at: None, - }) - } - - pub async fn get_profile_pds( - &self, - actor: AtIdentifier, - ) -> Result { - use crate::sh::weaver::actor::defs::ProfileDataViewInnerRefs::*; - let maybe_profile = self.get_weaver_profile_pds(actor.clone()).await; - match maybe_profile { - Ok(profile) => Ok(ShWeaverActorDefsProfileView(Box::new(profile.into()))), - Err(e1) => { - let maybe_profile = self.get_bsky_profile(actor.clone()).await; - match maybe_profile { - Ok(profile) => Ok(AppBskyActorDefsProfileViewDetailed(Box::new( - profile.into(), - ))), - Err(e2) => Err(e2.with_errors(e1)), - } - } - } - } - pub async fn create_record( - &self, - collection: Nsid, - record: Unknown, - repo: AtIdentifier, - rkey: Option, - ) -> Result { - use crate::com::atproto::repo::create_record::*; - let result = self - .api - .com - .atproto - .repo - .create_record( - InputData { - collection, - record, - repo, - rkey, - swap_commit: None, - validate: None, - } - .into(), - ) - .await?; - Ok(result.data) - } - - pub async fn put_record( - &self, - collection: Nsid, - record: Unknown, - repo: AtIdentifier, - rkey: RecordKey, - ) -> Result { - use crate::com::atproto::repo::put_record::*; - let result = self - .api - .com - .atproto - .repo - .put_record( - InputData { - collection, - record, - repo, - rkey, - swap_commit: None, - swap_record: None, - validate: None, - } - .into(), - ) - .await?; - Ok(result.data) - } - - pub async fn get_record( - &self, - collection: Nsid, - rkey: RecordKey, - repo: AtIdentifier, - cid: Option, - ) -> Result { - use crate::com::atproto::repo::get_record::*; - let result = self - .api - .com - .atproto - .repo - .get_record( - ParametersData { - collection, - rkey, - repo, - cid, - } - .into(), - ) - .await?; - Ok(result.data) - } - - pub async fn get_blob(&self, did: Did, cid: Cid) -> Result, Error> { - use crate::com::atproto::sync::get_blob::*; - let result = self - .api - .com - .atproto - .sync - .get_blob(ParametersData { did, cid }.into()) - .await?; - Ok(result) - } - - pub async fn upload_blob( - &self, - input: Vec, - ) -> Result { - let result = self.api.com.atproto.repo.upload_blob(input.into()).await?; - Ok(result.data) - } - - pub async fn publish_blob( - &self, - input: Vec, - ) -> Result< - ( - BlobRef, - crate::com::atproto::repo::create_record::OutputData, - ), - Error, - > { - use crate::sh::weaver::publish; - let blobref = self - .api - .com - .atproto - .repo - .upload_blob(input.into()) - .await? - .blob - .clone(); - let upload_record = publish::blob::RecordData { - upload: blobref.clone(), - }; - let at_identifier = AtIdentifier::try_from(self.did().await.expect("valid did")) - .expect("valid did should be valid at identifier"); - let result = self - .create_record( - Nsid::new(publish::Blob::NSID.to_string()) - .expect("sh.weaver.publish.blob should be a valid NSID"), - upload_record - .try_into_unknown() - .expect("this should just work"), - at_identifier, - None, - ) - .await?; - Ok((blobref, result)) - } - - pub async fn upload_artifact( - &self, - content: String, - mime_type: Option, - ) -> Result { - let encoding = if let Some(mime_type) = mime_type { - Some(mime_type) - } else { - Some(String::from("*/*")) - }; - let input = content.into_bytes(); - let response = self - .session_manager - .inner - .send_xrpc::<(), Vec, crate::com::atproto::repo::upload_blob::OutputData, crate::com::atproto::repo::upload_blob::Error>( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::repo::upload_blob::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Bytes(input)), - encoding, - }, - ) - .await.map_err(Error::from)?; - Ok(match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(GenericXrpcError::Other( - "Unexpected Respose Type".to_owned(), - )), - }?) - } - - pub async fn delete_record( - &self, - collection: Nsid, - rkey: RecordKey, - repo: AtIdentifier, - ) -> Result { - use crate::com::atproto::repo::delete_record::*; - let result = self - .api - .com - .atproto - .repo - .delete_record( - InputData { - collection, - rkey, - repo, - swap_commit: None, - swap_record: None, - } - .into(), - ) - .await?; - Ok(result.data) - } -} - -impl WeaverAgent -where - M: CloneWithProxy + SessionManager + Send + Sync, -{ - /// Configures the atproto-proxy header to be applied on requests. - /// - /// Returns a new client service with the proxy header configured. - - pub fn api_with_proxy(&self, did: Did, service_type: impl AsRef) -> Service> { - Service::new(Arc::new( - self.session_manager.clone_with_proxy(did, service_type), - )) - } - - pub fn weaver_api(&self) -> Service> { - self.api_with_proxy( - Did::new("did:web:appview.weaver.sh".into()).expect("valid did"), - &"atproto_weaver", - ) - } - - pub async fn get_profile_appview( - &self, - actor: AtIdentifier, - ) -> Result, Error> { - use crate::sh::weaver::actor::get_profile::*; - let result = self - .weaver_api() - .sh - .weaver - .actor - .get_profile(ParametersData { actor }.into()) - .await?; - Ok(result.inner.clone()) - } -} - -impl Configure for WeaverAgent -where - M: Configure + SessionManager + Send + Sync, -{ - fn configure_endpoint(&self, endpoint: String) { - self.session_manager.configure_endpoint(endpoint); - } - - fn configure_labelers_header(&self, labeler_dids: Option>) { - self.session_manager.configure_labelers_header(labeler_dids); - } - - fn configure_proxy_header(&self, did: Did, service_type: impl AsRef) { - self.session_manager - .configure_proxy_header(did, service_type); - } -} - -pub struct Wrapper { - inner: Arc, -} - -impl Wrapper -where - M: SessionManager + Send + Sync, -{ - pub fn new(inner: M) -> Self { - Self { - inner: Arc::new(inner), - } - } -} - -impl HttpClient for Wrapper -where - M: SessionManager + Send + Sync, -{ - async fn send_http( - &self, - request: Request>, - ) -> Result>, Box> { - self.inner.send_http(request).await - } -} - -impl XrpcClient for Wrapper -where - M: SessionManager + Send + Sync, -{ - fn base_uri(&self) -> String { - self.inner.base_uri() - } - async fn send_xrpc( - &self, - request: &XrpcRequest, - ) -> Result, XrpcError> - where - P: Serialize + Send + Sync, - I: Serialize + Send + Sync, - O: DeserializeOwned + Send + Sync, - E: DeserializeOwned + Send + Sync + Debug, - { - self.inner.send_xrpc(request).await - } -} - -impl SessionManager for Wrapper -where - M: SessionManager + Send + Sync, -{ - async fn did(&self) -> Option { - self.inner.did().await - } -} - -impl Configure for Wrapper -where - M: Configure, -{ - fn configure_endpoint(&self, endpoint: String) { - self.inner.configure_endpoint(endpoint); - } - fn configure_labelers_header(&self, labeler_dids: Option>) { - self.inner.configure_labelers_header(labeler_dids); - } - fn configure_proxy_header(&self, did: Did, service_type: impl AsRef) { - self.inner.configure_proxy_header(did, service_type); - } -} - -impl CloneWithProxy for Wrapper -where - M: CloneWithProxy, -{ - fn clone_with_proxy(&self, did: Did, service_type: impl AsRef) -> Self { - Self { - inner: Arc::new(self.inner.clone_with_proxy(did, service_type)), - } - } -} - -impl Clone for Wrapper -where - M: SessionManager + Send + Sync, -{ - fn clone(&self) -> Self { - Self { - inner: self.inner.clone(), - } - } -} - -impl Deref for Wrapper -where - M: SessionManager + Send + Sync, -{ - type Target = M; - - fn deref(&self) -> &Self::Target { - &self.inner - } -} diff --git a/crates/weaver-common/src/config.rs b/crates/weaver-common/src/config.rs deleted file mode 100644 index abe8d4d..0000000 --- a/crates/weaver-common/src/config.rs +++ /dev/null @@ -1,118 +0,0 @@ -use atrium_api::agent::atp_agent::AtpSession; -use miette::Result; -use miette::miette; -use serde::{Deserialize, Serialize}; - -use std::future::Future; -use std::path::Path; -use std::path::PathBuf; - -#[derive(Debug, Clone, Serialize, Deserialize)] -pub struct Config { - /// The base URL for the XRPC endpoint. - pub endpoint: String, - /// The session data. - pub session: Option, - /// The labelers header values. - pub labelers_header: Option>, - /// The proxy header for service proxying. - pub proxy_header: Option, -} - -impl Config { - /// Loads the configuration from the provided loader. - pub async fn load(loader: &impl Loader) -> Result { - loader - .load() - .await - .map_err(|_| miette!("Failed to load configuration")) - } - /// Saves the configuration using the provided saver. - pub async fn save(&self, saver: &impl Saver) -> Result<()> { - saver - .save(self) - .await - .map_err(|_| miette!("Failed to save configuration")) - } -} - -impl Default for Config { - /// Creates a new default configuration. - /// - /// The default configuration uses the base URL `https://bsky.social`. - fn default() -> Self { - Self { - endpoint: "https://atproto.systems".to_owned(), - session: None, - labelers_header: None, - proxy_header: None, - } - } -} - -/// The trait for loading configuration data. -pub trait Loader { - /// Loads the configuration data. - fn load( - &self, - ) -> impl Future< - Output = core::result::Result>, - > + Send; -} - -/// The trait for saving configuration data. -pub trait Saver { - /// Saves the configuration data. - fn save( - &self, - config: &Config, - ) -> impl Future< - Output = core::result::Result<(), Box>, - > + Send; -} - -/// An implementation of [`Loader`] and [`Saver`] that reads and writes a configuration file. -pub struct FileStore { - path: PathBuf, -} - -impl FileStore { - /// Create a new [`FileStore`] with the given path. - /// - /// This `FileStore` will read and write to the file at the given path. - /// [`Config`] data will be serialized and deserialized using the file extension. - /// By default, this supports only `.json` files. - pub fn new(path: impl AsRef) -> Self { - Self { - path: path.as_ref().to_path_buf(), - } - } -} - -impl Loader for FileStore { - async fn load( - &self, - ) -> core::result::Result> { - match self.path.extension().and_then(|ext| ext.to_str()) { - Some("json") => Ok(serde_json::from_str(&std::fs::read_to_string(&self.path)?)?), - Some("toml") => Ok(toml::from_str(&std::fs::read_to_string(&self.path)?)?), - _ => Err(miette!("Unsupported file format").into()), - } - } -} - -impl Saver for FileStore { - async fn save( - &self, - config: &Config, - ) -> core::result::Result<(), Box> { - match self.path.extension().and_then(|ext| ext.to_str()) { - Some("json") => Ok(std::fs::write( - &self.path, - serde_json::to_string_pretty(config)?, - )?), - Some("toml") => Ok(std::fs::write(&self.path, toml::to_string_pretty(config)?)?), - _ => Err(miette!("Unsupported file format").into()), - } - } -} diff --git a/crates/weaver-common/src/error.rs b/crates/weaver-common/src/error.rs index 0c903c1..2e3c29b 100644 --- a/crates/weaver-common/src/error.rs +++ b/crates/weaver-common/src/error.rs @@ -1,202 +1,44 @@ -use atrium_api::xrpc::Error as XrpcError; +//! Error types for weaver - thin wrapper over jacquard errors + use miette::{Diagnostic, NamedSource, SourceOffset, SourceSpan}; use std::borrow::Cow; -use std::fmt; +/// Main error type for weaver operations #[derive(thiserror::Error, Debug, Diagnostic)] -#[error("error(s) in weaver")] -pub struct Error { - #[related] - errors: Vec, - - #[help] - advice: Option, -} - -impl Error { - pub fn new(errors: Vec) -> Self { - Self { - errors, - advice: None, - } - } - - pub fn with_advice(mut self, advice: String) -> Self { - self.advice = Some(advice); - self - } - - pub fn with_error(mut self, error: WeaverErrorKind) -> Self { - self.errors.push(error); - self - } - - pub fn with_errors(mut self, errors: Error) -> Self { - self.errors.extend(errors.errors); - self - } -} - -#[derive(thiserror::Error, Debug, Diagnostic)] -pub enum WeaverErrorKind { - #[error(transparent)] - #[diagnostic_source] - ParseError(ParseError), - #[error(transparent)] - #[diagnostic_source] - IoError(#[from] IoError), +pub enum WeaverError { + /// Jacquard Agent error #[error(transparent)] #[diagnostic_source] - TaskError(#[from] n0_future::task::JoinError), - #[error(transparent)] - #[diagnostic_source] - AtprotoError(#[from] AtprotoError), - #[error(transparent)] - #[diagnostic_source] - NetworkError(#[from] NetworkError), - #[error(transparent)] - #[diagnostic_source] - SerdeError(#[from] SerDeError), -} - -#[derive(thiserror::Error, Debug, Diagnostic)] -#[error("io error")] -pub struct AtprotoError { - #[diagnostic_source] - kind: AtprotoErrorKind, -} + Agent(#[from] jacquard::client::error::AgentError), -#[derive(thiserror::Error, Debug, Diagnostic)] -#[non_exhaustive] -pub enum NetworkError { - #[error(transparent)] - #[diagnostic_source] - HttpRequest(#[from] http::Error), - #[error("HTTP client error: {0}")] - #[diagnostic_source] - HttpClient(Box), - #[error("DNS TXT resolver error: {0}")] - #[diagnostic_source] - DnsTxtResolver(#[from] hickory_resolver::error::ResolveError), -} + /// Invalid notebook structure + #[error("invalid notebook structure: {0}")] + InvalidNotebook(String), -/// Generic error type for XRPC errors. -#[derive(thiserror::Error, Debug, Diagnostic)] -pub enum GenericXrpcError { - Response { - status: http::StatusCode, - error: Option, - }, - Other(String), -} + /// Markdown parsing/rendering error + #[error("markdown error: {0}")] + Markdown(String), -impl From for Error { - fn from(err: GenericXrpcError) -> Self { - Self { - errors: vec![WeaverErrorKind::AtprotoError(AtprotoError { - kind: AtprotoErrorKind::AtriumCatchall(err), - })], - advice: None, - } - } -} - -impl std::fmt::Display for GenericXrpcError { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - match self { - Self::Response { status, error } => { - write!(f, "{}", status.as_str())?; - let Some(error) = &error else { - return Ok(()); - }; - if !error.is_empty() { - write!(f, " {error}")?; - } - } - Self::Other(s) => { - write!(f, "{s}")?; - } - } - Ok(()) - } -} - -impl From> for Error -where - E: fmt::Debug, -{ - fn from(err: XrpcError) -> Self { - if let XrpcError::XrpcResponse(e) = err { - Self { - errors: vec![WeaverErrorKind::AtprotoError(AtprotoError { - kind: AtprotoErrorKind::AtriumXrpc(GenericXrpcError::Response { - status: e.status, - error: e.error.map(|e| match e { - atrium_xrpc::error::XrpcErrorKind::Custom(_) => { - String::from("custom error") - } - atrium_xrpc::error::XrpcErrorKind::Undefined(res) => res.to_string(), - }), - }), - })], - advice: None, - } - } else { - Self { - errors: vec![WeaverErrorKind::AtprotoError(AtprotoError { - kind: AtprotoErrorKind::AtriumCatchall(GenericXrpcError::Other(format!( - "{:?}", - err - ))), - })], - advice: None, - } - } - } -} + /// IO error + #[error(transparent)] + Io(#[from] n0_future::io::Error), -#[derive(thiserror::Error, Debug, Diagnostic)] -#[non_exhaustive] -pub enum AtprotoErrorKind { + /// Parse error with source location #[error(transparent)] #[diagnostic_source] - AtriumApi(#[from] atrium_api::error::Error), - #[error("XRPC error: {:?}", .0)] - #[diagnostic_source] - AtriumXrpc(GenericXrpcError), - #[error("Authentication error: {:?}", .0)] - #[diagnostic_source] - Auth(http::HeaderValue), - #[error("Unexpected respose type")] - #[diagnostic_source] - UnexpectedResponseType, - #[error("Atrium error: {:?}", .0)] - #[diagnostic_source] - AtriumCatchall(GenericXrpcError), -} + Parse(#[from] ParseError), -#[derive(thiserror::Error, Debug, Diagnostic)] -#[error("io error")] -pub struct IoError { + /// Serialization/deserialization error + #[error(transparent)] #[diagnostic_source] - kind: IoErrorKind, -} - -impl From for IoError { - fn from(err: n0_future::io::Error) -> Self { - Self { - kind: IoErrorKind::NoIoError(err), - } - } -} + Serde(#[from] SerDeError), -#[derive(thiserror::Error, Debug, Diagnostic)] -#[non_exhaustive] -enum IoErrorKind { + /// Task join error #[error(transparent)] - NoIoError(#[from] n0_future::io::Error), + Task(#[from] n0_future::task::JoinError), } +/// Parse error with source code location information #[derive(thiserror::Error, Debug, Diagnostic)] #[error("parse error")] #[diagnostic()] @@ -249,27 +91,23 @@ pub enum ParseErrorKind { SerdeError(#[from] SerDeError), #[error(transparent)] MiniJinjaError(#[from] minijinja::Error), - #[error("Error in Markdown parsing or rendering: {0}")] + #[error("error in markdown parsing or rendering: {0}")] MarkdownError(markdown_weaver::CowStr<'static>), } -/// Errors that can occur during serialization and deserialization. -/// Thin wrapper over various `merde` and `serde` implementation crate errors. +/// Serialization/deserialization errors #[derive(thiserror::Error, Debug, Diagnostic)] #[non_exhaustive] pub enum SerDeError { #[error(transparent)] #[diagnostic_source] - Merde(#[from] merde::MerdeError<'static>), - #[error(transparent)] - #[diagnostic_source] - SDJson(#[from] serde_json::Error), + Json(#[from] serde_json::Error), #[error(transparent)] Cbor(#[from] serde_cbor::Error), #[error(transparent)] DagCbor(#[from] serde_ipld_dagcbor::error::CodecError), #[error(transparent)] - SerHtmlForm(#[from] serde_html_form::ser::Error), + HtmlForm(#[from] serde_html_form::ser::Error), } impl From for ParseError { @@ -278,7 +116,7 @@ impl From for ParseError { let column = err.column(); let location = SourceSpan::new(SourceOffset::from_location("", line, column), 0); Self { - kind: ParseErrorKind::SerdeError(SerDeError::SDJson(err)), + kind: ParseErrorKind::SerdeError(SerDeError::Json(err)), src: NamedSource::new(Cow::Borrowed("json"), Cow::Borrowed("")), err_location: location, advice: None, @@ -287,34 +125,16 @@ impl From for ParseError { } } -impl TryFrom> for SerDeError { - type Error = atrium_api::xrpc::error::Error; - fn try_from(err: atrium_api::xrpc::error::Error) -> Result { - match err { - atrium_api::xrpc::error::Error::SerdeJson(e) => Ok(Self::from(e)), - atrium_api::xrpc::error::Error::SerdeHtmlForm(e) => Ok(Self::from(e)), - _ => Err(err), - } - } -} - fn offset_to_line_col(offset: usize, src: &NamedSource>) -> (usize, usize) { let mut acc_chars = 0usize; - // Noting that I am using `split_inclusive('\n')` rather than `lines()` - // because `lines()` doesn't include the line endings, so it screws up the - // line/column calculations. for (i, line) in src.inner().split_inclusive('\n').enumerate() { acc_chars += line.len(); - // We go by line because it's efficient, so we go past the point - // indicated by the offset, and then we figure out where it is in the - // line. if offset < acc_chars { let mut col = 0usize; let line_offset = offset - acc_chars; for (byte_idx, _) in line.char_indices() { if byte_idx >= line_offset { - // i + 1 because lines are 1-indexed return (i + 1, col); } col += 1; diff --git a/crates/weaver-common/src/filestore.rs b/crates/weaver-common/src/filestore.rs deleted file mode 100644 index 9fb3092..0000000 --- a/crates/weaver-common/src/filestore.rs +++ /dev/null @@ -1,187 +0,0 @@ -use crate::Error; -use crate::error::WeaverErrorKind; -use crate::error::{IoError, SerDeError}; -use atrium_api::types::string::Did; -use atrium_common::store::Store; -use atrium_oauth::store::session::Session; -use atrium_oauth::store::state::InternalStateData; -use std::path::{Path, PathBuf}; - -pub struct SimpleJsonFileSessionStore -where - T: AsRef, -{ - path: T, -} - -impl SimpleJsonFileSessionStore -where - T: AsRef, -{ - pub fn new(path: T) -> Self { - Self { path } - } - - pub async fn get_session(&self, did: &Did) -> Result, Error> { - let path = self - .path - .as_ref() - .join(format!("{}_session.json", did.as_str())); - let file = tokio::fs::read_to_string(path) - .await - .map_err(|e| Error::new(vec![WeaverErrorKind::from(IoError::from(e))])); - let file = if let Err(e) = &file { - println!("Failed to read session file: {e}"); - return Ok(None); - } else { - file? - }; - - let session = serde_json::from_str(&file) - .map_err(|e| Error::new(vec![WeaverErrorKind::from(SerDeError::from(e))]))?; - Ok(Some(session)) - } - - pub async fn set_session(&self, did: Did, session: Session) -> Result<(), Error> { - let path = self - .path - .as_ref() - .join(format!("{}_session.json", did.as_str())); - let file = serde_json::to_string(&session) - .map_err(|e| Error::new(vec![WeaverErrorKind::from(SerDeError::from(e))]))?; - - tokio::fs::write(path, file) - .await - .map_err(|e| Error::new(vec![WeaverErrorKind::from(IoError::from(e))]))?; - - Ok(()) - } - - pub async fn get_state(&self, key: &str) -> Result, Error> { - let path = self.path.as_ref().join(format!("{}_state.json", key)); - let file = tokio::fs::read_to_string(path) - .await - .map_err(|e| Error::new(vec![WeaverErrorKind::from(IoError::from(e))])); - let file = if let Err(e) = &file { - println!("Failed to read state file: {e}"); - return Ok(None); - } else { - file? - }; - let state = serde_json::from_str(&file) - .map_err(|e| Error::new(vec![WeaverErrorKind::from(SerDeError::from(e))]))?; - Ok(Some(state)) - } - - pub async fn set_state(&self, key: String, state: InternalStateData) -> Result<(), Error> { - let path = self.path.as_ref().join(format!("{}_state.json", key)); - - let file = serde_json::to_string(&state) - .map_err(|e| Error::new(vec![WeaverErrorKind::from(SerDeError::from(e))]))?; - - tokio::fs::write(path, file) - .await - .map_err(|e| Error::new(vec![WeaverErrorKind::from(IoError::from(e))]))?; - - Ok(()) - } -} - -impl Store for SimpleJsonFileSessionStore { - type Error = crate::Error; - - async fn get(&self, key: &Did) -> Result, Self::Error> { - self.get_session(key).await - } - - async fn set(&self, key: Did, value: Session) -> Result<(), Self::Error> { - self.set_session(key, value).await - } - - async fn del(&self, key: &Did) -> Result<(), Self::Error> { - let path = self.path.join(format!("{}_session.json", key.as_str())); - tokio::fs::remove_file(path) - .await - .map_err(|e| Error::new(vec![WeaverErrorKind::from(IoError::from(e))])) - } - - async fn clear(&self) -> Result<(), Self::Error> { - let mut files = tokio::fs::read_dir(&self.path) - .await - .map_err(|e| Error::new(vec![WeaverErrorKind::from(IoError::from(e))]))?; - while let Some(entry) = files - .next_entry() - .await - .map_err(|e| Error::new(vec![WeaverErrorKind::from(IoError::from(e))]))? - { - let file_name = entry.file_name(); - if let Some(file_name) = file_name.to_str() { - if file_name.ends_with("_session.json") { - tokio::fs::remove_file(entry.path()) - .await - .map_err(|e| Error::new(vec![WeaverErrorKind::from(IoError::from(e))]))?; - } - } - } - Ok(()) - } -} - -impl Store for SimpleJsonFileSessionStore { - type Error = crate::Error; - - async fn get(&self, key: &String) -> Result, Self::Error> { - self.get_state(key.as_str()).await - } - - async fn set(&self, key: String, value: InternalStateData) -> Result<(), Self::Error> { - self.set_state(key, value).await - } - - async fn del(&self, key: &String) -> Result<(), Self::Error> { - let path = self.path.join(format!("{}_state.json", key.as_str())); - tokio::fs::remove_file(path) - .await - .map_err(|e| Error::new(vec![WeaverErrorKind::from(IoError::from(e))])) - } - - async fn clear(&self) -> Result<(), Self::Error> { - let mut files = tokio::fs::read_dir(&self.path) - .await - .map_err(|e| Error::new(vec![WeaverErrorKind::from(IoError::from(e))]))?; - while let Some(entry) = files - .next_entry() - .await - .map_err(|e| Error::new(vec![WeaverErrorKind::from(IoError::from(e))]))? - { - let file_name = &entry.file_name(); - if let Some(file_name) = file_name.to_str() { - if file_name.ends_with("_state.json") { - tokio::fs::remove_file(entry.path()) - .await - .map_err(|e| Error::new(vec![WeaverErrorKind::from(IoError::from(e))]))?; - } - } - } - Ok(()) - } -} - -impl atrium_oauth::store::session::SessionStore for SimpleJsonFileSessionStore {} - -impl atrium_oauth::store::state::StateStore for SimpleJsonFileSessionStore {} - -impl Default for SimpleJsonFileSessionStore { - fn default() -> Self { - let path = dirs::config_dir() - .unwrap_or_else(|| PathBuf::from("./")) - .join("weaver/sessions"); - Self { path } - } -} - -pub fn config_dir() -> PathBuf { - dirs::config_dir() - .unwrap_or_else(|| PathBuf::from("./")) - .join("weaver/sessions") -} diff --git a/crates/weaver-common/src/lexicons/app.rs b/crates/weaver-common/src/lexicons/app.rs deleted file mode 100644 index c8d18b3..0000000 --- a/crates/weaver-common/src/lexicons/app.rs +++ /dev/null @@ -1,3 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app` namespace. -pub mod bsky; diff --git a/crates/weaver-common/src/lexicons/app/bsky.rs b/crates/weaver-common/src/lexicons/app/bsky.rs deleted file mode 100644 index f5d6a44..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky.rs +++ /dev/null @@ -1,11 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky` namespace. -pub mod actor; -pub mod embed; -pub mod feed; -pub mod graph; -pub mod labeler; -pub mod notification; -pub mod richtext; -pub mod unspecced; -pub mod video; diff --git a/crates/weaver-common/src/lexicons/app/bsky/actor.rs b/crates/weaver-common/src/lexicons/app/bsky/actor.rs deleted file mode 100644 index 1098e14..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/actor.rs +++ /dev/null @@ -1,24 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.actor` namespace. -pub mod defs; -pub mod get_preferences; -pub mod get_profile; -pub mod get_profiles; -pub mod get_suggestions; -pub mod profile; -pub mod put_preferences; -pub mod search_actors; -pub mod search_actors_typeahead; -pub mod status; -#[derive(Debug)] -pub struct Profile; -impl atrium_api::types::Collection for Profile { - const NSID: &'static str = "app.bsky.actor.profile"; - type Record = profile::Record; -} -#[derive(Debug)] -pub struct Status; -impl atrium_api::types::Collection for Status { - const NSID: &'static str = "app.bsky.actor.status"; - type Record = status::Record; -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/actor/defs.rs b/crates/weaver-common/src/lexicons/app/bsky/actor/defs.rs deleted file mode 100644 index d4554d7..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/actor/defs.rs +++ /dev/null @@ -1,455 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.actor.defs` namespace. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct AdultContentPrefData { - pub enabled: bool, -} -pub type AdultContentPref = atrium_api::types::Object; -///If set, an active progress guide. Once completed, can be set to undefined. Should have unspecced fields tracking progress. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct BskyAppProgressGuideData { - pub guide: String, -} -pub type BskyAppProgressGuide = atrium_api::types::Object; -///A grab bag of state that's specific to the bsky.app program. Third-party apps shouldn't use this. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct BskyAppStatePrefData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub active_progress_guide: core::option::Option, - ///Storage for NUXs the user has encountered. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub nuxs: core::option::Option>, - ///An array of tokens which identify nudges (modals, popups, tours, highlight dots) that should be shown to the user. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub queued_nudges: core::option::Option>, -} -pub type BskyAppStatePref = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ContentLabelPrefData { - pub label: String, - ///Which labeler does this preference apply to? If undefined, applies globally. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labeler_did: core::option::Option, - pub visibility: String, -} -pub type ContentLabelPref = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct FeedViewPrefData { - ///The URI of the feed, or an identifier which describes the feed. - pub feed: String, - ///Hide quote posts in the feed. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub hide_quote_posts: core::option::Option, - ///Hide replies in the feed. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub hide_replies: core::option::Option, - ///Hide replies in the feed if they do not have this number of likes. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub hide_replies_by_like_count: core::option::Option, - ///Hide replies in the feed if they are not by followed users. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub hide_replies_by_unfollowed: core::option::Option, - ///Hide reposts in the feed. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub hide_reposts: core::option::Option, -} -pub type FeedViewPref = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct HiddenPostsPrefData { - ///A list of URIs of posts the account owner has hidden. - pub items: Vec, -} -pub type HiddenPostsPref = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InterestsPrefData { - ///A list of tags which describe the account owner's interests gathered during onboarding. - pub tags: Vec, -} -pub type InterestsPref = atrium_api::types::Object; -///The subject's followers whom you also follow -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct KnownFollowersData { - pub count: i64, - pub followers: Vec, -} -pub type KnownFollowers = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LabelerPrefItemData { - pub did: atrium_api::types::string::Did, -} -pub type LabelerPrefItem = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LabelersPrefData { - pub labelers: Vec, -} -pub type LabelersPref = atrium_api::types::Object; -///A word that the account owner has muted. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MutedWordData { - ///Groups of users to apply the muted word to. If undefined, applies to all users. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub actor_target: core::option::Option, - ///The date and time at which the muted word will expire and no longer be applied. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub expires_at: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub id: core::option::Option, - ///The intended targets of the muted word. - pub targets: Vec, - ///The muted word itself. - pub value: String, -} -pub type MutedWord = atrium_api::types::Object; -pub type MutedWordTarget = String; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MutedWordsPrefData { - ///A list of words the account owner has muted. - pub items: Vec, -} -pub type MutedWordsPref = atrium_api::types::Object; -///A new user experiences (NUX) storage object -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct NuxData { - pub completed: bool, - ///Arbitrary data for the NUX. The structure is defined by the NUX itself. Limited to 300 characters. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub data: core::option::Option, - ///The date and time at which the NUX will expire and should be considered completed. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub expires_at: core::option::Option, - pub id: String, -} -pub type Nux = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct PersonalDetailsPrefData { - ///The birth date of account owner. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub birth_date: core::option::Option, -} -pub type PersonalDetailsPref = atrium_api::types::Object; -///Default post interaction settings for the account. These values should be applied as default values when creating new posts. These refs should mirror the threadgate and postgate records exactly. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct PostInteractionSettingsPrefData { - ///Matches postgate record. List of rules defining who can embed this users posts. If value is an empty array or is undefined, no particular rules apply and anyone can embed. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub postgate_embedding_rules: core::option::Option< - Vec< - atrium_api::types::Union< - PostInteractionSettingsPrefPostgateEmbeddingRulesItem, - >, - >, - >, - ///Matches threadgate record. List of rules defining who can reply to this users posts. If value is an empty array, no one can reply. If value is undefined, anyone can reply. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub threadgate_allow_rules: core::option::Option< - Vec< - atrium_api::types::Union, - >, - >, -} -pub type PostInteractionSettingsPref = atrium_api::types::Object< - PostInteractionSettingsPrefData, ->; -pub type Preferences = Vec>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ProfileAssociatedData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub chat: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub feedgens: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labeler: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub lists: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub starter_packs: core::option::Option, -} -pub type ProfileAssociated = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ProfileAssociatedChatData { - pub allow_incoming: String, -} -pub type ProfileAssociatedChat = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ProfileViewData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub associated: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub avatar: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub created_at: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description: core::option::Option, - pub did: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub display_name: core::option::Option, - pub handle: atrium_api::types::string::Handle, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub indexed_at: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub status: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub verification: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub viewer: core::option::Option, -} -pub type ProfileView = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ProfileViewBasicData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub associated: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub avatar: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub created_at: core::option::Option, - pub did: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub display_name: core::option::Option, - pub handle: atrium_api::types::string::Handle, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub status: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub verification: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub viewer: core::option::Option, -} -pub type ProfileViewBasic = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ProfileViewDetailedData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub associated: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub avatar: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub banner: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub created_at: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description: core::option::Option, - pub did: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub display_name: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub followers_count: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub follows_count: core::option::Option, - pub handle: atrium_api::types::string::Handle, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub indexed_at: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub joined_via_starter_pack: core::option::Option< - crate::app::bsky::graph::defs::StarterPackViewBasic, - >, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub pinned_post: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub posts_count: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub status: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub verification: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub viewer: core::option::Option, -} -pub type ProfileViewDetailed = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct SavedFeedData { - pub id: String, - pub pinned: bool, - pub r#type: String, - pub value: String, -} -pub type SavedFeed = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct SavedFeedsPrefData { - pub pinned: Vec, - pub saved: Vec, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub timeline_index: core::option::Option, -} -pub type SavedFeedsPref = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct SavedFeedsPrefV2Data { - pub items: Vec, -} -pub type SavedFeedsPrefV2 = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct StatusViewData { - ///An optional embed associated with the status. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub embed: core::option::Option>, - ///The date when this status will expire. The application might choose to no longer return the status after expiration. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub expires_at: core::option::Option, - ///True if the status is not expired, false if it is expired. Only present if expiration was set. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub is_active: core::option::Option, - pub record: atrium_api::types::Unknown, - ///The status for the account. - pub status: String, -} -pub type StatusView = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ThreadViewPrefData { - ///Show followed users at the top of all replies. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub prioritize_followed_users: core::option::Option, - ///Sorting mode for threads. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub sort: core::option::Option, -} -pub type ThreadViewPref = atrium_api::types::Object; -///Preferences for how verified accounts appear in the app. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct VerificationPrefsData { - ///Hide the blue check badges for verified accounts and trusted verifiers. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub hide_badges: core::option::Option, -} -pub type VerificationPrefs = atrium_api::types::Object; -///Represents the verification information about the user this object is attached to. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct VerificationStateData { - ///The user's status as a trusted verifier. - pub trusted_verifier_status: String, - ///All verifications issued by trusted verifiers on behalf of this user. Verifications by untrusted verifiers are not included. - pub verifications: Vec, - ///The user's status as a verified account. - pub verified_status: String, -} -pub type VerificationState = atrium_api::types::Object; -///An individual verification for an associated subject. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct VerificationViewData { - ///Timestamp when the verification was created. - pub created_at: atrium_api::types::string::Datetime, - ///True if the verification passes validation, otherwise false. - pub is_valid: bool, - ///The user who issued this verification. - pub issuer: atrium_api::types::string::Did, - ///The AT-URI of the verification record. - pub uri: String, -} -pub type VerificationView = atrium_api::types::Object; -///Metadata about the requesting account's relationship with the subject account. Only has meaningful content for authed requests. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ViewerStateData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub blocked_by: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub blocking: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub blocking_by_list: core::option::Option< - crate::app::bsky::graph::defs::ListViewBasic, - >, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub followed_by: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub following: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub known_followers: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub muted: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub muted_by_list: core::option::Option< - crate::app::bsky::graph::defs::ListViewBasic, - >, -} -pub type ViewerState = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum PostInteractionSettingsPrefPostgateEmbeddingRulesItem { - #[serde(rename = "app.bsky.feed.postgate#disableRule")] - AppBskyFeedPostgateDisableRule(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum PostInteractionSettingsPrefThreadgateAllowRulesItem { - #[serde(rename = "app.bsky.feed.threadgate#mentionRule")] - AppBskyFeedThreadgateMentionRule( - Box, - ), - #[serde(rename = "app.bsky.feed.threadgate#followerRule")] - AppBskyFeedThreadgateFollowerRule( - Box, - ), - #[serde(rename = "app.bsky.feed.threadgate#followingRule")] - AppBskyFeedThreadgateFollowingRule( - Box, - ), - #[serde(rename = "app.bsky.feed.threadgate#listRule")] - AppBskyFeedThreadgateListRule(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum PreferencesItem { - #[serde(rename = "app.bsky.actor.defs#adultContentPref")] - AdultContentPref(Box), - #[serde(rename = "app.bsky.actor.defs#contentLabelPref")] - ContentLabelPref(Box), - #[serde(rename = "app.bsky.actor.defs#savedFeedsPref")] - SavedFeedsPref(Box), - #[serde(rename = "app.bsky.actor.defs#savedFeedsPrefV2")] - SavedFeedsPrefV2(Box), - #[serde(rename = "app.bsky.actor.defs#personalDetailsPref")] - PersonalDetailsPref(Box), - #[serde(rename = "app.bsky.actor.defs#feedViewPref")] - FeedViewPref(Box), - #[serde(rename = "app.bsky.actor.defs#threadViewPref")] - ThreadViewPref(Box), - #[serde(rename = "app.bsky.actor.defs#interestsPref")] - InterestsPref(Box), - #[serde(rename = "app.bsky.actor.defs#mutedWordsPref")] - MutedWordsPref(Box), - #[serde(rename = "app.bsky.actor.defs#hiddenPostsPref")] - HiddenPostsPref(Box), - #[serde(rename = "app.bsky.actor.defs#bskyAppStatePref")] - BskyAppStatePref(Box), - #[serde(rename = "app.bsky.actor.defs#labelersPref")] - LabelersPref(Box), - #[serde(rename = "app.bsky.actor.defs#postInteractionSettingsPref")] - PostInteractionSettingsPref(Box), - #[serde(rename = "app.bsky.actor.defs#verificationPrefs")] - VerificationPrefs(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum StatusViewEmbedRefs { - #[serde(rename = "app.bsky.embed.external#view")] - AppBskyEmbedExternalView(Box), -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/actor/get_preferences.rs b/crates/weaver-common/src/lexicons/app/bsky/actor/get_preferences.rs deleted file mode 100644 index cc8ed58..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/actor/get_preferences.rs +++ /dev/null @@ -1,21 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.actor.getPreferences` namespace. -pub const NSID: &str = "app.bsky.actor.getPreferences"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData {} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub preferences: crate::app::bsky::actor::defs::Preferences, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/actor/get_profile.rs b/crates/weaver-common/src/lexicons/app/bsky/actor/get_profile.rs deleted file mode 100644 index 6f7b3dd..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/actor/get_profile.rs +++ /dev/null @@ -1,19 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.actor.getProfile` namespace. -pub const NSID: &str = "app.bsky.actor.getProfile"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///Handle or DID of account to fetch profile of. - pub actor: atrium_api::types::string::AtIdentifier, -} -pub type Parameters = atrium_api::types::Object; -pub type Output = crate::app::bsky::actor::defs::ProfileViewDetailed; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/actor/get_profiles.rs b/crates/weaver-common/src/lexicons/app/bsky/actor/get_profiles.rs deleted file mode 100644 index b6292bf..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/actor/get_profiles.rs +++ /dev/null @@ -1,23 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.actor.getProfiles` namespace. -pub const NSID: &str = "app.bsky.actor.getProfiles"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub actors: Vec, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub profiles: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/actor/get_suggestions.rs b/crates/weaver-common/src/lexicons/app/bsky/actor/get_suggestions.rs deleted file mode 100644 index 3a5c244..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/actor/get_suggestions.rs +++ /dev/null @@ -1,31 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.actor.getSuggestions` namespace. -pub const NSID: &str = "app.bsky.actor.getSuggestions"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub actors: Vec, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - ///Snowflake for this recommendation, use when submitting recommendation events. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub rec_id: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/actor/profile.rs b/crates/weaver-common/src/lexicons/app/bsky/actor/profile.rs deleted file mode 100644 index 067a3b6..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/actor/profile.rs +++ /dev/null @@ -1,41 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.actor.profile` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - ///Small image to be displayed next to posts from account. AKA, 'profile picture' - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub avatar: core::option::Option, - ///Larger horizontal image to display behind profile view. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub banner: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub created_at: core::option::Option, - ///Free-form profile description text. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub display_name: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub joined_via_starter_pack: core::option::Option< - crate::com::atproto::repo::strong_ref::Main, - >, - ///Self-label values, specific to the Bluesky application, on the overall account. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub pinned_post: core::option::Option, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum RecordLabelsRefs { - #[serde(rename = "com.atproto.label.defs#selfLabels")] - ComAtprotoLabelDefsSelfLabels(Box), -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/actor/put_preferences.rs b/crates/weaver-common/src/lexicons/app/bsky/actor/put_preferences.rs deleted file mode 100644 index 06873df..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/actor/put_preferences.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.actor.putPreferences` namespace. -pub const NSID: &str = "app.bsky.actor.putPreferences"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub preferences: crate::app::bsky::actor::defs::Preferences, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/actor/search_actors.rs b/crates/weaver-common/src/lexicons/app/bsky/actor/search_actors.rs deleted file mode 100644 index 8dd85df..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/actor/search_actors.rs +++ /dev/null @@ -1,34 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.actor.searchActors` namespace. -pub const NSID: &str = "app.bsky.actor.searchActors"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///Search query string. Syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub q: core::option::Option, - ///DEPRECATED: use 'q' instead. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub term: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub actors: Vec, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/actor/search_actors_typeahead.rs b/crates/weaver-common/src/lexicons/app/bsky/actor/search_actors_typeahead.rs deleted file mode 100644 index 4abc021..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/actor/search_actors_typeahead.rs +++ /dev/null @@ -1,30 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.actor.searchActorsTypeahead` namespace. -pub const NSID: &str = "app.bsky.actor.searchActorsTypeahead"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///Search query prefix; not a full query string. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub q: core::option::Option, - ///DEPRECATED: use 'q' instead. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub term: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub actors: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/actor/status.rs b/crates/weaver-common/src/lexicons/app/bsky/actor/status.rs deleted file mode 100644 index 5834d63..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/actor/status.rs +++ /dev/null @@ -1,30 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.actor.status` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - pub created_at: atrium_api::types::string::Datetime, - ///The duration of the status in minutes. Applications can choose to impose minimum and maximum limits. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub duration_minutes: core::option::Option, - ///An optional embed associated with the status. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub embed: core::option::Option>, - ///The status for the account. - pub status: String, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} -///Advertises an account as currently offering live content. -pub const LIVE: &str = "app.bsky.actor.status#live"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum RecordEmbedRefs { - #[serde(rename = "app.bsky.embed.external")] - AppBskyEmbedExternalMain(Box), -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/embed.rs b/crates/weaver-common/src/lexicons/app/bsky/embed.rs deleted file mode 100644 index c68b8e0..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/embed.rs +++ /dev/null @@ -1,8 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.embed` namespace. -pub mod defs; -pub mod external; -pub mod images; -pub mod record; -pub mod record_with_media; -pub mod video; diff --git a/crates/weaver-common/src/lexicons/app/bsky/embed/defs.rs b/crates/weaver-common/src/lexicons/app/bsky/embed/defs.rs deleted file mode 100644 index 48cd038..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/embed/defs.rs +++ /dev/null @@ -1,10 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.embed.defs` namespace. -///width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct AspectRatioData { - pub height: core::num::NonZeroU64, - pub width: core::num::NonZeroU64, -} -pub type AspectRatio = atrium_api::types::Object; diff --git a/crates/weaver-common/src/lexicons/app/bsky/embed/external.rs b/crates/weaver-common/src/lexicons/app/bsky/embed/external.rs deleted file mode 100644 index 46ff548..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/embed/external.rs +++ /dev/null @@ -1,35 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.embed.external` namespace. -///A representation of some externally linked content (eg, a URL and 'card'), embedded in a Bluesky record (eg, a post). -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MainData { - pub external: External, -} -pub type Main = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ExternalData { - pub description: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub thumb: core::option::Option, - pub title: String, - pub uri: String, -} -pub type External = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ViewData { - pub external: ViewExternal, -} -pub type View = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ViewExternalData { - pub description: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub thumb: core::option::Option, - pub title: String, - pub uri: String, -} -pub type ViewExternal = atrium_api::types::Object; diff --git a/crates/weaver-common/src/lexicons/app/bsky/embed/images.rs b/crates/weaver-common/src/lexicons/app/bsky/embed/images.rs deleted file mode 100644 index f95cf2d..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/embed/images.rs +++ /dev/null @@ -1,38 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.embed.images` namespace. -//!A set of images embedded in a Bluesky record (eg, a post). -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MainData { - pub images: Vec, -} -pub type Main = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ImageData { - ///Alt text description of the image, for accessibility. - pub alt: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub aspect_ratio: core::option::Option, - pub image: atrium_api::types::BlobRef, -} -pub type Image = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ViewData { - pub images: Vec, -} -pub type View = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ViewImageData { - ///Alt text description of the image, for accessibility. - pub alt: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub aspect_ratio: core::option::Option, - ///Fully-qualified URL where a large version of the image can be fetched. May or may not be the exact original blob. For example, CDN location provided by the App View. - pub fullsize: String, - ///Fully-qualified URL where a thumbnail of the image can be fetched. For example, CDN location provided by the App View. - pub thumb: String, -} -pub type ViewImage = atrium_api::types::Object; diff --git a/crates/weaver-common/src/lexicons/app/bsky/embed/record.rs b/crates/weaver-common/src/lexicons/app/bsky/embed/record.rs deleted file mode 100644 index 8f7d53a..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/embed/record.rs +++ /dev/null @@ -1,100 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.embed.record` namespace. -//!A representation of a record embedded in a Bluesky record (eg, a post). For example, a quote-post, or sharing a feed generator record. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MainData { - pub record: crate::com::atproto::repo::strong_ref::Main, -} -pub type Main = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ViewData { - pub record: atrium_api::types::Union, -} -pub type View = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ViewBlockedData { - pub author: crate::app::bsky::feed::defs::BlockedAuthor, - pub blocked: bool, - pub uri: String, -} -pub type ViewBlocked = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ViewDetachedData { - pub detached: bool, - pub uri: String, -} -pub type ViewDetached = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ViewNotFoundData { - pub not_found: bool, - pub uri: String, -} -pub type ViewNotFound = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ViewRecordData { - pub author: crate::app::bsky::actor::defs::ProfileViewBasic, - pub cid: atrium_api::types::string::Cid, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub embeds: core::option::Option< - Vec>, - >, - pub indexed_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub like_count: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub quote_count: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub reply_count: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub repost_count: core::option::Option, - pub uri: String, - ///The record data itself. - pub value: atrium_api::types::Unknown, -} -pub type ViewRecord = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum ViewRecordEmbedsItem { - #[serde(rename = "app.bsky.embed.images#view")] - AppBskyEmbedImagesView(Box), - #[serde(rename = "app.bsky.embed.video#view")] - AppBskyEmbedVideoView(Box), - #[serde(rename = "app.bsky.embed.external#view")] - AppBskyEmbedExternalView(Box), - #[serde(rename = "app.bsky.embed.record#view")] - AppBskyEmbedRecordView(Box), - #[serde(rename = "app.bsky.embed.recordWithMedia#view")] - AppBskyEmbedRecordWithMediaView( - Box, - ), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum ViewRecordRefs { - #[serde(rename = "app.bsky.embed.record#viewRecord")] - ViewRecord(Box), - #[serde(rename = "app.bsky.embed.record#viewNotFound")] - ViewNotFound(Box), - #[serde(rename = "app.bsky.embed.record#viewBlocked")] - ViewBlocked(Box), - #[serde(rename = "app.bsky.embed.record#viewDetached")] - ViewDetached(Box), - #[serde(rename = "app.bsky.feed.defs#generatorView")] - AppBskyFeedDefsGeneratorView(Box), - #[serde(rename = "app.bsky.graph.defs#listView")] - AppBskyGraphDefsListView(Box), - #[serde(rename = "app.bsky.labeler.defs#labelerView")] - AppBskyLabelerDefsLabelerView(Box), - #[serde(rename = "app.bsky.graph.defs#starterPackViewBasic")] - AppBskyGraphDefsStarterPackViewBasic( - Box, - ), -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/embed/record_with_media.rs b/crates/weaver-common/src/lexicons/app/bsky/embed/record_with_media.rs deleted file mode 100644 index 6ca6313..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/embed/record_with_media.rs +++ /dev/null @@ -1,37 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.embed.recordWithMedia` namespace. -//!A representation of a record embedded in a Bluesky record (eg, a post), alongside other compatible embeds. For example, a quote post and image, or a quote post and external URL card. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MainData { - pub media: atrium_api::types::Union, - pub record: crate::app::bsky::embed::record::Main, -} -pub type Main = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ViewData { - pub media: atrium_api::types::Union, - pub record: crate::app::bsky::embed::record::View, -} -pub type View = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum MainMediaRefs { - #[serde(rename = "app.bsky.embed.images")] - AppBskyEmbedImagesMain(Box), - #[serde(rename = "app.bsky.embed.video")] - AppBskyEmbedVideoMain(Box), - #[serde(rename = "app.bsky.embed.external")] - AppBskyEmbedExternalMain(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum ViewMediaRefs { - #[serde(rename = "app.bsky.embed.images#view")] - AppBskyEmbedImagesView(Box), - #[serde(rename = "app.bsky.embed.video#view")] - AppBskyEmbedVideoView(Box), - #[serde(rename = "app.bsky.embed.external#view")] - AppBskyEmbedExternalView(Box), -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/embed/video.rs b/crates/weaver-common/src/lexicons/app/bsky/embed/video.rs deleted file mode 100644 index c78b569..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/embed/video.rs +++ /dev/null @@ -1,37 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.embed.video` namespace. -//!A video embedded in a Bluesky record (eg, a post). -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MainData { - ///Alt text description of the video, for accessibility. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub alt: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub aspect_ratio: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub captions: core::option::Option>, - ///The mp4 video file. May be up to 100mb, formerly limited to 50mb. - pub video: atrium_api::types::BlobRef, -} -pub type Main = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct CaptionData { - pub file: atrium_api::types::BlobRef, - pub lang: atrium_api::types::string::Language, -} -pub type Caption = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ViewData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub alt: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub aspect_ratio: core::option::Option, - pub cid: atrium_api::types::string::Cid, - pub playlist: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub thumbnail: core::option::Option, -} -pub type View = atrium_api::types::Object; diff --git a/crates/weaver-common/src/lexicons/app/bsky/feed.rs b/crates/weaver-common/src/lexicons/app/bsky/feed.rs deleted file mode 100644 index 8382798..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/feed.rs +++ /dev/null @@ -1,63 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed` namespace. -pub mod defs; -pub mod describe_feed_generator; -pub mod 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_feed_skeleton; -pub mod get_likes; -pub mod get_list_feed; -pub mod get_post_thread; -pub mod get_posts; -pub mod get_quotes; -pub mod get_reposted_by; -pub mod get_suggested_feeds; -pub mod get_timeline; -pub mod like; -pub mod post; -pub mod postgate; -pub mod repost; -pub mod search_posts; -pub mod send_interactions; -pub mod threadgate; -#[derive(Debug)] -pub struct Generator; -impl atrium_api::types::Collection for Generator { - const NSID: &'static str = "app.bsky.feed.generator"; - type Record = generator::Record; -} -#[derive(Debug)] -pub struct Like; -impl atrium_api::types::Collection for Like { - const NSID: &'static str = "app.bsky.feed.like"; - type Record = like::Record; -} -#[derive(Debug)] -pub struct Post; -impl atrium_api::types::Collection for Post { - const NSID: &'static str = "app.bsky.feed.post"; - type Record = post::Record; -} -#[derive(Debug)] -pub struct Postgate; -impl atrium_api::types::Collection for Postgate { - const NSID: &'static str = "app.bsky.feed.postgate"; - type Record = postgate::Record; -} -#[derive(Debug)] -pub struct Repost; -impl atrium_api::types::Collection for Repost { - const NSID: &'static str = "app.bsky.feed.repost"; - type Record = repost::Record; -} -#[derive(Debug)] -pub struct Threadgate; -impl atrium_api::types::Collection for Threadgate { - const NSID: &'static str = "app.bsky.feed.threadgate"; - type Record = threadgate::Record; -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/feed/defs.rs b/crates/weaver-common/src/lexicons/app/bsky/feed/defs.rs deleted file mode 100644 index cf025c0..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/feed/defs.rs +++ /dev/null @@ -1,321 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.defs` namespace. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct BlockedAuthorData { - pub did: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub viewer: core::option::Option, -} -pub type BlockedAuthor = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct BlockedPostData { - pub author: BlockedAuthor, - pub blocked: bool, - pub uri: String, -} -pub type BlockedPost = atrium_api::types::Object; -///User clicked through to the author of the feed item -pub const CLICKTHROUGH_AUTHOR: &str = "app.bsky.feed.defs#clickthroughAuthor"; -///User clicked through to the embedded content of the feed item -pub const CLICKTHROUGH_EMBED: &str = "app.bsky.feed.defs#clickthroughEmbed"; -///User clicked through to the feed item -pub const CLICKTHROUGH_ITEM: &str = "app.bsky.feed.defs#clickthroughItem"; -///User clicked through to the reposter of the feed item -pub const CLICKTHROUGH_REPOSTER: &str = "app.bsky.feed.defs#clickthroughReposter"; -///Declares the feed generator returns any types of posts. -pub const CONTENT_MODE_UNSPECIFIED: &str = "app.bsky.feed.defs#contentModeUnspecified"; -///Declares the feed generator returns posts containing app.bsky.embed.video embeds. -pub const CONTENT_MODE_VIDEO: &str = "app.bsky.feed.defs#contentModeVideo"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct FeedViewPostData { - ///Context provided by feed generator that may be passed back alongside interactions. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub feed_context: core::option::Option, - pub post: PostView, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub reason: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub reply: core::option::Option, - ///Unique identifier per request that may be passed back alongside interactions. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub req_id: core::option::Option, -} -pub type FeedViewPost = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct GeneratorViewData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub accepts_interactions: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub avatar: core::option::Option, - pub cid: atrium_api::types::string::Cid, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub content_mode: core::option::Option, - pub creator: crate::app::bsky::actor::defs::ProfileView, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description_facets: core::option::Option< - Vec, - >, - pub did: atrium_api::types::string::Did, - pub display_name: String, - pub indexed_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub like_count: core::option::Option, - pub uri: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub viewer: core::option::Option, -} -pub type GeneratorView = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct GeneratorViewerStateData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub like: core::option::Option, -} -pub type GeneratorViewerState = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InteractionData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub event: core::option::Option, - ///Context on a feed item that was originally supplied by the feed generator on getFeedSkeleton. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub feed_context: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub item: core::option::Option, - ///Unique identifier per request that may be passed back alongside interactions. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub req_id: core::option::Option, -} -pub type Interaction = atrium_api::types::Object; -///User liked the feed item -pub const INTERACTION_LIKE: &str = "app.bsky.feed.defs#interactionLike"; -///User quoted the feed item -pub const INTERACTION_QUOTE: &str = "app.bsky.feed.defs#interactionQuote"; -///User replied to the feed item -pub const INTERACTION_REPLY: &str = "app.bsky.feed.defs#interactionReply"; -///User reposted the feed item -pub const INTERACTION_REPOST: &str = "app.bsky.feed.defs#interactionRepost"; -///Feed item was seen by user -pub const INTERACTION_SEEN: &str = "app.bsky.feed.defs#interactionSeen"; -///User shared the feed item -pub const INTERACTION_SHARE: &str = "app.bsky.feed.defs#interactionShare"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct NotFoundPostData { - pub not_found: bool, - pub uri: String, -} -pub type NotFoundPost = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct PostViewData { - pub author: crate::app::bsky::actor::defs::ProfileViewBasic, - pub cid: atrium_api::types::string::Cid, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub embed: core::option::Option>, - pub indexed_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub like_count: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub quote_count: core::option::Option, - pub record: atrium_api::types::Unknown, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub reply_count: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub repost_count: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub threadgate: core::option::Option, - pub uri: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub viewer: core::option::Option, -} -pub type PostView = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ReasonPinData {} -pub type ReasonPin = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ReasonRepostData { - pub by: crate::app::bsky::actor::defs::ProfileViewBasic, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cid: core::option::Option, - pub indexed_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub uri: core::option::Option, -} -pub type ReasonRepost = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ReplyRefData { - ///When parent is a reply to another post, this is the author of that post. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub grandparent_author: core::option::Option< - crate::app::bsky::actor::defs::ProfileViewBasic, - >, - pub parent: atrium_api::types::Union, - pub root: atrium_api::types::Union, -} -pub type ReplyRef = atrium_api::types::Object; -///Request that less content like the given feed item be shown in the feed -pub const REQUEST_LESS: &str = "app.bsky.feed.defs#requestLess"; -///Request that more content like the given feed item be shown in the feed -pub const REQUEST_MORE: &str = "app.bsky.feed.defs#requestMore"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct SkeletonFeedPostData { - ///Context that will be passed through to client and may be passed to feed generator back alongside interactions. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub feed_context: core::option::Option, - pub post: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub reason: core::option::Option< - atrium_api::types::Union, - >, -} -pub type SkeletonFeedPost = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct SkeletonReasonPinData {} -pub type SkeletonReasonPin = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct SkeletonReasonRepostData { - pub repost: String, -} -pub type SkeletonReasonRepost = atrium_api::types::Object; -///Metadata about this post within the context of the thread it is in. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ThreadContextData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub root_author_like: core::option::Option, -} -pub type ThreadContext = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ThreadViewPostData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub parent: core::option::Option>, - pub post: PostView, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub replies: core::option::Option< - Vec>, - >, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub thread_context: core::option::Option, -} -pub type ThreadViewPost = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ThreadgateViewData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cid: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub lists: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub record: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub uri: core::option::Option, -} -pub type ThreadgateView = atrium_api::types::Object; -///Metadata about the requesting account's relationship with the subject content. Only has meaningful content for authed requests. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ViewerStateData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub embedding_disabled: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub like: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub pinned: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub reply_disabled: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub repost: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub thread_muted: core::option::Option, -} -pub type ViewerState = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum FeedViewPostReasonRefs { - #[serde(rename = "app.bsky.feed.defs#reasonRepost")] - ReasonRepost(Box), - #[serde(rename = "app.bsky.feed.defs#reasonPin")] - ReasonPin(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum PostViewEmbedRefs { - #[serde(rename = "app.bsky.embed.images#view")] - AppBskyEmbedImagesView(Box), - #[serde(rename = "app.bsky.embed.video#view")] - AppBskyEmbedVideoView(Box), - #[serde(rename = "app.bsky.embed.external#view")] - AppBskyEmbedExternalView(Box), - #[serde(rename = "app.bsky.embed.record#view")] - AppBskyEmbedRecordView(Box), - #[serde(rename = "app.bsky.embed.recordWithMedia#view")] - AppBskyEmbedRecordWithMediaView( - Box, - ), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum ReplyRefParentRefs { - #[serde(rename = "app.bsky.feed.defs#postView")] - PostView(Box), - #[serde(rename = "app.bsky.feed.defs#notFoundPost")] - NotFoundPost(Box), - #[serde(rename = "app.bsky.feed.defs#blockedPost")] - BlockedPost(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum ReplyRefRootRefs { - #[serde(rename = "app.bsky.feed.defs#postView")] - PostView(Box), - #[serde(rename = "app.bsky.feed.defs#notFoundPost")] - NotFoundPost(Box), - #[serde(rename = "app.bsky.feed.defs#blockedPost")] - BlockedPost(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum SkeletonFeedPostReasonRefs { - #[serde(rename = "app.bsky.feed.defs#skeletonReasonRepost")] - SkeletonReasonRepost(Box), - #[serde(rename = "app.bsky.feed.defs#skeletonReasonPin")] - SkeletonReasonPin(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum ThreadViewPostParentRefs { - #[serde(rename = "app.bsky.feed.defs#threadViewPost")] - ThreadViewPost(Box), - #[serde(rename = "app.bsky.feed.defs#notFoundPost")] - NotFoundPost(Box), - #[serde(rename = "app.bsky.feed.defs#blockedPost")] - BlockedPost(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum ThreadViewPostRepliesItem { - #[serde(rename = "app.bsky.feed.defs#threadViewPost")] - ThreadViewPost(Box), - #[serde(rename = "app.bsky.feed.defs#notFoundPost")] - NotFoundPost(Box), - #[serde(rename = "app.bsky.feed.defs#blockedPost")] - BlockedPost(Box), -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/feed/describe_feed_generator.rs b/crates/weaver-common/src/lexicons/app/bsky/feed/describe_feed_generator.rs deleted file mode 100644 index 25431fe..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/feed/describe_feed_generator.rs +++ /dev/null @@ -1,35 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.describeFeedGenerator` namespace. -pub const NSID: &str = "app.bsky.feed.describeFeedGenerator"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub did: atrium_api::types::string::Did, - pub feeds: Vec, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub links: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct FeedData { - pub uri: String, -} -pub type Feed = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LinksData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub privacy_policy: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub terms_of_service: core::option::Option, -} -pub type Links = atrium_api::types::Object; diff --git a/crates/weaver-common/src/lexicons/app/bsky/feed/generator.rs b/crates/weaver-common/src/lexicons/app/bsky/feed/generator.rs deleted file mode 100644 index 9b2817c..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/feed/generator.rs +++ /dev/null @@ -1,38 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.generator` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - ///Declaration that a feed accepts feedback interactions from a client through app.bsky.feed.sendInteractions - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub accepts_interactions: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub avatar: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub content_mode: core::option::Option, - pub created_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description_facets: core::option::Option< - Vec, - >, - pub did: atrium_api::types::string::Did, - pub display_name: String, - ///Self-label values - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum RecordLabelsRefs { - #[serde(rename = "com.atproto.label.defs#selfLabels")] - ComAtprotoLabelDefsSelfLabels(Box), -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/feed/get_actor_feeds.rs b/crates/weaver-common/src/lexicons/app/bsky/feed/get_actor_feeds.rs deleted file mode 100644 index 8275093..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/feed/get_actor_feeds.rs +++ /dev/null @@ -1,29 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.getActorFeeds` namespace. -pub const NSID: &str = "app.bsky.feed.getActorFeeds"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub actor: atrium_api::types::string::AtIdentifier, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub feeds: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/feed/get_actor_likes.rs b/crates/weaver-common/src/lexicons/app/bsky/feed/get_actor_likes.rs deleted file mode 100644 index d9c8d29..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/feed/get_actor_likes.rs +++ /dev/null @@ -1,46 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.getActorLikes` namespace. -pub const NSID: &str = "app.bsky.feed.getActorLikes"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub actor: atrium_api::types::string::AtIdentifier, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub feed: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - BlockedActor(Option), - BlockedByActor(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::BlockedActor(msg) => { - write!(_f, "BlockedActor")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::BlockedByActor(msg) => { - write!(_f, "BlockedByActor")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/feed/get_author_feed.rs b/crates/weaver-common/src/lexicons/app/bsky/feed/get_author_feed.rs deleted file mode 100644 index 3f8ab79..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/feed/get_author_feed.rs +++ /dev/null @@ -1,51 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.getAuthorFeed` namespace. -pub const NSID: &str = "app.bsky.feed.getAuthorFeed"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub actor: atrium_api::types::string::AtIdentifier, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - ///Combinations of post/repost types to include in response. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub filter: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub include_pins: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub feed: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - BlockedActor(Option), - BlockedByActor(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::BlockedActor(msg) => { - write!(_f, "BlockedActor")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::BlockedByActor(msg) => { - write!(_f, "BlockedByActor")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/feed/get_feed.rs b/crates/weaver-common/src/lexicons/app/bsky/feed/get_feed.rs deleted file mode 100644 index 8e59cc1..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/feed/get_feed.rs +++ /dev/null @@ -1,39 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.getFeed` namespace. -pub const NSID: &str = "app.bsky.feed.getFeed"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub feed: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub feed: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - UnknownFeed(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::UnknownFeed(msg) => { - write!(_f, "UnknownFeed")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/feed/get_feed_generator.rs b/crates/weaver-common/src/lexicons/app/bsky/feed/get_feed_generator.rs deleted file mode 100644 index d8a8944..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/feed/get_feed_generator.rs +++ /dev/null @@ -1,28 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.getFeedGenerator` namespace. -pub const NSID: &str = "app.bsky.feed.getFeedGenerator"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///AT-URI of the feed generator record. - pub feed: String, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - ///Indicates whether the feed generator service has been online recently, or else seems to be inactive. - pub is_online: bool, - ///Indicates whether the feed generator service is compatible with the record declaration. - pub is_valid: bool, - pub view: crate::app::bsky::feed::defs::GeneratorView, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/feed/get_feed_generators.rs b/crates/weaver-common/src/lexicons/app/bsky/feed/get_feed_generators.rs deleted file mode 100644 index b5eb607..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/feed/get_feed_generators.rs +++ /dev/null @@ -1,23 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.getFeedGenerators` namespace. -pub const NSID: &str = "app.bsky.feed.getFeedGenerators"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub feeds: Vec, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub feeds: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/feed/get_feed_skeleton.rs b/crates/weaver-common/src/lexicons/app/bsky/feed/get_feed_skeleton.rs deleted file mode 100644 index 560a6e3..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/feed/get_feed_skeleton.rs +++ /dev/null @@ -1,43 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.getFeedSkeleton` namespace. -pub const NSID: &str = "app.bsky.feed.getFeedSkeleton"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - ///Reference to feed generator record describing the specific feed being requested. - pub feed: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub feed: Vec, - ///Unique identifier per request that may be passed back alongside interactions. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub req_id: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - UnknownFeed(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::UnknownFeed(msg) => { - write!(_f, "UnknownFeed")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/feed/get_likes.rs b/crates/weaver-common/src/lexicons/app/bsky/feed/get_likes.rs deleted file mode 100644 index 7ac732b..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/feed/get_likes.rs +++ /dev/null @@ -1,44 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.getLikes` namespace. -pub const NSID: &str = "app.bsky.feed.getLikes"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///CID of the subject record (aka, specific version of record), to filter likes. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cid: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///AT-URI of the subject (eg, a post record). - pub uri: String, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cid: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub likes: Vec, - pub uri: String, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LikeData { - pub actor: crate::app::bsky::actor::defs::ProfileView, - pub created_at: atrium_api::types::string::Datetime, - pub indexed_at: atrium_api::types::string::Datetime, -} -pub type Like = atrium_api::types::Object; diff --git a/crates/weaver-common/src/lexicons/app/bsky/feed/get_list_feed.rs b/crates/weaver-common/src/lexicons/app/bsky/feed/get_list_feed.rs deleted file mode 100644 index 58475a3..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/feed/get_list_feed.rs +++ /dev/null @@ -1,40 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.getListFeed` namespace. -pub const NSID: &str = "app.bsky.feed.getListFeed"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///Reference (AT-URI) to the list record. - pub list: String, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub feed: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - UnknownList(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::UnknownList(msg) => { - write!(_f, "UnknownList")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/feed/get_post_thread.rs b/crates/weaver-common/src/lexicons/app/bsky/feed/get_post_thread.rs deleted file mode 100644 index f5f1a10..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/feed/get_post_thread.rs +++ /dev/null @@ -1,52 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.getPostThread` namespace. -pub const NSID: &str = "app.bsky.feed.getPostThread"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///How many levels of reply depth should be included in response. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub depth: core::option::Option>, - ///How many levels of parent (and grandparent, etc) post to include. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub parent_height: core::option::Option>, - ///Reference (AT-URI) to post record. - pub uri: String, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub thread: atrium_api::types::Union, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub threadgate: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - NotFound(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::NotFound(msg) => { - write!(_f, "NotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum OutputThreadRefs { - #[serde(rename = "app.bsky.feed.defs#threadViewPost")] - AppBskyFeedDefsThreadViewPost(Box), - #[serde(rename = "app.bsky.feed.defs#notFoundPost")] - AppBskyFeedDefsNotFoundPost(Box), - #[serde(rename = "app.bsky.feed.defs#blockedPost")] - AppBskyFeedDefsBlockedPost(Box), -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/feed/get_posts.rs b/crates/weaver-common/src/lexicons/app/bsky/feed/get_posts.rs deleted file mode 100644 index ea461e5..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/feed/get_posts.rs +++ /dev/null @@ -1,24 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.getPosts` namespace. -pub const NSID: &str = "app.bsky.feed.getPosts"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///List of post AT-URIs to return hydrated views for. - pub uris: Vec, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub posts: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/feed/get_quotes.rs b/crates/weaver-common/src/lexicons/app/bsky/feed/get_quotes.rs deleted file mode 100644 index 46f63d5..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/feed/get_quotes.rs +++ /dev/null @@ -1,36 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.getQuotes` namespace. -pub const NSID: &str = "app.bsky.feed.getQuotes"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///If supplied, filters to quotes of specific version (by CID) of the post record. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cid: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///Reference (AT-URI) of post record - pub uri: String, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cid: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub posts: Vec, - pub uri: String, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/feed/get_reposted_by.rs b/crates/weaver-common/src/lexicons/app/bsky/feed/get_reposted_by.rs deleted file mode 100644 index ea06592..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/feed/get_reposted_by.rs +++ /dev/null @@ -1,36 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.getRepostedBy` namespace. -pub const NSID: &str = "app.bsky.feed.getRepostedBy"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///If supplied, filters to reposts of specific version (by CID) of the post record. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cid: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///Reference (AT-URI) of post record - pub uri: String, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cid: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub reposted_by: Vec, - pub uri: String, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/feed/get_suggested_feeds.rs b/crates/weaver-common/src/lexicons/app/bsky/feed/get_suggested_feeds.rs deleted file mode 100644 index b79cb4e..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/feed/get_suggested_feeds.rs +++ /dev/null @@ -1,28 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.getSuggestedFeeds` namespace. -pub const NSID: &str = "app.bsky.feed.getSuggestedFeeds"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub feeds: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/feed/get_timeline.rs b/crates/weaver-common/src/lexicons/app/bsky/feed/get_timeline.rs deleted file mode 100644 index 40f8720..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/feed/get_timeline.rs +++ /dev/null @@ -1,31 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.getTimeline` namespace. -pub const NSID: &str = "app.bsky.feed.getTimeline"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///Variant 'algorithm' for timeline. Implementation-specific. NOTE: most feed flexibility has been moved to feed generator mechanism. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub algorithm: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub feed: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/feed/like.rs b/crates/weaver-common/src/lexicons/app/bsky/feed/like.rs deleted file mode 100644 index 1edd3a9..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/feed/like.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.like` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - pub created_at: atrium_api::types::string::Datetime, - pub subject: crate::com::atproto::repo::strong_ref::Main, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub via: core::option::Option, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/feed/post.rs b/crates/weaver-common/src/lexicons/app/bsky/feed/post.rs deleted file mode 100644 index d0e5157..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/feed/post.rs +++ /dev/null @@ -1,83 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.post` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - ///Client-declared timestamp when this post was originally created. - pub created_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub embed: core::option::Option>, - ///DEPRECATED: replaced by app.bsky.richtext.facet. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub entities: core::option::Option>, - ///Annotations of text (mentions, URLs, hashtags, etc) - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub facets: core::option::Option>, - ///Self-label values for this post. Effectively content warnings. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, - ///Indicates human language of post primary text content. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub langs: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub reply: core::option::Option, - ///Additional hashtags, in addition to any included in post text and facets. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub tags: core::option::Option>, - ///The primary post content. May be an empty string, if there are embeds. - pub text: String, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} -///Deprecated: use facets instead. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct EntityData { - pub index: TextSlice, - ///Expected values are 'mention' and 'link'. - pub r#type: String, - pub value: String, -} -pub type Entity = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ReplyRefData { - pub parent: crate::com::atproto::repo::strong_ref::Main, - pub root: crate::com::atproto::repo::strong_ref::Main, -} -pub type ReplyRef = atrium_api::types::Object; -///Deprecated. Use app.bsky.richtext instead -- A text segment. Start is inclusive, end is exclusive. Indices are for utf16-encoded strings. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct TextSliceData { - pub end: usize, - pub start: usize, -} -pub type TextSlice = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum RecordEmbedRefs { - #[serde(rename = "app.bsky.embed.images")] - AppBskyEmbedImagesMain(Box), - #[serde(rename = "app.bsky.embed.video")] - AppBskyEmbedVideoMain(Box), - #[serde(rename = "app.bsky.embed.external")] - AppBskyEmbedExternalMain(Box), - #[serde(rename = "app.bsky.embed.record")] - AppBskyEmbedRecordMain(Box), - #[serde(rename = "app.bsky.embed.recordWithMedia")] - AppBskyEmbedRecordWithMediaMain( - Box, - ), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum RecordLabelsRefs { - #[serde(rename = "com.atproto.label.defs#selfLabels")] - ComAtprotoLabelDefsSelfLabels(Box), -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/feed/postgate.rs b/crates/weaver-common/src/lexicons/app/bsky/feed/postgate.rs deleted file mode 100644 index 12d9b48..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/feed/postgate.rs +++ /dev/null @@ -1,35 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.postgate` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - pub created_at: atrium_api::types::string::Datetime, - ///List of AT-URIs embedding this post that the author has detached from. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub detached_embedding_uris: core::option::Option>, - ///List of rules defining who can embed this post. If value is an empty array or is undefined, no particular rules apply and anyone can embed. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub embedding_rules: core::option::Option< - Vec>, - >, - ///Reference (AT-URI) to the post record. - pub post: String, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} -///Disables embedding of this post. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct DisableRuleData {} -pub type DisableRule = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum RecordEmbeddingRulesItem { - #[serde(rename = "app.bsky.feed.postgate#disableRule")] - DisableRule(Box), -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/feed/repost.rs b/crates/weaver-common/src/lexicons/app/bsky/feed/repost.rs deleted file mode 100644 index 55a4620..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/feed/repost.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.repost` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - pub created_at: atrium_api::types::string::Datetime, - pub subject: crate::com::atproto::repo::strong_ref::Main, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub via: core::option::Option, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/feed/search_posts.rs b/crates/weaver-common/src/lexicons/app/bsky/feed/search_posts.rs deleted file mode 100644 index 45e00b1..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/feed/search_posts.rs +++ /dev/null @@ -1,71 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.searchPosts` namespace. -pub const NSID: &str = "app.bsky.feed.searchPosts"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///Filter to posts by the given account. Handles are resolved to DID before query-time. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub author: core::option::Option, - ///Optional pagination mechanism; may not necessarily allow scrolling through entire result set. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - ///Filter to posts with URLs (facet links or embeds) linking to the given domain (hostname). Server may apply hostname normalization. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub domain: core::option::Option, - ///Filter to posts in the given language. Expected to be based on post language field, though server may override language detection. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub lang: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///Filter to posts which mention the given account. Handles are resolved to DID before query-time. Only matches rich-text facet mentions. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub mentions: core::option::Option, - ///Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. - pub q: String, - ///Filter results for posts after the indicated datetime (inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYYY-MM-DD). - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub since: core::option::Option, - ///Specifies the ranking order of results. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub sort: core::option::Option, - ///Filter to posts with the given tag (hashtag), based on rich-text facet or tag field. Do not include the hash (#) prefix. Multiple tags can be specified, with 'AND' matching. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub tag: core::option::Option>, - ///Filter results for posts before the indicated datetime (not inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYY-MM-DD). - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub until: core::option::Option, - ///Filter to posts with links (facet links or embeds) pointing to this URL. Server may apply URL normalization or fuzzy matching. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub url: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - ///Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub hits_total: core::option::Option, - pub posts: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - BadQueryString(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::BadQueryString(msg) => { - write!(_f, "BadQueryString")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/feed/send_interactions.rs b/crates/weaver-common/src/lexicons/app/bsky/feed/send_interactions.rs deleted file mode 100644 index ef1ae1c..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/feed/send_interactions.rs +++ /dev/null @@ -1,21 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.sendInteractions` namespace. -pub const NSID: &str = "app.bsky.feed.sendInteractions"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub interactions: Vec, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData {} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/feed/threadgate.rs b/crates/weaver-common/src/lexicons/app/bsky/feed/threadgate.rs deleted file mode 100644 index fa04553..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/feed/threadgate.rs +++ /dev/null @@ -1,56 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.feed.threadgate` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - ///List of rules defining who can reply to this post. If value is an empty array, no one can reply. If value is undefined, anyone can reply. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub allow: core::option::Option>>, - pub created_at: atrium_api::types::string::Datetime, - ///List of hidden reply URIs. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub hidden_replies: core::option::Option>, - ///Reference (AT-URI) to the post record. - pub post: String, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} -///Allow replies from actors who follow you. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct FollowerRuleData {} -pub type FollowerRule = atrium_api::types::Object; -///Allow replies from actors you follow. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct FollowingRuleData {} -pub type FollowingRule = atrium_api::types::Object; -///Allow replies from actors on a list. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ListRuleData { - pub list: String, -} -pub type ListRule = atrium_api::types::Object; -///Allow replies from actors mentioned in your post. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MentionRuleData {} -pub type MentionRule = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum RecordAllowItem { - #[serde(rename = "app.bsky.feed.threadgate#mentionRule")] - MentionRule(Box), - #[serde(rename = "app.bsky.feed.threadgate#followerRule")] - FollowerRule(Box), - #[serde(rename = "app.bsky.feed.threadgate#followingRule")] - FollowingRule(Box), - #[serde(rename = "app.bsky.feed.threadgate#listRule")] - ListRule(Box), -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/graph.rs b/crates/weaver-common/src/lexicons/app/bsky/graph.rs deleted file mode 100644 index 616d999..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/graph.rs +++ /dev/null @@ -1,73 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph` namespace. -pub mod block; -pub mod defs; -pub mod follow; -pub mod get_actor_starter_packs; -pub mod get_blocks; -pub mod get_followers; -pub mod get_follows; -pub mod get_known_followers; -pub mod get_list; -pub mod get_list_blocks; -pub mod get_list_mutes; -pub mod get_lists; -pub mod get_mutes; -pub mod get_relationships; -pub mod get_starter_pack; -pub mod get_starter_packs; -pub mod get_suggested_follows_by_actor; -pub mod list; -pub mod listblock; -pub mod listitem; -pub mod mute_actor; -pub mod mute_actor_list; -pub mod mute_thread; -pub mod search_starter_packs; -pub mod starterpack; -pub mod unmute_actor; -pub mod unmute_actor_list; -pub mod unmute_thread; -pub mod verification; -#[derive(Debug)] -pub struct Block; -impl atrium_api::types::Collection for Block { - const NSID: &'static str = "app.bsky.graph.block"; - type Record = block::Record; -} -#[derive(Debug)] -pub struct Follow; -impl atrium_api::types::Collection for Follow { - const NSID: &'static str = "app.bsky.graph.follow"; - type Record = follow::Record; -} -#[derive(Debug)] -pub struct List; -impl atrium_api::types::Collection for List { - const NSID: &'static str = "app.bsky.graph.list"; - type Record = list::Record; -} -#[derive(Debug)] -pub struct Listblock; -impl atrium_api::types::Collection for Listblock { - const NSID: &'static str = "app.bsky.graph.listblock"; - type Record = listblock::Record; -} -#[derive(Debug)] -pub struct Listitem; -impl atrium_api::types::Collection for Listitem { - const NSID: &'static str = "app.bsky.graph.listitem"; - type Record = listitem::Record; -} -#[derive(Debug)] -pub struct Starterpack; -impl atrium_api::types::Collection for Starterpack { - const NSID: &'static str = "app.bsky.graph.starterpack"; - type Record = starterpack::Record; -} -#[derive(Debug)] -pub struct Verification; -impl atrium_api::types::Collection for Verification { - const NSID: &'static str = "app.bsky.graph.verification"; - type Record = verification::Record; -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/graph/block.rs b/crates/weaver-common/src/lexicons/app/bsky/graph/block.rs deleted file mode 100644 index 60ae226..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/graph/block.rs +++ /dev/null @@ -1,16 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.block` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - pub created_at: atrium_api::types::string::Datetime, - ///DID of the account to be blocked. - pub subject: atrium_api::types::string::Did, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/graph/defs.rs b/crates/weaver-common/src/lexicons/app/bsky/graph/defs.rs deleted file mode 100644 index 975e007..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/graph/defs.rs +++ /dev/null @@ -1,130 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.defs` namespace. -///A list of actors used for curation purposes such as list feeds or interaction gating. -pub const CURATELIST: &str = "app.bsky.graph.defs#curatelist"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ListItemViewData { - pub subject: crate::app::bsky::actor::defs::ProfileView, - pub uri: String, -} -pub type ListItemView = atrium_api::types::Object; -pub type ListPurpose = String; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ListViewData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub avatar: core::option::Option, - pub cid: atrium_api::types::string::Cid, - pub creator: crate::app::bsky::actor::defs::ProfileView, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description_facets: core::option::Option< - Vec, - >, - pub indexed_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub list_item_count: core::option::Option, - pub name: String, - pub purpose: ListPurpose, - pub uri: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub viewer: core::option::Option, -} -pub type ListView = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ListViewBasicData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub avatar: core::option::Option, - pub cid: atrium_api::types::string::Cid, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub indexed_at: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub list_item_count: core::option::Option, - pub name: String, - pub purpose: ListPurpose, - pub uri: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub viewer: core::option::Option, -} -pub type ListViewBasic = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ListViewerStateData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub blocked: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub muted: core::option::Option, -} -pub type ListViewerState = atrium_api::types::Object; -///A list of actors to apply an aggregate moderation action (mute/block) on. -pub const MODLIST: &str = "app.bsky.graph.defs#modlist"; -///indicates that a handle or DID could not be resolved -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct NotFoundActorData { - pub actor: atrium_api::types::string::AtIdentifier, - pub not_found: bool, -} -pub type NotFoundActor = atrium_api::types::Object; -///A list of actors used for only for reference purposes such as within a starter pack. -pub const REFERENCELIST: &str = "app.bsky.graph.defs#referencelist"; -///lists the bi-directional graph relationships between one actor (not indicated in the object), and the target actors (the DID included in the object) -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RelationshipData { - pub did: atrium_api::types::string::Did, - ///if the actor is followed by this DID, contains the AT-URI of the follow record - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub followed_by: core::option::Option, - ///if the actor follows this DID, this is the AT-URI of the follow record - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub following: core::option::Option, -} -pub type Relationship = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct StarterPackViewData { - pub cid: atrium_api::types::string::Cid, - pub creator: crate::app::bsky::actor::defs::ProfileViewBasic, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub feeds: core::option::Option>, - pub indexed_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub joined_all_time_count: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub joined_week_count: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub list: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub list_items_sample: core::option::Option>, - pub record: atrium_api::types::Unknown, - pub uri: String, -} -pub type StarterPackView = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct StarterPackViewBasicData { - pub cid: atrium_api::types::string::Cid, - pub creator: crate::app::bsky::actor::defs::ProfileViewBasic, - pub indexed_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub joined_all_time_count: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub joined_week_count: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub list_item_count: core::option::Option, - pub record: atrium_api::types::Unknown, - pub uri: String, -} -pub type StarterPackViewBasic = atrium_api::types::Object; diff --git a/crates/weaver-common/src/lexicons/app/bsky/graph/follow.rs b/crates/weaver-common/src/lexicons/app/bsky/graph/follow.rs deleted file mode 100644 index 4dc9c99..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/graph/follow.rs +++ /dev/null @@ -1,15 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.follow` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - pub created_at: atrium_api::types::string::Datetime, - pub subject: atrium_api::types::string::Did, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/graph/get_actor_starter_packs.rs b/crates/weaver-common/src/lexicons/app/bsky/graph/get_actor_starter_packs.rs deleted file mode 100644 index 81ca107..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/graph/get_actor_starter_packs.rs +++ /dev/null @@ -1,29 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.getActorStarterPacks` namespace. -pub const NSID: &str = "app.bsky.graph.getActorStarterPacks"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub actor: atrium_api::types::string::AtIdentifier, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub starter_packs: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/graph/get_blocks.rs b/crates/weaver-common/src/lexicons/app/bsky/graph/get_blocks.rs deleted file mode 100644 index 66d509b..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/graph/get_blocks.rs +++ /dev/null @@ -1,28 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.getBlocks` namespace. -pub const NSID: &str = "app.bsky.graph.getBlocks"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub blocks: Vec, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/graph/get_followers.rs b/crates/weaver-common/src/lexicons/app/bsky/graph/get_followers.rs deleted file mode 100644 index b1d92ae..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/graph/get_followers.rs +++ /dev/null @@ -1,30 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.getFollowers` namespace. -pub const NSID: &str = "app.bsky.graph.getFollowers"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub actor: atrium_api::types::string::AtIdentifier, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub followers: Vec, - pub subject: crate::app::bsky::actor::defs::ProfileView, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/graph/get_follows.rs b/crates/weaver-common/src/lexicons/app/bsky/graph/get_follows.rs deleted file mode 100644 index ff30319..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/graph/get_follows.rs +++ /dev/null @@ -1,30 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.getFollows` namespace. -pub const NSID: &str = "app.bsky.graph.getFollows"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub actor: atrium_api::types::string::AtIdentifier, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub follows: Vec, - pub subject: crate::app::bsky::actor::defs::ProfileView, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/graph/get_known_followers.rs b/crates/weaver-common/src/lexicons/app/bsky/graph/get_known_followers.rs deleted file mode 100644 index 732f2d3..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/graph/get_known_followers.rs +++ /dev/null @@ -1,30 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.getKnownFollowers` namespace. -pub const NSID: &str = "app.bsky.graph.getKnownFollowers"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub actor: atrium_api::types::string::AtIdentifier, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub followers: Vec, - pub subject: crate::app::bsky::actor::defs::ProfileView, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/graph/get_list.rs b/crates/weaver-common/src/lexicons/app/bsky/graph/get_list.rs deleted file mode 100644 index f39e89d..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/graph/get_list.rs +++ /dev/null @@ -1,31 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.getList` namespace. -pub const NSID: &str = "app.bsky.graph.getList"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///Reference (AT-URI) of the list record to hydrate. - pub list: String, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub items: Vec, - pub list: crate::app::bsky::graph::defs::ListView, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/graph/get_list_blocks.rs b/crates/weaver-common/src/lexicons/app/bsky/graph/get_list_blocks.rs deleted file mode 100644 index 543bd33..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/graph/get_list_blocks.rs +++ /dev/null @@ -1,28 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.getListBlocks` namespace. -pub const NSID: &str = "app.bsky.graph.getListBlocks"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub lists: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/graph/get_list_mutes.rs b/crates/weaver-common/src/lexicons/app/bsky/graph/get_list_mutes.rs deleted file mode 100644 index b7fcddb..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/graph/get_list_mutes.rs +++ /dev/null @@ -1,28 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.getListMutes` namespace. -pub const NSID: &str = "app.bsky.graph.getListMutes"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub lists: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/graph/get_lists.rs b/crates/weaver-common/src/lexicons/app/bsky/graph/get_lists.rs deleted file mode 100644 index 345886e..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/graph/get_lists.rs +++ /dev/null @@ -1,30 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.getLists` namespace. -pub const NSID: &str = "app.bsky.graph.getLists"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///The account (actor) to enumerate lists from. - pub actor: atrium_api::types::string::AtIdentifier, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub lists: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/graph/get_mutes.rs b/crates/weaver-common/src/lexicons/app/bsky/graph/get_mutes.rs deleted file mode 100644 index d2aeed5..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/graph/get_mutes.rs +++ /dev/null @@ -1,28 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.getMutes` namespace. -pub const NSID: &str = "app.bsky.graph.getMutes"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub mutes: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/graph/get_relationships.rs b/crates/weaver-common/src/lexicons/app/bsky/graph/get_relationships.rs deleted file mode 100644 index c6075a6..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/graph/get_relationships.rs +++ /dev/null @@ -1,48 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.getRelationships` namespace. -pub const NSID: &str = "app.bsky.graph.getRelationships"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///Primary account requesting relationships for. - pub actor: atrium_api::types::string::AtIdentifier, - ///List of 'other' accounts to be related back to the primary. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub others: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub actor: core::option::Option, - pub relationships: Vec>, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - ///the primary actor at-identifier could not be resolved - ActorNotFound(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::ActorNotFound(msg) => { - write!(_f, "ActorNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum OutputRelationshipsItem { - #[serde(rename = "app.bsky.graph.defs#relationship")] - AppBskyGraphDefsRelationship(Box), - #[serde(rename = "app.bsky.graph.defs#notFoundActor")] - AppBskyGraphDefsNotFoundActor(Box), -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/graph/get_starter_pack.rs b/crates/weaver-common/src/lexicons/app/bsky/graph/get_starter_pack.rs deleted file mode 100644 index c3c5480..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/graph/get_starter_pack.rs +++ /dev/null @@ -1,24 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.getStarterPack` namespace. -pub const NSID: &str = "app.bsky.graph.getStarterPack"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///Reference (AT-URI) of the starter pack record. - pub starter_pack: String, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub starter_pack: crate::app::bsky::graph::defs::StarterPackView, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/graph/get_starter_packs.rs b/crates/weaver-common/src/lexicons/app/bsky/graph/get_starter_packs.rs deleted file mode 100644 index ce168f2..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/graph/get_starter_packs.rs +++ /dev/null @@ -1,23 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.getStarterPacks` namespace. -pub const NSID: &str = "app.bsky.graph.getStarterPacks"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub uris: Vec, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub starter_packs: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/graph/get_suggested_follows_by_actor.rs b/crates/weaver-common/src/lexicons/app/bsky/graph/get_suggested_follows_by_actor.rs deleted file mode 100644 index e1b5e24..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/graph/get_suggested_follows_by_actor.rs +++ /dev/null @@ -1,29 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.getSuggestedFollowsByActor` namespace. -pub const NSID: &str = "app.bsky.graph.getSuggestedFollowsByActor"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub actor: atrium_api::types::string::AtIdentifier, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - ///If true, response has fallen-back to generic results, and is not scoped using relativeToDid - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub is_fallback: core::option::Option, - ///Snowflake for this recommendation, use when submitting recommendation events. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub rec_id: core::option::Option, - pub suggestions: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/graph/list.rs b/crates/weaver-common/src/lexicons/app/bsky/graph/list.rs deleted file mode 100644 index e9482b9..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/graph/list.rs +++ /dev/null @@ -1,34 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.list` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub avatar: core::option::Option, - pub created_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description_facets: core::option::Option< - Vec, - >, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, - ///Display name for list; can not be empty. - pub name: String, - ///Defines the purpose of the list (aka, moderation-oriented or curration-oriented) - pub purpose: crate::app::bsky::graph::defs::ListPurpose, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum RecordLabelsRefs { - #[serde(rename = "com.atproto.label.defs#selfLabels")] - ComAtprotoLabelDefsSelfLabels(Box), -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/graph/listblock.rs b/crates/weaver-common/src/lexicons/app/bsky/graph/listblock.rs deleted file mode 100644 index 1fdd321..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/graph/listblock.rs +++ /dev/null @@ -1,16 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.listblock` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - pub created_at: atrium_api::types::string::Datetime, - ///Reference (AT-URI) to the mod list record. - pub subject: String, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/graph/listitem.rs b/crates/weaver-common/src/lexicons/app/bsky/graph/listitem.rs deleted file mode 100644 index a62c409..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/graph/listitem.rs +++ /dev/null @@ -1,18 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.listitem` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - pub created_at: atrium_api::types::string::Datetime, - ///Reference (AT-URI) to the list record (app.bsky.graph.list). - pub list: String, - ///The account which is included on the list. - pub subject: atrium_api::types::string::Did, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/graph/mute_actor.rs b/crates/weaver-common/src/lexicons/app/bsky/graph/mute_actor.rs deleted file mode 100644 index a3a3aae..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/graph/mute_actor.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.muteActor` namespace. -pub const NSID: &str = "app.bsky.graph.muteActor"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub actor: atrium_api::types::string::AtIdentifier, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/graph/mute_actor_list.rs b/crates/weaver-common/src/lexicons/app/bsky/graph/mute_actor_list.rs deleted file mode 100644 index 30cc212..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/graph/mute_actor_list.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.muteActorList` namespace. -pub const NSID: &str = "app.bsky.graph.muteActorList"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub list: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/graph/mute_thread.rs b/crates/weaver-common/src/lexicons/app/bsky/graph/mute_thread.rs deleted file mode 100644 index 7f71996..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/graph/mute_thread.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.muteThread` namespace. -pub const NSID: &str = "app.bsky.graph.muteThread"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub root: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/graph/search_starter_packs.rs b/crates/weaver-common/src/lexicons/app/bsky/graph/search_starter_packs.rs deleted file mode 100644 index f3fe0c9..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/graph/search_starter_packs.rs +++ /dev/null @@ -1,30 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.searchStarterPacks` namespace. -pub const NSID: &str = "app.bsky.graph.searchStarterPacks"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///Search query string. Syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. - pub q: String, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub starter_packs: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/graph/starterpack.rs b/crates/weaver-common/src/lexicons/app/bsky/graph/starterpack.rs deleted file mode 100644 index ebb5c5d..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/graph/starterpack.rs +++ /dev/null @@ -1,32 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.starterpack` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - pub created_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description_facets: core::option::Option< - Vec, - >, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub feeds: core::option::Option>, - ///Reference (AT-URI) to the list record. - pub list: String, - ///Display name for starter pack; can not be empty. - pub name: String, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct FeedItemData { - pub uri: String, -} -pub type FeedItem = atrium_api::types::Object; diff --git a/crates/weaver-common/src/lexicons/app/bsky/graph/unmute_actor.rs b/crates/weaver-common/src/lexicons/app/bsky/graph/unmute_actor.rs deleted file mode 100644 index 636d8cb..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/graph/unmute_actor.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.unmuteActor` namespace. -pub const NSID: &str = "app.bsky.graph.unmuteActor"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub actor: atrium_api::types::string::AtIdentifier, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/graph/unmute_actor_list.rs b/crates/weaver-common/src/lexicons/app/bsky/graph/unmute_actor_list.rs deleted file mode 100644 index 80eb35a..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/graph/unmute_actor_list.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.unmuteActorList` namespace. -pub const NSID: &str = "app.bsky.graph.unmuteActorList"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub list: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/graph/unmute_thread.rs b/crates/weaver-common/src/lexicons/app/bsky/graph/unmute_thread.rs deleted file mode 100644 index ecac160..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/graph/unmute_thread.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.unmuteThread` namespace. -pub const NSID: &str = "app.bsky.graph.unmuteThread"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub root: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/graph/verification.rs b/crates/weaver-common/src/lexicons/app/bsky/graph/verification.rs deleted file mode 100644 index 4a6d71a..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/graph/verification.rs +++ /dev/null @@ -1,21 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.graph.verification` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - ///Date of when the verification was created. - pub created_at: atrium_api::types::string::Datetime, - ///Display name of the subject the verification applies to at the moment of verifying, which might not be the same at the time of viewing. The verification is only valid if the current displayName matches the one at the time of verifying. - pub display_name: String, - ///Handle of the subject the verification applies to at the moment of verifying, which might not be the same at the time of viewing. The verification is only valid if the current handle matches the one at the time of verifying. - pub handle: atrium_api::types::string::Handle, - ///DID of the subject the verification applies to. - pub subject: atrium_api::types::string::Did, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/labeler.rs b/crates/weaver-common/src/lexicons/app/bsky/labeler.rs deleted file mode 100644 index 9daca74..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/labeler.rs +++ /dev/null @@ -1,11 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.labeler` namespace. -pub mod defs; -pub mod get_services; -pub mod service; -#[derive(Debug)] -pub struct Service; -impl atrium_api::types::Collection for Service { - const NSID: &'static str = "app.bsky.labeler.service"; - type Record = service::Record; -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/labeler/defs.rs b/crates/weaver-common/src/lexicons/app/bsky/labeler/defs.rs deleted file mode 100644 index 61f04fb..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/labeler/defs.rs +++ /dev/null @@ -1,65 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.labeler.defs` namespace. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LabelerPoliciesData { - ///Label values created by this labeler and scoped exclusively to it. Labels defined here will override global label definitions for this labeler. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub label_value_definitions: core::option::Option< - Vec, - >, - ///The label values which this labeler publishes. May include global or custom labels. - pub label_values: Vec, -} -pub type LabelerPolicies = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LabelerViewData { - pub cid: atrium_api::types::string::Cid, - pub creator: crate::app::bsky::actor::defs::ProfileView, - pub indexed_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub like_count: core::option::Option, - pub uri: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub viewer: core::option::Option, -} -pub type LabelerView = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LabelerViewDetailedData { - pub cid: atrium_api::types::string::Cid, - pub creator: crate::app::bsky::actor::defs::ProfileView, - pub indexed_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub like_count: core::option::Option, - pub policies: crate::app::bsky::labeler::defs::LabelerPolicies, - ///The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub reason_types: core::option::Option< - Vec, - >, - ///Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub subject_collections: core::option::Option>, - ///The set of subject types (account, record, etc) this service accepts reports on. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub subject_types: core::option::Option< - Vec, - >, - pub uri: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub viewer: core::option::Option, -} -pub type LabelerViewDetailed = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LabelerViewerStateData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub like: core::option::Option, -} -pub type LabelerViewerState = atrium_api::types::Object; diff --git a/crates/weaver-common/src/lexicons/app/bsky/labeler/get_services.rs b/crates/weaver-common/src/lexicons/app/bsky/labeler/get_services.rs deleted file mode 100644 index da7f88b..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/labeler/get_services.rs +++ /dev/null @@ -1,35 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.labeler.getServices` namespace. -pub const NSID: &str = "app.bsky.labeler.getServices"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub detailed: core::option::Option, - pub dids: Vec, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub views: Vec>, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum OutputViewsItem { - #[serde(rename = "app.bsky.labeler.defs#labelerView")] - AppBskyLabelerDefsLabelerView(Box), - #[serde(rename = "app.bsky.labeler.defs#labelerViewDetailed")] - AppBskyLabelerDefsLabelerViewDetailed( - Box, - ), -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/labeler/service.rs b/crates/weaver-common/src/lexicons/app/bsky/labeler/service.rs deleted file mode 100644 index 734e833..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/labeler/service.rs +++ /dev/null @@ -1,36 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.labeler.service` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - pub created_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, - pub policies: crate::app::bsky::labeler::defs::LabelerPolicies, - ///The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub reason_types: core::option::Option< - Vec, - >, - ///Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub subject_collections: core::option::Option>, - ///The set of subject types (account, record, etc) this service accepts reports on. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub subject_types: core::option::Option< - Vec, - >, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum RecordLabelsRefs { - #[serde(rename = "com.atproto.label.defs#selfLabels")] - ComAtprotoLabelDefsSelfLabels(Box), -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/notification.rs b/crates/weaver-common/src/lexicons/app/bsky/notification.rs deleted file mode 100644 index 7c070af..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/notification.rs +++ /dev/null @@ -1,8 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.notification` namespace. -pub mod defs; -pub mod get_unread_count; -pub mod list_notifications; -pub mod put_preferences; -pub mod register_push; -pub mod update_seen; diff --git a/crates/weaver-common/src/lexicons/app/bsky/notification/defs.rs b/crates/weaver-common/src/lexicons/app/bsky/notification/defs.rs deleted file mode 100644 index 2c8510f..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/notification/defs.rs +++ /dev/null @@ -1,6 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.notification.defs` namespace. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordDeletedData {} -pub type RecordDeleted = atrium_api::types::Object; diff --git a/crates/weaver-common/src/lexicons/app/bsky/notification/get_unread_count.rs b/crates/weaver-common/src/lexicons/app/bsky/notification/get_unread_count.rs deleted file mode 100644 index 996eecd..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/notification/get_unread_count.rs +++ /dev/null @@ -1,26 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.notification.getUnreadCount` namespace. -pub const NSID: &str = "app.bsky.notification.getUnreadCount"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub priority: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub seen_at: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub count: i64, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/notification/list_notifications.rs b/crates/weaver-common/src/lexicons/app/bsky/notification/list_notifications.rs deleted file mode 100644 index f08235e..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/notification/list_notifications.rs +++ /dev/null @@ -1,56 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.notification.listNotifications` namespace. -pub const NSID: &str = "app.bsky.notification.listNotifications"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub priority: core::option::Option, - ///Notification reasons to include in response. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub reasons: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub seen_at: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub notifications: Vec, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub priority: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub seen_at: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct NotificationData { - pub author: crate::app::bsky::actor::defs::ProfileView, - pub cid: atrium_api::types::string::Cid, - pub indexed_at: atrium_api::types::string::Datetime, - pub is_read: bool, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, - ///The reason why this notification was delivered - e.g. your post was liked, or you received a new follower. - pub reason: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub reason_subject: core::option::Option, - pub record: atrium_api::types::Unknown, - pub uri: String, -} -pub type Notification = atrium_api::types::Object; diff --git a/crates/weaver-common/src/lexicons/app/bsky/notification/put_preferences.rs b/crates/weaver-common/src/lexicons/app/bsky/notification/put_preferences.rs deleted file mode 100644 index b5bdc4d..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/notification/put_preferences.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.notification.putPreferences` namespace. -pub const NSID: &str = "app.bsky.notification.putPreferences"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub priority: bool, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/notification/register_push.rs b/crates/weaver-common/src/lexicons/app/bsky/notification/register_push.rs deleted file mode 100644 index 66ba567..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/notification/register_push.rs +++ /dev/null @@ -1,20 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.notification.registerPush` namespace. -pub const NSID: &str = "app.bsky.notification.registerPush"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub app_id: String, - pub platform: String, - pub service_did: atrium_api::types::string::Did, - pub token: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/notification/update_seen.rs b/crates/weaver-common/src/lexicons/app/bsky/notification/update_seen.rs deleted file mode 100644 index 0b40d3c..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/notification/update_seen.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.notification.updateSeen` namespace. -pub const NSID: &str = "app.bsky.notification.updateSeen"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub seen_at: atrium_api::types::string::Datetime, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/richtext.rs b/crates/weaver-common/src/lexicons/app/bsky/richtext.rs deleted file mode 100644 index 85b1cf8..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/richtext.rs +++ /dev/null @@ -1,3 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.richtext` namespace. -pub mod facet; diff --git a/crates/weaver-common/src/lexicons/app/bsky/richtext/facet.rs b/crates/weaver-common/src/lexicons/app/bsky/richtext/facet.rs deleted file mode 100644 index 355343a..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/richtext/facet.rs +++ /dev/null @@ -1,49 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.richtext.facet` namespace. -///Annotation of a sub-string within rich text. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MainData { - pub features: Vec>, - pub index: ByteSlice, -} -pub type Main = atrium_api::types::Object; -///Specifies the sub-string range a facet feature applies to. Start index is inclusive, end index is exclusive. Indices are zero-indexed, counting bytes of the UTF-8 encoded text. NOTE: some languages, like Javascript, use UTF-16 or Unicode codepoints for string slice indexing; in these languages, convert to byte arrays before working with facets. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ByteSliceData { - pub byte_end: usize, - pub byte_start: usize, -} -pub type ByteSlice = atrium_api::types::Object; -///Facet feature for a URL. The text URL may have been simplified or truncated, but the facet reference should be a complete URL. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LinkData { - pub uri: String, -} -pub type Link = atrium_api::types::Object; -///Facet feature for mention of another account. The text is usually a handle, including a '@' prefix, but the facet reference is a DID. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MentionData { - pub did: atrium_api::types::string::Did, -} -pub type Mention = atrium_api::types::Object; -///Facet feature for a hashtag. The text usually includes a '#' prefix, but the facet reference should not (except in the case of 'double hash tags'). -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct TagData { - pub tag: String, -} -pub type Tag = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum MainFeaturesItem { - #[serde(rename = "app.bsky.richtext.facet#mention")] - Mention(Box), - #[serde(rename = "app.bsky.richtext.facet#link")] - Link(Box), - #[serde(rename = "app.bsky.richtext.facet#tag")] - Tag(Box), -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/unspecced.rs b/crates/weaver-common/src/lexicons/app/bsky/unspecced.rs deleted file mode 100644 index 51fa468..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/unspecced.rs +++ /dev/null @@ -1,19 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.unspecced` namespace. -pub mod defs; -pub mod get_config; -pub mod get_popular_feed_generators; -pub mod get_suggested_feeds; -pub mod get_suggested_feeds_skeleton; -pub mod get_suggested_starter_packs; -pub mod get_suggested_starter_packs_skeleton; -pub mod get_suggested_users; -pub mod get_suggested_users_skeleton; -pub mod get_suggestions_skeleton; -pub mod get_tagged_suggestions; -pub mod get_trending_topics; -pub mod get_trends; -pub mod get_trends_skeleton; -pub mod search_actors_skeleton; -pub mod search_posts_skeleton; -pub mod search_starter_packs_skeleton; diff --git a/crates/weaver-common/src/lexicons/app/bsky/unspecced/defs.rs b/crates/weaver-common/src/lexicons/app/bsky/unspecced/defs.rs deleted file mode 100644 index 92e1728..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/unspecced/defs.rs +++ /dev/null @@ -1,63 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.unspecced.defs` namespace. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct SkeletonSearchActorData { - pub did: atrium_api::types::string::Did, -} -pub type SkeletonSearchActor = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct SkeletonSearchPostData { - pub uri: String, -} -pub type SkeletonSearchPost = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct SkeletonSearchStarterPackData { - pub uri: String, -} -pub type SkeletonSearchStarterPack = atrium_api::types::Object< - SkeletonSearchStarterPackData, ->; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct SkeletonTrendData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub category: core::option::Option, - pub dids: Vec, - pub display_name: String, - pub link: String, - pub post_count: i64, - pub started_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub status: core::option::Option, - pub topic: String, -} -pub type SkeletonTrend = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct TrendViewData { - pub actors: Vec, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub category: core::option::Option, - pub display_name: String, - pub link: String, - pub post_count: i64, - pub started_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub status: core::option::Option, - pub topic: String, -} -pub type TrendView = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct TrendingTopicData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub display_name: core::option::Option, - pub link: String, - pub topic: String, -} -pub type TrendingTopic = atrium_api::types::Object; diff --git a/crates/weaver-common/src/lexicons/app/bsky/unspecced/get_config.rs b/crates/weaver-common/src/lexicons/app/bsky/unspecced/get_config.rs deleted file mode 100644 index 63fcd94..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/unspecced/get_config.rs +++ /dev/null @@ -1,27 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.unspecced.getConfig` namespace. -pub const NSID: &str = "app.bsky.unspecced.getConfig"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub check_email_confirmed: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub live_now: core::option::Option>, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LiveNowConfigData { - pub did: atrium_api::types::string::Did, - pub domains: Vec, -} -pub type LiveNowConfig = atrium_api::types::Object; diff --git a/crates/weaver-common/src/lexicons/app/bsky/unspecced/get_popular_feed_generators.rs b/crates/weaver-common/src/lexicons/app/bsky/unspecced/get_popular_feed_generators.rs deleted file mode 100644 index ec3bf1f..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/unspecced/get_popular_feed_generators.rs +++ /dev/null @@ -1,30 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.unspecced.getPopularFeedGenerators` namespace. -pub const NSID: &str = "app.bsky.unspecced.getPopularFeedGenerators"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub query: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub feeds: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/unspecced/get_suggested_feeds.rs b/crates/weaver-common/src/lexicons/app/bsky/unspecced/get_suggested_feeds.rs deleted file mode 100644 index ac8ebd0..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/unspecced/get_suggested_feeds.rs +++ /dev/null @@ -1,24 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.unspecced.getSuggestedFeeds` namespace. -pub const NSID: &str = "app.bsky.unspecced.getSuggestedFeeds"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub feeds: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/unspecced/get_suggested_feeds_skeleton.rs b/crates/weaver-common/src/lexicons/app/bsky/unspecced/get_suggested_feeds_skeleton.rs deleted file mode 100644 index 41c9d1d..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/unspecced/get_suggested_feeds_skeleton.rs +++ /dev/null @@ -1,27 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.unspecced.getSuggestedFeedsSkeleton` namespace. -pub const NSID: &str = "app.bsky.unspecced.getSuggestedFeedsSkeleton"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///DID of the account making the request (not included for public/unauthenticated queries). - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub viewer: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub feeds: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/unspecced/get_suggested_starter_packs.rs b/crates/weaver-common/src/lexicons/app/bsky/unspecced/get_suggested_starter_packs.rs deleted file mode 100644 index db5772f..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/unspecced/get_suggested_starter_packs.rs +++ /dev/null @@ -1,24 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.unspecced.getSuggestedStarterPacks` namespace. -pub const NSID: &str = "app.bsky.unspecced.getSuggestedStarterPacks"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub starter_packs: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/unspecced/get_suggested_starter_packs_skeleton.rs b/crates/weaver-common/src/lexicons/app/bsky/unspecced/get_suggested_starter_packs_skeleton.rs deleted file mode 100644 index 5a0798b..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/unspecced/get_suggested_starter_packs_skeleton.rs +++ /dev/null @@ -1,27 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.unspecced.getSuggestedStarterPacksSkeleton` namespace. -pub const NSID: &str = "app.bsky.unspecced.getSuggestedStarterPacksSkeleton"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///DID of the account making the request (not included for public/unauthenticated queries). - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub viewer: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub starter_packs: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/unspecced/get_suggested_users.rs b/crates/weaver-common/src/lexicons/app/bsky/unspecced/get_suggested_users.rs deleted file mode 100644 index 0ee3253..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/unspecced/get_suggested_users.rs +++ /dev/null @@ -1,27 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.unspecced.getSuggestedUsers` namespace. -pub const NSID: &str = "app.bsky.unspecced.getSuggestedUsers"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///Category of users to get suggestions for. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub category: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub actors: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/unspecced/get_suggested_users_skeleton.rs b/crates/weaver-common/src/lexicons/app/bsky/unspecced/get_suggested_users_skeleton.rs deleted file mode 100644 index ed29260..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/unspecced/get_suggested_users_skeleton.rs +++ /dev/null @@ -1,30 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.unspecced.getSuggestedUsersSkeleton` namespace. -pub const NSID: &str = "app.bsky.unspecced.getSuggestedUsersSkeleton"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///Category of users to get suggestions for. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub category: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///DID of the account making the request (not included for public/unauthenticated queries). - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub viewer: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub dids: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/unspecced/get_suggestions_skeleton.rs b/crates/weaver-common/src/lexicons/app/bsky/unspecced/get_suggestions_skeleton.rs deleted file mode 100644 index 6fd777a..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/unspecced/get_suggestions_skeleton.rs +++ /dev/null @@ -1,40 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.unspecced.getSuggestionsSkeleton` namespace. -pub const NSID: &str = "app.bsky.unspecced.getSuggestionsSkeleton"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///DID of the account to get suggestions relative to. If not provided, suggestions will be based on the viewer. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub relative_to_did: core::option::Option, - ///DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub viewer: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub actors: Vec, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - ///Snowflake for this recommendation, use when submitting recommendation events. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub rec_id: core::option::Option, - ///DID of the account these suggestions are relative to. If this is returned undefined, suggestions are based on the viewer. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub relative_to_did: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/unspecced/get_tagged_suggestions.rs b/crates/weaver-common/src/lexicons/app/bsky/unspecced/get_tagged_suggestions.rs deleted file mode 100644 index c4465dc..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/unspecced/get_tagged_suggestions.rs +++ /dev/null @@ -1,29 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.unspecced.getTaggedSuggestions` namespace. -pub const NSID: &str = "app.bsky.unspecced.getTaggedSuggestions"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData {} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub suggestions: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct SuggestionData { - pub subject: String, - pub subject_type: String, - pub tag: String, -} -pub type Suggestion = atrium_api::types::Object; diff --git a/crates/weaver-common/src/lexicons/app/bsky/unspecced/get_trending_topics.rs b/crates/weaver-common/src/lexicons/app/bsky/unspecced/get_trending_topics.rs deleted file mode 100644 index 7b33671..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/unspecced/get_trending_topics.rs +++ /dev/null @@ -1,28 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.unspecced.getTrendingTopics` namespace. -pub const NSID: &str = "app.bsky.unspecced.getTrendingTopics"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub viewer: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub suggested: Vec, - pub topics: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/unspecced/get_trends.rs b/crates/weaver-common/src/lexicons/app/bsky/unspecced/get_trends.rs deleted file mode 100644 index 025375a..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/unspecced/get_trends.rs +++ /dev/null @@ -1,24 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.unspecced.getTrends` namespace. -pub const NSID: &str = "app.bsky.unspecced.getTrends"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub trends: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/unspecced/get_trends_skeleton.rs b/crates/weaver-common/src/lexicons/app/bsky/unspecced/get_trends_skeleton.rs deleted file mode 100644 index b1db0f9..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/unspecced/get_trends_skeleton.rs +++ /dev/null @@ -1,27 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.unspecced.getTrendsSkeleton` namespace. -pub const NSID: &str = "app.bsky.unspecced.getTrendsSkeleton"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///DID of the account making the request (not included for public/unauthenticated queries). - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub viewer: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub trends: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/unspecced/search_actors_skeleton.rs b/crates/weaver-common/src/lexicons/app/bsky/unspecced/search_actors_skeleton.rs deleted file mode 100644 index f3a91ff..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/unspecced/search_actors_skeleton.rs +++ /dev/null @@ -1,50 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.unspecced.searchActorsSkeleton` namespace. -pub const NSID: &str = "app.bsky.unspecced.searchActorsSkeleton"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///Optional pagination mechanism; may not necessarily allow scrolling through entire result set. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. For typeahead search, only simple term match is supported, not full syntax. - pub q: String, - ///If true, acts as fast/simple 'typeahead' query. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub typeahead: core::option::Option, - ///DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub viewer: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub actors: Vec, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - ///Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub hits_total: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - BadQueryString(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::BadQueryString(msg) => { - write!(_f, "BadQueryString")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/unspecced/search_posts_skeleton.rs b/crates/weaver-common/src/lexicons/app/bsky/unspecced/search_posts_skeleton.rs deleted file mode 100644 index 136a415..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/unspecced/search_posts_skeleton.rs +++ /dev/null @@ -1,74 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.unspecced.searchPostsSkeleton` namespace. -pub const NSID: &str = "app.bsky.unspecced.searchPostsSkeleton"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///Filter to posts by the given account. Handles are resolved to DID before query-time. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub author: core::option::Option, - ///Optional pagination mechanism; may not necessarily allow scrolling through entire result set. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - ///Filter to posts with URLs (facet links or embeds) linking to the given domain (hostname). Server may apply hostname normalization. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub domain: core::option::Option, - ///Filter to posts in the given language. Expected to be based on post language field, though server may override language detection. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub lang: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///Filter to posts which mention the given account. Handles are resolved to DID before query-time. Only matches rich-text facet mentions. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub mentions: core::option::Option, - ///Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. - pub q: String, - ///Filter results for posts after the indicated datetime (inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYYY-MM-DD). - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub since: core::option::Option, - ///Specifies the ranking order of results. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub sort: core::option::Option, - ///Filter to posts with the given tag (hashtag), based on rich-text facet or tag field. Do not include the hash (#) prefix. Multiple tags can be specified, with 'AND' matching. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub tag: core::option::Option>, - ///Filter results for posts before the indicated datetime (not inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYY-MM-DD). - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub until: core::option::Option, - ///Filter to posts with links (facet links or embeds) pointing to this URL. Server may apply URL normalization or fuzzy matching. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub url: core::option::Option, - ///DID of the account making the request (not included for public/unauthenticated queries). Used for 'from:me' queries. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub viewer: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - ///Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub hits_total: core::option::Option, - pub posts: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - BadQueryString(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::BadQueryString(msg) => { - write!(_f, "BadQueryString")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/unspecced/search_starter_packs_skeleton.rs b/crates/weaver-common/src/lexicons/app/bsky/unspecced/search_starter_packs_skeleton.rs deleted file mode 100644 index 15d5691..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/unspecced/search_starter_packs_skeleton.rs +++ /dev/null @@ -1,47 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.unspecced.searchStarterPacksSkeleton` namespace. -pub const NSID: &str = "app.bsky.unspecced.searchStarterPacksSkeleton"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///Optional pagination mechanism; may not necessarily allow scrolling through entire result set. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. - pub q: String, - ///DID of the account making the request (not included for public/unauthenticated queries). - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub viewer: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - ///Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub hits_total: core::option::Option, - pub starter_packs: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - BadQueryString(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::BadQueryString(msg) => { - write!(_f, "BadQueryString")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/video.rs b/crates/weaver-common/src/lexicons/app/bsky/video.rs deleted file mode 100644 index 948cc12..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/video.rs +++ /dev/null @@ -1,6 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.video` namespace. -pub mod defs; -pub mod get_job_status; -pub mod get_upload_limits; -pub mod upload_video; diff --git a/crates/weaver-common/src/lexicons/app/bsky/video/defs.rs b/crates/weaver-common/src/lexicons/app/bsky/video/defs.rs deleted file mode 100644 index 6a3c947..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/video/defs.rs +++ /dev/null @@ -1,20 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.video.defs` namespace. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct JobStatusData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub blob: core::option::Option, - pub did: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub error: core::option::Option, - pub job_id: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub message: core::option::Option, - ///Progress within the current processing state. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub progress: core::option::Option>, - ///The state of the video processing job. All values not listed as a known value indicate that the job is in process. - pub state: String, -} -pub type JobStatus = atrium_api::types::Object; diff --git a/crates/weaver-common/src/lexicons/app/bsky/video/get_job_status.rs b/crates/weaver-common/src/lexicons/app/bsky/video/get_job_status.rs deleted file mode 100644 index 62fc969..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/video/get_job_status.rs +++ /dev/null @@ -1,23 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.video.getJobStatus` namespace. -pub const NSID: &str = "app.bsky.video.getJobStatus"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub job_id: String, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub job_status: crate::app::bsky::video::defs::JobStatus, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/video/get_upload_limits.rs b/crates/weaver-common/src/lexicons/app/bsky/video/get_upload_limits.rs deleted file mode 100644 index 00b9e8a..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/video/get_upload_limits.rs +++ /dev/null @@ -1,25 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.video.getUploadLimits` namespace. -pub const NSID: &str = "app.bsky.video.getUploadLimits"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub can_upload: bool, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub error: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub message: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub remaining_daily_bytes: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub remaining_daily_videos: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/app/bsky/video/upload_video.rs b/crates/weaver-common/src/lexicons/app/bsky/video/upload_video.rs deleted file mode 100644 index 7106036..0000000 --- a/crates/weaver-common/src/lexicons/app/bsky/video/upload_video.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `app.bsky.video.uploadVideo` namespace. -pub const NSID: &str = "app.bsky.video.uploadVideo"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub job_status: crate::app::bsky::video::defs::JobStatus, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/chat.rs b/crates/weaver-common/src/lexicons/chat.rs deleted file mode 100644 index f0bc409..0000000 --- a/crates/weaver-common/src/lexicons/chat.rs +++ /dev/null @@ -1,3 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat` namespace. -pub mod bsky; diff --git a/crates/weaver-common/src/lexicons/chat/bsky.rs b/crates/weaver-common/src/lexicons/chat/bsky.rs deleted file mode 100644 index 80593ff..0000000 --- a/crates/weaver-common/src/lexicons/chat/bsky.rs +++ /dev/null @@ -1,5 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky` namespace. -pub mod actor; -pub mod convo; -pub mod moderation; diff --git a/crates/weaver-common/src/lexicons/chat/bsky/actor.rs b/crates/weaver-common/src/lexicons/chat/bsky/actor.rs deleted file mode 100644 index 744e47a..0000000 --- a/crates/weaver-common/src/lexicons/chat/bsky/actor.rs +++ /dev/null @@ -1,12 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.actor` namespace. -pub mod declaration; -pub mod defs; -pub mod delete_account; -pub mod export_account_data; -#[derive(Debug)] -pub struct Declaration; -impl atrium_api::types::Collection for Declaration { - const NSID: &'static str = "chat.bsky.actor.declaration"; - type Record = declaration::Record; -} diff --git a/crates/weaver-common/src/lexicons/chat/bsky/actor/declaration.rs b/crates/weaver-common/src/lexicons/chat/bsky/actor/declaration.rs deleted file mode 100644 index eacb2d8..0000000 --- a/crates/weaver-common/src/lexicons/chat/bsky/actor/declaration.rs +++ /dev/null @@ -1,14 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.actor.declaration` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - pub allow_incoming: String, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} diff --git a/crates/weaver-common/src/lexicons/chat/bsky/actor/defs.rs b/crates/weaver-common/src/lexicons/chat/bsky/actor/defs.rs deleted file mode 100644 index 42d6404..0000000 --- a/crates/weaver-common/src/lexicons/chat/bsky/actor/defs.rs +++ /dev/null @@ -1,28 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.actor.defs` namespace. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ProfileViewBasicData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub associated: core::option::Option< - crate::app::bsky::actor::defs::ProfileAssociated, - >, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub avatar: core::option::Option, - ///Set to true when the actor cannot actively participate in conversations - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub chat_disabled: core::option::Option, - pub did: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub display_name: core::option::Option, - pub handle: atrium_api::types::string::Handle, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub verification: core::option::Option< - crate::app::bsky::actor::defs::VerificationState, - >, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub viewer: core::option::Option, -} -pub type ProfileViewBasic = atrium_api::types::Object; diff --git a/crates/weaver-common/src/lexicons/chat/bsky/actor/delete_account.rs b/crates/weaver-common/src/lexicons/chat/bsky/actor/delete_account.rs deleted file mode 100644 index 24cc115..0000000 --- a/crates/weaver-common/src/lexicons/chat/bsky/actor/delete_account.rs +++ /dev/null @@ -1,15 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.actor.deleteAccount` namespace. -pub const NSID: &str = "chat.bsky.actor.deleteAccount"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData {} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/chat/bsky/actor/export_account_data.rs b/crates/weaver-common/src/lexicons/chat/bsky/actor/export_account_data.rs deleted file mode 100644 index 1440a58..0000000 --- a/crates/weaver-common/src/lexicons/chat/bsky/actor/export_account_data.rs +++ /dev/null @@ -1,11 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.actor.exportAccountData` namespace. -pub const NSID: &str = "chat.bsky.actor.exportAccountData"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/chat/bsky/convo.rs b/crates/weaver-common/src/lexicons/chat/bsky/convo.rs deleted file mode 100644 index 03aeb02..0000000 --- a/crates/weaver-common/src/lexicons/chat/bsky/convo.rs +++ /dev/null @@ -1,20 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.convo` namespace. -pub mod accept_convo; -pub mod add_reaction; -pub mod defs; -pub mod delete_message_for_self; -pub mod get_convo; -pub mod get_convo_availability; -pub mod get_convo_for_members; -pub mod get_log; -pub mod get_messages; -pub mod leave_convo; -pub mod list_convos; -pub mod mute_convo; -pub mod remove_reaction; -pub mod send_message; -pub mod send_message_batch; -pub mod unmute_convo; -pub mod update_all_read; -pub mod update_read; diff --git a/crates/weaver-common/src/lexicons/chat/bsky/convo/accept_convo.rs b/crates/weaver-common/src/lexicons/chat/bsky/convo/accept_convo.rs deleted file mode 100644 index 30cfd29..0000000 --- a/crates/weaver-common/src/lexicons/chat/bsky/convo/accept_convo.rs +++ /dev/null @@ -1,25 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.convo.acceptConvo` namespace. -pub const NSID: &str = "chat.bsky.convo.acceptConvo"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub convo_id: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - ///Rev when the convo was accepted. If not present, the convo was already accepted. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub rev: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/chat/bsky/convo/add_reaction.rs b/crates/weaver-common/src/lexicons/chat/bsky/convo/add_reaction.rs deleted file mode 100644 index dd722ee..0000000 --- a/crates/weaver-common/src/lexicons/chat/bsky/convo/add_reaction.rs +++ /dev/null @@ -1,52 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.convo.addReaction` namespace. -pub const NSID: &str = "chat.bsky.convo.addReaction"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub convo_id: String, - pub message_id: String, - pub value: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub message: crate::chat::bsky::convo::defs::MessageView, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - ///Indicates that the message has been deleted and reactions can no longer be added/removed. - ReactionMessageDeleted(Option), - ///Indicates that the message has the maximum number of reactions allowed for a single user, and the requested reaction wasn't yet present. If it was already present, the request will not fail since it is idempotent. - ReactionLimitReached(Option), - ///Indicates the value for the reaction is not acceptable. In general, this means it is not an emoji. - ReactionInvalidValue(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::ReactionMessageDeleted(msg) => { - write!(_f, "ReactionMessageDeleted")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::ReactionLimitReached(msg) => { - write!(_f, "ReactionLimitReached")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::ReactionInvalidValue(msg) => { - write!(_f, "ReactionInvalidValue")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/chat/bsky/convo/defs.rs b/crates/weaver-common/src/lexicons/chat/bsky/convo/defs.rs deleted file mode 100644 index 78048b3..0000000 --- a/crates/weaver-common/src/lexicons/chat/bsky/convo/defs.rs +++ /dev/null @@ -1,238 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.convo.defs` namespace. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ConvoViewData { - pub id: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub last_message: core::option::Option< - atrium_api::types::Union, - >, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub last_reaction: core::option::Option< - atrium_api::types::Union, - >, - pub members: Vec, - pub muted: bool, - pub rev: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub status: core::option::Option, - pub unread_count: i64, -} -pub type ConvoView = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct DeletedMessageViewData { - pub id: String, - pub rev: String, - pub sender: MessageViewSender, - pub sent_at: atrium_api::types::string::Datetime, -} -pub type DeletedMessageView = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LogAcceptConvoData { - pub convo_id: String, - pub rev: String, -} -pub type LogAcceptConvo = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LogAddReactionData { - pub convo_id: String, - pub message: atrium_api::types::Union, - pub reaction: ReactionView, - pub rev: String, -} -pub type LogAddReaction = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LogBeginConvoData { - pub convo_id: String, - pub rev: String, -} -pub type LogBeginConvo = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LogCreateMessageData { - pub convo_id: String, - pub message: atrium_api::types::Union, - pub rev: String, -} -pub type LogCreateMessage = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LogDeleteMessageData { - pub convo_id: String, - pub message: atrium_api::types::Union, - pub rev: String, -} -pub type LogDeleteMessage = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LogLeaveConvoData { - pub convo_id: String, - pub rev: String, -} -pub type LogLeaveConvo = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LogMuteConvoData { - pub convo_id: String, - pub rev: String, -} -pub type LogMuteConvo = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LogReadMessageData { - pub convo_id: String, - pub message: atrium_api::types::Union, - pub rev: String, -} -pub type LogReadMessage = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LogRemoveReactionData { - pub convo_id: String, - pub message: atrium_api::types::Union, - pub reaction: ReactionView, - pub rev: String, -} -pub type LogRemoveReaction = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LogUnmuteConvoData { - pub convo_id: String, - pub rev: String, -} -pub type LogUnmuteConvo = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MessageAndReactionViewData { - pub message: MessageView, - pub reaction: ReactionView, -} -pub type MessageAndReactionView = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MessageInputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub embed: core::option::Option>, - ///Annotations of text (mentions, URLs, hashtags, etc) - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub facets: core::option::Option>, - pub text: String, -} -pub type MessageInput = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MessageRefData { - pub convo_id: String, - pub did: atrium_api::types::string::Did, - pub message_id: String, -} -pub type MessageRef = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MessageViewData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub embed: core::option::Option>, - ///Annotations of text (mentions, URLs, hashtags, etc) - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub facets: core::option::Option>, - pub id: String, - ///Reactions to this message, in ascending order of creation time. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub reactions: core::option::Option>, - pub rev: String, - pub sender: MessageViewSender, - pub sent_at: atrium_api::types::string::Datetime, - pub text: String, -} -pub type MessageView = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MessageViewSenderData { - pub did: atrium_api::types::string::Did, -} -pub type MessageViewSender = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ReactionViewData { - pub created_at: atrium_api::types::string::Datetime, - pub sender: ReactionViewSender, - pub value: String, -} -pub type ReactionView = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ReactionViewSenderData { - pub did: atrium_api::types::string::Did, -} -pub type ReactionViewSender = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum ConvoViewLastMessageRefs { - #[serde(rename = "chat.bsky.convo.defs#messageView")] - MessageView(Box), - #[serde(rename = "chat.bsky.convo.defs#deletedMessageView")] - DeletedMessageView(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum ConvoViewLastReactionRefs { - #[serde(rename = "chat.bsky.convo.defs#messageAndReactionView")] - MessageAndReactionView(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum LogAddReactionMessageRefs { - #[serde(rename = "chat.bsky.convo.defs#messageView")] - MessageView(Box), - #[serde(rename = "chat.bsky.convo.defs#deletedMessageView")] - DeletedMessageView(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum LogCreateMessageMessageRefs { - #[serde(rename = "chat.bsky.convo.defs#messageView")] - MessageView(Box), - #[serde(rename = "chat.bsky.convo.defs#deletedMessageView")] - DeletedMessageView(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum LogDeleteMessageMessageRefs { - #[serde(rename = "chat.bsky.convo.defs#messageView")] - MessageView(Box), - #[serde(rename = "chat.bsky.convo.defs#deletedMessageView")] - DeletedMessageView(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum LogReadMessageMessageRefs { - #[serde(rename = "chat.bsky.convo.defs#messageView")] - MessageView(Box), - #[serde(rename = "chat.bsky.convo.defs#deletedMessageView")] - DeletedMessageView(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum LogRemoveReactionMessageRefs { - #[serde(rename = "chat.bsky.convo.defs#messageView")] - MessageView(Box), - #[serde(rename = "chat.bsky.convo.defs#deletedMessageView")] - DeletedMessageView(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum MessageInputEmbedRefs { - #[serde(rename = "app.bsky.embed.record")] - AppBskyEmbedRecordMain(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum MessageViewEmbedRefs { - #[serde(rename = "app.bsky.embed.record#view")] - AppBskyEmbedRecordView(Box), -} diff --git a/crates/weaver-common/src/lexicons/chat/bsky/convo/delete_message_for_self.rs b/crates/weaver-common/src/lexicons/chat/bsky/convo/delete_message_for_self.rs deleted file mode 100644 index 3e8d12c..0000000 --- a/crates/weaver-common/src/lexicons/chat/bsky/convo/delete_message_for_self.rs +++ /dev/null @@ -1,19 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.convo.deleteMessageForSelf` namespace. -pub const NSID: &str = "chat.bsky.convo.deleteMessageForSelf"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub convo_id: String, - pub message_id: String, -} -pub type Input = atrium_api::types::Object; -pub type Output = crate::chat::bsky::convo::defs::DeletedMessageView; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/chat/bsky/convo/get_convo.rs b/crates/weaver-common/src/lexicons/chat/bsky/convo/get_convo.rs deleted file mode 100644 index 933756b..0000000 --- a/crates/weaver-common/src/lexicons/chat/bsky/convo/get_convo.rs +++ /dev/null @@ -1,23 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.convo.getConvo` namespace. -pub const NSID: &str = "chat.bsky.convo.getConvo"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub convo_id: String, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub convo: crate::chat::bsky::convo::defs::ConvoView, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/chat/bsky/convo/get_convo_availability.rs b/crates/weaver-common/src/lexicons/chat/bsky/convo/get_convo_availability.rs deleted file mode 100644 index 9a082e0..0000000 --- a/crates/weaver-common/src/lexicons/chat/bsky/convo/get_convo_availability.rs +++ /dev/null @@ -1,25 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.convo.getConvoAvailability` namespace. -pub const NSID: &str = "chat.bsky.convo.getConvoAvailability"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub members: Vec, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub can_chat: bool, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub convo: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/chat/bsky/convo/get_convo_for_members.rs b/crates/weaver-common/src/lexicons/chat/bsky/convo/get_convo_for_members.rs deleted file mode 100644 index 2bc60cc..0000000 --- a/crates/weaver-common/src/lexicons/chat/bsky/convo/get_convo_for_members.rs +++ /dev/null @@ -1,23 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.convo.getConvoForMembers` namespace. -pub const NSID: &str = "chat.bsky.convo.getConvoForMembers"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub members: Vec, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub convo: crate::chat::bsky::convo::defs::ConvoView, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/chat/bsky/convo/get_log.rs b/crates/weaver-common/src/lexicons/chat/bsky/convo/get_log.rs deleted file mode 100644 index 7bcc58d..0000000 --- a/crates/weaver-common/src/lexicons/chat/bsky/convo/get_log.rs +++ /dev/null @@ -1,56 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.convo.getLog` namespace. -pub const NSID: &str = "chat.bsky.convo.getLog"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub logs: Vec>, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum OutputLogsItem { - #[serde(rename = "chat.bsky.convo.defs#logBeginConvo")] - ChatBskyConvoDefsLogBeginConvo(Box), - #[serde(rename = "chat.bsky.convo.defs#logAcceptConvo")] - ChatBskyConvoDefsLogAcceptConvo(Box), - #[serde(rename = "chat.bsky.convo.defs#logLeaveConvo")] - ChatBskyConvoDefsLogLeaveConvo(Box), - #[serde(rename = "chat.bsky.convo.defs#logMuteConvo")] - ChatBskyConvoDefsLogMuteConvo(Box), - #[serde(rename = "chat.bsky.convo.defs#logUnmuteConvo")] - ChatBskyConvoDefsLogUnmuteConvo(Box), - #[serde(rename = "chat.bsky.convo.defs#logCreateMessage")] - ChatBskyConvoDefsLogCreateMessage( - Box, - ), - #[serde(rename = "chat.bsky.convo.defs#logDeleteMessage")] - ChatBskyConvoDefsLogDeleteMessage( - Box, - ), - #[serde(rename = "chat.bsky.convo.defs#logReadMessage")] - ChatBskyConvoDefsLogReadMessage(Box), - #[serde(rename = "chat.bsky.convo.defs#logAddReaction")] - ChatBskyConvoDefsLogAddReaction(Box), - #[serde(rename = "chat.bsky.convo.defs#logRemoveReaction")] - ChatBskyConvoDefsLogRemoveReaction( - Box, - ), -} diff --git a/crates/weaver-common/src/lexicons/chat/bsky/convo/get_messages.rs b/crates/weaver-common/src/lexicons/chat/bsky/convo/get_messages.rs deleted file mode 100644 index 9e9b62e..0000000 --- a/crates/weaver-common/src/lexicons/chat/bsky/convo/get_messages.rs +++ /dev/null @@ -1,39 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.convo.getMessages` namespace. -pub const NSID: &str = "chat.bsky.convo.getMessages"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub convo_id: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub messages: Vec>, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum OutputMessagesItem { - #[serde(rename = "chat.bsky.convo.defs#messageView")] - ChatBskyConvoDefsMessageView(Box), - #[serde(rename = "chat.bsky.convo.defs#deletedMessageView")] - ChatBskyConvoDefsDeletedMessageView( - Box, - ), -} diff --git a/crates/weaver-common/src/lexicons/chat/bsky/convo/leave_convo.rs b/crates/weaver-common/src/lexicons/chat/bsky/convo/leave_convo.rs deleted file mode 100644 index 72f6750..0000000 --- a/crates/weaver-common/src/lexicons/chat/bsky/convo/leave_convo.rs +++ /dev/null @@ -1,24 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.convo.leaveConvo` namespace. -pub const NSID: &str = "chat.bsky.convo.leaveConvo"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub convo_id: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub convo_id: String, - pub rev: String, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/chat/bsky/convo/list_convos.rs b/crates/weaver-common/src/lexicons/chat/bsky/convo/list_convos.rs deleted file mode 100644 index ed5e0f7..0000000 --- a/crates/weaver-common/src/lexicons/chat/bsky/convo/list_convos.rs +++ /dev/null @@ -1,32 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.convo.listConvos` namespace. -pub const NSID: &str = "chat.bsky.convo.listConvos"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub read_state: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub status: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub convos: Vec, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/chat/bsky/convo/mute_convo.rs b/crates/weaver-common/src/lexicons/chat/bsky/convo/mute_convo.rs deleted file mode 100644 index 8fb6536..0000000 --- a/crates/weaver-common/src/lexicons/chat/bsky/convo/mute_convo.rs +++ /dev/null @@ -1,23 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.convo.muteConvo` namespace. -pub const NSID: &str = "chat.bsky.convo.muteConvo"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub convo_id: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub convo: crate::chat::bsky::convo::defs::ConvoView, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/chat/bsky/convo/remove_reaction.rs b/crates/weaver-common/src/lexicons/chat/bsky/convo/remove_reaction.rs deleted file mode 100644 index 73290c6..0000000 --- a/crates/weaver-common/src/lexicons/chat/bsky/convo/remove_reaction.rs +++ /dev/null @@ -1,44 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.convo.removeReaction` namespace. -pub const NSID: &str = "chat.bsky.convo.removeReaction"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub convo_id: String, - pub message_id: String, - pub value: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub message: crate::chat::bsky::convo::defs::MessageView, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - ///Indicates that the message has been deleted and reactions can no longer be added/removed. - ReactionMessageDeleted(Option), - ///Indicates the value for the reaction is not acceptable. In general, this means it is not an emoji. - ReactionInvalidValue(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::ReactionMessageDeleted(msg) => { - write!(_f, "ReactionMessageDeleted")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::ReactionInvalidValue(msg) => { - write!(_f, "ReactionInvalidValue")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/chat/bsky/convo/send_message.rs b/crates/weaver-common/src/lexicons/chat/bsky/convo/send_message.rs deleted file mode 100644 index 11c84b4..0000000 --- a/crates/weaver-common/src/lexicons/chat/bsky/convo/send_message.rs +++ /dev/null @@ -1,19 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.convo.sendMessage` namespace. -pub const NSID: &str = "chat.bsky.convo.sendMessage"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub convo_id: String, - pub message: crate::chat::bsky::convo::defs::MessageInput, -} -pub type Input = atrium_api::types::Object; -pub type Output = crate::chat::bsky::convo::defs::MessageView; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/chat/bsky/convo/send_message_batch.rs b/crates/weaver-common/src/lexicons/chat/bsky/convo/send_message_batch.rs deleted file mode 100644 index 666f669..0000000 --- a/crates/weaver-common/src/lexicons/chat/bsky/convo/send_message_batch.rs +++ /dev/null @@ -1,30 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.convo.sendMessageBatch` namespace. -pub const NSID: &str = "chat.bsky.convo.sendMessageBatch"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub items: Vec, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub items: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct BatchItemData { - pub convo_id: String, - pub message: crate::chat::bsky::convo::defs::MessageInput, -} -pub type BatchItem = atrium_api::types::Object; diff --git a/crates/weaver-common/src/lexicons/chat/bsky/convo/unmute_convo.rs b/crates/weaver-common/src/lexicons/chat/bsky/convo/unmute_convo.rs deleted file mode 100644 index 3584ec8..0000000 --- a/crates/weaver-common/src/lexicons/chat/bsky/convo/unmute_convo.rs +++ /dev/null @@ -1,23 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.convo.unmuteConvo` namespace. -pub const NSID: &str = "chat.bsky.convo.unmuteConvo"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub convo_id: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub convo: crate::chat::bsky::convo::defs::ConvoView, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/chat/bsky/convo/update_all_read.rs b/crates/weaver-common/src/lexicons/chat/bsky/convo/update_all_read.rs deleted file mode 100644 index 22d4f6a..0000000 --- a/crates/weaver-common/src/lexicons/chat/bsky/convo/update_all_read.rs +++ /dev/null @@ -1,25 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.convo.updateAllRead` namespace. -pub const NSID: &str = "chat.bsky.convo.updateAllRead"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub status: core::option::Option, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - ///The count of updated convos. - pub updated_count: i64, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/chat/bsky/convo/update_read.rs b/crates/weaver-common/src/lexicons/chat/bsky/convo/update_read.rs deleted file mode 100644 index f93e32f..0000000 --- a/crates/weaver-common/src/lexicons/chat/bsky/convo/update_read.rs +++ /dev/null @@ -1,25 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.convo.updateRead` namespace. -pub const NSID: &str = "chat.bsky.convo.updateRead"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub convo_id: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub message_id: core::option::Option, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub convo: crate::chat::bsky::convo::defs::ConvoView, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/chat/bsky/moderation.rs b/crates/weaver-common/src/lexicons/chat/bsky/moderation.rs deleted file mode 100644 index 5225b27..0000000 --- a/crates/weaver-common/src/lexicons/chat/bsky/moderation.rs +++ /dev/null @@ -1,5 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.moderation` namespace. -pub mod get_actor_metadata; -pub mod get_message_context; -pub mod update_actor_access; diff --git a/crates/weaver-common/src/lexicons/chat/bsky/moderation/get_actor_metadata.rs b/crates/weaver-common/src/lexicons/chat/bsky/moderation/get_actor_metadata.rs deleted file mode 100644 index 88f99de..0000000 --- a/crates/weaver-common/src/lexicons/chat/bsky/moderation/get_actor_metadata.rs +++ /dev/null @@ -1,34 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.moderation.getActorMetadata` namespace. -pub const NSID: &str = "chat.bsky.moderation.getActorMetadata"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub actor: atrium_api::types::string::Did, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub all: Metadata, - pub day: Metadata, - pub month: Metadata, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MetadataData { - pub convos: i64, - pub convos_started: i64, - pub messages_received: i64, - pub messages_sent: i64, -} -pub type Metadata = atrium_api::types::Object; diff --git a/crates/weaver-common/src/lexicons/chat/bsky/moderation/get_message_context.rs b/crates/weaver-common/src/lexicons/chat/bsky/moderation/get_message_context.rs deleted file mode 100644 index 78c4939..0000000 --- a/crates/weaver-common/src/lexicons/chat/bsky/moderation/get_message_context.rs +++ /dev/null @@ -1,40 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.moderation.getMessageContext` namespace. -pub const NSID: &str = "chat.bsky.moderation.getMessageContext"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub after: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub before: core::option::Option, - ///Conversation that the message is from. NOTE: this field will eventually be required. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub convo_id: core::option::Option, - pub message_id: String, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub messages: Vec>, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum OutputMessagesItem { - #[serde(rename = "chat.bsky.convo.defs#messageView")] - ChatBskyConvoDefsMessageView(Box), - #[serde(rename = "chat.bsky.convo.defs#deletedMessageView")] - ChatBskyConvoDefsDeletedMessageView( - Box, - ), -} diff --git a/crates/weaver-common/src/lexicons/chat/bsky/moderation/update_actor_access.rs b/crates/weaver-common/src/lexicons/chat/bsky/moderation/update_actor_access.rs deleted file mode 100644 index a32340b..0000000 --- a/crates/weaver-common/src/lexicons/chat/bsky/moderation/update_actor_access.rs +++ /dev/null @@ -1,20 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `chat.bsky.moderation.updateActorAccess` namespace. -pub const NSID: &str = "chat.bsky.moderation.updateActorAccess"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub actor: atrium_api::types::string::Did, - pub allow_access: bool, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub r#ref: core::option::Option, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/client.rs b/crates/weaver-common/src/lexicons/client.rs deleted file mode 100644 index 8f8fa6f..0000000 --- a/crates/weaver-common/src/lexicons/client.rs +++ /dev/null @@ -1,7117 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Structs for ATP client, implements all HTTP APIs of XRPC. -///Client struct for the ATP service. -pub struct AtpServiceClient -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - pub service: Service, -} -impl AtpServiceClient -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - pub fn new(xrpc: T) -> Self { - Self { - service: Service::new(std::sync::Arc::new(xrpc)), - } - } -} -pub struct Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - pub app: app::Service, - pub chat: chat::Service, - pub com: com::Service, - pub sh: sh::Service, - pub tools: tools::Service, - pub(crate) _phantom: core::marker::PhantomData, -} -pub mod app { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub bsky: bsky::Service, - pub(crate) _phantom: core::marker::PhantomData, - } - pub mod bsky { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub actor: actor::Service, - pub feed: feed::Service, - pub graph: graph::Service, - pub labeler: labeler::Service, - pub notification: notification::Service, - pub unspecced: unspecced::Service, - pub video: video::Service, - pub(crate) _phantom: core::marker::PhantomData, - } - pub mod actor { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod feed { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod graph { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod labeler { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod notification { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod unspecced { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod video { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - } -} -pub mod chat { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub bsky: bsky::Service, - pub(crate) _phantom: core::marker::PhantomData, - } - pub mod bsky { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub actor: actor::Service, - pub convo: convo::Service, - pub moderation: moderation::Service, - pub(crate) _phantom: core::marker::PhantomData, - } - pub mod actor { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod convo { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod moderation { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - } -} -pub mod com { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub atproto: atproto::Service, - pub(crate) _phantom: core::marker::PhantomData, - } - pub mod atproto { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub admin: admin::Service, - pub identity: identity::Service, - pub label: label::Service, - pub moderation: moderation::Service, - pub repo: repo::Service, - pub server: server::Service, - pub sync: sync::Service, - pub temp: temp::Service, - pub(crate) _phantom: core::marker::PhantomData, - } - pub mod admin { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod identity { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod label { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod moderation { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod repo { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod server { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod sync { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod temp { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - } -} -pub mod sh { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub weaver: weaver::Service, - pub(crate) _phantom: core::marker::PhantomData, - } - pub mod weaver { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub actor: actor::Service, - pub(crate) _phantom: core::marker::PhantomData, - } - pub mod actor { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - } -} -pub mod tools { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub ozone: ozone::Service, - pub(crate) _phantom: core::marker::PhantomData, - } - pub mod ozone { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub communication: communication::Service, - pub hosting: hosting::Service, - pub moderation: moderation::Service, - pub server: server::Service, - pub set: set::Service, - pub setting: setting::Service, - pub signature: signature::Service, - pub team: team::Service, - pub verification: verification::Service, - pub(crate) _phantom: core::marker::PhantomData, - } - pub mod communication { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod hosting { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod moderation { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod server { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod set { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod setting { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod signature { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod team { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - pub mod verification { - pub struct Service - where - T: atrium_xrpc::XrpcClient + Send + Sync, - { - pub(crate) xrpc: std::sync::Arc, - pub(crate) _phantom: core::marker::PhantomData, - } - } - } -} -impl self::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - app: app::Service::new(std::sync::Arc::clone(&xrpc)), - chat: chat::Service::new(std::sync::Arc::clone(&xrpc)), - com: com::Service::new(std::sync::Arc::clone(&xrpc)), - sh: sh::Service::new(std::sync::Arc::clone(&xrpc)), - tools: tools::Service::new(std::sync::Arc::clone(&xrpc)), - _phantom: core::marker::PhantomData, - } - } -} -impl app::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - bsky: app::bsky::Service::new(std::sync::Arc::clone(&xrpc)), - _phantom: core::marker::PhantomData, - } - } -} -impl app::bsky::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - actor: app::bsky::actor::Service::new(std::sync::Arc::clone(&xrpc)), - feed: app::bsky::feed::Service::new(std::sync::Arc::clone(&xrpc)), - graph: app::bsky::graph::Service::new(std::sync::Arc::clone(&xrpc)), - labeler: app::bsky::labeler::Service::new(std::sync::Arc::clone(&xrpc)), - notification: app::bsky::notification::Service::new( - std::sync::Arc::clone(&xrpc), - ), - unspecced: app::bsky::unspecced::Service::new(std::sync::Arc::clone(&xrpc)), - video: app::bsky::video::Service::new(std::sync::Arc::clone(&xrpc)), - _phantom: core::marker::PhantomData, - } - } -} -impl app::bsky::actor::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Get private preferences attached to the current account. Expected use is synchronization between multiple devices, and import/export during account migration. Requires auth. - pub async fn get_preferences( - &self, - params: crate::app::bsky::actor::get_preferences::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::actor::get_preferences::Output, - crate::app::bsky::actor::get_preferences::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::actor::get_preferences::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get detailed profile view of an actor. Does not require auth, but contains relevant metadata with auth. - pub async fn get_profile( - &self, - params: crate::app::bsky::actor::get_profile::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::actor::get_profile::Output, - crate::app::bsky::actor::get_profile::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::actor::get_profile::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get detailed profile views of multiple actors. - pub async fn get_profiles( - &self, - params: crate::app::bsky::actor::get_profiles::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::actor::get_profiles::Output, - crate::app::bsky::actor::get_profiles::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::actor::get_profiles::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get a list of suggested actors. Expected use is discovery of accounts to follow during new account onboarding. - pub async fn get_suggestions( - &self, - params: crate::app::bsky::actor::get_suggestions::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::actor::get_suggestions::Output, - crate::app::bsky::actor::get_suggestions::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::actor::get_suggestions::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Set the private preferences attached to the account. - pub async fn put_preferences( - &self, - input: crate::app::bsky::actor::put_preferences::Input, - ) -> atrium_xrpc::Result<(), crate::app::bsky::actor::put_preferences::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::actor::put_preferences::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Find actors (profiles) matching search criteria. Does not require auth. - pub async fn search_actors( - &self, - params: crate::app::bsky::actor::search_actors::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::actor::search_actors::Output, - crate::app::bsky::actor::search_actors::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::actor::search_actors::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Find actor suggestions for a prefix search term. Expected use is for auto-completion during text field entry. Does not require auth. - pub async fn search_actors_typeahead( - &self, - params: crate::app::bsky::actor::search_actors_typeahead::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::actor::search_actors_typeahead::Output, - crate::app::bsky::actor::search_actors_typeahead::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::actor::search_actors_typeahead::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl app::bsky::feed::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Get information about a feed generator, including policies and offered feed URIs. Does not require auth; implemented by Feed Generator services (not App View). - pub async fn describe_feed_generator( - &self, - ) -> atrium_xrpc::Result< - crate::app::bsky::feed::describe_feed_generator::Output, - crate::app::bsky::feed::describe_feed_generator::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::describe_feed_generator::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get a list of feeds (feed generator records) created by the actor (in the actor's repo). - pub async fn get_actor_feeds( - &self, - params: crate::app::bsky::feed::get_actor_feeds::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::feed::get_actor_feeds::Output, - crate::app::bsky::feed::get_actor_feeds::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_actor_feeds::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get a list of posts liked by an actor. Requires auth, actor must be the requesting account. - pub async fn get_actor_likes( - &self, - params: crate::app::bsky::feed::get_actor_likes::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::feed::get_actor_likes::Output, - crate::app::bsky::feed::get_actor_likes::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_actor_likes::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get a view of an actor's 'author feed' (post and reposts by the author). Does not require auth. - pub async fn get_author_feed( - &self, - params: crate::app::bsky::feed::get_author_feed::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::feed::get_author_feed::Output, - crate::app::bsky::feed::get_author_feed::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_author_feed::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get a hydrated feed from an actor's selected feed generator. Implemented by App View. - pub async fn get_feed( - &self, - params: crate::app::bsky::feed::get_feed::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::feed::get_feed::Output, - crate::app::bsky::feed::get_feed::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_feed::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get information about a feed generator. Implemented by AppView. - pub async fn get_feed_generator( - &self, - params: crate::app::bsky::feed::get_feed_generator::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::feed::get_feed_generator::Output, - crate::app::bsky::feed::get_feed_generator::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_feed_generator::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get information about a list of feed generators. - pub async fn get_feed_generators( - &self, - params: crate::app::bsky::feed::get_feed_generators::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::feed::get_feed_generators::Output, - crate::app::bsky::feed::get_feed_generators::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_feed_generators::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get a skeleton of a feed provided by a feed generator. Auth is optional, depending on provider requirements, and provides the DID of the requester. Implemented by Feed Generator Service. - pub async fn get_feed_skeleton( - &self, - params: crate::app::bsky::feed::get_feed_skeleton::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::feed::get_feed_skeleton::Output, - crate::app::bsky::feed::get_feed_skeleton::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_feed_skeleton::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get like records which reference a subject (by AT-URI and CID). - pub async fn get_likes( - &self, - params: crate::app::bsky::feed::get_likes::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::feed::get_likes::Output, - crate::app::bsky::feed::get_likes::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_likes::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get a feed of recent posts from a list (posts and reposts from any actors on the list). Does not require auth. - pub async fn get_list_feed( - &self, - params: crate::app::bsky::feed::get_list_feed::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::feed::get_list_feed::Output, - crate::app::bsky::feed::get_list_feed::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_list_feed::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get posts in a thread. Does not require auth, but additional metadata and filtering will be applied for authed requests. - pub async fn get_post_thread( - &self, - params: crate::app::bsky::feed::get_post_thread::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::feed::get_post_thread::Output, - crate::app::bsky::feed::get_post_thread::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_post_thread::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'. - pub async fn get_posts( - &self, - params: crate::app::bsky::feed::get_posts::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::feed::get_posts::Output, - crate::app::bsky::feed::get_posts::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_posts::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get a list of quotes for a given post. - pub async fn get_quotes( - &self, - params: crate::app::bsky::feed::get_quotes::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::feed::get_quotes::Output, - crate::app::bsky::feed::get_quotes::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_quotes::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get a list of reposts for a given post. - pub async fn get_reposted_by( - &self, - params: crate::app::bsky::feed::get_reposted_by::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::feed::get_reposted_by::Output, - crate::app::bsky::feed::get_reposted_by::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_reposted_by::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get a list of suggested feeds (feed generators) for the requesting account. - pub async fn get_suggested_feeds( - &self, - params: crate::app::bsky::feed::get_suggested_feeds::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::feed::get_suggested_feeds::Output, - crate::app::bsky::feed::get_suggested_feeds::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_suggested_feeds::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get a view of the requesting account's home timeline. This is expected to be some form of reverse-chronological feed. - pub async fn get_timeline( - &self, - params: crate::app::bsky::feed::get_timeline::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::feed::get_timeline::Output, - crate::app::bsky::feed::get_timeline::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::get_timeline::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Find posts matching search criteria, returning views of those posts. Note that this API endpoint may require authentication (eg, not public) for some service providers and implementations. - pub async fn search_posts( - &self, - params: crate::app::bsky::feed::search_posts::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::feed::search_posts::Output, - crate::app::bsky::feed::search_posts::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::feed::search_posts::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Send information about interactions with feed items back to the feed generator that served them. - pub async fn send_interactions( - &self, - input: crate::app::bsky::feed::send_interactions::Input, - ) -> atrium_xrpc::Result< - crate::app::bsky::feed::send_interactions::Output, - crate::app::bsky::feed::send_interactions::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::feed::send_interactions::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl app::bsky::graph::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Get a list of starter packs created by the actor. - pub async fn get_actor_starter_packs( - &self, - params: crate::app::bsky::graph::get_actor_starter_packs::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::graph::get_actor_starter_packs::Output, - crate::app::bsky::graph::get_actor_starter_packs::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_actor_starter_packs::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Enumerates which accounts the requesting account is currently blocking. Requires auth. - pub async fn get_blocks( - &self, - params: crate::app::bsky::graph::get_blocks::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::graph::get_blocks::Output, - crate::app::bsky::graph::get_blocks::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_blocks::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Enumerates accounts which follow a specified account (actor). - pub async fn get_followers( - &self, - params: crate::app::bsky::graph::get_followers::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::graph::get_followers::Output, - crate::app::bsky::graph::get_followers::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_followers::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Enumerates accounts which a specified account (actor) follows. - pub async fn get_follows( - &self, - params: crate::app::bsky::graph::get_follows::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::graph::get_follows::Output, - crate::app::bsky::graph::get_follows::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_follows::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Enumerates accounts which follow a specified account (actor) and are followed by the viewer. - pub async fn get_known_followers( - &self, - params: crate::app::bsky::graph::get_known_followers::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::graph::get_known_followers::Output, - crate::app::bsky::graph::get_known_followers::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_known_followers::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Gets a 'view' (with additional context) of a specified list. - pub async fn get_list( - &self, - params: crate::app::bsky::graph::get_list::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::graph::get_list::Output, - crate::app::bsky::graph::get_list::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_list::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get mod lists that the requesting account (actor) is blocking. Requires auth. - pub async fn get_list_blocks( - &self, - params: crate::app::bsky::graph::get_list_blocks::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::graph::get_list_blocks::Output, - crate::app::bsky::graph::get_list_blocks::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_list_blocks::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Enumerates mod lists that the requesting account (actor) currently has muted. Requires auth. - pub async fn get_list_mutes( - &self, - params: crate::app::bsky::graph::get_list_mutes::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::graph::get_list_mutes::Output, - crate::app::bsky::graph::get_list_mutes::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_list_mutes::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Enumerates the lists created by a specified account (actor). - pub async fn get_lists( - &self, - params: crate::app::bsky::graph::get_lists::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::graph::get_lists::Output, - crate::app::bsky::graph::get_lists::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_lists::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Enumerates accounts that the requesting account (actor) currently has muted. Requires auth. - pub async fn get_mutes( - &self, - params: crate::app::bsky::graph::get_mutes::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::graph::get_mutes::Output, - crate::app::bsky::graph::get_mutes::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_mutes::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Enumerates public relationships between one account, and a list of other accounts. Does not require auth. - pub async fn get_relationships( - &self, - params: crate::app::bsky::graph::get_relationships::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::graph::get_relationships::Output, - crate::app::bsky::graph::get_relationships::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_relationships::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Gets a view of a starter pack. - pub async fn get_starter_pack( - &self, - params: crate::app::bsky::graph::get_starter_pack::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::graph::get_starter_pack::Output, - crate::app::bsky::graph::get_starter_pack::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_starter_pack::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get views for a list of starter packs. - pub async fn get_starter_packs( - &self, - params: crate::app::bsky::graph::get_starter_packs::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::graph::get_starter_packs::Output, - crate::app::bsky::graph::get_starter_packs::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_starter_packs::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Enumerates follows similar to a given account (actor). Expected use is to recommend additional accounts immediately after following one account. - pub async fn get_suggested_follows_by_actor( - &self, - params: crate::app::bsky::graph::get_suggested_follows_by_actor::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::graph::get_suggested_follows_by_actor::Output, - crate::app::bsky::graph::get_suggested_follows_by_actor::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::get_suggested_follows_by_actor::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Creates a mute relationship for the specified account. Mutes are private in Bluesky. Requires auth. - pub async fn mute_actor( - &self, - input: crate::app::bsky::graph::mute_actor::Input, - ) -> atrium_xrpc::Result<(), crate::app::bsky::graph::mute_actor::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::graph::mute_actor::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Creates a mute relationship for the specified list of accounts. Mutes are private in Bluesky. Requires auth. - pub async fn mute_actor_list( - &self, - input: crate::app::bsky::graph::mute_actor_list::Input, - ) -> atrium_xrpc::Result<(), crate::app::bsky::graph::mute_actor_list::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::graph::mute_actor_list::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Mutes a thread preventing notifications from the thread and any of its children. Mutes are private in Bluesky. Requires auth. - pub async fn mute_thread( - &self, - input: crate::app::bsky::graph::mute_thread::Input, - ) -> atrium_xrpc::Result<(), crate::app::bsky::graph::mute_thread::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::graph::mute_thread::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Find starter packs matching search criteria. Does not require auth. - pub async fn search_starter_packs( - &self, - params: crate::app::bsky::graph::search_starter_packs::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::graph::search_starter_packs::Output, - crate::app::bsky::graph::search_starter_packs::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::graph::search_starter_packs::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Unmutes the specified account. Requires auth. - pub async fn unmute_actor( - &self, - input: crate::app::bsky::graph::unmute_actor::Input, - ) -> atrium_xrpc::Result<(), crate::app::bsky::graph::unmute_actor::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::graph::unmute_actor::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Unmutes the specified list of accounts. Requires auth. - pub async fn unmute_actor_list( - &self, - input: crate::app::bsky::graph::unmute_actor_list::Input, - ) -> atrium_xrpc::Result<(), crate::app::bsky::graph::unmute_actor_list::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::graph::unmute_actor_list::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Unmutes the specified thread. Requires auth. - pub async fn unmute_thread( - &self, - input: crate::app::bsky::graph::unmute_thread::Input, - ) -> atrium_xrpc::Result<(), crate::app::bsky::graph::unmute_thread::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::graph::unmute_thread::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl app::bsky::labeler::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Get information about a list of labeler services. - pub async fn get_services( - &self, - params: crate::app::bsky::labeler::get_services::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::labeler::get_services::Output, - crate::app::bsky::labeler::get_services::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::labeler::get_services::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl app::bsky::notification::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Count the number of unread notifications for the requesting account. Requires auth. - pub async fn get_unread_count( - &self, - params: crate::app::bsky::notification::get_unread_count::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::notification::get_unread_count::Output, - crate::app::bsky::notification::get_unread_count::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::notification::get_unread_count::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Enumerate notifications for the requesting account. Requires auth. - pub async fn list_notifications( - &self, - params: crate::app::bsky::notification::list_notifications::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::notification::list_notifications::Output, - crate::app::bsky::notification::list_notifications::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::notification::list_notifications::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Set notification-related preferences for an account. Requires auth. - pub async fn put_preferences( - &self, - input: crate::app::bsky::notification::put_preferences::Input, - ) -> atrium_xrpc::Result< - (), - crate::app::bsky::notification::put_preferences::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::notification::put_preferences::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Register to receive push notifications, via a specified service, for the requesting account. Requires auth. - pub async fn register_push( - &self, - input: crate::app::bsky::notification::register_push::Input, - ) -> atrium_xrpc::Result<(), crate::app::bsky::notification::register_push::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::notification::register_push::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Notify server that the requesting account has seen notifications. Requires auth. - pub async fn update_seen( - &self, - input: crate::app::bsky::notification::update_seen::Input, - ) -> atrium_xrpc::Result<(), crate::app::bsky::notification::update_seen::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::notification::update_seen::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl app::bsky::unspecced::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Get miscellaneous runtime configuration. - pub async fn get_config( - &self, - ) -> atrium_xrpc::Result< - crate::app::bsky::unspecced::get_config::Output, - crate::app::bsky::unspecced::get_config::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::unspecced::get_config::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///An unspecced view of globally popular feed generators. - pub async fn get_popular_feed_generators( - &self, - params: crate::app::bsky::unspecced::get_popular_feed_generators::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::unspecced::get_popular_feed_generators::Output, - crate::app::bsky::unspecced::get_popular_feed_generators::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::unspecced::get_popular_feed_generators::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get a list of suggested feeds - pub async fn get_suggested_feeds( - &self, - params: crate::app::bsky::unspecced::get_suggested_feeds::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::unspecced::get_suggested_feeds::Output, - crate::app::bsky::unspecced::get_suggested_feeds::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::unspecced::get_suggested_feeds::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get a skeleton of suggested feeds. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedFeeds - pub async fn get_suggested_feeds_skeleton( - &self, - params: crate::app::bsky::unspecced::get_suggested_feeds_skeleton::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::unspecced::get_suggested_feeds_skeleton::Output, - crate::app::bsky::unspecced::get_suggested_feeds_skeleton::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::unspecced::get_suggested_feeds_skeleton::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get a list of suggested starterpacks - pub async fn get_suggested_starter_packs( - &self, - params: crate::app::bsky::unspecced::get_suggested_starter_packs::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::unspecced::get_suggested_starter_packs::Output, - crate::app::bsky::unspecced::get_suggested_starter_packs::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::unspecced::get_suggested_starter_packs::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get a skeleton of suggested starterpacks. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedStarterpacks - pub async fn get_suggested_starter_packs_skeleton( - &self, - params: crate::app::bsky::unspecced::get_suggested_starter_packs_skeleton::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::unspecced::get_suggested_starter_packs_skeleton::Output, - crate::app::bsky::unspecced::get_suggested_starter_packs_skeleton::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::unspecced::get_suggested_starter_packs_skeleton::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get a list of suggested users - pub async fn get_suggested_users( - &self, - params: crate::app::bsky::unspecced::get_suggested_users::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::unspecced::get_suggested_users::Output, - crate::app::bsky::unspecced::get_suggested_users::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::unspecced::get_suggested_users::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get a skeleton of suggested users. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedUsers - pub async fn get_suggested_users_skeleton( - &self, - params: crate::app::bsky::unspecced::get_suggested_users_skeleton::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::unspecced::get_suggested_users_skeleton::Output, - crate::app::bsky::unspecced::get_suggested_users_skeleton::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::unspecced::get_suggested_users_skeleton::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get a skeleton of suggested actors. Intended to be called and then hydrated through app.bsky.actor.getSuggestions - pub async fn get_suggestions_skeleton( - &self, - params: crate::app::bsky::unspecced::get_suggestions_skeleton::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::unspecced::get_suggestions_skeleton::Output, - crate::app::bsky::unspecced::get_suggestions_skeleton::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::unspecced::get_suggestions_skeleton::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get a list of suggestions (feeds and users) tagged with categories - pub async fn get_tagged_suggestions( - &self, - params: crate::app::bsky::unspecced::get_tagged_suggestions::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::unspecced::get_tagged_suggestions::Output, - crate::app::bsky::unspecced::get_tagged_suggestions::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::unspecced::get_tagged_suggestions::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get a list of trending topics - pub async fn get_trending_topics( - &self, - params: crate::app::bsky::unspecced::get_trending_topics::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::unspecced::get_trending_topics::Output, - crate::app::bsky::unspecced::get_trending_topics::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::unspecced::get_trending_topics::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get the current trends on the network - pub async fn get_trends( - &self, - params: crate::app::bsky::unspecced::get_trends::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::unspecced::get_trends::Output, - crate::app::bsky::unspecced::get_trends::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::unspecced::get_trends::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get the skeleton of trends on the network. Intended to be called and then hydrated through app.bsky.unspecced.getTrends - pub async fn get_trends_skeleton( - &self, - params: crate::app::bsky::unspecced::get_trends_skeleton::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::unspecced::get_trends_skeleton::Output, - crate::app::bsky::unspecced::get_trends_skeleton::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::unspecced::get_trends_skeleton::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Backend Actors (profile) search, returns only skeleton. - pub async fn search_actors_skeleton( - &self, - params: crate::app::bsky::unspecced::search_actors_skeleton::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::unspecced::search_actors_skeleton::Output, - crate::app::bsky::unspecced::search_actors_skeleton::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::unspecced::search_actors_skeleton::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Backend Posts search, returns only skeleton - pub async fn search_posts_skeleton( - &self, - params: crate::app::bsky::unspecced::search_posts_skeleton::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::unspecced::search_posts_skeleton::Output, - crate::app::bsky::unspecced::search_posts_skeleton::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::unspecced::search_posts_skeleton::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Backend Starter Pack search, returns only skeleton. - pub async fn search_starter_packs_skeleton( - &self, - params: crate::app::bsky::unspecced::search_starter_packs_skeleton::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::unspecced::search_starter_packs_skeleton::Output, - crate::app::bsky::unspecced::search_starter_packs_skeleton::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::unspecced::search_starter_packs_skeleton::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl app::bsky::video::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Get status details for a video processing job. - pub async fn get_job_status( - &self, - params: crate::app::bsky::video::get_job_status::Parameters, - ) -> atrium_xrpc::Result< - crate::app::bsky::video::get_job_status::Output, - crate::app::bsky::video::get_job_status::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::video::get_job_status::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get video upload limits for the authenticated user. - pub async fn get_upload_limits( - &self, - ) -> atrium_xrpc::Result< - crate::app::bsky::video::get_upload_limits::Output, - crate::app::bsky::video::get_upload_limits::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::app::bsky::video::get_upload_limits::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Upload a video to be processed then stored on the PDS. - pub async fn upload_video( - &self, - input: Vec, - ) -> atrium_xrpc::Result< - crate::app::bsky::video::upload_video::Output, - crate::app::bsky::video::upload_video::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - Vec, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::app::bsky::video::upload_video::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Bytes(input)), - encoding: Some(String::from("video/mp4")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl chat::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - bsky: chat::bsky::Service::new(std::sync::Arc::clone(&xrpc)), - _phantom: core::marker::PhantomData, - } - } -} -impl chat::bsky::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - actor: chat::bsky::actor::Service::new(std::sync::Arc::clone(&xrpc)), - convo: chat::bsky::convo::Service::new(std::sync::Arc::clone(&xrpc)), - moderation: chat::bsky::moderation::Service::new( - std::sync::Arc::clone(&xrpc), - ), - _phantom: core::marker::PhantomData, - } - } -} -impl chat::bsky::actor::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - pub async fn delete_account( - &self, - ) -> atrium_xrpc::Result< - crate::chat::bsky::actor::delete_account::Output, - crate::chat::bsky::actor::delete_account::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::chat::bsky::actor::delete_account::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - pub async fn export_account_data( - &self, - ) -> atrium_xrpc::Result< - Vec, - crate::chat::bsky::actor::export_account_data::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - (), - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::chat::bsky::actor::export_account_data::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(bytes) => Ok(bytes), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl chat::bsky::convo::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - pub async fn accept_convo( - &self, - input: crate::chat::bsky::convo::accept_convo::Input, - ) -> atrium_xrpc::Result< - crate::chat::bsky::convo::accept_convo::Output, - crate::chat::bsky::convo::accept_convo::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::chat::bsky::convo::accept_convo::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Adds an emoji reaction to a message. Requires authentication. It is idempotent, so multiple calls from the same user with the same emoji result in a single reaction. - pub async fn add_reaction( - &self, - input: crate::chat::bsky::convo::add_reaction::Input, - ) -> atrium_xrpc::Result< - crate::chat::bsky::convo::add_reaction::Output, - crate::chat::bsky::convo::add_reaction::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::chat::bsky::convo::add_reaction::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - pub async fn delete_message_for_self( - &self, - input: crate::chat::bsky::convo::delete_message_for_self::Input, - ) -> atrium_xrpc::Result< - crate::chat::bsky::convo::delete_message_for_self::Output, - crate::chat::bsky::convo::delete_message_for_self::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::chat::bsky::convo::delete_message_for_self::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - pub async fn get_convo( - &self, - params: crate::chat::bsky::convo::get_convo::Parameters, - ) -> atrium_xrpc::Result< - crate::chat::bsky::convo::get_convo::Output, - crate::chat::bsky::convo::get_convo::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::chat::bsky::convo::get_convo::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get whether the requester and the other members can chat. If an existing convo is found for these members, it is returned. - pub async fn get_convo_availability( - &self, - params: crate::chat::bsky::convo::get_convo_availability::Parameters, - ) -> atrium_xrpc::Result< - crate::chat::bsky::convo::get_convo_availability::Output, - crate::chat::bsky::convo::get_convo_availability::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::chat::bsky::convo::get_convo_availability::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - pub async fn get_convo_for_members( - &self, - params: crate::chat::bsky::convo::get_convo_for_members::Parameters, - ) -> atrium_xrpc::Result< - crate::chat::bsky::convo::get_convo_for_members::Output, - crate::chat::bsky::convo::get_convo_for_members::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::chat::bsky::convo::get_convo_for_members::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - pub async fn get_log( - &self, - params: crate::chat::bsky::convo::get_log::Parameters, - ) -> atrium_xrpc::Result< - crate::chat::bsky::convo::get_log::Output, - crate::chat::bsky::convo::get_log::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::chat::bsky::convo::get_log::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - pub async fn get_messages( - &self, - params: crate::chat::bsky::convo::get_messages::Parameters, - ) -> atrium_xrpc::Result< - crate::chat::bsky::convo::get_messages::Output, - crate::chat::bsky::convo::get_messages::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::chat::bsky::convo::get_messages::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - pub async fn leave_convo( - &self, - input: crate::chat::bsky::convo::leave_convo::Input, - ) -> atrium_xrpc::Result< - crate::chat::bsky::convo::leave_convo::Output, - crate::chat::bsky::convo::leave_convo::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::chat::bsky::convo::leave_convo::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - pub async fn list_convos( - &self, - params: crate::chat::bsky::convo::list_convos::Parameters, - ) -> atrium_xrpc::Result< - crate::chat::bsky::convo::list_convos::Output, - crate::chat::bsky::convo::list_convos::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::chat::bsky::convo::list_convos::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - pub async fn mute_convo( - &self, - input: crate::chat::bsky::convo::mute_convo::Input, - ) -> atrium_xrpc::Result< - crate::chat::bsky::convo::mute_convo::Output, - crate::chat::bsky::convo::mute_convo::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::chat::bsky::convo::mute_convo::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Removes an emoji reaction from a message. Requires authentication. It is idempotent, so multiple calls from the same user with the same emoji result in that reaction not being present, even if it already wasn't. - pub async fn remove_reaction( - &self, - input: crate::chat::bsky::convo::remove_reaction::Input, - ) -> atrium_xrpc::Result< - crate::chat::bsky::convo::remove_reaction::Output, - crate::chat::bsky::convo::remove_reaction::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::chat::bsky::convo::remove_reaction::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - pub async fn send_message( - &self, - input: crate::chat::bsky::convo::send_message::Input, - ) -> atrium_xrpc::Result< - crate::chat::bsky::convo::send_message::Output, - crate::chat::bsky::convo::send_message::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::chat::bsky::convo::send_message::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - pub async fn send_message_batch( - &self, - input: crate::chat::bsky::convo::send_message_batch::Input, - ) -> atrium_xrpc::Result< - crate::chat::bsky::convo::send_message_batch::Output, - crate::chat::bsky::convo::send_message_batch::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::chat::bsky::convo::send_message_batch::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - pub async fn unmute_convo( - &self, - input: crate::chat::bsky::convo::unmute_convo::Input, - ) -> atrium_xrpc::Result< - crate::chat::bsky::convo::unmute_convo::Output, - crate::chat::bsky::convo::unmute_convo::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::chat::bsky::convo::unmute_convo::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - pub async fn update_all_read( - &self, - input: crate::chat::bsky::convo::update_all_read::Input, - ) -> atrium_xrpc::Result< - crate::chat::bsky::convo::update_all_read::Output, - crate::chat::bsky::convo::update_all_read::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::chat::bsky::convo::update_all_read::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - pub async fn update_read( - &self, - input: crate::chat::bsky::convo::update_read::Input, - ) -> atrium_xrpc::Result< - crate::chat::bsky::convo::update_read::Output, - crate::chat::bsky::convo::update_read::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::chat::bsky::convo::update_read::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl chat::bsky::moderation::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - pub async fn get_actor_metadata( - &self, - params: crate::chat::bsky::moderation::get_actor_metadata::Parameters, - ) -> atrium_xrpc::Result< - crate::chat::bsky::moderation::get_actor_metadata::Output, - crate::chat::bsky::moderation::get_actor_metadata::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::chat::bsky::moderation::get_actor_metadata::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - pub async fn get_message_context( - &self, - params: crate::chat::bsky::moderation::get_message_context::Parameters, - ) -> atrium_xrpc::Result< - crate::chat::bsky::moderation::get_message_context::Output, - crate::chat::bsky::moderation::get_message_context::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::chat::bsky::moderation::get_message_context::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - pub async fn update_actor_access( - &self, - input: crate::chat::bsky::moderation::update_actor_access::Input, - ) -> atrium_xrpc::Result< - (), - crate::chat::bsky::moderation::update_actor_access::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::chat::bsky::moderation::update_actor_access::NSID - .into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl com::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - atproto: com::atproto::Service::new(std::sync::Arc::clone(&xrpc)), - _phantom: core::marker::PhantomData, - } - } -} -impl com::atproto::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - admin: com::atproto::admin::Service::new(std::sync::Arc::clone(&xrpc)), - identity: com::atproto::identity::Service::new(std::sync::Arc::clone(&xrpc)), - label: com::atproto::label::Service::new(std::sync::Arc::clone(&xrpc)), - moderation: com::atproto::moderation::Service::new( - std::sync::Arc::clone(&xrpc), - ), - repo: com::atproto::repo::Service::new(std::sync::Arc::clone(&xrpc)), - server: com::atproto::server::Service::new(std::sync::Arc::clone(&xrpc)), - sync: com::atproto::sync::Service::new(std::sync::Arc::clone(&xrpc)), - temp: com::atproto::temp::Service::new(std::sync::Arc::clone(&xrpc)), - _phantom: core::marker::PhantomData, - } - } -} -impl com::atproto::admin::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Delete a user account as an administrator. - pub async fn delete_account( - &self, - input: crate::com::atproto::admin::delete_account::Input, - ) -> atrium_xrpc::Result<(), crate::com::atproto::admin::delete_account::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::admin::delete_account::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Disable an account from receiving new invite codes, but does not invalidate existing codes. - pub async fn disable_account_invites( - &self, - input: crate::com::atproto::admin::disable_account_invites::Input, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::admin::disable_account_invites::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::admin::disable_account_invites::NSID - .into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Disable some set of codes and/or all codes associated with a set of users. - pub async fn disable_invite_codes( - &self, - input: crate::com::atproto::admin::disable_invite_codes::Input, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::admin::disable_invite_codes::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::admin::disable_invite_codes::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Re-enable an account's ability to receive invite codes. - pub async fn enable_account_invites( - &self, - input: crate::com::atproto::admin::enable_account_invites::Input, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::admin::enable_account_invites::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::admin::enable_account_invites::NSID - .into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get details about an account. - pub async fn get_account_info( - &self, - params: crate::com::atproto::admin::get_account_info::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::admin::get_account_info::Output, - crate::com::atproto::admin::get_account_info::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::admin::get_account_info::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get details about some accounts. - pub async fn get_account_infos( - &self, - params: crate::com::atproto::admin::get_account_infos::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::admin::get_account_infos::Output, - crate::com::atproto::admin::get_account_infos::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::admin::get_account_infos::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get an admin view of invite codes. - pub async fn get_invite_codes( - &self, - params: crate::com::atproto::admin::get_invite_codes::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::admin::get_invite_codes::Output, - crate::com::atproto::admin::get_invite_codes::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::admin::get_invite_codes::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get the service-specific admin status of a subject (account, record, or blob). - pub async fn get_subject_status( - &self, - params: crate::com::atproto::admin::get_subject_status::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::admin::get_subject_status::Output, - crate::com::atproto::admin::get_subject_status::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::admin::get_subject_status::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get list of accounts that matches your search query. - pub async fn search_accounts( - &self, - params: crate::com::atproto::admin::search_accounts::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::admin::search_accounts::Output, - crate::com::atproto::admin::search_accounts::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::admin::search_accounts::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Send email to a user's account email address. - pub async fn send_email( - &self, - input: crate::com::atproto::admin::send_email::Input, - ) -> atrium_xrpc::Result< - crate::com::atproto::admin::send_email::Output, - crate::com::atproto::admin::send_email::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::admin::send_email::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Administrative action to update an account's email. - pub async fn update_account_email( - &self, - input: crate::com::atproto::admin::update_account_email::Input, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::admin::update_account_email::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::admin::update_account_email::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Administrative action to update an account's handle. - pub async fn update_account_handle( - &self, - input: crate::com::atproto::admin::update_account_handle::Input, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::admin::update_account_handle::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::admin::update_account_handle::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Update the password for a user account as an administrator. - pub async fn update_account_password( - &self, - input: crate::com::atproto::admin::update_account_password::Input, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::admin::update_account_password::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::admin::update_account_password::NSID - .into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Administrative action to update an account's signing key in their Did document. - pub async fn update_account_signing_key( - &self, - input: crate::com::atproto::admin::update_account_signing_key::Input, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::admin::update_account_signing_key::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::admin::update_account_signing_key::NSID - .into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Update the service-specific admin status of a subject (account, record, or blob). - pub async fn update_subject_status( - &self, - input: crate::com::atproto::admin::update_subject_status::Input, - ) -> atrium_xrpc::Result< - crate::com::atproto::admin::update_subject_status::Output, - crate::com::atproto::admin::update_subject_status::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::admin::update_subject_status::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl com::atproto::identity::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Describe the credentials that should be included in the DID doc of an account that is migrating to this service. - pub async fn get_recommended_did_credentials( - &self, - ) -> atrium_xrpc::Result< - crate::com::atproto::identity::get_recommended_did_credentials::Output, - crate::com::atproto::identity::get_recommended_did_credentials::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::identity::get_recommended_did_credentials::NSID - .into(), - parameters: None, - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Request that the server re-resolve an identity (DID and handle). The server may ignore this request, or require authentication, depending on the role, implementation, and policy of the server. - pub async fn refresh_identity( - &self, - input: crate::com::atproto::identity::refresh_identity::Input, - ) -> atrium_xrpc::Result< - crate::com::atproto::identity::refresh_identity::Output, - crate::com::atproto::identity::refresh_identity::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::identity::refresh_identity::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Request an email with a code to in order to request a signed PLC operation. Requires Auth. - pub async fn request_plc_operation_signature( - &self, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::identity::request_plc_operation_signature::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - (), - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::identity::request_plc_operation_signature::NSID - .into(), - parameters: None, - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Resolves DID to DID document. Does not bi-directionally verify handle. - pub async fn resolve_did( - &self, - params: crate::com::atproto::identity::resolve_did::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::identity::resolve_did::Output, - crate::com::atproto::identity::resolve_did::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::identity::resolve_did::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Resolves an atproto handle (hostname) to a DID. Does not necessarily bi-directionally verify against the the DID document. - pub async fn resolve_handle( - &self, - params: crate::com::atproto::identity::resolve_handle::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::identity::resolve_handle::Output, - crate::com::atproto::identity::resolve_handle::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::identity::resolve_handle::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Resolves an identity (DID or Handle) to a full identity (DID document and verified handle). - pub async fn resolve_identity( - &self, - params: crate::com::atproto::identity::resolve_identity::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::identity::resolve_identity::Output, - crate::com::atproto::identity::resolve_identity::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::identity::resolve_identity::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Signs a PLC operation to update some value(s) in the requesting DID's document. - pub async fn sign_plc_operation( - &self, - input: crate::com::atproto::identity::sign_plc_operation::Input, - ) -> atrium_xrpc::Result< - crate::com::atproto::identity::sign_plc_operation::Output, - crate::com::atproto::identity::sign_plc_operation::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::identity::sign_plc_operation::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Validates a PLC operation to ensure that it doesn't violate a service's constraints or get the identity into a bad state, then submits it to the PLC registry - pub async fn submit_plc_operation( - &self, - input: crate::com::atproto::identity::submit_plc_operation::Input, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::identity::submit_plc_operation::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::identity::submit_plc_operation::NSID - .into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Updates the current account's handle. Verifies handle validity, and updates did:plc document if necessary. Implemented by PDS, and requires auth. - pub async fn update_handle( - &self, - input: crate::com::atproto::identity::update_handle::Input, - ) -> atrium_xrpc::Result<(), crate::com::atproto::identity::update_handle::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::identity::update_handle::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl com::atproto::label::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Find labels relevant to the provided AT-URI patterns. Public endpoint for moderation services, though may return different or additional results with auth. - pub async fn query_labels( - &self, - params: crate::com::atproto::label::query_labels::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::label::query_labels::Output, - crate::com::atproto::label::query_labels::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::label::query_labels::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl com::atproto::moderation::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Submit a moderation report regarding an atproto account or record. Implemented by moderation services (with PDS proxying), and requires auth. - pub async fn create_report( - &self, - input: crate::com::atproto::moderation::create_report::Input, - ) -> atrium_xrpc::Result< - crate::com::atproto::moderation::create_report::Output, - crate::com::atproto::moderation::create_report::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::moderation::create_report::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl com::atproto::repo::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Apply a batch transaction of repository creates, updates, and deletes. Requires auth, implemented by PDS. - pub async fn apply_writes( - &self, - input: crate::com::atproto::repo::apply_writes::Input, - ) -> atrium_xrpc::Result< - crate::com::atproto::repo::apply_writes::Output, - crate::com::atproto::repo::apply_writes::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::repo::apply_writes::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Create a single new repository record. Requires auth, implemented by PDS. - pub async fn create_record( - &self, - input: crate::com::atproto::repo::create_record::Input, - ) -> atrium_xrpc::Result< - crate::com::atproto::repo::create_record::Output, - crate::com::atproto::repo::create_record::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::repo::create_record::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Delete a repository record, or ensure it doesn't exist. Requires auth, implemented by PDS. - pub async fn delete_record( - &self, - input: crate::com::atproto::repo::delete_record::Input, - ) -> atrium_xrpc::Result< - crate::com::atproto::repo::delete_record::Output, - crate::com::atproto::repo::delete_record::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::repo::delete_record::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get information about an account and repository, including the list of collections. Does not require auth. - pub async fn describe_repo( - &self, - params: crate::com::atproto::repo::describe_repo::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::repo::describe_repo::Output, - crate::com::atproto::repo::describe_repo::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::repo::describe_repo::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get a single record from a repository. Does not require auth. - pub async fn get_record( - &self, - params: crate::com::atproto::repo::get_record::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::repo::get_record::Output, - crate::com::atproto::repo::get_record::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::repo::get_record::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Import a repo in the form of a CAR file. Requires Content-Length HTTP header to be set. - pub async fn import_repo( - &self, - input: Vec, - ) -> atrium_xrpc::Result<(), crate::com::atproto::repo::import_repo::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - Vec, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::repo::import_repo::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Bytes(input)), - encoding: Some(String::from("application/vnd.ipld.car")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Returns a list of missing blobs for the requesting account. Intended to be used in the account migration flow. - pub async fn list_missing_blobs( - &self, - params: crate::com::atproto::repo::list_missing_blobs::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::repo::list_missing_blobs::Output, - crate::com::atproto::repo::list_missing_blobs::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::repo::list_missing_blobs::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///List a range of records in a repository, matching a specific collection. Does not require auth. - pub async fn list_records( - &self, - params: crate::com::atproto::repo::list_records::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::repo::list_records::Output, - crate::com::atproto::repo::list_records::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::repo::list_records::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Write a repository record, creating or updating it as needed. Requires auth, implemented by PDS. - pub async fn put_record( - &self, - input: crate::com::atproto::repo::put_record::Input, - ) -> atrium_xrpc::Result< - crate::com::atproto::repo::put_record::Output, - crate::com::atproto::repo::put_record::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::repo::put_record::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Upload a new blob, to be referenced from a repository record. The blob will be deleted if it is not referenced within a time window (eg, minutes). Blob restrictions (mimetype, size, etc) are enforced when the reference is created. Requires auth, implemented by PDS. - pub async fn upload_blob( - &self, - input: Vec, - ) -> atrium_xrpc::Result< - crate::com::atproto::repo::upload_blob::Output, - crate::com::atproto::repo::upload_blob::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - Vec, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::repo::upload_blob::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Bytes(input)), - encoding: Some(String::from("*/*")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl com::atproto::server::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Activates a currently deactivated account. Used to finalize account migration after the account's repo is imported and identity is setup. - pub async fn activate_account( - &self, - ) -> atrium_xrpc::Result<(), crate::com::atproto::server::activate_account::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - (), - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::activate_account::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Returns the status of an account, especially as pertaining to import or recovery. Can be called many times over the course of an account migration. Requires auth and can only be called pertaining to oneself. - pub async fn check_account_status( - &self, - ) -> atrium_xrpc::Result< - crate::com::atproto::server::check_account_status::Output, - crate::com::atproto::server::check_account_status::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::server::check_account_status::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Confirm an email using a token from com.atproto.server.requestEmailConfirmation. - pub async fn confirm_email( - &self, - input: crate::com::atproto::server::confirm_email::Input, - ) -> atrium_xrpc::Result<(), crate::com::atproto::server::confirm_email::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::confirm_email::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Create an account. Implemented by PDS. - pub async fn create_account( - &self, - input: crate::com::atproto::server::create_account::Input, - ) -> atrium_xrpc::Result< - crate::com::atproto::server::create_account::Output, - crate::com::atproto::server::create_account::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::create_account::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Create an App Password. - pub async fn create_app_password( - &self, - input: crate::com::atproto::server::create_app_password::Input, - ) -> atrium_xrpc::Result< - crate::com::atproto::server::create_app_password::Output, - crate::com::atproto::server::create_app_password::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::create_app_password::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Create an invite code. - pub async fn create_invite_code( - &self, - input: crate::com::atproto::server::create_invite_code::Input, - ) -> atrium_xrpc::Result< - crate::com::atproto::server::create_invite_code::Output, - crate::com::atproto::server::create_invite_code::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::create_invite_code::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Create invite codes. - pub async fn create_invite_codes( - &self, - input: crate::com::atproto::server::create_invite_codes::Input, - ) -> atrium_xrpc::Result< - crate::com::atproto::server::create_invite_codes::Output, - crate::com::atproto::server::create_invite_codes::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::create_invite_codes::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Create an authentication session. - pub async fn create_session( - &self, - input: crate::com::atproto::server::create_session::Input, - ) -> atrium_xrpc::Result< - crate::com::atproto::server::create_session::Output, - crate::com::atproto::server::create_session::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::create_session::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Deactivates a currently active account. Stops serving of repo, and future writes to repo until reactivated. Used to finalize account migration with the old host after the account has been activated on the new host. - pub async fn deactivate_account( - &self, - input: crate::com::atproto::server::deactivate_account::Input, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::server::deactivate_account::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::deactivate_account::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Delete an actor's account with a token and password. Can only be called after requesting a deletion token. Requires auth. - pub async fn delete_account( - &self, - input: crate::com::atproto::server::delete_account::Input, - ) -> atrium_xrpc::Result<(), crate::com::atproto::server::delete_account::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::delete_account::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Delete the current session. Requires auth. - pub async fn delete_session( - &self, - ) -> atrium_xrpc::Result<(), crate::com::atproto::server::delete_session::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - (), - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::delete_session::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Describes the server's account creation requirements and capabilities. Implemented by PDS. - pub async fn describe_server( - &self, - ) -> atrium_xrpc::Result< - crate::com::atproto::server::describe_server::Output, - crate::com::atproto::server::describe_server::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::server::describe_server::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get all invite codes for the current account. Requires auth. - pub async fn get_account_invite_codes( - &self, - params: crate::com::atproto::server::get_account_invite_codes::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::server::get_account_invite_codes::Output, - crate::com::atproto::server::get_account_invite_codes::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::server::get_account_invite_codes::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get a signed token on behalf of the requesting DID for the requested service. - pub async fn get_service_auth( - &self, - params: crate::com::atproto::server::get_service_auth::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::server::get_service_auth::Output, - crate::com::atproto::server::get_service_auth::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::server::get_service_auth::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get information about the current auth session. Requires auth. - pub async fn get_session( - &self, - ) -> atrium_xrpc::Result< - crate::com::atproto::server::get_session::Output, - crate::com::atproto::server::get_session::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::server::get_session::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///List all App Passwords. - pub async fn list_app_passwords( - &self, - ) -> atrium_xrpc::Result< - crate::com::atproto::server::list_app_passwords::Output, - crate::com::atproto::server::list_app_passwords::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::server::list_app_passwords::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Refresh an authentication session. Requires auth using the 'refreshJwt' (not the 'accessJwt'). - pub async fn refresh_session( - &self, - ) -> atrium_xrpc::Result< - crate::com::atproto::server::refresh_session::Output, - crate::com::atproto::server::refresh_session::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::refresh_session::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Initiate a user account deletion via email. - pub async fn request_account_delete( - &self, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::server::request_account_delete::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - (), - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::request_account_delete::NSID - .into(), - parameters: None, - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Request an email with a code to confirm ownership of email. - pub async fn request_email_confirmation( - &self, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::server::request_email_confirmation::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - (), - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::request_email_confirmation::NSID - .into(), - parameters: None, - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Request a token in order to update email. - pub async fn request_email_update( - &self, - ) -> atrium_xrpc::Result< - crate::com::atproto::server::request_email_update::Output, - crate::com::atproto::server::request_email_update::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::request_email_update::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Initiate a user account password reset via email. - pub async fn request_password_reset( - &self, - input: crate::com::atproto::server::request_password_reset::Input, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::server::request_password_reset::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::request_password_reset::NSID - .into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Reserve a repo signing key, for use with account creation. Necessary so that a DID PLC update operation can be constructed during an account migraiton. Public and does not require auth; implemented by PDS. NOTE: this endpoint may change when full account migration is implemented. - pub async fn reserve_signing_key( - &self, - input: crate::com::atproto::server::reserve_signing_key::Input, - ) -> atrium_xrpc::Result< - crate::com::atproto::server::reserve_signing_key::Output, - crate::com::atproto::server::reserve_signing_key::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::reserve_signing_key::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Reset a user account password using a token. - pub async fn reset_password( - &self, - input: crate::com::atproto::server::reset_password::Input, - ) -> atrium_xrpc::Result<(), crate::com::atproto::server::reset_password::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::reset_password::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Revoke an App Password by name. - pub async fn revoke_app_password( - &self, - input: crate::com::atproto::server::revoke_app_password::Input, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::server::revoke_app_password::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::revoke_app_password::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Update an account's email. - pub async fn update_email( - &self, - input: crate::com::atproto::server::update_email::Input, - ) -> atrium_xrpc::Result<(), crate::com::atproto::server::update_email::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::server::update_email::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl com::atproto::sync::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Get a blob associated with a given account. Returns the full blob as originally uploaded. Does not require auth; implemented by PDS. - pub async fn get_blob( - &self, - params: crate::com::atproto::sync::get_blob::Parameters, - ) -> atrium_xrpc::Result, crate::com::atproto::sync::get_blob::Error> { - let response = self - .xrpc - .send_xrpc::< - _, - (), - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::get_blob::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(bytes) => Ok(bytes), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get data blocks from a given repo, by CID. For example, intermediate MST nodes, or records. Does not require auth; implemented by PDS. - pub async fn get_blocks( - &self, - params: crate::com::atproto::sync::get_blocks::Parameters, - ) -> atrium_xrpc::Result, crate::com::atproto::sync::get_blocks::Error> { - let response = self - .xrpc - .send_xrpc::< - _, - (), - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::get_blocks::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(bytes) => Ok(bytes), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///DEPRECATED - please use com.atproto.sync.getRepo instead - pub async fn get_checkout( - &self, - params: crate::com::atproto::sync::get_checkout::Parameters, - ) -> atrium_xrpc::Result, crate::com::atproto::sync::get_checkout::Error> { - let response = self - .xrpc - .send_xrpc::< - _, - (), - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::get_checkout::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(bytes) => Ok(bytes), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///DEPRECATED - please use com.atproto.sync.getLatestCommit instead - pub async fn get_head( - &self, - params: crate::com::atproto::sync::get_head::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::sync::get_head::Output, - crate::com::atproto::sync::get_head::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::get_head::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Returns information about a specified upstream host, as consumed by the server. Implemented by relays. - pub async fn get_host_status( - &self, - params: crate::com::atproto::sync::get_host_status::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::sync::get_host_status::Output, - crate::com::atproto::sync::get_host_status::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::get_host_status::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get the current commit CID & revision of the specified repo. Does not require auth. - pub async fn get_latest_commit( - &self, - params: crate::com::atproto::sync::get_latest_commit::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::sync::get_latest_commit::Output, - crate::com::atproto::sync::get_latest_commit::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::get_latest_commit::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get data blocks needed to prove the existence or non-existence of record in the current version of repo. Does not require auth. - pub async fn get_record( - &self, - params: crate::com::atproto::sync::get_record::Parameters, - ) -> atrium_xrpc::Result, crate::com::atproto::sync::get_record::Error> { - let response = self - .xrpc - .send_xrpc::< - _, - (), - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::get_record::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(bytes) => Ok(bytes), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Download a repository export as CAR file. Optionally only a 'diff' since a previous revision. Does not require auth; implemented by PDS. - pub async fn get_repo( - &self, - params: crate::com::atproto::sync::get_repo::Parameters, - ) -> atrium_xrpc::Result, crate::com::atproto::sync::get_repo::Error> { - let response = self - .xrpc - .send_xrpc::< - _, - (), - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::get_repo::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(bytes) => Ok(bytes), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get the hosting status for a repository, on this server. Expected to be implemented by PDS and Relay. - pub async fn get_repo_status( - &self, - params: crate::com::atproto::sync::get_repo_status::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::sync::get_repo_status::Output, - crate::com::atproto::sync::get_repo_status::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::get_repo_status::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///List blob CIDs for an account, since some repo revision. Does not require auth; implemented by PDS. - pub async fn list_blobs( - &self, - params: crate::com::atproto::sync::list_blobs::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::sync::list_blobs::Output, - crate::com::atproto::sync::list_blobs::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::list_blobs::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Enumerates upstream hosts (eg, PDS or relay instances) that this service consumes from. Implemented by relays. - pub async fn list_hosts( - &self, - params: crate::com::atproto::sync::list_hosts::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::sync::list_hosts::Output, - crate::com::atproto::sync::list_hosts::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::list_hosts::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Enumerates all the DID, rev, and commit CID for all repos hosted by this service. Does not require auth; implemented by PDS and Relay. - pub async fn list_repos( - &self, - params: crate::com::atproto::sync::list_repos::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::sync::list_repos::Output, - crate::com::atproto::sync::list_repos::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::list_repos::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Enumerates all the DIDs which have records with the given collection NSID. - pub async fn list_repos_by_collection( - &self, - params: crate::com::atproto::sync::list_repos_by_collection::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::sync::list_repos_by_collection::Output, - crate::com::atproto::sync::list_repos_by_collection::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::sync::list_repos_by_collection::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Notify a crawling service of a recent update, and that crawling should resume. Intended use is after a gap between repo stream events caused the crawling service to disconnect. Does not require auth; implemented by Relay. DEPRECATED: just use com.atproto.sync.requestCrawl - pub async fn notify_of_update( - &self, - input: crate::com::atproto::sync::notify_of_update::Input, - ) -> atrium_xrpc::Result<(), crate::com::atproto::sync::notify_of_update::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::sync::notify_of_update::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Request a service to persistently crawl hosted repos. Expected use is new PDS instances declaring their existence to Relays. Does not require auth. - pub async fn request_crawl( - &self, - input: crate::com::atproto::sync::request_crawl::Input, - ) -> atrium_xrpc::Result<(), crate::com::atproto::sync::request_crawl::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::sync::request_crawl::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl com::atproto::temp::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Add a handle to the set of reserved handles. - pub async fn add_reserved_handle( - &self, - input: crate::com::atproto::temp::add_reserved_handle::Input, - ) -> atrium_xrpc::Result< - crate::com::atproto::temp::add_reserved_handle::Output, - crate::com::atproto::temp::add_reserved_handle::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::temp::add_reserved_handle::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Check accounts location in signup queue. - pub async fn check_signup_queue( - &self, - ) -> atrium_xrpc::Result< - crate::com::atproto::temp::check_signup_queue::Output, - crate::com::atproto::temp::check_signup_queue::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::temp::check_signup_queue::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///DEPRECATED: use queryLabels or subscribeLabels instead -- Fetch all labels from a labeler created after a certain date. - pub async fn fetch_labels( - &self, - params: crate::com::atproto::temp::fetch_labels::Parameters, - ) -> atrium_xrpc::Result< - crate::com::atproto::temp::fetch_labels::Output, - crate::com::atproto::temp::fetch_labels::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::com::atproto::temp::fetch_labels::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Request a verification code to be sent to the supplied phone number - pub async fn request_phone_verification( - &self, - input: crate::com::atproto::temp::request_phone_verification::Input, - ) -> atrium_xrpc::Result< - (), - crate::com::atproto::temp::request_phone_verification::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::com::atproto::temp::request_phone_verification::NSID - .into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl sh::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - weaver: sh::weaver::Service::new(std::sync::Arc::clone(&xrpc)), - _phantom: core::marker::PhantomData, - } - } -} -impl sh::weaver::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - actor: sh::weaver::actor::Service::new(std::sync::Arc::clone(&xrpc)), - _phantom: core::marker::PhantomData, - } - } -} -impl sh::weaver::actor::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Get detailed profile view of an actor. Does not require auth, but contains relevant metadata with auth. - pub async fn get_profile( - &self, - params: crate::sh::weaver::actor::get_profile::Parameters, - ) -> atrium_xrpc::Result< - crate::sh::weaver::actor::get_profile::Output, - crate::sh::weaver::actor::get_profile::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::sh::weaver::actor::get_profile::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl tools::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - ozone: tools::ozone::Service::new(std::sync::Arc::clone(&xrpc)), - _phantom: core::marker::PhantomData, - } - } -} -impl tools::ozone::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - communication: tools::ozone::communication::Service::new( - std::sync::Arc::clone(&xrpc), - ), - hosting: tools::ozone::hosting::Service::new(std::sync::Arc::clone(&xrpc)), - moderation: tools::ozone::moderation::Service::new( - std::sync::Arc::clone(&xrpc), - ), - server: tools::ozone::server::Service::new(std::sync::Arc::clone(&xrpc)), - set: tools::ozone::set::Service::new(std::sync::Arc::clone(&xrpc)), - setting: tools::ozone::setting::Service::new(std::sync::Arc::clone(&xrpc)), - signature: tools::ozone::signature::Service::new( - std::sync::Arc::clone(&xrpc), - ), - team: tools::ozone::team::Service::new(std::sync::Arc::clone(&xrpc)), - verification: tools::ozone::verification::Service::new( - std::sync::Arc::clone(&xrpc), - ), - _phantom: core::marker::PhantomData, - } - } -} -impl tools::ozone::communication::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Administrative action to create a new, re-usable communication (email for now) template. - pub async fn create_template( - &self, - input: crate::tools::ozone::communication::create_template::Input, - ) -> atrium_xrpc::Result< - crate::tools::ozone::communication::create_template::Output, - crate::tools::ozone::communication::create_template::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::communication::create_template::NSID - .into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Delete a communication template. - pub async fn delete_template( - &self, - input: crate::tools::ozone::communication::delete_template::Input, - ) -> atrium_xrpc::Result< - (), - crate::tools::ozone::communication::delete_template::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::communication::delete_template::NSID - .into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get list of all communication templates. - pub async fn list_templates( - &self, - ) -> atrium_xrpc::Result< - crate::tools::ozone::communication::list_templates::Output, - crate::tools::ozone::communication::list_templates::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::communication::list_templates::NSID - .into(), - parameters: None, - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Administrative action to update an existing communication template. Allows passing partial fields to patch specific fields only. - pub async fn update_template( - &self, - input: crate::tools::ozone::communication::update_template::Input, - ) -> atrium_xrpc::Result< - crate::tools::ozone::communication::update_template::Output, - crate::tools::ozone::communication::update_template::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::communication::update_template::NSID - .into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl tools::ozone::hosting::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Get account history, e.g. log of updated email addresses or other identity information. - pub async fn get_account_history( - &self, - params: crate::tools::ozone::hosting::get_account_history::Parameters, - ) -> atrium_xrpc::Result< - crate::tools::ozone::hosting::get_account_history::Output, - crate::tools::ozone::hosting::get_account_history::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::hosting::get_account_history::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl tools::ozone::moderation::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Take a moderation action on an actor. - pub async fn emit_event( - &self, - input: crate::tools::ozone::moderation::emit_event::Input, - ) -> atrium_xrpc::Result< - crate::tools::ozone::moderation::emit_event::Output, - crate::tools::ozone::moderation::emit_event::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::moderation::emit_event::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get details about a moderation event. - pub async fn get_event( - &self, - params: crate::tools::ozone::moderation::get_event::Parameters, - ) -> atrium_xrpc::Result< - crate::tools::ozone::moderation::get_event::Output, - crate::tools::ozone::moderation::get_event::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::moderation::get_event::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get details about a record. - pub async fn get_record( - &self, - params: crate::tools::ozone::moderation::get_record::Parameters, - ) -> atrium_xrpc::Result< - crate::tools::ozone::moderation::get_record::Output, - crate::tools::ozone::moderation::get_record::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::moderation::get_record::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get details about some records. - pub async fn get_records( - &self, - params: crate::tools::ozone::moderation::get_records::Parameters, - ) -> atrium_xrpc::Result< - crate::tools::ozone::moderation::get_records::Output, - crate::tools::ozone::moderation::get_records::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::moderation::get_records::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get details about a repository. - pub async fn get_repo( - &self, - params: crate::tools::ozone::moderation::get_repo::Parameters, - ) -> atrium_xrpc::Result< - crate::tools::ozone::moderation::get_repo::Output, - crate::tools::ozone::moderation::get_repo::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::moderation::get_repo::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get reporter stats for a list of users. - pub async fn get_reporter_stats( - &self, - params: crate::tools::ozone::moderation::get_reporter_stats::Parameters, - ) -> atrium_xrpc::Result< - crate::tools::ozone::moderation::get_reporter_stats::Output, - crate::tools::ozone::moderation::get_reporter_stats::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::moderation::get_reporter_stats::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get details about some repositories. - pub async fn get_repos( - &self, - params: crate::tools::ozone::moderation::get_repos::Parameters, - ) -> atrium_xrpc::Result< - crate::tools::ozone::moderation::get_repos::Output, - crate::tools::ozone::moderation::get_repos::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::moderation::get_repos::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get details about subjects. - pub async fn get_subjects( - &self, - params: crate::tools::ozone::moderation::get_subjects::Parameters, - ) -> atrium_xrpc::Result< - crate::tools::ozone::moderation::get_subjects::Output, - crate::tools::ozone::moderation::get_subjects::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::moderation::get_subjects::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///List moderation events related to a subject. - pub async fn query_events( - &self, - params: crate::tools::ozone::moderation::query_events::Parameters, - ) -> atrium_xrpc::Result< - crate::tools::ozone::moderation::query_events::Output, - crate::tools::ozone::moderation::query_events::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::moderation::query_events::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///View moderation statuses of subjects (record or repo). - pub async fn query_statuses( - &self, - params: crate::tools::ozone::moderation::query_statuses::Parameters, - ) -> atrium_xrpc::Result< - crate::tools::ozone::moderation::query_statuses::Output, - crate::tools::ozone::moderation::query_statuses::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::moderation::query_statuses::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Find repositories based on a search term. - pub async fn search_repos( - &self, - params: crate::tools::ozone::moderation::search_repos::Parameters, - ) -> atrium_xrpc::Result< - crate::tools::ozone::moderation::search_repos::Output, - crate::tools::ozone::moderation::search_repos::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::moderation::search_repos::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl tools::ozone::server::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Get details about ozone's server configuration. - pub async fn get_config( - &self, - ) -> atrium_xrpc::Result< - crate::tools::ozone::server::get_config::Output, - crate::tools::ozone::server::get_config::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::server::get_config::NSID.into(), - parameters: None, - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl tools::ozone::set::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Add values to a specific set. Attempting to add values to a set that does not exist will result in an error. - pub async fn add_values( - &self, - input: crate::tools::ozone::set::add_values::Input, - ) -> atrium_xrpc::Result<(), crate::tools::ozone::set::add_values::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::set::add_values::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Delete an entire set. Attempting to delete a set that does not exist will result in an error. - pub async fn delete_set( - &self, - input: crate::tools::ozone::set::delete_set::Input, - ) -> atrium_xrpc::Result< - crate::tools::ozone::set::delete_set::Output, - crate::tools::ozone::set::delete_set::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::set::delete_set::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Delete values from a specific set. Attempting to delete values that are not in the set will not result in an error - pub async fn delete_values( - &self, - input: crate::tools::ozone::set::delete_values::Input, - ) -> atrium_xrpc::Result<(), crate::tools::ozone::set::delete_values::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::set::delete_values::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get a specific set and its values - pub async fn get_values( - &self, - params: crate::tools::ozone::set::get_values::Parameters, - ) -> atrium_xrpc::Result< - crate::tools::ozone::set::get_values::Output, - crate::tools::ozone::set::get_values::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::set::get_values::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Query available sets - pub async fn query_sets( - &self, - params: crate::tools::ozone::set::query_sets::Parameters, - ) -> atrium_xrpc::Result< - crate::tools::ozone::set::query_sets::Output, - crate::tools::ozone::set::query_sets::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::set::query_sets::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Create or update set metadata - pub async fn upsert_set( - &self, - input: crate::tools::ozone::set::upsert_set::Input, - ) -> atrium_xrpc::Result< - crate::tools::ozone::set::upsert_set::Output, - crate::tools::ozone::set::upsert_set::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::set::upsert_set::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl tools::ozone::setting::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///List settings with optional filtering - pub async fn list_options( - &self, - params: crate::tools::ozone::setting::list_options::Parameters, - ) -> atrium_xrpc::Result< - crate::tools::ozone::setting::list_options::Output, - crate::tools::ozone::setting::list_options::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::setting::list_options::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Delete settings by key - pub async fn remove_options( - &self, - input: crate::tools::ozone::setting::remove_options::Input, - ) -> atrium_xrpc::Result< - crate::tools::ozone::setting::remove_options::Output, - crate::tools::ozone::setting::remove_options::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::setting::remove_options::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Create or update setting option - pub async fn upsert_option( - &self, - input: crate::tools::ozone::setting::upsert_option::Input, - ) -> atrium_xrpc::Result< - crate::tools::ozone::setting::upsert_option::Output, - crate::tools::ozone::setting::upsert_option::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::setting::upsert_option::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl tools::ozone::signature::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Find all correlated threat signatures between 2 or more accounts. - pub async fn find_correlation( - &self, - params: crate::tools::ozone::signature::find_correlation::Parameters, - ) -> atrium_xrpc::Result< - crate::tools::ozone::signature::find_correlation::Output, - crate::tools::ozone::signature::find_correlation::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::signature::find_correlation::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Get accounts that share some matching threat signatures with the root account. - pub async fn find_related_accounts( - &self, - params: crate::tools::ozone::signature::find_related_accounts::Parameters, - ) -> atrium_xrpc::Result< - crate::tools::ozone::signature::find_related_accounts::Output, - crate::tools::ozone::signature::find_related_accounts::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::signature::find_related_accounts::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Search for accounts that match one or more threat signature values. - pub async fn search_accounts( - &self, - params: crate::tools::ozone::signature::search_accounts::Parameters, - ) -> atrium_xrpc::Result< - crate::tools::ozone::signature::search_accounts::Output, - crate::tools::ozone::signature::search_accounts::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::signature::search_accounts::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl tools::ozone::team::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Add a member to the ozone team. Requires admin role. - pub async fn add_member( - &self, - input: crate::tools::ozone::team::add_member::Input, - ) -> atrium_xrpc::Result< - crate::tools::ozone::team::add_member::Output, - crate::tools::ozone::team::add_member::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::team::add_member::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Delete a member from ozone team. Requires admin role. - pub async fn delete_member( - &self, - input: crate::tools::ozone::team::delete_member::Input, - ) -> atrium_xrpc::Result<(), crate::tools::ozone::team::delete_member::Error> { - let response = self - .xrpc - .send_xrpc::< - (), - _, - (), - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::team::delete_member::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Bytes(_) => Ok(()), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///List all members with access to the ozone service. - pub async fn list_members( - &self, - params: crate::tools::ozone::team::list_members::Parameters, - ) -> atrium_xrpc::Result< - crate::tools::ozone::team::list_members::Output, - crate::tools::ozone::team::list_members::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::team::list_members::NSID.into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Update a member in the ozone service. Requires admin role. - pub async fn update_member( - &self, - input: crate::tools::ozone::team::update_member::Input, - ) -> atrium_xrpc::Result< - crate::tools::ozone::team::update_member::Output, - crate::tools::ozone::team::update_member::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::team::update_member::NSID.into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} -impl tools::ozone::verification::Service -where - T: atrium_xrpc::XrpcClient + Send + Sync, -{ - #[allow(unused_variables)] - pub(crate) fn new(xrpc: std::sync::Arc) -> Self { - Self { - xrpc, - _phantom: core::marker::PhantomData, - } - } - ///Grant verifications to multiple subjects. Allows batch processing of up to 100 verifications at once. - pub async fn grant_verifications( - &self, - input: crate::tools::ozone::verification::grant_verifications::Input, - ) -> atrium_xrpc::Result< - crate::tools::ozone::verification::grant_verifications::Output, - crate::tools::ozone::verification::grant_verifications::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::verification::grant_verifications::NSID - .into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///List verifications - pub async fn list_verifications( - &self, - params: crate::tools::ozone::verification::list_verifications::Parameters, - ) -> atrium_xrpc::Result< - crate::tools::ozone::verification::list_verifications::Output, - crate::tools::ozone::verification::list_verifications::Error, - > { - let response = self - .xrpc - .send_xrpc::< - _, - (), - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::GET, - nsid: crate::tools::ozone::verification::list_verifications::NSID - .into(), - parameters: Some(params), - input: None, - encoding: None, - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } - ///Revoke previously granted verifications in batches of up to 100. - pub async fn revoke_verifications( - &self, - input: crate::tools::ozone::verification::revoke_verifications::Input, - ) -> atrium_xrpc::Result< - crate::tools::ozone::verification::revoke_verifications::Output, - crate::tools::ozone::verification::revoke_verifications::Error, - > { - let response = self - .xrpc - .send_xrpc::< - (), - _, - _, - _, - >( - &atrium_xrpc::XrpcRequest { - method: http::Method::POST, - nsid: crate::tools::ozone::verification::revoke_verifications::NSID - .into(), - parameters: None, - input: Some(atrium_xrpc::InputDataOrBytes::Data(input)), - encoding: Some(String::from("application/json")), - }, - ) - .await?; - match response { - atrium_xrpc::OutputDataOrBytes::Data(data) => Ok(data), - _ => Err(atrium_xrpc::Error::UnexpectedResponseType), - } - } -} diff --git a/crates/weaver-common/src/lexicons/com.rs b/crates/weaver-common/src/lexicons/com.rs deleted file mode 100644 index ff8b139..0000000 --- a/crates/weaver-common/src/lexicons/com.rs +++ /dev/null @@ -1,3 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com` namespace. -pub mod atproto; diff --git a/crates/weaver-common/src/lexicons/com/atproto.rs b/crates/weaver-common/src/lexicons/com/atproto.rs deleted file mode 100644 index b52b599..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto.rs +++ /dev/null @@ -1,11 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto` namespace. -pub mod admin; -pub mod identity; -pub mod label; -pub mod lexicon; -pub mod moderation; -pub mod repo; -pub mod server; -pub mod sync; -pub mod temp; diff --git a/crates/weaver-common/src/lexicons/com/atproto/admin.rs b/crates/weaver-common/src/lexicons/com/atproto/admin.rs deleted file mode 100644 index b269a9c..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/admin.rs +++ /dev/null @@ -1,18 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.admin` namespace. -pub mod defs; -pub mod delete_account; -pub mod disable_account_invites; -pub mod disable_invite_codes; -pub mod enable_account_invites; -pub mod get_account_info; -pub mod get_account_infos; -pub mod get_invite_codes; -pub mod get_subject_status; -pub mod search_accounts; -pub mod send_email; -pub mod update_account_email; -pub mod update_account_handle; -pub mod update_account_password; -pub mod update_account_signing_key; -pub mod update_subject_status; diff --git a/crates/weaver-common/src/lexicons/com/atproto/admin/defs.rs b/crates/weaver-common/src/lexicons/com/atproto/admin/defs.rs deleted file mode 100644 index ddc3007..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/admin/defs.rs +++ /dev/null @@ -1,60 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.admin.defs` namespace. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct AccountViewData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub deactivated_at: core::option::Option, - pub did: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub email: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub email_confirmed_at: core::option::Option, - pub handle: atrium_api::types::string::Handle, - pub indexed_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub invite_note: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub invited_by: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub invites: core::option::Option< - Vec, - >, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub invites_disabled: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub related_records: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub threat_signatures: core::option::Option>, -} -pub type AccountView = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RepoBlobRefData { - pub cid: atrium_api::types::string::Cid, - pub did: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub record_uri: core::option::Option, -} -pub type RepoBlobRef = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RepoRefData { - pub did: atrium_api::types::string::Did, -} -pub type RepoRef = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct StatusAttrData { - pub applied: bool, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub r#ref: core::option::Option, -} -pub type StatusAttr = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ThreatSignatureData { - pub property: String, - pub value: String, -} -pub type ThreatSignature = atrium_api::types::Object; diff --git a/crates/weaver-common/src/lexicons/com/atproto/admin/delete_account.rs b/crates/weaver-common/src/lexicons/com/atproto/admin/delete_account.rs deleted file mode 100644 index 471a91b..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/admin/delete_account.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.admin.deleteAccount` namespace. -pub const NSID: &str = "com.atproto.admin.deleteAccount"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub did: atrium_api::types::string::Did, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/admin/disable_account_invites.rs b/crates/weaver-common/src/lexicons/com/atproto/admin/disable_account_invites.rs deleted file mode 100644 index 4f6d878..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/admin/disable_account_invites.rs +++ /dev/null @@ -1,20 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.admin.disableAccountInvites` namespace. -pub const NSID: &str = "com.atproto.admin.disableAccountInvites"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub account: atrium_api::types::string::Did, - ///Optional reason for disabled invites. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub note: core::option::Option, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/admin/disable_invite_codes.rs b/crates/weaver-common/src/lexicons/com/atproto/admin/disable_invite_codes.rs deleted file mode 100644 index 365ce3c..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/admin/disable_invite_codes.rs +++ /dev/null @@ -1,20 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.admin.disableInviteCodes` namespace. -pub const NSID: &str = "com.atproto.admin.disableInviteCodes"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub accounts: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub codes: core::option::Option>, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/admin/enable_account_invites.rs b/crates/weaver-common/src/lexicons/com/atproto/admin/enable_account_invites.rs deleted file mode 100644 index 13e9966..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/admin/enable_account_invites.rs +++ /dev/null @@ -1,20 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.admin.enableAccountInvites` namespace. -pub const NSID: &str = "com.atproto.admin.enableAccountInvites"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub account: atrium_api::types::string::Did, - ///Optional reason for enabled invites. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub note: core::option::Option, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/admin/get_account_info.rs b/crates/weaver-common/src/lexicons/com/atproto/admin/get_account_info.rs deleted file mode 100644 index 6746521..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/admin/get_account_info.rs +++ /dev/null @@ -1,18 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.admin.getAccountInfo` namespace. -pub const NSID: &str = "com.atproto.admin.getAccountInfo"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub did: atrium_api::types::string::Did, -} -pub type Parameters = atrium_api::types::Object; -pub type Output = crate::com::atproto::admin::defs::AccountView; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/admin/get_account_infos.rs b/crates/weaver-common/src/lexicons/com/atproto/admin/get_account_infos.rs deleted file mode 100644 index bfb36a4..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/admin/get_account_infos.rs +++ /dev/null @@ -1,23 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.admin.getAccountInfos` namespace. -pub const NSID: &str = "com.atproto.admin.getAccountInfos"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub dids: Vec, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub infos: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/admin/get_invite_codes.rs b/crates/weaver-common/src/lexicons/com/atproto/admin/get_invite_codes.rs deleted file mode 100644 index 3f23c90..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/admin/get_invite_codes.rs +++ /dev/null @@ -1,30 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.admin.getInviteCodes` namespace. -pub const NSID: &str = "com.atproto.admin.getInviteCodes"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub sort: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub codes: Vec, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/admin/get_subject_status.rs b/crates/weaver-common/src/lexicons/com/atproto/admin/get_subject_status.rs deleted file mode 100644 index 3598186..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/admin/get_subject_status.rs +++ /dev/null @@ -1,42 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.admin.getSubjectStatus` namespace. -pub const NSID: &str = "com.atproto.admin.getSubjectStatus"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub blob: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub did: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub uri: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub deactivated: core::option::Option, - pub subject: atrium_api::types::Union, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub takedown: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum OutputSubjectRefs { - #[serde(rename = "com.atproto.admin.defs#repoRef")] - ComAtprotoAdminDefsRepoRef(Box), - #[serde(rename = "com.atproto.repo.strongRef")] - ComAtprotoRepoStrongRefMain(Box), - #[serde(rename = "com.atproto.admin.defs#repoBlobRef")] - ComAtprotoAdminDefsRepoBlobRef(Box), -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/admin/search_accounts.rs b/crates/weaver-common/src/lexicons/com/atproto/admin/search_accounts.rs deleted file mode 100644 index 9e4eb40..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/admin/search_accounts.rs +++ /dev/null @@ -1,30 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.admin.searchAccounts` namespace. -pub const NSID: &str = "com.atproto.admin.searchAccounts"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub email: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub accounts: Vec, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/admin/send_email.rs b/crates/weaver-common/src/lexicons/com/atproto/admin/send_email.rs deleted file mode 100644 index 1599aa1..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/admin/send_email.rs +++ /dev/null @@ -1,30 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.admin.sendEmail` namespace. -pub const NSID: &str = "com.atproto.admin.sendEmail"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///Additional comment by the sender that won't be used in the email itself but helpful to provide more context for moderators/reviewers - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option, - pub content: String, - pub recipient_did: atrium_api::types::string::Did, - pub sender_did: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub subject: core::option::Option, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub sent: bool, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/admin/update_account_email.rs b/crates/weaver-common/src/lexicons/com/atproto/admin/update_account_email.rs deleted file mode 100644 index 72e8968..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/admin/update_account_email.rs +++ /dev/null @@ -1,19 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.admin.updateAccountEmail` namespace. -pub const NSID: &str = "com.atproto.admin.updateAccountEmail"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///The handle or DID of the repo. - pub account: atrium_api::types::string::AtIdentifier, - pub email: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/admin/update_account_handle.rs b/crates/weaver-common/src/lexicons/com/atproto/admin/update_account_handle.rs deleted file mode 100644 index 84de37e..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/admin/update_account_handle.rs +++ /dev/null @@ -1,18 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.admin.updateAccountHandle` namespace. -pub const NSID: &str = "com.atproto.admin.updateAccountHandle"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub did: atrium_api::types::string::Did, - pub handle: atrium_api::types::string::Handle, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/admin/update_account_password.rs b/crates/weaver-common/src/lexicons/com/atproto/admin/update_account_password.rs deleted file mode 100644 index 6bdbd44..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/admin/update_account_password.rs +++ /dev/null @@ -1,18 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.admin.updateAccountPassword` namespace. -pub const NSID: &str = "com.atproto.admin.updateAccountPassword"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub did: atrium_api::types::string::Did, - pub password: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/admin/update_account_signing_key.rs b/crates/weaver-common/src/lexicons/com/atproto/admin/update_account_signing_key.rs deleted file mode 100644 index 786bc28..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/admin/update_account_signing_key.rs +++ /dev/null @@ -1,19 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.admin.updateAccountSigningKey` namespace. -pub const NSID: &str = "com.atproto.admin.updateAccountSigningKey"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub did: atrium_api::types::string::Did, - ///Did-key formatted public key - pub signing_key: atrium_api::types::string::Did, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/admin/update_subject_status.rs b/crates/weaver-common/src/lexicons/com/atproto/admin/update_subject_status.rs deleted file mode 100644 index cc325ea..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/admin/update_subject_status.rs +++ /dev/null @@ -1,49 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.admin.updateSubjectStatus` namespace. -pub const NSID: &str = "com.atproto.admin.updateSubjectStatus"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub deactivated: core::option::Option, - pub subject: atrium_api::types::Union, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub takedown: core::option::Option, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub subject: atrium_api::types::Union, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub takedown: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum InputSubjectRefs { - #[serde(rename = "com.atproto.admin.defs#repoRef")] - ComAtprotoAdminDefsRepoRef(Box), - #[serde(rename = "com.atproto.repo.strongRef")] - ComAtprotoRepoStrongRefMain(Box), - #[serde(rename = "com.atproto.admin.defs#repoBlobRef")] - ComAtprotoAdminDefsRepoBlobRef(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum OutputSubjectRefs { - #[serde(rename = "com.atproto.admin.defs#repoRef")] - ComAtprotoAdminDefsRepoRef(Box), - #[serde(rename = "com.atproto.repo.strongRef")] - ComAtprotoRepoStrongRefMain(Box), - #[serde(rename = "com.atproto.admin.defs#repoBlobRef")] - ComAtprotoAdminDefsRepoBlobRef(Box), -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/identity.rs b/crates/weaver-common/src/lexicons/com/atproto/identity.rs deleted file mode 100644 index d6a4964..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/identity.rs +++ /dev/null @@ -1,12 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.identity` namespace. -pub mod defs; -pub mod get_recommended_did_credentials; -pub mod refresh_identity; -pub mod request_plc_operation_signature; -pub mod resolve_did; -pub mod resolve_handle; -pub mod resolve_identity; -pub mod sign_plc_operation; -pub mod submit_plc_operation; -pub mod update_handle; diff --git a/crates/weaver-common/src/lexicons/com/atproto/identity/defs.rs b/crates/weaver-common/src/lexicons/com/atproto/identity/defs.rs deleted file mode 100644 index 764c89c..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/identity/defs.rs +++ /dev/null @@ -1,12 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.identity.defs` namespace. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct IdentityInfoData { - pub did: atrium_api::types::string::Did, - ///The complete DID document for the identity. - pub did_doc: atrium_api::types::Unknown, - ///The validated handle of the account; or 'handle.invalid' if the handle did not bi-directionally match the DID document. - pub handle: atrium_api::types::string::Handle, -} -pub type IdentityInfo = atrium_api::types::Object; diff --git a/crates/weaver-common/src/lexicons/com/atproto/identity/get_recommended_did_credentials.rs b/crates/weaver-common/src/lexicons/com/atproto/identity/get_recommended_did_credentials.rs deleted file mode 100644 index cd613a1..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/identity/get_recommended_did_credentials.rs +++ /dev/null @@ -1,25 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.identity.getRecommendedDidCredentials` namespace. -pub const NSID: &str = "com.atproto.identity.getRecommendedDidCredentials"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub also_known_as: core::option::Option>, - ///Recommended rotation keys for PLC dids. Should be undefined (or ignored) for did:webs. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub rotation_keys: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub services: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub verification_methods: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/identity/refresh_identity.rs b/crates/weaver-common/src/lexicons/com/atproto/identity/refresh_identity.rs deleted file mode 100644 index 767e823..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/identity/refresh_identity.rs +++ /dev/null @@ -1,45 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.identity.refreshIdentity` namespace. -pub const NSID: &str = "com.atproto.identity.refreshIdentity"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub identifier: atrium_api::types::string::AtIdentifier, -} -pub type Input = atrium_api::types::Object; -pub type Output = crate::com::atproto::identity::defs::IdentityInfo; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - ///The resolution process confirmed that the handle does not resolve to any DID. - HandleNotFound(Option), - ///The DID resolution process confirmed that there is no current DID. - DidNotFound(Option), - ///The DID previously existed, but has been deactivated. - DidDeactivated(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::HandleNotFound(msg) => { - write!(_f, "HandleNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::DidNotFound(msg) => { - write!(_f, "DidNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::DidDeactivated(msg) => { - write!(_f, "DidDeactivated")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/identity/request_plc_operation_signature.rs b/crates/weaver-common/src/lexicons/com/atproto/identity/request_plc_operation_signature.rs deleted file mode 100644 index 8a8fe72..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/identity/request_plc_operation_signature.rs +++ /dev/null @@ -1,11 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.identity.requestPlcOperationSignature` namespace. -pub const NSID: &str = "com.atproto.identity.requestPlcOperationSignature"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/identity/resolve_did.rs b/crates/weaver-common/src/lexicons/com/atproto/identity/resolve_did.rs deleted file mode 100644 index 65df2d5..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/identity/resolve_did.rs +++ /dev/null @@ -1,44 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.identity.resolveDid` namespace. -pub const NSID: &str = "com.atproto.identity.resolveDid"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///DID to resolve. - pub did: atrium_api::types::string::Did, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - ///The complete DID document for the identity. - pub did_doc: atrium_api::types::Unknown, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - ///The DID resolution process confirmed that there is no current DID. - DidNotFound(Option), - ///The DID previously existed, but has been deactivated. - DidDeactivated(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::DidNotFound(msg) => { - write!(_f, "DidNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::DidDeactivated(msg) => { - write!(_f, "DidDeactivated")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/identity/resolve_handle.rs b/crates/weaver-common/src/lexicons/com/atproto/identity/resolve_handle.rs deleted file mode 100644 index a13c73d..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/identity/resolve_handle.rs +++ /dev/null @@ -1,35 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.identity.resolveHandle` namespace. -pub const NSID: &str = "com.atproto.identity.resolveHandle"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///The handle to resolve. - pub handle: atrium_api::types::string::Handle, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub did: atrium_api::types::string::Did, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - ///The resolution process confirmed that the handle does not resolve to any DID. - HandleNotFound(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::HandleNotFound(msg) => { - write!(_f, "HandleNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/identity/resolve_identity.rs b/crates/weaver-common/src/lexicons/com/atproto/identity/resolve_identity.rs deleted file mode 100644 index 0a3c4b1..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/identity/resolve_identity.rs +++ /dev/null @@ -1,46 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.identity.resolveIdentity` namespace. -pub const NSID: &str = "com.atproto.identity.resolveIdentity"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///Handle or DID to resolve. - pub identifier: atrium_api::types::string::AtIdentifier, -} -pub type Parameters = atrium_api::types::Object; -pub type Output = crate::com::atproto::identity::defs::IdentityInfo; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - ///The resolution process confirmed that the handle does not resolve to any DID. - HandleNotFound(Option), - ///The DID resolution process confirmed that there is no current DID. - DidNotFound(Option), - ///The DID previously existed, but has been deactivated. - DidDeactivated(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::HandleNotFound(msg) => { - write!(_f, "HandleNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::DidNotFound(msg) => { - write!(_f, "DidNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::DidDeactivated(msg) => { - write!(_f, "DidDeactivated")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/identity/sign_plc_operation.rs b/crates/weaver-common/src/lexicons/com/atproto/identity/sign_plc_operation.rs deleted file mode 100644 index b12333e..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/identity/sign_plc_operation.rs +++ /dev/null @@ -1,34 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.identity.signPlcOperation` namespace. -pub const NSID: &str = "com.atproto.identity.signPlcOperation"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub also_known_as: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub rotation_keys: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub services: core::option::Option, - ///A token received through com.atproto.identity.requestPlcOperationSignature - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub token: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub verification_methods: core::option::Option, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - ///A signed DID PLC operation. - pub operation: atrium_api::types::Unknown, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/identity/submit_plc_operation.rs b/crates/weaver-common/src/lexicons/com/atproto/identity/submit_plc_operation.rs deleted file mode 100644 index ecf8fa6..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/identity/submit_plc_operation.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.identity.submitPlcOperation` namespace. -pub const NSID: &str = "com.atproto.identity.submitPlcOperation"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub operation: atrium_api::types::Unknown, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/identity/update_handle.rs b/crates/weaver-common/src/lexicons/com/atproto/identity/update_handle.rs deleted file mode 100644 index 0daf75a..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/identity/update_handle.rs +++ /dev/null @@ -1,18 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.identity.updateHandle` namespace. -pub const NSID: &str = "com.atproto.identity.updateHandle"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///The new handle. - pub handle: atrium_api::types::string::Handle, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/label.rs b/crates/weaver-common/src/lexicons/com/atproto/label.rs deleted file mode 100644 index af7c0b0..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/label.rs +++ /dev/null @@ -1,5 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.label` namespace. -pub mod defs; -pub mod query_labels; -pub mod subscribe_labels; diff --git a/crates/weaver-common/src/lexicons/com/atproto/label/defs.rs b/crates/weaver-common/src/lexicons/com/atproto/label/defs.rs deleted file mode 100644 index 6980b10..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/label/defs.rs +++ /dev/null @@ -1,82 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.label.defs` namespace. -///Metadata tag on an atproto resource (eg, repo or record). -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LabelData { - ///Optionally, CID specifying the specific version of 'uri' resource this label applies to. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cid: core::option::Option, - ///Timestamp when this label was created. - pub cts: atrium_api::types::string::Datetime, - ///Timestamp at which this label expires (no longer applies). - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub exp: core::option::Option, - ///If true, this is a negation label, overwriting a previous label. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub neg: core::option::Option, - ///Signature of dag-cbor encoded label. - #[serde(default)] - #[serde(with = "serde_bytes")] - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub sig: core::option::Option>, - ///DID of the actor who created this label. - pub src: atrium_api::types::string::Did, - ///AT URI of the record, repository (account), or other resource that this label applies to. - pub uri: String, - ///The short string name of the value or type of this label. - pub val: String, - ///The AT Protocol version of the label object. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub ver: core::option::Option, -} -pub type Label = atrium_api::types::Object; -pub type LabelValue = String; -///Declares a label value and its expected interpretations and behaviors. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LabelValueDefinitionData { - ///Does the user need to have adult content enabled in order to configure this label? - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub adult_only: core::option::Option, - ///What should this label hide in the UI, if applied? 'content' hides all of the target; 'media' hides the images/video/audio; 'none' hides nothing. - pub blurs: String, - ///The default setting for this label. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub default_setting: core::option::Option, - ///The value of the label being defined. Must only include lowercase ascii and the '-' character ([a-z-]+). - pub identifier: String, - pub locales: Vec, - ///How should a client visually convey this label? 'inform' means neutral and informational; 'alert' means negative and warning; 'none' means show nothing. - pub severity: String, -} -pub type LabelValueDefinition = atrium_api::types::Object; -///Strings which describe the label in the UI, localized into a specific language. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LabelValueDefinitionStringsData { - ///A longer description of what the label means and why it might be applied. - pub description: String, - ///The code of the language these strings are written in. - pub lang: atrium_api::types::string::Language, - ///A short human-readable name for the label. - pub name: String, -} -pub type LabelValueDefinitionStrings = atrium_api::types::Object< - LabelValueDefinitionStringsData, ->; -///Metadata tag on an atproto record, published by the author within the record. Note that schemas should use #selfLabels, not #selfLabel. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct SelfLabelData { - ///The short string name of the value or type of this label. - pub val: String, -} -pub type SelfLabel = atrium_api::types::Object; -///Metadata tags on an atproto record, published by the author within the record. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct SelfLabelsData { - pub values: Vec, -} -pub type SelfLabels = atrium_api::types::Object; diff --git a/crates/weaver-common/src/lexicons/com/atproto/label/query_labels.rs b/crates/weaver-common/src/lexicons/com/atproto/label/query_labels.rs deleted file mode 100644 index 6a3aa49..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/label/query_labels.rs +++ /dev/null @@ -1,33 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.label.queryLabels` namespace. -pub const NSID: &str = "com.atproto.label.queryLabels"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///Optional list of label sources (DIDs) to filter on. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub sources: core::option::Option>, - ///List of AT URI patterns to match (boolean 'OR'). Each may be a prefix (ending with '*'; will match inclusive of the string leading to '*'), or a full URI. - pub uri_patterns: Vec, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub labels: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/label/subscribe_labels.rs b/crates/weaver-common/src/lexicons/com/atproto/label/subscribe_labels.rs deleted file mode 100644 index 72e0980..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/label/subscribe_labels.rs +++ /dev/null @@ -1,52 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.label.subscribeLabels` namespace. -pub const NSID: &str = "com.atproto.label.subscribeLabels"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///The last known event seq number to backfill from. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - FutureCursor(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::FutureCursor(msg) => { - write!(_f, "FutureCursor")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InfoData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub message: core::option::Option, - pub name: String, -} -pub type Info = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LabelsData { - pub labels: Vec, - pub seq: i64, -} -pub type Labels = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum Message { - #[serde(rename = "com.atproto.label.subscribeLabels#labels")] - Labels(Box), - #[serde(rename = "com.atproto.label.subscribeLabels#info")] - Info(Box), -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/lexicon.rs b/crates/weaver-common/src/lexicons/com/atproto/lexicon.rs deleted file mode 100644 index df4b779..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/lexicon.rs +++ /dev/null @@ -1,9 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.lexicon` namespace. -pub mod schema; -#[derive(Debug)] -pub struct Schema; -impl atrium_api::types::Collection for Schema { - const NSID: &'static str = "com.atproto.lexicon.schema"; - type Record = schema::Record; -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/lexicon/schema.rs b/crates/weaver-common/src/lexicons/com/atproto/lexicon/schema.rs deleted file mode 100644 index 8ee5aad..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/lexicon/schema.rs +++ /dev/null @@ -1,15 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.lexicon.schema` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - ///Indicates the 'version' of the Lexicon language. Must be '1' for the current atproto/Lexicon schema system. - pub lexicon: i64, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/moderation.rs b/crates/weaver-common/src/lexicons/com/atproto/moderation.rs deleted file mode 100644 index e8be7ac..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/moderation.rs +++ /dev/null @@ -1,4 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.moderation` namespace. -pub mod create_report; -pub mod defs; diff --git a/crates/weaver-common/src/lexicons/com/atproto/moderation/create_report.rs b/crates/weaver-common/src/lexicons/com/atproto/moderation/create_report.rs deleted file mode 100644 index 4a81000..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/moderation/create_report.rs +++ /dev/null @@ -1,50 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.moderation.createReport` namespace. -pub const NSID: &str = "com.atproto.moderation.createReport"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///Additional context about the content and violation. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub reason: core::option::Option, - ///Indicates the broad category of violation the report is for. - pub reason_type: crate::com::atproto::moderation::defs::ReasonType, - pub subject: atrium_api::types::Union, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub created_at: atrium_api::types::string::Datetime, - pub id: i64, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub reason: core::option::Option, - pub reason_type: crate::com::atproto::moderation::defs::ReasonType, - pub reported_by: atrium_api::types::string::Did, - pub subject: atrium_api::types::Union, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum InputSubjectRefs { - #[serde(rename = "com.atproto.admin.defs#repoRef")] - ComAtprotoAdminDefsRepoRef(Box), - #[serde(rename = "com.atproto.repo.strongRef")] - ComAtprotoRepoStrongRefMain(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum OutputSubjectRefs { - #[serde(rename = "com.atproto.admin.defs#repoRef")] - ComAtprotoAdminDefsRepoRef(Box), - #[serde(rename = "com.atproto.repo.strongRef")] - ComAtprotoRepoStrongRefMain(Box), -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/moderation/defs.rs b/crates/weaver-common/src/lexicons/com/atproto/moderation/defs.rs deleted file mode 100644 index 48b07b4..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/moderation/defs.rs +++ /dev/null @@ -1,19 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.moderation.defs` namespace. -///Appeal: appeal a previously taken moderation action -pub const REASON_APPEAL: &str = "com.atproto.moderation.defs#reasonAppeal"; -///Misleading identity, affiliation, or content -pub const REASON_MISLEADING: &str = "com.atproto.moderation.defs#reasonMisleading"; -///Other: reports not falling under another report category -pub const REASON_OTHER: &str = "com.atproto.moderation.defs#reasonOther"; -///Rude, harassing, explicit, or otherwise unwelcoming behavior -pub const REASON_RUDE: &str = "com.atproto.moderation.defs#reasonRude"; -///Unwanted or mislabeled sexual content -pub const REASON_SEXUAL: &str = "com.atproto.moderation.defs#reasonSexual"; -///Spam: frequent unwanted promotion, replies, mentions -pub const REASON_SPAM: &str = "com.atproto.moderation.defs#reasonSpam"; -pub type ReasonType = String; -///Direct violation of server rules, laws, terms of service -pub const REASON_VIOLATION: &str = "com.atproto.moderation.defs#reasonViolation"; -///Tag describing a type of subject that might be reported. -pub type SubjectType = String; diff --git a/crates/weaver-common/src/lexicons/com/atproto/repo.rs b/crates/weaver-common/src/lexicons/com/atproto/repo.rs deleted file mode 100644 index 5443544..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/repo.rs +++ /dev/null @@ -1,14 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.repo` namespace. -pub mod apply_writes; -pub mod create_record; -pub mod defs; -pub mod delete_record; -pub mod describe_repo; -pub mod get_record; -pub mod import_repo; -pub mod list_missing_blobs; -pub mod list_records; -pub mod put_record; -pub mod strong_ref; -pub mod upload_blob; diff --git a/crates/weaver-common/src/lexicons/com/atproto/repo/apply_writes.rs b/crates/weaver-common/src/lexicons/com/atproto/repo/apply_writes.rs deleted file mode 100644 index daa418e..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/repo/apply_writes.rs +++ /dev/null @@ -1,115 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.repo.applyWrites` namespace. -pub const NSID: &str = "com.atproto.repo.applyWrites"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///The handle or DID of the repo (aka, current account). - pub repo: atrium_api::types::string::AtIdentifier, - ///If provided, the entire operation will fail if the current repo commit CID does not match this value. Used to prevent conflicting repo mutations. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub swap_commit: core::option::Option, - ///Can be set to 'false' to skip Lexicon schema validation of record data across all operations, 'true' to require it, or leave unset to validate only for known Lexicons. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub validate: core::option::Option, - pub writes: Vec, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub commit: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub results: core::option::Option>, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - ///Indicates that the 'swapCommit' parameter did not match current commit. - InvalidSwap(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::InvalidSwap(msg) => { - write!(_f, "InvalidSwap")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} -///Operation which creates a new record. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct CreateData { - pub collection: atrium_api::types::string::Nsid, - ///NOTE: maxLength is redundant with record-key format. Keeping it temporarily to ensure backwards compatibility. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub rkey: core::option::Option, - pub value: atrium_api::types::Unknown, -} -pub type Create = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct CreateResultData { - pub cid: atrium_api::types::string::Cid, - pub uri: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub validation_status: core::option::Option, -} -pub type CreateResult = atrium_api::types::Object; -///Operation which deletes an existing record. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct DeleteData { - pub collection: atrium_api::types::string::Nsid, - pub rkey: atrium_api::types::string::RecordKey, -} -pub type Delete = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct DeleteResultData {} -pub type DeleteResult = atrium_api::types::Object; -///Operation which updates an existing record. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct UpdateData { - pub collection: atrium_api::types::string::Nsid, - pub rkey: atrium_api::types::string::RecordKey, - pub value: atrium_api::types::Unknown, -} -pub type Update = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct UpdateResultData { - pub cid: atrium_api::types::string::Cid, - pub uri: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub validation_status: core::option::Option, -} -pub type UpdateResult = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum InputWritesItem { - #[serde(rename = "com.atproto.repo.applyWrites#create")] - Create(Box), - #[serde(rename = "com.atproto.repo.applyWrites#update")] - Update(Box), - #[serde(rename = "com.atproto.repo.applyWrites#delete")] - Delete(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum OutputResultsItem { - #[serde(rename = "com.atproto.repo.applyWrites#createResult")] - CreateResult(Box), - #[serde(rename = "com.atproto.repo.applyWrites#updateResult")] - UpdateResult(Box), - #[serde(rename = "com.atproto.repo.applyWrites#deleteResult")] - DeleteResult(Box), -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/repo/create_record.rs b/crates/weaver-common/src/lexicons/com/atproto/repo/create_record.rs deleted file mode 100644 index 5c67c31..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/repo/create_record.rs +++ /dev/null @@ -1,53 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.repo.createRecord` namespace. -pub const NSID: &str = "com.atproto.repo.createRecord"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///The NSID of the record collection. - pub collection: atrium_api::types::string::Nsid, - ///The record itself. Must contain a $type field. - pub record: atrium_api::types::Unknown, - ///The handle or DID of the repo (aka, current account). - pub repo: atrium_api::types::string::AtIdentifier, - ///The Record Key. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub rkey: core::option::Option, - ///Compare and swap with the previous commit by CID. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub swap_commit: core::option::Option, - ///Can be set to 'false' to skip Lexicon schema validation of record data, 'true' to require it, or leave unset to validate only for known Lexicons. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub validate: core::option::Option, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub cid: atrium_api::types::string::Cid, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub commit: core::option::Option, - pub uri: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub validation_status: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - ///Indicates that 'swapCommit' didn't match current repo commit. - InvalidSwap(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::InvalidSwap(msg) => { - write!(_f, "InvalidSwap")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/repo/defs.rs b/crates/weaver-common/src/lexicons/com/atproto/repo/defs.rs deleted file mode 100644 index 6f9c9f5..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/repo/defs.rs +++ /dev/null @@ -1,9 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.repo.defs` namespace. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct CommitMetaData { - pub cid: atrium_api::types::string::Cid, - pub rev: atrium_api::types::string::Tid, -} -pub type CommitMeta = atrium_api::types::Object; diff --git a/crates/weaver-common/src/lexicons/com/atproto/repo/delete_record.rs b/crates/weaver-common/src/lexicons/com/atproto/repo/delete_record.rs deleted file mode 100644 index 7f89589..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/repo/delete_record.rs +++ /dev/null @@ -1,45 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.repo.deleteRecord` namespace. -pub const NSID: &str = "com.atproto.repo.deleteRecord"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///The NSID of the record collection. - pub collection: atrium_api::types::string::Nsid, - ///The handle or DID of the repo (aka, current account). - pub repo: atrium_api::types::string::AtIdentifier, - ///The Record Key. - pub rkey: atrium_api::types::string::RecordKey, - ///Compare and swap with the previous commit by CID. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub swap_commit: core::option::Option, - ///Compare and swap with the previous record by CID. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub swap_record: core::option::Option, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub commit: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - InvalidSwap(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::InvalidSwap(msg) => { - write!(_f, "InvalidSwap")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/repo/describe_repo.rs b/crates/weaver-common/src/lexicons/com/atproto/repo/describe_repo.rs deleted file mode 100644 index e4b189a..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/repo/describe_repo.rs +++ /dev/null @@ -1,31 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.repo.describeRepo` namespace. -pub const NSID: &str = "com.atproto.repo.describeRepo"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///The handle or DID of the repo. - pub repo: atrium_api::types::string::AtIdentifier, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - ///List of all the collections (NSIDs) for which this repo contains at least one record. - pub collections: Vec, - pub did: atrium_api::types::string::Did, - ///The complete DID document for this account. - pub did_doc: atrium_api::types::Unknown, - pub handle: atrium_api::types::string::Handle, - ///Indicates if handle is currently valid (resolves bi-directionally) - pub handle_is_correct: bool, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/repo/get_record.rs b/crates/weaver-common/src/lexicons/com/atproto/repo/get_record.rs deleted file mode 100644 index f6b6f39..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/repo/get_record.rs +++ /dev/null @@ -1,44 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.repo.getRecord` namespace. -pub const NSID: &str = "com.atproto.repo.getRecord"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///The CID of the version of the record. If not specified, then return the most recent version. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cid: core::option::Option, - ///The NSID of the record collection. - pub collection: atrium_api::types::string::Nsid, - ///The handle or DID of the repo. - pub repo: atrium_api::types::string::AtIdentifier, - ///The Record Key. - pub rkey: atrium_api::types::string::RecordKey, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cid: core::option::Option, - pub uri: String, - pub value: atrium_api::types::Unknown, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - RecordNotFound(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::RecordNotFound(msg) => { - write!(_f, "RecordNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/repo/import_repo.rs b/crates/weaver-common/src/lexicons/com/atproto/repo/import_repo.rs deleted file mode 100644 index 587887e..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/repo/import_repo.rs +++ /dev/null @@ -1,11 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.repo.importRepo` namespace. -pub const NSID: &str = "com.atproto.repo.importRepo"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/repo/list_missing_blobs.rs b/crates/weaver-common/src/lexicons/com/atproto/repo/list_missing_blobs.rs deleted file mode 100644 index 13c8bce..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/repo/list_missing_blobs.rs +++ /dev/null @@ -1,35 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.repo.listMissingBlobs` namespace. -pub const NSID: &str = "com.atproto.repo.listMissingBlobs"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub blobs: Vec, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordBlobData { - pub cid: atrium_api::types::string::Cid, - pub record_uri: String, -} -pub type RecordBlob = atrium_api::types::Object; diff --git a/crates/weaver-common/src/lexicons/com/atproto/repo/list_records.rs b/crates/weaver-common/src/lexicons/com/atproto/repo/list_records.rs deleted file mode 100644 index cec1467..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/repo/list_records.rs +++ /dev/null @@ -1,44 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.repo.listRecords` namespace. -pub const NSID: &str = "com.atproto.repo.listRecords"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///The NSID of the record type. - pub collection: atrium_api::types::string::Nsid, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - ///The number of records to return. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///The handle or DID of the repo. - pub repo: atrium_api::types::string::AtIdentifier, - ///Flag to reverse the order of the returned records. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub reverse: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub records: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - pub cid: atrium_api::types::string::Cid, - pub uri: String, - pub value: atrium_api::types::Unknown, -} -pub type Record = atrium_api::types::Object; diff --git a/crates/weaver-common/src/lexicons/com/atproto/repo/put_record.rs b/crates/weaver-common/src/lexicons/com/atproto/repo/put_record.rs deleted file mode 100644 index 25099e0..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/repo/put_record.rs +++ /dev/null @@ -1,54 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.repo.putRecord` namespace. -pub const NSID: &str = "com.atproto.repo.putRecord"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///The NSID of the record collection. - pub collection: atrium_api::types::string::Nsid, - ///The record to write. - pub record: atrium_api::types::Unknown, - ///The handle or DID of the repo (aka, current account). - pub repo: atrium_api::types::string::AtIdentifier, - ///The Record Key. - pub rkey: atrium_api::types::string::RecordKey, - ///Compare and swap with the previous commit by CID. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub swap_commit: core::option::Option, - ///Compare and swap with the previous record by CID. WARNING: nullable and optional field; may cause problems with golang implementation - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub swap_record: core::option::Option, - ///Can be set to 'false' to skip Lexicon schema validation of record data, 'true' to require it, or leave unset to validate only for known Lexicons. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub validate: core::option::Option, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub cid: atrium_api::types::string::Cid, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub commit: core::option::Option, - pub uri: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub validation_status: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - InvalidSwap(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::InvalidSwap(msg) => { - write!(_f, "InvalidSwap")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/repo/strong_ref.rs b/crates/weaver-common/src/lexicons/com/atproto/repo/strong_ref.rs deleted file mode 100644 index 8eef6d6..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/repo/strong_ref.rs +++ /dev/null @@ -1,10 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.repo.strongRef` namespace. -//!A URI with a content-hash fingerprint. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MainData { - pub cid: atrium_api::types::string::Cid, - pub uri: String, -} -pub type Main = atrium_api::types::Object; diff --git a/crates/weaver-common/src/lexicons/com/atproto/repo/upload_blob.rs b/crates/weaver-common/src/lexicons/com/atproto/repo/upload_blob.rs deleted file mode 100644 index 641861d..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/repo/upload_blob.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.repo.uploadBlob` namespace. -pub const NSID: &str = "com.atproto.repo.uploadBlob"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub blob: atrium_api::types::BlobRef, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/server.rs b/crates/weaver-common/src/lexicons/com/atproto/server.rs deleted file mode 100644 index d9dac6e..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/server.rs +++ /dev/null @@ -1,28 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server` namespace. -pub mod activate_account; -pub mod check_account_status; -pub mod confirm_email; -pub mod create_account; -pub mod create_app_password; -pub mod create_invite_code; -pub mod create_invite_codes; -pub mod create_session; -pub mod deactivate_account; -pub mod defs; -pub mod delete_account; -pub mod delete_session; -pub mod describe_server; -pub mod get_account_invite_codes; -pub mod get_service_auth; -pub mod get_session; -pub mod list_app_passwords; -pub mod refresh_session; -pub mod request_account_delete; -pub mod request_email_confirmation; -pub mod request_email_update; -pub mod request_password_reset; -pub mod reserve_signing_key; -pub mod reset_password; -pub mod revoke_app_password; -pub mod update_email; diff --git a/crates/weaver-common/src/lexicons/com/atproto/server/activate_account.rs b/crates/weaver-common/src/lexicons/com/atproto/server/activate_account.rs deleted file mode 100644 index 2d367da..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/server/activate_account.rs +++ /dev/null @@ -1,11 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.activateAccount` namespace. -pub const NSID: &str = "com.atproto.server.activateAccount"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/server/check_account_status.rs b/crates/weaver-common/src/lexicons/com/atproto/server/check_account_status.rs deleted file mode 100644 index d95b8a8..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/server/check_account_status.rs +++ /dev/null @@ -1,25 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.checkAccountStatus` namespace. -pub const NSID: &str = "com.atproto.server.checkAccountStatus"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub activated: bool, - pub expected_blobs: i64, - pub imported_blobs: i64, - pub indexed_records: i64, - pub private_state_values: i64, - pub repo_blocks: i64, - pub repo_commit: atrium_api::types::string::Cid, - pub repo_rev: String, - pub valid_did: bool, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/server/confirm_email.rs b/crates/weaver-common/src/lexicons/com/atproto/server/confirm_email.rs deleted file mode 100644 index 16b22e7..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/server/confirm_email.rs +++ /dev/null @@ -1,49 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.confirmEmail` namespace. -pub const NSID: &str = "com.atproto.server.confirmEmail"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub email: String, - pub token: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - AccountNotFound(Option), - ExpiredToken(Option), - InvalidToken(Option), - InvalidEmail(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::AccountNotFound(msg) => { - write!(_f, "AccountNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::ExpiredToken(msg) => { - write!(_f, "ExpiredToken")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::InvalidToken(msg) => { - write!(_f, "InvalidToken")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::InvalidEmail(msg) => { - write!(_f, "InvalidEmail")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/server/create_account.rs b/crates/weaver-common/src/lexicons/com/atproto/server/create_account.rs deleted file mode 100644 index c3d3c3a..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/server/create_account.rs +++ /dev/null @@ -1,104 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.createAccount` namespace. -pub const NSID: &str = "com.atproto.server.createAccount"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///Pre-existing atproto DID, being imported to a new account. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub did: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub email: core::option::Option, - ///Requested handle for the account. - pub handle: atrium_api::types::string::Handle, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub invite_code: core::option::Option, - ///Initial account password. May need to meet instance-specific password strength requirements. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub password: core::option::Option, - ///A signed DID PLC operation to be submitted as part of importing an existing account to this instance. NOTE: this optional field may be updated when full account migration is implemented. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub plc_op: core::option::Option, - ///DID PLC rotation key (aka, recovery key) to be included in PLC creation operation. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub recovery_key: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub verification_code: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub verification_phone: core::option::Option, -} -pub type Input = atrium_api::types::Object; -///Account login session returned on successful account creation. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub access_jwt: String, - ///The DID of the new account. - pub did: atrium_api::types::string::Did, - ///Complete DID document. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub did_doc: core::option::Option, - pub handle: atrium_api::types::string::Handle, - pub refresh_jwt: String, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - InvalidHandle(Option), - InvalidPassword(Option), - InvalidInviteCode(Option), - HandleNotAvailable(Option), - UnsupportedDomain(Option), - UnresolvableDid(Option), - IncompatibleDidDoc(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::InvalidHandle(msg) => { - write!(_f, "InvalidHandle")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::InvalidPassword(msg) => { - write!(_f, "InvalidPassword")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::InvalidInviteCode(msg) => { - write!(_f, "InvalidInviteCode")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::HandleNotAvailable(msg) => { - write!(_f, "HandleNotAvailable")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::UnsupportedDomain(msg) => { - write!(_f, "UnsupportedDomain")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::UnresolvableDid(msg) => { - write!(_f, "UnresolvableDid")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::IncompatibleDidDoc(msg) => { - write!(_f, "IncompatibleDidDoc")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/server/create_app_password.rs b/crates/weaver-common/src/lexicons/com/atproto/server/create_app_password.rs deleted file mode 100644 index 936e5dd..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/server/create_app_password.rs +++ /dev/null @@ -1,42 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.createAppPassword` namespace. -pub const NSID: &str = "com.atproto.server.createAppPassword"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///A short name for the App Password, to help distinguish them. - pub name: String, - ///If an app password has 'privileged' access to possibly sensitive account state. Meant for use with trusted clients. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub privileged: core::option::Option, -} -pub type Input = atrium_api::types::Object; -pub type Output = AppPassword; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - AccountTakedown(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::AccountTakedown(msg) => { - write!(_f, "AccountTakedown")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct AppPasswordData { - pub created_at: atrium_api::types::string::Datetime, - pub name: String, - pub password: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub privileged: core::option::Option, -} -pub type AppPassword = atrium_api::types::Object; diff --git a/crates/weaver-common/src/lexicons/com/atproto/server/create_invite_code.rs b/crates/weaver-common/src/lexicons/com/atproto/server/create_invite_code.rs deleted file mode 100644 index d7e2741..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/server/create_invite_code.rs +++ /dev/null @@ -1,25 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.createInviteCode` namespace. -pub const NSID: &str = "com.atproto.server.createInviteCode"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub for_account: core::option::Option, - pub use_count: i64, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub code: String, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/server/create_invite_codes.rs b/crates/weaver-common/src/lexicons/com/atproto/server/create_invite_codes.rs deleted file mode 100644 index f3fcf07..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/server/create_invite_codes.rs +++ /dev/null @@ -1,33 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.createInviteCodes` namespace. -pub const NSID: &str = "com.atproto.server.createInviteCodes"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub code_count: i64, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub for_accounts: core::option::Option>, - pub use_count: i64, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub codes: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct AccountCodesData { - pub account: String, - pub codes: Vec, -} -pub type AccountCodes = atrium_api::types::Object; diff --git a/crates/weaver-common/src/lexicons/com/atproto/server/create_session.rs b/crates/weaver-common/src/lexicons/com/atproto/server/create_session.rs deleted file mode 100644 index ebd5e71..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/server/create_session.rs +++ /dev/null @@ -1,63 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.createSession` namespace. -pub const NSID: &str = "com.atproto.server.createSession"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///When true, instead of throwing error for takendown accounts, a valid response with a narrow scoped token will be returned - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub allow_takendown: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub auth_factor_token: core::option::Option, - ///Handle or other identifier supported by the server for the authenticating user. - pub identifier: String, - pub password: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub access_jwt: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub active: core::option::Option, - pub did: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub did_doc: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub email: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub email_auth_factor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub email_confirmed: core::option::Option, - pub handle: atrium_api::types::string::Handle, - pub refresh_jwt: String, - ///If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub status: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - AccountTakedown(Option), - AuthFactorTokenRequired(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::AccountTakedown(msg) => { - write!(_f, "AccountTakedown")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::AuthFactorTokenRequired(msg) => { - write!(_f, "AuthFactorTokenRequired")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/server/deactivate_account.rs b/crates/weaver-common/src/lexicons/com/atproto/server/deactivate_account.rs deleted file mode 100644 index ec465e1..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/server/deactivate_account.rs +++ /dev/null @@ -1,19 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.deactivateAccount` namespace. -pub const NSID: &str = "com.atproto.server.deactivateAccount"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///A recommendation to server as to how long they should hold onto the deactivated account before deleting. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub delete_after: core::option::Option, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/server/defs.rs b/crates/weaver-common/src/lexicons/com/atproto/server/defs.rs deleted file mode 100644 index fd043b7..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/server/defs.rs +++ /dev/null @@ -1,21 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.defs` namespace. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InviteCodeData { - pub available: i64, - pub code: String, - pub created_at: atrium_api::types::string::Datetime, - pub created_by: String, - pub disabled: bool, - pub for_account: String, - pub uses: Vec, -} -pub type InviteCode = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InviteCodeUseData { - pub used_at: atrium_api::types::string::Datetime, - pub used_by: atrium_api::types::string::Did, -} -pub type InviteCodeUse = atrium_api::types::Object; diff --git a/crates/weaver-common/src/lexicons/com/atproto/server/delete_account.rs b/crates/weaver-common/src/lexicons/com/atproto/server/delete_account.rs deleted file mode 100644 index a98566e..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/server/delete_account.rs +++ /dev/null @@ -1,36 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.deleteAccount` namespace. -pub const NSID: &str = "com.atproto.server.deleteAccount"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub did: atrium_api::types::string::Did, - pub password: String, - pub token: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - ExpiredToken(Option), - InvalidToken(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::ExpiredToken(msg) => { - write!(_f, "ExpiredToken")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::InvalidToken(msg) => { - write!(_f, "InvalidToken")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/server/delete_session.rs b/crates/weaver-common/src/lexicons/com/atproto/server/delete_session.rs deleted file mode 100644 index 8ce2d7b..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/server/delete_session.rs +++ /dev/null @@ -1,11 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.deleteSession` namespace. -pub const NSID: &str = "com.atproto.server.deleteSession"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/server/describe_server.rs b/crates/weaver-common/src/lexicons/com/atproto/server/describe_server.rs deleted file mode 100644 index e5efc0e..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/server/describe_server.rs +++ /dev/null @@ -1,47 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.describeServer` namespace. -pub const NSID: &str = "com.atproto.server.describeServer"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - ///List of domain suffixes that can be used in account handles. - pub available_user_domains: Vec, - ///Contact information - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub contact: core::option::Option, - pub did: atrium_api::types::string::Did, - ///If true, an invite code must be supplied to create an account on this instance. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub invite_code_required: core::option::Option, - ///URLs of service policy documents. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub links: core::option::Option, - ///If true, a phone verification token must be supplied to create an account on this instance. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub phone_verification_required: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ContactData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub email: core::option::Option, -} -pub type Contact = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct LinksData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub privacy_policy: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub terms_of_service: core::option::Option, -} -pub type Links = atrium_api::types::Object; diff --git a/crates/weaver-common/src/lexicons/com/atproto/server/get_account_invite_codes.rs b/crates/weaver-common/src/lexicons/com/atproto/server/get_account_invite_codes.rs deleted file mode 100644 index 3020ad3..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/server/get_account_invite_codes.rs +++ /dev/null @@ -1,37 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.getAccountInviteCodes` namespace. -pub const NSID: &str = "com.atproto.server.getAccountInviteCodes"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///Controls whether any new 'earned' but not 'created' invites should be created. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub create_available: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub include_used: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub codes: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - DuplicateCreate(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::DuplicateCreate(msg) => { - write!(_f, "DuplicateCreate")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/server/get_service_auth.rs b/crates/weaver-common/src/lexicons/com/atproto/server/get_service_auth.rs deleted file mode 100644 index 20ef929..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/server/get_service_auth.rs +++ /dev/null @@ -1,41 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.getServiceAuth` namespace. -pub const NSID: &str = "com.atproto.server.getServiceAuth"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///The DID of the service that the token will be used to authenticate with - pub aud: atrium_api::types::string::Did, - ///The time in Unix Epoch seconds that the JWT expires. Defaults to 60 seconds in the future. The service may enforce certain time bounds on tokens depending on the requested scope. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub exp: core::option::Option, - ///Lexicon (XRPC) method to bind the requested token to - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub lxm: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub token: String, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - ///Indicates that the requested expiration date is not a valid. May be in the past or may be reliant on the requested scopes. - BadExpiration(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::BadExpiration(msg) => { - write!(_f, "BadExpiration")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/server/get_session.rs b/crates/weaver-common/src/lexicons/com/atproto/server/get_session.rs deleted file mode 100644 index 4212676..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/server/get_session.rs +++ /dev/null @@ -1,31 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.getSession` namespace. -pub const NSID: &str = "com.atproto.server.getSession"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub active: core::option::Option, - pub did: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub did_doc: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub email: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub email_auth_factor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub email_confirmed: core::option::Option, - pub handle: atrium_api::types::string::Handle, - ///If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub status: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/server/list_app_passwords.rs b/crates/weaver-common/src/lexicons/com/atproto/server/list_app_passwords.rs deleted file mode 100644 index 3856d48..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/server/list_app_passwords.rs +++ /dev/null @@ -1,36 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.listAppPasswords` namespace. -pub const NSID: &str = "com.atproto.server.listAppPasswords"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub passwords: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - AccountTakedown(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::AccountTakedown(msg) => { - write!(_f, "AccountTakedown")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct AppPasswordData { - pub created_at: atrium_api::types::string::Datetime, - pub name: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub privileged: core::option::Option, -} -pub type AppPassword = atrium_api::types::Object; diff --git a/crates/weaver-common/src/lexicons/com/atproto/server/refresh_session.rs b/crates/weaver-common/src/lexicons/com/atproto/server/refresh_session.rs deleted file mode 100644 index 5bde010..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/server/refresh_session.rs +++ /dev/null @@ -1,37 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.refreshSession` namespace. -pub const NSID: &str = "com.atproto.server.refreshSession"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub access_jwt: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub active: core::option::Option, - pub did: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub did_doc: core::option::Option, - pub handle: atrium_api::types::string::Handle, - pub refresh_jwt: String, - ///Hosting status of the account. If not specified, then assume 'active'. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub status: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - AccountTakedown(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::AccountTakedown(msg) => { - write!(_f, "AccountTakedown")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/server/request_account_delete.rs b/crates/weaver-common/src/lexicons/com/atproto/server/request_account_delete.rs deleted file mode 100644 index c2949ea..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/server/request_account_delete.rs +++ /dev/null @@ -1,11 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.requestAccountDelete` namespace. -pub const NSID: &str = "com.atproto.server.requestAccountDelete"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/server/request_email_confirmation.rs b/crates/weaver-common/src/lexicons/com/atproto/server/request_email_confirmation.rs deleted file mode 100644 index dda81d5..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/server/request_email_confirmation.rs +++ /dev/null @@ -1,11 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.requestEmailConfirmation` namespace. -pub const NSID: &str = "com.atproto.server.requestEmailConfirmation"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/server/request_email_update.rs b/crates/weaver-common/src/lexicons/com/atproto/server/request_email_update.rs deleted file mode 100644 index fa7e8ab..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/server/request_email_update.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.requestEmailUpdate` namespace. -pub const NSID: &str = "com.atproto.server.requestEmailUpdate"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub token_required: bool, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/server/request_password_reset.rs b/crates/weaver-common/src/lexicons/com/atproto/server/request_password_reset.rs deleted file mode 100644 index 2714ed1..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/server/request_password_reset.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.requestPasswordReset` namespace. -pub const NSID: &str = "com.atproto.server.requestPasswordReset"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub email: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/server/reserve_signing_key.rs b/crates/weaver-common/src/lexicons/com/atproto/server/reserve_signing_key.rs deleted file mode 100644 index 48a9983..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/server/reserve_signing_key.rs +++ /dev/null @@ -1,26 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.reserveSigningKey` namespace. -pub const NSID: &str = "com.atproto.server.reserveSigningKey"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///The DID to reserve a key for. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub did: core::option::Option, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - ///The public key for the reserved signing key, in did:key serialization. - pub signing_key: String, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/server/reset_password.rs b/crates/weaver-common/src/lexicons/com/atproto/server/reset_password.rs deleted file mode 100644 index f3bdc16..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/server/reset_password.rs +++ /dev/null @@ -1,35 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.resetPassword` namespace. -pub const NSID: &str = "com.atproto.server.resetPassword"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub password: String, - pub token: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - ExpiredToken(Option), - InvalidToken(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::ExpiredToken(msg) => { - write!(_f, "ExpiredToken")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::InvalidToken(msg) => { - write!(_f, "InvalidToken")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/server/revoke_app_password.rs b/crates/weaver-common/src/lexicons/com/atproto/server/revoke_app_password.rs deleted file mode 100644 index ed9ed76..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/server/revoke_app_password.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.revokeAppPassword` namespace. -pub const NSID: &str = "com.atproto.server.revokeAppPassword"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub name: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/server/update_email.rs b/crates/weaver-common/src/lexicons/com/atproto/server/update_email.rs deleted file mode 100644 index 013bfd4..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/server/update_email.rs +++ /dev/null @@ -1,46 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.server.updateEmail` namespace. -pub const NSID: &str = "com.atproto.server.updateEmail"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub email: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub email_auth_factor: core::option::Option, - ///Requires a token from com.atproto.sever.requestEmailUpdate if the account's email has been confirmed. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub token: core::option::Option, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - ExpiredToken(Option), - InvalidToken(Option), - TokenRequired(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::ExpiredToken(msg) => { - write!(_f, "ExpiredToken")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::InvalidToken(msg) => { - write!(_f, "InvalidToken")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::TokenRequired(msg) => { - write!(_f, "TokenRequired")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/sync.rs b/crates/weaver-common/src/lexicons/com/atproto/sync.rs deleted file mode 100644 index 2aaa782..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/sync.rs +++ /dev/null @@ -1,19 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.sync` namespace. -pub mod defs; -pub mod get_blob; -pub mod get_blocks; -pub mod get_checkout; -pub mod get_head; -pub mod get_host_status; -pub mod get_latest_commit; -pub mod get_record; -pub mod get_repo; -pub mod get_repo_status; -pub mod list_blobs; -pub mod list_hosts; -pub mod list_repos; -pub mod list_repos_by_collection; -pub mod notify_of_update; -pub mod request_crawl; -pub mod subscribe_repos; diff --git a/crates/weaver-common/src/lexicons/com/atproto/sync/defs.rs b/crates/weaver-common/src/lexicons/com/atproto/sync/defs.rs deleted file mode 100644 index 07ecde0..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/sync/defs.rs +++ /dev/null @@ -1,3 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.sync.defs` namespace. -pub type HostStatus = String; diff --git a/crates/weaver-common/src/lexicons/com/atproto/sync/get_blob.rs b/crates/weaver-common/src/lexicons/com/atproto/sync/get_blob.rs deleted file mode 100644 index 991d8fc..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/sync/get_blob.rs +++ /dev/null @@ -1,58 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.sync.getBlob` namespace. -pub const NSID: &str = "com.atproto.sync.getBlob"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///The CID of the blob to fetch - pub cid: atrium_api::types::string::Cid, - ///The DID of the account. - pub did: atrium_api::types::string::Did, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - BlobNotFound(Option), - RepoNotFound(Option), - RepoTakendown(Option), - RepoSuspended(Option), - RepoDeactivated(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::BlobNotFound(msg) => { - write!(_f, "BlobNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoNotFound(msg) => { - write!(_f, "RepoNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoTakendown(msg) => { - write!(_f, "RepoTakendown")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoSuspended(msg) => { - write!(_f, "RepoSuspended")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoDeactivated(msg) => { - write!(_f, "RepoDeactivated")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/sync/get_blocks.rs b/crates/weaver-common/src/lexicons/com/atproto/sync/get_blocks.rs deleted file mode 100644 index 54855f4..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/sync/get_blocks.rs +++ /dev/null @@ -1,57 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.sync.getBlocks` namespace. -pub const NSID: &str = "com.atproto.sync.getBlocks"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub cids: Vec, - ///The DID of the repo. - pub did: atrium_api::types::string::Did, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - BlockNotFound(Option), - RepoNotFound(Option), - RepoTakendown(Option), - RepoSuspended(Option), - RepoDeactivated(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::BlockNotFound(msg) => { - write!(_f, "BlockNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoNotFound(msg) => { - write!(_f, "RepoNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoTakendown(msg) => { - write!(_f, "RepoTakendown")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoSuspended(msg) => { - write!(_f, "RepoSuspended")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoDeactivated(msg) => { - write!(_f, "RepoDeactivated")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/sync/get_checkout.rs b/crates/weaver-common/src/lexicons/com/atproto/sync/get_checkout.rs deleted file mode 100644 index 2e0af82..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/sync/get_checkout.rs +++ /dev/null @@ -1,18 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.sync.getCheckout` namespace. -pub const NSID: &str = "com.atproto.sync.getCheckout"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///The DID of the repo. - pub did: atrium_api::types::string::Did, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/sync/get_head.rs b/crates/weaver-common/src/lexicons/com/atproto/sync/get_head.rs deleted file mode 100644 index 3911bd2..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/sync/get_head.rs +++ /dev/null @@ -1,34 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.sync.getHead` namespace. -pub const NSID: &str = "com.atproto.sync.getHead"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///The DID of the repo. - pub did: atrium_api::types::string::Did, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub root: atrium_api::types::string::Cid, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - HeadNotFound(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::HeadNotFound(msg) => { - write!(_f, "HeadNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/sync/get_host_status.rs b/crates/weaver-common/src/lexicons/com/atproto/sync/get_host_status.rs deleted file mode 100644 index d807c37..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/sync/get_host_status.rs +++ /dev/null @@ -1,42 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.sync.getHostStatus` namespace. -pub const NSID: &str = "com.atproto.sync.getHostStatus"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///Hostname of the host (eg, PDS or relay) being queried. - pub hostname: String, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - ///Number of accounts on the server which are associated with the upstream host. Note that the upstream may actually have more accounts. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub account_count: core::option::Option, - pub hostname: String, - ///Recent repo stream event sequence number. May be delayed from actual stream processing (eg, persisted cursor not in-memory cursor). - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub seq: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub status: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - HostNotFound(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::HostNotFound(msg) => { - write!(_f, "HostNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/sync/get_latest_commit.rs b/crates/weaver-common/src/lexicons/com/atproto/sync/get_latest_commit.rs deleted file mode 100644 index f775c6e..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/sync/get_latest_commit.rs +++ /dev/null @@ -1,56 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.sync.getLatestCommit` namespace. -pub const NSID: &str = "com.atproto.sync.getLatestCommit"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///The DID of the repo. - pub did: atrium_api::types::string::Did, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub cid: atrium_api::types::string::Cid, - pub rev: atrium_api::types::string::Tid, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - RepoNotFound(Option), - RepoTakendown(Option), - RepoSuspended(Option), - RepoDeactivated(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::RepoNotFound(msg) => { - write!(_f, "RepoNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoTakendown(msg) => { - write!(_f, "RepoTakendown")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoSuspended(msg) => { - write!(_f, "RepoSuspended")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoDeactivated(msg) => { - write!(_f, "RepoDeactivated")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/sync/get_record.rs b/crates/weaver-common/src/lexicons/com/atproto/sync/get_record.rs deleted file mode 100644 index 9e99433..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/sync/get_record.rs +++ /dev/null @@ -1,59 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.sync.getRecord` namespace. -pub const NSID: &str = "com.atproto.sync.getRecord"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub collection: atrium_api::types::string::Nsid, - ///The DID of the repo. - pub did: atrium_api::types::string::Did, - ///Record Key - pub rkey: atrium_api::types::string::RecordKey, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - RecordNotFound(Option), - RepoNotFound(Option), - RepoTakendown(Option), - RepoSuspended(Option), - RepoDeactivated(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::RecordNotFound(msg) => { - write!(_f, "RecordNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoNotFound(msg) => { - write!(_f, "RepoNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoTakendown(msg) => { - write!(_f, "RepoTakendown")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoSuspended(msg) => { - write!(_f, "RepoSuspended")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoDeactivated(msg) => { - write!(_f, "RepoDeactivated")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/sync/get_repo.rs b/crates/weaver-common/src/lexicons/com/atproto/sync/get_repo.rs deleted file mode 100644 index 43a4691..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/sync/get_repo.rs +++ /dev/null @@ -1,52 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.sync.getRepo` namespace. -pub const NSID: &str = "com.atproto.sync.getRepo"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///The DID of the repo. - pub did: atrium_api::types::string::Did, - ///The revision ('rev') of the repo to create a diff from. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub since: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - RepoNotFound(Option), - RepoTakendown(Option), - RepoSuspended(Option), - RepoDeactivated(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::RepoNotFound(msg) => { - write!(_f, "RepoNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoTakendown(msg) => { - write!(_f, "RepoTakendown")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoSuspended(msg) => { - write!(_f, "RepoSuspended")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoDeactivated(msg) => { - write!(_f, "RepoDeactivated")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/sync/get_repo_status.rs b/crates/weaver-common/src/lexicons/com/atproto/sync/get_repo_status.rs deleted file mode 100644 index b90f998..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/sync/get_repo_status.rs +++ /dev/null @@ -1,41 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.sync.getRepoStatus` namespace. -pub const NSID: &str = "com.atproto.sync.getRepoStatus"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///The DID of the repo. - pub did: atrium_api::types::string::Did, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub active: bool, - pub did: atrium_api::types::string::Did, - ///Optional field, the current rev of the repo, if active=true - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub rev: core::option::Option, - ///If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub status: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - RepoNotFound(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::RepoNotFound(msg) => { - write!(_f, "RepoNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/sync/list_blobs.rs b/crates/weaver-common/src/lexicons/com/atproto/sync/list_blobs.rs deleted file mode 100644 index f2d3f48..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/sync/list_blobs.rs +++ /dev/null @@ -1,64 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.sync.listBlobs` namespace. -pub const NSID: &str = "com.atproto.sync.listBlobs"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - ///The DID of the repo. - pub did: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - ///Optional revision of the repo to list blobs since. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub since: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub cids: Vec, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - RepoNotFound(Option), - RepoTakendown(Option), - RepoSuspended(Option), - RepoDeactivated(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::RepoNotFound(msg) => { - write!(_f, "RepoNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoTakendown(msg) => { - write!(_f, "RepoTakendown")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoSuspended(msg) => { - write!(_f, "RepoSuspended")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::RepoDeactivated(msg) => { - write!(_f, "RepoDeactivated")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/sync/list_hosts.rs b/crates/weaver-common/src/lexicons/com/atproto/sync/list_hosts.rs deleted file mode 100644 index 4fd9f90..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/sync/list_hosts.rs +++ /dev/null @@ -1,43 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.sync.listHosts` namespace. -pub const NSID: &str = "com.atproto.sync.listHosts"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - ///Sort order is not formally specified. Recommended order is by time host was first seen by the server, with oldest first. - pub hosts: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct HostData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub account_count: core::option::Option, - ///hostname of server; not a URL (no scheme) - pub hostname: String, - ///Recent repo stream event sequence number. May be delayed from actual stream processing (eg, persisted cursor not in-memory cursor). - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub seq: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub status: core::option::Option, -} -pub type Host = atrium_api::types::Object; diff --git a/crates/weaver-common/src/lexicons/com/atproto/sync/list_repos.rs b/crates/weaver-common/src/lexicons/com/atproto/sync/list_repos.rs deleted file mode 100644 index 0a9bf9a..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/sync/list_repos.rs +++ /dev/null @@ -1,42 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.sync.listRepos` namespace. -pub const NSID: &str = "com.atproto.sync.listRepos"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub repos: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RepoData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub active: core::option::Option, - pub did: atrium_api::types::string::Did, - ///Current repo commit CID - pub head: atrium_api::types::string::Cid, - pub rev: atrium_api::types::string::Tid, - ///If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub status: core::option::Option, -} -pub type Repo = atrium_api::types::Object; diff --git a/crates/weaver-common/src/lexicons/com/atproto/sync/list_repos_by_collection.rs b/crates/weaver-common/src/lexicons/com/atproto/sync/list_repos_by_collection.rs deleted file mode 100644 index 9343acf..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/sync/list_repos_by_collection.rs +++ /dev/null @@ -1,36 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.sync.listReposByCollection` namespace. -pub const NSID: &str = "com.atproto.sync.listReposByCollection"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub collection: atrium_api::types::string::Nsid, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - ///Maximum size of response set. Recommend setting a large maximum (1000+) when enumerating large DID lists. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, - pub repos: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RepoData { - pub did: atrium_api::types::string::Did, -} -pub type Repo = atrium_api::types::Object; diff --git a/crates/weaver-common/src/lexicons/com/atproto/sync/notify_of_update.rs b/crates/weaver-common/src/lexicons/com/atproto/sync/notify_of_update.rs deleted file mode 100644 index 7b29ad2..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/sync/notify_of_update.rs +++ /dev/null @@ -1,18 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.sync.notifyOfUpdate` namespace. -pub const NSID: &str = "com.atproto.sync.notifyOfUpdate"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///Hostname of the current service (usually a PDS) that is notifying of update. - pub hostname: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/sync/request_crawl.rs b/crates/weaver-common/src/lexicons/com/atproto/sync/request_crawl.rs deleted file mode 100644 index 6e791ff..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/sync/request_crawl.rs +++ /dev/null @@ -1,28 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.sync.requestCrawl` namespace. -pub const NSID: &str = "com.atproto.sync.requestCrawl"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///Hostname of the current service (eg, PDS) that is requesting to be crawled. - pub hostname: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - HostBanned(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::HostBanned(msg) => { - write!(_f, "HostBanned")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/sync/subscribe_repos.rs b/crates/weaver-common/src/lexicons/com/atproto/sync/subscribe_repos.rs deleted file mode 100644 index a74ae49..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/sync/subscribe_repos.rs +++ /dev/null @@ -1,147 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.sync.subscribeRepos` namespace. -pub const NSID: &str = "com.atproto.sync.subscribeRepos"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///The last known event seq number to backfill from. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - FutureCursor(Option), - ///If the consumer of the stream can not keep up with events, and a backlog gets too large, the server will drop the connection. - ConsumerTooSlow(Option), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::FutureCursor(msg) => { - write!(_f, "FutureCursor")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::ConsumerTooSlow(msg) => { - write!(_f, "ConsumerTooSlow")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} -///Represents a change to an account's status on a host (eg, PDS or Relay). The semantics of this event are that the status is at the host which emitted the event, not necessarily that at the currently active PDS. Eg, a Relay takedown would emit a takedown with active=false, even if the PDS is still active. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct AccountData { - ///Indicates that the account has a repository which can be fetched from the host that emitted this event. - pub active: bool, - pub did: atrium_api::types::string::Did, - pub seq: i64, - ///If active=false, this optional field indicates a reason for why the account is not active. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub status: core::option::Option, - pub time: atrium_api::types::string::Datetime, -} -pub type Account = atrium_api::types::Object; -///Represents an update of repository state. Note that empty commits are allowed, which include no repo data changes, but an update to rev and signature. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct CommitData { - pub blobs: Vec, - ///CAR file containing relevant blocks, as a diff since the previous repo state. The commit must be included as a block, and the commit block CID must be the first entry in the CAR header 'roots' list. - #[serde(with = "serde_bytes")] - pub blocks: Vec, - ///Repo commit object CID. - pub commit: atrium_api::types::CidLink, - pub ops: Vec, - ///The root CID of the MST tree for the previous commit from this repo (indicated by the 'since' revision field in this message). Corresponds to the 'data' field in the repo commit object. NOTE: this field is effectively required for the 'inductive' version of firehose. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub prev_data: core::option::Option, - ///DEPRECATED -- unused - pub rebase: bool, - ///The repo this event comes from. Note that all other message types name this field 'did'. - pub repo: atrium_api::types::string::Did, - ///The rev of the emitted commit. Note that this information is also in the commit object included in blocks, unless this is a tooBig event. - pub rev: atrium_api::types::string::Tid, - ///The stream sequence number of this message. - pub seq: i64, - ///The rev of the last emitted commit from this repo (if any). - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub since: core::option::Option, - ///Timestamp of when this message was originally broadcast. - pub time: atrium_api::types::string::Datetime, - ///DEPRECATED -- replaced by #sync event and data limits. Indicates that this commit contained too many ops, or data size was too large. Consumers will need to make a separate request to get missing data. - pub too_big: bool, -} -pub type Commit = atrium_api::types::Object; -///Represents a change to an account's identity. Could be an updated handle, signing key, or pds hosting endpoint. Serves as a prod to all downstream services to refresh their identity cache. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct IdentityData { - pub did: atrium_api::types::string::Did, - ///The current handle for the account, or 'handle.invalid' if validation fails. This field is optional, might have been validated or passed-through from an upstream source. Semantics and behaviors for PDS vs Relay may evolve in the future; see atproto specs for more details. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub handle: core::option::Option, - pub seq: i64, - pub time: atrium_api::types::string::Datetime, -} -pub type Identity = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InfoData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub message: core::option::Option, - pub name: String, -} -pub type Info = atrium_api::types::Object; -///A repo operation, ie a mutation of a single record. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RepoOpData { - pub action: String, - ///For creates and updates, the new record CID. For deletions, null. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cid: core::option::Option, - pub path: String, - ///For updates and deletes, the previous record CID (required for inductive firehose). For creations, field should not be defined. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub prev: core::option::Option, -} -pub type RepoOp = atrium_api::types::Object; -///Updates the repo to a new state, without necessarily including that state on the firehose. Used to recover from broken commit streams, data loss incidents, or in situations where upstream host does not know recent state of the repository. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct SyncData { - ///CAR file containing the commit, as a block. The CAR header must include the commit block CID as the first 'root'. - #[serde(with = "serde_bytes")] - pub blocks: Vec, - ///The account this repo event corresponds to. Must match that in the commit object. - pub did: atrium_api::types::string::Did, - ///The rev of the commit. This value must match that in the commit object. - pub rev: String, - ///The stream sequence number of this message. - pub seq: i64, - ///Timestamp of when this message was originally broadcast. - pub time: atrium_api::types::string::Datetime, -} -pub type Sync = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum Message { - #[serde(rename = "com.atproto.sync.subscribeRepos#commit")] - Commit(Box), - #[serde(rename = "com.atproto.sync.subscribeRepos#sync")] - Sync(Box), - #[serde(rename = "com.atproto.sync.subscribeRepos#identity")] - Identity(Box), - #[serde(rename = "com.atproto.sync.subscribeRepos#account")] - Account(Box), - #[serde(rename = "com.atproto.sync.subscribeRepos#info")] - Info(Box), -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/temp.rs b/crates/weaver-common/src/lexicons/com/atproto/temp.rs deleted file mode 100644 index daafee4..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/temp.rs +++ /dev/null @@ -1,6 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.temp` namespace. -pub mod add_reserved_handle; -pub mod check_signup_queue; -pub mod fetch_labels; -pub mod request_phone_verification; diff --git a/crates/weaver-common/src/lexicons/com/atproto/temp/add_reserved_handle.rs b/crates/weaver-common/src/lexicons/com/atproto/temp/add_reserved_handle.rs deleted file mode 100644 index 8bd32e4..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/temp/add_reserved_handle.rs +++ /dev/null @@ -1,21 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.temp.addReservedHandle` namespace. -pub const NSID: &str = "com.atproto.temp.addReservedHandle"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub handle: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData {} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/temp/check_signup_queue.rs b/crates/weaver-common/src/lexicons/com/atproto/temp/check_signup_queue.rs deleted file mode 100644 index 5994de2..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/temp/check_signup_queue.rs +++ /dev/null @@ -1,21 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.temp.checkSignupQueue` namespace. -pub const NSID: &str = "com.atproto.temp.checkSignupQueue"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub activated: bool, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub estimated_time_ms: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub place_in_queue: core::option::Option, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/temp/fetch_labels.rs b/crates/weaver-common/src/lexicons/com/atproto/temp/fetch_labels.rs deleted file mode 100644 index 262a388..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/temp/fetch_labels.rs +++ /dev/null @@ -1,26 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.temp.fetchLabels` namespace. -pub const NSID: &str = "com.atproto.temp.fetchLabels"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub since: core::option::Option, -} -pub type Parameters = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub labels: Vec, -} -pub type Output = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/com/atproto/temp/request_phone_verification.rs b/crates/weaver-common/src/lexicons/com/atproto/temp/request_phone_verification.rs deleted file mode 100644 index 4b9e334..0000000 --- a/crates/weaver-common/src/lexicons/com/atproto/temp/request_phone_verification.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `com.atproto.temp.requestPhoneVerification` namespace. -pub const NSID: &str = "com.atproto.temp.requestPhoneVerification"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub phone_number: String, -} -pub type Input = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/mod.rs b/crates/weaver-common/src/lexicons/mod.rs deleted file mode 100644 index 714fe99..0000000 --- a/crates/weaver-common/src/lexicons/mod.rs +++ /dev/null @@ -1,9 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -pub mod app; -pub mod chat; -pub mod client; -pub mod com; -pub mod place; -pub mod record; -pub mod sh; -pub mod tools; diff --git a/crates/weaver-common/src/lexicons/place.rs b/crates/weaver-common/src/lexicons/place.rs deleted file mode 100644 index 5d16c25..0000000 --- a/crates/weaver-common/src/lexicons/place.rs +++ /dev/null @@ -1,3 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `place` namespace. -pub mod stream; diff --git a/crates/weaver-common/src/lexicons/place/stream.rs b/crates/weaver-common/src/lexicons/place/stream.rs deleted file mode 100644 index 36a290d..0000000 --- a/crates/weaver-common/src/lexicons/place/stream.rs +++ /dev/null @@ -1,3 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `place.stream` namespace. -pub mod live; diff --git a/crates/weaver-common/src/lexicons/place/stream/live.rs b/crates/weaver-common/src/lexicons/place/stream/live.rs deleted file mode 100644 index 6f83004..0000000 --- a/crates/weaver-common/src/lexicons/place/stream/live.rs +++ /dev/null @@ -1,9 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `place.stream.live` namespace. -pub mod profile; -#[derive(Debug)] -pub struct Profile; -impl atrium_api::types::Collection for Profile { - const NSID: &'static str = "place.stream.live.profile"; - type Record = profile::Record; -} diff --git a/crates/weaver-common/src/lexicons/place/stream/live/profile.rs b/crates/weaver-common/src/lexicons/place/stream/live/profile.rs deleted file mode 100644 index 47b1557..0000000 --- a/crates/weaver-common/src/lexicons/place/stream/live/profile.rs +++ /dev/null @@ -1,45 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `place.stream.live.profile` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub about: core::option::Option, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct AboutData { - pub blocks: Vec, -} -pub type About = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct AboutBlockData { - pub item: atrium_api::types::Union, -} -pub type AboutBlock = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct AboutColData { - pub items: Vec, -} -pub type AboutCol = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct AboutTextData { - pub text: String, -} -pub type AboutText = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum AboutBlockItemRefs { - #[serde(rename = "place.stream.live.profile#aboutText")] - AboutText(Box), -} diff --git a/crates/weaver-common/src/lexicons/record.rs b/crates/weaver-common/src/lexicons/record.rs deleted file mode 100644 index 39d3184..0000000 --- a/crates/weaver-common/src/lexicons/record.rs +++ /dev/null @@ -1,359 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!A collection of known record types. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum KnownRecord { - #[serde(rename = "app.bsky.actor.profile")] - LexiconsAppBskyActorProfile(Box), - #[serde(rename = "app.bsky.actor.status")] - LexiconsAppBskyActorStatus(Box), - #[serde(rename = "app.bsky.feed.generator")] - LexiconsAppBskyFeedGenerator(Box), - #[serde(rename = "app.bsky.feed.like")] - LexiconsAppBskyFeedLike(Box), - #[serde(rename = "app.bsky.feed.post")] - LexiconsAppBskyFeedPost(Box), - #[serde(rename = "app.bsky.feed.postgate")] - LexiconsAppBskyFeedPostgate(Box), - #[serde(rename = "app.bsky.feed.repost")] - LexiconsAppBskyFeedRepost(Box), - #[serde(rename = "app.bsky.feed.threadgate")] - LexiconsAppBskyFeedThreadgate(Box), - #[serde(rename = "app.bsky.graph.block")] - LexiconsAppBskyGraphBlock(Box), - #[serde(rename = "app.bsky.graph.follow")] - LexiconsAppBskyGraphFollow(Box), - #[serde(rename = "app.bsky.graph.list")] - LexiconsAppBskyGraphList(Box), - #[serde(rename = "app.bsky.graph.listblock")] - LexiconsAppBskyGraphListblock(Box), - #[serde(rename = "app.bsky.graph.listitem")] - LexiconsAppBskyGraphListitem(Box), - #[serde(rename = "app.bsky.graph.starterpack")] - LexiconsAppBskyGraphStarterpack(Box), - #[serde(rename = "app.bsky.graph.verification")] - LexiconsAppBskyGraphVerification(Box), - #[serde(rename = "app.bsky.labeler.service")] - LexiconsAppBskyLabelerService(Box), - #[serde(rename = "chat.bsky.actor.declaration")] - LexiconsChatBskyActorDeclaration(Box), - #[serde(rename = "com.atproto.lexicon.schema")] - LexiconsComAtprotoLexiconSchema(Box), - #[serde(rename = "place.stream.live.profile")] - LexiconsPlaceStreamLiveProfile(Box), - #[serde(rename = "sh.tangled.actor.profile")] - LexiconsShTangledActorProfile(Box), - #[serde(rename = "sh.weaver.actor.profile")] - LexiconsShWeaverActorProfile(Box), - #[serde(rename = "sh.weaver.edit.cursor")] - LexiconsShWeaverEditCursor(Box), - #[serde(rename = "sh.weaver.edit.diff")] - LexiconsShWeaverEditDiff(Box), - #[serde(rename = "sh.weaver.edit.root")] - LexiconsShWeaverEditRoot(Box), - #[serde(rename = "sh.weaver.notebook.authors")] - LexiconsShWeaverNotebookAuthors(Box), - #[serde(rename = "sh.weaver.notebook.book")] - LexiconsShWeaverNotebookBook(Box), - #[serde(rename = "sh.weaver.notebook.chapter")] - LexiconsShWeaverNotebookChapter(Box), - #[serde(rename = "sh.weaver.notebook.entry")] - LexiconsShWeaverNotebookEntry(Box), - #[serde(rename = "sh.weaver.publish.blob")] - LexiconsShWeaverPublishBlob(Box), -} -impl From for KnownRecord { - fn from(record: crate::lexicons::app::bsky::actor::profile::Record) -> Self { - KnownRecord::LexiconsAppBskyActorProfile(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::lexicons::app::bsky::actor::profile::RecordData) -> Self { - KnownRecord::LexiconsAppBskyActorProfile(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::lexicons::app::bsky::actor::status::Record) -> Self { - KnownRecord::LexiconsAppBskyActorStatus(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::lexicons::app::bsky::actor::status::RecordData) -> Self { - KnownRecord::LexiconsAppBskyActorStatus(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::lexicons::app::bsky::feed::generator::Record) -> Self { - KnownRecord::LexiconsAppBskyFeedGenerator(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::lexicons::app::bsky::feed::generator::RecordData) -> Self { - KnownRecord::LexiconsAppBskyFeedGenerator(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::lexicons::app::bsky::feed::like::Record) -> Self { - KnownRecord::LexiconsAppBskyFeedLike(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::lexicons::app::bsky::feed::like::RecordData) -> Self { - KnownRecord::LexiconsAppBskyFeedLike(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::lexicons::app::bsky::feed::post::Record) -> Self { - KnownRecord::LexiconsAppBskyFeedPost(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::lexicons::app::bsky::feed::post::RecordData) -> Self { - KnownRecord::LexiconsAppBskyFeedPost(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::lexicons::app::bsky::feed::postgate::Record) -> Self { - KnownRecord::LexiconsAppBskyFeedPostgate(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::lexicons::app::bsky::feed::postgate::RecordData) -> Self { - KnownRecord::LexiconsAppBskyFeedPostgate(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::lexicons::app::bsky::feed::repost::Record) -> Self { - KnownRecord::LexiconsAppBskyFeedRepost(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::lexicons::app::bsky::feed::repost::RecordData) -> Self { - KnownRecord::LexiconsAppBskyFeedRepost(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::lexicons::app::bsky::feed::threadgate::Record) -> Self { - KnownRecord::LexiconsAppBskyFeedThreadgate(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::lexicons::app::bsky::feed::threadgate::RecordData) -> Self { - KnownRecord::LexiconsAppBskyFeedThreadgate(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::lexicons::app::bsky::graph::block::Record) -> Self { - KnownRecord::LexiconsAppBskyGraphBlock(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::lexicons::app::bsky::graph::block::RecordData) -> Self { - KnownRecord::LexiconsAppBskyGraphBlock(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::lexicons::app::bsky::graph::follow::Record) -> Self { - KnownRecord::LexiconsAppBskyGraphFollow(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::lexicons::app::bsky::graph::follow::RecordData) -> Self { - KnownRecord::LexiconsAppBskyGraphFollow(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::lexicons::app::bsky::graph::list::Record) -> Self { - KnownRecord::LexiconsAppBskyGraphList(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::lexicons::app::bsky::graph::list::RecordData) -> Self { - KnownRecord::LexiconsAppBskyGraphList(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::lexicons::app::bsky::graph::listblock::Record) -> Self { - KnownRecord::LexiconsAppBskyGraphListblock(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::lexicons::app::bsky::graph::listblock::RecordData) -> Self { - KnownRecord::LexiconsAppBskyGraphListblock(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::lexicons::app::bsky::graph::listitem::Record) -> Self { - KnownRecord::LexiconsAppBskyGraphListitem(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::lexicons::app::bsky::graph::listitem::RecordData) -> Self { - KnownRecord::LexiconsAppBskyGraphListitem(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::lexicons::app::bsky::graph::starterpack::Record) -> Self { - KnownRecord::LexiconsAppBskyGraphStarterpack(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::lexicons::app::bsky::graph::starterpack::RecordData) -> Self { - KnownRecord::LexiconsAppBskyGraphStarterpack(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::lexicons::app::bsky::graph::verification::Record) -> Self { - KnownRecord::LexiconsAppBskyGraphVerification(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::lexicons::app::bsky::graph::verification::RecordData) -> Self { - KnownRecord::LexiconsAppBskyGraphVerification(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::lexicons::app::bsky::labeler::service::Record) -> Self { - KnownRecord::LexiconsAppBskyLabelerService(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::lexicons::app::bsky::labeler::service::RecordData) -> Self { - KnownRecord::LexiconsAppBskyLabelerService(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::lexicons::chat::bsky::actor::declaration::Record) -> Self { - KnownRecord::LexiconsChatBskyActorDeclaration(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::lexicons::chat::bsky::actor::declaration::RecordData) -> Self { - KnownRecord::LexiconsChatBskyActorDeclaration(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::lexicons::com::atproto::lexicon::schema::Record) -> Self { - KnownRecord::LexiconsComAtprotoLexiconSchema(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::lexicons::com::atproto::lexicon::schema::RecordData) -> Self { - KnownRecord::LexiconsComAtprotoLexiconSchema(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::lexicons::place::stream::live::profile::Record) -> Self { - KnownRecord::LexiconsPlaceStreamLiveProfile(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::lexicons::place::stream::live::profile::RecordData) -> Self { - KnownRecord::LexiconsPlaceStreamLiveProfile(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::lexicons::sh::tangled::actor::profile::Record) -> Self { - KnownRecord::LexiconsShTangledActorProfile(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::lexicons::sh::tangled::actor::profile::RecordData) -> Self { - KnownRecord::LexiconsShTangledActorProfile(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::lexicons::sh::weaver::actor::profile::Record) -> Self { - KnownRecord::LexiconsShWeaverActorProfile(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::lexicons::sh::weaver::actor::profile::RecordData) -> Self { - KnownRecord::LexiconsShWeaverActorProfile(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::lexicons::sh::weaver::edit::cursor::Record) -> Self { - KnownRecord::LexiconsShWeaverEditCursor(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::lexicons::sh::weaver::edit::cursor::RecordData) -> Self { - KnownRecord::LexiconsShWeaverEditCursor(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::lexicons::sh::weaver::edit::diff::Record) -> Self { - KnownRecord::LexiconsShWeaverEditDiff(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::lexicons::sh::weaver::edit::diff::RecordData) -> Self { - KnownRecord::LexiconsShWeaverEditDiff(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::lexicons::sh::weaver::edit::root::Record) -> Self { - KnownRecord::LexiconsShWeaverEditRoot(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::lexicons::sh::weaver::edit::root::RecordData) -> Self { - KnownRecord::LexiconsShWeaverEditRoot(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::lexicons::sh::weaver::notebook::authors::Record) -> Self { - KnownRecord::LexiconsShWeaverNotebookAuthors(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::lexicons::sh::weaver::notebook::authors::RecordData) -> Self { - KnownRecord::LexiconsShWeaverNotebookAuthors(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::lexicons::sh::weaver::notebook::book::Record) -> Self { - KnownRecord::LexiconsShWeaverNotebookBook(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::lexicons::sh::weaver::notebook::book::RecordData) -> Self { - KnownRecord::LexiconsShWeaverNotebookBook(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::lexicons::sh::weaver::notebook::chapter::Record) -> Self { - KnownRecord::LexiconsShWeaverNotebookChapter(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::lexicons::sh::weaver::notebook::chapter::RecordData) -> Self { - KnownRecord::LexiconsShWeaverNotebookChapter(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::lexicons::sh::weaver::notebook::entry::Record) -> Self { - KnownRecord::LexiconsShWeaverNotebookEntry(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::lexicons::sh::weaver::notebook::entry::RecordData) -> Self { - KnownRecord::LexiconsShWeaverNotebookEntry(Box::new(record_data.into())) - } -} -impl From for KnownRecord { - fn from(record: crate::lexicons::sh::weaver::publish::blob::Record) -> Self { - KnownRecord::LexiconsShWeaverPublishBlob(Box::new(record)) - } -} -impl From for KnownRecord { - fn from(record_data: crate::lexicons::sh::weaver::publish::blob::RecordData) -> Self { - KnownRecord::LexiconsShWeaverPublishBlob(Box::new(record_data.into())) - } -} -impl Into for KnownRecord { - fn into(self) -> atrium_api::types::Unknown { - atrium_api::types::TryIntoUnknown::try_into_unknown(&self).unwrap() - } -} diff --git a/crates/weaver-common/src/lexicons/sh.rs b/crates/weaver-common/src/lexicons/sh.rs deleted file mode 100644 index 26eec87..0000000 --- a/crates/weaver-common/src/lexicons/sh.rs +++ /dev/null @@ -1,4 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `sh` namespace. -pub mod tangled; -pub mod weaver; diff --git a/crates/weaver-common/src/lexicons/sh/tangled.rs b/crates/weaver-common/src/lexicons/sh/tangled.rs deleted file mode 100644 index 7d5b4c8..0000000 --- a/crates/weaver-common/src/lexicons/sh/tangled.rs +++ /dev/null @@ -1,3 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `sh.tangled` namespace. -pub mod actor; diff --git a/crates/weaver-common/src/lexicons/sh/tangled/actor.rs b/crates/weaver-common/src/lexicons/sh/tangled/actor.rs deleted file mode 100644 index 64dcce4..0000000 --- a/crates/weaver-common/src/lexicons/sh/tangled/actor.rs +++ /dev/null @@ -1,9 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `sh.tangled.actor` namespace. -pub mod profile; -#[derive(Debug)] -pub struct Profile; -impl atrium_api::types::Collection for Profile { - const NSID: &'static str = "sh.tangled.actor.profile"; - type Record = profile::Record; -} diff --git a/crates/weaver-common/src/lexicons/sh/tangled/actor/profile.rs b/crates/weaver-common/src/lexicons/sh/tangled/actor/profile.rs deleted file mode 100644 index 181c781..0000000 --- a/crates/weaver-common/src/lexicons/sh/tangled/actor/profile.rs +++ /dev/null @@ -1,28 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `sh.tangled.actor.profile` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - ///Include link to this account on Bluesky. - pub bluesky: bool, - ///Free-form profile description text. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub links: core::option::Option>, - ///Free-form location text. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub location: core::option::Option, - ///Any ATURI, it is up to appviews to validate these fields. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub pinned_repositories: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub stats: core::option::Option>, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} diff --git a/crates/weaver-common/src/lexicons/sh/weaver.rs b/crates/weaver-common/src/lexicons/sh/weaver.rs deleted file mode 100644 index cc5fb7a..0000000 --- a/crates/weaver-common/src/lexicons/sh/weaver.rs +++ /dev/null @@ -1,7 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `sh.weaver` namespace. -pub mod actor; -pub mod edit; -pub mod embed; -pub mod notebook; -pub mod publish; diff --git a/crates/weaver-common/src/lexicons/sh/weaver/actor.rs b/crates/weaver-common/src/lexicons/sh/weaver/actor.rs deleted file mode 100644 index 6dd5f2a..0000000 --- a/crates/weaver-common/src/lexicons/sh/weaver/actor.rs +++ /dev/null @@ -1,11 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `sh.weaver.actor` namespace. -pub mod defs; -pub mod get_profile; -pub mod profile; -#[derive(Debug)] -pub struct Profile; -impl atrium_api::types::Collection for Profile { - const NSID: &'static str = "sh.weaver.actor.profile"; - type Record = profile::Record; -} diff --git a/crates/weaver-common/src/lexicons/sh/weaver/actor/defs.rs b/crates/weaver-common/src/lexicons/sh/weaver/actor/defs.rs deleted file mode 100644 index d95f82e..0000000 --- a/crates/weaver-common/src/lexicons/sh/weaver/actor/defs.rs +++ /dev/null @@ -1,78 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `sh.weaver.actor.defs` namespace. -///A single author in a Weaver notebook. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct AuthorData { - pub did: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub display_name: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub handle: core::option::Option, -} -pub type Author = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ProfileDataViewData { - pub inner: atrium_api::types::Union, -} -pub type ProfileDataView = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ProfileViewData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub avatar: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub created_at: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description: core::option::Option, - pub did: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub display_name: core::option::Option, - pub handle: atrium_api::types::string::Handle, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub indexed_at: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub links: core::option::Option>, - ///Free-form location text. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub location: core::option::Option, - ///Pronouns to use in user-generated content. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub pronouns: core::option::Option, -} -pub type ProfileView = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct TangledProfileViewData { - ///Include link to this account on Bluesky. - pub bluesky: bool, - ///Free-form profile description text. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description: core::option::Option, - pub did: atrium_api::types::string::Did, - pub handle: atrium_api::types::string::Handle, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub links: core::option::Option>, - ///Free-form location text. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub location: core::option::Option, - ///Any ATURI, it is up to appviews to validate these fields. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub pinned_repositories: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub stats: core::option::Option>, -} -pub type TangledProfileView = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum ProfileDataViewInnerRefs { - #[serde(rename = "sh.weaver.actor.defs#profileView")] - ShWeaverActorDefsProfileView(Box), - #[serde(rename = "app.bsky.actor.defs#profileViewDetailed")] - AppBskyActorDefsProfileViewDetailed( - Box, - ), -} diff --git a/crates/weaver-common/src/lexicons/sh/weaver/actor/get_profile.rs b/crates/weaver-common/src/lexicons/sh/weaver/actor/get_profile.rs deleted file mode 100644 index 7cadb7a..0000000 --- a/crates/weaver-common/src/lexicons/sh/weaver/actor/get_profile.rs +++ /dev/null @@ -1,19 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `sh.weaver.actor.getProfile` namespace. -pub const NSID: &str = "sh.weaver.actor.getProfile"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///Handle or DID of account to fetch profile of. - pub actor: atrium_api::types::string::AtIdentifier, -} -pub type Parameters = atrium_api::types::Object; -pub type Output = crate::sh::weaver::actor::defs::ProfileDataView; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/sh/weaver/actor/profile.rs b/crates/weaver-common/src/lexicons/sh/weaver/actor/profile.rs deleted file mode 100644 index d60979f..0000000 --- a/crates/weaver-common/src/lexicons/sh/weaver/actor/profile.rs +++ /dev/null @@ -1,40 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `sh.weaver.actor.profile` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - ///Small image to be displayed next to posts from account. AKA, 'profile picture' - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub avatar: core::option::Option, - ///Include link to this account on Bluesky. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub bluesky: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub created_at: core::option::Option, - ///Free-form profile description text. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub display_name: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub links: core::option::Option>, - ///Free-form location text. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub location: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub pinned_post: core::option::Option, - ///Pronouns to use in user-generated content. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub pronouns: core::option::Option, - ///Include link to this account on Tangled. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub tangled: core::option::Option, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} -pub type PronounsList = Vec; diff --git a/crates/weaver-common/src/lexicons/sh/weaver/edit.rs b/crates/weaver-common/src/lexicons/sh/weaver/edit.rs deleted file mode 100644 index 04c7939..0000000 --- a/crates/weaver-common/src/lexicons/sh/weaver/edit.rs +++ /dev/null @@ -1,24 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `sh.weaver.edit` namespace. -pub mod cursor; -pub mod defs; -pub mod diff; -pub mod root; -#[derive(Debug)] -pub struct Cursor; -impl atrium_api::types::Collection for Cursor { - const NSID: &'static str = "sh.weaver.edit.cursor"; - type Record = cursor::Record; -} -#[derive(Debug)] -pub struct Diff; -impl atrium_api::types::Collection for Diff { - const NSID: &'static str = "sh.weaver.edit.diff"; - type Record = diff::Record; -} -#[derive(Debug)] -pub struct Root; -impl atrium_api::types::Collection for Root { - const NSID: &'static str = "sh.weaver.edit.root"; - type Record = root::Record; -} diff --git a/crates/weaver-common/src/lexicons/sh/weaver/edit/cursor.rs b/crates/weaver-common/src/lexicons/sh/weaver/edit/cursor.rs deleted file mode 100644 index f95c410..0000000 --- a/crates/weaver-common/src/lexicons/sh/weaver/edit/cursor.rs +++ /dev/null @@ -1,61 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `sh.weaver.edit.cursor` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - pub container: ContainerId, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub id: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub side: core::option::Option, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ContainerIdData { - pub value: atrium_api::types::Union, -} -pub type ContainerId = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct CursorSideData { - ///The side of an item the cursor is on (left = -1, right = 1, middle = 0) - pub value: i64, -} -pub type CursorSide = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct IdData { - pub counter: i64, - pub peer: i64, -} -pub type Id = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct NormalContainerIdData { - pub container_type: String, - pub counter: i64, - pub peer: i64, -} -pub type NormalContainerId = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RootContainerIdData { - pub container_type: String, - pub name: String, -} -pub type RootContainerId = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum ContainerIdValueRefs { - #[serde(rename = "sh.weaver.edit.cursor#normalContainerId")] - NormalContainerId(Box), - #[serde(rename = "sh.weaver.edit.cursor#rootContainerId")] - RootContainerId(Box), -} diff --git a/crates/weaver-common/src/lexicons/sh/weaver/edit/defs.rs b/crates/weaver-common/src/lexicons/sh/weaver/edit/defs.rs deleted file mode 100644 index f691ada..0000000 --- a/crates/weaver-common/src/lexicons/sh/weaver/edit/defs.rs +++ /dev/null @@ -1,28 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `sh.weaver.edit.defs` namespace. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct DocRefData { - pub value: atrium_api::types::Union, -} -pub type DocRef = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct EntryRefData { - pub notebook: crate::com::atproto::repo::strong_ref::Main, -} -pub type EntryRef = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct NotebookRefData { - pub notebook: crate::com::atproto::repo::strong_ref::Main, -} -pub type NotebookRef = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum DocRefValueRefs { - #[serde(rename = "sh.weaver.edit.defs#notebookRef")] - NotebookRef(Box), - #[serde(rename = "sh.weaver.edit.defs#entryRef")] - EntryRef(Box), -} diff --git a/crates/weaver-common/src/lexicons/sh/weaver/edit/diff.rs b/crates/weaver-common/src/lexicons/sh/weaver/edit/diff.rs deleted file mode 100644 index 4f2f82b..0000000 --- a/crates/weaver-common/src/lexicons/sh/weaver/edit/diff.rs +++ /dev/null @@ -1,16 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `sh.weaver.edit.diff` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - pub doc: crate::sh::weaver::edit::defs::DocRef, - pub root: crate::com::atproto::repo::strong_ref::Main, - pub snapshot: atrium_api::types::BlobRef, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} diff --git a/crates/weaver-common/src/lexicons/sh/weaver/edit/root.rs b/crates/weaver-common/src/lexicons/sh/weaver/edit/root.rs deleted file mode 100644 index e9188c7..0000000 --- a/crates/weaver-common/src/lexicons/sh/weaver/edit/root.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `sh.weaver.edit.root` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - pub cid: atrium_api::types::string::Cid, - pub doc: crate::sh::weaver::edit::defs::DocRef, - pub snapshot: atrium_api::types::BlobRef, - pub uri: String, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} diff --git a/crates/weaver-common/src/lexicons/sh/weaver/embed.rs b/crates/weaver-common/src/lexicons/sh/weaver/embed.rs deleted file mode 100644 index d781acf..0000000 --- a/crates/weaver-common/src/lexicons/sh/weaver/embed.rs +++ /dev/null @@ -1,8 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `sh.weaver.embed` namespace. -pub mod defs; -pub mod external; -pub mod images; -pub mod record_with_media; -pub mod records; -pub mod video; diff --git a/crates/weaver-common/src/lexicons/sh/weaver/embed/defs.rs b/crates/weaver-common/src/lexicons/sh/weaver/embed/defs.rs deleted file mode 100644 index 4af7c83..0000000 --- a/crates/weaver-common/src/lexicons/sh/weaver/embed/defs.rs +++ /dev/null @@ -1,18 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `sh.weaver.embed.defs` namespace. -///Proportional size of the embed relative to the viewport in larger windows. The dimensions are percentage out of 100. Could we use more granularity? Maybe, but come on. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct PercentSizeData { - pub height: i64, - pub width: i64, -} -pub type PercentSize = atrium_api::types::Object; -///Pixel-exact embed size. The dimensions are logical pixels, subject to scaling, so 200px at X2 scale is 400px. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct PixelSizeData { - pub height: i64, - pub width: i64, -} -pub type PixelSize = atrium_api::types::Object; diff --git a/crates/weaver-common/src/lexicons/sh/weaver/embed/external.rs b/crates/weaver-common/src/lexicons/sh/weaver/embed/external.rs deleted file mode 100644 index ba25ba5..0000000 --- a/crates/weaver-common/src/lexicons/sh/weaver/embed/external.rs +++ /dev/null @@ -1,35 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `sh.weaver.embed.external` namespace. -//!A set of records embedded in a blog post. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MainData { - pub embeds: Vec, -} -pub type Main = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ExternalData { - pub description: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub thumb: core::option::Option, - pub title: String, - pub uri: String, -} -pub type External = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ViewData { - pub external: ViewExternal, -} -pub type View = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ViewExternalData { - pub description: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub thumb: core::option::Option, - pub title: String, - pub uri: String, -} -pub type ViewExternal = atrium_api::types::Object; diff --git a/crates/weaver-common/src/lexicons/sh/weaver/embed/images.rs b/crates/weaver-common/src/lexicons/sh/weaver/embed/images.rs deleted file mode 100644 index 1187ce1..0000000 --- a/crates/weaver-common/src/lexicons/sh/weaver/embed/images.rs +++ /dev/null @@ -1,32 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `sh.weaver.embed.images` namespace. -//!A set of images embedded in a blog post. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MainData { - pub images: Vec, -} -pub type Main = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ImageData { - ///alt text description of the image - pub alt: String, - ///Blurhash string for the image, used for low-resolution placeholders. This must be a valid Blurhash string. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub blurhash: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub dimensions: core::option::Option>, - pub image: atrium_api::types::BlobRef, -} -pub type Image = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum ImageDimensionsRefs { - #[serde(rename = "app.bsky.embed.defs#aspectRatio")] - AppBskyEmbedDefsAspectRatio(Box), - #[serde(rename = "sh.weaver.embed.defs#percentSize")] - ShWeaverEmbedDefsPercentSize(Box), - #[serde(rename = "sh.weaver.embed.defs#pixelSize")] - ShWeaverEmbedDefsPixelSize(Box), -} diff --git a/crates/weaver-common/src/lexicons/sh/weaver/embed/record_with_media.rs b/crates/weaver-common/src/lexicons/sh/weaver/embed/record_with_media.rs deleted file mode 100644 index ac0db05..0000000 --- a/crates/weaver-common/src/lexicons/sh/weaver/embed/record_with_media.rs +++ /dev/null @@ -1,61 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `sh.weaver.embed.recordWithMedia` namespace. -//!A representation of a record embedded in a Weaver record (eg, a notebook entry), alongside other compatible embeds. For example, a quote post and image, or a quote post and external URL card. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MainData { - pub media: atrium_api::types::Union, - pub record: atrium_api::types::Union, -} -pub type Main = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ViewData { - pub media: atrium_api::types::Union, - pub record: atrium_api::types::Union, -} -pub type View = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum MainMediaRefs { - #[serde(rename = "sh.weaver.embed.images")] - ShWeaverEmbedImagesMain(Box), - #[serde(rename = "sh.weaver.embed.external")] - ShWeaverEmbedExternalMain(Box), - #[serde(rename = "app.bsky.embed.images")] - AppBskyEmbedImagesMain(Box), - #[serde(rename = "app.bsky.embed.video")] - AppBskyEmbedVideoMain(Box), - #[serde(rename = "app.bsky.embed.external")] - AppBskyEmbedExternalMain(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum MainRecordRefs { - #[serde(rename = "app.bsky.embed.record")] - AppBskyEmbedRecordMain(Box), - #[serde(rename = "sh.weaver.embed.records")] - ShWeaverEmbedRecordsMain(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum ViewMediaRefs { - #[serde(rename = "sh.weaver.embed.images")] - ShWeaverEmbedImagesMain(Box), - #[serde(rename = "sh.weaver.embed.external#view")] - ShWeaverEmbedExternalView(Box), - #[serde(rename = "app.bsky.embed.images#view")] - AppBskyEmbedImagesView(Box), - #[serde(rename = "app.bsky.embed.video#view")] - AppBskyEmbedVideoView(Box), - #[serde(rename = "app.bsky.embed.external#view")] - AppBskyEmbedExternalView(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum ViewRecordRefs { - #[serde(rename = "sh.weaver.embed.records#view")] - ShWeaverEmbedRecordsView(Box), - #[serde(rename = "app.bsky.embed.record#view")] - AppBskyEmbedRecordView(Box), -} diff --git a/crates/weaver-common/src/lexicons/sh/weaver/embed/records.rs b/crates/weaver-common/src/lexicons/sh/weaver/embed/records.rs deleted file mode 100644 index ee3e6b7..0000000 --- a/crates/weaver-common/src/lexicons/sh/weaver/embed/records.rs +++ /dev/null @@ -1,110 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `sh.weaver.embed.records` namespace. -//!A set of records embedded in a blog post. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MainData { - pub records: Vec, -} -pub type Main = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ViewData { - pub record: atrium_api::types::Union, -} -pub type View = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ViewBlockedData { - pub author: crate::app::bsky::feed::defs::BlockedAuthor, - pub blocked: bool, - pub uri: String, -} -pub type ViewBlocked = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ViewDetachedData { - pub detached: bool, - pub uri: String, -} -pub type ViewDetached = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ViewNotFoundData { - pub not_found: bool, - pub uri: String, -} -pub type ViewNotFound = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ViewRecordData { - pub author: atrium_api::types::Union, - pub cid: atrium_api::types::string::Cid, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub embeds: core::option::Option< - Vec>, - >, - pub indexed_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub like_count: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub quote_count: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub reply_count: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub repost_count: core::option::Option, - pub uri: String, - ///The record data itself. - pub value: atrium_api::types::Unknown, -} -pub type ViewRecord = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum ViewRecordAuthorRefs { - #[serde(rename = "app.bsky.actor.defs#profileViewBasic")] - AppBskyActorDefsProfileViewBasic( - Box, - ), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum ViewRecordEmbedsItem { - #[serde(rename = "app.bsky.embed.images#view")] - AppBskyEmbedImagesView(Box), - #[serde(rename = "app.bsky.embed.video#view")] - AppBskyEmbedVideoView(Box), - #[serde(rename = "app.bsky.embed.external#view")] - AppBskyEmbedExternalView(Box), - #[serde(rename = "app.bsky.embed.record#view")] - AppBskyEmbedRecordView(Box), - #[serde(rename = "app.bsky.embed.recordWithMedia#view")] - AppBskyEmbedRecordWithMediaView( - Box, - ), - #[serde(rename = "sh.weaver.embed.records#view")] - ShWeaverEmbedRecordsView(Box), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum ViewRecordRefs { - #[serde(rename = "sh.weaver.embed.records#viewRecord")] - ViewRecord(Box), - #[serde(rename = "sh.weaver.embed.records#viewNotFound")] - ViewNotFound(Box), - #[serde(rename = "sh.weaver.embed.records#viewBlocked")] - ViewBlocked(Box), - #[serde(rename = "sh.weaver.embed.records#viewDetached")] - ViewDetached(Box), - #[serde(rename = "app.bsky.feed.defs#generatorView")] - AppBskyFeedDefsGeneratorView(Box), - #[serde(rename = "app.bsky.graph.defs#listView")] - AppBskyGraphDefsListView(Box), - #[serde(rename = "app.bsky.labeler.defs#labelerView")] - AppBskyLabelerDefsLabelerView(Box), - #[serde(rename = "app.bsky.graph.defs#starterPackViewBasic")] - AppBskyGraphDefsStarterPackViewBasic( - Box, - ), -} diff --git a/crates/weaver-common/src/lexicons/sh/weaver/embed/video.rs b/crates/weaver-common/src/lexicons/sh/weaver/embed/video.rs deleted file mode 100644 index 98bca2b..0000000 --- a/crates/weaver-common/src/lexicons/sh/weaver/embed/video.rs +++ /dev/null @@ -1,37 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `sh.weaver.embed.video` namespace. -//!A video embedded in a Weaver record (eg, a notebook entry). -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MainData { - ///Alt text description of the video, for accessibility. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub alt: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub aspect_ratio: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub captions: core::option::Option>, - ///The mp4 video file. May be up to 100mb, formerly limited to 50mb. - pub video: atrium_api::types::BlobRef, -} -pub type Main = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct CaptionData { - pub file: atrium_api::types::BlobRef, - pub lang: atrium_api::types::string::Language, -} -pub type Caption = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ViewData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub alt: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub aspect_ratio: core::option::Option, - pub cid: atrium_api::types::string::Cid, - pub playlist: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub thumbnail: core::option::Option, -} -pub type View = atrium_api::types::Object; diff --git a/crates/weaver-common/src/lexicons/sh/weaver/notebook.rs b/crates/weaver-common/src/lexicons/sh/weaver/notebook.rs deleted file mode 100644 index 7a5632c..0000000 --- a/crates/weaver-common/src/lexicons/sh/weaver/notebook.rs +++ /dev/null @@ -1,31 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `sh.weaver.notebook` namespace. -pub mod authors; -pub mod book; -pub mod chapter; -pub mod defs; -pub mod entry; -#[derive(Debug)] -pub struct Authors; -impl atrium_api::types::Collection for Authors { - const NSID: &'static str = "sh.weaver.notebook.authors"; - type Record = authors::Record; -} -#[derive(Debug)] -pub struct Book; -impl atrium_api::types::Collection for Book { - const NSID: &'static str = "sh.weaver.notebook.book"; - type Record = book::Record; -} -#[derive(Debug)] -pub struct Chapter; -impl atrium_api::types::Collection for Chapter { - const NSID: &'static str = "sh.weaver.notebook.chapter"; - type Record = chapter::Record; -} -#[derive(Debug)] -pub struct Entry; -impl atrium_api::types::Collection for Entry { - const NSID: &'static str = "sh.weaver.notebook.entry"; - type Record = entry::Record; -} diff --git a/crates/weaver-common/src/lexicons/sh/weaver/notebook/authors.rs b/crates/weaver-common/src/lexicons/sh/weaver/notebook/authors.rs deleted file mode 100644 index 94a0a5e..0000000 --- a/crates/weaver-common/src/lexicons/sh/weaver/notebook/authors.rs +++ /dev/null @@ -1,38 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `sh.weaver.notebook.authors` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - pub author_list: Vec, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub created_at: core::option::Option, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} -///A single author in a Weaver notebook. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct AuthorListItemData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub index: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub profile: core::option::Option< - atrium_api::types::Union, - >, -} -pub type AuthorListItem = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum AuthorListItemProfileRefs { - #[serde(rename = "app.bsky.actor.defs#profileViewBasic")] - AppBskyActorDefsProfileViewBasic( - Box, - ), - #[serde(rename = "sh.weaver.actor.defs#profileView")] - ShWeaverActorDefsProfileView(Box), -} diff --git a/crates/weaver-common/src/lexicons/sh/weaver/notebook/book.rs b/crates/weaver-common/src/lexicons/sh/weaver/notebook/book.rs deleted file mode 100644 index 355369c..0000000 --- a/crates/weaver-common/src/lexicons/sh/weaver/notebook/book.rs +++ /dev/null @@ -1,22 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `sh.weaver.notebook.book` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - pub authors: Vec, - ///Client-declared timestamp when this was originally created. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub created_at: core::option::Option, - pub entry_list: Vec, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub tags: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub title: core::option::Option, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} diff --git a/crates/weaver-common/src/lexicons/sh/weaver/notebook/chapter.rs b/crates/weaver-common/src/lexicons/sh/weaver/notebook/chapter.rs deleted file mode 100644 index 15add65..0000000 --- a/crates/weaver-common/src/lexicons/sh/weaver/notebook/chapter.rs +++ /dev/null @@ -1,24 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `sh.weaver.notebook.chapter` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - pub authors: Vec, - ///Client-declared timestamp when this was originally created. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub created_at: core::option::Option, - pub entry_list: Vec, - ///The notebook this chapter belongs to. - pub notebook: crate::com::atproto::repo::strong_ref::Main, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub tags: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub title: core::option::Option, -} -pub type Record = atrium_api::types::Object; -impl From for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} diff --git a/crates/weaver-common/src/lexicons/sh/weaver/notebook/defs.rs b/crates/weaver-common/src/lexicons/sh/weaver/notebook/defs.rs deleted file mode 100644 index 827a8aa..0000000 --- a/crates/weaver-common/src/lexicons/sh/weaver/notebook/defs.rs +++ /dev/null @@ -1,86 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `sh.weaver.notebook.defs` namespace. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct AuthorListViewData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cid: core::option::Option, - pub index: i64, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub record: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub uri: core::option::Option, -} -pub type AuthorListView = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct BookEntryRefData { - pub entry: EntryView, -} -pub type BookEntryRef = atrium_api::types::Object; -///An ordered entry in a Weaver notebook. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct BookEntryViewData { - pub entry: EntryView, - pub index: i64, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub next: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub prev: core::option::Option, -} -pub type BookEntryView = atrium_api::types::Object; -///The format of the content. This is used to determine how to render the content. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ContentFormatData { - ///The format of the content. This is used to determine how to render the content. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub markdown: core::option::Option, -} -pub type ContentFormat = atrium_api::types::Object; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct EntryViewData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub authors: core::option::Option, - pub cid: atrium_api::types::string::Cid, - pub indexed_at: atrium_api::types::string::Datetime, - pub record: atrium_api::types::Unknown, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub rendered_view: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub tags: core::option::Option, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub title: core::option::Option, - pub uri: String, -} -pub type EntryView = atrium_api::types::Object<EntryViewData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct NotebookViewData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub authors: core::option::Option<AuthorListView>, - pub cid: atrium_api::types::string::Cid, - pub indexed_at: atrium_api::types::string::Datetime, - pub record: atrium_api::types::Unknown, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub tags: core::option::Option<Tags>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub title: core::option::Option<Title>, - pub uri: String, -} -pub type NotebookView = atrium_api::types::Object<NotebookViewData>; -///View of a rendered and cached notebook entry -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RenderedViewData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub css: core::option::Option<atrium_api::types::BlobRef>, - pub html: atrium_api::types::BlobRef, -} -pub type RenderedView = atrium_api::types::Object<RenderedViewData>; -///An array of tags associated with the notebook entry. Tags can help categorize and organize entries. -pub type Tags = Vec<String>; -///The title of the notebook entry. -pub type Title = String; diff --git a/crates/weaver-common/src/lexicons/sh/weaver/notebook/entry.rs b/crates/weaver-common/src/lexicons/sh/weaver/notebook/entry.rs deleted file mode 100644 index f24ffa9..0000000 --- a/crates/weaver-common/src/lexicons/sh/weaver/notebook/entry.rs +++ /dev/null @@ -1,23 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `sh.weaver.notebook.entry` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - ///The content of the notebook entry. This should be some flavor of Markdown. - pub content: String, - ///Client-declared timestamp when this was originally created. - pub created_at: atrium_api::types::string::Datetime, - ///The set of images, if any, embedded in the notebook entry. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub images: core::option::Option<crate::sh::weaver::embed::images::Main>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub tags: core::option::Option<crate::sh::weaver::notebook::defs::Tags>, - pub title: crate::sh::weaver::notebook::defs::Title, -} -pub type Record = atrium_api::types::Object<RecordData>; -impl From<atrium_api::types::Unknown> for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} diff --git a/crates/weaver-common/src/lexicons/sh/weaver/publish.rs b/crates/weaver-common/src/lexicons/sh/weaver/publish.rs deleted file mode 100644 index 5bd2f08..0000000 --- a/crates/weaver-common/src/lexicons/sh/weaver/publish.rs +++ /dev/null @@ -1,10 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `sh.weaver.publish` namespace. -pub mod blob; -pub mod defs; -#[derive(Debug)] -pub struct Blob; -impl atrium_api::types::Collection for Blob { - const NSID: &'static str = "sh.weaver.publish.blob"; - type Record = blob::Record; -} diff --git a/crates/weaver-common/src/lexicons/sh/weaver/publish/blob.rs b/crates/weaver-common/src/lexicons/sh/weaver/publish/blob.rs deleted file mode 100644 index e4e3940..0000000 --- a/crates/weaver-common/src/lexicons/sh/weaver/publish/blob.rs +++ /dev/null @@ -1,15 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `sh.weaver.publish.blob` namespace. -use atrium_api::types::TryFromUnknown; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordData { - ///Reference to the uploaded file - pub upload: atrium_api::types::BlobRef, -} -pub type Record = atrium_api::types::Object<RecordData>; -impl From<atrium_api::types::Unknown> for RecordData { - fn from(value: atrium_api::types::Unknown) -> Self { - Self::try_from_unknown(value).unwrap() - } -} diff --git a/crates/weaver-common/src/lexicons/sh/weaver/publish/defs.rs b/crates/weaver-common/src/lexicons/sh/weaver/publish/defs.rs deleted file mode 100644 index fece57b..0000000 --- a/crates/weaver-common/src/lexicons/sh/weaver/publish/defs.rs +++ /dev/null @@ -1,2 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `sh.weaver.publish.defs` namespace. diff --git a/crates/weaver-common/src/lexicons/tools.rs b/crates/weaver-common/src/lexicons/tools.rs deleted file mode 100644 index fa1e1fc..0000000 --- a/crates/weaver-common/src/lexicons/tools.rs +++ /dev/null @@ -1,3 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools` namespace. -pub mod ozone; diff --git a/crates/weaver-common/src/lexicons/tools/ozone.rs b/crates/weaver-common/src/lexicons/tools/ozone.rs deleted file mode 100644 index ded13c1..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone.rs +++ /dev/null @@ -1,11 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone` namespace. -pub mod communication; -pub mod hosting; -pub mod moderation; -pub mod server; -pub mod set; -pub mod setting; -pub mod signature; -pub mod team; -pub mod verification; diff --git a/crates/weaver-common/src/lexicons/tools/ozone/communication.rs b/crates/weaver-common/src/lexicons/tools/ozone/communication.rs deleted file mode 100644 index e41a76b..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/communication.rs +++ /dev/null @@ -1,7 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.communication` namespace. -pub mod create_template; -pub mod defs; -pub mod delete_template; -pub mod list_templates; -pub mod update_template; diff --git a/crates/weaver-common/src/lexicons/tools/ozone/communication/create_template.rs b/crates/weaver-common/src/lexicons/tools/ozone/communication/create_template.rs deleted file mode 100644 index 4ff278b..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/communication/create_template.rs +++ /dev/null @@ -1,39 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.communication.createTemplate` namespace. -pub const NSID: &str = "tools.ozone.communication.createTemplate"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///Content of the template, markdown supported, can contain variable placeholders. - pub content_markdown: String, - ///DID of the user who is creating the template. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub created_by: core::option::Option<atrium_api::types::string::Did>, - ///Message language. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub lang: core::option::Option<atrium_api::types::string::Language>, - ///Name of the template. - pub name: String, - ///Subject of the message, used in emails. - pub subject: String, -} -pub type Input = atrium_api::types::Object<InputData>; -pub type Output = crate::tools::ozone::communication::defs::TemplateView; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - DuplicateTemplateName(Option<String>), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::DuplicateTemplateName(msg) => { - write!(_f, "DuplicateTemplateName")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/tools/ozone/communication/defs.rs b/crates/weaver-common/src/lexicons/tools/ozone/communication/defs.rs deleted file mode 100644 index 976fb91..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/communication/defs.rs +++ /dev/null @@ -1,23 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.communication.defs` namespace. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct TemplateViewData { - ///Subject of the message, used in emails. - pub content_markdown: String, - pub created_at: atrium_api::types::string::Datetime, - pub disabled: bool, - pub id: String, - ///Message language. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub lang: core::option::Option<atrium_api::types::string::Language>, - ///DID of the user who last updated the template. - pub last_updated_by: atrium_api::types::string::Did, - ///Name of the template. - pub name: String, - ///Content of the template, can contain markdown and variable placeholders. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub subject: core::option::Option<String>, - pub updated_at: atrium_api::types::string::Datetime, -} -pub type TemplateView = atrium_api::types::Object<TemplateViewData>; diff --git a/crates/weaver-common/src/lexicons/tools/ozone/communication/delete_template.rs b/crates/weaver-common/src/lexicons/tools/ozone/communication/delete_template.rs deleted file mode 100644 index 60d6b48..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/communication/delete_template.rs +++ /dev/null @@ -1,17 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.communication.deleteTemplate` namespace. -pub const NSID: &str = "tools.ozone.communication.deleteTemplate"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub id: String, -} -pub type Input = atrium_api::types::Object<InputData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/tools/ozone/communication/list_templates.rs b/crates/weaver-common/src/lexicons/tools/ozone/communication/list_templates.rs deleted file mode 100644 index 8ef3239..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/communication/list_templates.rs +++ /dev/null @@ -1,19 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.communication.listTemplates` namespace. -pub const NSID: &str = "tools.ozone.communication.listTemplates"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub communication_templates: Vec< - crate::tools::ozone::communication::defs::TemplateView, - >, -} -pub type Output = atrium_api::types::Object<OutputData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/tools/ozone/communication/update_template.rs b/crates/weaver-common/src/lexicons/tools/ozone/communication/update_template.rs deleted file mode 100644 index 02c46a7..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/communication/update_template.rs +++ /dev/null @@ -1,46 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.communication.updateTemplate` namespace. -pub const NSID: &str = "tools.ozone.communication.updateTemplate"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///Content of the template, markdown supported, can contain variable placeholders. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub content_markdown: core::option::Option<String>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub disabled: core::option::Option<bool>, - ///ID of the template to be updated. - pub id: String, - ///Message language. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub lang: core::option::Option<atrium_api::types::string::Language>, - ///Name of the template. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub name: core::option::Option<String>, - ///Subject of the message, used in emails. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub subject: core::option::Option<String>, - ///DID of the user who is updating the template. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub updated_by: core::option::Option<atrium_api::types::string::Did>, -} -pub type Input = atrium_api::types::Object<InputData>; -pub type Output = crate::tools::ozone::communication::defs::TemplateView; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - DuplicateTemplateName(Option<String>), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::DuplicateTemplateName(msg) => { - write!(_f, "DuplicateTemplateName")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/tools/ozone/hosting.rs b/crates/weaver-common/src/lexicons/tools/ozone/hosting.rs deleted file mode 100644 index db5e4f8..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/hosting.rs +++ /dev/null @@ -1,3 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.hosting` namespace. -pub mod get_account_history; diff --git a/crates/weaver-common/src/lexicons/tools/ozone/hosting/get_account_history.rs b/crates/weaver-common/src/lexicons/tools/ozone/hosting/get_account_history.rs deleted file mode 100644 index 5f8d0f1..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/hosting/get_account_history.rs +++ /dev/null @@ -1,84 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.hosting.getAccountHistory` namespace. -pub const NSID: &str = "tools.ozone.hosting.getAccountHistory"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option<String>, - pub did: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub events: core::option::Option<Vec<String>>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option<atrium_api::types::LimitedNonZeroU8<100u8>>, -} -pub type Parameters = atrium_api::types::Object<ParametersData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option<String>, - pub events: Vec<Event>, -} -pub type Output = atrium_api::types::Object<OutputData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct AccountCreatedData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub email: core::option::Option<String>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub handle: core::option::Option<atrium_api::types::string::Handle>, -} -pub type AccountCreated = atrium_api::types::Object<AccountCreatedData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct EmailConfirmedData { - pub email: String, -} -pub type EmailConfirmed = atrium_api::types::Object<EmailConfirmedData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct EmailUpdatedData { - pub email: String, -} -pub type EmailUpdated = atrium_api::types::Object<EmailUpdatedData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct EventData { - pub created_at: atrium_api::types::string::Datetime, - pub created_by: String, - pub details: atrium_api::types::Union<EventDetailsRefs>, -} -pub type Event = atrium_api::types::Object<EventData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct HandleUpdatedData { - pub handle: atrium_api::types::string::Handle, -} -pub type HandleUpdated = atrium_api::types::Object<HandleUpdatedData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct PasswordUpdatedData {} -pub type PasswordUpdated = atrium_api::types::Object<PasswordUpdatedData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum EventDetailsRefs { - #[serde(rename = "tools.ozone.hosting.getAccountHistory#accountCreated")] - AccountCreated(Box<AccountCreated>), - #[serde(rename = "tools.ozone.hosting.getAccountHistory#emailUpdated")] - EmailUpdated(Box<EmailUpdated>), - #[serde(rename = "tools.ozone.hosting.getAccountHistory#emailConfirmed")] - EmailConfirmed(Box<EmailConfirmed>), - #[serde(rename = "tools.ozone.hosting.getAccountHistory#passwordUpdated")] - PasswordUpdated(Box<PasswordUpdated>), - #[serde(rename = "tools.ozone.hosting.getAccountHistory#handleUpdated")] - HandleUpdated(Box<HandleUpdated>), -} diff --git a/crates/weaver-common/src/lexicons/tools/ozone/moderation.rs b/crates/weaver-common/src/lexicons/tools/ozone/moderation.rs deleted file mode 100644 index 17adcc0..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/moderation.rs +++ /dev/null @@ -1,14 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.moderation` namespace. -pub mod defs; -pub mod emit_event; -pub mod get_event; -pub mod get_record; -pub mod get_records; -pub mod get_repo; -pub mod get_reporter_stats; -pub mod get_repos; -pub mod get_subjects; -pub mod query_events; -pub mod query_statuses; -pub mod search_repos; diff --git a/crates/weaver-common/src/lexicons/tools/ozone/moderation/defs.rs b/crates/weaver-common/src/lexicons/tools/ozone/moderation/defs.rs deleted file mode 100644 index b4da66f..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/moderation/defs.rs +++ /dev/null @@ -1,690 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.moderation.defs` namespace. -///Logs account status related events on a repo subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct AccountEventData { - ///Indicates that the account has a repository which can be fetched from the host that emitted this event. - pub active: bool, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option<String>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub status: core::option::Option<String>, - pub timestamp: atrium_api::types::string::Datetime, -} -pub type AccountEvent = atrium_api::types::Object<AccountEventData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct AccountHostingData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub created_at: core::option::Option<atrium_api::types::string::Datetime>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub deactivated_at: core::option::Option<atrium_api::types::string::Datetime>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub deleted_at: core::option::Option<atrium_api::types::string::Datetime>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub reactivated_at: core::option::Option<atrium_api::types::string::Datetime>, - pub status: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub updated_at: core::option::Option<atrium_api::types::string::Datetime>, -} -pub type AccountHosting = atrium_api::types::Object<AccountHostingData>; -///Statistics about a particular account subject -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct AccountStatsData { - ///Total number of appeals against a moderation action on the account - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub appeal_count: core::option::Option<i64>, - ///Number of times the account was escalated - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub escalate_count: core::option::Option<i64>, - ///Total number of reports on the account - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub report_count: core::option::Option<i64>, - ///Number of times the account was suspended - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub suspend_count: core::option::Option<i64>, - ///Number of times the account was taken down - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub takedown_count: core::option::Option<i64>, -} -pub type AccountStats = atrium_api::types::Object<AccountStatsData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct BlobViewData { - pub cid: atrium_api::types::string::Cid, - pub created_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub details: core::option::Option<atrium_api::types::Union<BlobViewDetailsRefs>>, - pub mime_type: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub moderation: core::option::Option<Moderation>, - pub size: i64, -} -pub type BlobView = atrium_api::types::Object<BlobViewData>; -///Logs identity related events on a repo subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct IdentityEventData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option<String>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub handle: core::option::Option<atrium_api::types::string::Handle>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub pds_host: core::option::Option<String>, - pub timestamp: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub tombstone: core::option::Option<bool>, -} -pub type IdentityEvent = atrium_api::types::Object<IdentityEventData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ImageDetailsData { - pub height: i64, - pub width: i64, -} -pub type ImageDetails = atrium_api::types::Object<ImageDetailsData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ModEventAcknowledgeData { - ///If true, all other reports on content authored by this account will be resolved (acknowledged). - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub acknowledge_account_subjects: core::option::Option<bool>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option<String>, -} -pub type ModEventAcknowledge = atrium_api::types::Object<ModEventAcknowledgeData>; -///Add a comment to a subject. An empty comment will clear any previously set sticky comment. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ModEventCommentData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option<String>, - ///Make the comment persistent on the subject - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub sticky: core::option::Option<bool>, -} -pub type ModEventComment = atrium_api::types::Object<ModEventCommentData>; -///Divert a record's blobs to a 3rd party service for further scanning/tagging -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ModEventDivertData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option<String>, -} -pub type ModEventDivert = atrium_api::types::Object<ModEventDivertData>; -///Keep a log of outgoing email to a user -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ModEventEmailData { - ///Additional comment about the outgoing comm. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option<String>, - ///The content of the email sent to the user. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub content: core::option::Option<String>, - ///The subject line of the email sent to the user. - pub subject_line: String, -} -pub type ModEventEmail = atrium_api::types::Object<ModEventEmailData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ModEventEscalateData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option<String>, -} -pub type ModEventEscalate = atrium_api::types::Object<ModEventEscalateData>; -///Apply/Negate labels on a subject -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ModEventLabelData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option<String>, - pub create_label_vals: Vec<String>, - ///Indicates how long the label will remain on the subject. Only applies on labels that are being added. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub duration_in_hours: core::option::Option<i64>, - pub negate_label_vals: Vec<String>, -} -pub type ModEventLabel = atrium_api::types::Object<ModEventLabelData>; -///Mute incoming reports on a subject -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ModEventMuteData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option<String>, - ///Indicates how long the subject should remain muted. - pub duration_in_hours: i64, -} -pub type ModEventMute = atrium_api::types::Object<ModEventMuteData>; -///Mute incoming reports from an account -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ModEventMuteReporterData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option<String>, - ///Indicates how long the account should remain muted. Falsy value here means a permanent mute. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub duration_in_hours: core::option::Option<i64>, -} -pub type ModEventMuteReporter = atrium_api::types::Object<ModEventMuteReporterData>; -///Set priority score of the subject. Higher score means higher priority. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ModEventPriorityScoreData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option<String>, - pub score: atrium_api::types::LimitedU8<100u8>, -} -pub type ModEventPriorityScore = atrium_api::types::Object<ModEventPriorityScoreData>; -///Report a subject -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ModEventReportData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option<String>, - ///Set to true if the reporter was muted from reporting at the time of the event. These reports won't impact the reviewState of the subject. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub is_reporter_muted: core::option::Option<bool>, - pub report_type: crate::com::atproto::moderation::defs::ReasonType, -} -pub type ModEventReport = atrium_api::types::Object<ModEventReportData>; -///Resolve appeal on a subject -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ModEventResolveAppealData { - ///Describe resolution. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option<String>, -} -pub type ModEventResolveAppeal = atrium_api::types::Object<ModEventResolveAppealData>; -///Revert take down action on a subject -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ModEventReverseTakedownData { - ///Describe reasoning behind the reversal. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option<String>, -} -pub type ModEventReverseTakedown = atrium_api::types::Object< - ModEventReverseTakedownData, ->; -///Add/Remove a tag on a subject -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ModEventTagData { - ///Tags to be added to the subject. If already exists, won't be duplicated. - pub add: Vec<String>, - ///Additional comment about added/removed tags. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option<String>, - ///Tags to be removed to the subject. Ignores a tag If it doesn't exist, won't be duplicated. - pub remove: Vec<String>, -} -pub type ModEventTag = atrium_api::types::Object<ModEventTagData>; -///Take down a subject permanently or temporarily -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ModEventTakedownData { - ///If true, all other reports on content authored by this account will be resolved (acknowledged). - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub acknowledge_account_subjects: core::option::Option<bool>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option<String>, - ///Indicates how long the takedown should be in effect before automatically expiring. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub duration_in_hours: core::option::Option<i64>, - ///Names/Keywords of the policies that drove the decision. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub policies: core::option::Option<Vec<String>>, -} -pub type ModEventTakedown = atrium_api::types::Object<ModEventTakedownData>; -///Unmute action on a subject -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ModEventUnmuteData { - ///Describe reasoning behind the reversal. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option<String>, -} -pub type ModEventUnmute = atrium_api::types::Object<ModEventUnmuteData>; -///Unmute incoming reports from an account -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ModEventUnmuteReporterData { - ///Describe reasoning behind the reversal. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option<String>, -} -pub type ModEventUnmuteReporter = atrium_api::types::Object<ModEventUnmuteReporterData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ModEventViewData { - pub created_at: atrium_api::types::string::Datetime, - pub created_by: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub creator_handle: core::option::Option<String>, - pub event: atrium_api::types::Union<ModEventViewEventRefs>, - pub id: i64, - pub subject: atrium_api::types::Union<ModEventViewSubjectRefs>, - pub subject_blob_cids: Vec<String>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub subject_handle: core::option::Option<String>, -} -pub type ModEventView = atrium_api::types::Object<ModEventViewData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ModEventViewDetailData { - pub created_at: atrium_api::types::string::Datetime, - pub created_by: atrium_api::types::string::Did, - pub event: atrium_api::types::Union<ModEventViewDetailEventRefs>, - pub id: i64, - pub subject: atrium_api::types::Union<ModEventViewDetailSubjectRefs>, - pub subject_blobs: Vec<BlobView>, -} -pub type ModEventViewDetail = atrium_api::types::Object<ModEventViewDetailData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ModerationData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub subject_status: core::option::Option<SubjectStatusView>, -} -pub type Moderation = atrium_api::types::Object<ModerationData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ModerationDetailData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub subject_status: core::option::Option<SubjectStatusView>, -} -pub type ModerationDetail = atrium_api::types::Object<ModerationDetailData>; -///Logs lifecycle event on a record subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordEventData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cid: core::option::Option<atrium_api::types::string::Cid>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option<String>, - pub op: String, - pub timestamp: atrium_api::types::string::Datetime, -} -pub type RecordEvent = atrium_api::types::Object<RecordEventData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordHostingData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub created_at: core::option::Option<atrium_api::types::string::Datetime>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub deleted_at: core::option::Option<atrium_api::types::string::Datetime>, - pub status: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub updated_at: core::option::Option<atrium_api::types::string::Datetime>, -} -pub type RecordHosting = atrium_api::types::Object<RecordHostingData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordViewData { - pub blob_cids: Vec<atrium_api::types::string::Cid>, - pub cid: atrium_api::types::string::Cid, - pub indexed_at: atrium_api::types::string::Datetime, - pub moderation: Moderation, - pub repo: RepoView, - pub uri: String, - pub value: atrium_api::types::Unknown, -} -pub type RecordView = atrium_api::types::Object<RecordViewData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordViewDetailData { - pub blobs: Vec<BlobView>, - pub cid: atrium_api::types::string::Cid, - pub indexed_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option<Vec<crate::com::atproto::label::defs::Label>>, - pub moderation: ModerationDetail, - pub repo: RepoView, - pub uri: String, - pub value: atrium_api::types::Unknown, -} -pub type RecordViewDetail = atrium_api::types::Object<RecordViewDetailData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordViewNotFoundData { - pub uri: String, -} -pub type RecordViewNotFound = atrium_api::types::Object<RecordViewNotFoundData>; -///Statistics about a set of record subject items -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RecordsStatsData { - ///Number of items that were appealed at least once - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub appealed_count: core::option::Option<i64>, - ///Number of items that were escalated at least once - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub escalated_count: core::option::Option<i64>, - ///Number of item currently in "reviewOpen" or "reviewEscalated" state - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub pending_count: core::option::Option<i64>, - ///Number of item currently in "reviewNone" or "reviewClosed" state - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub processed_count: core::option::Option<i64>, - ///Number of items that were reported at least once - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub reported_count: core::option::Option<i64>, - ///Total number of item in the set - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub subject_count: core::option::Option<i64>, - ///Number of item currently taken down - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub takendown_count: core::option::Option<i64>, - ///Cumulative sum of the number of reports on the items in the set - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub total_reports: core::option::Option<i64>, -} -pub type RecordsStats = atrium_api::types::Object<RecordsStatsData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RepoViewData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub deactivated_at: core::option::Option<atrium_api::types::string::Datetime>, - pub did: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub email: core::option::Option<String>, - pub handle: atrium_api::types::string::Handle, - pub indexed_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub invite_note: core::option::Option<String>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub invited_by: core::option::Option<crate::com::atproto::server::defs::InviteCode>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub invites_disabled: core::option::Option<bool>, - pub moderation: Moderation, - pub related_records: Vec<atrium_api::types::Unknown>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub threat_signatures: core::option::Option< - Vec<crate::com::atproto::admin::defs::ThreatSignature>, - >, -} -pub type RepoView = atrium_api::types::Object<RepoViewData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RepoViewDetailData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub deactivated_at: core::option::Option<atrium_api::types::string::Datetime>, - pub did: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub email: core::option::Option<String>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub email_confirmed_at: core::option::Option<atrium_api::types::string::Datetime>, - pub handle: atrium_api::types::string::Handle, - pub indexed_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub invite_note: core::option::Option<String>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub invited_by: core::option::Option<crate::com::atproto::server::defs::InviteCode>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub invites: core::option::Option< - Vec<crate::com::atproto::server::defs::InviteCode>, - >, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub invites_disabled: core::option::Option<bool>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub labels: core::option::Option<Vec<crate::com::atproto::label::defs::Label>>, - pub moderation: ModerationDetail, - pub related_records: Vec<atrium_api::types::Unknown>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub threat_signatures: core::option::Option< - Vec<crate::com::atproto::admin::defs::ThreatSignature>, - >, -} -pub type RepoViewDetail = atrium_api::types::Object<RepoViewDetailData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RepoViewNotFoundData { - pub did: atrium_api::types::string::Did, -} -pub type RepoViewNotFound = atrium_api::types::Object<RepoViewNotFoundData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ReporterStatsData { - ///The total number of reports made by the user on accounts. - pub account_report_count: i64, - pub did: atrium_api::types::string::Did, - ///The total number of accounts labeled as a result of the user's reports. - pub labeled_account_count: i64, - ///The total number of records labeled as a result of the user's reports. - pub labeled_record_count: i64, - ///The total number of reports made by the user on records. - pub record_report_count: i64, - ///The total number of accounts reported by the user. - pub reported_account_count: i64, - ///The total number of records reported by the user. - pub reported_record_count: i64, - ///The total number of accounts taken down as a result of the user's reports. - pub takendown_account_count: i64, - ///The total number of records taken down as a result of the user's reports. - pub takendown_record_count: i64, -} -pub type ReporterStats = atrium_api::types::Object<ReporterStatsData>; -///Moderator review status of a subject: Closed. Indicates that the subject was already reviewed and resolved by a moderator -pub const REVIEW_CLOSED: &str = "tools.ozone.moderation.defs#reviewClosed"; -///Moderator review status of a subject: Escalated. Indicates that the subject was escalated for review by a moderator -pub const REVIEW_ESCALATED: &str = "tools.ozone.moderation.defs#reviewEscalated"; -///Moderator review status of a subject: Unnecessary. Indicates that the subject does not need a review at the moment but there is probably some moderation related metadata available for it -pub const REVIEW_NONE: &str = "tools.ozone.moderation.defs#reviewNone"; -///Moderator review status of a subject: Open. Indicates that the subject needs to be reviewed by a moderator -pub const REVIEW_OPEN: &str = "tools.ozone.moderation.defs#reviewOpen"; -pub type SubjectReviewState = String; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct SubjectStatusViewData { - ///Statistics related to the account subject - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub account_stats: core::option::Option<AccountStats>, - ///True indicates that the a previously taken moderator action was appealed against, by the author of the content. False indicates last appeal was resolved by moderators. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub appealed: core::option::Option<bool>, - ///Sticky comment on the subject. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option<String>, - ///Timestamp referencing the first moderation status impacting event was emitted on the subject - pub created_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub hosting: core::option::Option< - atrium_api::types::Union<SubjectStatusViewHostingRefs>, - >, - pub id: i64, - ///Timestamp referencing when the author of the subject appealed a moderation action - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub last_appealed_at: core::option::Option<atrium_api::types::string::Datetime>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub last_reported_at: core::option::Option<atrium_api::types::string::Datetime>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub last_reviewed_at: core::option::Option<atrium_api::types::string::Datetime>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub last_reviewed_by: core::option::Option<atrium_api::types::string::Did>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub mute_reporting_until: core::option::Option<atrium_api::types::string::Datetime>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub mute_until: core::option::Option<atrium_api::types::string::Datetime>, - ///Numeric value representing the level of priority. Higher score means higher priority. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub priority_score: core::option::Option<atrium_api::types::LimitedU8<100u8>>, - ///Statistics related to the record subjects authored by the subject's account - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub records_stats: core::option::Option<RecordsStats>, - pub review_state: SubjectReviewState, - pub subject: atrium_api::types::Union<SubjectStatusViewSubjectRefs>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub subject_blob_cids: core::option::Option<Vec<atrium_api::types::string::Cid>>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub subject_repo_handle: core::option::Option<String>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub suspend_until: core::option::Option<atrium_api::types::string::Datetime>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub tags: core::option::Option<Vec<String>>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub takendown: core::option::Option<bool>, - ///Timestamp referencing when the last update was made to the moderation status of the subject - pub updated_at: atrium_api::types::string::Datetime, -} -pub type SubjectStatusView = atrium_api::types::Object<SubjectStatusViewData>; -///Detailed view of a subject. For record subjects, the author's repo and profile will be returned. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct SubjectViewData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub profile: core::option::Option<atrium_api::types::Union<SubjectViewProfileRefs>>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub record: core::option::Option<RecordViewDetail>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub repo: core::option::Option<RepoViewDetail>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub status: core::option::Option<SubjectStatusView>, - pub subject: String, - pub r#type: crate::com::atproto::moderation::defs::SubjectType, -} -pub type SubjectView = atrium_api::types::Object<SubjectViewData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct VideoDetailsData { - pub height: i64, - pub length: i64, - pub width: i64, -} -pub type VideoDetails = atrium_api::types::Object<VideoDetailsData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum BlobViewDetailsRefs { - #[serde(rename = "tools.ozone.moderation.defs#imageDetails")] - ImageDetails(Box<ImageDetails>), - #[serde(rename = "tools.ozone.moderation.defs#videoDetails")] - VideoDetails(Box<VideoDetails>), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum ModEventViewDetailEventRefs { - #[serde(rename = "tools.ozone.moderation.defs#modEventTakedown")] - ModEventTakedown(Box<ModEventTakedown>), - #[serde(rename = "tools.ozone.moderation.defs#modEventReverseTakedown")] - ModEventReverseTakedown(Box<ModEventReverseTakedown>), - #[serde(rename = "tools.ozone.moderation.defs#modEventComment")] - ModEventComment(Box<ModEventComment>), - #[serde(rename = "tools.ozone.moderation.defs#modEventReport")] - ModEventReport(Box<ModEventReport>), - #[serde(rename = "tools.ozone.moderation.defs#modEventLabel")] - ModEventLabel(Box<ModEventLabel>), - #[serde(rename = "tools.ozone.moderation.defs#modEventAcknowledge")] - ModEventAcknowledge(Box<ModEventAcknowledge>), - #[serde(rename = "tools.ozone.moderation.defs#modEventEscalate")] - ModEventEscalate(Box<ModEventEscalate>), - #[serde(rename = "tools.ozone.moderation.defs#modEventMute")] - ModEventMute(Box<ModEventMute>), - #[serde(rename = "tools.ozone.moderation.defs#modEventUnmute")] - ModEventUnmute(Box<ModEventUnmute>), - #[serde(rename = "tools.ozone.moderation.defs#modEventMuteReporter")] - ModEventMuteReporter(Box<ModEventMuteReporter>), - #[serde(rename = "tools.ozone.moderation.defs#modEventUnmuteReporter")] - ModEventUnmuteReporter(Box<ModEventUnmuteReporter>), - #[serde(rename = "tools.ozone.moderation.defs#modEventEmail")] - ModEventEmail(Box<ModEventEmail>), - #[serde(rename = "tools.ozone.moderation.defs#modEventResolveAppeal")] - ModEventResolveAppeal(Box<ModEventResolveAppeal>), - #[serde(rename = "tools.ozone.moderation.defs#modEventDivert")] - ModEventDivert(Box<ModEventDivert>), - #[serde(rename = "tools.ozone.moderation.defs#modEventTag")] - ModEventTag(Box<ModEventTag>), - #[serde(rename = "tools.ozone.moderation.defs#accountEvent")] - AccountEvent(Box<AccountEvent>), - #[serde(rename = "tools.ozone.moderation.defs#identityEvent")] - IdentityEvent(Box<IdentityEvent>), - #[serde(rename = "tools.ozone.moderation.defs#recordEvent")] - RecordEvent(Box<RecordEvent>), - #[serde(rename = "tools.ozone.moderation.defs#modEventPriorityScore")] - ModEventPriorityScore(Box<ModEventPriorityScore>), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum ModEventViewDetailSubjectRefs { - #[serde(rename = "tools.ozone.moderation.defs#repoView")] - RepoView(Box<RepoView>), - #[serde(rename = "tools.ozone.moderation.defs#repoViewNotFound")] - RepoViewNotFound(Box<RepoViewNotFound>), - #[serde(rename = "tools.ozone.moderation.defs#recordView")] - RecordView(Box<RecordView>), - #[serde(rename = "tools.ozone.moderation.defs#recordViewNotFound")] - RecordViewNotFound(Box<RecordViewNotFound>), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum ModEventViewEventRefs { - #[serde(rename = "tools.ozone.moderation.defs#modEventTakedown")] - ModEventTakedown(Box<ModEventTakedown>), - #[serde(rename = "tools.ozone.moderation.defs#modEventReverseTakedown")] - ModEventReverseTakedown(Box<ModEventReverseTakedown>), - #[serde(rename = "tools.ozone.moderation.defs#modEventComment")] - ModEventComment(Box<ModEventComment>), - #[serde(rename = "tools.ozone.moderation.defs#modEventReport")] - ModEventReport(Box<ModEventReport>), - #[serde(rename = "tools.ozone.moderation.defs#modEventLabel")] - ModEventLabel(Box<ModEventLabel>), - #[serde(rename = "tools.ozone.moderation.defs#modEventAcknowledge")] - ModEventAcknowledge(Box<ModEventAcknowledge>), - #[serde(rename = "tools.ozone.moderation.defs#modEventEscalate")] - ModEventEscalate(Box<ModEventEscalate>), - #[serde(rename = "tools.ozone.moderation.defs#modEventMute")] - ModEventMute(Box<ModEventMute>), - #[serde(rename = "tools.ozone.moderation.defs#modEventUnmute")] - ModEventUnmute(Box<ModEventUnmute>), - #[serde(rename = "tools.ozone.moderation.defs#modEventMuteReporter")] - ModEventMuteReporter(Box<ModEventMuteReporter>), - #[serde(rename = "tools.ozone.moderation.defs#modEventUnmuteReporter")] - ModEventUnmuteReporter(Box<ModEventUnmuteReporter>), - #[serde(rename = "tools.ozone.moderation.defs#modEventEmail")] - ModEventEmail(Box<ModEventEmail>), - #[serde(rename = "tools.ozone.moderation.defs#modEventResolveAppeal")] - ModEventResolveAppeal(Box<ModEventResolveAppeal>), - #[serde(rename = "tools.ozone.moderation.defs#modEventDivert")] - ModEventDivert(Box<ModEventDivert>), - #[serde(rename = "tools.ozone.moderation.defs#modEventTag")] - ModEventTag(Box<ModEventTag>), - #[serde(rename = "tools.ozone.moderation.defs#accountEvent")] - AccountEvent(Box<AccountEvent>), - #[serde(rename = "tools.ozone.moderation.defs#identityEvent")] - IdentityEvent(Box<IdentityEvent>), - #[serde(rename = "tools.ozone.moderation.defs#recordEvent")] - RecordEvent(Box<RecordEvent>), - #[serde(rename = "tools.ozone.moderation.defs#modEventPriorityScore")] - ModEventPriorityScore(Box<ModEventPriorityScore>), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum ModEventViewSubjectRefs { - #[serde(rename = "com.atproto.admin.defs#repoRef")] - ComAtprotoAdminDefsRepoRef(Box<crate::com::atproto::admin::defs::RepoRef>), - #[serde(rename = "com.atproto.repo.strongRef")] - ComAtprotoRepoStrongRefMain(Box<crate::com::atproto::repo::strong_ref::Main>), - #[serde(rename = "chat.bsky.convo.defs#messageRef")] - ChatBskyConvoDefsMessageRef(Box<crate::chat::bsky::convo::defs::MessageRef>), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum SubjectStatusViewHostingRefs { - #[serde(rename = "tools.ozone.moderation.defs#accountHosting")] - AccountHosting(Box<AccountHosting>), - #[serde(rename = "tools.ozone.moderation.defs#recordHosting")] - RecordHosting(Box<RecordHosting>), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum SubjectStatusViewSubjectRefs { - #[serde(rename = "com.atproto.admin.defs#repoRef")] - ComAtprotoAdminDefsRepoRef(Box<crate::com::atproto::admin::defs::RepoRef>), - #[serde(rename = "com.atproto.repo.strongRef")] - ComAtprotoRepoStrongRefMain(Box<crate::com::atproto::repo::strong_ref::Main>), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum SubjectViewProfileRefs {} diff --git a/crates/weaver-common/src/lexicons/tools/ozone/moderation/emit_event.rs b/crates/weaver-common/src/lexicons/tools/ozone/moderation/emit_event.rs deleted file mode 100644 index bc205bb..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/moderation/emit_event.rs +++ /dev/null @@ -1,120 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.moderation.emitEvent` namespace. -pub const NSID: &str = "tools.ozone.moderation.emitEvent"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub created_by: atrium_api::types::string::Did, - pub event: atrium_api::types::Union<InputEventRefs>, - pub subject: atrium_api::types::Union<InputSubjectRefs>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub subject_blob_cids: core::option::Option<Vec<atrium_api::types::string::Cid>>, -} -pub type Input = atrium_api::types::Object<InputData>; -pub type Output = crate::tools::ozone::moderation::defs::ModEventView; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - SubjectHasAction(Option<String>), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::SubjectHasAction(msg) => { - write!(_f, "SubjectHasAction")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum InputEventRefs { - #[serde(rename = "tools.ozone.moderation.defs#modEventTakedown")] - ToolsOzoneModerationDefsModEventTakedown( - Box<crate::tools::ozone::moderation::defs::ModEventTakedown>, - ), - #[serde(rename = "tools.ozone.moderation.defs#modEventAcknowledge")] - ToolsOzoneModerationDefsModEventAcknowledge( - Box<crate::tools::ozone::moderation::defs::ModEventAcknowledge>, - ), - #[serde(rename = "tools.ozone.moderation.defs#modEventEscalate")] - ToolsOzoneModerationDefsModEventEscalate( - Box<crate::tools::ozone::moderation::defs::ModEventEscalate>, - ), - #[serde(rename = "tools.ozone.moderation.defs#modEventComment")] - ToolsOzoneModerationDefsModEventComment( - Box<crate::tools::ozone::moderation::defs::ModEventComment>, - ), - #[serde(rename = "tools.ozone.moderation.defs#modEventLabel")] - ToolsOzoneModerationDefsModEventLabel( - Box<crate::tools::ozone::moderation::defs::ModEventLabel>, - ), - #[serde(rename = "tools.ozone.moderation.defs#modEventReport")] - ToolsOzoneModerationDefsModEventReport( - Box<crate::tools::ozone::moderation::defs::ModEventReport>, - ), - #[serde(rename = "tools.ozone.moderation.defs#modEventMute")] - ToolsOzoneModerationDefsModEventMute( - Box<crate::tools::ozone::moderation::defs::ModEventMute>, - ), - #[serde(rename = "tools.ozone.moderation.defs#modEventUnmute")] - ToolsOzoneModerationDefsModEventUnmute( - Box<crate::tools::ozone::moderation::defs::ModEventUnmute>, - ), - #[serde(rename = "tools.ozone.moderation.defs#modEventMuteReporter")] - ToolsOzoneModerationDefsModEventMuteReporter( - Box<crate::tools::ozone::moderation::defs::ModEventMuteReporter>, - ), - #[serde(rename = "tools.ozone.moderation.defs#modEventUnmuteReporter")] - ToolsOzoneModerationDefsModEventUnmuteReporter( - Box<crate::tools::ozone::moderation::defs::ModEventUnmuteReporter>, - ), - #[serde(rename = "tools.ozone.moderation.defs#modEventReverseTakedown")] - ToolsOzoneModerationDefsModEventReverseTakedown( - Box<crate::tools::ozone::moderation::defs::ModEventReverseTakedown>, - ), - #[serde(rename = "tools.ozone.moderation.defs#modEventResolveAppeal")] - ToolsOzoneModerationDefsModEventResolveAppeal( - Box<crate::tools::ozone::moderation::defs::ModEventResolveAppeal>, - ), - #[serde(rename = "tools.ozone.moderation.defs#modEventEmail")] - ToolsOzoneModerationDefsModEventEmail( - Box<crate::tools::ozone::moderation::defs::ModEventEmail>, - ), - #[serde(rename = "tools.ozone.moderation.defs#modEventDivert")] - ToolsOzoneModerationDefsModEventDivert( - Box<crate::tools::ozone::moderation::defs::ModEventDivert>, - ), - #[serde(rename = "tools.ozone.moderation.defs#modEventTag")] - ToolsOzoneModerationDefsModEventTag( - Box<crate::tools::ozone::moderation::defs::ModEventTag>, - ), - #[serde(rename = "tools.ozone.moderation.defs#accountEvent")] - ToolsOzoneModerationDefsAccountEvent( - Box<crate::tools::ozone::moderation::defs::AccountEvent>, - ), - #[serde(rename = "tools.ozone.moderation.defs#identityEvent")] - ToolsOzoneModerationDefsIdentityEvent( - Box<crate::tools::ozone::moderation::defs::IdentityEvent>, - ), - #[serde(rename = "tools.ozone.moderation.defs#recordEvent")] - ToolsOzoneModerationDefsRecordEvent( - Box<crate::tools::ozone::moderation::defs::RecordEvent>, - ), - #[serde(rename = "tools.ozone.moderation.defs#modEventPriorityScore")] - ToolsOzoneModerationDefsModEventPriorityScore( - Box<crate::tools::ozone::moderation::defs::ModEventPriorityScore>, - ), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum InputSubjectRefs { - #[serde(rename = "com.atproto.admin.defs#repoRef")] - ComAtprotoAdminDefsRepoRef(Box<crate::com::atproto::admin::defs::RepoRef>), - #[serde(rename = "com.atproto.repo.strongRef")] - ComAtprotoRepoStrongRefMain(Box<crate::com::atproto::repo::strong_ref::Main>), -} diff --git a/crates/weaver-common/src/lexicons/tools/ozone/moderation/get_event.rs b/crates/weaver-common/src/lexicons/tools/ozone/moderation/get_event.rs deleted file mode 100644 index 2f72078..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/moderation/get_event.rs +++ /dev/null @@ -1,18 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.moderation.getEvent` namespace. -pub const NSID: &str = "tools.ozone.moderation.getEvent"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub id: i64, -} -pub type Parameters = atrium_api::types::Object<ParametersData>; -pub type Output = crate::tools::ozone::moderation::defs::ModEventViewDetail; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/tools/ozone/moderation/get_record.rs b/crates/weaver-common/src/lexicons/tools/ozone/moderation/get_record.rs deleted file mode 100644 index 7797091..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/moderation/get_record.rs +++ /dev/null @@ -1,30 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.moderation.getRecord` namespace. -pub const NSID: &str = "tools.ozone.moderation.getRecord"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cid: core::option::Option<atrium_api::types::string::Cid>, - pub uri: String, -} -pub type Parameters = atrium_api::types::Object<ParametersData>; -pub type Output = crate::tools::ozone::moderation::defs::RecordViewDetail; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - RecordNotFound(Option<String>), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::RecordNotFound(msg) => { - write!(_f, "RecordNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/tools/ozone/moderation/get_records.rs b/crates/weaver-common/src/lexicons/tools/ozone/moderation/get_records.rs deleted file mode 100644 index dc2ab85..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/moderation/get_records.rs +++ /dev/null @@ -1,35 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.moderation.getRecords` namespace. -pub const NSID: &str = "tools.ozone.moderation.getRecords"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub uris: Vec<String>, -} -pub type Parameters = atrium_api::types::Object<ParametersData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub records: Vec<atrium_api::types::Union<OutputRecordsItem>>, -} -pub type Output = atrium_api::types::Object<OutputData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum OutputRecordsItem { - #[serde(rename = "tools.ozone.moderation.defs#recordViewDetail")] - ToolsOzoneModerationDefsRecordViewDetail( - Box<crate::tools::ozone::moderation::defs::RecordViewDetail>, - ), - #[serde(rename = "tools.ozone.moderation.defs#recordViewNotFound")] - ToolsOzoneModerationDefsRecordViewNotFound( - Box<crate::tools::ozone::moderation::defs::RecordViewNotFound>, - ), -} diff --git a/crates/weaver-common/src/lexicons/tools/ozone/moderation/get_repo.rs b/crates/weaver-common/src/lexicons/tools/ozone/moderation/get_repo.rs deleted file mode 100644 index ea426a0..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/moderation/get_repo.rs +++ /dev/null @@ -1,28 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.moderation.getRepo` namespace. -pub const NSID: &str = "tools.ozone.moderation.getRepo"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub did: atrium_api::types::string::Did, -} -pub type Parameters = atrium_api::types::Object<ParametersData>; -pub type Output = crate::tools::ozone::moderation::defs::RepoViewDetail; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - RepoNotFound(Option<String>), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::RepoNotFound(msg) => { - write!(_f, "RepoNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/tools/ozone/moderation/get_reporter_stats.rs b/crates/weaver-common/src/lexicons/tools/ozone/moderation/get_reporter_stats.rs deleted file mode 100644 index f0c4ad2..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/moderation/get_reporter_stats.rs +++ /dev/null @@ -1,23 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.moderation.getReporterStats` namespace. -pub const NSID: &str = "tools.ozone.moderation.getReporterStats"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub dids: Vec<atrium_api::types::string::Did>, -} -pub type Parameters = atrium_api::types::Object<ParametersData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub stats: Vec<crate::tools::ozone::moderation::defs::ReporterStats>, -} -pub type Output = atrium_api::types::Object<OutputData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/tools/ozone/moderation/get_repos.rs b/crates/weaver-common/src/lexicons/tools/ozone/moderation/get_repos.rs deleted file mode 100644 index 67a2ea2..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/moderation/get_repos.rs +++ /dev/null @@ -1,35 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.moderation.getRepos` namespace. -pub const NSID: &str = "tools.ozone.moderation.getRepos"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub dids: Vec<atrium_api::types::string::Did>, -} -pub type Parameters = atrium_api::types::Object<ParametersData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub repos: Vec<atrium_api::types::Union<OutputReposItem>>, -} -pub type Output = atrium_api::types::Object<OutputData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum OutputReposItem { - #[serde(rename = "tools.ozone.moderation.defs#repoViewDetail")] - ToolsOzoneModerationDefsRepoViewDetail( - Box<crate::tools::ozone::moderation::defs::RepoViewDetail>, - ), - #[serde(rename = "tools.ozone.moderation.defs#repoViewNotFound")] - ToolsOzoneModerationDefsRepoViewNotFound( - Box<crate::tools::ozone::moderation::defs::RepoViewNotFound>, - ), -} diff --git a/crates/weaver-common/src/lexicons/tools/ozone/moderation/get_subjects.rs b/crates/weaver-common/src/lexicons/tools/ozone/moderation/get_subjects.rs deleted file mode 100644 index 3919fd7..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/moderation/get_subjects.rs +++ /dev/null @@ -1,23 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.moderation.getSubjects` namespace. -pub const NSID: &str = "tools.ozone.moderation.getSubjects"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub subjects: Vec<String>, -} -pub type Parameters = atrium_api::types::Object<ParametersData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub subjects: Vec<crate::tools::ozone::moderation::defs::SubjectView>, -} -pub type Output = atrium_api::types::Object<OutputData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/tools/ozone/moderation/query_events.rs b/crates/weaver-common/src/lexicons/tools/ozone/moderation/query_events.rs deleted file mode 100644 index b6a740f..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/moderation/query_events.rs +++ /dev/null @@ -1,75 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.moderation.queryEvents` namespace. -pub const NSID: &str = "tools.ozone.moderation.queryEvents"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///If specified, only events where all of these labels were added are returned - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub added_labels: core::option::Option<Vec<String>>, - ///If specified, only events where all of these tags were added are returned - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub added_tags: core::option::Option<Vec<String>>, - ///If specified, only events where the subject belongs to the given collections will be returned. When subjectType is set to 'account', this will be ignored. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub collections: core::option::Option<Vec<atrium_api::types::string::Nsid>>, - ///If specified, only events with comments containing the keyword are returned. Apply || separator to use multiple keywords and match using OR condition. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option<String>, - ///Retrieve events created after a given timestamp - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub created_after: core::option::Option<atrium_api::types::string::Datetime>, - ///Retrieve events created before a given timestamp - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub created_before: core::option::Option<atrium_api::types::string::Datetime>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub created_by: core::option::Option<atrium_api::types::string::Did>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option<String>, - ///If true, only events with comments are returned - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub has_comment: core::option::Option<bool>, - ///If true, events on all record types (posts, lists, profile etc.) or records from given 'collections' param, owned by the did are returned. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub include_all_user_records: core::option::Option<bool>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option<atrium_api::types::LimitedNonZeroU8<100u8>>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub policies: core::option::Option<Vec<String>>, - ///If specified, only events where all of these labels were removed are returned - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub removed_labels: core::option::Option<Vec<String>>, - ///If specified, only events where all of these tags were removed are returned - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub removed_tags: core::option::Option<Vec<String>>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub report_types: core::option::Option<Vec<String>>, - ///Sort direction for the events. Defaults to descending order of created at timestamp. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub sort_direction: core::option::Option<String>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub subject: core::option::Option<String>, - ///If specified, only events where the subject is of the given type (account or record) will be returned. When this is set to 'account' the 'collections' parameter will be ignored. When includeAllUserRecords or subject is set, this will be ignored. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub subject_type: core::option::Option<String>, - ///The types of events (fully qualified string in the format of tools.ozone.moderation.defs#modEvent<name>) to filter by. If not specified, all events are returned. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub types: core::option::Option<Vec<String>>, -} -pub type Parameters = atrium_api::types::Object<ParametersData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option<String>, - pub events: Vec<crate::tools::ozone::moderation::defs::ModEventView>, -} -pub type Output = atrium_api::types::Object<OutputData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/tools/ozone/moderation/query_statuses.rs b/crates/weaver-common/src/lexicons/tools/ozone/moderation/query_statuses.rs deleted file mode 100644 index 8ce0878..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/moderation/query_statuses.rs +++ /dev/null @@ -1,123 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.moderation.queryStatuses` namespace. -pub const NSID: &str = "tools.ozone.moderation.queryStatuses"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///Get subjects in unresolved appealed status - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub appealed: core::option::Option<bool>, - ///If specified, subjects belonging to the given collections will be returned. When subjectType is set to 'account', this will be ignored. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub collections: core::option::Option<Vec<atrium_api::types::string::Nsid>>, - ///Search subjects by keyword from comments - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub comment: core::option::Option<String>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option<String>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub exclude_tags: core::option::Option<Vec<String>>, - ///Search subjects where the associated record/account was deleted after a given timestamp - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub hosting_deleted_after: core::option::Option<atrium_api::types::string::Datetime>, - ///Search subjects where the associated record/account was deleted before a given timestamp - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub hosting_deleted_before: core::option::Option< - atrium_api::types::string::Datetime, - >, - ///Search subjects by the status of the associated record/account - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub hosting_statuses: core::option::Option<Vec<String>>, - ///Search subjects where the associated record/account was updated after a given timestamp - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub hosting_updated_after: core::option::Option<atrium_api::types::string::Datetime>, - ///Search subjects where the associated record/account was updated before a given timestamp - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub hosting_updated_before: core::option::Option< - atrium_api::types::string::Datetime, - >, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub ignore_subjects: core::option::Option<Vec<String>>, - ///All subjects, or subjects from given 'collections' param, belonging to the account specified in the 'subject' param will be returned. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub include_all_user_records: core::option::Option<bool>, - ///By default, we don't include muted subjects in the results. Set this to true to include them. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub include_muted: core::option::Option<bool>, - ///Get all subject statuses that were reviewed by a specific moderator - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub last_reviewed_by: core::option::Option<atrium_api::types::string::Did>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option<atrium_api::types::LimitedNonZeroU8<100u8>>, - ///If specified, only subjects that belong to an account that has at least this many suspensions will be returned. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub min_account_suspend_count: core::option::Option<i64>, - ///If specified, only subjects that have priority score value above the given value will be returned. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub min_priority_score: core::option::Option<atrium_api::types::LimitedU8<100u8>>, - ///If specified, only subjects that belong to an account that has at least this many reported records will be returned. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub min_reported_records_count: core::option::Option<i64>, - ///If specified, only subjects that belong to an account that has at least this many taken down records will be returned. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub min_takendown_records_count: core::option::Option<i64>, - ///When set to true, only muted subjects and reporters will be returned. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub only_muted: core::option::Option<bool>, - ///Number of queues being used by moderators. Subjects will be split among all queues. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub queue_count: core::option::Option<i64>, - ///Index of the queue to fetch subjects from. Works only when queueCount value is specified. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub queue_index: core::option::Option<i64>, - ///A seeder to shuffle/balance the queue items. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub queue_seed: core::option::Option<String>, - ///Search subjects reported after a given timestamp - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub reported_after: core::option::Option<atrium_api::types::string::Datetime>, - ///Search subjects reported before a given timestamp - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub reported_before: core::option::Option<atrium_api::types::string::Datetime>, - ///Specify when fetching subjects in a certain state - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub review_state: core::option::Option<String>, - ///Search subjects reviewed after a given timestamp - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub reviewed_after: core::option::Option<atrium_api::types::string::Datetime>, - ///Search subjects reviewed before a given timestamp - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub reviewed_before: core::option::Option<atrium_api::types::string::Datetime>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub sort_direction: core::option::Option<String>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub sort_field: core::option::Option<String>, - ///The subject to get the status for. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub subject: core::option::Option<String>, - ///If specified, subjects of the given type (account or record) will be returned. When this is set to 'account' the 'collections' parameter will be ignored. When includeAllUserRecords or subject is set, this will be ignored. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub subject_type: core::option::Option<String>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub tags: core::option::Option<Vec<String>>, - ///Get subjects that were taken down - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub takendown: core::option::Option<bool>, -} -pub type Parameters = atrium_api::types::Object<ParametersData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option<String>, - pub subject_statuses: Vec<crate::tools::ozone::moderation::defs::SubjectStatusView>, -} -pub type Output = atrium_api::types::Object<OutputData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/tools/ozone/moderation/search_repos.rs b/crates/weaver-common/src/lexicons/tools/ozone/moderation/search_repos.rs deleted file mode 100644 index 5643ed2..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/moderation/search_repos.rs +++ /dev/null @@ -1,33 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.moderation.searchRepos` namespace. -pub const NSID: &str = "tools.ozone.moderation.searchRepos"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option<String>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option<atrium_api::types::LimitedNonZeroU8<100u8>>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub q: core::option::Option<String>, - ///DEPRECATED: use 'q' instead - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub term: core::option::Option<String>, -} -pub type Parameters = atrium_api::types::Object<ParametersData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option<String>, - pub repos: Vec<crate::tools::ozone::moderation::defs::RepoView>, -} -pub type Output = atrium_api::types::Object<OutputData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/tools/ozone/server.rs b/crates/weaver-common/src/lexicons/tools/ozone/server.rs deleted file mode 100644 index 321b48f..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/server.rs +++ /dev/null @@ -1,3 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.server` namespace. -pub mod get_config; diff --git a/crates/weaver-common/src/lexicons/tools/ozone/server/get_config.rs b/crates/weaver-common/src/lexicons/tools/ozone/server/get_config.rs deleted file mode 100644 index 24df496..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/server/get_config.rs +++ /dev/null @@ -1,43 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.server.getConfig` namespace. -pub const NSID: &str = "tools.ozone.server.getConfig"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub appview: core::option::Option<ServiceConfig>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub blob_divert: core::option::Option<ServiceConfig>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub chat: core::option::Option<ServiceConfig>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub pds: core::option::Option<ServiceConfig>, - ///The did of the verifier used for verification. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub verifier_did: core::option::Option<atrium_api::types::string::Did>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub viewer: core::option::Option<ViewerConfig>, -} -pub type Output = atrium_api::types::Object<OutputData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ServiceConfigData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub url: core::option::Option<String>, -} -pub type ServiceConfig = atrium_api::types::Object<ServiceConfigData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ViewerConfigData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub role: core::option::Option<String>, -} -pub type ViewerConfig = atrium_api::types::Object<ViewerConfigData>; diff --git a/crates/weaver-common/src/lexicons/tools/ozone/set.rs b/crates/weaver-common/src/lexicons/tools/ozone/set.rs deleted file mode 100644 index 933c363..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/set.rs +++ /dev/null @@ -1,9 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.set` namespace. -pub mod add_values; -pub mod defs; -pub mod delete_set; -pub mod delete_values; -pub mod get_values; -pub mod query_sets; -pub mod upsert_set; diff --git a/crates/weaver-common/src/lexicons/tools/ozone/set/add_values.rs b/crates/weaver-common/src/lexicons/tools/ozone/set/add_values.rs deleted file mode 100644 index 3f2c014..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/set/add_values.rs +++ /dev/null @@ -1,20 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.set.addValues` namespace. -pub const NSID: &str = "tools.ozone.set.addValues"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///Name of the set to add values to - pub name: String, - ///Array of string values to add to the set - pub values: Vec<String>, -} -pub type Input = atrium_api::types::Object<InputData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/tools/ozone/set/defs.rs b/crates/weaver-common/src/lexicons/tools/ozone/set/defs.rs deleted file mode 100644 index 8df6c09..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/set/defs.rs +++ /dev/null @@ -1,21 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.set.defs` namespace. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct SetData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description: core::option::Option<String>, - pub name: String, -} -pub type Set = atrium_api::types::Object<SetData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct SetViewData { - pub created_at: atrium_api::types::string::Datetime, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description: core::option::Option<String>, - pub name: String, - pub set_size: i64, - pub updated_at: atrium_api::types::string::Datetime, -} -pub type SetView = atrium_api::types::Object<SetViewData>; diff --git a/crates/weaver-common/src/lexicons/tools/ozone/set/delete_set.rs b/crates/weaver-common/src/lexicons/tools/ozone/set/delete_set.rs deleted file mode 100644 index 173ebed..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/set/delete_set.rs +++ /dev/null @@ -1,33 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.set.deleteSet` namespace. -pub const NSID: &str = "tools.ozone.set.deleteSet"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///Name of the set to delete - pub name: String, -} -pub type Input = atrium_api::types::Object<InputData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData {} -pub type Output = atrium_api::types::Object<OutputData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - ///set with the given name does not exist - SetNotFound(Option<String>), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::SetNotFound(msg) => { - write!(_f, "SetNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/tools/ozone/set/delete_values.rs b/crates/weaver-common/src/lexicons/tools/ozone/set/delete_values.rs deleted file mode 100644 index 4f4da58..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/set/delete_values.rs +++ /dev/null @@ -1,31 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.set.deleteValues` namespace. -pub const NSID: &str = "tools.ozone.set.deleteValues"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///Name of the set to delete values from - pub name: String, - ///Array of string values to delete from the set - pub values: Vec<String>, -} -pub type Input = atrium_api::types::Object<InputData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - ///set with the given name does not exist - SetNotFound(Option<String>), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::SetNotFound(msg) => { - write!(_f, "SetNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/tools/ozone/set/get_values.rs b/crates/weaver-common/src/lexicons/tools/ozone/set/get_values.rs deleted file mode 100644 index 2d9d946..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/set/get_values.rs +++ /dev/null @@ -1,41 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.set.getValues` namespace. -pub const NSID: &str = "tools.ozone.set.getValues"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option<String>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option<atrium_api::types::LimitedNonZeroU16<1000u16>>, - pub name: String, -} -pub type Parameters = atrium_api::types::Object<ParametersData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option<String>, - pub set: crate::tools::ozone::set::defs::SetView, - pub values: Vec<String>, -} -pub type Output = atrium_api::types::Object<OutputData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - ///set with the given name does not exist - SetNotFound(Option<String>), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::SetNotFound(msg) => { - write!(_f, "SetNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/tools/ozone/set/query_sets.rs b/crates/weaver-common/src/lexicons/tools/ozone/set/query_sets.rs deleted file mode 100644 index d1b3d20..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/set/query_sets.rs +++ /dev/null @@ -1,35 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.set.querySets` namespace. -pub const NSID: &str = "tools.ozone.set.querySets"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option<String>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option<atrium_api::types::LimitedNonZeroU8<100u8>>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub name_prefix: core::option::Option<String>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub sort_by: core::option::Option<String>, - ///Defaults to ascending order of name field. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub sort_direction: core::option::Option<String>, -} -pub type Parameters = atrium_api::types::Object<ParametersData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option<String>, - pub sets: Vec<crate::tools::ozone::set::defs::SetView>, -} -pub type Output = atrium_api::types::Object<OutputData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/tools/ozone/set/upsert_set.rs b/crates/weaver-common/src/lexicons/tools/ozone/set/upsert_set.rs deleted file mode 100644 index 64e92da..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/set/upsert_set.rs +++ /dev/null @@ -1,13 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.set.upsertSet` namespace. -pub const NSID: &str = "tools.ozone.set.upsertSet"; -pub type Input = crate::tools::ozone::set::defs::Set; -pub type Output = crate::tools::ozone::set::defs::SetView; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/tools/ozone/setting.rs b/crates/weaver-common/src/lexicons/tools/ozone/setting.rs deleted file mode 100644 index 33baf19..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/setting.rs +++ /dev/null @@ -1,6 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.setting` namespace. -pub mod defs; -pub mod list_options; -pub mod remove_options; -pub mod upsert_option; diff --git a/crates/weaver-common/src/lexicons/tools/ozone/setting/defs.rs b/crates/weaver-common/src/lexicons/tools/ozone/setting/defs.rs deleted file mode 100644 index 14d25d8..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/setting/defs.rs +++ /dev/null @@ -1,21 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.setting.defs` namespace. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OptionData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub created_at: core::option::Option<atrium_api::types::string::Datetime>, - pub created_by: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description: core::option::Option<String>, - pub did: atrium_api::types::string::Did, - pub key: atrium_api::types::string::Nsid, - pub last_updated_by: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub manager_role: core::option::Option<String>, - pub scope: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub updated_at: core::option::Option<atrium_api::types::string::Datetime>, - pub value: atrium_api::types::Unknown, -} -pub type Option = atrium_api::types::Object<OptionData>; diff --git a/crates/weaver-common/src/lexicons/tools/ozone/setting/list_options.rs b/crates/weaver-common/src/lexicons/tools/ozone/setting/list_options.rs deleted file mode 100644 index ffea4f5..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/setting/list_options.rs +++ /dev/null @@ -1,36 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.setting.listOptions` namespace. -pub const NSID: &str = "tools.ozone.setting.listOptions"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option<String>, - ///Filter for only the specified keys. Ignored if prefix is provided - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub keys: core::option::Option<Vec<atrium_api::types::string::Nsid>>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option<atrium_api::types::LimitedNonZeroU8<100u8>>, - ///Filter keys by prefix - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub prefix: core::option::Option<String>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub scope: core::option::Option<String>, -} -pub type Parameters = atrium_api::types::Object<ParametersData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option<String>, - pub options: Vec<crate::tools::ozone::setting::defs::Option>, -} -pub type Output = atrium_api::types::Object<OutputData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/tools/ozone/setting/remove_options.rs b/crates/weaver-common/src/lexicons/tools/ozone/setting/remove_options.rs deleted file mode 100644 index f2e7f61..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/setting/remove_options.rs +++ /dev/null @@ -1,22 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.setting.removeOptions` namespace. -pub const NSID: &str = "tools.ozone.setting.removeOptions"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub keys: Vec<atrium_api::types::string::Nsid>, - pub scope: String, -} -pub type Input = atrium_api::types::Object<InputData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData {} -pub type Output = atrium_api::types::Object<OutputData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/tools/ozone/setting/upsert_option.rs b/crates/weaver-common/src/lexicons/tools/ozone/setting/upsert_option.rs deleted file mode 100644 index 9754206..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/setting/upsert_option.rs +++ /dev/null @@ -1,29 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.setting.upsertOption` namespace. -pub const NSID: &str = "tools.ozone.setting.upsertOption"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub description: core::option::Option<String>, - pub key: atrium_api::types::string::Nsid, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub manager_role: core::option::Option<String>, - pub scope: String, - pub value: atrium_api::types::Unknown, -} -pub type Input = atrium_api::types::Object<InputData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub option: crate::tools::ozone::setting::defs::Option, -} -pub type Output = atrium_api::types::Object<OutputData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/tools/ozone/signature.rs b/crates/weaver-common/src/lexicons/tools/ozone/signature.rs deleted file mode 100644 index 7030a76..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/signature.rs +++ /dev/null @@ -1,6 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.signature` namespace. -pub mod defs; -pub mod find_correlation; -pub mod find_related_accounts; -pub mod search_accounts; diff --git a/crates/weaver-common/src/lexicons/tools/ozone/signature/defs.rs b/crates/weaver-common/src/lexicons/tools/ozone/signature/defs.rs deleted file mode 100644 index 8049c67..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/signature/defs.rs +++ /dev/null @@ -1,9 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.signature.defs` namespace. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct SigDetailData { - pub property: String, - pub value: String, -} -pub type SigDetail = atrium_api::types::Object<SigDetailData>; diff --git a/crates/weaver-common/src/lexicons/tools/ozone/signature/find_correlation.rs b/crates/weaver-common/src/lexicons/tools/ozone/signature/find_correlation.rs deleted file mode 100644 index e189c76..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/signature/find_correlation.rs +++ /dev/null @@ -1,23 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.signature.findCorrelation` namespace. -pub const NSID: &str = "tools.ozone.signature.findCorrelation"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - pub dids: Vec<atrium_api::types::string::Did>, -} -pub type Parameters = atrium_api::types::Object<ParametersData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub details: Vec<crate::tools::ozone::signature::defs::SigDetail>, -} -pub type Output = atrium_api::types::Object<OutputData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/tools/ozone/signature/find_related_accounts.rs b/crates/weaver-common/src/lexicons/tools/ozone/signature/find_related_accounts.rs deleted file mode 100644 index a8081c4..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/signature/find_related_accounts.rs +++ /dev/null @@ -1,39 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.signature.findRelatedAccounts` namespace. -pub const NSID: &str = "tools.ozone.signature.findRelatedAccounts"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option<String>, - pub did: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option<atrium_api::types::LimitedNonZeroU8<100u8>>, -} -pub type Parameters = atrium_api::types::Object<ParametersData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub accounts: Vec<RelatedAccount>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option<String>, -} -pub type Output = atrium_api::types::Object<OutputData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RelatedAccountData { - pub account: crate::com::atproto::admin::defs::AccountView, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub similarities: core::option::Option< - Vec<crate::tools::ozone::signature::defs::SigDetail>, - >, -} -pub type RelatedAccount = atrium_api::types::Object<RelatedAccountData>; diff --git a/crates/weaver-common/src/lexicons/tools/ozone/signature/search_accounts.rs b/crates/weaver-common/src/lexicons/tools/ozone/signature/search_accounts.rs deleted file mode 100644 index d292747..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/signature/search_accounts.rs +++ /dev/null @@ -1,29 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.signature.searchAccounts` namespace. -pub const NSID: &str = "tools.ozone.signature.searchAccounts"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option<String>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option<atrium_api::types::LimitedNonZeroU8<100u8>>, - pub values: Vec<String>, -} -pub type Parameters = atrium_api::types::Object<ParametersData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub accounts: Vec<crate::com::atproto::admin::defs::AccountView>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option<String>, -} -pub type Output = atrium_api::types::Object<OutputData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/tools/ozone/team.rs b/crates/weaver-common/src/lexicons/tools/ozone/team.rs deleted file mode 100644 index a2eec69..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/team.rs +++ /dev/null @@ -1,7 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.team` namespace. -pub mod add_member; -pub mod defs; -pub mod delete_member; -pub mod list_members; -pub mod update_member; diff --git a/crates/weaver-common/src/lexicons/tools/ozone/team/add_member.rs b/crates/weaver-common/src/lexicons/tools/ozone/team/add_member.rs deleted file mode 100644 index d08ffea..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/team/add_member.rs +++ /dev/null @@ -1,30 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.team.addMember` namespace. -pub const NSID: &str = "tools.ozone.team.addMember"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub did: atrium_api::types::string::Did, - pub role: String, -} -pub type Input = atrium_api::types::Object<InputData>; -pub type Output = crate::tools::ozone::team::defs::Member; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - ///Member already exists in the team. - MemberAlreadyExists(Option<String>), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::MemberAlreadyExists(msg) => { - write!(_f, "MemberAlreadyExists")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/tools/ozone/team/defs.rs b/crates/weaver-common/src/lexicons/tools/ozone/team/defs.rs deleted file mode 100644 index 7ec2760..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/team/defs.rs +++ /dev/null @@ -1,29 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.team.defs` namespace. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct MemberData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub created_at: core::option::Option<atrium_api::types::string::Datetime>, - pub did: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub disabled: core::option::Option<bool>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub last_updated_by: core::option::Option<String>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub profile: core::option::Option< - crate::app::bsky::actor::defs::ProfileViewDetailed, - >, - pub role: String, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub updated_at: core::option::Option<atrium_api::types::string::Datetime>, -} -pub type Member = atrium_api::types::Object<MemberData>; -///Admin role. Highest level of access, can perform all actions. -pub const ROLE_ADMIN: &str = "tools.ozone.team.defs#roleAdmin"; -///Moderator role. Can perform most actions. -pub const ROLE_MODERATOR: &str = "tools.ozone.team.defs#roleModerator"; -///Triage role. Mostly intended for monitoring and escalating issues. -pub const ROLE_TRIAGE: &str = "tools.ozone.team.defs#roleTriage"; -///Verifier role. Only allowed to issue verifications. -pub const ROLE_VERIFIER: &str = "tools.ozone.team.defs#roleVerifier"; diff --git a/crates/weaver-common/src/lexicons/tools/ozone/team/delete_member.rs b/crates/weaver-common/src/lexicons/tools/ozone/team/delete_member.rs deleted file mode 100644 index 7ba784d..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/team/delete_member.rs +++ /dev/null @@ -1,36 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.team.deleteMember` namespace. -pub const NSID: &str = "tools.ozone.team.deleteMember"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub did: atrium_api::types::string::Did, -} -pub type Input = atrium_api::types::Object<InputData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - ///The member being deleted does not exist - MemberNotFound(Option<String>), - ///You can not delete yourself from the team - CannotDeleteSelf(Option<String>), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::MemberNotFound(msg) => { - write!(_f, "MemberNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - Error::CannotDeleteSelf(msg) => { - write!(_f, "CannotDeleteSelf")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/tools/ozone/team/list_members.rs b/crates/weaver-common/src/lexicons/tools/ozone/team/list_members.rs deleted file mode 100644 index 4aad70e..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/team/list_members.rs +++ /dev/null @@ -1,34 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.team.listMembers` namespace. -pub const NSID: &str = "tools.ozone.team.listMembers"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option<String>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub disabled: core::option::Option<bool>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option<atrium_api::types::LimitedNonZeroU8<100u8>>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub q: core::option::Option<String>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub roles: core::option::Option<Vec<String>>, -} -pub type Parameters = atrium_api::types::Object<ParametersData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option<String>, - pub members: Vec<crate::tools::ozone::team::defs::Member>, -} -pub type Output = atrium_api::types::Object<OutputData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/tools/ozone/team/update_member.rs b/crates/weaver-common/src/lexicons/tools/ozone/team/update_member.rs deleted file mode 100644 index f71a50b..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/team/update_member.rs +++ /dev/null @@ -1,33 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.team.updateMember` namespace. -pub const NSID: &str = "tools.ozone.team.updateMember"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - pub did: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub disabled: core::option::Option<bool>, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub role: core::option::Option<String>, -} -pub type Input = atrium_api::types::Object<InputData>; -pub type Output = crate::tools::ozone::team::defs::Member; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error { - ///The member being updated does not exist in the team - MemberNotFound(Option<String>), -} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - match self { - Error::MemberNotFound(msg) => { - write!(_f, "MemberNotFound")?; - if let Some(msg) = msg { - write!(_f, ": {msg}")?; - } - } - } - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/tools/ozone/verification.rs b/crates/weaver-common/src/lexicons/tools/ozone/verification.rs deleted file mode 100644 index bb90fee..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/verification.rs +++ /dev/null @@ -1,6 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.verification` namespace. -pub mod defs; -pub mod grant_verifications; -pub mod list_verifications; -pub mod revoke_verifications; diff --git a/crates/weaver-common/src/lexicons/tools/ozone/verification/defs.rs b/crates/weaver-common/src/lexicons/tools/ozone/verification/defs.rs deleted file mode 100644 index 9046476..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/verification/defs.rs +++ /dev/null @@ -1,75 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.verification.defs` namespace. -///Verification data for the associated subject. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct VerificationViewData { - ///Timestamp when the verification was created. - pub created_at: atrium_api::types::string::Datetime, - ///Display name of the subject the verification applies to at the moment of verifying, which might not be the same at the time of viewing. The verification is only valid if the current displayName matches the one at the time of verifying. - pub display_name: String, - ///Handle of the subject the verification applies to at the moment of verifying, which might not be the same at the time of viewing. The verification is only valid if the current handle matches the one at the time of verifying. - pub handle: atrium_api::types::string::Handle, - ///The user who issued this verification. - pub issuer: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub issuer_profile: core::option::Option< - atrium_api::types::Union<VerificationViewIssuerProfileRefs>, - >, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub issuer_repo: core::option::Option< - atrium_api::types::Union<VerificationViewIssuerRepoRefs>, - >, - ///Describes the reason for revocation, also indicating that the verification is no longer valid. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub revoke_reason: core::option::Option<String>, - ///Timestamp when the verification was revoked. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub revoked_at: core::option::Option<atrium_api::types::string::Datetime>, - ///The user who revoked this verification. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub revoked_by: core::option::Option<atrium_api::types::string::Did>, - ///The subject of the verification. - pub subject: atrium_api::types::string::Did, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub subject_profile: core::option::Option< - atrium_api::types::Union<VerificationViewSubjectProfileRefs>, - >, - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub subject_repo: core::option::Option< - atrium_api::types::Union<VerificationViewSubjectRepoRefs>, - >, - ///The AT-URI of the verification record. - pub uri: String, -} -pub type VerificationView = atrium_api::types::Object<VerificationViewData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum VerificationViewIssuerProfileRefs {} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum VerificationViewIssuerRepoRefs { - #[serde(rename = "tools.ozone.moderation.defs#repoViewDetail")] - ToolsOzoneModerationDefsRepoViewDetail( - Box<crate::tools::ozone::moderation::defs::RepoViewDetail>, - ), - #[serde(rename = "tools.ozone.moderation.defs#repoViewNotFound")] - ToolsOzoneModerationDefsRepoViewNotFound( - Box<crate::tools::ozone::moderation::defs::RepoViewNotFound>, - ), -} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum VerificationViewSubjectProfileRefs {} -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "$type")] -pub enum VerificationViewSubjectRepoRefs { - #[serde(rename = "tools.ozone.moderation.defs#repoViewDetail")] - ToolsOzoneModerationDefsRepoViewDetail( - Box<crate::tools::ozone::moderation::defs::RepoViewDetail>, - ), - #[serde(rename = "tools.ozone.moderation.defs#repoViewNotFound")] - ToolsOzoneModerationDefsRepoViewNotFound( - Box<crate::tools::ozone::moderation::defs::RepoViewNotFound>, - ), -} diff --git a/crates/weaver-common/src/lexicons/tools/ozone/verification/grant_verifications.rs b/crates/weaver-common/src/lexicons/tools/ozone/verification/grant_verifications.rs deleted file mode 100644 index a628d8f..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/verification/grant_verifications.rs +++ /dev/null @@ -1,49 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.verification.grantVerifications` namespace. -pub const NSID: &str = "tools.ozone.verification.grantVerifications"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///Array of verification requests to process - pub verifications: Vec<VerificationInput>, -} -pub type Input = atrium_api::types::Object<InputData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - pub failed_verifications: Vec<GrantError>, - pub verifications: Vec<crate::tools::ozone::verification::defs::VerificationView>, -} -pub type Output = atrium_api::types::Object<OutputData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -///Error object for failed verifications. -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct GrantErrorData { - ///Error message describing the reason for failure. - pub error: String, - ///The did of the subject being verified - pub subject: atrium_api::types::string::Did, -} -pub type GrantError = atrium_api::types::Object<GrantErrorData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct VerificationInputData { - ///Timestamp for verification record. Defaults to current time when not specified. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub created_at: core::option::Option<String>, - ///Display name of the subject the verification applies to at the moment of verifying. - pub display_name: String, - ///Handle of the subject the verification applies to at the moment of verifying. - pub handle: atrium_api::types::string::Handle, - ///The did of the subject being verified - pub subject: atrium_api::types::string::Did, -} -pub type VerificationInput = atrium_api::types::Object<VerificationInputData>; diff --git a/crates/weaver-common/src/lexicons/tools/ozone/verification/list_verifications.rs b/crates/weaver-common/src/lexicons/tools/ozone/verification/list_verifications.rs deleted file mode 100644 index cad3778..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/verification/list_verifications.rs +++ /dev/null @@ -1,48 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.verification.listVerifications` namespace. -pub const NSID: &str = "tools.ozone.verification.listVerifications"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct ParametersData { - ///Filter to verifications created after this timestamp - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub created_after: core::option::Option<atrium_api::types::string::Datetime>, - ///Filter to verifications created before this timestamp - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub created_before: core::option::Option<atrium_api::types::string::Datetime>, - ///Pagination cursor - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option<String>, - ///Filter to verifications that are revoked or not. By default, includes both. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub is_revoked: core::option::Option<bool>, - ///Filter to verifications from specific issuers - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub issuers: core::option::Option<Vec<atrium_api::types::string::Did>>, - ///Maximum number of results to return - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub limit: core::option::Option<atrium_api::types::LimitedNonZeroU8<100u8>>, - ///Sort direction for creation date - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub sort_direction: core::option::Option<String>, - ///Filter to specific verified DIDs - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub subjects: core::option::Option<Vec<atrium_api::types::string::Did>>, -} -pub type Parameters = atrium_api::types::Object<ParametersData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub cursor: core::option::Option<String>, - pub verifications: Vec<crate::tools::ozone::verification::defs::VerificationView>, -} -pub type Output = atrium_api::types::Object<OutputData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} diff --git a/crates/weaver-common/src/lexicons/tools/ozone/verification/revoke_verifications.rs b/crates/weaver-common/src/lexicons/tools/ozone/verification/revoke_verifications.rs deleted file mode 100644 index d1b5f4b..0000000 --- a/crates/weaver-common/src/lexicons/tools/ozone/verification/revoke_verifications.rs +++ /dev/null @@ -1,40 +0,0 @@ -// @generated - This file is generated by esquema-codegen (forked from atrium-codegen). DO NOT EDIT. -//!Definitions for the `tools.ozone.verification.revokeVerifications` namespace. -pub const NSID: &str = "tools.ozone.verification.revokeVerifications"; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct InputData { - ///Reason for revoking the verification. This is optional and can be omitted if not needed. - #[serde(skip_serializing_if = "core::option::Option::is_none")] - pub revoke_reason: core::option::Option<String>, - ///Array of verification record uris to revoke - pub uris: Vec<String>, -} -pub type Input = atrium_api::types::Object<InputData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct OutputData { - ///List of verification uris that couldn't be revoked, including failure reasons - pub failed_revocations: Vec<RevokeError>, - ///List of verification uris successfully revoked - pub revoked_verifications: Vec<String>, -} -pub type Output = atrium_api::types::Object<OutputData>; -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(tag = "error", content = "message")] -pub enum Error {} -impl std::fmt::Display for Error { - fn fmt(&self, _f: &mut std::fmt::Formatter) -> std::fmt::Result { - Ok(()) - } -} -///Error object for failed revocations -#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Eq)] -#[serde(rename_all = "camelCase")] -pub struct RevokeErrorData { - ///Description of the error that occurred during revocation. - pub error: String, - ///The AT-URI of the verification record that failed to revoke. - pub uri: String, -} -pub type RevokeError = atrium_api::types::Object<RevokeErrorData>; diff --git a/crates/weaver-common/src/lib.rs b/crates/weaver-common/src/lib.rs index 53ed80a..8497fa8 100644 --- a/crates/weaver-common/src/lib.rs +++ b/crates/weaver-common/src/lib.rs @@ -1,28 +1,90 @@ -pub mod agent; -pub mod config; +//! Weaver common library - thin wrapper around jacquard with notebook-specific conveniences + pub mod error; -/// This filestore is very much not production ready -#[cfg(all(feature = "native", feature = "dev"))] -pub mod filestore; -pub mod lexicons; -pub mod oauth; -pub mod resolver; -pub mod xrpc_server; -use std::sync::OnceLock; - -pub use atrium_api::types::*; -pub use lexicons::*; -use regex::Regex; -use string::Did; - -pub use crate::error::{Error, IoError, ParseError, SerDeError}; - -pub use merde::CowStr; + +// Re-export jacquard for convenience +pub use jacquard; +use jacquard::CowStr; +pub use jacquard_api; + +pub use error::WeaverError; + +use jacquard::client::{Agent, AgentSession}; +use jacquard::types::blob::BlobRef; +use jacquard::types::string::{AtUri, Cid, Did}; +use jacquard_api::sh_weaver::notebook::{book, chapter, entry}; +use std::path::Path; + +/// Extension trait providing weaver-specific multi-step operations on Agent +/// +/// This trait extends jacquard's Agent with notebook-specific workflows that +/// involve multiple atproto operations (uploading blobs, creating records, etc.) +/// +/// For single-step operations, use jacquard's built-in methods directly: +/// - `agent.create_record()` - Create a single record +/// - `agent.get_record()` - Get a single record +/// - `agent.upload_blob()` - Upload a single blob +/// +/// This trait is for multi-step workflows that coordinate between multiple operations. +#[trait_variant::make(Send)] +pub trait WeaverExt { + /// Publish a notebook directory to the user's PDS + /// + /// Multi-step workflow: + /// 1. Parse markdown files in directory + /// 2. Extract and upload images/assets → BlobRefs + /// 3. Transform markdown refs to point at uploaded blobs + /// 4. Create entry records for each file + /// 5. Create book record with entry refs + /// + /// Returns the AT-URI of the published book + async fn publish_notebook(&self, path: &Path) -> Result<PublishResult<'_>, WeaverError>; + + /// Upload assets from markdown content + /// + /// Multi-step workflow: + /// 1. Parse markdown for image/asset refs + /// 2. Upload each asset → BlobRef + /// 3. Return mapping of original path → BlobRef + /// + /// Used by renderer to transform local refs to atproto refs + async fn upload_assets( + &self, + markdown: &str, + ) -> Result<Vec<(String, BlobRef<'_>)>, WeaverError>; +} + +impl<A: AgentSession> WeaverExt for Agent<A> { + async fn publish_notebook(&self, _path: &Path) -> Result<PublishResult<'_>, WeaverError> { + // TODO: Implementation + todo!("publish_notebook not yet implemented") + } + + async fn upload_assets( + &self, + _markdown: &str, + ) -> Result<Vec<(String, BlobRef<'_>)>, WeaverError> { + // TODO: Implementation + todo!("upload_assets not yet implemented") + } +} + +/// Result of publishing a notebook +#[derive(Debug, Clone)] +pub struct PublishResult<'a> { + /// AT-URI of the published book + pub uri: AtUri<'a>, + /// CID of the book record + pub cid: Cid<'a>, + /// URIs of published entries + pub entries: Vec<AtUri<'a>>, +} + /// too many cows, so we have conversions pub fn mcow_to_cow(cow: CowStr<'_>) -> std::borrow::Cow<'_, str> { match cow { CowStr::Borrowed(s) => std::borrow::Cow::Borrowed(s), - CowStr::Owned(s) => std::borrow::Cow::Owned(s.into_string()), + CowStr::Owned(s) => std::borrow::Cow::Owned(s.to_string()), } } @@ -38,72 +100,43 @@ pub fn cow_to_mcow(cow: std::borrow::Cow<'_, str>) -> CowStr<'_> { pub fn mdcow_to_cow(cow: markdown_weaver::CowStr<'_>) -> std::borrow::Cow<'_, str> { match cow { markdown_weaver::CowStr::Borrowed(s) => std::borrow::Cow::Borrowed(s), - markdown_weaver::CowStr::Boxed(s) => std::borrow::Cow::Owned(s.into_string()), + markdown_weaver::CowStr::Boxed(s) => std::borrow::Cow::Owned(s.to_string()), markdown_weaver::CowStr::Inlined(s) => std::borrow::Cow::Owned(s.as_ref().to_owned()), } } -pub fn avatar_cdn_url(did: &Did, blob_ref: &BlobRef) -> String { - let (cid, mime_type) = match blob_ref { - BlobRef::Typed(TypedBlobRef::Blob(b)) => ( - atrium_api::types::string::Cid::new(b.r#ref.0) - .as_ref() - .to_string(), - &b.mime_type, - ), - BlobRef::Untyped(r) => (r.cid.clone(), &r.mime_type), - }; +/// Utility: Generate CDN URL for avatar blob +pub fn avatar_cdn_url(did: &Did, cid: &Cid) -> String { format!( - "https://cdn.bsky.app/img/avatar/plain/{}/{}@{}", + "https://cdn.bsky.app/img/avatar/plain/{}/{}", did.as_str(), - cid, - mime_type.strip_prefix("image/").unwrap_or(mime_type) + cid ) } -pub fn blob_url(did: &Did, pds: &str, blob_ref: &BlobRef) -> String { - let cid = match blob_ref { - BlobRef::Typed(TypedBlobRef::Blob(b)) => atrium_api::types::string::Cid::new(b.r#ref.0) - .as_ref() - .to_string(), - - BlobRef::Untyped(r) => r.cid.clone(), - }; +/// Utility: Generate PDS URL for blob retrieval +pub fn blob_url(did: &Did, pds: &str, cid: &Cid) -> String { format!( "https://{}/xrpc/com.atproto.repo.getBlob?did={}&cid={}", pds, did.as_str(), - cid, + cid ) } pub fn match_identifier(maybe_identifier: &str) -> Option<&str> { - static RE_HANDLE: OnceLock<Regex> = OnceLock::new(); - static RE_DID: OnceLock<Regex> = OnceLock::new(); - if maybe_identifier.len() > 253 { - None - } else if !RE_DID.get_or_init(|| Regex::new(r"^did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]$").unwrap()) - .is_match(&maybe_identifier) && !RE_HANDLE - .get_or_init(|| Regex::new(r"^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$").unwrap()) - .is_match(&maybe_identifier) - { - None - } else { + if jacquard::types::string::AtIdentifier::new(maybe_identifier).is_ok() { Some(maybe_identifier) + } else { + None } } pub fn match_nsid(maybe_nsid: &str) -> Option<&str> { - static RE_NSID: OnceLock<Regex> = OnceLock::new(); - if maybe_nsid.len() > 317 { - None - } else if !RE_NSID - .get_or_init(|| Regex::new(r"^[a-zA-Z]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(\.[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(\.[a-zA-Z]([a-zA-Z0-9]{0,62}[a-zA-Z0-9])?)$").unwrap()) - .is_match(&maybe_nsid) - { - None - } else { + if jacquard::types::string::Nsid::new(maybe_nsid).is_ok() { Some(maybe_nsid) + } else { + None } } @@ -113,7 +146,7 @@ pub fn aturi_to_http<'s>(aturi: &'s str, appview: &'s str) -> Option<markdown_we use markdown_weaver::CowStr; if aturi.starts_with("at://") { - let rest = aturi.strip_prefix("at:://").unwrap(); + let rest = aturi.strip_prefix("at://").unwrap(); let mut split = rest.splitn(2, '/'); let maybe_identifier = split.next()?; let maybe_nsid = split.next()?; diff --git a/crates/weaver-common/src/oauth.rs b/crates/weaver-common/src/oauth.rs deleted file mode 100644 index b7866c8..0000000 --- a/crates/weaver-common/src/oauth.rs +++ /dev/null @@ -1,289 +0,0 @@ -use atrium_api::types::string::Did; -use atrium_common::store::memory::MemoryStore; -use atrium_identity::{ - did::{CommonDidResolver, CommonDidResolverConfig, DEFAULT_PLC_DIRECTORY_URL}, - handle::{AtprotoHandleResolver, AtprotoHandleResolverConfig}, -}; - -#[cfg(not(feature = "dev"))] -use atrium_oauth::{AtprotoClientMetadata, GrantType}; -use atrium_oauth::{ - AtprotoLocalhostClientMetadata, AuthorizeOptions, CallbackParams, OAuthSession, - store::{session::SessionStore, state::StateStore}, -}; -use atrium_oauth::{ - DefaultHttpClient, KnownScope, OAuthClient, OAuthClientConfig, OAuthResolverConfig, Scope, - store::{ - session::{MemorySessionStore, Session}, - state::{InternalStateData, MemoryStateStore}, - }, -}; - -use std::sync::Arc; - -use crate::{agent::WeaverHttpClient, resolver::HickoryDnsTxtResolver}; - -pub struct NativeOAuthClient { - oauth: NativeBasicOAuthClient, - pub http_client: Arc<WeaverHttpClient>, -} - -pub type NativeBasicOAuthSession = OAuthSession< - DefaultHttpClient, - CommonDidResolver<WeaverHttpClient>, - AtprotoHandleResolver<HickoryDnsTxtResolver, WeaverHttpClient>, - MemoryStore<Did, Session>, ->; - -pub struct NativeWeaverOAuthClient<STATE, SESS> -where - STATE: StateStore + Send + Sync + 'static, - SESS: SessionStore + Send + Sync + 'static, - STATE::Error: std::error::Error + Send + Sync + 'static, - SESS::Error: std::error::Error + Send + Sync + 'static, -{ - oauth: WeaverOAuthClient<STATE, SESS>, - pub http_client: Arc<WeaverHttpClient>, -} -impl NativeOAuthClient { - pub async fn authorize( - &self, - input: impl AsRef<str>, - options: AuthorizeOptions, - ) -> Result<String, atrium_oauth::Error> { - self.oauth.authorize(input, options).await - } - - pub async fn callback( - &self, - params: CallbackParams, - ) -> Result<(NativeBasicOAuthSession, Option<String>), atrium_oauth::Error> { - self.oauth.callback(params).await - } -} - -#[cfg(all(feature = "native", feature = "dev"))] -impl - NativeWeaverOAuthClient< - crate::filestore::SimpleJsonFileSessionStore<std::path::PathBuf>, - crate::filestore::SimpleJsonFileSessionStore<std::path::PathBuf>, - > -{ - pub async fn authorize( - &self, - input: impl AsRef<str>, - options: AuthorizeOptions, - ) -> Result<String, atrium_oauth::Error> { - self.oauth.authorize(input, options).await - } - - pub async fn callback( - &self, - params: CallbackParams, - ) -> Result<(WeaverOAuthSession, Option<String>), atrium_oauth::Error> { - self.oauth.callback(params).await - } - - pub async fn restore(&self, did: &Did) -> Result<WeaverOAuthSession, atrium_oauth::Error> { - self.oauth.restore(did).await - } -} - -#[cfg(all(feature = "native", feature = "dev"))] -pub type WeaverOAuthSession = OAuthSession< - DefaultHttpClient, - CommonDidResolver<WeaverHttpClient>, - AtprotoHandleResolver<HickoryDnsTxtResolver, WeaverHttpClient>, - crate::filestore::SimpleJsonFileSessionStore<std::path::PathBuf>, ->; - -pub type NativeBasicOAuthClient = atrium_oauth::OAuthClient< - MemoryStore<String, InternalStateData>, - MemoryStore<Did, Session>, - CommonDidResolver<WeaverHttpClient>, - AtprotoHandleResolver<HickoryDnsTxtResolver, WeaverHttpClient>, - DefaultHttpClient, ->; - -pub type BasicOAuthClient = atrium_oauth::OAuthClient< - MemoryStore<String, InternalStateData>, - MemoryStore<Did, Session>, - CommonDidResolver<WeaverHttpClient>, - AtprotoHandleResolver<HickoryDnsTxtResolver, WeaverHttpClient>, - DefaultHttpClient, ->; - -pub type WeaverOAuthClient<STATE, SESS> = atrium_oauth::OAuthClient< - STATE, - SESS, - CommonDidResolver<WeaverHttpClient>, - AtprotoHandleResolver<HickoryDnsTxtResolver, WeaverHttpClient>, - DefaultHttpClient, ->; - -pub fn oauth_client<STATE, SESS>( - url: impl AsRef<str>, - jwks: Option<Vec<jose_jwk::Jwk>>, - session_store: SESS, - state_store: STATE, -) -> Result<WeaverOAuthClient<STATE, SESS>, atrium_oauth::Error> -where - STATE: StateStore + Send + Sync + 'static, - SESS: SessionStore + Send + Sync + 'static, - STATE::Error: std::error::Error + Send + Sync + 'static, - SESS::Error: std::error::Error + Send + Sync + 'static, -{ - let http_client = Arc::new(WeaverHttpClient::default()); - let config = OAuthClientConfig { - client_metadata: default_client_metadata(url.as_ref()), - keys: jwks.into(), - resolver: OAuthResolverConfig { - did_resolver: CommonDidResolver::new(CommonDidResolverConfig { - plc_directory_url: DEFAULT_PLC_DIRECTORY_URL.to_string(), - http_client: Arc::clone(&http_client), - }), - handle_resolver: AtprotoHandleResolver::new(AtprotoHandleResolverConfig { - dns_txt_resolver: HickoryDnsTxtResolver::default(), - http_client: Arc::clone(&http_client), - }), - authorization_server_metadata: Default::default(), - protected_resource_metadata: Default::default(), - }, - state_store, - session_store, - }; - let client = OAuthClient::new(config)?; - Ok(client) -} - -pub fn default_oauth_client( - url: impl AsRef<str>, - jwks: Option<Vec<jose_jwk::Jwk>>, -) -> Result<BasicOAuthClient, atrium_oauth::Error> { - let http_client = Arc::new(WeaverHttpClient::default()); - let config = OAuthClientConfig { - client_metadata: default_client_metadata(url.as_ref()), - keys: jwks.into(), - resolver: OAuthResolverConfig { - did_resolver: CommonDidResolver::new(CommonDidResolverConfig { - plc_directory_url: DEFAULT_PLC_DIRECTORY_URL.to_string(), - http_client: Arc::clone(&http_client), - }), - handle_resolver: AtprotoHandleResolver::new(AtprotoHandleResolverConfig { - dns_txt_resolver: HickoryDnsTxtResolver::default(), - http_client: Arc::clone(&http_client), - }), - authorization_server_metadata: Default::default(), - protected_resource_metadata: Default::default(), - }, - state_store: MemoryStateStore::default(), - session_store: MemorySessionStore::default(), - }; - let client = OAuthClient::new(config)?; - Ok(client) -} - -#[cfg(all(feature = "native", feature = "dev"))] -pub fn test_native_oauth_client() -> Result< - NativeWeaverOAuthClient< - crate::filestore::SimpleJsonFileSessionStore<std::path::PathBuf>, - crate::filestore::SimpleJsonFileSessionStore<std::path::PathBuf>, - >, - atrium_oauth::Error, -> { - use crate::filestore::SimpleJsonFileSessionStore; - - let http_client = Arc::new(WeaverHttpClient::default()); - let config = OAuthClientConfig { - client_metadata: default_native_client_metadata(), - keys: None, - resolver: OAuthResolverConfig { - did_resolver: CommonDidResolver::new(CommonDidResolverConfig { - plc_directory_url: DEFAULT_PLC_DIRECTORY_URL.to_string(), - http_client: Arc::clone(&http_client), - }), - handle_resolver: AtprotoHandleResolver::new(AtprotoHandleResolverConfig { - dns_txt_resolver: HickoryDnsTxtResolver::default(), - http_client: Arc::clone(&http_client), - }), - authorization_server_metadata: Default::default(), - protected_resource_metadata: Default::default(), - }, - state_store: SimpleJsonFileSessionStore::default(), - session_store: SimpleJsonFileSessionStore::default(), - }; - let client = NativeWeaverOAuthClient { - oauth: OAuthClient::new(config)?, - http_client: Arc::clone(&http_client), - }; - Ok(client) -} - -pub fn default_native_oauth_client() -> Result<NativeOAuthClient, atrium_oauth::Error> { - let http_client = Arc::new(WeaverHttpClient::default()); - let config = OAuthClientConfig { - client_metadata: default_native_client_metadata(), - keys: None, - resolver: OAuthResolverConfig { - did_resolver: CommonDidResolver::new(CommonDidResolverConfig { - plc_directory_url: DEFAULT_PLC_DIRECTORY_URL.to_string(), - http_client: Arc::clone(&http_client), - }), - handle_resolver: AtprotoHandleResolver::new(AtprotoHandleResolverConfig { - dns_txt_resolver: HickoryDnsTxtResolver::default(), - http_client: Arc::clone(&http_client), - }), - authorization_server_metadata: Default::default(), - protected_resource_metadata: Default::default(), - }, - state_store: MemoryStateStore::default(), - session_store: MemorySessionStore::default(), - }; - let client = NativeOAuthClient { - oauth: OAuthClient::new(config)?, - http_client: Arc::clone(&http_client), - }; - Ok(client) -} - -#[cfg(feature = "dev")] -pub fn default_client_metadata(_host: &str) -> AtprotoLocalhostClientMetadata { - AtprotoLocalhostClientMetadata { - redirect_uris: make_redirect_uris("http://127.0.0.1:4000"), - scopes: make_scopes(), - } -} - -#[cfg(not(feature = "dev"))] -pub fn default_client_metadata(host: &str) -> AtprotoClientMetadata { - AtprotoClientMetadata { - client_id: format!("{}/oauth/client-metadata.json", host), - client_uri: Some(host.to_string()), - jwks_uri: Some(format!("{}/oauth/jwks.json", host)), - redirect_uris: make_redirect_uris(host).unwrap(), - scopes: make_scopes().unwrap(), - token_endpoint_auth_method: atrium_oauth::AuthMethod::PrivateKeyJwt, - grant_types: vec![GrantType::AuthorizationCode, GrantType::RefreshToken], - token_endpoint_auth_signing_alg: Some(String::from("ES256")), - } -} - -pub fn default_native_client_metadata() -> AtprotoLocalhostClientMetadata { - AtprotoLocalhostClientMetadata { - redirect_uris: make_redirect_uris("http://127.0.0.1:4000"), - scopes: make_scopes(), - } -} - -#[inline] -fn make_redirect_uris(url: &str) -> Option<Vec<String>> { - Some(vec![format!("{}/oauth/callback", url)]) -} - -#[inline] -pub fn make_scopes() -> Option<Vec<Scope>> { - Some(vec![ - Scope::Known(KnownScope::Atproto), - Scope::Known(KnownScope::TransitionGeneric), - ]) -} diff --git a/crates/weaver-common/src/resolver.rs b/crates/weaver-common/src/resolver.rs deleted file mode 100644 index 2f4a716..0000000 --- a/crates/weaver-common/src/resolver.rs +++ /dev/null @@ -1,31 +0,0 @@ -use atrium_identity::handle::DnsTxtResolver; -use hickory_resolver::TokioAsyncResolver; - -pub struct HickoryDnsTxtResolver { - resolver: TokioAsyncResolver, -} - -impl Default for HickoryDnsTxtResolver { - fn default() -> Self { - Self { - resolver: TokioAsyncResolver::tokio_from_system_conf() - .expect("failed to create resolver"), - } - } -} - -impl DnsTxtResolver for HickoryDnsTxtResolver { - async fn resolve( - &self, - query: &str, - ) -> core::result::Result<Vec<String>, Box<dyn std::error::Error + Send + Sync>> { - Ok(self - .resolver - .txt_lookup(query) - .await - .map_err(crate::error::NetworkError::from)? - .iter() - .map(|txt| txt.to_string()) - .collect()) - } -} diff --git a/crates/weaver-common/src/xrpc_server.rs b/crates/weaver-common/src/xrpc_server.rs deleted file mode 100644 index a35a34b..0000000 --- a/crates/weaver-common/src/xrpc_server.rs +++ /dev/null @@ -1,9 +0,0 @@ -pub async fn serve<T, E>( - namespace: String, -) -> Result<atrium_xrpc::OutputDataOrBytes<T>, atrium_xrpc::Error<E>> -where - T: serde::de::DeserializeOwned, - E: serde::de::DeserializeOwned + std::fmt::Debug, -{ - todo!() -} diff --git a/crates/weaver-renderer/Cargo.toml b/crates/weaver-renderer/Cargo.toml index 06ccb5b..02ee007 100644 --- a/crates/weaver-renderer/Cargo.toml +++ b/crates/weaver-renderer/Cargo.toml @@ -7,8 +7,6 @@ publish = false [dependencies] n0-future.workspace = true -atrium-api = { version = "0.25.3", default-features = false } - weaver-common = { path = "../weaver-common" } markdown-weaver = { workspace = true } weaver-workspace-hack = { version = "0.1", path = "../weaver-workspace-hack" } @@ -30,6 +28,10 @@ pin-utils = "0.1.0" pin-project = "1.1.10" dynosaur = "0.2.0" async-trait = "0.1.88" +reqwest = { version = "0.12.7", default-features = false, features = [ + "json", + "rustls-tls", +] } [target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dependencies] tokio = { version = "1.28", features = ["rt", "time"] } diff --git a/crates/weaver-renderer/src/lib.rs b/crates/weaver-renderer/src/lib.rs index 74f9280..de75b48 100644 --- a/crates/weaver-renderer/src/lib.rs +++ b/crates/weaver-renderer/src/lib.rs @@ -186,7 +186,6 @@ impl<'a, I: Iterator<Item = Event<'a>>, CTX: NotebookContext> Stream } } -#[async_trait] pub trait NotebookContext { fn set_entry_title(&self, title: CowStr<'_>); fn entry_title(&self) -> CowStr<'_>; @@ -210,9 +209,9 @@ pub trait NotebookContext { } fn frontmatter(&self) -> Frontmatter; fn set_frontmatter(&self, frontmatter: Frontmatter); - async fn handle_link<'s>(&self, link: Tag<'s>) -> Tag<'s>; - async fn handle_image<'s>(&self, image: Tag<'s>) -> Tag<'s>; - async fn handle_embed<'s>(&self, embed: Tag<'s>) -> Tag<'s>; + fn handle_link<'s>(&self, link: Tag<'s>) -> impl Future<Output = Tag<'s>>; + fn handle_image<'s>(&self, image: Tag<'s>) -> impl Future<Output = Tag<'s>>; + fn handle_embed<'s>(&self, embed: Tag<'s>) -> impl Future<Output = Tag<'s>>; fn handle_reference(&self, reference: CowStr<'_>) -> CowStr<'_>; fn add_reference(&self, reference: CowStr<'_>); } diff --git a/crates/weaver-renderer/src/static_site.rs b/crates/weaver-renderer/src/static_site.rs index 97ccec3..322da42 100644 --- a/crates/weaver-renderer/src/static_site.rs +++ b/crates/weaver-renderer/src/static_site.rs @@ -12,7 +12,6 @@ use std::{ use crate::{ContextIterator, NotebookProcessor, base_html::TableState, walker::WalkOptions}; use async_trait::async_trait; -use atrium_api::agent::{Configure, SessionManager}; use bitflags::bitflags; use dashmap::DashMap; use markdown_weaver::{ @@ -30,8 +29,13 @@ use n0_future::io::AsyncWriteExt; use tokio::io::AsyncWriteExt; use unicode_normalization::UnicodeNormalization; use weaver_common::{ - agent::{WeaverAgent, WeaverHttpClient}, aturi_to_http, + jacquard::{ + client::{Agent, AgentSession, AgentSessionExt}, + identity::resolver::IdentityError, + prelude::*, + types::blob::MimeType, + }, }; use yaml_rust2::Yaml; @@ -80,7 +84,7 @@ pub fn default_md_options() -> markdown_weaver::Options { | markdown_weaver::Options::ENABLE_HEADING_ATTRIBUTES } -pub struct StaticSiteContext<'a, M: SessionManager + Send + Sync> { +pub struct StaticSiteContext<'a, A: AgentSession> { options: StaticSiteOptions, md_options: markdown_weaver::Options, pub bsky_appview: CowStr<'a>, @@ -92,10 +96,11 @@ pub struct StaticSiteContext<'a, M: SessionManager + Send + Sync> { reference_map: Arc<DashMap<CowStr<'a>, PathBuf>>, titles: Arc<DashMap<PathBuf, CowStr<'a>>>, position: usize, - agent: Option<Arc<WeaverAgent<M>>>, + client: reqwest::Client, + agent: Option<Arc<Agent<A>>>, } -impl<M: SessionManager + Send + Sync> StaticSiteContext<'_, M> { +impl<A: AgentSession> StaticSiteContext<'_, A> { pub fn clone_with_dir_contents(&self, dir_contents: &[PathBuf]) -> Self { Self { start_at: self.start_at.clone(), @@ -109,6 +114,7 @@ impl<M: SessionManager + Send + Sync> StaticSiteContext<'_, M> { reference_map: self.reference_map.clone(), titles: self.titles.clone(), position: self.position, + client: self.client.clone(), agent: self.agent.clone(), } } @@ -134,10 +140,11 @@ impl<M: SessionManager + Send + Sync> StaticSiteContext<'_, M> { reference_map: self.reference_map.clone(), titles: self.titles.clone(), position, + client: reqwest::Client::default(), agent: self.agent.clone(), } } - pub fn new(root: PathBuf, destination: PathBuf, session: Option<M>) -> Self { + pub fn new(root: PathBuf, destination: PathBuf, session: Option<A>) -> Self { Self { start_at: root.clone(), root, @@ -150,7 +157,8 @@ impl<M: SessionManager + Send + Sync> StaticSiteContext<'_, M> { reference_map: Arc::new(DashMap::new()), titles: Arc::new(DashMap::new()), position: 0, - agent: session.map(|session| Arc::new(WeaverAgent::new(session))), + client: reqwest::Client::default(), + agent: session.map(|session| Arc::new(Agent::new(session))), } } @@ -169,73 +177,68 @@ impl<M: SessionManager + Send + Sync> StaticSiteContext<'_, M> { } pub async fn handle_embed_aturi<'s>(&self, embed: Tag<'s>) -> Tag<'s> { - if let Some(agent) = &self.agent { - match &embed { - Tag::Embed { - embed_type, - dest_url, - title, - id, - attrs, - } => { - if dest_url.starts_with("at://") { - let width = if let Some(attrs) = attrs { - let mut width = 600; - for attr in &attrs.attrs { - if attr.0 == CowStr::Borrowed("width".into()) { - width = attr.1.parse::<usize>().unwrap_or(600); - break; - } + match &embed { + Tag::Embed { + embed_type, + dest_url, + title, + id, + attrs, + } => { + if dest_url.starts_with("at://") { + let width = if let Some(attrs) = attrs { + let mut width = 600; + for attr in &attrs.attrs { + if attr.0 == CowStr::Borrowed("width".into()) { + width = attr.1.parse::<usize>().unwrap_or(600); + break; } - width - } else { - 600 - }; - let html = if let Ok(resp) = agent - .client - .client - .get("https://embed.bsky.app/oembed") - .query(&[ - ("url", dest_url.clone().into_string()), - ("maxwidth", width.to_string()), - ]) - .send() - .await - { - resp.text().await.ok() + } + width + } else { + 600 + }; + let html = if let Ok(resp) = self + .client + .get("https://embed.bsky.app/oembed") + .query(&[ + ("url", dest_url.clone().into_string()), + ("maxwidth", width.to_string()), + ]) + .send() + .await + { + resp.text().await.ok() + } else { + None + }; + if let Some(html) = html { + let link = aturi_to_http(&dest_url, &self.bsky_appview) + .expect("assuming the at-uri is valid rn"); + let mut attrs = if let Some(attrs) = attrs { + attrs.clone() } else { - None - }; - if let Some(html) = html { - let link = aturi_to_http(&dest_url, &self.bsky_appview) - .expect("assuming the at-uri is valid rn"); - let mut attrs = if let Some(attrs) = attrs { - attrs.clone() - } else { - WeaverAttributes { - classes: vec![], - attrs: vec![], - } - }; - attrs.attrs.push(("content".into(), html.into())); - Tag::Embed { - embed_type: EmbedType::Comments, // change this when i update markdown-weaver - dest_url: link.into_static(), - title: title.clone(), - id: id.clone(), - attrs: Some(attrs), + WeaverAttributes { + classes: vec![], + attrs: vec![], } - } else { - self.handle_embed_normal(embed).await + }; + attrs.attrs.push(("content".into(), html.into())); + Tag::Embed { + embed_type: EmbedType::Comments, // change this when i update markdown-weaver + dest_url: link.into_static(), + title: title.clone(), + id: id.clone(), + attrs: Some(attrs), } } else { self.handle_embed_normal(embed).await } + } else { + self.handle_embed_normal(embed).await } - _ => embed, } - } else { - self.handle_embed_normal(embed).await + _ => embed, } } @@ -267,12 +270,8 @@ impl<M: SessionManager + Send + Sync> StaticSiteContext<'_, M> { }; crate::utils::inline_file(&file_path).await } else if let Some(agent) = &self.agent { - if let Ok(resp) = agent - .client - .client - .get(dest_url.clone().into_string()) - .send() - .await + if let Ok(resp) = + self.client.get(dest_url.clone().into_string()).send().await { resp.text().await.ok() } else { @@ -314,7 +313,7 @@ impl<M: SessionManager + Send + Sync> StaticSiteContext<'_, M> { } } -impl<M: SessionManager + Configure + Send + Sync> StaticSiteContext<'_, M> { +impl<A: AgentSession + IdentityResolver> StaticSiteContext<'_, A> { pub async fn upload_image<'s>(&self, image: Tag<'s>) -> Tag<'s> { if let Some(agent) = &self.agent { match &image { @@ -328,12 +327,16 @@ impl<M: SessionManager + Configure + Send + Sync> StaticSiteContext<'_, M> { if crate::utils::is_local_path(&dest_url) { let root_path = self.root.clone(); let file_path = root_path.join(Path::new(&dest_url as &str)); - if let Ok(bytes) = std::fs::read(&file_path) { - if let Ok(blob_data) = agent.upload_blob(bytes).await { + if let Ok(image_data) = std::fs::read(&file_path) { + if let Ok(blob) = agent + .upload_blob(image_data, MimeType::new_static("image/jpg")) + .await + { + let (did, _) = agent.info().await.unwrap(); let url = weaver_common::blob_url( - agent.did().await.as_ref().unwrap(), - &agent.pds(), - &blob_data.blob, + &did, + agent.endpoint().await.as_str(), + &blob.r#ref.0, ); return Tag::Image { link_type: *link_type, @@ -353,8 +356,7 @@ impl<M: SessionManager + Configure + Send + Sync> StaticSiteContext<'_, M> { } } -#[async_trait] -impl<M: SessionManager + Configure + Send + Sync> NotebookContext for StaticSiteContext<'_, M> { +impl<A: AgentSession + IdentityResolver> NotebookContext for StaticSiteContext<'_, A> { fn set_entry_title(&self, title: CowStr<'_>) { let path = self.current_path(); self.titles @@ -453,26 +455,26 @@ impl<M: SessionManager + Configure + Send + Sync> NotebookContext for StaticSite } } -pub struct StaticSiteWriter<'a, M> +pub struct StaticSiteWriter<'a, A> where - M: SessionManager + Send + Sync, + A: AgentSession, { - context: StaticSiteContext<'a, M>, + context: StaticSiteContext<'a, A>, } -impl<'a, M> StaticSiteWriter<'a, M> +impl<'a, A> StaticSiteWriter<'a, A> where - M: SessionManager + Send + Sync, + A: AgentSession, { - pub fn new(root: PathBuf, destination: PathBuf, session: Option<M>) -> Self { + pub fn new(root: PathBuf, destination: PathBuf, session: Option<A>) -> Self { let context = StaticSiteContext::new(root, destination, session); Self { context } } } -impl<'a, M> StaticSiteWriter<'a, M> +impl<'a, A> StaticSiteWriter<'a, A> where - M: SessionManager + Configure + Send + Sync, + A: AgentSession + IdentityResolver, { pub async fn run(self) -> Result<(), miette::Report> { todo!() @@ -481,7 +483,7 @@ where pub async fn export_page<'s, 'input>( &'s self, contents: &'input str, - context: StaticSiteContext<'s, M>, + context: StaticSiteContext<'s, A>, ) -> Result<String, miette::Report> { let callback = if let Some(dir_contents) = context.dir_contents.clone() { Some(VaultBrokenLinkCallback { @@ -518,10 +520,10 @@ pub struct StaticPageWriter< 'a, 'input, I: Iterator<Item = Event<'input>>, - M: SessionManager + Send + Sync, + A: AgentSession, W: StrWrite, > { - context: NotebookProcessor<'input, I, StaticSiteContext<'a, M>>, + context: NotebookProcessor<'input, I, StaticSiteContext<'a, A>>, writer: W, /// Whether or not the last write wrote a newline. end_newline: bool, @@ -535,10 +537,10 @@ pub struct StaticPageWriter< numbers: DashMap<CowStr<'a>, usize>, } -impl<'a, 'input, I: Iterator<Item = Event<'input>>, M: SessionManager + Send + Sync, W: StrWrite> - StaticPageWriter<'a, 'input, I, M, W> +impl<'a, 'input, I: Iterator<Item = Event<'input>>, A: AgentSession, W: StrWrite> + StaticPageWriter<'a, 'input, I, A, W> { - pub fn new(context: NotebookProcessor<'input, I, StaticSiteContext<'a, M>>, writer: W) -> Self { + pub fn new(context: NotebookProcessor<'input, I, StaticSiteContext<'a, A>>, writer: W) -> Self { Self { context, writer, @@ -660,13 +662,8 @@ impl<'a, 'input, I: Iterator<Item = Event<'input>>, M: SessionManager + Send + S } } -impl< - 'a, - 'input, - I: Iterator<Item = Event<'input>>, - M: SessionManager + Configure + Send + Sync, - W: StrWrite, -> StaticPageWriter<'a, 'input, I, M, W> +impl<'a, 'input, I: Iterator<Item = Event<'input>>, A: AgentSession + IdentityResolver, W: StrWrite> + StaticPageWriter<'a, 'input, I, A, W> { async fn run(mut self) -> Result<(), W::Error> { while let Some(event) = self.context.next().await { diff --git a/crates/weaver-renderer/src/types.rs b/crates/weaver-renderer/src/types.rs index bb24079..576c2ad 100644 --- a/crates/weaver-renderer/src/types.rs +++ b/crates/weaver-renderer/src/types.rs @@ -1,34 +1,34 @@ -use atrium_api::types::string::{Cid, Did}; use compact_string::CompactString; use http::Uri; +use weaver_common::jacquard::types::string::{Cid, Did}; -pub struct Link { +pub struct Link<'a> { pub uri: Uri, - pub blob: BlobLink, + pub blob: BlobLink<'a>, } pub type MimeType = CompactString; -pub enum BlobLink { +pub enum BlobLink<'a> { PDS { pds_host: String, - did: Did, - cid: Cid, + did: Did<'a>, + cid: Cid<'a>, mime_type: MimeType, }, - BskyCdn(CdnLink), - WeaverCdn(CdnLink), + BskyCdn(CdnLink<'a>), + WeaverCdn(CdnLink<'a>), } -pub enum CdnLink { - Avatar(Did, Cid, MimeType), - Banner(Did, Cid, MimeType), - Thumbnail(Did, Cid, MimeType), - PostImage(Did, Cid, MimeType), - EmbedImage(Did, Cid, MimeType), +pub enum CdnLink<'a> { + Avatar(Did<'a>, Cid<'a>, MimeType), + Banner(Did<'a>, Cid<'a>, MimeType), + Thumbnail(Did<'a>, Cid<'a>, MimeType), + PostImage(Did<'a>, Cid<'a>, MimeType), + EmbedImage(Did<'a>, Cid<'a>, MimeType), } -impl std::fmt::Display for BlobLink { +impl std::fmt::Display for BlobLink<'_> { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { BlobLink::PDS { @@ -57,7 +57,7 @@ impl std::fmt::Display for BlobLink { } } -impl BlobLink { +impl<'a> BlobLink<'a> { #[inline] pub fn url_prefix(&self) -> &str { match self { @@ -82,7 +82,7 @@ impl BlobLink { } #[inline] - pub const fn did(&self) -> &Did { + pub const fn did(&self) -> &Did<'a> { match self { BlobLink::PDS { did, .. } => did, BlobLink::BskyCdn(CdnLink::Avatar(did, ..)) @@ -99,7 +99,7 @@ impl BlobLink { } #[inline] - pub const fn cid(&self) -> &Cid { + pub const fn cid(&self) -> &Cid<'a> { match self { BlobLink::PDS { cid, .. } => cid, BlobLink::BskyCdn(CdnLink::Avatar(_, cid, ..)) diff --git a/crates/weaver-server/Cargo.toml b/crates/weaver-server/Cargo.toml index 4d496a4..f80d495 100644 --- a/crates/weaver-server/Cargo.toml +++ b/crates/weaver-server/Cargo.toml @@ -17,6 +17,9 @@ path = "src/lib.rs" weaver-common = { path = "../weaver-common" } weaver-workspace-hack = { version = "0.1", path = "../weaver-workspace-hack" } +jacquard = { workspace = true, features = ["tracing"] } +jacquard-axum = { workspace = true } + axum = "0.8" tokio = { version = "1.44", features = ["full"] } notify = "8.0" diff --git a/crates/weaver-workspace-hack/Cargo.toml b/crates/weaver-workspace-hack/Cargo.toml index 31a07cf..ef7bba5 100644 --- a/crates/weaver-workspace-hack/Cargo.toml +++ b/crates/weaver-workspace-hack/Cargo.toml @@ -16,23 +16,28 @@ publish = false ### BEGIN HAKARI SECTION [dependencies] -base16ct = { version = "0.2", default-features = false, features = ["alloc"] } +aho-corasick = { version = "1" } byteorder = { version = "1" } +bytes = { version = "1", features = ["serde"] } chrono = { version = "0.4", features = ["serde"] } data-encoding = { version = "2" } -der = { version = "0.7", default-features = false, features = ["oid", "pem"] } diesel = { version = "2", features = ["chrono", "i-implement-a-third-party-backend-and-opt-into-breaking-changes", "postgres", "serde_json", "sqlite"] } diesel-async = { version = "0.5", features = ["deadpool", "postgres", "sync-connection-wrapper"] } -ecdsa = { version = "0.16", features = ["alloc", "der", "signing", "verifying"] } -either = { version = "1", features = ["use_std"] } -elliptic-curve = { version = "0.13", features = ["digest", "hazmat", "jwk", "pem"] } +elliptic-curve = { version = "0.13", features = ["digest", "hazmat", "jwk", "pem", "std"] } fastrand = { version = "2" } -ff = { version = "0.13", default-features = false, features = ["alloc"] } futures-channel = { version = "0.3", features = ["sink"] } +futures-core = { version = "0.3" } +futures-task = { version = "0.3", default-features = false, features = ["std"] } +futures-util = { version = "0.3", features = ["channel", "io", "sink"] } generic-array = { version = "0.14", default-features = false, features = ["more_lengths", "serde", "zeroize"] } -group = { version = "0.13", default-features = false, features = ["alloc"] } hashbrown = { version = "0.15", features = ["serde"] } idna = { version = "1" } +jacquard = { git = "https://tangled.org/@nonbinary.computer/jacquard", default-features = false, features = ["api_bluesky", "derive", "dns", "loopback", "tracing", "websocket", "zstd"] } +jacquard-api = { git = "https://tangled.org/@nonbinary.computer/jacquard", features = ["bluesky", "sh_weaver"] } +jacquard-common = { git = "https://tangled.org/@nonbinary.computer/jacquard", features = ["tracing", "websocket", "zstd"] } +jacquard-identity = { git = "https://tangled.org/@nonbinary.computer/jacquard", default-features = false, features = ["dns", "tracing"] } +jacquard-lexicon = { git = "https://tangled.org/@nonbinary.computer/jacquard" } +jacquard-oauth = { git = "https://tangled.org/@nonbinary.computer/jacquard", features = ["browser-open", "loopback", "tracing"] } log = { version = "0.4", default-features = false, features = ["std"] } memchr = { version = "2", features = ["use_std"] } miette = { version = "7", features = ["fancy", "syntect-highlighter"] } @@ -41,37 +46,69 @@ minijinja = { version = "2" } num-traits = { version = "0.2", default-features = false, features = ["i128", "libm", "std"] } p384 = { version = "0.13", default-features = false, features = ["ecdsa"] } percent-encoding = { version = "2" } -pkcs8 = { version = "0.10", default-features = false, features = ["pem"] } -proc-macro2 = { version = "1" } -quote = { version = "1" } -rand_core = { version = "0.6", default-features = false, features = ["std"] } -reqwest = { version = "0.12", features = ["gzip", "json", "rustls-tls"] } -scopeguard = { version = "1" } -sec1 = { version = "0.7", features = ["pem", "serde", "subtle"] } -serde = { version = "1", features = ["alloc", "derive"] } +rand = { version = "0.8", features = ["small_rng"] } +regex-automata = { version = "0.4", default-features = false, features = ["dfa-onepass", "hybrid", "meta", "nfa", "perf", "std", "unicode"] } +reqwest = { version = "0.12", features = ["gzip", "json", "rustls-tls", "stream"] } +sec1 = { version = "0.7", features = ["pem", "serde", "std", "subtle"] } +serde_core = { version = "1", features = ["alloc"] } serde_json = { version = "1", features = ["alloc", "preserve_order", "raw_value"] } sha2 = { version = "0.10", features = ["oid"] } smallvec = { version = "1", default-features = false, features = ["const_new"] } -spki = { version = "0.7", default-features = false, features = ["pem"] } +spin = { version = "0.9", default-features = false, features = ["once", "spin_mutex"] } subtle = { version = "2" } syn = { version = "2", features = ["extra-traits", "fold", "full", "visit", "visit-mut"] } +syntect = { version = "5", features = ["default-fancy"] } time = { version = "0.3", features = ["formatting", "local-offset", "macros", "parsing"] } tokio = { version = "1", features = ["full"] } tokio-util = { version = "0.7", features = ["codec", "io"] } toml = { version = "0.8", features = ["preserve_order"] } +tower-http = { version = "0.6", features = ["cors", "fs", "normalize-path", "request-id", "timeout", "trace"] } tracing = { version = "0.1", features = ["log"] } tracing-core = { version = "0.1" } +uuid = { version = "1", features = ["serde", "v4", "v7"] } zeroize = { version = "1", features = ["derive", "serde"] } [build-dependencies] +aho-corasick = { version = "1" } +bytes = { version = "1", features = ["serde"] } +cc = { version = "1", default-features = false, features = ["parallel"] } +chrono = { version = "0.4", features = ["serde"] } data-encoding = { version = "2" } diesel_derives = { version = "2", features = ["32-column-tables", "chrono", "postgres", "sqlite", "with-deprecated"] } -either = { version = "1", features = ["use_std"] } +elliptic-curve = { version = "0.13", features = ["digest", "hazmat", "jwk", "pem", "std"] } +fastrand = { version = "2" } +futures-channel = { version = "0.3", features = ["sink"] } +futures-core = { version = "0.3" } +futures-task = { version = "0.3", default-features = false, features = ["std"] } +futures-util = { version = "0.3", features = ["channel", "io", "sink"] } +generic-array = { version = "0.14", default-features = false, features = ["more_lengths", "serde", "zeroize"] } hashbrown = { version = "0.15", features = ["serde"] } -proc-macro2 = { version = "1" } -quote = { version = "1" } -serde = { version = "1", features = ["alloc", "derive"] } +idna = { version = "1" } +jacquard-common = { git = "https://tangled.org/@nonbinary.computer/jacquard", features = ["tracing", "websocket", "zstd"] } +jacquard-lexicon = { git = "https://tangled.org/@nonbinary.computer/jacquard" } +log = { version = "0.4", default-features = false, features = ["std"] } +memchr = { version = "2", features = ["use_std"] } +miette = { version = "7", features = ["fancy", "syntect-highlighter"] } +num-traits = { version = "0.2", default-features = false, features = ["i128", "libm", "std"] } +percent-encoding = { version = "2" } +rand = { version = "0.8", features = ["small_rng"] } +regex-automata = { version = "0.4", default-features = false, features = ["dfa-onepass", "hybrid", "meta", "nfa", "perf", "std", "unicode"] } +reqwest = { version = "0.12", features = ["gzip", "json", "rustls-tls", "stream"] } +sec1 = { version = "0.7", features = ["pem", "serde", "std", "subtle"] } +serde_core = { version = "1", features = ["alloc"] } +serde_json = { version = "1", features = ["alloc", "preserve_order", "raw_value"] } +sha2 = { version = "0.10", features = ["oid"] } +smallvec = { version = "1", default-features = false, features = ["const_new"] } +spin = { version = "0.9", default-features = false, features = ["once", "spin_mutex"] } +subtle = { version = "2" } syn = { version = "2", features = ["extra-traits", "fold", "full", "visit", "visit-mut"] } +syntect = { version = "5", features = ["default-fancy"] } +time = { version = "0.3", features = ["formatting", "local-offset", "macros", "parsing"] } +tokio = { version = "1", features = ["full"] } +tokio-util = { version = "0.7", features = ["codec", "io"] } toml = { version = "0.8", features = ["preserve_order"] } +tracing = { version = "0.1", features = ["log"] } +tracing-core = { version = "0.1" } +zeroize = { version = "1", features = ["derive", "serde"] } ### END HAKARI SECTION diff --git a/flake.lock b/flake.lock index 8c48f73..96367ce 100644 --- a/flake.lock +++ b/flake.lock @@ -3,11 +3,11 @@ "advisory-db": { "flake": false, "locked": { - "lastModified": 1747489415, - "narHash": "sha256-CLQVUrdiRhJx0JppNZxx8FhgUbcliQUIYVI9Aclk39g=", + "lastModified": 1761631338, + "narHash": "sha256-F6dlUrDiShwhMfPR+WoVmaQguGdEwjW9SI4nKlkay7c=", "owner": "rustsec", "repo": "advisory-db", - "rev": "f16bc6329058299fb558e8f78eb3b065a4d14ea5", + "rev": "2e45336771e36acf5bcefe7c99280ab214719707", "type": "github" }, "original": { @@ -18,11 +18,11 @@ }, "crane": { "locked": { - "lastModified": 1747587869, - "narHash": "sha256-Zay3WJdSvC2VQmNqWSVLBOg/1iS/0/Q0c9JOBsB+3qw=", + "lastModified": 1760924934, + "narHash": "sha256-tuuqY5aU7cUkR71sO2TraVKK2boYrdW3gCSXUkF4i44=", "owner": "ipetkov", "repo": "crane", - "rev": "76603d32f18e0e378d9f6335c8fc286413493655", + "rev": "c6b4d5308293d0d04fcfeee92705017537cad02f", "type": "github" }, "original": { @@ -51,11 +51,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1747728033, - "narHash": "sha256-NnXFQu7g4LnvPIPfJmBuZF7LFy/fey2g2+LCzjQhTUk=", + "lastModified": 1761594641, + "narHash": "sha256-sImk6SJQASDLQo8l+0zWWaBgg7TueLS6lTvdH5pBZpo=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "2f9173bde1d3fbf1ad26ff6d52f952f9e9da52ea", + "rev": "1666250dbe4141e4ca8aaf89b40a3a51c2e36144", "type": "github" }, "original": { @@ -95,11 +95,11 @@ "nixpkgs": "nixpkgs_2" }, "locked": { - "lastModified": 1747795013, - "narHash": "sha256-c7i0xJ+xFhgjO9SWHYu5dF/7lq63RPDvwKAdjc6VCE4=", + "lastModified": 1761619008, + "narHash": "sha256-vp97eNmi5GG/+jlvnBpmG6EVO2F1+nqMQFF9GT2TIQg=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "6b1cf12374361859242a562e1933a7930649131a", + "rev": "7bc7d2f706ebe5479d230d2c6806b5dc757ae4cd", "type": "github" }, "original": { -- knotmirror 0.0.1