@devvit/protos 0.12.1-next-2025-09-08-20-55-43-6ce1b439e.0 → 0.12.1-next-2025-09-09-13-45-18-0f0a506a2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/json/devvit/data/api/admin/v1alpha/organization.d.ts +7 -0
- package/json/devvit/data/api/admin/v1alpha/organization.d.ts.map +1 -1
- package/json/devvit/data/api/v1alpha/admin.d.ts +3 -0
- package/json/devvit/data/api/v1alpha/admin.d.ts.map +1 -1
- package/json/devvit/data/api/v1alpha/filter.d.ts +81 -0
- package/json/devvit/data/api/v1alpha/filter.d.ts.map +1 -0
- package/json/devvit/data/api/v1alpha/filter.js +21 -0
- package/package.json +4 -4
- package/schema/.snootobuf/deps/.snootobuf/deps/buf/validate/expression.proto +92 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/buf/validate/priv/private.proto +41 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/buf/validate/validate.proto +4130 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/actor/automation/v1alpha/event_handlers.proto +105 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/actor/hello/hello.proto +18 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/actor/payments/v1alpha/payments.proto +41 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/actor/producer/producer.proto +22 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/actor/reddit/context_action.proto +92 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/actor/reddit/context_type.proto +14 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/actor/reddit/post_filter.proto +20 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/actor/scheduler/action.proto +15 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/actor/scheduler/handler.proto +15 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/actor/settings/v1alpha/app_settings.proto +21 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/actor/settings/v1alpha/installation_settings.proto +21 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/actor/settings/v1alpha/instance_settings.proto +20 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/actor/settings/v1alpha/shared.proto +34 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/actor/test/wrappertypes.proto +18 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/actor/user_configurable/user_configurable.proto +55 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/actor/webbit/webbit.proto +34 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/analytics/v1/analytics.proto +32 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/cli/init.proto +14 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/cli/playtest.proto +41 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/data/api/admin/v1alpha/audit.proto +72 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/data/api/admin/v1alpha/auth.proto +49 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/data/api/admin/v1alpha/organization.proto +54 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/data/api/admin/v1alpha/service.proto +46 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/data/api/admin/v1alpha/subscription.proto +72 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/data/api/admin/v1alpha/ui.proto +20 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/data/api/admin/v1alpha/user.proto +45 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/data/api/v1alpha/admin.proto +54 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/data/api/v1alpha/delivery.proto +804 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/data/api/v1alpha/fetcher.proto +20 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/data/api/v1alpha/filter.proto +66 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/data/api/v1alpha/firehose.proto +138 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/data/api/v1alpha/intake.proto +19 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/debug/v1alpha/debug.proto +18 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/dev_portal/actor/actor_type.proto +12 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/dev_portal/admin/waitlist_admin.proto +72 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/dev_portal/admin_portal.proto +38 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/dev_portal/app/app.proto +365 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/dev_portal/app/categories/categories.proto +60 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/dev_portal/app/info/app_info.proto +88 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/dev_portal/app_publish_request/app_publish_request.proto +121 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/dev_portal/app_publish_request/note/app_publish_request_note.proto +29 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/dev_portal/app_publish_request/review/app_publish_request_review.proto +27 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/dev_portal/app_settings/app_settings.proto +48 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/dev_portal/app_version/app_version.proto +168 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/dev_portal/app_version/info/app_version_info.proto +88 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/dev_portal/data_api/admin/audit/audit.proto +75 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/dev_portal/data_api/admin/auth/auth.proto +41 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/dev_portal/data_api/admin/organization/organization.proto +41 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/dev_portal/data_api/admin/subscription/subscription.proto +91 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/dev_portal/data_api/admin/user/user.proto +44 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/dev_portal/dev_portal.proto +193 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/dev_portal/developer_account/developer_account.proto +46 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/dev_portal/feedback/feedback.proto +10 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/dev_portal/fetch_domain/fetch_domain.proto +19 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/dev_portal/fetch_domain_request/fetch_domain_request.proto +64 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/dev_portal/installation/installation.proto +230 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/dev_portal/installation_settings/installation_settings.proto +51 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/dev_portal/internal/authorization/v1alpha/authorization.proto +45 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/dev_portal/internal/community_drawer/community_drawer.proto +24 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/dev_portal/internal/data_api/v1alpha/admin/admin.proto +26 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/dev_portal/internal/data_api/v1alpha/admin/firehose_monitor.proto +19 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/dev_portal/internal/media/media.proto +43 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/dev_portal/nutrition/nutrition.proto +64 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/dev_portal/payments/payments_verification.proto +29 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/dev_portal/payments/product.proto +11 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/dev_portal/reddit/redditor.proto +14 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/dev_portal/waitlist/waitlist.proto +61 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/events/v1alpha/events.proto +446 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/events/v1alpha/realtime.proto +25 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/events/v1alpha/wqcleanup.proto +10 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/gateway/cache/v1alpha/cache.proto +14 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/gateway/custom_post_snapshot.proto +15 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/gateway/playtest_subreddit/playtest_subreddit.proto +24 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/gateway/resolvers.proto +15 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/gateway/utils/v1alpha/app_health.proto +18 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/gateway/utils/v1alpha/utilities.proto +58 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/gateway/v1alpha/payments.proto +24 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/gateway/v1alpha/triggers.proto +37 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/gql/snapshot.proto +11 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/gql/subreddit_metadata.proto +54 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/options/options.proto +98 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/payments/v1alpha/common.proto +13 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/payments/v1alpha/order.proto +48 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/payments/v1alpha/product.proto +65 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/assetresolver/assetresolver.proto +51 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/buildpack/buildpack_common.proto +64 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/clock/clock.proto +13 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/http/http.proto +29 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/inspector/inspector.proto +17 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/kvstore/kvstore.proto +28 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/logger/logger.proto +116 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/media/media.proto +20 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/modlog/modlog.proto +31 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/payments/v1alpha/payments.proto +72 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/redditapi/common/common_msg.proto +671 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/redditapi/flair/flair_msg.proto +284 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/redditapi/flair/flair_svc.proto +120 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/redditapi/graphql/graphql_msg.proto +35 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/redditapi/graphql/graphql_svc.proto +19 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/redditapi/linksandcomments/linksandcomments_msg.proto +291 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.proto +253 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/redditapi/listings/listings_msg.proto +214 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/redditapi/listings/listings_svc.proto +80 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/redditapi/moderation/moderation_msg.proto +137 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/redditapi/moderation/moderation_svc.proto +178 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/redditapi/modnote/modnote_msg.proto +104 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/redditapi/modnote/modnote_svc.proto +45 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/redditapi/newmodmail/newmodmail_msg.proto +348 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/redditapi/newmodmail/newmodmail_svc.proto +142 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/redditapi/privatemessages/privatemessages_msg.proto +48 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/redditapi/privatemessages/privatemessages_svc.proto +84 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/redditapi/subreddits/subreddits_msg.proto +1087 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/redditapi/subreddits/subreddits_svc.proto +196 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/redditapi/users/users_msg.proto +192 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/redditapi/users/users_svc.proto +101 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/redditapi/widgets/widgets_msg.proto +383 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/redditapi/widgets/widgets_svc.proto +171 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/redditapi/wiki/wiki_msg.proto +217 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/redditapi/wiki/wiki_svc.proto +91 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/redis/redisapi.proto +434 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/scheduler/scheduler.proto +80 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/settings/v1alpha/settings.proto +33 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/timer/timer.proto +16 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/useractions/useractions.proto +18 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/v1alpha/pushnotif/pushnotif.proto +52 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/plugin/v2events/v2events.proto +43 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/reddit/comment.proto +104 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/reddit/common.proto +104 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/reddit/custom_actions/v2alpha/custom_actions.proto +73 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/reddit/custom_post/v1alpha/custom_post.proto +84 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/reddit/post.proto +192 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/reddit/subreddit.proto +138 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/reddit/thing_type.proto +16 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/reddit/user.proto +138 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/reddit/v2alpha/commentv2.proto +30 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/reddit/v2alpha/flair.proto +25 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/reddit/v2alpha/modaction.proto +53 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/reddit/v2alpha/modmail.proto +56 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/reddit/v2alpha/postv2.proto +109 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/reddit/v2alpha/subredditv2.proto +41 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/reddit/v2alpha/userv2.proto +23 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/remote_logger/remote_logger.proto +65 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/runtime/actor/bootstrap.proto +15 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/runtime/actor/v1alpha/health.proto +18 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/runtime/bundle.proto +171 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/runtime/runtime_common.proto +10 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/runtime/serializable.proto +28 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/service/bundle_service.proto +22 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/triggers/v1alpha/triggers.proto +162 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/ui/block_kit/v1beta/attributes.proto +69 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/ui/block_kit/v1beta/block.proto +212 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/ui/block_kit/v1beta/enums.proto +221 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/ui/block_kit/v1beta/rendering.proto +27 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/ui/block_kit/v1beta/ui.proto +100 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/ui/common/v1alpha/common.proto +21 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/ui/effect_types/v1alpha/realtime_subscription.proto +26 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/ui/effects/v1alpha/app_permission.proto +19 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/ui/effects/v1alpha/create_order.proto +39 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/ui/effects/v1alpha/effect.proto +71 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/ui/effects/v1alpha/interval.proto +31 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/ui/effects/v1alpha/navigate_to_url.proto +12 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/ui/effects/v1alpha/realtime_subscriptions.proto +26 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/ui/effects/v1alpha/reload_part.proto +48 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/ui/effects/v1alpha/rerender_ui.proto +12 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/ui/effects/v1alpha/show_form.proto +26 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/ui/effects/v1alpha/show_toast.proto +18 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/ui/effects/web_view/v1alpha/context.proto +150 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/ui/effects/web_view/v1alpha/fullscreen.proto +21 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/ui/effects/web_view/v1alpha/immersive_mode.proto +16 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/ui/effects/web_view/v1alpha/post_message.proto +104 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/ui/effects/web_view/v1alpha/share.proto +22 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/ui/effects/web_view/v1alpha/web_view.proto +17 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/ui/events/v1alpha/event.proto +113 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/ui/events/v1alpha/handle_ui.proto +30 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/ui/events/v1alpha/web_view.proto +55 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/ui/form_builder/v1alpha/field.proto +134 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/ui/form_builder/v1alpha/form.proto +27 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/ui/form_builder/v1alpha/type.proto +32 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/ui/form_builder/v1alpha/value.proto +52 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/ui/toast/toast.proto +48 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/devvit/uuid.proto +12 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/enum/account_gender_category.proto +14 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/enum/approval_status.proto +15 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/enum/automated_reporting_level.proto +12 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/enum/ban_evasion_threshold.proto +13 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/enum/ban_info_action.proto +12 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/enum/block_relation_type.proto +11 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/enum/comment_sort.proto +18 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/enum/comment_type.proto +11 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/enum/crowd_control_level.proto +12 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/enum/discussion_type.proto +10 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/enum/distinguish_type.proto +14 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/enum/flair_position.proto +11 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/enum/hateful_content_threshold.proto +12 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/enum/link_content_type.proto +11 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/enum/link_type.proto +11 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/enum/link_visibility.proto +11 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/enum/prediction_leaderboard_entry_type.proto +11 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/enum/promo_layout.proto +11 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/enum/removed_by_type.proto +18 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/enum/spam_level.proto +11 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/enum/subreddit_type.proto +16 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/enum/verdict.proto +14 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/enum/vote.proto +12 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/enum/whitelist_status.proto +17 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/enum/wiki_edit_mode.proto +12 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/evaluator/evaluator.proto +203 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/annotations.proto +31 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/apikeys/v2/apikeys.proto +274 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/apikeys/v2/resources.proto +172 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/auth.proto +180 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/backend.proto +50 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/billing.proto +66 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/client.proto +99 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/cloudquotas/v1/cloudquotas.proto +290 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/cloudquotas/v1/resources.proto +312 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/config_change.proto +84 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/consumer.proto +82 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/context.proto +62 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/control.proto +32 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/distribution.proto +212 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/documentation.proto +156 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/endpoint.proto +70 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/error_reason.proto +589 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/expr/conformance/v1alpha1/conformance_service.proto +180 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/expr/v1alpha1/checked.proto +343 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/expr/v1alpha1/eval.proto +118 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/expr/v1alpha1/explain.proto +53 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/expr/v1alpha1/syntax.proto +438 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/expr/v1alpha1/value.proto +115 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/expr/v1beta1/decl.proto +84 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/expr/v1beta1/eval.proto +125 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/expr/v1beta1/expr.proto +265 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/expr/v1beta1/source.proto +62 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/expr/v1beta1/value.proto +114 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/field_behavior.proto +84 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/field_info.proto +106 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/http.proto +317 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/httpbody.proto +75 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/label.proto +48 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/launch_stage.proto +67 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/log.proto +54 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/logging.proto +82 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/metric.proto +191 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/monitored_resource.proto +115 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/monitoring.proto +88 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/policy.proto +85 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/quota.proto +258 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/resource.proto +299 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/routing.proto +461 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/service.proto +174 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/servicecontrol/v1/check_error.proto +124 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/servicecontrol/v1/distribution.proto +166 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/servicecontrol/v1/http_request.proto +93 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/servicecontrol/v1/log_entry.proto +126 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/servicecontrol/v1/metric_value.proto +81 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/servicecontrol/v1/operation.proto +123 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/servicecontrol/v1/quota_controller.proto +245 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/servicecontrol/v1/service_controller.proto +260 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/servicecontrol/v2/service_controller.proto +196 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/servicemanagement/v1/resources.proto +295 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/servicemanagement/v1/servicemanager.proto +483 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/serviceusage/v1/resources.proto +130 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/serviceusage/v1/serviceusage.proto +295 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/serviceusage/v1beta1/resources.proto +458 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/serviceusage/v1beta1/serviceusage.proto +756 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/source_info.proto +31 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/system_parameter.proto +95 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/usage.proto +91 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/api/visibility.proto +113 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/cloud/extended_operations.proto +150 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/iam/admin/v1/iam.proto +1043 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/iam/v1/iam_policy.proto +148 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/iam/v1/logging/audit_data.proto +34 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/iam/v1/options.proto +41 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/iam/v1/policy.proto +240 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/logging/type/http_request.proto +91 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/logging/type/log_severity.proto +71 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/longrunning/operations.proto +240 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/protobuf/any.proto +158 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/protobuf/api.proto +208 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/protobuf/compiler/plugin.proto +182 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/protobuf/descriptor.proto +902 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/protobuf/duration.proto +116 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/protobuf/empty.proto +51 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/protobuf/field_mask.proto +245 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/protobuf/source_context.proto +48 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/protobuf/struct.proto +95 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/protobuf/timestamp.proto +147 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/protobuf/type.proto +187 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/protobuf/wrappers.proto +123 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/rpc/code.proto +186 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/rpc/context/attribute_context.proto +287 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/rpc/error_details.proto +246 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/rpc/status.proto +47 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/type/calendar_period.proto +57 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/type/color.proto +170 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/type/date.proto +50 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/type/datetime.proto +97 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/type/dayofweek.proto +51 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/type/expr.proto +51 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/type/fraction.proto +34 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/type/latlng.proto +37 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/type/money.proto +43 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/type/month.proto +66 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/type/postal_address.proto +135 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/type/quaternion.proto +95 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/google/type/timeofday.proto +44 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/openapi/helper.proto +50 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/protoc-gen-openapiv2/options/annotations.proto +51 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/protoc-gen-openapiv2/options/openapiv2.proto +759 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/api/metadata/v1/metadata.proto +55 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/account/v1/account.proto +585 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/account/v1/account_relations.proto +43 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/api/metadata/v1/metadata.proto +82 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/blocking/v1/user_blocking_service.proto +221 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/cloudroutines/callback/v1/callback_service.proto +92 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/cloudroutines/event/v1/event.proto +52 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/cloudroutines/experimental/v1/experimental.proto +71 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/cloudroutines/interop/analytics/v1/analytics.proto +12 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/cloudroutines/interop/generic/v1/generic.proto +12 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/cloudroutines/loadbalancing/v1/loadbalancing.proto +43 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/cloudroutines/metadata/v1/metadata.proto +20 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/cloudroutines/operation/v1/operation.proto +148 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/cloudroutines/publication/v1/publication_service.proto +56 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/cloudroutines/scheduling/v1/offsets.proto +17 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/cloudroutines/scheduling/v1/scheduling.proto +25 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/cloudroutines/testing/v1/testing.proto +72 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/cloudroutines/workerpool/v1/workerpool.proto +213 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree.proto +78 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree_service.proto +189 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree_structure.proto +29 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/comments/v1/comments.proto +446 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/comments/v1/comments_service.proto +72 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/common/v1/auth.proto +25 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/common/v1/features.proto +52 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/common/v1/lang.proto +16 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/common/v1/legal.proto +20 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/common/v1/media.proto +149 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/common/v1/moderation.proto +197 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/common/v1/safety.proto +116 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/common/v1/time.proto +25 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/domains/v1/domains_metadata_service.proto +101 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/events/account/v1/account.proto +56 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/events/account/v1/account_relations.proto +93 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/events/cloudevent/v1/cloudevent.proto +67 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/events/comments/v1/comments.proto +59 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/events/common/v1/actor.proto +43 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/events/common/v1/event_attr_key.proto +19 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/events/common/v1/event_extensions.proto +26 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/events/common/v1/eventcontext.proto +69 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/events/links/v1/links.proto +59 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/events/subreddit/v1/subreddit.proto +86 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/events/subreddit/v1/subreddit_member_relations.proto +52 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/grpc_thrift/v1/grpc_thrift_options.proto +34 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/links/v1/links.proto +805 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/links/v1/links_service.proto +186 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/messages/v1/messages.proto +110 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/sensitive/v1/wrappers.proto +51 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit.proto +1202 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_member_relations.proto +85 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_moderator_service.proto +363 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_service.proto +301 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/coreplatform/thing/v0/thing.proto +2869 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/data/engagement/v1/engagement.proto +117 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/devvit/ads/v1/ads.proto +14 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/devvit/app_permission/v1/app_permission.proto +76 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/devvit/app_permission/v1/service.proto +13 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/devvit/drawer_games/v1/drawer_games.proto +39 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/devvit/drawer_games/v1/service.proto +12 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/devvit/post/v1/post.proto +119 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/devvit/post/v1/service.proto +14 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/devvit/subreddit/v1/manifest.proto +92 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/devvit/subreddit/v1/metadata_service.proto +22 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/devvit/subreddit/v1/service.proto +12 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/devvit/useractions/v1/useractions.proto +13 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/acknowledge_order_delivery.proto +17 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/cancel_subscription.proto +16 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/change_payment_method.proto +21 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/checkout.proto +86 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/common.proto +426 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/contributor_program.proto +40 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/delete_products.proto +17 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/deposit_gold.proto +28 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/events.proto +35 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_aggregated_transactions_list.proto +37 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_batch_products.proto +15 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_gold_balances.proto +56 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_order.proto +15 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_orders.proto +26 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_orders_by_user.proto +16 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_payout_info_batch.proto +51 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_products.proto +24 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_subscriptions.proto +66 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_transaction_list.proto +28 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_user_profiles.proto +28 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/refund_order.proto +19 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/revoke_subscription.proto +15 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/service.proto +86 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/service_data_compliance.proto +55 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/transfer_subscription.proto +16 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/upsert_products.proto +17 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/xpaymentsplatform/paycommon/v1/environment.proto +12 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/xpaymentsplatform/paycommon/v1/order_status_reason.proto +29 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/xpaymentsplatform/paygatewaypsps/v1/paygatewaypsps.proto +304 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/xpaymentsplatform/payorders/v1/events.proto +14 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/xpaymentsplatform/payorders/v1/order.proto +80 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/xpaymentsplatform/payorders/v1/payments_data_compliance.proto +18 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/xpaymentsplatform/payorders/v1/payorders.proto +168 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/admin.proto +44 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/ledger.proto +254 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/payments_data_compliance.proto +43 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/paypayments.proto +293 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/xpaymentsplatform/payproducts/v1/currencies.proto +189 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/xpaymentsplatform/payproducts/v1/payments_data_compliance.proto +18 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/reddit/xpaymentsplatform/payproducts/v1/payproducts.proto +220 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/snooron_sources/text_classification/text_classification.proto +29 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/snooron_sources/v2_event/v2_event.proto +3292 -0
- package/schema/.snootobuf/deps/.snootobuf/deps/validate/validate.proto +862 -0
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/audit.proto +26 -1
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/auth.proto +1 -1
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/organization.proto +10 -1
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/service.proto +2 -1
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/subscription.proto +16 -1
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/ui.proto +1 -1
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/user.proto +1 -1
- package/schema/.snootobuf/deps/devvit/data/api/v1alpha/admin.proto +4 -1
- package/schema/.snootobuf/deps/devvit/data/api/v1alpha/intake.proto +1 -1
- package/schema/.snootobuf/deps/devvit/dev_portal/v1/installation.proto +12 -0
- package/schema/.snootobuf/deps/devvit/gateway/cache/v1alpha/cache.proto +1 -4
- package/schema/.snootobuf/deps/devvit/gateway/utils/v1alpha/utilities.proto +0 -1
- package/schema/.snootobuf/deps/devvit/plugin/redditapi/common/common_msg.proto +0 -3
- package/schema/.snootobuf/deps/devvit/plugin/redditapi/subreddits/subreddits_svc.proto +0 -2
- package/schema/.snootobuf/deps/devvit/plugin/v1alpha/pushnotif/pushnotif.proto +0 -55
- package/schema/.snootobuf/deps/devvit/runtime/bundle.proto +0 -4
- package/schema/.snootobuf/deps/devvit/triggers/v1alpha/triggers.proto +1 -1
- package/schema/.snootobuf/deps/devvit/ui/effects/v1alpha/app_permission.proto +1 -2
- package/schema/.snootobuf/deps/devvit/ui/effects/v1alpha/effect.proto +2 -2
- package/schema/.snootobuf/deps/devvit/ui/effects/v1alpha/show_toast.proto +18 -0
- package/schema/.snootobuf/deps/devvit/ui/effects/web_view/v1alpha/context.proto +0 -14
- package/schema/.snootobuf/deps/devvit/ui/effects/web_view/v1alpha/fullscreen.proto +0 -4
- package/schema/.snootobuf/deps/devvit/ui/effects/web_view/v1alpha/post_message.proto +2 -5
- package/schema/.snootobuf/deps/devvit/ui/events/v1alpha/event.proto +2 -2
- package/schema/.snootobuf/deps/devvit/ui/events/v1alpha/web_view.proto +2 -16
- package/schema/.snootobuf/deps/reddit/devvit/common/v1/app.proto +44 -0
- package/schema/.snootobuf/deps/reddit/devvit/common/v1/context_action.proto +48 -0
- package/schema/.snootobuf/deps/reddit/devvit/common/v1/error_message.proto +9 -0
- package/schema/.snootobuf/deps/reddit/devvit/common/v1/installation.proto +23 -0
- package/schema/.snootobuf/deps/reddit/devvit/drawer_games/v1/drawer_games.proto +4 -3
- package/schema/.snootobuf/deps/reddit/devvit/post/v1/post.proto +31 -7
- package/schema/.snootobuf/deps/reddit/devvit/post/v1/promoted_post.proto +32 -0
- package/schema/.snootobuf/deps/reddit/devvit/post/v1/service.proto +4 -0
- package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/manifest.proto +7 -56
- package/schema/devvit/data/api/v1alpha/filter.proto +68 -0
- package/schema/devvit/dev_portal/data_api/admin/audit/audit.proto +2 -0
- package/schema/devvit/dev_portal/data_api/admin/auth/auth.proto +2 -0
- package/schema/devvit/dev_portal/data_api/admin/organization/organization.proto +2 -0
- package/schema/devvit/dev_portal/data_api/admin/subscription/subscription.proto +2 -0
- package/schema/devvit/dev_portal/data_api/admin/user/user.proto +2 -0
- package/schema/snootobuf.lock +0 -0
- package/schema/snootobuf.redditapi.lock +0 -0
- package/schema/snootobuf.yaml +2 -4
- package/types/devvit/data/api/admin/v1alpha/organization.d.ts +25 -0
- package/types/devvit/data/api/admin/v1alpha/organization.d.ts.map +1 -1
- package/types/devvit/data/api/admin/v1alpha/organization.js +122 -0
- package/types/devvit/data/api/v1alpha/admin.d.ts +3 -0
- package/types/devvit/data/api/v1alpha/admin.d.ts.map +1 -1
- package/types/devvit/data/api/v1alpha/admin.js +47 -0
- package/types/devvit/data/api/v1alpha/filter.d.ts +161 -0
- package/types/devvit/data/api/v1alpha/filter.d.ts.map +1 -0
- package/types/devvit/data/api/v1alpha/filter.js +984 -0
- package/types/devvit/dev_portal/dev_portal.d.ts +48 -0
- package/types/devvit/dev_portal/dev_portal.d.ts.map +1 -1
- package/types/devvit/dev_portal/internal/data_api/v1alpha/admin/admin.d.ts +12 -0
- package/types/devvit/dev_portal/internal/data_api/v1alpha/admin/admin.d.ts.map +1 -1
- /package/schema/.snootobuf/deps/{products-api → .snootobuf/deps/products-api}/protos/reddit/xpaymentsplatform/payproducts/v1/currencies.proto +0 -0
- /package/schema/.snootobuf/deps/{products-api → .snootobuf/deps/products-api}/protos/reddit/xpaymentsplatform/payproducts/v1/payproducts.proto +0 -0
- /package/schema/.snootobuf/deps/{reddit → .snootobuf/deps/reddit}/devvit/custom_post/v1/custom_post.proto +0 -0
- /package/schema/.snootobuf/deps/{reddit → .snootobuf/deps/reddit}/devvit/custom_post/v1/service.proto +0 -0
- /package/schema/.snootobuf/deps/{reddit → .snootobuf/deps/reddit}/devvit/subreddit/v1/context_action.proto +0 -0
package/schema/.snootobuf/deps/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/ledger.proto
ADDED
@@ -0,0 +1,254 @@
|
|
1
|
+
syntax = "proto3";
|
2
|
+
|
3
|
+
package reddit.xpaymentsplatform.paypayments.v1;
|
4
|
+
|
5
|
+
import "google/protobuf/timestamp.proto";
|
6
|
+
|
7
|
+
option go_package = "github.snooguts.net/reddit/reddit-service-pay-payments/payments-api/api/xpaymentsplatform/paypaymentspb/v1;paypaymentspb";
|
8
|
+
|
9
|
+
message PutGoldPurchaseRequest {
|
10
|
+
// Idempotency key, unique identifier of the transaction (eg. order_id)
|
11
|
+
string transaction_id = 1;
|
12
|
+
// t2_ user ID of buyer
|
13
|
+
string user_id = 2;
|
14
|
+
// Fiat payment amount, in 1/100 units
|
15
|
+
int64 local_currency_amount = 3;
|
16
|
+
string local_currency = 4;
|
17
|
+
// GOLD product listing USD price, in cents.
|
18
|
+
// Required to calculate GOLD unit price in USD at the time of purchase, for accounting
|
19
|
+
int64 listing_price_usd = 5;
|
20
|
+
PaymentProvider payment_provider = 6;
|
21
|
+
// Payment provider order ID
|
22
|
+
string external_order_id = 7;
|
23
|
+
// Amount of GOLD purchased
|
24
|
+
int64 gold_amount = 8;
|
25
|
+
Environment environment = 9;
|
26
|
+
}
|
27
|
+
|
28
|
+
message PutGoldPurchaseResponse {
|
29
|
+
// Updated spendable balance
|
30
|
+
int64 spendable_gold = 1;
|
31
|
+
}
|
32
|
+
|
33
|
+
message PutGoldSpendingRequest {
|
34
|
+
// Idempotency key, unique identifier of the transaction (eg. order_id)
|
35
|
+
string transaction_id = 1;
|
36
|
+
// t2_ user ID of spender
|
37
|
+
string user_id = 2;
|
38
|
+
// t2_ user ID of GOLD receiver
|
39
|
+
string receiver_id = 3;
|
40
|
+
// Amount of GOLD awarded
|
41
|
+
int64 gold_amount = 4;
|
42
|
+
Environment environment = 5;
|
43
|
+
}
|
44
|
+
|
45
|
+
message PutGoldSpendingResponse {
|
46
|
+
// Updated spendable balance of spender
|
47
|
+
int64 spender_spendable_gold = 1;
|
48
|
+
// Updated earned balance of receiver
|
49
|
+
int64 receiver_earned_gold = 2;
|
50
|
+
}
|
51
|
+
|
52
|
+
message PutPayoutRequest {
|
53
|
+
// Idempotency key, unique identifier of payout operation
|
54
|
+
string transaction_id = 1;
|
55
|
+
// t2_ user ID
|
56
|
+
string user_id = 2;
|
57
|
+
|
58
|
+
// Payout parameters
|
59
|
+
int64 base_payout_amount_usd = 3;
|
60
|
+
int64 gold_balance_delta = 4;
|
61
|
+
int64 karma = 5;
|
62
|
+
int64 payout_percent = 6;
|
63
|
+
int64 fee = 7;
|
64
|
+
int64 final_payout_amount_usd = 8;
|
65
|
+
optional string local_payout_currency = 9;
|
66
|
+
optional int64 local_payout_amount = 10;
|
67
|
+
google.protobuf.Timestamp cutoff_time = 11;
|
68
|
+
repeated string payout_transactions = 12;
|
69
|
+
|
70
|
+
string stripe_bank_id = 14;
|
71
|
+
string stripe_account_id = 15;
|
72
|
+
string stripe_transfer_id = 16;
|
73
|
+
string stripe_payout_id = 17;
|
74
|
+
string stripe_error_reason = 18;
|
75
|
+
|
76
|
+
Environment environment = 13;
|
77
|
+
|
78
|
+
PayoutContext payout_context = 50;
|
79
|
+
// For cases where the fiat payout goes to a separate account from
|
80
|
+
// the gold payout, e.g. for Dev Platform
|
81
|
+
// - Gold payout -> app account
|
82
|
+
// - Fiat payout -> developer account
|
83
|
+
string with_separate_fiat_user_id = 51;
|
84
|
+
}
|
85
|
+
|
86
|
+
message PutPayoutResponse {
|
87
|
+
// Updated earned balance
|
88
|
+
int64 earned_gold = 1;
|
89
|
+
}
|
90
|
+
|
91
|
+
message PutPayoutFiatRequest {
|
92
|
+
// Idempotency key, unique identifier of payout operation
|
93
|
+
string transaction_id = 1;
|
94
|
+
// t2_ user ID
|
95
|
+
string user_id = 2;
|
96
|
+
|
97
|
+
// Payout parameters
|
98
|
+
string local_payout_currency = 3;
|
99
|
+
int64 local_payout_amount = 4;
|
100
|
+
|
101
|
+
Environment environment = 5;
|
102
|
+
|
103
|
+
// Stripe metadata
|
104
|
+
string stripe_bank_id = 6;
|
105
|
+
string stripe_account_id = 7;
|
106
|
+
string stripe_transfer_id = 8;
|
107
|
+
string stripe_payout_id = 9;
|
108
|
+
string stripe_error_reason = 10;
|
109
|
+
|
110
|
+
PayoutContext payout_context = 30;
|
111
|
+
}
|
112
|
+
|
113
|
+
message PutPayoutFiatResponse {}
|
114
|
+
|
115
|
+
message RevertTransactionRequest {
|
116
|
+
// Idempotency key, unique identifier of refund operation
|
117
|
+
string transaction_id = 1;
|
118
|
+
// ID of original transaction which should be refunded
|
119
|
+
string original_transaction_id = 2;
|
120
|
+
// t2_ user ID of original transaction creator (for ownership verification)
|
121
|
+
string user_id = 3;
|
122
|
+
string reason = 4;
|
123
|
+
Environment environment = 5;
|
124
|
+
bool cover_payouts = 6;
|
125
|
+
}
|
126
|
+
|
127
|
+
message RevertTransactionResponse {
|
128
|
+
// Transaction IDs of reverted spendings which were not covered
|
129
|
+
// with the remaining user's balance, so the corresponding goods
|
130
|
+
// should be reverted, including the original_transaction_id if
|
131
|
+
// it was a spending
|
132
|
+
repeated string reverted_transaction_ids = 1;
|
133
|
+
}
|
134
|
+
|
135
|
+
message GetGoldBalanceRequest {
|
136
|
+
// t2_ user ID
|
137
|
+
string user_id = 1;
|
138
|
+
Environment environment = 2;
|
139
|
+
}
|
140
|
+
|
141
|
+
message GetGoldBalanceResponse {
|
142
|
+
int64 earned_gold = 1;
|
143
|
+
int64 earned_gold_devvit = 10;
|
144
|
+
int64 spendable_gold = 2;
|
145
|
+
}
|
146
|
+
|
147
|
+
message MigrateEarnedGoldBalanceRequest {
|
148
|
+
repeated MigrationRequest migration_requests = 1;
|
149
|
+
}
|
150
|
+
|
151
|
+
message MigrationRequest {
|
152
|
+
// Idempotency key, unique identifier of the transaction
|
153
|
+
string transaction_id = 1;
|
154
|
+
// t2_ user ID of the balance owner
|
155
|
+
string user_id = 2;
|
156
|
+
// Amount of earned GOLD to migrate
|
157
|
+
// = total amount of scaled (aka new) Gold
|
158
|
+
int64 earned_gold_amount = 3;
|
159
|
+
// USD cost of the migrated GOLD, in cents
|
160
|
+
// = total USD cost of all purchases accumulated in gold_amount
|
161
|
+
int64 usd_cost = 4;
|
162
|
+
// Timestamp to store this historical balance at
|
163
|
+
// Might be a fixed point in the past or a timestamp of the last
|
164
|
+
// awarding transaction in the aggregate
|
165
|
+
google.protobuf.Timestamp timestamp = 5;
|
166
|
+
Environment environment = 6;
|
167
|
+
}
|
168
|
+
|
169
|
+
message MigrateEarnedGoldBalanceResponse {
|
170
|
+
// Updated earned balance
|
171
|
+
map<string, int64> earned_gold = 1;
|
172
|
+
}
|
173
|
+
|
174
|
+
enum PayoutContext {
|
175
|
+
PAYOUT_CONTEXT_UNSPECIFIED = 0;
|
176
|
+
AWARDS = 1;
|
177
|
+
DEVVIT = 2;
|
178
|
+
}
|
179
|
+
|
180
|
+
message PayoutCandidatesRequest {
|
181
|
+
int64 balance_cutoff = 1;
|
182
|
+
google.protobuf.Timestamp time_cutoff = 2;
|
183
|
+
Environment environment = 3;
|
184
|
+
PayoutContext payout_context = 4;
|
185
|
+
}
|
186
|
+
|
187
|
+
message PayoutCandidatesResponse {
|
188
|
+
repeated string user_ids = 1;
|
189
|
+
map<string, int64> remaining_balances_by_user_ids = 2;
|
190
|
+
}
|
191
|
+
|
192
|
+
message NonPaidOutTransactionIdsRequest {
|
193
|
+
repeated string user_ids = 1;
|
194
|
+
google.protobuf.Timestamp time_cutoff = 2;
|
195
|
+
Environment environment = 3;
|
196
|
+
}
|
197
|
+
|
198
|
+
message UserTransactions {
|
199
|
+
string user_id = 1;
|
200
|
+
repeated string transaction_ids = 2;
|
201
|
+
int64 sum_gold = 3;
|
202
|
+
}
|
203
|
+
|
204
|
+
message NonPaidOutTransactionIdsResponse {
|
205
|
+
repeated UserTransactions transaction_ids_by_user_id = 1;
|
206
|
+
}
|
207
|
+
|
208
|
+
enum PaymentProvider {
|
209
|
+
PAYMENT_PROVIDER_UNSPECIFIED = 0;
|
210
|
+
STRIPE = 1;
|
211
|
+
PAYPAL = 2;
|
212
|
+
GOOGLE_INAPP = 3;
|
213
|
+
APPLE_INAPP = 4;
|
214
|
+
REDDIT_GOLD = 5;
|
215
|
+
}
|
216
|
+
|
217
|
+
enum Environment {
|
218
|
+
ENVIRONMENT_UNSPECIFIED = 0;
|
219
|
+
PRODUCTION = 1;
|
220
|
+
SANDBOX = 2;
|
221
|
+
}
|
222
|
+
|
223
|
+
service LedgerService {
|
224
|
+
// PutGoldPurchase stores GOLD pack purchase in Ledger
|
225
|
+
rpc PutGoldPurchase(PutGoldPurchaseRequest) returns (PutGoldPurchaseResponse) {}
|
226
|
+
|
227
|
+
// PutGoldSpending stores GOLD spending in Ledger
|
228
|
+
rpc PutGoldSpending(PutGoldSpendingRequest) returns (PutGoldSpendingResponse) {}
|
229
|
+
|
230
|
+
// PutPayout stores Earned GOLD payout in Ledger
|
231
|
+
rpc PutPayout(PutPayoutRequest) returns (PutPayoutResponse) {}
|
232
|
+
|
233
|
+
// PutPayoutFiat stores fiat payout in Ledger
|
234
|
+
rpc PutPayoutFiat(PutPayoutFiatRequest) returns (PutPayoutFiatResponse) {}
|
235
|
+
|
236
|
+
// RevertTransaction stores purchase or spending refund in Ledger rolling
|
237
|
+
// back all the consequentive spendings.
|
238
|
+
// Tries to use user's remaining balance to cover rolled back spendings.
|
239
|
+
// Transaction IDs for uncovered spendings are returned to roll back the
|
240
|
+
// corresponding goods, except if were already paid out
|
241
|
+
rpc RevertTransaction(RevertTransactionRequest) returns (RevertTransactionResponse) {}
|
242
|
+
|
243
|
+
// GetGoldBalance returns user's spendable and earned Gold balances
|
244
|
+
rpc GetGoldBalance(GetGoldBalanceRequest) returns (GetGoldBalanceResponse) {}
|
245
|
+
|
246
|
+
// MigrateEarnedGoldBalance migrates historical gold balance
|
247
|
+
rpc MigrateEarnedGoldBalance(MigrateEarnedGoldBalanceRequest) returns (MigrateEarnedGoldBalanceResponse) {}
|
248
|
+
|
249
|
+
// PayoutCandidates returns user IDs eligible for payout
|
250
|
+
rpc PayoutCandidates(PayoutCandidatesRequest) returns (PayoutCandidatesResponse) {}
|
251
|
+
|
252
|
+
// NonPaidOutTransactionIds returns transaction IDs that have not been paid out by user ID
|
253
|
+
rpc NonPaidOutTransactionIds(NonPaidOutTransactionIdsRequest) returns (NonPaidOutTransactionIdsResponse) {}
|
254
|
+
}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
syntax = "proto3";
|
2
|
+
|
3
|
+
package reddit.xpaymentsplatform.paypayments.v1;
|
4
|
+
|
5
|
+
import "google/protobuf/timestamp.proto";
|
6
|
+
import "reddit/xpaymentsplatform/paypayments/v1/paypayments.proto";
|
7
|
+
import "reddit/xpaymentsplatform/payproducts/v1/payproducts.proto";
|
8
|
+
|
9
|
+
option go_package = "github.snooguts.net/reddit/reddit-service-pay-payments/payments-api/api/xpaymentsplatform/paypaymentspb/v1;paypaymentspb";
|
10
|
+
|
11
|
+
message DeleteUsersDataRequest {
|
12
|
+
string requester_id = 1;
|
13
|
+
repeated string user_ids = 2;
|
14
|
+
}
|
15
|
+
|
16
|
+
message DeleteUsersDataResponse {
|
17
|
+
repeated string user_ids = 1;
|
18
|
+
}
|
19
|
+
|
20
|
+
message GetUsersPurchasesRequest {
|
21
|
+
repeated string user_ids = 1;
|
22
|
+
google.protobuf.Timestamp start_from = 2;
|
23
|
+
google.protobuf.Timestamp end_at = 3;
|
24
|
+
}
|
25
|
+
|
26
|
+
message GetUsersPurchasesResponse {
|
27
|
+
repeated Purchase purchases = 1;
|
28
|
+
}
|
29
|
+
|
30
|
+
message Purchase {
|
31
|
+
string buyer_id = 1;
|
32
|
+
reddit.xpaymentsplatform.payproducts.v1.PaymentProvider provider = 2;
|
33
|
+
string external_payment_id = 3;
|
34
|
+
reddit.xpaymentsplatform.payproducts.v1.ProductType product_type = 4;
|
35
|
+
google.protobuf.Timestamp created_at = 5;
|
36
|
+
reddit.xpaymentsplatform.payproducts.v1.ProductPrice price = 6;
|
37
|
+
reddit.xpaymentsplatform.paypayments.v1.PaymentUnitStatus status = 7;
|
38
|
+
}
|
39
|
+
|
40
|
+
service DataComplianceService {
|
41
|
+
rpc DeleteUsersData(DeleteUsersDataRequest) returns (DeleteUsersDataResponse) {}
|
42
|
+
rpc GetUsersPurchases(GetUsersPurchasesRequest) returns (GetUsersPurchasesResponse) {}
|
43
|
+
}
|
@@ -0,0 +1,293 @@
|
|
1
|
+
syntax = "proto3";
|
2
|
+
|
3
|
+
package reddit.xpaymentsplatform.paypayments.v1;
|
4
|
+
|
5
|
+
import "google/protobuf/timestamp.proto";
|
6
|
+
import "reddit/xpaymentsplatform/paycommon/v1/order_status_reason.proto";
|
7
|
+
import "reddit/xpaymentsplatform/payproducts/v1/payproducts.proto";
|
8
|
+
|
9
|
+
option go_package = "github.snooguts.net/reddit/reddit-service-pay-payments/payments-api/api/xpaymentsplatform/paypaymentspb/v1;paypaymentspb";
|
10
|
+
|
11
|
+
message CreatePaymentEventRequest {
|
12
|
+
reddit.xpaymentsplatform.payproducts.v1.Environment environment = 1;
|
13
|
+
string order_id = 2;
|
14
|
+
string buyer_id = 3;
|
15
|
+
repeated PaymentUnit units = 4;
|
16
|
+
ClientInfo client_info = 5;
|
17
|
+
}
|
18
|
+
|
19
|
+
message PaymentUnit {
|
20
|
+
PaymentMode mode = 1;
|
21
|
+
reddit.xpaymentsplatform.payproducts.v1.PaymentProvider provider = 2;
|
22
|
+
string seller_id = 3;
|
23
|
+
reddit.xpaymentsplatform.payproducts.v1.ProductPrice checkout_price = 4;
|
24
|
+
reddit.xpaymentsplatform.payproducts.v1.Product product = 5;
|
25
|
+
}
|
26
|
+
|
27
|
+
message ClientInfo {
|
28
|
+
string app_name = 1;
|
29
|
+
string app_version = 2;
|
30
|
+
string request_ip = 3;
|
31
|
+
string country_code = 4;
|
32
|
+
string subdivision_code = 5;
|
33
|
+
string city_code = 6;
|
34
|
+
}
|
35
|
+
|
36
|
+
message CreatePaymentEventResponse {
|
37
|
+
string order_id = 1;
|
38
|
+
PaymentEventStatus status = 2;
|
39
|
+
repeated PaymentUnitResponse units = 3;
|
40
|
+
}
|
41
|
+
|
42
|
+
message PaymentUnitResponse {
|
43
|
+
PaymentMode mode = 1;
|
44
|
+
reddit.xpaymentsplatform.payproducts.v1.PaymentProvider provider = 2;
|
45
|
+
PaymentAction action = 3;
|
46
|
+
}
|
47
|
+
|
48
|
+
message PaymentAction {
|
49
|
+
PaymentUnitStatus status = 1;
|
50
|
+
string client_token = 2;
|
51
|
+
}
|
52
|
+
|
53
|
+
message CreatePaymentRefundRequest {
|
54
|
+
string order_id = 1;
|
55
|
+
RefundReason old_refund_reason = 2 [deprecated = true]; // replaced by field #5
|
56
|
+
|
57
|
+
// One of the below fields must be present
|
58
|
+
string initiator_user_id = 3; // The user who initiated the refund request, if present.
|
59
|
+
string initiator_service_id = 4; // The service that initiated the refund request, if present.
|
60
|
+
reddit.xpaymentsplatform.paycommon.v1.StatusReason reason = 5;
|
61
|
+
bool synchronous = 10; // If true, the refund will be processed synchronously. If false, the refund will be processed asynchronously.
|
62
|
+
}
|
63
|
+
|
64
|
+
message CreatePaymentRefundResponse {}
|
65
|
+
|
66
|
+
message GetGoldBalancesRequest {
|
67
|
+
reddit.xpaymentsplatform.payproducts.v1.Environment environment = 1;
|
68
|
+
string user_id = 2;
|
69
|
+
bool include_earned_gold = 3;
|
70
|
+
bool include_earned_gold_devvit = 20;
|
71
|
+
bool include_spendable_gold = 4;
|
72
|
+
bool include_earned_gold_transactions = 5;
|
73
|
+
bool include_earned_gold_devvit_transactions = 21;
|
74
|
+
bool include_spendable_gold_transactions = 6;
|
75
|
+
}
|
76
|
+
|
77
|
+
message GetGoldBalancesResponse {
|
78
|
+
GoldBalance earned_gold = 1;
|
79
|
+
GoldBalance earned_gold_devvit = 20;
|
80
|
+
GoldBalance spendable_gold = 2;
|
81
|
+
}
|
82
|
+
|
83
|
+
message GoldBalance {
|
84
|
+
int32 available = 1;
|
85
|
+
int32 total = 2;
|
86
|
+
GoldTransactionsConnection transactions_connection = 3;
|
87
|
+
}
|
88
|
+
|
89
|
+
message GoldTransactionsConnection {
|
90
|
+
repeated GoldTransaction transactions = 1;
|
91
|
+
PageInfo page_info = 2;
|
92
|
+
}
|
93
|
+
|
94
|
+
message GoldTransaction {
|
95
|
+
string transaction_id = 1; // order_id
|
96
|
+
string product_id = 2; // Required to support atomic checkout. Not required to be populated at MVP
|
97
|
+
reddit.xpaymentsplatform.payproducts.v1.ProductPrice checkout_price = 3;
|
98
|
+
string from_user_id = 4; // If empty, user was removed from the system
|
99
|
+
string to_user_id = 5; // If empty, user was removed from the system
|
100
|
+
google.protobuf.Timestamp date = 6;
|
101
|
+
}
|
102
|
+
|
103
|
+
// Required to support pagination of GoldTransactions.
|
104
|
+
// Pagination will not be required at MVP.
|
105
|
+
message PageInfo {
|
106
|
+
string start_cursor = 1; // if empty, start from the most recent transaction
|
107
|
+
int32 page_size = 2;
|
108
|
+
bool has_next_page = 3;
|
109
|
+
}
|
110
|
+
|
111
|
+
message AcknowledgeOrderDeliveryRequest {
|
112
|
+
string order_id = 1;
|
113
|
+
string package_name = 2;
|
114
|
+
string product_id = 3;
|
115
|
+
string purchase_token = 4;
|
116
|
+
reddit.xpaymentsplatform.payproducts.v1.Environment environment = 5;
|
117
|
+
}
|
118
|
+
|
119
|
+
message AcknowledgeOrderDeliveryResponse {}
|
120
|
+
|
121
|
+
message AcknowledgeRecurringPaymentRequest {
|
122
|
+
string order_id = 1;
|
123
|
+
reddit.xpaymentsplatform.payproducts.v1.Environment environment = 2;
|
124
|
+
}
|
125
|
+
|
126
|
+
message AcknowledgeRecurringPaymentResponse {}
|
127
|
+
|
128
|
+
message ProcessPaymentNotificationRequest {
|
129
|
+
reddit.xpaymentsplatform.payproducts.v1.Environment environment = 1;
|
130
|
+
string order_id = 2;
|
131
|
+
// Maps to payment_events.external_payment_id for one-time purchases and to recurring_payments.external_id for recurring payments
|
132
|
+
string external_payment_id = 3;
|
133
|
+
payproducts.v1.PaymentProvider payment_provider = 4;
|
134
|
+
PaymentNotificationType notification_type = 5;
|
135
|
+
payproducts.v1.ProductPrice price = 6; // The price paid by the buyer, it must be the localised price.
|
136
|
+
google.protobuf.Timestamp notification_date = 7; // The date and time of the payment notification, as show inside the payment provider's system.
|
137
|
+
string external_product_id = 8; // The product id for the payment
|
138
|
+
RecurringPaymentState recurring_payment = 9;
|
139
|
+
string external_payment_token = 10; // Provider-specific data required to manage payment
|
140
|
+
// Leaving some space in case we find other mandatory fields to add
|
141
|
+
|
142
|
+
string raw_notification = 50; // JSON string of the raw notification. Stored for debugging purposes.
|
143
|
+
GoogleInAppPurchaseNotification google_in_app_purchase_notification = 51;
|
144
|
+
}
|
145
|
+
|
146
|
+
message RecurringPaymentState {
|
147
|
+
google.protobuf.Timestamp starts_at = 1;
|
148
|
+
google.protobuf.Timestamp trial_ends_at = 2;
|
149
|
+
google.protobuf.Timestamp next_renewal_at = 3;
|
150
|
+
google.protobuf.Timestamp grace_ends_at = 4;
|
151
|
+
google.protobuf.Timestamp ends_at = 5;
|
152
|
+
string renewal_payment_id = 6; // Maps to payment_events.external_payment_id for recurring payments
|
153
|
+
}
|
154
|
+
|
155
|
+
message GoogleInAppPurchaseNotification {
|
156
|
+
string package_name = 1; // Android app's package name
|
157
|
+
string purchase_token = 2; // unique identifier that can be used to acknowledge the android in-app purchase
|
158
|
+
}
|
159
|
+
|
160
|
+
message ProcessPaymentNotificationResponse {}
|
161
|
+
|
162
|
+
message GetUserProfilesRequest {
|
163
|
+
repeated string user_ids = 1;
|
164
|
+
}
|
165
|
+
|
166
|
+
message UserProfileList {
|
167
|
+
repeated UserProfile user_profiles = 1;
|
168
|
+
}
|
169
|
+
|
170
|
+
message UserProfile {
|
171
|
+
reddit.xpaymentsplatform.payproducts.v1.Environment environment = 1;
|
172
|
+
StripeProfile stripe_profile = 2;
|
173
|
+
}
|
174
|
+
|
175
|
+
message StripeProfile {
|
176
|
+
string stripe_account_id = 1;
|
177
|
+
}
|
178
|
+
|
179
|
+
message GetUserProfilesResponse {
|
180
|
+
map<string, UserProfileList> user_profiles = 1;
|
181
|
+
}
|
182
|
+
|
183
|
+
enum RefundReason {
|
184
|
+
option deprecated = true; // Use pay-common's StatusReason instead
|
185
|
+
REFUND_REASON_UNSPECIFIED = 0;
|
186
|
+
|
187
|
+
REFUND_REASON_DUPLICATED = 1;
|
188
|
+
REFUND_REASON_FRAUDULENT = 2;
|
189
|
+
REFUND_REASON_CHARGEBACK = 3;
|
190
|
+
REFUND_REASON_REQUESTED_BY_USER = 4;
|
191
|
+
REFUND_REASON_REQUESTED_BY_REDDIT_ADMIN = 5;
|
192
|
+
REFUND_REASON_REVERTED = 6;
|
193
|
+
}
|
194
|
+
|
195
|
+
// Indicates where the payment will be executed
|
196
|
+
enum PaymentMode {
|
197
|
+
PAYMENT_MODE_UNSPECIFIED = 0;
|
198
|
+
|
199
|
+
PAYMENT_MODE_CLIENT_SIDE = 1;
|
200
|
+
PAYMENT_MODE_CLIENT_SIDE_REDIRECT = 2;
|
201
|
+
PAYMENT_MODE_SERVER_SIDE = 3;
|
202
|
+
}
|
203
|
+
|
204
|
+
enum PaymentEventStatus {
|
205
|
+
PAYMENT_EVENT_STATUS_UNSPECIFIED = 0;
|
206
|
+
|
207
|
+
PAYMENT_EVENT_STATUS_NEW = 1;
|
208
|
+
PAYMENT_EVENT_STATUS_SUCCEEDED = 2;
|
209
|
+
PAYMENT_EVENT_STATUS_FAILED = 3;
|
210
|
+
|
211
|
+
PAYMENT_EVENT_STATUS_REVERTED_CREATED = 4;
|
212
|
+
PAYMENT_EVENT_STATUS_REVERTED_COMPLETED = 5;
|
213
|
+
PAYMENT_EVENT_STATUS_REVERTED_FAILED = 6;
|
214
|
+
|
215
|
+
PAYMENT_EVENT_STATUS_ACKNOWLEDGED = 7;
|
216
|
+
}
|
217
|
+
|
218
|
+
enum PaymentUnitStatus {
|
219
|
+
PAYMENT_UNIT_STATUS_UNSPECIFIED = 0;
|
220
|
+
|
221
|
+
PAYMENT_UNIT_STATUS_NEW = 1;
|
222
|
+
PAYMENT_UNIT_STATUS_ACTION_REQUIRED = 2;
|
223
|
+
PAYMENT_UNIT_STATUS_SUCCEEDED = 3;
|
224
|
+
PAYMENT_UNIT_STATUS_FAILED = 4;
|
225
|
+
|
226
|
+
PAYMENT_UNIT_STATUS_REVERTED_CREATED = 5;
|
227
|
+
PAYMENT_UNIT_STATUS_REVERTED_COMPLETED = 6;
|
228
|
+
PAYMENT_UNIT_STATUS_REVERTED_FAILED = 7;
|
229
|
+
}
|
230
|
+
|
231
|
+
enum PaymentNotificationType {
|
232
|
+
PAYMENT_NOTIFICATION_TYPE_UNSPECIFIED = 0;
|
233
|
+
|
234
|
+
PAYMENT_NOTIFICATION_TYPE_SUCCEEDED = 1;
|
235
|
+
PAYMENT_NOTIFICATION_TYPE_FAILED = 2;
|
236
|
+
PAYMENT_NOTIFICATION_TYPE_REFUNDED = 3;
|
237
|
+
PAYMENT_NOTIFICATION_TYPE_DISPUTE = 4;
|
238
|
+
PAYMENT_NOTIFICATION_TYPE_CANCELED = 5;
|
239
|
+
}
|
240
|
+
|
241
|
+
message CancelRecurringPaymentRequest {
|
242
|
+
string order_id = 1;
|
243
|
+
string buyer_id = 2;
|
244
|
+
reddit.xpaymentsplatform.payproducts.v1.Environment environment = 3;
|
245
|
+
}
|
246
|
+
|
247
|
+
message CancelRecurringPaymentResponse {}
|
248
|
+
|
249
|
+
message ChangePaymentMethodRequest {
|
250
|
+
string user_id = 1;
|
251
|
+
string order_id = 2;
|
252
|
+
payproducts.v1.Environment environment = 3;
|
253
|
+
ClientInfo client_info = 4;
|
254
|
+
optional string success_url = 5;
|
255
|
+
optional string cancel_url = 6;
|
256
|
+
}
|
257
|
+
|
258
|
+
message ChangePaymentMethodResponse {
|
259
|
+
payproducts.v1.PaymentProvider payment_provider = 1;
|
260
|
+
string session_id = 2;
|
261
|
+
}
|
262
|
+
|
263
|
+
message TransferRecurringPaymentRequest {
|
264
|
+
string order_id = 1;
|
265
|
+
payproducts.v1.Environment environment = 2;
|
266
|
+
string from_user_id = 3;
|
267
|
+
string to_user_id = 4;
|
268
|
+
}
|
269
|
+
|
270
|
+
message TransferRecurringPaymentResponse {}
|
271
|
+
|
272
|
+
service PayPaymentsService {
|
273
|
+
rpc AcknowledgeOrderDelivery(AcknowledgeOrderDeliveryRequest) returns (AcknowledgeOrderDeliveryResponse) {}
|
274
|
+
|
275
|
+
rpc AcknowledgeRecurringPayment(AcknowledgeRecurringPaymentRequest) returns (AcknowledgeRecurringPaymentResponse) {}
|
276
|
+
|
277
|
+
rpc CreatePaymentEvent(CreatePaymentEventRequest) returns (CreatePaymentEventResponse) {}
|
278
|
+
|
279
|
+
rpc CreatePaymentRefund(CreatePaymentRefundRequest) returns (CreatePaymentRefundResponse) {}
|
280
|
+
|
281
|
+
rpc GetGoldBalances(GetGoldBalancesRequest) returns (GetGoldBalancesResponse) {}
|
282
|
+
|
283
|
+
rpc ProcessPaymentNotification(ProcessPaymentNotificationRequest) returns (ProcessPaymentNotificationResponse) {}
|
284
|
+
|
285
|
+
rpc GetUserProfiles(GetUserProfilesRequest) returns (GetUserProfilesResponse) {}
|
286
|
+
|
287
|
+
// CancelRecurringPayment cancels a recurring payment.
|
288
|
+
rpc CancelRecurringPayment(CancelRecurringPaymentRequest) returns (CancelRecurringPaymentResponse) {}
|
289
|
+
// ChangePaymentMethod changes the payment method for an order.
|
290
|
+
rpc ChangePaymentMethod(ChangePaymentMethodRequest) returns (ChangePaymentMethodResponse) {}
|
291
|
+
// TransferRecurringPayment transfers a recurring payment between users.
|
292
|
+
rpc TransferRecurringPayment(TransferRecurringPaymentRequest) returns (TransferRecurringPaymentResponse) {}
|
293
|
+
}
|