@devvit/protos 0.11.0-next-2024-07-24-1be38cc96.0 → 0.11.0-next-2024-07-25-1378e6e47.0
Sign up to get free protection for your applications and to get access to all the features.
- package/index.d.ts +1 -1
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/meta.min.json +117 -156
- package/package.json +7 -6
- package/protos.min.js +2 -2
- package/protos.min.js.map +4 -4
- package/schema/.snootobuf/.gitIgnoreMe +1 -0
- package/schema/{devvit → .snootobuf/deps/devvit}/data/api/admin/v1alpha/audit.proto +1 -1
- package/schema/{devvit → .snootobuf/deps/devvit}/data/api/admin/v1alpha/auth.proto +1 -1
- package/schema/{devvit → .snootobuf/deps/devvit}/data/api/admin/v1alpha/organization.proto +1 -1
- package/schema/{devvit → .snootobuf/deps/devvit}/data/api/admin/v1alpha/service.proto +1 -1
- package/schema/{devvit → .snootobuf/deps/devvit}/data/api/admin/v1alpha/subscription.proto +1 -1
- package/schema/{devvit → .snootobuf/deps/devvit}/data/api/admin/v1alpha/ui.proto +1 -1
- package/schema/{devvit → .snootobuf/deps/devvit}/data/api/v1alpha/admin.proto +1 -1
- package/schema/{devvit → .snootobuf/deps/devvit}/data/api/v1alpha/delivery.proto +13 -7
- package/schema/{devvit → .snootobuf/deps/devvit}/data/api/v1alpha/filter.proto +1 -1
- package/schema/{devvit → .snootobuf/deps/devvit}/data/api/v1alpha/firehose.proto +1 -1
- package/schema/{devvit → .snootobuf/deps/devvit}/data/api/v1alpha/intake.proto +1 -1
- package/schema/{devvit → .snootobuf/deps/devvit}/events/v1alpha/events.proto +2 -2
- package/schema/.snootobuf/deps/devvit/gateway/v1alpha/payments.proto +17 -0
- package/schema/{devvit → .snootobuf/deps/devvit}/options/options.proto +1 -1
- package/schema/{devvit → .snootobuf/deps/devvit}/reddit/v2alpha/commentv2.proto +1 -1
- package/schema/{devvit → .snootobuf/deps/devvit}/reddit/v2alpha/flair.proto +1 -1
- package/schema/{devvit → .snootobuf/deps/devvit}/reddit/v2alpha/modaction.proto +1 -1
- package/schema/{devvit → .snootobuf/deps/devvit}/reddit/v2alpha/modmail.proto +1 -1
- package/schema/{devvit → .snootobuf/deps/devvit}/reddit/v2alpha/postv2.proto +1 -1
- package/schema/{devvit → .snootobuf/deps/devvit}/reddit/v2alpha/subredditv2.proto +1 -1
- package/schema/{devvit → .snootobuf/deps/devvit}/reddit/v2alpha/userv2.proto +1 -1
- package/schema/{devvit/data → .snootobuf/deps/devvit}/triggers/v1alpha/triggers.proto +2 -1
- package/schema/.snootobuf/deps/enum/account_gender_category.proto +14 -0
- package/schema/.snootobuf/deps/enum/approval_status.proto +15 -0
- package/schema/.snootobuf/deps/enum/automated_reporting_level.proto +12 -0
- package/schema/.snootobuf/deps/enum/ban_evasion_threshold.proto +13 -0
- package/schema/.snootobuf/deps/enum/ban_info_action.proto +12 -0
- package/schema/.snootobuf/deps/enum/block_relation_type.proto +11 -0
- package/schema/.snootobuf/deps/enum/comment_sort.proto +18 -0
- package/schema/.snootobuf/deps/enum/comment_type.proto +11 -0
- package/schema/.snootobuf/deps/enum/crowd_control_level.proto +12 -0
- package/schema/.snootobuf/deps/enum/discussion_type.proto +10 -0
- package/schema/.snootobuf/deps/enum/distinguish_type.proto +14 -0
- package/schema/.snootobuf/deps/enum/flair_position.proto +11 -0
- package/schema/.snootobuf/deps/enum/hateful_content_threshold.proto +12 -0
- package/schema/.snootobuf/deps/enum/link_content_type.proto +11 -0
- package/schema/.snootobuf/deps/enum/link_type.proto +11 -0
- package/schema/.snootobuf/deps/enum/link_visibility.proto +11 -0
- package/schema/.snootobuf/deps/enum/prediction_leaderboard_entry_type.proto +11 -0
- package/schema/.snootobuf/deps/enum/promo_layout.proto +11 -0
- package/schema/.snootobuf/deps/enum/removed_by_type.proto +18 -0
- package/schema/.snootobuf/deps/enum/spam_level.proto +11 -0
- package/schema/.snootobuf/deps/enum/subreddit_type.proto +16 -0
- package/schema/.snootobuf/deps/enum/verdict.proto +14 -0
- package/schema/.snootobuf/deps/enum/vote.proto +12 -0
- package/schema/.snootobuf/deps/enum/whitelist_status.proto +17 -0
- package/schema/.snootobuf/deps/enum/wiki_edit_mode.proto +12 -0
- package/schema/.snootobuf/deps/evaluator/evaluator.proto +112 -0
- package/schema/.snootobuf/deps/google/api/auth.proto +181 -0
- package/schema/.snootobuf/deps/google/api/backend.proto +51 -0
- package/schema/.snootobuf/deps/google/api/billing.proto +67 -0
- package/schema/{google → .snootobuf/deps/google}/api/client.proto +37 -37
- package/schema/.snootobuf/deps/google/api/config_change.proto +85 -0
- package/schema/.snootobuf/deps/google/api/consumer.proto +83 -0
- package/schema/.snootobuf/deps/google/api/context.proto +63 -0
- package/schema/.snootobuf/deps/google/api/control.proto +33 -0
- package/schema/.snootobuf/deps/google/api/distribution.proto +213 -0
- package/schema/.snootobuf/deps/google/api/documentation.proto +157 -0
- package/schema/.snootobuf/deps/google/api/endpoint.proto +71 -0
- package/schema/{google → .snootobuf/deps/google}/api/field_behavior.proto +23 -17
- package/schema/{google → .snootobuf/deps/google}/api/http.proto +1 -0
- package/schema/.snootobuf/deps/google/api/httpbody.proto +76 -0
- package/schema/.snootobuf/deps/google/api/label.proto +49 -0
- package/schema/.snootobuf/deps/google/api/launch_stage.proto +67 -0
- package/schema/.snootobuf/deps/google/api/log.proto +55 -0
- package/schema/.snootobuf/deps/google/api/logging.proto +83 -0
- package/schema/.snootobuf/deps/google/api/metric.proto +192 -0
- package/schema/.snootobuf/deps/google/api/monitored_resource.proto +116 -0
- package/schema/.snootobuf/deps/google/api/monitoring.proto +89 -0
- package/schema/.snootobuf/deps/google/api/quota.proto +259 -0
- package/schema/.snootobuf/deps/google/api/resource.proto +299 -0
- package/schema/.snootobuf/deps/google/api/routing.proto +461 -0
- package/schema/.snootobuf/deps/google/api/service.proto +175 -0
- package/schema/.snootobuf/deps/google/api/source_info.proto +32 -0
- package/schema/.snootobuf/deps/google/api/system_parameter.proto +96 -0
- package/schema/.snootobuf/deps/google/api/usage.proto +92 -0
- package/schema/.snootobuf/deps/google/cloud/extended_operations.proto +150 -0
- package/schema/.snootobuf/deps/google/iam/admin/v1/iam.proto +1087 -0
- package/schema/.snootobuf/deps/google/iam/v1/iam_policy.proto +145 -0
- package/schema/.snootobuf/deps/google/iam/v1/logging/audit_data.proto +34 -0
- package/schema/.snootobuf/deps/google/iam/v1/options.proto +41 -0
- package/schema/.snootobuf/deps/google/iam/v1/policy.proto +240 -0
- package/schema/.snootobuf/deps/google/logging/type/http_request.proto +92 -0
- package/schema/.snootobuf/deps/google/logging/type/log_severity.proto +72 -0
- package/schema/.snootobuf/deps/google/longrunning/operations.proto +247 -0
- package/schema/.snootobuf/deps/google/protobuf/any.proto +158 -0
- package/schema/.snootobuf/deps/google/protobuf/api.proto +208 -0
- package/schema/.snootobuf/deps/google/protobuf/compiler/plugin.proto +183 -0
- package/schema/.snootobuf/deps/google/protobuf/descriptor.proto +921 -0
- package/schema/.snootobuf/deps/google/protobuf/duration.proto +116 -0
- package/schema/.snootobuf/deps/google/protobuf/empty.proto +51 -0
- package/schema/.snootobuf/deps/google/protobuf/field_mask.proto +245 -0
- package/schema/.snootobuf/deps/google/protobuf/source_context.proto +48 -0
- package/schema/.snootobuf/deps/google/protobuf/struct.proto +95 -0
- package/schema/.snootobuf/deps/google/protobuf/timestamp.proto +147 -0
- package/schema/.snootobuf/deps/google/protobuf/type.proto +187 -0
- package/schema/.snootobuf/deps/google/protobuf/wrappers.proto +123 -0
- package/schema/.snootobuf/deps/google/rpc/code.proto +186 -0
- package/schema/.snootobuf/deps/google/rpc/context/attribute_context.proto +287 -0
- package/schema/.snootobuf/deps/google/rpc/error_details.proto +246 -0
- package/schema/.snootobuf/deps/google/rpc/status.proto +47 -0
- package/schema/.snootobuf/deps/google/type/calendar_period.proto +57 -0
- package/schema/.snootobuf/deps/google/type/color.proto +170 -0
- package/schema/.snootobuf/deps/google/type/date.proto +50 -0
- package/schema/.snootobuf/deps/google/type/datetime.proto +97 -0
- package/schema/.snootobuf/deps/google/type/dayofweek.proto +51 -0
- package/schema/.snootobuf/deps/google/type/expr.proto +51 -0
- package/schema/.snootobuf/deps/google/type/fraction.proto +34 -0
- package/schema/.snootobuf/deps/google/type/latlng.proto +37 -0
- package/schema/.snootobuf/deps/google/type/money.proto +43 -0
- package/schema/.snootobuf/deps/google/type/month.proto +66 -0
- package/schema/.snootobuf/deps/google/type/postal_address.proto +135 -0
- package/schema/.snootobuf/deps/google/type/quaternion.proto +95 -0
- package/schema/.snootobuf/deps/google/type/timeofday.proto +44 -0
- package/schema/.snootobuf/deps/products-api/protos/reddit/xpaymentsplatform/payproducts/v1/currencies.proto +189 -0
- package/schema/.snootobuf/deps/products-api/protos/reddit/xpaymentsplatform/payproducts/v1/payproducts.proto +118 -0
- package/schema/.snootobuf/deps/reddit/api/metadata/v1/metadata.proto +55 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/account/v1/account.proto +579 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/account/v1/account_relations.proto +43 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/api/metadata/v1/metadata.proto +82 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/blocking/v1/user_blocking_service.proto +221 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree.proto +78 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree_service.proto +189 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree_structure.proto +29 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comments.proto +417 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comments_service.proto +72 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/auth.proto +25 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/features.proto +52 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/lang.proto +16 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/legal.proto +20 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/media.proto +149 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/moderation.proto +197 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/safety.proto +116 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/time.proto +25 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/domains/v1/domains_metadata_service.proto +101 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/grpc_thrift/v1/grpc_thrift_options.proto +34 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/links/v1/links.proto +798 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/links/v1/links_service.proto +186 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/messages/v1/messages.proto +110 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/sensitive/v1/wrappers.proto +51 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit.proto +1202 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_member_relations.proto +85 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_moderator_service.proto +363 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_service.proto +301 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/thing/v0/thing.proto +2869 -0
- package/schema/.snootobuf/deps/reddit/devvit/custom_post/v1/custom_post.proto +15 -0
- package/schema/.snootobuf/deps/reddit/devvit/custom_post/v1/service.proto +11 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/acknowledge_order_delivery.proto +17 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/checkout.proto +69 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/common.proto +289 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/events.proto +14 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_gold_balances.proto +54 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_order.proto +31 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_orders_by_user.proto +15 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_payout_info_batch.proto +52 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_user_profiles.proto +28 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/refund_order.proto +17 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/service.proto +32 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/service_data_compliance.proto +20 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paygatewaypsps/v1/paygatewaypsps.proto +158 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payorders/v1/payments_data_compliance.proto +18 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payorders/v1/payorders.proto +144 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/admin.proto +44 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/ledger.proto +200 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/payments_data_compliance.proto +18 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/paypayments.proto +210 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payproducts/v1/currencies.proto +189 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payproducts/v1/payproducts.proto +135 -0
- package/schema/.snootobuf/deps/validate/validate.proto +862 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/automation/v1alpha/event_handlers.client.ts +597 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/automation/v1alpha/event_handlers.ts +191 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/bot/bot.client.ts +49 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/bot/bot.ts +340 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/hello/hello.client.ts +42 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/hello/hello.ts +99 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/payments/v1alpha/payments.client.ts +70 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/payments/v1alpha/payments.ts +334 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/permissions/permissions.ts +324 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/producer/producer.client.ts +37 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/producer/producer.ts +174 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/reddit/context_action.client.ts +58 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/reddit/context_action.ts +679 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/reddit/context_type.ts +22 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/reddit/post_filter.client.ts +37 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/reddit/post_filter.ts +131 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/scheduler/action.ts +84 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/scheduler/handler.client.ts +43 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/scheduler/handler.ts +12 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/settings/v1alpha/app_settings.client.ts +70 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/settings/v1alpha/app_settings.ts +15 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/settings/v1alpha/installation_settings.client.ts +70 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/settings/v1alpha/installation_settings.ts +15 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/settings/v1alpha/instance_settings.client.ts +68 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/settings/v1alpha/instance_settings.ts +15 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/settings/v1alpha/shared.ts +311 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/test/streams.client.ts +82 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/test/streams.ts +77 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/test/wrappertypes.client.ts +120 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/test/wrappertypes.ts +25 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/user_configurable/user_configurable.client.ts +63 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/user_configurable/user_configurable.ts +284 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/cli/playtest.ts +323 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/debug/v1alpha/debug.client.ts +37 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/debug/v1alpha/debug.ts +143 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/actor/actor_type.ts +94 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/admin/waitlist_admin.client.ts +76 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/admin/waitlist_admin.ts +659 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/app/app.ts +2060 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/app/categories/categories.ts +146 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/app/info/app_info.ts +389 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/app_publish_request/app_publish_request.ts +970 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/app_publish_request/note/app_publish_request_note.ts +257 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/app_publish_request/review/app_publish_request_review.ts +200 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/app_settings/app_settings.ts +571 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/app_version/app_version.ts +1161 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/app_version/info/app_version_info.ts +397 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/data_api/admin/audit/audit.ts +646 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/data_api/admin/auth/auth.ts +458 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/data_api/admin/organization/organization.ts +347 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/data_api/admin/subscription/subscription.ts +982 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/dev_portal.client.ts +1047 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/dev_portal.ts +218 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/feedback/feedback.ts +70 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/installation/installation.ts +1882 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/installation_settings/installation_settings.ts +575 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/internal/authorization/v1alpha/authorization.client.ts +41 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/internal/authorization/v1alpha/authorization.ts +394 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/internal/data_api/v1alpha/admin/admin.client.ts +118 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/internal/data_api/v1alpha/admin/admin.ts +27 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/internal/data_api/v1alpha/admin/firehose_monitor.ts +180 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/internal/media/media.client.ts +41 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/internal/media/media.ts +162 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/nutrition/nutrition.ts +245 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/reddit/redditor.ts +98 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/waitlist/waitlist.client.ts +84 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/waitlist/waitlist.ts +455 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/events/v1alpha/realtime.client.ts +50 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/events/v1alpha/realtime.ts +149 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/events/v1alpha/wqcleanup.ts +68 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/gateway/custom_post_snapshot.client.ts +37 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/gateway/custom_post_snapshot.ts +76 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/gateway/resolvers.client.ts +37 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/gateway/resolvers.ts +76 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/gateway/utils/v1alpha/utilities.client.ts +114 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/gateway/utils/v1alpha/utilities.ts +475 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/gateway/v1alpha/triggers.client.ts +96 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/gateway/v1alpha/triggers.ts +256 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/gql/snapshot.ts +80 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/gql/subreddit_metadata.ts +312 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/payments/v1alpha/common.ts +22 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/payments/v1alpha/order.ts +208 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/payments/v1alpha/product.ts +241 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/assetresolver/assetresolver.client.ts +58 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/assetresolver/assetresolver.ts +380 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/builder/builder.client.ts +57 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/builder/builder.ts +102 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/buildpack/buildpack.client.ts +57 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/buildpack/buildpack.ts +13 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/buildpack/buildpack_common.ts +705 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/buildpack/filesystem.ts +168 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/clock/clock.client.ts +37 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/clock/clock.ts +12 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/http/http.client.ts +37 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/http/http.ts +294 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/inspector/inspector.client.ts +51 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/inspector/inspector.ts +304 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/kvstore/kvstore.client.ts +72 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/kvstore/kvstore.ts +209 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/linker/linker.client.ts +51 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/linker/linker.ts +89 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/linker/resolver.client.ts +80 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/linker/resolver.ts +198 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/logger/logger.client.ts +83 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/logger/logger.ts +608 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/media/media.client.ts +37 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/media/media.ts +155 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/modlog/modlog.client.ts +43 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/modlog/modlog.ts +187 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/payments/v1alpha/payments.client.ts +81 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/payments/v1alpha/payments.ts +476 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/common/common_msg.ts +3641 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/flair/flair_msg.ts +2310 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/flair/flair_svc.client.ts +270 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/flair/flair_svc.ts +43 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/graphql/graphql_msg.ts +224 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/graphql/graphql_svc.client.ts +63 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/graphql/graphql_svc.ts +14 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/linksandcomments/linksandcomments_msg.ts +1869 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.client.ts +571 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.ts +52 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/listings/listings_msg.ts +1156 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/listings/listings_svc.client.ts +194 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/listings/listings_svc.ts +27 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/moderation/moderation_msg.ts +1231 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/moderation/moderation_svc.client.ts +373 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/moderation/moderation_svc.ts +46 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/modnote/modnote_msg.ts +1025 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/modnote/modnote_svc.client.ts +112 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/modnote/modnote_svc.ts +23 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/newmodmail/newmodmail_msg.ts +4135 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/newmodmail/newmodmail_svc.client.ts +351 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/newmodmail/newmodmail_svc.ts +52 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/postcollections/postcollections_msg.ts +1040 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/postcollections/postcollections_svc.client.ts +207 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/postcollections/postcollections_svc.ts +34 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/privatemessages/privatemessages_msg.ts +380 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/privatemessages/privatemessages_svc.client.ts +186 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/privatemessages/privatemessages_svc.ts +25 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/subreddits/subreddits_msg.ts +11280 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/subreddits/subreddits_svc.client.ts +480 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/subreddits/subreddits_svc.ts +71 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/users/users_msg.ts +1820 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/users/users_svc.client.ts +247 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/users/users_svc.ts +42 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/widgets/widgets_msg.ts +4766 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/widgets/widgets_svc.client.ts +401 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/widgets/widgets_svc.ts +56 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/wiki/wiki_msg.ts +1786 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/wiki/wiki_svc.client.ts +236 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/wiki/wiki_svc.ts +35 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapiv2/redditapiv2.client.ts +50 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapiv2/redditapiv2.ts +15 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redis/redisapi.client.ts +518 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redis/redisapi.ts +3347 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/scheduler/scheduler.client.ts +89 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/scheduler/scheduler.ts +575 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/settings/v1alpha/settings.client.ts +41 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/settings/v1alpha/settings.ts +235 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/streambroker/streambroker.client.ts +50 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/streambroker/streambroker.ts +169 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/timer/timer.client.ts +37 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/timer/timer.ts +76 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/v2events/v2events.client.ts +41 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/v2events/v2events.ts +312 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/reddit/comment.ts +963 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/reddit/common.ts +1099 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/reddit/custom_actions/v2alpha/custom_actions.client.ts +50 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/reddit/custom_actions/v2alpha/custom_actions.ts +527 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/reddit/custom_post/v1alpha/custom_post.client.ts +79 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/reddit/custom_post/v1alpha/custom_post.ts +340 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/reddit/post.ts +2063 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/reddit/subreddit.ts +1374 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/reddit/thing_type.ts +36 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/reddit/user.ts +1418 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/remote_logger/remote_logger.client.ts +78 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/remote_logger/remote_logger.ts +538 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/bootstrap.client.ts +56 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/bootstrap.ts +13 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/echo.client.ts +36 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/echo.ts +11 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/runtime.client.ts +53 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/runtime.ts +78 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/supervisor.client.ts +87 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/supervisor.ts +92 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/v1alpha/health.client.ts +37 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/v1alpha/health.ts +87 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/bundle.ts +859 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/envelope.ts +230 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/runtime_common.ts +251 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/serializable.ts +232 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/service/bundle_service.client.ts +57 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/service/bundle_service.ts +82 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/service/envelope_service.client.ts +41 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/service/envelope_service.ts +12 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/block_kit/v1beta/attributes.ts +642 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/block_kit/v1beta/block.ts +1656 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/block_kit/v1beta/enums.ts +602 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/block_kit/v1beta/rendering.ts +157 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/block_kit/v1beta/ui.ts +354 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/common/v1alpha/common.ts +116 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/effects/v1alpha/create_order.ts +217 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/effects/v1alpha/effect.ts +266 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/effects/v1alpha/interval.ts +169 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/effects/v1alpha/navigate_to_url.ts +81 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/effects/v1alpha/realtime_subscriptions.ts +156 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/effects/v1alpha/reload_part.ts +349 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/effects/v1alpha/rerender_ui.ts +71 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/effects/v1alpha/show_form.ts +162 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/effects/v1alpha/show_toast.ts +104 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/events/v1alpha/event.ts +697 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/events/v1alpha/handle_ui.client.ts +39 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/events/v1alpha/handle_ui.ts +160 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/form_builder/v1alpha/field.ts +974 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/form_builder/v1alpha/form.ts +134 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/form_builder/v1alpha/type.ts +56 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/form_builder/v1alpha/value.ts +359 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/toast/toast.ts +314 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/uuid.ts +70 -0
- package/schema/.snootobuf/output/devenv_ts_files/google/protobuf/any.ts +322 -0
- package/schema/.snootobuf/output/devenv_ts_files/google/protobuf/descriptor.ts +3475 -0
- package/schema/.snootobuf/output/devenv_ts_files/google/protobuf/duration.ts +231 -0
- package/schema/.snootobuf/output/devenv_ts_files/google/protobuf/empty.ts +81 -0
- package/schema/.snootobuf/output/devenv_ts_files/google/protobuf/struct.ts +482 -0
- package/schema/.snootobuf/output/devenv_ts_files/google/protobuf/timestamp.ts +290 -0
- package/schema/.snootobuf/output/devenv_ts_files/google/protobuf/wrappers.ts +752 -0
- package/schema/devvit/dev_portal/admin/waitlist_admin.proto +2 -0
- package/schema/devvit/dev_portal/app/app.proto +2 -0
- package/schema/devvit/dev_portal/app_publish_request/app_publish_request.proto +2 -0
- package/schema/devvit/dev_portal/app_publish_request/note/app_publish_request_note.proto +2 -0
- package/schema/devvit/dev_portal/app_publish_request/review/app_publish_request_review.proto +2 -10
- package/schema/devvit/dev_portal/app_settings/app_settings.proto +2 -0
- package/schema/devvit/dev_portal/dev_portal.proto +2 -2
- package/schema/devvit/dev_portal/feedback/feedback.proto +2 -0
- package/schema/devvit/dev_portal/installation_settings/installation_settings.proto +2 -0
- package/schema/devvit/dev_portal/nutrition/nutrition.proto +2 -0
- package/schema/devvit/dev_portal/waitlist/waitlist.proto +2 -0
- package/schema/devvit/gateway/v1alpha/triggers.proto +1 -1
- package/schema/snootobuf.devenv.lock +0 -0
- package/schema/snootobuf.devenv.yaml +15 -0
- package/schema/snootobuf.lock +0 -0
- package/schema/snootobuf.redditapi.lock +0 -0
- package/schema/snootobuf.redditapi.yaml +14 -0
- package/schema/snootobuf.ts.lock +0 -0
- package/schema/snootobuf.ts.yaml +35 -0
- package/schema/snootobuf.yaml +49 -0
- package/types/devvit/actor/automation/v1alpha/event_handlers.d.ts +6 -6
- package/types/devvit/actor/automation/v1alpha/event_handlers.js +5 -5
- package/types/devvit/actor/automation/v1alpha/event_handlers.twirp-client.d.ts +342 -0
- package/types/devvit/actor/automation/v1alpha/event_handlers.twirp-client.d.ts.map +1 -0
- package/types/devvit/actor/automation/v1alpha/event_handlers.twirp-client.js +466 -0
- package/types/devvit/actor/automation/v1alpha/event_handlers.twirp.d.ts +175 -0
- package/types/devvit/actor/automation/v1alpha/event_handlers.twirp.d.ts.map +1 -0
- package/types/devvit/actor/automation/v1alpha/event_handlers.twirp.js +1833 -0
- package/types/devvit/actor/bot/bot.d.ts +2 -2
- package/types/devvit/actor/bot/bot.js +3 -3
- package/types/devvit/actor/bot/bot.twirp-client.d.ts +23 -0
- package/types/devvit/actor/bot/bot.twirp-client.d.ts.map +1 -0
- package/types/devvit/actor/bot/bot.twirp-client.js +36 -0
- package/types/devvit/actor/bot/bot.twirp.d.ts +15 -0
- package/types/devvit/actor/bot/bot.twirp.d.ts.map +1 -0
- package/types/devvit/actor/bot/bot.twirp.js +154 -0
- package/types/devvit/actor/hello/hello.d.ts +1 -1
- package/types/devvit/actor/hello/hello.js +2 -2
- package/types/devvit/actor/hello/hello.twirp-client.d.ts +19 -0
- package/types/devvit/actor/hello/hello.twirp-client.d.ts.map +1 -0
- package/types/devvit/actor/hello/hello.twirp-client.js +23 -0
- package/types/devvit/actor/hello/hello.twirp.d.ts +12 -0
- package/types/devvit/actor/hello/hello.twirp.d.ts.map +1 -0
- package/types/devvit/actor/hello/hello.twirp.js +88 -0
- package/types/devvit/actor/payments/v1alpha/payments.d.ts +2 -2
- package/types/devvit/actor/payments/v1alpha/payments.js +3 -3
- package/types/devvit/actor/payments/v1alpha/payments.twirp-client.d.ts +22 -0
- package/types/devvit/actor/payments/v1alpha/payments.twirp-client.d.ts.map +1 -0
- package/types/devvit/actor/payments/v1alpha/payments.twirp-client.js +35 -0
- package/types/devvit/actor/payments/v1alpha/payments.twirp.d.ts +14 -0
- package/types/devvit/actor/payments/v1alpha/payments.twirp.d.ts.map +1 -0
- package/types/devvit/actor/payments/v1alpha/payments.twirp.js +156 -0
- package/types/devvit/actor/permissions/permissions.d.ts +1 -1
- package/types/devvit/actor/permissions/permissions.js +2 -2
- package/types/devvit/actor/producer/producer.d.ts +1 -1
- package/types/devvit/actor/producer/producer.js +2 -2
- package/types/devvit/actor/producer/producer.twirp-client.d.ts +19 -0
- package/types/devvit/actor/producer/producer.twirp-client.d.ts.map +1 -0
- package/types/devvit/actor/producer/producer.twirp-client.js +23 -0
- package/types/devvit/actor/producer/producer.twirp.d.ts +12 -0
- package/types/devvit/actor/producer/producer.twirp.d.ts.map +1 -0
- package/types/devvit/actor/producer/producer.twirp.js +88 -0
- package/types/devvit/actor/reddit/context_action.d.ts +6 -6
- package/types/devvit/actor/reddit/context_action.js +7 -7
- package/types/devvit/actor/reddit/context_action.twirp-client.d.ts +23 -0
- package/types/devvit/actor/reddit/context_action.twirp-client.d.ts.map +1 -0
- package/types/devvit/actor/reddit/context_action.twirp-client.js +36 -0
- package/types/devvit/actor/reddit/context_action.twirp.d.ts +15 -0
- package/types/devvit/actor/reddit/context_action.twirp.d.ts.map +1 -0
- package/types/devvit/actor/reddit/context_action.twirp.js +157 -0
- package/types/devvit/actor/reddit/post_filter.d.ts +2 -2
- package/types/devvit/actor/reddit/post_filter.js +3 -3
- package/types/devvit/actor/reddit/post_filter.twirp-client.d.ts +19 -0
- package/types/devvit/actor/reddit/post_filter.twirp-client.d.ts.map +1 -0
- package/types/devvit/actor/reddit/post_filter.twirp-client.js +23 -0
- package/types/devvit/actor/reddit/post_filter.twirp.d.ts +12 -0
- package/types/devvit/actor/reddit/post_filter.twirp.d.ts.map +1 -0
- package/types/devvit/actor/reddit/post_filter.twirp.js +88 -0
- package/types/devvit/actor/scheduler/action.d.ts +1 -1
- package/types/devvit/actor/scheduler/action.js +3 -3
- package/types/devvit/actor/scheduler/handler.d.ts +3 -3
- package/types/devvit/actor/scheduler/handler.js +3 -3
- package/types/devvit/actor/scheduler/handler.twirp-client.d.ts +20 -0
- package/types/devvit/actor/scheduler/handler.twirp-client.d.ts.map +1 -0
- package/types/devvit/actor/scheduler/handler.twirp-client.js +24 -0
- package/types/devvit/actor/scheduler/handler.twirp.d.ts +13 -0
- package/types/devvit/actor/scheduler/handler.twirp.d.ts.map +1 -0
- package/types/devvit/actor/scheduler/handler.twirp.js +91 -0
- package/types/devvit/actor/settings/v1alpha/app_settings.d.ts +2 -2
- package/types/devvit/actor/settings/v1alpha/app_settings.js +2 -2
- package/types/devvit/actor/settings/v1alpha/app_settings.twirp-client.d.ts +22 -0
- package/types/devvit/actor/settings/v1alpha/app_settings.twirp-client.d.ts.map +1 -0
- package/types/devvit/actor/settings/v1alpha/app_settings.twirp-client.js +35 -0
- package/types/devvit/actor/settings/v1alpha/app_settings.twirp.d.ts +14 -0
- package/types/devvit/actor/settings/v1alpha/app_settings.twirp.d.ts.map +1 -0
- package/types/devvit/actor/settings/v1alpha/app_settings.twirp.js +156 -0
- package/types/devvit/actor/settings/v1alpha/installation_settings.d.ts +2 -2
- package/types/devvit/actor/settings/v1alpha/installation_settings.js +2 -2
- package/types/devvit/actor/settings/v1alpha/installation_settings.twirp-client.d.ts +22 -0
- package/types/devvit/actor/settings/v1alpha/installation_settings.twirp-client.d.ts.map +1 -0
- package/types/devvit/actor/settings/v1alpha/installation_settings.twirp-client.js +35 -0
- package/types/devvit/actor/settings/v1alpha/installation_settings.twirp.d.ts +14 -0
- package/types/devvit/actor/settings/v1alpha/installation_settings.twirp.d.ts.map +1 -0
- package/types/devvit/actor/settings/v1alpha/installation_settings.twirp.js +156 -0
- package/types/devvit/actor/settings/v1alpha/instance_settings.d.ts +2 -2
- package/types/devvit/actor/settings/v1alpha/instance_settings.js +2 -2
- package/types/devvit/actor/settings/v1alpha/instance_settings.twirp-client.d.ts +22 -0
- package/types/devvit/actor/settings/v1alpha/instance_settings.twirp-client.d.ts.map +1 -0
- package/types/devvit/actor/settings/v1alpha/instance_settings.twirp-client.js +35 -0
- package/types/devvit/actor/settings/v1alpha/instance_settings.twirp.d.ts +14 -0
- package/types/devvit/actor/settings/v1alpha/instance_settings.twirp.d.ts.map +1 -0
- package/types/devvit/actor/settings/v1alpha/instance_settings.twirp.js +156 -0
- package/types/devvit/actor/settings/v1alpha/shared.d.ts +3 -3
- package/types/devvit/actor/settings/v1alpha/shared.js +4 -4
- package/types/devvit/actor/test/streams.d.ts +1 -1
- package/types/devvit/actor/test/streams.js +2 -2
- package/types/devvit/actor/test/streams.twirp-client.d.ts +25 -0
- package/types/devvit/actor/test/streams.twirp-client.d.ts.map +1 -0
- package/types/devvit/actor/test/streams.twirp-client.js +47 -0
- package/types/devvit/actor/test/streams.twirp.d.ts +16 -0
- package/types/devvit/actor/test/streams.twirp.d.ts.map +1 -0
- package/types/devvit/actor/test/streams.twirp.js +222 -0
- package/types/devvit/actor/test/wrappertypes.d.ts +2 -2
- package/types/devvit/actor/test/wrappertypes.js +2 -2
- package/types/devvit/actor/test/wrappertypes.twirp-client.d.ts +40 -0
- package/types/devvit/actor/test/wrappertypes.twirp-client.d.ts.map +1 -0
- package/types/devvit/actor/test/wrappertypes.twirp-client.js +107 -0
- package/types/devvit/actor/test/wrappertypes.twirp.d.ts +26 -0
- package/types/devvit/actor/test/wrappertypes.twirp.d.ts.map +1 -0
- package/types/devvit/actor/test/wrappertypes.twirp.js +552 -0
- package/types/devvit/actor/user_configurable/user_configurable.d.ts +2 -2
- package/types/devvit/actor/user_configurable/user_configurable.js +3 -3
- package/types/devvit/actor/user_configurable/user_configurable.twirp-client.d.ts +23 -0
- package/types/devvit/actor/user_configurable/user_configurable.twirp-client.d.ts.map +1 -0
- package/types/devvit/actor/user_configurable/user_configurable.twirp-client.js +36 -0
- package/types/devvit/actor/user_configurable/user_configurable.twirp.d.ts +15 -0
- package/types/devvit/actor/user_configurable/user_configurable.twirp.d.ts.map +1 -0
- package/types/devvit/actor/user_configurable/user_configurable.twirp.js +157 -0
- package/types/devvit/cli/playtest.d.ts +2 -2
- package/types/devvit/cli/playtest.js +3 -3
- package/types/devvit/data/api/v1alpha/admin.d.ts +4 -4
- package/types/devvit/data/api/v1alpha/admin.d.ts.map +1 -1
- package/types/devvit/data/api/v1alpha/admin.js +6 -6
- package/types/devvit/debug/v1alpha/debug.d.ts +1 -1
- package/types/devvit/debug/v1alpha/debug.js +2 -2
- package/types/devvit/debug/v1alpha/debug.twirp-client.d.ts +19 -0
- package/types/devvit/debug/v1alpha/debug.twirp-client.d.ts.map +1 -0
- package/types/devvit/debug/v1alpha/debug.twirp-client.js +23 -0
- package/types/devvit/debug/v1alpha/debug.twirp.d.ts +12 -0
- package/types/devvit/debug/v1alpha/debug.twirp.d.ts.map +1 -0
- package/types/devvit/debug/v1alpha/debug.twirp.js +88 -0
- package/types/devvit/dev_portal/actor/actor_type.d.ts +1 -1
- package/types/devvit/dev_portal/actor/actor_type.js +2 -2
- package/types/devvit/dev_portal/admin/waitlist_admin.d.ts +3 -3
- package/types/devvit/dev_portal/admin/waitlist_admin.js +5 -5
- package/types/devvit/dev_portal/app/app.d.ts +4 -4
- package/types/devvit/dev_portal/app/app.js +6 -6
- package/types/devvit/dev_portal/app/info/app_info.d.ts +4 -4
- package/types/devvit/dev_portal/app/info/app_info.js +6 -6
- package/types/devvit/dev_portal/app_publish_request/app_publish_request.d.ts +6 -6
- package/types/devvit/dev_portal/app_publish_request/app_publish_request.js +8 -8
- package/types/devvit/dev_portal/app_publish_request/note/app_publish_request_note.d.ts +2 -2
- package/types/devvit/dev_portal/app_publish_request/note/app_publish_request_note.js +4 -4
- package/types/devvit/dev_portal/app_publish_request/review/app_publish_request_review.d.ts +2 -28
- package/types/devvit/dev_portal/app_publish_request/review/app_publish_request_review.d.ts.map +1 -1
- package/types/devvit/dev_portal/app_publish_request/review/app_publish_request_review.js +4 -142
- package/types/devvit/dev_portal/app_settings/app_settings.d.ts +3 -3
- package/types/devvit/dev_portal/app_settings/app_settings.js +4 -4
- package/types/devvit/dev_portal/app_version/app_version.d.ts +7 -7
- package/types/devvit/dev_portal/app_version/app_version.js +9 -9
- package/types/devvit/dev_portal/app_version/info/app_version_info.d.ts +1 -1
- package/types/devvit/dev_portal/app_version/info/app_version_info.js +4 -4
- package/types/devvit/dev_portal/data_api/admin/audit/audit.d.ts +1 -1
- package/types/devvit/dev_portal/data_api/admin/audit/audit.js +3 -3
- package/types/devvit/dev_portal/data_api/admin/auth/auth.d.ts +3 -3
- package/types/devvit/dev_portal/data_api/admin/auth/auth.js +5 -5
- package/types/devvit/dev_portal/data_api/admin/organization/organization.d.ts +2 -2
- package/types/devvit/dev_portal/data_api/admin/organization/organization.js +3 -3
- package/types/devvit/dev_portal/data_api/admin/subscription/subscription.d.ts +4 -4
- package/types/devvit/dev_portal/data_api/admin/subscription/subscription.js +5 -5
- package/types/devvit/dev_portal/dev_portal.d.ts +20 -88
- package/types/devvit/dev_portal/dev_portal.d.ts.map +1 -1
- package/types/devvit/dev_portal/dev_portal.js +20 -48
- package/types/devvit/dev_portal/dev_portal.twirp-client.d.ts +1 -7
- package/types/devvit/dev_portal/dev_portal.twirp-client.d.ts.map +1 -1
- package/types/devvit/dev_portal/dev_portal.twirp-client.js +1 -25
- package/types/devvit/dev_portal/dev_portal.twirp.d.ts +1 -5
- package/types/devvit/dev_portal/dev_portal.twirp.d.ts.map +1 -1
- package/types/devvit/dev_portal/dev_portal.twirp.js +1 -133
- package/types/devvit/dev_portal/feedback/feedback.d.ts +1 -1
- package/types/devvit/dev_portal/feedback/feedback.js +2 -2
- package/types/devvit/dev_portal/installation/installation.d.ts +4 -4
- package/types/devvit/dev_portal/installation/installation.js +8 -8
- package/types/devvit/dev_portal/installation_settings/installation_settings.d.ts +3 -3
- package/types/devvit/dev_portal/installation_settings/installation_settings.js +4 -4
- package/types/devvit/dev_portal/internal/authorization/v1alpha/authorization.d.ts +2 -2
- package/types/devvit/dev_portal/internal/authorization/v1alpha/authorization.js +3 -3
- package/types/devvit/dev_portal/internal/data_api/v1alpha/admin/admin.d.ts +5 -5
- package/types/devvit/dev_portal/internal/data_api/v1alpha/admin/admin.js +5 -5
- package/types/devvit/dev_portal/internal/data_api/v1alpha/admin/firehose_monitor.d.ts +2 -2
- package/types/devvit/dev_portal/internal/data_api/v1alpha/admin/firehose_monitor.js +3 -3
- package/types/devvit/dev_portal/internal/media/media.d.ts +1 -1
- package/types/devvit/dev_portal/internal/media/media.js +2 -2
- package/types/devvit/dev_portal/nutrition/nutrition.d.ts +1 -1
- package/types/devvit/dev_portal/nutrition/nutrition.js +2 -2
- package/types/devvit/dev_portal/reddit/redditor.d.ts +1 -1
- package/types/devvit/dev_portal/reddit/redditor.js +2 -2
- package/types/devvit/dev_portal/waitlist/waitlist.d.ts +3 -3
- package/types/devvit/dev_portal/waitlist/waitlist.js +5 -5
- package/types/devvit/events/v1alpha/events.d.ts +6 -6
- package/types/devvit/events/v1alpha/events.d.ts.map +1 -1
- package/types/devvit/events/v1alpha/events.js +17 -17
- package/types/devvit/events/v1alpha/realtime.d.ts +2 -2
- package/types/devvit/events/v1alpha/realtime.js +4 -4
- package/types/devvit/events/v1alpha/realtime.twirp-client.d.ts +23 -0
- package/types/devvit/events/v1alpha/realtime.twirp-client.d.ts.map +1 -0
- package/types/devvit/events/v1alpha/realtime.twirp-client.js +36 -0
- package/types/devvit/events/v1alpha/realtime.twirp.d.ts +15 -0
- package/types/devvit/events/v1alpha/realtime.twirp.d.ts.map +1 -0
- package/types/devvit/events/v1alpha/realtime.twirp.js +157 -0
- package/types/devvit/events/v1alpha/wqcleanup.d.ts +1 -1
- package/types/devvit/events/v1alpha/wqcleanup.js +2 -2
- package/types/devvit/gateway/custom_post_snapshot.d.ts +2 -2
- package/types/devvit/gateway/custom_post_snapshot.js +3 -3
- package/types/devvit/gateway/custom_post_snapshot.twirp-client.d.ts +20 -0
- package/types/devvit/gateway/custom_post_snapshot.twirp-client.d.ts.map +1 -0
- package/types/devvit/gateway/custom_post_snapshot.twirp-client.js +24 -0
- package/types/devvit/gateway/custom_post_snapshot.twirp.d.ts +13 -0
- package/types/devvit/gateway/custom_post_snapshot.twirp.d.ts.map +1 -0
- package/types/devvit/gateway/custom_post_snapshot.twirp.js +91 -0
- package/types/devvit/gateway/resolvers.d.ts +2 -2
- package/types/devvit/gateway/resolvers.js +3 -3
- package/types/devvit/gateway/resolvers.twirp-client.d.ts +20 -0
- package/types/devvit/gateway/resolvers.twirp-client.d.ts.map +1 -0
- package/types/devvit/gateway/resolvers.twirp-client.js +24 -0
- package/types/devvit/gateway/resolvers.twirp.d.ts +13 -0
- package/types/devvit/gateway/resolvers.twirp.d.ts.map +1 -0
- package/types/devvit/gateway/resolvers.twirp.js +91 -0
- package/types/devvit/gateway/utils/v1alpha/utilities.d.ts +1 -1
- package/types/devvit/gateway/utils/v1alpha/utilities.js +2 -2
- package/types/devvit/gateway/utils/v1alpha/utilities.twirp-client.d.ts +47 -0
- package/types/devvit/gateway/utils/v1alpha/utilities.twirp-client.d.ts.map +1 -0
- package/types/devvit/gateway/utils/v1alpha/utilities.twirp-client.js +93 -0
- package/types/devvit/gateway/utils/v1alpha/utilities.twirp.d.ts +28 -0
- package/types/devvit/gateway/utils/v1alpha/utilities.twirp.d.ts.map +1 -0
- package/types/devvit/gateway/utils/v1alpha/utilities.twirp.js +440 -0
- package/types/devvit/gateway/v1alpha/triggers.d.ts +8 -8
- package/types/devvit/gateway/v1alpha/triggers.d.ts.map +1 -1
- package/types/devvit/gateway/v1alpha/triggers.js +5 -5
- package/types/devvit/gateway/v1alpha/triggers.twirp-client.d.ts +37 -0
- package/types/devvit/gateway/v1alpha/triggers.twirp-client.d.ts.map +1 -0
- package/types/devvit/gateway/v1alpha/triggers.twirp-client.js +86 -0
- package/types/devvit/gateway/v1alpha/triggers.twirp.d.ts +25 -0
- package/types/devvit/gateway/v1alpha/triggers.twirp.d.ts.map +1 -0
- package/types/devvit/gateway/v1alpha/triggers.twirp.js +423 -0
- package/types/devvit/gql/snapshot.d.ts +1 -1
- package/types/devvit/gql/snapshot.js +2 -2
- package/types/devvit/gql/subreddit_metadata.d.ts +3 -3
- package/types/devvit/gql/subreddit_metadata.js +4 -4
- package/types/devvit/options/options.d.ts +1 -1
- package/types/devvit/options/options.js +2 -2
- package/types/devvit/payments/v1alpha/order.d.ts +3 -3
- package/types/devvit/payments/v1alpha/order.js +5 -5
- package/types/devvit/payments/v1alpha/product.d.ts +2 -2
- package/types/devvit/payments/v1alpha/product.js +3 -3
- package/types/devvit/plugin/assetresolver/assetresolver.d.ts +1 -1
- package/types/devvit/plugin/assetresolver/assetresolver.js +2 -2
- package/types/devvit/plugin/assetresolver/assetresolver.twirp-client.d.ts +22 -0
- package/types/devvit/plugin/assetresolver/assetresolver.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/assetresolver/assetresolver.twirp-client.js +35 -0
- package/types/devvit/plugin/assetresolver/assetresolver.twirp.d.ts +14 -0
- package/types/devvit/plugin/assetresolver/assetresolver.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/assetresolver/assetresolver.twirp.js +156 -0
- package/types/devvit/plugin/builder/builder.d.ts +3 -3
- package/types/devvit/plugin/builder/builder.js +4 -4
- package/types/devvit/plugin/builder/builder.twirp-client.d.ts +23 -0
- package/types/devvit/plugin/builder/builder.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/builder/builder.twirp-client.js +36 -0
- package/types/devvit/plugin/builder/builder.twirp.d.ts +15 -0
- package/types/devvit/plugin/builder/builder.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/builder/builder.twirp.js +154 -0
- package/types/devvit/plugin/buildpack/buildpack.d.ts +2 -2
- package/types/devvit/plugin/buildpack/buildpack.js +2 -2
- package/types/devvit/plugin/buildpack/buildpack.twirp-client.d.ts +22 -0
- package/types/devvit/plugin/buildpack/buildpack.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/buildpack/buildpack.twirp-client.js +35 -0
- package/types/devvit/plugin/buildpack/buildpack.twirp.d.ts +14 -0
- package/types/devvit/plugin/buildpack/buildpack.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/buildpack/buildpack.twirp.js +156 -0
- package/types/devvit/plugin/buildpack/buildpack_common.d.ts +4 -4
- package/types/devvit/plugin/buildpack/buildpack_common.js +6 -6
- package/types/devvit/plugin/buildpack/filesystem.d.ts +1 -1
- package/types/devvit/plugin/buildpack/filesystem.js +2 -2
- package/types/devvit/plugin/clock/clock.d.ts +3 -3
- package/types/devvit/plugin/clock/clock.js +3 -3
- package/types/devvit/plugin/clock/clock.twirp-client.d.ts +20 -0
- package/types/devvit/plugin/clock/clock.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/clock/clock.twirp-client.js +24 -0
- package/types/devvit/plugin/clock/clock.twirp.d.ts +13 -0
- package/types/devvit/plugin/clock/clock.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/clock/clock.twirp.js +89 -0
- package/types/devvit/plugin/http/http.d.ts +1 -1
- package/types/devvit/plugin/http/http.js +2 -2
- package/types/devvit/plugin/http/http.twirp-client.d.ts +19 -0
- package/types/devvit/plugin/http/http.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/http/http.twirp-client.js +23 -0
- package/types/devvit/plugin/http/http.twirp.d.ts +12 -0
- package/types/devvit/plugin/http/http.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/http/http.twirp.js +88 -0
- package/types/devvit/plugin/inspector/inspector.d.ts +3 -3
- package/types/devvit/plugin/inspector/inspector.js +4 -4
- package/types/devvit/plugin/inspector/inspector.twirp-client.d.ts +23 -0
- package/types/devvit/plugin/inspector/inspector.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/inspector/inspector.twirp-client.js +36 -0
- package/types/devvit/plugin/inspector/inspector.twirp.d.ts +15 -0
- package/types/devvit/plugin/inspector/inspector.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/inspector/inspector.twirp.js +157 -0
- package/types/devvit/plugin/kvstore/kvstore.d.ts +2 -2
- package/types/devvit/plugin/kvstore/kvstore.js +3 -3
- package/types/devvit/plugin/kvstore/kvstore.twirp-client.d.ts +29 -0
- package/types/devvit/plugin/kvstore/kvstore.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/kvstore/kvstore.twirp-client.js +60 -0
- package/types/devvit/plugin/kvstore/kvstore.twirp.d.ts +19 -0
- package/types/devvit/plugin/kvstore/kvstore.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/kvstore/kvstore.twirp.js +289 -0
- package/types/devvit/plugin/linker/linker.d.ts +4 -4
- package/types/devvit/plugin/linker/linker.js +5 -5
- package/types/devvit/plugin/linker/linker.twirp-client.d.ts +20 -0
- package/types/devvit/plugin/linker/linker.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/linker/linker.twirp-client.js +24 -0
- package/types/devvit/plugin/linker/linker.twirp.d.ts +13 -0
- package/types/devvit/plugin/linker/linker.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/linker/linker.twirp.js +89 -0
- package/types/devvit/plugin/linker/resolver.d.ts +5 -5
- package/types/devvit/plugin/linker/resolver.js +6 -6
- package/types/devvit/plugin/linker/resolver.twirp-client.d.ts +29 -0
- package/types/devvit/plugin/linker/resolver.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/linker/resolver.twirp-client.js +51 -0
- package/types/devvit/plugin/linker/resolver.twirp.d.ts +20 -0
- package/types/devvit/plugin/linker/resolver.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/linker/resolver.twirp.js +226 -0
- package/types/devvit/plugin/logger/logger.d.ts +1 -1
- package/types/devvit/plugin/logger/logger.js +4 -4
- package/types/devvit/plugin/media/media.d.ts +1 -1
- package/types/devvit/plugin/media/media.js +2 -2
- package/types/devvit/plugin/media/media.twirp-client.d.ts +19 -0
- package/types/devvit/plugin/media/media.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/media/media.twirp-client.js +23 -0
- package/types/devvit/plugin/media/media.twirp.d.ts +12 -0
- package/types/devvit/plugin/media/media.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/media/media.twirp.js +88 -0
- package/types/devvit/plugin/modlog/modlog.d.ts +1 -1
- package/types/devvit/plugin/modlog/modlog.js +2 -2
- package/types/devvit/plugin/modlog/modlog.twirp-client.d.ts +19 -0
- package/types/devvit/plugin/modlog/modlog.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/modlog/modlog.twirp-client.js +23 -0
- package/types/devvit/plugin/modlog/modlog.twirp.d.ts +12 -0
- package/types/devvit/plugin/modlog/modlog.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/modlog/modlog.twirp.js +88 -0
- package/types/devvit/plugin/payments/v1alpha/payments.d.ts +3 -3
- package/types/devvit/plugin/payments/v1alpha/payments.js +5 -5
- package/types/devvit/plugin/payments/v1alpha/payments.twirp-client.d.ts +25 -0
- package/types/devvit/plugin/payments/v1alpha/payments.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/payments/v1alpha/payments.twirp-client.js +47 -0
- package/types/devvit/plugin/payments/v1alpha/payments.twirp.d.ts +16 -0
- package/types/devvit/plugin/payments/v1alpha/payments.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/payments/v1alpha/payments.twirp.js +222 -0
- package/types/devvit/plugin/redditapi/common/common_msg.d.ts +3 -3
- package/types/devvit/plugin/redditapi/common/common_msg.js +6 -6
- package/types/devvit/plugin/redditapi/flair/flair_msg.d.ts +1 -1
- package/types/devvit/plugin/redditapi/flair/flair_msg.js +3 -3
- package/types/devvit/plugin/redditapi/flair/flair_svc.d.ts +17 -17
- package/types/devvit/plugin/redditapi/flair/flair_svc.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/flair/flair_svc.js +47 -126
- package/types/devvit/plugin/redditapi/flair/flair_svc.twirp-client.d.ts +60 -0
- package/types/devvit/plugin/redditapi/flair/flair_svc.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/flair/flair_svc.twirp-client.js +181 -0
- package/types/devvit/plugin/redditapi/flair/flair_svc.twirp.d.ts +40 -0
- package/types/devvit/plugin/redditapi/flair/flair_svc.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/flair/flair_svc.twirp.js +950 -0
- package/types/devvit/plugin/redditapi/graphql/graphql_msg.d.ts +1 -1
- package/types/devvit/plugin/redditapi/graphql/graphql_msg.js +3 -3
- package/types/devvit/plugin/redditapi/graphql/graphql_svc.d.ts +2 -2
- package/types/devvit/plugin/redditapi/graphql/graphql_svc.js +2 -2
- package/types/devvit/plugin/redditapi/graphql/graphql_svc.twirp-client.d.ts +22 -0
- package/types/devvit/plugin/redditapi/graphql/graphql_svc.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/graphql/graphql_svc.twirp-client.js +35 -0
- package/types/devvit/plugin/redditapi/graphql/graphql_svc.twirp.d.ts +14 -0
- package/types/devvit/plugin/redditapi/graphql/graphql_svc.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/graphql/graphql_svc.twirp.js +156 -0
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_msg.d.ts +3 -3
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_msg.js +5 -5
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.d.ts +27 -27
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.js +89 -388
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp-client.d.ts +90 -0
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp-client.js +301 -0
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp.d.ts +60 -0
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp.js +1610 -0
- package/types/devvit/plugin/redditapi/listings/listings_msg.d.ts +2 -2
- package/types/devvit/plugin/redditapi/listings/listings_msg.js +4 -4
- package/types/devvit/plugin/redditapi/listings/listings_svc.d.ts +11 -11
- package/types/devvit/plugin/redditapi/listings/listings_svc.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/listings/listings_svc.js +21 -55
- package/types/devvit/plugin/redditapi/listings/listings_svc.twirp-client.d.ts +41 -0
- package/types/devvit/plugin/redditapi/listings/listings_svc.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/listings/listings_svc.twirp-client.js +108 -0
- package/types/devvit/plugin/redditapi/listings/listings_svc.twirp.d.ts +27 -0
- package/types/devvit/plugin/redditapi/listings/listings_svc.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/listings/listings_svc.twirp.js +553 -0
- package/types/devvit/plugin/redditapi/moderation/moderation_msg.d.ts +1 -1
- package/types/devvit/plugin/redditapi/moderation/moderation_msg.js +3 -3
- package/types/devvit/plugin/redditapi/moderation/moderation_svc.d.ts +28 -28
- package/types/devvit/plugin/redditapi/moderation/moderation_svc.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/moderation/moderation_svc.js +81 -361
- package/types/devvit/plugin/redditapi/moderation/moderation_svc.twirp-client.d.ts +85 -0
- package/types/devvit/plugin/redditapi/moderation/moderation_svc.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/moderation/moderation_svc.twirp-client.js +278 -0
- package/types/devvit/plugin/redditapi/moderation/moderation_svc.twirp.d.ts +57 -0
- package/types/devvit/plugin/redditapi/moderation/moderation_svc.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/moderation/moderation_svc.twirp.js +1479 -0
- package/types/devvit/plugin/redditapi/modnote/modnote_msg.d.ts +1 -1
- package/types/devvit/plugin/redditapi/modnote/modnote_msg.js +3 -3
- package/types/devvit/plugin/redditapi/modnote/modnote_svc.d.ts +8 -8
- package/types/devvit/plugin/redditapi/modnote/modnote_svc.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/modnote/modnote_svc.js +14 -59
- package/types/devvit/plugin/redditapi/modnote/modnote_svc.twirp-client.d.ts +32 -0
- package/types/devvit/plugin/redditapi/modnote/modnote_svc.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/modnote/modnote_svc.twirp-client.js +72 -0
- package/types/devvit/plugin/redditapi/modnote/modnote_svc.twirp.d.ts +21 -0
- package/types/devvit/plugin/redditapi/modnote/modnote_svc.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/modnote/modnote_svc.twirp.js +355 -0
- package/types/devvit/plugin/redditapi/newmodmail/newmodmail_msg.d.ts +2 -2
- package/types/devvit/plugin/redditapi/newmodmail/newmodmail_msg.js +4 -4
- package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.d.ts +21 -21
- package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.js +46 -142
- package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.twirp-client.d.ts +77 -0
- package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.twirp-client.js +252 -0
- package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.twirp.d.ts +51 -0
- package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.twirp.js +1345 -0
- package/types/devvit/plugin/redditapi/postcollections/postcollections_msg.d.ts +1 -1
- package/types/devvit/plugin/redditapi/postcollections/postcollections_msg.js +4 -4
- package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.d.ts +3 -3
- package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.js +3 -3
- package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.twirp-client.d.ts +50 -0
- package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.twirp-client.js +144 -0
- package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.twirp.d.ts +33 -0
- package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.twirp.js +751 -0
- package/types/devvit/plugin/redditapi/privatemessages/privatemessages_msg.d.ts +1 -1
- package/types/devvit/plugin/redditapi/privatemessages/privatemessages_msg.js +3 -3
- package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.d.ts +14 -14
- package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.js +34 -101
- package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.twirp-client.d.ts +48 -0
- package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.twirp-client.js +133 -0
- package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.twirp.d.ts +32 -0
- package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.twirp.js +686 -0
- package/types/devvit/plugin/redditapi/subreddits/subreddits_msg.d.ts +3 -3
- package/types/devvit/plugin/redditapi/subreddits/subreddits_msg.js +5 -5
- package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.d.ts +32 -32
- package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.js +73 -243
- package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.twirp-client.d.ts +100 -0
- package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.twirp-client.js +338 -0
- package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.twirp.d.ts +67 -0
- package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.twirp.js +1809 -0
- package/types/devvit/plugin/redditapi/users/users_msg.d.ts +2 -2
- package/types/devvit/plugin/redditapi/users/users_msg.js +4 -4
- package/types/devvit/plugin/redditapi/users/users_svc.d.ts +17 -17
- package/types/devvit/plugin/redditapi/users/users_svc.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/users/users_svc.js +39 -144
- package/types/devvit/plugin/redditapi/users/users_svc.twirp-client.d.ts +58 -0
- package/types/devvit/plugin/redditapi/users/users_svc.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/users/users_svc.twirp-client.js +170 -0
- package/types/devvit/plugin/redditapi/users/users_svc.twirp.d.ts +39 -0
- package/types/devvit/plugin/redditapi/users/users_svc.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/users/users_svc.twirp.js +885 -0
- package/types/devvit/plugin/redditapi/widgets/widgets_msg.d.ts +2 -2
- package/types/devvit/plugin/redditapi/widgets/widgets_msg.js +4 -4
- package/types/devvit/plugin/redditapi/widgets/widgets_svc.d.ts +21 -21
- package/types/devvit/plugin/redditapi/widgets/widgets_svc.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/widgets/widgets_svc.js +69 -298
- package/types/devvit/plugin/redditapi/widgets/widgets_svc.twirp-client.d.ts +71 -0
- package/types/devvit/plugin/redditapi/widgets/widgets_svc.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/widgets/widgets_svc.twirp-client.js +228 -0
- package/types/devvit/plugin/redditapi/widgets/widgets_svc.twirp.d.ts +47 -0
- package/types/devvit/plugin/redditapi/widgets/widgets_svc.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/widgets/widgets_svc.twirp.js +1213 -0
- package/types/devvit/plugin/redditapi/wiki/wiki_msg.d.ts +2 -2
- package/types/devvit/plugin/redditapi/wiki/wiki_msg.js +4 -4
- package/types/devvit/plugin/redditapi/wiki/wiki_svc.d.ts +13 -18
- package/types/devvit/plugin/redditapi/wiki/wiki_svc.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/wiki/wiki_svc.js +28 -79
- package/types/devvit/plugin/redditapi/wiki/wiki_svc.twirp-client.d.ts +47 -0
- package/types/devvit/plugin/redditapi/wiki/wiki_svc.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/wiki/wiki_svc.twirp-client.js +132 -0
- package/types/devvit/plugin/redditapi/wiki/wiki_svc.twirp.d.ts +31 -0
- package/types/devvit/plugin/redditapi/wiki/wiki_svc.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/redditapi/wiki/wiki_svc.twirp.js +685 -0
- package/types/devvit/plugin/redditapiv2/redditapiv2.d.ts +4 -4
- package/types/devvit/plugin/redditapiv2/redditapiv2.js +4 -4
- package/types/devvit/plugin/redditapiv2/redditapiv2.twirp-client.d.ts +24 -0
- package/types/devvit/plugin/redditapiv2/redditapiv2.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/redditapiv2/redditapiv2.twirp-client.js +37 -0
- package/types/devvit/plugin/redditapiv2/redditapiv2.twirp.d.ts +16 -0
- package/types/devvit/plugin/redditapiv2/redditapiv2.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/redditapiv2/redditapiv2.twirp.js +158 -0
- package/types/devvit/plugin/redis/redisapi.d.ts +3 -3
- package/types/devvit/plugin/redis/redisapi.js +4 -4
- package/types/devvit/plugin/redis/redisapi.twirp-client.d.ts +126 -0
- package/types/devvit/plugin/redis/redisapi.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/redis/redisapi.twirp-client.js +445 -0
- package/types/devvit/plugin/redis/redisapi.twirp.d.ts +84 -0
- package/types/devvit/plugin/redis/redisapi.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/redis/redisapi.twirp.js +2402 -0
- package/types/devvit/plugin/scheduler/scheduler.d.ts +4 -4
- package/types/devvit/plugin/scheduler/scheduler.js +6 -6
- package/types/devvit/plugin/scheduler/scheduler.twirp-client.d.ts +26 -0
- package/types/devvit/plugin/scheduler/scheduler.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/scheduler/scheduler.twirp-client.js +48 -0
- package/types/devvit/plugin/scheduler/scheduler.twirp.d.ts +17 -0
- package/types/devvit/plugin/scheduler/scheduler.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/scheduler/scheduler.twirp.js +223 -0
- package/types/devvit/plugin/settings/v1alpha/settings.d.ts +2 -2
- package/types/devvit/plugin/settings/v1alpha/settings.js +4 -4
- package/types/devvit/plugin/streambroker/streambroker.d.ts +2 -2
- package/types/devvit/plugin/streambroker/streambroker.js +3 -3
- package/types/devvit/plugin/streambroker/streambroker.twirp-client.d.ts +23 -0
- package/types/devvit/plugin/streambroker/streambroker.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/streambroker/streambroker.twirp-client.js +36 -0
- package/types/devvit/plugin/streambroker/streambroker.twirp.d.ts +15 -0
- package/types/devvit/plugin/streambroker/streambroker.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/streambroker/streambroker.twirp.js +157 -0
- package/types/devvit/plugin/timer/timer.d.ts +2 -2
- package/types/devvit/plugin/timer/timer.js +3 -3
- package/types/devvit/plugin/timer/timer.twirp-client.d.ts +20 -0
- package/types/devvit/plugin/timer/timer.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/timer/timer.twirp-client.js +24 -0
- package/types/devvit/plugin/timer/timer.twirp.d.ts +13 -0
- package/types/devvit/plugin/timer/timer.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/timer/timer.twirp.js +89 -0
- package/types/devvit/plugin/v2events/v2events.d.ts +1 -1
- package/types/devvit/plugin/v2events/v2events.js +2 -2
- package/types/devvit/plugin/v2events/v2events.twirp-client.d.ts +19 -0
- package/types/devvit/plugin/v2events/v2events.twirp-client.d.ts.map +1 -0
- package/types/devvit/plugin/v2events/v2events.twirp-client.js +23 -0
- package/types/devvit/plugin/v2events/v2events.twirp.d.ts +12 -0
- package/types/devvit/plugin/v2events/v2events.twirp.d.ts.map +1 -0
- package/types/devvit/plugin/v2events/v2events.twirp.js +88 -0
- package/types/devvit/reddit/comment.d.ts +2 -2
- package/types/devvit/reddit/comment.js +5 -5
- package/types/devvit/reddit/common.d.ts +1 -1
- package/types/devvit/reddit/common.js +3 -3
- package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.d.ts +3 -3
- package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.js +5 -5
- package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.twirp-client.d.ts +22 -0
- package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.twirp-client.d.ts.map +1 -0
- package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.twirp-client.js +35 -0
- package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.twirp.d.ts +14 -0
- package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.twirp.d.ts.map +1 -0
- package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.twirp.js +156 -0
- package/types/devvit/reddit/custom_post/v1alpha/custom_post.d.ts +4 -4
- package/types/devvit/reddit/custom_post/v1alpha/custom_post.js +6 -6
- package/types/devvit/reddit/custom_post/v1alpha/custom_post.twirp-client.d.ts +26 -0
- package/types/devvit/reddit/custom_post/v1alpha/custom_post.twirp-client.d.ts.map +1 -0
- package/types/devvit/reddit/custom_post/v1alpha/custom_post.twirp-client.js +48 -0
- package/types/devvit/reddit/custom_post/v1alpha/custom_post.twirp.d.ts +17 -0
- package/types/devvit/reddit/custom_post/v1alpha/custom_post.twirp.d.ts.map +1 -0
- package/types/devvit/reddit/custom_post/v1alpha/custom_post.twirp.js +223 -0
- package/types/devvit/reddit/post.d.ts +2 -2
- package/types/devvit/reddit/post.js +5 -5
- package/types/devvit/reddit/subreddit.d.ts +2 -2
- package/types/devvit/reddit/subreddit.js +4 -4
- package/types/devvit/reddit/user.d.ts +2 -2
- package/types/devvit/reddit/user.js +4 -4
- package/types/devvit/reddit/v2alpha/commentv2.d.ts +1 -1
- package/types/devvit/reddit/v2alpha/commentv2.js +2 -2
- package/types/devvit/reddit/v2alpha/flair.d.ts +1 -1
- package/types/devvit/reddit/v2alpha/flair.js +2 -2
- package/types/devvit/reddit/v2alpha/modaction.d.ts +5 -5
- package/types/devvit/reddit/v2alpha/modaction.js +7 -7
- package/types/devvit/reddit/v2alpha/modmail.d.ts +3 -3
- package/types/devvit/reddit/v2alpha/modmail.js +5 -5
- package/types/devvit/reddit/v2alpha/postv2.d.ts +2 -2
- package/types/devvit/reddit/v2alpha/postv2.js +3 -3
- package/types/devvit/reddit/v2alpha/subredditv2.d.ts +1 -1
- package/types/devvit/reddit/v2alpha/subredditv2.js +2 -2
- package/types/devvit/reddit/v2alpha/userv2.d.ts +2 -2
- package/types/devvit/reddit/v2alpha/userv2.js +3 -3
- package/types/devvit/remote_logger/remote_logger.d.ts +2 -2
- package/types/devvit/remote_logger/remote_logger.js +4 -4
- package/types/devvit/runtime/actor/bootstrap.d.ts +3 -3
- package/types/devvit/runtime/actor/bootstrap.js +3 -3
- package/types/devvit/runtime/actor/bootstrap.twirp-client.d.ts +23 -0
- package/types/devvit/runtime/actor/bootstrap.twirp-client.d.ts.map +1 -0
- package/types/devvit/runtime/actor/bootstrap.twirp-client.js +36 -0
- package/types/devvit/runtime/actor/bootstrap.twirp.d.ts +15 -0
- package/types/devvit/runtime/actor/bootstrap.twirp.d.ts.map +1 -0
- package/types/devvit/runtime/actor/bootstrap.twirp.js +157 -0
- package/types/devvit/runtime/actor/echo.d.ts +2 -2
- package/types/devvit/runtime/actor/echo.js +2 -2
- package/types/devvit/runtime/actor/echo.twirp-client.d.ts +19 -0
- package/types/devvit/runtime/actor/echo.twirp-client.d.ts.map +1 -0
- package/types/devvit/runtime/actor/echo.twirp-client.js +23 -0
- package/types/devvit/runtime/actor/echo.twirp.d.ts +12 -0
- package/types/devvit/runtime/actor/echo.twirp.d.ts.map +1 -0
- package/types/devvit/runtime/actor/echo.twirp.js +88 -0
- package/types/devvit/runtime/actor/runtime.d.ts +3 -3
- package/types/devvit/runtime/actor/runtime.js +4 -4
- package/types/devvit/runtime/actor/runtime.twirp-client.d.ts +24 -0
- package/types/devvit/runtime/actor/runtime.twirp-client.d.ts.map +1 -0
- package/types/devvit/runtime/actor/runtime.twirp-client.js +37 -0
- package/types/devvit/runtime/actor/runtime.twirp.d.ts +16 -0
- package/types/devvit/runtime/actor/runtime.twirp.d.ts.map +1 -0
- package/types/devvit/runtime/actor/runtime.twirp.js +158 -0
- package/types/devvit/runtime/actor/supervisor.d.ts +4 -4
- package/types/devvit/runtime/actor/supervisor.js +5 -5
- package/types/devvit/runtime/actor/supervisor.twirp-client.d.ts +28 -0
- package/types/devvit/runtime/actor/supervisor.twirp-client.d.ts.map +1 -0
- package/types/devvit/runtime/actor/supervisor.twirp-client.js +50 -0
- package/types/devvit/runtime/actor/supervisor.twirp.d.ts +19 -0
- package/types/devvit/runtime/actor/supervisor.twirp.d.ts.map +1 -0
- package/types/devvit/runtime/actor/supervisor.twirp.js +225 -0
- package/types/devvit/runtime/actor/v1alpha/health.d.ts +2 -2
- package/types/devvit/runtime/actor/v1alpha/health.js +4 -4
- package/types/devvit/runtime/actor/v1alpha/health.twirp-client.d.ts +20 -0
- package/types/devvit/runtime/actor/v1alpha/health.twirp-client.d.ts.map +1 -0
- package/types/devvit/runtime/actor/v1alpha/health.twirp-client.js +24 -0
- package/types/devvit/runtime/actor/v1alpha/health.twirp.d.ts +13 -0
- package/types/devvit/runtime/actor/v1alpha/health.twirp.d.ts.map +1 -0
- package/types/devvit/runtime/actor/v1alpha/health.twirp.js +89 -0
- package/types/devvit/runtime/bundle.d.ts +2 -2
- package/types/devvit/runtime/bundle.js +5 -5
- package/types/devvit/runtime/envelope.d.ts +2 -2
- package/types/devvit/runtime/envelope.js +4 -4
- package/types/devvit/runtime/runtime_common.d.ts +1 -1
- package/types/devvit/runtime/runtime_common.js +3 -3
- package/types/devvit/runtime/serializable.d.ts +1 -1
- package/types/devvit/runtime/serializable.js +2 -2
- package/types/devvit/service/bundle_service.d.ts +3 -3
- package/types/devvit/service/bundle_service.js +4 -4
- package/types/devvit/service/bundle_service.twirp-client.d.ts +24 -0
- package/types/devvit/service/bundle_service.twirp-client.d.ts.map +1 -0
- package/types/devvit/service/bundle_service.twirp-client.js +37 -0
- package/types/devvit/service/bundle_service.twirp.d.ts +16 -0
- package/types/devvit/service/bundle_service.twirp.d.ts.map +1 -0
- package/types/devvit/service/bundle_service.twirp.js +158 -0
- package/types/devvit/service/envelope_service.d.ts +3 -3
- package/types/devvit/service/envelope_service.js +3 -3
- package/types/devvit/service/envelope_service.twirp-client.d.ts +20 -0
- package/types/devvit/service/envelope_service.twirp-client.d.ts.map +1 -0
- package/types/devvit/service/envelope_service.twirp-client.js +24 -0
- package/types/devvit/service/envelope_service.twirp.d.ts +13 -0
- package/types/devvit/service/envelope_service.twirp.d.ts.map +1 -0
- package/types/devvit/service/envelope_service.twirp.js +89 -0
- package/types/devvit/{data/triggers → triggers}/v1alpha/triggers.d.ts +4 -4
- package/types/devvit/triggers/v1alpha/triggers.d.ts.map +1 -0
- package/types/devvit/{data/triggers → triggers}/v1alpha/triggers.js +6 -6
- package/types/devvit/ui/block_kit/v1beta/attributes.d.ts +2 -2
- package/types/devvit/ui/block_kit/v1beta/attributes.js +4 -4
- package/types/devvit/ui/block_kit/v1beta/block.d.ts +3 -3
- package/types/devvit/ui/block_kit/v1beta/block.js +5 -5
- package/types/devvit/ui/block_kit/v1beta/rendering.d.ts +3 -3
- package/types/devvit/ui/block_kit/v1beta/rendering.js +5 -5
- package/types/devvit/ui/block_kit/v1beta/ui.d.ts +5 -5
- package/types/devvit/ui/block_kit/v1beta/ui.js +7 -7
- package/types/devvit/ui/common/v1alpha/common.d.ts +1 -1
- package/types/devvit/ui/common/v1alpha/common.js +2 -2
- package/types/devvit/ui/effects/v1alpha/create_order.d.ts +1 -1
- package/types/devvit/ui/effects/v1alpha/create_order.js +2 -2
- package/types/devvit/ui/effects/v1alpha/effect.d.ts +9 -9
- package/types/devvit/ui/effects/v1alpha/effect.js +10 -10
- package/types/devvit/ui/effects/v1alpha/interval.d.ts +2 -2
- package/types/devvit/ui/effects/v1alpha/interval.js +4 -4
- package/types/devvit/ui/effects/v1alpha/navigate_to_url.d.ts +1 -1
- package/types/devvit/ui/effects/v1alpha/navigate_to_url.js +2 -2
- package/types/devvit/ui/effects/v1alpha/realtime_subscriptions.d.ts +2 -2
- package/types/devvit/ui/effects/v1alpha/realtime_subscriptions.js +3 -3
- package/types/devvit/ui/effects/v1alpha/reload_part.d.ts +1 -1
- package/types/devvit/ui/effects/v1alpha/reload_part.js +2 -2
- package/types/devvit/ui/effects/v1alpha/rerender_ui.d.ts +1 -1
- package/types/devvit/ui/effects/v1alpha/rerender_ui.js +2 -2
- package/types/devvit/ui/effects/v1alpha/show_form.d.ts +3 -3
- package/types/devvit/ui/effects/v1alpha/show_form.js +4 -4
- package/types/devvit/ui/effects/v1alpha/show_toast.d.ts +2 -2
- package/types/devvit/ui/effects/v1alpha/show_toast.js +3 -3
- package/types/devvit/ui/events/v1alpha/event.d.ts +5 -5
- package/types/devvit/ui/events/v1alpha/event.js +8 -8
- package/types/devvit/ui/events/v1alpha/handle_ui.d.ts +3 -3
- package/types/devvit/ui/events/v1alpha/handle_ui.js +5 -5
- package/types/devvit/ui/events/v1alpha/handle_ui.twirp-client.d.ts +19 -0
- package/types/devvit/ui/events/v1alpha/handle_ui.twirp-client.d.ts.map +1 -0
- package/types/devvit/ui/events/v1alpha/handle_ui.twirp-client.js +23 -0
- package/types/devvit/ui/events/v1alpha/handle_ui.twirp.d.ts +12 -0
- package/types/devvit/ui/events/v1alpha/handle_ui.twirp.d.ts.map +1 -0
- package/types/devvit/ui/events/v1alpha/handle_ui.twirp.js +88 -0
- package/types/devvit/ui/form_builder/v1alpha/field.d.ts +3 -3
- package/types/devvit/ui/form_builder/v1alpha/field.js +4 -4
- package/types/devvit/ui/form_builder/v1alpha/form.d.ts +2 -2
- package/types/devvit/ui/form_builder/v1alpha/form.js +3 -3
- package/types/devvit/ui/form_builder/v1alpha/value.d.ts +2 -2
- package/types/devvit/ui/form_builder/v1alpha/value.js +3 -3
- package/types/devvit/ui/toast/toast.d.ts +1 -1
- package/types/devvit/ui/toast/toast.js +2 -2
- package/types/devvit/uuid.d.ts +1 -1
- package/types/devvit/uuid.js +2 -2
- package/types/google/protobuf/any.d.ts +5 -10
- package/types/google/protobuf/any.d.ts.map +1 -1
- package/types/google/protobuf/any.js +2 -2
- package/types/google/protobuf/descriptor.d.ts +39 -435
- package/types/google/protobuf/descriptor.d.ts.map +1 -1
- package/types/google/protobuf/descriptor.js +101 -1605
- package/types/google/protobuf/duration.d.ts +1 -1
- package/types/google/protobuf/duration.js +2 -2
- package/types/google/protobuf/empty.d.ts +1 -1
- package/types/google/protobuf/empty.js +2 -2
- package/types/google/protobuf/struct.d.ts +2 -2
- package/types/google/protobuf/struct.js +3 -3
- package/types/google/protobuf/timestamp.d.ts +2 -2
- package/types/google/protobuf/timestamp.js +2 -2
- package/types/google/protobuf/wrappers.d.ts +1 -1
- package/types/google/protobuf/wrappers.js +2 -2
- package/types/typeRegistry.d.ts +1 -1
- package/schema/buf.strict.yaml +0 -7
- package/schema/buf.yaml +0 -8
- package/types/devvit/data/api/admin/v1alpha/audit.d.ts +0 -159
- package/types/devvit/data/api/admin/v1alpha/audit.d.ts.map +0 -1
- package/types/devvit/data/api/admin/v1alpha/audit.js +0 -776
- package/types/devvit/data/api/admin/v1alpha/auth.d.ts +0 -127
- package/types/devvit/data/api/admin/v1alpha/auth.d.ts.map +0 -1
- package/types/devvit/data/api/admin/v1alpha/auth.js +0 -599
- package/types/devvit/data/api/admin/v1alpha/organization.d.ts +0 -122
- package/types/devvit/data/api/admin/v1alpha/organization.d.ts.map +0 -1
- package/types/devvit/data/api/admin/v1alpha/organization.js +0 -522
- package/types/devvit/data/api/admin/v1alpha/service.d.ts +0 -855
- package/types/devvit/data/api/admin/v1alpha/service.d.ts.map +0 -1
- package/types/devvit/data/api/admin/v1alpha/service.js +0 -254
- package/types/devvit/data/api/admin/v1alpha/subscription.d.ts +0 -167
- package/types/devvit/data/api/admin/v1alpha/subscription.d.ts.map +0 -1
- package/types/devvit/data/api/admin/v1alpha/subscription.js +0 -885
- package/types/devvit/data/api/admin/v1alpha/ui.d.ts +0 -52
- package/types/devvit/data/api/admin/v1alpha/ui.d.ts.map +0 -1
- package/types/devvit/data/api/admin/v1alpha/ui.js +0 -198
- package/types/devvit/data/api/v1alpha/filter.d.ts +0 -160
- package/types/devvit/data/api/v1alpha/filter.d.ts.map +0 -1
- package/types/devvit/data/api/v1alpha/filter.js +0 -983
- package/types/devvit/data/api/v1alpha/intake.d.ts +0 -85
- package/types/devvit/data/api/v1alpha/intake.d.ts.map +0 -1
- package/types/devvit/data/api/v1alpha/intake.js +0 -160
- package/types/devvit/data/triggers/v1alpha/triggers.d.ts.map +0 -1
- /package/schema/{buf → .snootobuf/deps/buf}/validate/expression.proto +0 -0
- /package/schema/{buf → .snootobuf/deps/buf}/validate/priv/private.proto +0 -0
- /package/schema/{buf → .snootobuf/deps/buf}/validate/validate.proto +0 -0
- /package/schema/{google → .snootobuf/deps/google}/api/annotations.proto +0 -0
- /package/schema/{openapi → .snootobuf/deps/openapi}/helper.proto +0 -0
@@ -0,0 +1,1809 @@
|
|
1
|
+
import { TwirpServer, TwirpError, TwirpErrorCode, TwirpContentType, chainInterceptors, } from 'twirp-ts';
|
2
|
+
import { AboutWhereRequest, BasicSubredditRequest, DeleteSrImgRequest, BasicSearchRequest, SearchRedditNamesResponse, SearchSubredditsResponse, SiteAdminRequest, SubmitTextResponse, SubredditAutocompleteRequest, SubredditAutocompleteResponse, SubredditStylesheetRequest, SubscribeRequest, UploadSrImgRequest, UploadSrImgResponse, SubredditPostRequirementsResponse, SubredditAboutResponse, SubredditAboutEditRequest, SubredditAboutEditResponse, SubredditAboutRulesResponse, SubredditAboutTrafficResponse, StickyRequest, StickyResponse, BasicWhereRequest, SubredditsSearchRequest, SubredditsSearchResponse, UsersSearchRequest, UserSearchResponse, SubredditAddRemovalReasonRequest, SubredditAddRemovalReasonResponse, SubredditGetRemovalReasonsRequest, SubredditGetRemovalReasonsResponse, } from './subreddits_msg.js';
|
3
|
+
import { Listing, JsonStatus } from '../common/common_msg.js';
|
4
|
+
import { Empty } from '../../../../google/protobuf/empty.js';
|
5
|
+
import { StringValue } from '../../../../google/protobuf/wrappers.js';
|
6
|
+
export var SubredditsMethod;
|
7
|
+
(function (SubredditsMethod) {
|
8
|
+
SubredditsMethod["AboutWhere"] = "AboutWhere";
|
9
|
+
SubredditsMethod["DeleteSrBanner"] = "DeleteSrBanner";
|
10
|
+
SubredditsMethod["DeleteSrHeader"] = "DeleteSrHeader";
|
11
|
+
SubredditsMethod["DeleteSrIcon"] = "DeleteSrIcon";
|
12
|
+
SubredditsMethod["DeleteSrImg"] = "DeleteSrImg";
|
13
|
+
SubredditsMethod["SearchRedditNames"] = "SearchRedditNames";
|
14
|
+
SubredditsMethod["SearchSubreddits"] = "SearchSubreddits";
|
15
|
+
SubredditsMethod["SiteAdmin"] = "SiteAdmin";
|
16
|
+
SubredditsMethod["SubmitText"] = "SubmitText";
|
17
|
+
SubredditsMethod["SubredditAutocomplete"] = "SubredditAutocomplete";
|
18
|
+
SubredditsMethod["SubredditStylesheet"] = "SubredditStylesheet";
|
19
|
+
SubredditsMethod["Subscribe"] = "Subscribe";
|
20
|
+
SubredditsMethod["UploadSrImg"] = "UploadSrImg";
|
21
|
+
SubredditsMethod["SubredditPostRequirements"] = "SubredditPostRequirements";
|
22
|
+
SubredditsMethod["SubredditAbout"] = "SubredditAbout";
|
23
|
+
SubredditsMethod["SubredditAboutEdit"] = "SubredditAboutEdit";
|
24
|
+
SubredditsMethod["SubredditAboutRules"] = "SubredditAboutRules";
|
25
|
+
SubredditsMethod["SubredditAboutTraffic"] = "SubredditAboutTraffic";
|
26
|
+
SubredditsMethod["Sidebar"] = "Sidebar";
|
27
|
+
SubredditsMethod["Sticky"] = "Sticky";
|
28
|
+
SubredditsMethod["SubredditsMineWhere"] = "SubredditsMineWhere";
|
29
|
+
SubredditsMethod["SubredditsSearch"] = "SubredditsSearch";
|
30
|
+
SubredditsMethod["SubredditsWhere"] = "SubredditsWhere";
|
31
|
+
SubredditsMethod["UsersSearch"] = "UsersSearch";
|
32
|
+
SubredditsMethod["UsersWhere"] = "UsersWhere";
|
33
|
+
SubredditsMethod["SubredditAddRemovalReason"] = "SubredditAddRemovalReason";
|
34
|
+
SubredditsMethod["SubredditGetRemovalReasons"] = "SubredditGetRemovalReasons";
|
35
|
+
})(SubredditsMethod || (SubredditsMethod = {}));
|
36
|
+
export const SubredditsMethodList = [
|
37
|
+
SubredditsMethod.AboutWhere,
|
38
|
+
SubredditsMethod.DeleteSrBanner,
|
39
|
+
SubredditsMethod.DeleteSrHeader,
|
40
|
+
SubredditsMethod.DeleteSrIcon,
|
41
|
+
SubredditsMethod.DeleteSrImg,
|
42
|
+
SubredditsMethod.SearchRedditNames,
|
43
|
+
SubredditsMethod.SearchSubreddits,
|
44
|
+
SubredditsMethod.SiteAdmin,
|
45
|
+
SubredditsMethod.SubmitText,
|
46
|
+
SubredditsMethod.SubredditAutocomplete,
|
47
|
+
SubredditsMethod.SubredditStylesheet,
|
48
|
+
SubredditsMethod.Subscribe,
|
49
|
+
SubredditsMethod.UploadSrImg,
|
50
|
+
SubredditsMethod.SubredditPostRequirements,
|
51
|
+
SubredditsMethod.SubredditAbout,
|
52
|
+
SubredditsMethod.SubredditAboutEdit,
|
53
|
+
SubredditsMethod.SubredditAboutRules,
|
54
|
+
SubredditsMethod.SubredditAboutTraffic,
|
55
|
+
SubredditsMethod.Sidebar,
|
56
|
+
SubredditsMethod.Sticky,
|
57
|
+
SubredditsMethod.SubredditsMineWhere,
|
58
|
+
SubredditsMethod.SubredditsSearch,
|
59
|
+
SubredditsMethod.SubredditsWhere,
|
60
|
+
SubredditsMethod.UsersSearch,
|
61
|
+
SubredditsMethod.UsersWhere,
|
62
|
+
SubredditsMethod.SubredditAddRemovalReason,
|
63
|
+
SubredditsMethod.SubredditGetRemovalReasons,
|
64
|
+
];
|
65
|
+
export function createSubredditsServer(service) {
|
66
|
+
return new TwirpServer({
|
67
|
+
service,
|
68
|
+
packageName: 'devvit.plugin.redditapi.subreddits',
|
69
|
+
serviceName: 'Subreddits',
|
70
|
+
methodList: SubredditsMethodList,
|
71
|
+
matchRoute: matchSubredditsRoute,
|
72
|
+
});
|
73
|
+
}
|
74
|
+
function matchSubredditsRoute(method, events) {
|
75
|
+
switch (method) {
|
76
|
+
case 'AboutWhere':
|
77
|
+
return async (ctx, service, data, interceptors) => {
|
78
|
+
ctx = { ...ctx, methodName: 'AboutWhere' };
|
79
|
+
await events.onMatch(ctx);
|
80
|
+
return handleSubredditsAboutWhereRequest(ctx, service, data, interceptors);
|
81
|
+
};
|
82
|
+
case 'DeleteSrBanner':
|
83
|
+
return async (ctx, service, data, interceptors) => {
|
84
|
+
ctx = { ...ctx, methodName: 'DeleteSrBanner' };
|
85
|
+
await events.onMatch(ctx);
|
86
|
+
return handleSubredditsDeleteSrBannerRequest(ctx, service, data, interceptors);
|
87
|
+
};
|
88
|
+
case 'DeleteSrHeader':
|
89
|
+
return async (ctx, service, data, interceptors) => {
|
90
|
+
ctx = { ...ctx, methodName: 'DeleteSrHeader' };
|
91
|
+
await events.onMatch(ctx);
|
92
|
+
return handleSubredditsDeleteSrHeaderRequest(ctx, service, data, interceptors);
|
93
|
+
};
|
94
|
+
case 'DeleteSrIcon':
|
95
|
+
return async (ctx, service, data, interceptors) => {
|
96
|
+
ctx = { ...ctx, methodName: 'DeleteSrIcon' };
|
97
|
+
await events.onMatch(ctx);
|
98
|
+
return handleSubredditsDeleteSrIconRequest(ctx, service, data, interceptors);
|
99
|
+
};
|
100
|
+
case 'DeleteSrImg':
|
101
|
+
return async (ctx, service, data, interceptors) => {
|
102
|
+
ctx = { ...ctx, methodName: 'DeleteSrImg' };
|
103
|
+
await events.onMatch(ctx);
|
104
|
+
return handleSubredditsDeleteSrImgRequest(ctx, service, data, interceptors);
|
105
|
+
};
|
106
|
+
case 'SearchRedditNames':
|
107
|
+
return async (ctx, service, data, interceptors) => {
|
108
|
+
ctx = { ...ctx, methodName: 'SearchRedditNames' };
|
109
|
+
await events.onMatch(ctx);
|
110
|
+
return handleSubredditsSearchRedditNamesRequest(ctx, service, data, interceptors);
|
111
|
+
};
|
112
|
+
case 'SearchSubreddits':
|
113
|
+
return async (ctx, service, data, interceptors) => {
|
114
|
+
ctx = { ...ctx, methodName: 'SearchSubreddits' };
|
115
|
+
await events.onMatch(ctx);
|
116
|
+
return handleSubredditsSearchSubredditsRequest(ctx, service, data, interceptors);
|
117
|
+
};
|
118
|
+
case 'SiteAdmin':
|
119
|
+
return async (ctx, service, data, interceptors) => {
|
120
|
+
ctx = { ...ctx, methodName: 'SiteAdmin' };
|
121
|
+
await events.onMatch(ctx);
|
122
|
+
return handleSubredditsSiteAdminRequest(ctx, service, data, interceptors);
|
123
|
+
};
|
124
|
+
case 'SubmitText':
|
125
|
+
return async (ctx, service, data, interceptors) => {
|
126
|
+
ctx = { ...ctx, methodName: 'SubmitText' };
|
127
|
+
await events.onMatch(ctx);
|
128
|
+
return handleSubredditsSubmitTextRequest(ctx, service, data, interceptors);
|
129
|
+
};
|
130
|
+
case 'SubredditAutocomplete':
|
131
|
+
return async (ctx, service, data, interceptors) => {
|
132
|
+
ctx = { ...ctx, methodName: 'SubredditAutocomplete' };
|
133
|
+
await events.onMatch(ctx);
|
134
|
+
return handleSubredditsSubredditAutocompleteRequest(ctx, service, data, interceptors);
|
135
|
+
};
|
136
|
+
case 'SubredditStylesheet':
|
137
|
+
return async (ctx, service, data, interceptors) => {
|
138
|
+
ctx = { ...ctx, methodName: 'SubredditStylesheet' };
|
139
|
+
await events.onMatch(ctx);
|
140
|
+
return handleSubredditsSubredditStylesheetRequest(ctx, service, data, interceptors);
|
141
|
+
};
|
142
|
+
case 'Subscribe':
|
143
|
+
return async (ctx, service, data, interceptors) => {
|
144
|
+
ctx = { ...ctx, methodName: 'Subscribe' };
|
145
|
+
await events.onMatch(ctx);
|
146
|
+
return handleSubredditsSubscribeRequest(ctx, service, data, interceptors);
|
147
|
+
};
|
148
|
+
case 'UploadSrImg':
|
149
|
+
return async (ctx, service, data, interceptors) => {
|
150
|
+
ctx = { ...ctx, methodName: 'UploadSrImg' };
|
151
|
+
await events.onMatch(ctx);
|
152
|
+
return handleSubredditsUploadSrImgRequest(ctx, service, data, interceptors);
|
153
|
+
};
|
154
|
+
case 'SubredditPostRequirements':
|
155
|
+
return async (ctx, service, data, interceptors) => {
|
156
|
+
ctx = { ...ctx, methodName: 'SubredditPostRequirements' };
|
157
|
+
await events.onMatch(ctx);
|
158
|
+
return handleSubredditsSubredditPostRequirementsRequest(ctx, service, data, interceptors);
|
159
|
+
};
|
160
|
+
case 'SubredditAbout':
|
161
|
+
return async (ctx, service, data, interceptors) => {
|
162
|
+
ctx = { ...ctx, methodName: 'SubredditAbout' };
|
163
|
+
await events.onMatch(ctx);
|
164
|
+
return handleSubredditsSubredditAboutRequest(ctx, service, data, interceptors);
|
165
|
+
};
|
166
|
+
case 'SubredditAboutEdit':
|
167
|
+
return async (ctx, service, data, interceptors) => {
|
168
|
+
ctx = { ...ctx, methodName: 'SubredditAboutEdit' };
|
169
|
+
await events.onMatch(ctx);
|
170
|
+
return handleSubredditsSubredditAboutEditRequest(ctx, service, data, interceptors);
|
171
|
+
};
|
172
|
+
case 'SubredditAboutRules':
|
173
|
+
return async (ctx, service, data, interceptors) => {
|
174
|
+
ctx = { ...ctx, methodName: 'SubredditAboutRules' };
|
175
|
+
await events.onMatch(ctx);
|
176
|
+
return handleSubredditsSubredditAboutRulesRequest(ctx, service, data, interceptors);
|
177
|
+
};
|
178
|
+
case 'SubredditAboutTraffic':
|
179
|
+
return async (ctx, service, data, interceptors) => {
|
180
|
+
ctx = { ...ctx, methodName: 'SubredditAboutTraffic' };
|
181
|
+
await events.onMatch(ctx);
|
182
|
+
return handleSubredditsSubredditAboutTrafficRequest(ctx, service, data, interceptors);
|
183
|
+
};
|
184
|
+
case 'Sidebar':
|
185
|
+
return async (ctx, service, data, interceptors) => {
|
186
|
+
ctx = { ...ctx, methodName: 'Sidebar' };
|
187
|
+
await events.onMatch(ctx);
|
188
|
+
return handleSubredditsSidebarRequest(ctx, service, data, interceptors);
|
189
|
+
};
|
190
|
+
case 'Sticky':
|
191
|
+
return async (ctx, service, data, interceptors) => {
|
192
|
+
ctx = { ...ctx, methodName: 'Sticky' };
|
193
|
+
await events.onMatch(ctx);
|
194
|
+
return handleSubredditsStickyRequest(ctx, service, data, interceptors);
|
195
|
+
};
|
196
|
+
case 'SubredditsMineWhere':
|
197
|
+
return async (ctx, service, data, interceptors) => {
|
198
|
+
ctx = { ...ctx, methodName: 'SubredditsMineWhere' };
|
199
|
+
await events.onMatch(ctx);
|
200
|
+
return handleSubredditsSubredditsMineWhereRequest(ctx, service, data, interceptors);
|
201
|
+
};
|
202
|
+
case 'SubredditsSearch':
|
203
|
+
return async (ctx, service, data, interceptors) => {
|
204
|
+
ctx = { ...ctx, methodName: 'SubredditsSearch' };
|
205
|
+
await events.onMatch(ctx);
|
206
|
+
return handleSubredditsSubredditsSearchRequest(ctx, service, data, interceptors);
|
207
|
+
};
|
208
|
+
case 'SubredditsWhere':
|
209
|
+
return async (ctx, service, data, interceptors) => {
|
210
|
+
ctx = { ...ctx, methodName: 'SubredditsWhere' };
|
211
|
+
await events.onMatch(ctx);
|
212
|
+
return handleSubredditsSubredditsWhereRequest(ctx, service, data, interceptors);
|
213
|
+
};
|
214
|
+
case 'UsersSearch':
|
215
|
+
return async (ctx, service, data, interceptors) => {
|
216
|
+
ctx = { ...ctx, methodName: 'UsersSearch' };
|
217
|
+
await events.onMatch(ctx);
|
218
|
+
return handleSubredditsUsersSearchRequest(ctx, service, data, interceptors);
|
219
|
+
};
|
220
|
+
case 'UsersWhere':
|
221
|
+
return async (ctx, service, data, interceptors) => {
|
222
|
+
ctx = { ...ctx, methodName: 'UsersWhere' };
|
223
|
+
await events.onMatch(ctx);
|
224
|
+
return handleSubredditsUsersWhereRequest(ctx, service, data, interceptors);
|
225
|
+
};
|
226
|
+
case 'SubredditAddRemovalReason':
|
227
|
+
return async (ctx, service, data, interceptors) => {
|
228
|
+
ctx = { ...ctx, methodName: 'SubredditAddRemovalReason' };
|
229
|
+
await events.onMatch(ctx);
|
230
|
+
return handleSubredditsSubredditAddRemovalReasonRequest(ctx, service, data, interceptors);
|
231
|
+
};
|
232
|
+
case 'SubredditGetRemovalReasons':
|
233
|
+
return async (ctx, service, data, interceptors) => {
|
234
|
+
ctx = { ...ctx, methodName: 'SubredditGetRemovalReasons' };
|
235
|
+
await events.onMatch(ctx);
|
236
|
+
return handleSubredditsSubredditGetRemovalReasonsRequest(ctx, service, data, interceptors);
|
237
|
+
};
|
238
|
+
default:
|
239
|
+
events.onNotFound();
|
240
|
+
const msg = `no handler found`;
|
241
|
+
throw new TwirpError(TwirpErrorCode.BadRoute, msg);
|
242
|
+
}
|
243
|
+
}
|
244
|
+
function handleSubredditsAboutWhereRequest(ctx, service, data, interceptors) {
|
245
|
+
switch (ctx.contentType) {
|
246
|
+
case TwirpContentType.JSON:
|
247
|
+
return handleSubredditsAboutWhereJSON(ctx, service, data, interceptors);
|
248
|
+
case TwirpContentType.Protobuf:
|
249
|
+
return handleSubredditsAboutWhereProtobuf(ctx, service, data, interceptors);
|
250
|
+
default:
|
251
|
+
const msg = 'unexpected Content-Type';
|
252
|
+
throw new TwirpError(TwirpErrorCode.BadRoute, msg);
|
253
|
+
}
|
254
|
+
}
|
255
|
+
function handleSubredditsDeleteSrBannerRequest(ctx, service, data, interceptors) {
|
256
|
+
switch (ctx.contentType) {
|
257
|
+
case TwirpContentType.JSON:
|
258
|
+
return handleSubredditsDeleteSrBannerJSON(ctx, service, data, interceptors);
|
259
|
+
case TwirpContentType.Protobuf:
|
260
|
+
return handleSubredditsDeleteSrBannerProtobuf(ctx, service, data, interceptors);
|
261
|
+
default:
|
262
|
+
const msg = 'unexpected Content-Type';
|
263
|
+
throw new TwirpError(TwirpErrorCode.BadRoute, msg);
|
264
|
+
}
|
265
|
+
}
|
266
|
+
function handleSubredditsDeleteSrHeaderRequest(ctx, service, data, interceptors) {
|
267
|
+
switch (ctx.contentType) {
|
268
|
+
case TwirpContentType.JSON:
|
269
|
+
return handleSubredditsDeleteSrHeaderJSON(ctx, service, data, interceptors);
|
270
|
+
case TwirpContentType.Protobuf:
|
271
|
+
return handleSubredditsDeleteSrHeaderProtobuf(ctx, service, data, interceptors);
|
272
|
+
default:
|
273
|
+
const msg = 'unexpected Content-Type';
|
274
|
+
throw new TwirpError(TwirpErrorCode.BadRoute, msg);
|
275
|
+
}
|
276
|
+
}
|
277
|
+
function handleSubredditsDeleteSrIconRequest(ctx, service, data, interceptors) {
|
278
|
+
switch (ctx.contentType) {
|
279
|
+
case TwirpContentType.JSON:
|
280
|
+
return handleSubredditsDeleteSrIconJSON(ctx, service, data, interceptors);
|
281
|
+
case TwirpContentType.Protobuf:
|
282
|
+
return handleSubredditsDeleteSrIconProtobuf(ctx, service, data, interceptors);
|
283
|
+
default:
|
284
|
+
const msg = 'unexpected Content-Type';
|
285
|
+
throw new TwirpError(TwirpErrorCode.BadRoute, msg);
|
286
|
+
}
|
287
|
+
}
|
288
|
+
function handleSubredditsDeleteSrImgRequest(ctx, service, data, interceptors) {
|
289
|
+
switch (ctx.contentType) {
|
290
|
+
case TwirpContentType.JSON:
|
291
|
+
return handleSubredditsDeleteSrImgJSON(ctx, service, data, interceptors);
|
292
|
+
case TwirpContentType.Protobuf:
|
293
|
+
return handleSubredditsDeleteSrImgProtobuf(ctx, service, data, interceptors);
|
294
|
+
default:
|
295
|
+
const msg = 'unexpected Content-Type';
|
296
|
+
throw new TwirpError(TwirpErrorCode.BadRoute, msg);
|
297
|
+
}
|
298
|
+
}
|
299
|
+
function handleSubredditsSearchRedditNamesRequest(ctx, service, data, interceptors) {
|
300
|
+
switch (ctx.contentType) {
|
301
|
+
case TwirpContentType.JSON:
|
302
|
+
return handleSubredditsSearchRedditNamesJSON(ctx, service, data, interceptors);
|
303
|
+
case TwirpContentType.Protobuf:
|
304
|
+
return handleSubredditsSearchRedditNamesProtobuf(ctx, service, data, interceptors);
|
305
|
+
default:
|
306
|
+
const msg = 'unexpected Content-Type';
|
307
|
+
throw new TwirpError(TwirpErrorCode.BadRoute, msg);
|
308
|
+
}
|
309
|
+
}
|
310
|
+
function handleSubredditsSearchSubredditsRequest(ctx, service, data, interceptors) {
|
311
|
+
switch (ctx.contentType) {
|
312
|
+
case TwirpContentType.JSON:
|
313
|
+
return handleSubredditsSearchSubredditsJSON(ctx, service, data, interceptors);
|
314
|
+
case TwirpContentType.Protobuf:
|
315
|
+
return handleSubredditsSearchSubredditsProtobuf(ctx, service, data, interceptors);
|
316
|
+
default:
|
317
|
+
const msg = 'unexpected Content-Type';
|
318
|
+
throw new TwirpError(TwirpErrorCode.BadRoute, msg);
|
319
|
+
}
|
320
|
+
}
|
321
|
+
function handleSubredditsSiteAdminRequest(ctx, service, data, interceptors) {
|
322
|
+
switch (ctx.contentType) {
|
323
|
+
case TwirpContentType.JSON:
|
324
|
+
return handleSubredditsSiteAdminJSON(ctx, service, data, interceptors);
|
325
|
+
case TwirpContentType.Protobuf:
|
326
|
+
return handleSubredditsSiteAdminProtobuf(ctx, service, data, interceptors);
|
327
|
+
default:
|
328
|
+
const msg = 'unexpected Content-Type';
|
329
|
+
throw new TwirpError(TwirpErrorCode.BadRoute, msg);
|
330
|
+
}
|
331
|
+
}
|
332
|
+
function handleSubredditsSubmitTextRequest(ctx, service, data, interceptors) {
|
333
|
+
switch (ctx.contentType) {
|
334
|
+
case TwirpContentType.JSON:
|
335
|
+
return handleSubredditsSubmitTextJSON(ctx, service, data, interceptors);
|
336
|
+
case TwirpContentType.Protobuf:
|
337
|
+
return handleSubredditsSubmitTextProtobuf(ctx, service, data, interceptors);
|
338
|
+
default:
|
339
|
+
const msg = 'unexpected Content-Type';
|
340
|
+
throw new TwirpError(TwirpErrorCode.BadRoute, msg);
|
341
|
+
}
|
342
|
+
}
|
343
|
+
function handleSubredditsSubredditAutocompleteRequest(ctx, service, data, interceptors) {
|
344
|
+
switch (ctx.contentType) {
|
345
|
+
case TwirpContentType.JSON:
|
346
|
+
return handleSubredditsSubredditAutocompleteJSON(ctx, service, data, interceptors);
|
347
|
+
case TwirpContentType.Protobuf:
|
348
|
+
return handleSubredditsSubredditAutocompleteProtobuf(ctx, service, data, interceptors);
|
349
|
+
default:
|
350
|
+
const msg = 'unexpected Content-Type';
|
351
|
+
throw new TwirpError(TwirpErrorCode.BadRoute, msg);
|
352
|
+
}
|
353
|
+
}
|
354
|
+
function handleSubredditsSubredditStylesheetRequest(ctx, service, data, interceptors) {
|
355
|
+
switch (ctx.contentType) {
|
356
|
+
case TwirpContentType.JSON:
|
357
|
+
return handleSubredditsSubredditStylesheetJSON(ctx, service, data, interceptors);
|
358
|
+
case TwirpContentType.Protobuf:
|
359
|
+
return handleSubredditsSubredditStylesheetProtobuf(ctx, service, data, interceptors);
|
360
|
+
default:
|
361
|
+
const msg = 'unexpected Content-Type';
|
362
|
+
throw new TwirpError(TwirpErrorCode.BadRoute, msg);
|
363
|
+
}
|
364
|
+
}
|
365
|
+
function handleSubredditsSubscribeRequest(ctx, service, data, interceptors) {
|
366
|
+
switch (ctx.contentType) {
|
367
|
+
case TwirpContentType.JSON:
|
368
|
+
return handleSubredditsSubscribeJSON(ctx, service, data, interceptors);
|
369
|
+
case TwirpContentType.Protobuf:
|
370
|
+
return handleSubredditsSubscribeProtobuf(ctx, service, data, interceptors);
|
371
|
+
default:
|
372
|
+
const msg = 'unexpected Content-Type';
|
373
|
+
throw new TwirpError(TwirpErrorCode.BadRoute, msg);
|
374
|
+
}
|
375
|
+
}
|
376
|
+
function handleSubredditsUploadSrImgRequest(ctx, service, data, interceptors) {
|
377
|
+
switch (ctx.contentType) {
|
378
|
+
case TwirpContentType.JSON:
|
379
|
+
return handleSubredditsUploadSrImgJSON(ctx, service, data, interceptors);
|
380
|
+
case TwirpContentType.Protobuf:
|
381
|
+
return handleSubredditsUploadSrImgProtobuf(ctx, service, data, interceptors);
|
382
|
+
default:
|
383
|
+
const msg = 'unexpected Content-Type';
|
384
|
+
throw new TwirpError(TwirpErrorCode.BadRoute, msg);
|
385
|
+
}
|
386
|
+
}
|
387
|
+
function handleSubredditsSubredditPostRequirementsRequest(ctx, service, data, interceptors) {
|
388
|
+
switch (ctx.contentType) {
|
389
|
+
case TwirpContentType.JSON:
|
390
|
+
return handleSubredditsSubredditPostRequirementsJSON(ctx, service, data, interceptors);
|
391
|
+
case TwirpContentType.Protobuf:
|
392
|
+
return handleSubredditsSubredditPostRequirementsProtobuf(ctx, service, data, interceptors);
|
393
|
+
default:
|
394
|
+
const msg = 'unexpected Content-Type';
|
395
|
+
throw new TwirpError(TwirpErrorCode.BadRoute, msg);
|
396
|
+
}
|
397
|
+
}
|
398
|
+
function handleSubredditsSubredditAboutRequest(ctx, service, data, interceptors) {
|
399
|
+
switch (ctx.contentType) {
|
400
|
+
case TwirpContentType.JSON:
|
401
|
+
return handleSubredditsSubredditAboutJSON(ctx, service, data, interceptors);
|
402
|
+
case TwirpContentType.Protobuf:
|
403
|
+
return handleSubredditsSubredditAboutProtobuf(ctx, service, data, interceptors);
|
404
|
+
default:
|
405
|
+
const msg = 'unexpected Content-Type';
|
406
|
+
throw new TwirpError(TwirpErrorCode.BadRoute, msg);
|
407
|
+
}
|
408
|
+
}
|
409
|
+
function handleSubredditsSubredditAboutEditRequest(ctx, service, data, interceptors) {
|
410
|
+
switch (ctx.contentType) {
|
411
|
+
case TwirpContentType.JSON:
|
412
|
+
return handleSubredditsSubredditAboutEditJSON(ctx, service, data, interceptors);
|
413
|
+
case TwirpContentType.Protobuf:
|
414
|
+
return handleSubredditsSubredditAboutEditProtobuf(ctx, service, data, interceptors);
|
415
|
+
default:
|
416
|
+
const msg = 'unexpected Content-Type';
|
417
|
+
throw new TwirpError(TwirpErrorCode.BadRoute, msg);
|
418
|
+
}
|
419
|
+
}
|
420
|
+
function handleSubredditsSubredditAboutRulesRequest(ctx, service, data, interceptors) {
|
421
|
+
switch (ctx.contentType) {
|
422
|
+
case TwirpContentType.JSON:
|
423
|
+
return handleSubredditsSubredditAboutRulesJSON(ctx, service, data, interceptors);
|
424
|
+
case TwirpContentType.Protobuf:
|
425
|
+
return handleSubredditsSubredditAboutRulesProtobuf(ctx, service, data, interceptors);
|
426
|
+
default:
|
427
|
+
const msg = 'unexpected Content-Type';
|
428
|
+
throw new TwirpError(TwirpErrorCode.BadRoute, msg);
|
429
|
+
}
|
430
|
+
}
|
431
|
+
function handleSubredditsSubredditAboutTrafficRequest(ctx, service, data, interceptors) {
|
432
|
+
switch (ctx.contentType) {
|
433
|
+
case TwirpContentType.JSON:
|
434
|
+
return handleSubredditsSubredditAboutTrafficJSON(ctx, service, data, interceptors);
|
435
|
+
case TwirpContentType.Protobuf:
|
436
|
+
return handleSubredditsSubredditAboutTrafficProtobuf(ctx, service, data, interceptors);
|
437
|
+
default:
|
438
|
+
const msg = 'unexpected Content-Type';
|
439
|
+
throw new TwirpError(TwirpErrorCode.BadRoute, msg);
|
440
|
+
}
|
441
|
+
}
|
442
|
+
function handleSubredditsSidebarRequest(ctx, service, data, interceptors) {
|
443
|
+
switch (ctx.contentType) {
|
444
|
+
case TwirpContentType.JSON:
|
445
|
+
return handleSubredditsSidebarJSON(ctx, service, data, interceptors);
|
446
|
+
case TwirpContentType.Protobuf:
|
447
|
+
return handleSubredditsSidebarProtobuf(ctx, service, data, interceptors);
|
448
|
+
default:
|
449
|
+
const msg = 'unexpected Content-Type';
|
450
|
+
throw new TwirpError(TwirpErrorCode.BadRoute, msg);
|
451
|
+
}
|
452
|
+
}
|
453
|
+
function handleSubredditsStickyRequest(ctx, service, data, interceptors) {
|
454
|
+
switch (ctx.contentType) {
|
455
|
+
case TwirpContentType.JSON:
|
456
|
+
return handleSubredditsStickyJSON(ctx, service, data, interceptors);
|
457
|
+
case TwirpContentType.Protobuf:
|
458
|
+
return handleSubredditsStickyProtobuf(ctx, service, data, interceptors);
|
459
|
+
default:
|
460
|
+
const msg = 'unexpected Content-Type';
|
461
|
+
throw new TwirpError(TwirpErrorCode.BadRoute, msg);
|
462
|
+
}
|
463
|
+
}
|
464
|
+
function handleSubredditsSubredditsMineWhereRequest(ctx, service, data, interceptors) {
|
465
|
+
switch (ctx.contentType) {
|
466
|
+
case TwirpContentType.JSON:
|
467
|
+
return handleSubredditsSubredditsMineWhereJSON(ctx, service, data, interceptors);
|
468
|
+
case TwirpContentType.Protobuf:
|
469
|
+
return handleSubredditsSubredditsMineWhereProtobuf(ctx, service, data, interceptors);
|
470
|
+
default:
|
471
|
+
const msg = 'unexpected Content-Type';
|
472
|
+
throw new TwirpError(TwirpErrorCode.BadRoute, msg);
|
473
|
+
}
|
474
|
+
}
|
475
|
+
function handleSubredditsSubredditsSearchRequest(ctx, service, data, interceptors) {
|
476
|
+
switch (ctx.contentType) {
|
477
|
+
case TwirpContentType.JSON:
|
478
|
+
return handleSubredditsSubredditsSearchJSON(ctx, service, data, interceptors);
|
479
|
+
case TwirpContentType.Protobuf:
|
480
|
+
return handleSubredditsSubredditsSearchProtobuf(ctx, service, data, interceptors);
|
481
|
+
default:
|
482
|
+
const msg = 'unexpected Content-Type';
|
483
|
+
throw new TwirpError(TwirpErrorCode.BadRoute, msg);
|
484
|
+
}
|
485
|
+
}
|
486
|
+
function handleSubredditsSubredditsWhereRequest(ctx, service, data, interceptors) {
|
487
|
+
switch (ctx.contentType) {
|
488
|
+
case TwirpContentType.JSON:
|
489
|
+
return handleSubredditsSubredditsWhereJSON(ctx, service, data, interceptors);
|
490
|
+
case TwirpContentType.Protobuf:
|
491
|
+
return handleSubredditsSubredditsWhereProtobuf(ctx, service, data, interceptors);
|
492
|
+
default:
|
493
|
+
const msg = 'unexpected Content-Type';
|
494
|
+
throw new TwirpError(TwirpErrorCode.BadRoute, msg);
|
495
|
+
}
|
496
|
+
}
|
497
|
+
function handleSubredditsUsersSearchRequest(ctx, service, data, interceptors) {
|
498
|
+
switch (ctx.contentType) {
|
499
|
+
case TwirpContentType.JSON:
|
500
|
+
return handleSubredditsUsersSearchJSON(ctx, service, data, interceptors);
|
501
|
+
case TwirpContentType.Protobuf:
|
502
|
+
return handleSubredditsUsersSearchProtobuf(ctx, service, data, interceptors);
|
503
|
+
default:
|
504
|
+
const msg = 'unexpected Content-Type';
|
505
|
+
throw new TwirpError(TwirpErrorCode.BadRoute, msg);
|
506
|
+
}
|
507
|
+
}
|
508
|
+
function handleSubredditsUsersWhereRequest(ctx, service, data, interceptors) {
|
509
|
+
switch (ctx.contentType) {
|
510
|
+
case TwirpContentType.JSON:
|
511
|
+
return handleSubredditsUsersWhereJSON(ctx, service, data, interceptors);
|
512
|
+
case TwirpContentType.Protobuf:
|
513
|
+
return handleSubredditsUsersWhereProtobuf(ctx, service, data, interceptors);
|
514
|
+
default:
|
515
|
+
const msg = 'unexpected Content-Type';
|
516
|
+
throw new TwirpError(TwirpErrorCode.BadRoute, msg);
|
517
|
+
}
|
518
|
+
}
|
519
|
+
function handleSubredditsSubredditAddRemovalReasonRequest(ctx, service, data, interceptors) {
|
520
|
+
switch (ctx.contentType) {
|
521
|
+
case TwirpContentType.JSON:
|
522
|
+
return handleSubredditsSubredditAddRemovalReasonJSON(ctx, service, data, interceptors);
|
523
|
+
case TwirpContentType.Protobuf:
|
524
|
+
return handleSubredditsSubredditAddRemovalReasonProtobuf(ctx, service, data, interceptors);
|
525
|
+
default:
|
526
|
+
const msg = 'unexpected Content-Type';
|
527
|
+
throw new TwirpError(TwirpErrorCode.BadRoute, msg);
|
528
|
+
}
|
529
|
+
}
|
530
|
+
function handleSubredditsSubredditGetRemovalReasonsRequest(ctx, service, data, interceptors) {
|
531
|
+
switch (ctx.contentType) {
|
532
|
+
case TwirpContentType.JSON:
|
533
|
+
return handleSubredditsSubredditGetRemovalReasonsJSON(ctx, service, data, interceptors);
|
534
|
+
case TwirpContentType.Protobuf:
|
535
|
+
return handleSubredditsSubredditGetRemovalReasonsProtobuf(ctx, service, data, interceptors);
|
536
|
+
default:
|
537
|
+
const msg = 'unexpected Content-Type';
|
538
|
+
throw new TwirpError(TwirpErrorCode.BadRoute, msg);
|
539
|
+
}
|
540
|
+
}
|
541
|
+
async function handleSubredditsAboutWhereJSON(ctx, service, data, interceptors) {
|
542
|
+
let request;
|
543
|
+
let response;
|
544
|
+
try {
|
545
|
+
const body = JSON.parse(data.toString() || '{}');
|
546
|
+
request = AboutWhereRequest.fromJSON(body);
|
547
|
+
}
|
548
|
+
catch (e) {
|
549
|
+
if (e instanceof Error) {
|
550
|
+
const msg = 'the json request could not be decoded';
|
551
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
552
|
+
}
|
553
|
+
}
|
554
|
+
if (interceptors && interceptors.length > 0) {
|
555
|
+
const interceptor = chainInterceptors(...interceptors);
|
556
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
557
|
+
return service.AboutWhere(ctx, inputReq);
|
558
|
+
});
|
559
|
+
}
|
560
|
+
else {
|
561
|
+
response = await service.AboutWhere(ctx, request);
|
562
|
+
}
|
563
|
+
return JSON.stringify(Listing.toJSON(response));
|
564
|
+
}
|
565
|
+
async function handleSubredditsDeleteSrBannerJSON(ctx, service, data, interceptors) {
|
566
|
+
let request;
|
567
|
+
let response;
|
568
|
+
try {
|
569
|
+
const body = JSON.parse(data.toString() || '{}');
|
570
|
+
request = BasicSubredditRequest.fromJSON(body);
|
571
|
+
}
|
572
|
+
catch (e) {
|
573
|
+
if (e instanceof Error) {
|
574
|
+
const msg = 'the json request could not be decoded';
|
575
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
576
|
+
}
|
577
|
+
}
|
578
|
+
if (interceptors && interceptors.length > 0) {
|
579
|
+
const interceptor = chainInterceptors(...interceptors);
|
580
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
581
|
+
return service.DeleteSrBanner(ctx, inputReq);
|
582
|
+
});
|
583
|
+
}
|
584
|
+
else {
|
585
|
+
response = await service.DeleteSrBanner(ctx, request);
|
586
|
+
}
|
587
|
+
return JSON.stringify(JsonStatus.toJSON(response));
|
588
|
+
}
|
589
|
+
async function handleSubredditsDeleteSrHeaderJSON(ctx, service, data, interceptors) {
|
590
|
+
let request;
|
591
|
+
let response;
|
592
|
+
try {
|
593
|
+
const body = JSON.parse(data.toString() || '{}');
|
594
|
+
request = BasicSubredditRequest.fromJSON(body);
|
595
|
+
}
|
596
|
+
catch (e) {
|
597
|
+
if (e instanceof Error) {
|
598
|
+
const msg = 'the json request could not be decoded';
|
599
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
600
|
+
}
|
601
|
+
}
|
602
|
+
if (interceptors && interceptors.length > 0) {
|
603
|
+
const interceptor = chainInterceptors(...interceptors);
|
604
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
605
|
+
return service.DeleteSrHeader(ctx, inputReq);
|
606
|
+
});
|
607
|
+
}
|
608
|
+
else {
|
609
|
+
response = await service.DeleteSrHeader(ctx, request);
|
610
|
+
}
|
611
|
+
return JSON.stringify(JsonStatus.toJSON(response));
|
612
|
+
}
|
613
|
+
async function handleSubredditsDeleteSrIconJSON(ctx, service, data, interceptors) {
|
614
|
+
let request;
|
615
|
+
let response;
|
616
|
+
try {
|
617
|
+
const body = JSON.parse(data.toString() || '{}');
|
618
|
+
request = BasicSubredditRequest.fromJSON(body);
|
619
|
+
}
|
620
|
+
catch (e) {
|
621
|
+
if (e instanceof Error) {
|
622
|
+
const msg = 'the json request could not be decoded';
|
623
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
624
|
+
}
|
625
|
+
}
|
626
|
+
if (interceptors && interceptors.length > 0) {
|
627
|
+
const interceptor = chainInterceptors(...interceptors);
|
628
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
629
|
+
return service.DeleteSrIcon(ctx, inputReq);
|
630
|
+
});
|
631
|
+
}
|
632
|
+
else {
|
633
|
+
response = await service.DeleteSrIcon(ctx, request);
|
634
|
+
}
|
635
|
+
return JSON.stringify(JsonStatus.toJSON(response));
|
636
|
+
}
|
637
|
+
async function handleSubredditsDeleteSrImgJSON(ctx, service, data, interceptors) {
|
638
|
+
let request;
|
639
|
+
let response;
|
640
|
+
try {
|
641
|
+
const body = JSON.parse(data.toString() || '{}');
|
642
|
+
request = DeleteSrImgRequest.fromJSON(body);
|
643
|
+
}
|
644
|
+
catch (e) {
|
645
|
+
if (e instanceof Error) {
|
646
|
+
const msg = 'the json request could not be decoded';
|
647
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
648
|
+
}
|
649
|
+
}
|
650
|
+
if (interceptors && interceptors.length > 0) {
|
651
|
+
const interceptor = chainInterceptors(...interceptors);
|
652
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
653
|
+
return service.DeleteSrImg(ctx, inputReq);
|
654
|
+
});
|
655
|
+
}
|
656
|
+
else {
|
657
|
+
response = await service.DeleteSrImg(ctx, request);
|
658
|
+
}
|
659
|
+
return JSON.stringify(JsonStatus.toJSON(response));
|
660
|
+
}
|
661
|
+
async function handleSubredditsSearchRedditNamesJSON(ctx, service, data, interceptors) {
|
662
|
+
let request;
|
663
|
+
let response;
|
664
|
+
try {
|
665
|
+
const body = JSON.parse(data.toString() || '{}');
|
666
|
+
request = BasicSearchRequest.fromJSON(body);
|
667
|
+
}
|
668
|
+
catch (e) {
|
669
|
+
if (e instanceof Error) {
|
670
|
+
const msg = 'the json request could not be decoded';
|
671
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
672
|
+
}
|
673
|
+
}
|
674
|
+
if (interceptors && interceptors.length > 0) {
|
675
|
+
const interceptor = chainInterceptors(...interceptors);
|
676
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
677
|
+
return service.SearchRedditNames(ctx, inputReq);
|
678
|
+
});
|
679
|
+
}
|
680
|
+
else {
|
681
|
+
response = await service.SearchRedditNames(ctx, request);
|
682
|
+
}
|
683
|
+
return JSON.stringify(SearchRedditNamesResponse.toJSON(response));
|
684
|
+
}
|
685
|
+
async function handleSubredditsSearchSubredditsJSON(ctx, service, data, interceptors) {
|
686
|
+
let request;
|
687
|
+
let response;
|
688
|
+
try {
|
689
|
+
const body = JSON.parse(data.toString() || '{}');
|
690
|
+
request = BasicSearchRequest.fromJSON(body);
|
691
|
+
}
|
692
|
+
catch (e) {
|
693
|
+
if (e instanceof Error) {
|
694
|
+
const msg = 'the json request could not be decoded';
|
695
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
696
|
+
}
|
697
|
+
}
|
698
|
+
if (interceptors && interceptors.length > 0) {
|
699
|
+
const interceptor = chainInterceptors(...interceptors);
|
700
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
701
|
+
return service.SearchSubreddits(ctx, inputReq);
|
702
|
+
});
|
703
|
+
}
|
704
|
+
else {
|
705
|
+
response = await service.SearchSubreddits(ctx, request);
|
706
|
+
}
|
707
|
+
return JSON.stringify(SearchSubredditsResponse.toJSON(response));
|
708
|
+
}
|
709
|
+
async function handleSubredditsSiteAdminJSON(ctx, service, data, interceptors) {
|
710
|
+
let request;
|
711
|
+
let response;
|
712
|
+
try {
|
713
|
+
const body = JSON.parse(data.toString() || '{}');
|
714
|
+
request = SiteAdminRequest.fromJSON(body);
|
715
|
+
}
|
716
|
+
catch (e) {
|
717
|
+
if (e instanceof Error) {
|
718
|
+
const msg = 'the json request could not be decoded';
|
719
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
720
|
+
}
|
721
|
+
}
|
722
|
+
if (interceptors && interceptors.length > 0) {
|
723
|
+
const interceptor = chainInterceptors(...interceptors);
|
724
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
725
|
+
return service.SiteAdmin(ctx, inputReq);
|
726
|
+
});
|
727
|
+
}
|
728
|
+
else {
|
729
|
+
response = await service.SiteAdmin(ctx, request);
|
730
|
+
}
|
731
|
+
return JSON.stringify(JsonStatus.toJSON(response));
|
732
|
+
}
|
733
|
+
async function handleSubredditsSubmitTextJSON(ctx, service, data, interceptors) {
|
734
|
+
let request;
|
735
|
+
let response;
|
736
|
+
try {
|
737
|
+
const body = JSON.parse(data.toString() || '{}');
|
738
|
+
request = BasicSubredditRequest.fromJSON(body);
|
739
|
+
}
|
740
|
+
catch (e) {
|
741
|
+
if (e instanceof Error) {
|
742
|
+
const msg = 'the json request could not be decoded';
|
743
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
744
|
+
}
|
745
|
+
}
|
746
|
+
if (interceptors && interceptors.length > 0) {
|
747
|
+
const interceptor = chainInterceptors(...interceptors);
|
748
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
749
|
+
return service.SubmitText(ctx, inputReq);
|
750
|
+
});
|
751
|
+
}
|
752
|
+
else {
|
753
|
+
response = await service.SubmitText(ctx, request);
|
754
|
+
}
|
755
|
+
return JSON.stringify(SubmitTextResponse.toJSON(response));
|
756
|
+
}
|
757
|
+
async function handleSubredditsSubredditAutocompleteJSON(ctx, service, data, interceptors) {
|
758
|
+
let request;
|
759
|
+
let response;
|
760
|
+
try {
|
761
|
+
const body = JSON.parse(data.toString() || '{}');
|
762
|
+
request = SubredditAutocompleteRequest.fromJSON(body);
|
763
|
+
}
|
764
|
+
catch (e) {
|
765
|
+
if (e instanceof Error) {
|
766
|
+
const msg = 'the json request could not be decoded';
|
767
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
768
|
+
}
|
769
|
+
}
|
770
|
+
if (interceptors && interceptors.length > 0) {
|
771
|
+
const interceptor = chainInterceptors(...interceptors);
|
772
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
773
|
+
return service.SubredditAutocomplete(ctx, inputReq);
|
774
|
+
});
|
775
|
+
}
|
776
|
+
else {
|
777
|
+
response = await service.SubredditAutocomplete(ctx, request);
|
778
|
+
}
|
779
|
+
return JSON.stringify(SubredditAutocompleteResponse.toJSON(response));
|
780
|
+
}
|
781
|
+
async function handleSubredditsSubredditStylesheetJSON(ctx, service, data, interceptors) {
|
782
|
+
let request;
|
783
|
+
let response;
|
784
|
+
try {
|
785
|
+
const body = JSON.parse(data.toString() || '{}');
|
786
|
+
request = SubredditStylesheetRequest.fromJSON(body);
|
787
|
+
}
|
788
|
+
catch (e) {
|
789
|
+
if (e instanceof Error) {
|
790
|
+
const msg = 'the json request could not be decoded';
|
791
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
792
|
+
}
|
793
|
+
}
|
794
|
+
if (interceptors && interceptors.length > 0) {
|
795
|
+
const interceptor = chainInterceptors(...interceptors);
|
796
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
797
|
+
return service.SubredditStylesheet(ctx, inputReq);
|
798
|
+
});
|
799
|
+
}
|
800
|
+
else {
|
801
|
+
response = await service.SubredditStylesheet(ctx, request);
|
802
|
+
}
|
803
|
+
return JSON.stringify(JsonStatus.toJSON(response));
|
804
|
+
}
|
805
|
+
async function handleSubredditsSubscribeJSON(ctx, service, data, interceptors) {
|
806
|
+
let request;
|
807
|
+
let response;
|
808
|
+
try {
|
809
|
+
const body = JSON.parse(data.toString() || '{}');
|
810
|
+
request = SubscribeRequest.fromJSON(body);
|
811
|
+
}
|
812
|
+
catch (e) {
|
813
|
+
if (e instanceof Error) {
|
814
|
+
const msg = 'the json request could not be decoded';
|
815
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
816
|
+
}
|
817
|
+
}
|
818
|
+
if (interceptors && interceptors.length > 0) {
|
819
|
+
const interceptor = chainInterceptors(...interceptors);
|
820
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
821
|
+
return service.Subscribe(ctx, inputReq);
|
822
|
+
});
|
823
|
+
}
|
824
|
+
else {
|
825
|
+
response = await service.Subscribe(ctx, request);
|
826
|
+
}
|
827
|
+
return JSON.stringify(Empty.toJSON(response));
|
828
|
+
}
|
829
|
+
async function handleSubredditsUploadSrImgJSON(ctx, service, data, interceptors) {
|
830
|
+
let request;
|
831
|
+
let response;
|
832
|
+
try {
|
833
|
+
const body = JSON.parse(data.toString() || '{}');
|
834
|
+
request = UploadSrImgRequest.fromJSON(body);
|
835
|
+
}
|
836
|
+
catch (e) {
|
837
|
+
if (e instanceof Error) {
|
838
|
+
const msg = 'the json request could not be decoded';
|
839
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
840
|
+
}
|
841
|
+
}
|
842
|
+
if (interceptors && interceptors.length > 0) {
|
843
|
+
const interceptor = chainInterceptors(...interceptors);
|
844
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
845
|
+
return service.UploadSrImg(ctx, inputReq);
|
846
|
+
});
|
847
|
+
}
|
848
|
+
else {
|
849
|
+
response = await service.UploadSrImg(ctx, request);
|
850
|
+
}
|
851
|
+
return JSON.stringify(UploadSrImgResponse.toJSON(response));
|
852
|
+
}
|
853
|
+
async function handleSubredditsSubredditPostRequirementsJSON(ctx, service, data, interceptors) {
|
854
|
+
let request;
|
855
|
+
let response;
|
856
|
+
try {
|
857
|
+
const body = JSON.parse(data.toString() || '{}');
|
858
|
+
request = BasicSubredditRequest.fromJSON(body);
|
859
|
+
}
|
860
|
+
catch (e) {
|
861
|
+
if (e instanceof Error) {
|
862
|
+
const msg = 'the json request could not be decoded';
|
863
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
864
|
+
}
|
865
|
+
}
|
866
|
+
if (interceptors && interceptors.length > 0) {
|
867
|
+
const interceptor = chainInterceptors(...interceptors);
|
868
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
869
|
+
return service.SubredditPostRequirements(ctx, inputReq);
|
870
|
+
});
|
871
|
+
}
|
872
|
+
else {
|
873
|
+
response = await service.SubredditPostRequirements(ctx, request);
|
874
|
+
}
|
875
|
+
return JSON.stringify(SubredditPostRequirementsResponse.toJSON(response));
|
876
|
+
}
|
877
|
+
async function handleSubredditsSubredditAboutJSON(ctx, service, data, interceptors) {
|
878
|
+
let request;
|
879
|
+
let response;
|
880
|
+
try {
|
881
|
+
const body = JSON.parse(data.toString() || '{}');
|
882
|
+
request = BasicSubredditRequest.fromJSON(body);
|
883
|
+
}
|
884
|
+
catch (e) {
|
885
|
+
if (e instanceof Error) {
|
886
|
+
const msg = 'the json request could not be decoded';
|
887
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
888
|
+
}
|
889
|
+
}
|
890
|
+
if (interceptors && interceptors.length > 0) {
|
891
|
+
const interceptor = chainInterceptors(...interceptors);
|
892
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
893
|
+
return service.SubredditAbout(ctx, inputReq);
|
894
|
+
});
|
895
|
+
}
|
896
|
+
else {
|
897
|
+
response = await service.SubredditAbout(ctx, request);
|
898
|
+
}
|
899
|
+
return JSON.stringify(SubredditAboutResponse.toJSON(response));
|
900
|
+
}
|
901
|
+
async function handleSubredditsSubredditAboutEditJSON(ctx, service, data, interceptors) {
|
902
|
+
let request;
|
903
|
+
let response;
|
904
|
+
try {
|
905
|
+
const body = JSON.parse(data.toString() || '{}');
|
906
|
+
request = SubredditAboutEditRequest.fromJSON(body);
|
907
|
+
}
|
908
|
+
catch (e) {
|
909
|
+
if (e instanceof Error) {
|
910
|
+
const msg = 'the json request could not be decoded';
|
911
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
912
|
+
}
|
913
|
+
}
|
914
|
+
if (interceptors && interceptors.length > 0) {
|
915
|
+
const interceptor = chainInterceptors(...interceptors);
|
916
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
917
|
+
return service.SubredditAboutEdit(ctx, inputReq);
|
918
|
+
});
|
919
|
+
}
|
920
|
+
else {
|
921
|
+
response = await service.SubredditAboutEdit(ctx, request);
|
922
|
+
}
|
923
|
+
return JSON.stringify(SubredditAboutEditResponse.toJSON(response));
|
924
|
+
}
|
925
|
+
async function handleSubredditsSubredditAboutRulesJSON(ctx, service, data, interceptors) {
|
926
|
+
let request;
|
927
|
+
let response;
|
928
|
+
try {
|
929
|
+
const body = JSON.parse(data.toString() || '{}');
|
930
|
+
request = BasicSubredditRequest.fromJSON(body);
|
931
|
+
}
|
932
|
+
catch (e) {
|
933
|
+
if (e instanceof Error) {
|
934
|
+
const msg = 'the json request could not be decoded';
|
935
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
936
|
+
}
|
937
|
+
}
|
938
|
+
if (interceptors && interceptors.length > 0) {
|
939
|
+
const interceptor = chainInterceptors(...interceptors);
|
940
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
941
|
+
return service.SubredditAboutRules(ctx, inputReq);
|
942
|
+
});
|
943
|
+
}
|
944
|
+
else {
|
945
|
+
response = await service.SubredditAboutRules(ctx, request);
|
946
|
+
}
|
947
|
+
return JSON.stringify(SubredditAboutRulesResponse.toJSON(response));
|
948
|
+
}
|
949
|
+
async function handleSubredditsSubredditAboutTrafficJSON(ctx, service, data, interceptors) {
|
950
|
+
let request;
|
951
|
+
let response;
|
952
|
+
try {
|
953
|
+
const body = JSON.parse(data.toString() || '{}');
|
954
|
+
request = BasicSubredditRequest.fromJSON(body);
|
955
|
+
}
|
956
|
+
catch (e) {
|
957
|
+
if (e instanceof Error) {
|
958
|
+
const msg = 'the json request could not be decoded';
|
959
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
960
|
+
}
|
961
|
+
}
|
962
|
+
if (interceptors && interceptors.length > 0) {
|
963
|
+
const interceptor = chainInterceptors(...interceptors);
|
964
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
965
|
+
return service.SubredditAboutTraffic(ctx, inputReq);
|
966
|
+
});
|
967
|
+
}
|
968
|
+
else {
|
969
|
+
response = await service.SubredditAboutTraffic(ctx, request);
|
970
|
+
}
|
971
|
+
return JSON.stringify(SubredditAboutTrafficResponse.toJSON(response));
|
972
|
+
}
|
973
|
+
async function handleSubredditsSidebarJSON(ctx, service, data, interceptors) {
|
974
|
+
let request;
|
975
|
+
let response;
|
976
|
+
try {
|
977
|
+
const body = JSON.parse(data.toString() || '{}');
|
978
|
+
request = BasicSubredditRequest.fromJSON(body);
|
979
|
+
}
|
980
|
+
catch (e) {
|
981
|
+
if (e instanceof Error) {
|
982
|
+
const msg = 'the json request could not be decoded';
|
983
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
984
|
+
}
|
985
|
+
}
|
986
|
+
if (interceptors && interceptors.length > 0) {
|
987
|
+
const interceptor = chainInterceptors(...interceptors);
|
988
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
989
|
+
return service.Sidebar(ctx, inputReq);
|
990
|
+
});
|
991
|
+
}
|
992
|
+
else {
|
993
|
+
response = await service.Sidebar(ctx, request);
|
994
|
+
}
|
995
|
+
return JSON.stringify(StringValue.toJSON(response));
|
996
|
+
}
|
997
|
+
async function handleSubredditsStickyJSON(ctx, service, data, interceptors) {
|
998
|
+
let request;
|
999
|
+
let response;
|
1000
|
+
try {
|
1001
|
+
const body = JSON.parse(data.toString() || '{}');
|
1002
|
+
request = StickyRequest.fromJSON(body);
|
1003
|
+
}
|
1004
|
+
catch (e) {
|
1005
|
+
if (e instanceof Error) {
|
1006
|
+
const msg = 'the json request could not be decoded';
|
1007
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
1008
|
+
}
|
1009
|
+
}
|
1010
|
+
if (interceptors && interceptors.length > 0) {
|
1011
|
+
const interceptor = chainInterceptors(...interceptors);
|
1012
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
1013
|
+
return service.Sticky(ctx, inputReq);
|
1014
|
+
});
|
1015
|
+
}
|
1016
|
+
else {
|
1017
|
+
response = await service.Sticky(ctx, request);
|
1018
|
+
}
|
1019
|
+
return JSON.stringify(StickyResponse.toJSON(response));
|
1020
|
+
}
|
1021
|
+
async function handleSubredditsSubredditsMineWhereJSON(ctx, service, data, interceptors) {
|
1022
|
+
let request;
|
1023
|
+
let response;
|
1024
|
+
try {
|
1025
|
+
const body = JSON.parse(data.toString() || '{}');
|
1026
|
+
request = BasicWhereRequest.fromJSON(body);
|
1027
|
+
}
|
1028
|
+
catch (e) {
|
1029
|
+
if (e instanceof Error) {
|
1030
|
+
const msg = 'the json request could not be decoded';
|
1031
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
1032
|
+
}
|
1033
|
+
}
|
1034
|
+
if (interceptors && interceptors.length > 0) {
|
1035
|
+
const interceptor = chainInterceptors(...interceptors);
|
1036
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
1037
|
+
return service.SubredditsMineWhere(ctx, inputReq);
|
1038
|
+
});
|
1039
|
+
}
|
1040
|
+
else {
|
1041
|
+
response = await service.SubredditsMineWhere(ctx, request);
|
1042
|
+
}
|
1043
|
+
return JSON.stringify(Listing.toJSON(response));
|
1044
|
+
}
|
1045
|
+
async function handleSubredditsSubredditsSearchJSON(ctx, service, data, interceptors) {
|
1046
|
+
let request;
|
1047
|
+
let response;
|
1048
|
+
try {
|
1049
|
+
const body = JSON.parse(data.toString() || '{}');
|
1050
|
+
request = SubredditsSearchRequest.fromJSON(body);
|
1051
|
+
}
|
1052
|
+
catch (e) {
|
1053
|
+
if (e instanceof Error) {
|
1054
|
+
const msg = 'the json request could not be decoded';
|
1055
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
1056
|
+
}
|
1057
|
+
}
|
1058
|
+
if (interceptors && interceptors.length > 0) {
|
1059
|
+
const interceptor = chainInterceptors(...interceptors);
|
1060
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
1061
|
+
return service.SubredditsSearch(ctx, inputReq);
|
1062
|
+
});
|
1063
|
+
}
|
1064
|
+
else {
|
1065
|
+
response = await service.SubredditsSearch(ctx, request);
|
1066
|
+
}
|
1067
|
+
return JSON.stringify(SubredditsSearchResponse.toJSON(response));
|
1068
|
+
}
|
1069
|
+
async function handleSubredditsSubredditsWhereJSON(ctx, service, data, interceptors) {
|
1070
|
+
let request;
|
1071
|
+
let response;
|
1072
|
+
try {
|
1073
|
+
const body = JSON.parse(data.toString() || '{}');
|
1074
|
+
request = BasicWhereRequest.fromJSON(body);
|
1075
|
+
}
|
1076
|
+
catch (e) {
|
1077
|
+
if (e instanceof Error) {
|
1078
|
+
const msg = 'the json request could not be decoded';
|
1079
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
1080
|
+
}
|
1081
|
+
}
|
1082
|
+
if (interceptors && interceptors.length > 0) {
|
1083
|
+
const interceptor = chainInterceptors(...interceptors);
|
1084
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
1085
|
+
return service.SubredditsWhere(ctx, inputReq);
|
1086
|
+
});
|
1087
|
+
}
|
1088
|
+
else {
|
1089
|
+
response = await service.SubredditsWhere(ctx, request);
|
1090
|
+
}
|
1091
|
+
return JSON.stringify(SubredditsSearchResponse.toJSON(response));
|
1092
|
+
}
|
1093
|
+
async function handleSubredditsUsersSearchJSON(ctx, service, data, interceptors) {
|
1094
|
+
let request;
|
1095
|
+
let response;
|
1096
|
+
try {
|
1097
|
+
const body = JSON.parse(data.toString() || '{}');
|
1098
|
+
request = UsersSearchRequest.fromJSON(body);
|
1099
|
+
}
|
1100
|
+
catch (e) {
|
1101
|
+
if (e instanceof Error) {
|
1102
|
+
const msg = 'the json request could not be decoded';
|
1103
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
1104
|
+
}
|
1105
|
+
}
|
1106
|
+
if (interceptors && interceptors.length > 0) {
|
1107
|
+
const interceptor = chainInterceptors(...interceptors);
|
1108
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
1109
|
+
return service.UsersSearch(ctx, inputReq);
|
1110
|
+
});
|
1111
|
+
}
|
1112
|
+
else {
|
1113
|
+
response = await service.UsersSearch(ctx, request);
|
1114
|
+
}
|
1115
|
+
return JSON.stringify(UserSearchResponse.toJSON(response));
|
1116
|
+
}
|
1117
|
+
async function handleSubredditsUsersWhereJSON(ctx, service, data, interceptors) {
|
1118
|
+
let request;
|
1119
|
+
let response;
|
1120
|
+
try {
|
1121
|
+
const body = JSON.parse(data.toString() || '{}');
|
1122
|
+
request = BasicWhereRequest.fromJSON(body);
|
1123
|
+
}
|
1124
|
+
catch (e) {
|
1125
|
+
if (e instanceof Error) {
|
1126
|
+
const msg = 'the json request could not be decoded';
|
1127
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
1128
|
+
}
|
1129
|
+
}
|
1130
|
+
if (interceptors && interceptors.length > 0) {
|
1131
|
+
const interceptor = chainInterceptors(...interceptors);
|
1132
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
1133
|
+
return service.UsersWhere(ctx, inputReq);
|
1134
|
+
});
|
1135
|
+
}
|
1136
|
+
else {
|
1137
|
+
response = await service.UsersWhere(ctx, request);
|
1138
|
+
}
|
1139
|
+
return JSON.stringify(SubredditsSearchResponse.toJSON(response));
|
1140
|
+
}
|
1141
|
+
async function handleSubredditsSubredditAddRemovalReasonJSON(ctx, service, data, interceptors) {
|
1142
|
+
let request;
|
1143
|
+
let response;
|
1144
|
+
try {
|
1145
|
+
const body = JSON.parse(data.toString() || '{}');
|
1146
|
+
request = SubredditAddRemovalReasonRequest.fromJSON(body);
|
1147
|
+
}
|
1148
|
+
catch (e) {
|
1149
|
+
if (e instanceof Error) {
|
1150
|
+
const msg = 'the json request could not be decoded';
|
1151
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
1152
|
+
}
|
1153
|
+
}
|
1154
|
+
if (interceptors && interceptors.length > 0) {
|
1155
|
+
const interceptor = chainInterceptors(...interceptors);
|
1156
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
1157
|
+
return service.SubredditAddRemovalReason(ctx, inputReq);
|
1158
|
+
});
|
1159
|
+
}
|
1160
|
+
else {
|
1161
|
+
response = await service.SubredditAddRemovalReason(ctx, request);
|
1162
|
+
}
|
1163
|
+
return JSON.stringify(SubredditAddRemovalReasonResponse.toJSON(response));
|
1164
|
+
}
|
1165
|
+
async function handleSubredditsSubredditGetRemovalReasonsJSON(ctx, service, data, interceptors) {
|
1166
|
+
let request;
|
1167
|
+
let response;
|
1168
|
+
try {
|
1169
|
+
const body = JSON.parse(data.toString() || '{}');
|
1170
|
+
request = SubredditGetRemovalReasonsRequest.fromJSON(body);
|
1171
|
+
}
|
1172
|
+
catch (e) {
|
1173
|
+
if (e instanceof Error) {
|
1174
|
+
const msg = 'the json request could not be decoded';
|
1175
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
1176
|
+
}
|
1177
|
+
}
|
1178
|
+
if (interceptors && interceptors.length > 0) {
|
1179
|
+
const interceptor = chainInterceptors(...interceptors);
|
1180
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
1181
|
+
return service.SubredditGetRemovalReasons(ctx, inputReq);
|
1182
|
+
});
|
1183
|
+
}
|
1184
|
+
else {
|
1185
|
+
response = await service.SubredditGetRemovalReasons(ctx, request);
|
1186
|
+
}
|
1187
|
+
return JSON.stringify(SubredditGetRemovalReasonsResponse.toJSON(response));
|
1188
|
+
}
|
1189
|
+
async function handleSubredditsAboutWhereProtobuf(ctx, service, data, interceptors) {
|
1190
|
+
let request;
|
1191
|
+
let response;
|
1192
|
+
try {
|
1193
|
+
request = AboutWhereRequest.decode(data);
|
1194
|
+
}
|
1195
|
+
catch (e) {
|
1196
|
+
if (e instanceof Error) {
|
1197
|
+
const msg = 'the protobuf request could not be decoded';
|
1198
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
1199
|
+
}
|
1200
|
+
}
|
1201
|
+
if (interceptors && interceptors.length > 0) {
|
1202
|
+
const interceptor = chainInterceptors(...interceptors);
|
1203
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
1204
|
+
return service.AboutWhere(ctx, inputReq);
|
1205
|
+
});
|
1206
|
+
}
|
1207
|
+
else {
|
1208
|
+
response = await service.AboutWhere(ctx, request);
|
1209
|
+
}
|
1210
|
+
return Buffer.from(Listing.encode(response).finish());
|
1211
|
+
}
|
1212
|
+
async function handleSubredditsDeleteSrBannerProtobuf(ctx, service, data, interceptors) {
|
1213
|
+
let request;
|
1214
|
+
let response;
|
1215
|
+
try {
|
1216
|
+
request = BasicSubredditRequest.decode(data);
|
1217
|
+
}
|
1218
|
+
catch (e) {
|
1219
|
+
if (e instanceof Error) {
|
1220
|
+
const msg = 'the protobuf request could not be decoded';
|
1221
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
1222
|
+
}
|
1223
|
+
}
|
1224
|
+
if (interceptors && interceptors.length > 0) {
|
1225
|
+
const interceptor = chainInterceptors(...interceptors);
|
1226
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
1227
|
+
return service.DeleteSrBanner(ctx, inputReq);
|
1228
|
+
});
|
1229
|
+
}
|
1230
|
+
else {
|
1231
|
+
response = await service.DeleteSrBanner(ctx, request);
|
1232
|
+
}
|
1233
|
+
return Buffer.from(JsonStatus.encode(response).finish());
|
1234
|
+
}
|
1235
|
+
async function handleSubredditsDeleteSrHeaderProtobuf(ctx, service, data, interceptors) {
|
1236
|
+
let request;
|
1237
|
+
let response;
|
1238
|
+
try {
|
1239
|
+
request = BasicSubredditRequest.decode(data);
|
1240
|
+
}
|
1241
|
+
catch (e) {
|
1242
|
+
if (e instanceof Error) {
|
1243
|
+
const msg = 'the protobuf request could not be decoded';
|
1244
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
1245
|
+
}
|
1246
|
+
}
|
1247
|
+
if (interceptors && interceptors.length > 0) {
|
1248
|
+
const interceptor = chainInterceptors(...interceptors);
|
1249
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
1250
|
+
return service.DeleteSrHeader(ctx, inputReq);
|
1251
|
+
});
|
1252
|
+
}
|
1253
|
+
else {
|
1254
|
+
response = await service.DeleteSrHeader(ctx, request);
|
1255
|
+
}
|
1256
|
+
return Buffer.from(JsonStatus.encode(response).finish());
|
1257
|
+
}
|
1258
|
+
async function handleSubredditsDeleteSrIconProtobuf(ctx, service, data, interceptors) {
|
1259
|
+
let request;
|
1260
|
+
let response;
|
1261
|
+
try {
|
1262
|
+
request = BasicSubredditRequest.decode(data);
|
1263
|
+
}
|
1264
|
+
catch (e) {
|
1265
|
+
if (e instanceof Error) {
|
1266
|
+
const msg = 'the protobuf request could not be decoded';
|
1267
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
1268
|
+
}
|
1269
|
+
}
|
1270
|
+
if (interceptors && interceptors.length > 0) {
|
1271
|
+
const interceptor = chainInterceptors(...interceptors);
|
1272
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
1273
|
+
return service.DeleteSrIcon(ctx, inputReq);
|
1274
|
+
});
|
1275
|
+
}
|
1276
|
+
else {
|
1277
|
+
response = await service.DeleteSrIcon(ctx, request);
|
1278
|
+
}
|
1279
|
+
return Buffer.from(JsonStatus.encode(response).finish());
|
1280
|
+
}
|
1281
|
+
async function handleSubredditsDeleteSrImgProtobuf(ctx, service, data, interceptors) {
|
1282
|
+
let request;
|
1283
|
+
let response;
|
1284
|
+
try {
|
1285
|
+
request = DeleteSrImgRequest.decode(data);
|
1286
|
+
}
|
1287
|
+
catch (e) {
|
1288
|
+
if (e instanceof Error) {
|
1289
|
+
const msg = 'the protobuf request could not be decoded';
|
1290
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
1291
|
+
}
|
1292
|
+
}
|
1293
|
+
if (interceptors && interceptors.length > 0) {
|
1294
|
+
const interceptor = chainInterceptors(...interceptors);
|
1295
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
1296
|
+
return service.DeleteSrImg(ctx, inputReq);
|
1297
|
+
});
|
1298
|
+
}
|
1299
|
+
else {
|
1300
|
+
response = await service.DeleteSrImg(ctx, request);
|
1301
|
+
}
|
1302
|
+
return Buffer.from(JsonStatus.encode(response).finish());
|
1303
|
+
}
|
1304
|
+
async function handleSubredditsSearchRedditNamesProtobuf(ctx, service, data, interceptors) {
|
1305
|
+
let request;
|
1306
|
+
let response;
|
1307
|
+
try {
|
1308
|
+
request = BasicSearchRequest.decode(data);
|
1309
|
+
}
|
1310
|
+
catch (e) {
|
1311
|
+
if (e instanceof Error) {
|
1312
|
+
const msg = 'the protobuf request could not be decoded';
|
1313
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
1314
|
+
}
|
1315
|
+
}
|
1316
|
+
if (interceptors && interceptors.length > 0) {
|
1317
|
+
const interceptor = chainInterceptors(...interceptors);
|
1318
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
1319
|
+
return service.SearchRedditNames(ctx, inputReq);
|
1320
|
+
});
|
1321
|
+
}
|
1322
|
+
else {
|
1323
|
+
response = await service.SearchRedditNames(ctx, request);
|
1324
|
+
}
|
1325
|
+
return Buffer.from(SearchRedditNamesResponse.encode(response).finish());
|
1326
|
+
}
|
1327
|
+
async function handleSubredditsSearchSubredditsProtobuf(ctx, service, data, interceptors) {
|
1328
|
+
let request;
|
1329
|
+
let response;
|
1330
|
+
try {
|
1331
|
+
request = BasicSearchRequest.decode(data);
|
1332
|
+
}
|
1333
|
+
catch (e) {
|
1334
|
+
if (e instanceof Error) {
|
1335
|
+
const msg = 'the protobuf request could not be decoded';
|
1336
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
1337
|
+
}
|
1338
|
+
}
|
1339
|
+
if (interceptors && interceptors.length > 0) {
|
1340
|
+
const interceptor = chainInterceptors(...interceptors);
|
1341
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
1342
|
+
return service.SearchSubreddits(ctx, inputReq);
|
1343
|
+
});
|
1344
|
+
}
|
1345
|
+
else {
|
1346
|
+
response = await service.SearchSubreddits(ctx, request);
|
1347
|
+
}
|
1348
|
+
return Buffer.from(SearchSubredditsResponse.encode(response).finish());
|
1349
|
+
}
|
1350
|
+
async function handleSubredditsSiteAdminProtobuf(ctx, service, data, interceptors) {
|
1351
|
+
let request;
|
1352
|
+
let response;
|
1353
|
+
try {
|
1354
|
+
request = SiteAdminRequest.decode(data);
|
1355
|
+
}
|
1356
|
+
catch (e) {
|
1357
|
+
if (e instanceof Error) {
|
1358
|
+
const msg = 'the protobuf request could not be decoded';
|
1359
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
1360
|
+
}
|
1361
|
+
}
|
1362
|
+
if (interceptors && interceptors.length > 0) {
|
1363
|
+
const interceptor = chainInterceptors(...interceptors);
|
1364
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
1365
|
+
return service.SiteAdmin(ctx, inputReq);
|
1366
|
+
});
|
1367
|
+
}
|
1368
|
+
else {
|
1369
|
+
response = await service.SiteAdmin(ctx, request);
|
1370
|
+
}
|
1371
|
+
return Buffer.from(JsonStatus.encode(response).finish());
|
1372
|
+
}
|
1373
|
+
async function handleSubredditsSubmitTextProtobuf(ctx, service, data, interceptors) {
|
1374
|
+
let request;
|
1375
|
+
let response;
|
1376
|
+
try {
|
1377
|
+
request = BasicSubredditRequest.decode(data);
|
1378
|
+
}
|
1379
|
+
catch (e) {
|
1380
|
+
if (e instanceof Error) {
|
1381
|
+
const msg = 'the protobuf request could not be decoded';
|
1382
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
1383
|
+
}
|
1384
|
+
}
|
1385
|
+
if (interceptors && interceptors.length > 0) {
|
1386
|
+
const interceptor = chainInterceptors(...interceptors);
|
1387
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
1388
|
+
return service.SubmitText(ctx, inputReq);
|
1389
|
+
});
|
1390
|
+
}
|
1391
|
+
else {
|
1392
|
+
response = await service.SubmitText(ctx, request);
|
1393
|
+
}
|
1394
|
+
return Buffer.from(SubmitTextResponse.encode(response).finish());
|
1395
|
+
}
|
1396
|
+
async function handleSubredditsSubredditAutocompleteProtobuf(ctx, service, data, interceptors) {
|
1397
|
+
let request;
|
1398
|
+
let response;
|
1399
|
+
try {
|
1400
|
+
request = SubredditAutocompleteRequest.decode(data);
|
1401
|
+
}
|
1402
|
+
catch (e) {
|
1403
|
+
if (e instanceof Error) {
|
1404
|
+
const msg = 'the protobuf request could not be decoded';
|
1405
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
1406
|
+
}
|
1407
|
+
}
|
1408
|
+
if (interceptors && interceptors.length > 0) {
|
1409
|
+
const interceptor = chainInterceptors(...interceptors);
|
1410
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
1411
|
+
return service.SubredditAutocomplete(ctx, inputReq);
|
1412
|
+
});
|
1413
|
+
}
|
1414
|
+
else {
|
1415
|
+
response = await service.SubredditAutocomplete(ctx, request);
|
1416
|
+
}
|
1417
|
+
return Buffer.from(SubredditAutocompleteResponse.encode(response).finish());
|
1418
|
+
}
|
1419
|
+
async function handleSubredditsSubredditStylesheetProtobuf(ctx, service, data, interceptors) {
|
1420
|
+
let request;
|
1421
|
+
let response;
|
1422
|
+
try {
|
1423
|
+
request = SubredditStylesheetRequest.decode(data);
|
1424
|
+
}
|
1425
|
+
catch (e) {
|
1426
|
+
if (e instanceof Error) {
|
1427
|
+
const msg = 'the protobuf request could not be decoded';
|
1428
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
1429
|
+
}
|
1430
|
+
}
|
1431
|
+
if (interceptors && interceptors.length > 0) {
|
1432
|
+
const interceptor = chainInterceptors(...interceptors);
|
1433
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
1434
|
+
return service.SubredditStylesheet(ctx, inputReq);
|
1435
|
+
});
|
1436
|
+
}
|
1437
|
+
else {
|
1438
|
+
response = await service.SubredditStylesheet(ctx, request);
|
1439
|
+
}
|
1440
|
+
return Buffer.from(JsonStatus.encode(response).finish());
|
1441
|
+
}
|
1442
|
+
async function handleSubredditsSubscribeProtobuf(ctx, service, data, interceptors) {
|
1443
|
+
let request;
|
1444
|
+
let response;
|
1445
|
+
try {
|
1446
|
+
request = SubscribeRequest.decode(data);
|
1447
|
+
}
|
1448
|
+
catch (e) {
|
1449
|
+
if (e instanceof Error) {
|
1450
|
+
const msg = 'the protobuf request could not be decoded';
|
1451
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
1452
|
+
}
|
1453
|
+
}
|
1454
|
+
if (interceptors && interceptors.length > 0) {
|
1455
|
+
const interceptor = chainInterceptors(...interceptors);
|
1456
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
1457
|
+
return service.Subscribe(ctx, inputReq);
|
1458
|
+
});
|
1459
|
+
}
|
1460
|
+
else {
|
1461
|
+
response = await service.Subscribe(ctx, request);
|
1462
|
+
}
|
1463
|
+
return Buffer.from(Empty.encode(response).finish());
|
1464
|
+
}
|
1465
|
+
async function handleSubredditsUploadSrImgProtobuf(ctx, service, data, interceptors) {
|
1466
|
+
let request;
|
1467
|
+
let response;
|
1468
|
+
try {
|
1469
|
+
request = UploadSrImgRequest.decode(data);
|
1470
|
+
}
|
1471
|
+
catch (e) {
|
1472
|
+
if (e instanceof Error) {
|
1473
|
+
const msg = 'the protobuf request could not be decoded';
|
1474
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
1475
|
+
}
|
1476
|
+
}
|
1477
|
+
if (interceptors && interceptors.length > 0) {
|
1478
|
+
const interceptor = chainInterceptors(...interceptors);
|
1479
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
1480
|
+
return service.UploadSrImg(ctx, inputReq);
|
1481
|
+
});
|
1482
|
+
}
|
1483
|
+
else {
|
1484
|
+
response = await service.UploadSrImg(ctx, request);
|
1485
|
+
}
|
1486
|
+
return Buffer.from(UploadSrImgResponse.encode(response).finish());
|
1487
|
+
}
|
1488
|
+
async function handleSubredditsSubredditPostRequirementsProtobuf(ctx, service, data, interceptors) {
|
1489
|
+
let request;
|
1490
|
+
let response;
|
1491
|
+
try {
|
1492
|
+
request = BasicSubredditRequest.decode(data);
|
1493
|
+
}
|
1494
|
+
catch (e) {
|
1495
|
+
if (e instanceof Error) {
|
1496
|
+
const msg = 'the protobuf request could not be decoded';
|
1497
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
1498
|
+
}
|
1499
|
+
}
|
1500
|
+
if (interceptors && interceptors.length > 0) {
|
1501
|
+
const interceptor = chainInterceptors(...interceptors);
|
1502
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
1503
|
+
return service.SubredditPostRequirements(ctx, inputReq);
|
1504
|
+
});
|
1505
|
+
}
|
1506
|
+
else {
|
1507
|
+
response = await service.SubredditPostRequirements(ctx, request);
|
1508
|
+
}
|
1509
|
+
return Buffer.from(SubredditPostRequirementsResponse.encode(response).finish());
|
1510
|
+
}
|
1511
|
+
async function handleSubredditsSubredditAboutProtobuf(ctx, service, data, interceptors) {
|
1512
|
+
let request;
|
1513
|
+
let response;
|
1514
|
+
try {
|
1515
|
+
request = BasicSubredditRequest.decode(data);
|
1516
|
+
}
|
1517
|
+
catch (e) {
|
1518
|
+
if (e instanceof Error) {
|
1519
|
+
const msg = 'the protobuf request could not be decoded';
|
1520
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
1521
|
+
}
|
1522
|
+
}
|
1523
|
+
if (interceptors && interceptors.length > 0) {
|
1524
|
+
const interceptor = chainInterceptors(...interceptors);
|
1525
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
1526
|
+
return service.SubredditAbout(ctx, inputReq);
|
1527
|
+
});
|
1528
|
+
}
|
1529
|
+
else {
|
1530
|
+
response = await service.SubredditAbout(ctx, request);
|
1531
|
+
}
|
1532
|
+
return Buffer.from(SubredditAboutResponse.encode(response).finish());
|
1533
|
+
}
|
1534
|
+
async function handleSubredditsSubredditAboutEditProtobuf(ctx, service, data, interceptors) {
|
1535
|
+
let request;
|
1536
|
+
let response;
|
1537
|
+
try {
|
1538
|
+
request = SubredditAboutEditRequest.decode(data);
|
1539
|
+
}
|
1540
|
+
catch (e) {
|
1541
|
+
if (e instanceof Error) {
|
1542
|
+
const msg = 'the protobuf request could not be decoded';
|
1543
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
1544
|
+
}
|
1545
|
+
}
|
1546
|
+
if (interceptors && interceptors.length > 0) {
|
1547
|
+
const interceptor = chainInterceptors(...interceptors);
|
1548
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
1549
|
+
return service.SubredditAboutEdit(ctx, inputReq);
|
1550
|
+
});
|
1551
|
+
}
|
1552
|
+
else {
|
1553
|
+
response = await service.SubredditAboutEdit(ctx, request);
|
1554
|
+
}
|
1555
|
+
return Buffer.from(SubredditAboutEditResponse.encode(response).finish());
|
1556
|
+
}
|
1557
|
+
async function handleSubredditsSubredditAboutRulesProtobuf(ctx, service, data, interceptors) {
|
1558
|
+
let request;
|
1559
|
+
let response;
|
1560
|
+
try {
|
1561
|
+
request = BasicSubredditRequest.decode(data);
|
1562
|
+
}
|
1563
|
+
catch (e) {
|
1564
|
+
if (e instanceof Error) {
|
1565
|
+
const msg = 'the protobuf request could not be decoded';
|
1566
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
1567
|
+
}
|
1568
|
+
}
|
1569
|
+
if (interceptors && interceptors.length > 0) {
|
1570
|
+
const interceptor = chainInterceptors(...interceptors);
|
1571
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
1572
|
+
return service.SubredditAboutRules(ctx, inputReq);
|
1573
|
+
});
|
1574
|
+
}
|
1575
|
+
else {
|
1576
|
+
response = await service.SubredditAboutRules(ctx, request);
|
1577
|
+
}
|
1578
|
+
return Buffer.from(SubredditAboutRulesResponse.encode(response).finish());
|
1579
|
+
}
|
1580
|
+
async function handleSubredditsSubredditAboutTrafficProtobuf(ctx, service, data, interceptors) {
|
1581
|
+
let request;
|
1582
|
+
let response;
|
1583
|
+
try {
|
1584
|
+
request = BasicSubredditRequest.decode(data);
|
1585
|
+
}
|
1586
|
+
catch (e) {
|
1587
|
+
if (e instanceof Error) {
|
1588
|
+
const msg = 'the protobuf request could not be decoded';
|
1589
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
1590
|
+
}
|
1591
|
+
}
|
1592
|
+
if (interceptors && interceptors.length > 0) {
|
1593
|
+
const interceptor = chainInterceptors(...interceptors);
|
1594
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
1595
|
+
return service.SubredditAboutTraffic(ctx, inputReq);
|
1596
|
+
});
|
1597
|
+
}
|
1598
|
+
else {
|
1599
|
+
response = await service.SubredditAboutTraffic(ctx, request);
|
1600
|
+
}
|
1601
|
+
return Buffer.from(SubredditAboutTrafficResponse.encode(response).finish());
|
1602
|
+
}
|
1603
|
+
async function handleSubredditsSidebarProtobuf(ctx, service, data, interceptors) {
|
1604
|
+
let request;
|
1605
|
+
let response;
|
1606
|
+
try {
|
1607
|
+
request = BasicSubredditRequest.decode(data);
|
1608
|
+
}
|
1609
|
+
catch (e) {
|
1610
|
+
if (e instanceof Error) {
|
1611
|
+
const msg = 'the protobuf request could not be decoded';
|
1612
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
1613
|
+
}
|
1614
|
+
}
|
1615
|
+
if (interceptors && interceptors.length > 0) {
|
1616
|
+
const interceptor = chainInterceptors(...interceptors);
|
1617
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
1618
|
+
return service.Sidebar(ctx, inputReq);
|
1619
|
+
});
|
1620
|
+
}
|
1621
|
+
else {
|
1622
|
+
response = await service.Sidebar(ctx, request);
|
1623
|
+
}
|
1624
|
+
return Buffer.from(StringValue.encode(response).finish());
|
1625
|
+
}
|
1626
|
+
async function handleSubredditsStickyProtobuf(ctx, service, data, interceptors) {
|
1627
|
+
let request;
|
1628
|
+
let response;
|
1629
|
+
try {
|
1630
|
+
request = StickyRequest.decode(data);
|
1631
|
+
}
|
1632
|
+
catch (e) {
|
1633
|
+
if (e instanceof Error) {
|
1634
|
+
const msg = 'the protobuf request could not be decoded';
|
1635
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
1636
|
+
}
|
1637
|
+
}
|
1638
|
+
if (interceptors && interceptors.length > 0) {
|
1639
|
+
const interceptor = chainInterceptors(...interceptors);
|
1640
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
1641
|
+
return service.Sticky(ctx, inputReq);
|
1642
|
+
});
|
1643
|
+
}
|
1644
|
+
else {
|
1645
|
+
response = await service.Sticky(ctx, request);
|
1646
|
+
}
|
1647
|
+
return Buffer.from(StickyResponse.encode(response).finish());
|
1648
|
+
}
|
1649
|
+
async function handleSubredditsSubredditsMineWhereProtobuf(ctx, service, data, interceptors) {
|
1650
|
+
let request;
|
1651
|
+
let response;
|
1652
|
+
try {
|
1653
|
+
request = BasicWhereRequest.decode(data);
|
1654
|
+
}
|
1655
|
+
catch (e) {
|
1656
|
+
if (e instanceof Error) {
|
1657
|
+
const msg = 'the protobuf request could not be decoded';
|
1658
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
1659
|
+
}
|
1660
|
+
}
|
1661
|
+
if (interceptors && interceptors.length > 0) {
|
1662
|
+
const interceptor = chainInterceptors(...interceptors);
|
1663
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
1664
|
+
return service.SubredditsMineWhere(ctx, inputReq);
|
1665
|
+
});
|
1666
|
+
}
|
1667
|
+
else {
|
1668
|
+
response = await service.SubredditsMineWhere(ctx, request);
|
1669
|
+
}
|
1670
|
+
return Buffer.from(Listing.encode(response).finish());
|
1671
|
+
}
|
1672
|
+
async function handleSubredditsSubredditsSearchProtobuf(ctx, service, data, interceptors) {
|
1673
|
+
let request;
|
1674
|
+
let response;
|
1675
|
+
try {
|
1676
|
+
request = SubredditsSearchRequest.decode(data);
|
1677
|
+
}
|
1678
|
+
catch (e) {
|
1679
|
+
if (e instanceof Error) {
|
1680
|
+
const msg = 'the protobuf request could not be decoded';
|
1681
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
1682
|
+
}
|
1683
|
+
}
|
1684
|
+
if (interceptors && interceptors.length > 0) {
|
1685
|
+
const interceptor = chainInterceptors(...interceptors);
|
1686
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
1687
|
+
return service.SubredditsSearch(ctx, inputReq);
|
1688
|
+
});
|
1689
|
+
}
|
1690
|
+
else {
|
1691
|
+
response = await service.SubredditsSearch(ctx, request);
|
1692
|
+
}
|
1693
|
+
return Buffer.from(SubredditsSearchResponse.encode(response).finish());
|
1694
|
+
}
|
1695
|
+
async function handleSubredditsSubredditsWhereProtobuf(ctx, service, data, interceptors) {
|
1696
|
+
let request;
|
1697
|
+
let response;
|
1698
|
+
try {
|
1699
|
+
request = BasicWhereRequest.decode(data);
|
1700
|
+
}
|
1701
|
+
catch (e) {
|
1702
|
+
if (e instanceof Error) {
|
1703
|
+
const msg = 'the protobuf request could not be decoded';
|
1704
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
1705
|
+
}
|
1706
|
+
}
|
1707
|
+
if (interceptors && interceptors.length > 0) {
|
1708
|
+
const interceptor = chainInterceptors(...interceptors);
|
1709
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
1710
|
+
return service.SubredditsWhere(ctx, inputReq);
|
1711
|
+
});
|
1712
|
+
}
|
1713
|
+
else {
|
1714
|
+
response = await service.SubredditsWhere(ctx, request);
|
1715
|
+
}
|
1716
|
+
return Buffer.from(SubredditsSearchResponse.encode(response).finish());
|
1717
|
+
}
|
1718
|
+
async function handleSubredditsUsersSearchProtobuf(ctx, service, data, interceptors) {
|
1719
|
+
let request;
|
1720
|
+
let response;
|
1721
|
+
try {
|
1722
|
+
request = UsersSearchRequest.decode(data);
|
1723
|
+
}
|
1724
|
+
catch (e) {
|
1725
|
+
if (e instanceof Error) {
|
1726
|
+
const msg = 'the protobuf request could not be decoded';
|
1727
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
1728
|
+
}
|
1729
|
+
}
|
1730
|
+
if (interceptors && interceptors.length > 0) {
|
1731
|
+
const interceptor = chainInterceptors(...interceptors);
|
1732
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
1733
|
+
return service.UsersSearch(ctx, inputReq);
|
1734
|
+
});
|
1735
|
+
}
|
1736
|
+
else {
|
1737
|
+
response = await service.UsersSearch(ctx, request);
|
1738
|
+
}
|
1739
|
+
return Buffer.from(UserSearchResponse.encode(response).finish());
|
1740
|
+
}
|
1741
|
+
async function handleSubredditsUsersWhereProtobuf(ctx, service, data, interceptors) {
|
1742
|
+
let request;
|
1743
|
+
let response;
|
1744
|
+
try {
|
1745
|
+
request = BasicWhereRequest.decode(data);
|
1746
|
+
}
|
1747
|
+
catch (e) {
|
1748
|
+
if (e instanceof Error) {
|
1749
|
+
const msg = 'the protobuf request could not be decoded';
|
1750
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
1751
|
+
}
|
1752
|
+
}
|
1753
|
+
if (interceptors && interceptors.length > 0) {
|
1754
|
+
const interceptor = chainInterceptors(...interceptors);
|
1755
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
1756
|
+
return service.UsersWhere(ctx, inputReq);
|
1757
|
+
});
|
1758
|
+
}
|
1759
|
+
else {
|
1760
|
+
response = await service.UsersWhere(ctx, request);
|
1761
|
+
}
|
1762
|
+
return Buffer.from(SubredditsSearchResponse.encode(response).finish());
|
1763
|
+
}
|
1764
|
+
async function handleSubredditsSubredditAddRemovalReasonProtobuf(ctx, service, data, interceptors) {
|
1765
|
+
let request;
|
1766
|
+
let response;
|
1767
|
+
try {
|
1768
|
+
request = SubredditAddRemovalReasonRequest.decode(data);
|
1769
|
+
}
|
1770
|
+
catch (e) {
|
1771
|
+
if (e instanceof Error) {
|
1772
|
+
const msg = 'the protobuf request could not be decoded';
|
1773
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
1774
|
+
}
|
1775
|
+
}
|
1776
|
+
if (interceptors && interceptors.length > 0) {
|
1777
|
+
const interceptor = chainInterceptors(...interceptors);
|
1778
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
1779
|
+
return service.SubredditAddRemovalReason(ctx, inputReq);
|
1780
|
+
});
|
1781
|
+
}
|
1782
|
+
else {
|
1783
|
+
response = await service.SubredditAddRemovalReason(ctx, request);
|
1784
|
+
}
|
1785
|
+
return Buffer.from(SubredditAddRemovalReasonResponse.encode(response).finish());
|
1786
|
+
}
|
1787
|
+
async function handleSubredditsSubredditGetRemovalReasonsProtobuf(ctx, service, data, interceptors) {
|
1788
|
+
let request;
|
1789
|
+
let response;
|
1790
|
+
try {
|
1791
|
+
request = SubredditGetRemovalReasonsRequest.decode(data);
|
1792
|
+
}
|
1793
|
+
catch (e) {
|
1794
|
+
if (e instanceof Error) {
|
1795
|
+
const msg = 'the protobuf request could not be decoded';
|
1796
|
+
throw new TwirpError(TwirpErrorCode.Malformed, msg).withCause(e, true);
|
1797
|
+
}
|
1798
|
+
}
|
1799
|
+
if (interceptors && interceptors.length > 0) {
|
1800
|
+
const interceptor = chainInterceptors(...interceptors);
|
1801
|
+
response = await interceptor(ctx, request, (ctx, inputReq) => {
|
1802
|
+
return service.SubredditGetRemovalReasons(ctx, inputReq);
|
1803
|
+
});
|
1804
|
+
}
|
1805
|
+
else {
|
1806
|
+
response = await service.SubredditGetRemovalReasons(ctx, request);
|
1807
|
+
}
|
1808
|
+
return Buffer.from(SubredditGetRemovalReasonsResponse.encode(response).finish());
|
1809
|
+
}
|