@devvit/protos 0.11.0-next-2024-07-24-1be38cc96.0 → 0.11.0-next-2024-07-25-e11c6b2a8.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 +336 -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 +1071 -0
- package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/dev_portal.ts +222 -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 -0
- package/schema/devvit/dev_portal/app_settings/app_settings.proto +2 -0
- package/schema/devvit/dev_portal/dev_portal.proto +2 -0
- 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 -2
- package/types/devvit/dev_portal/app_publish_request/review/app_publish_request_review.js +4 -4
- 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 -20
- package/types/devvit/dev_portal/dev_portal.js +20 -20
- 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,4135 @@
|
|
1
|
+
// @generated by protobuf-ts 2.9.3
|
2
|
+
// @generated from protobuf file "devvit/plugin/redditapi/newmodmail/newmodmail_msg.proto" (package "devvit.plugin.redditapi.newmodmail", syntax proto3)
|
3
|
+
// tslint:disable
|
4
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
5
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
6
|
+
import { WireType } from "@protobuf-ts/runtime";
|
7
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
8
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
9
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
10
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
11
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
12
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
13
|
+
import { Any } from "../../../../google/protobuf/any";
|
14
|
+
import { Int64Value } from "../../../../google/protobuf/wrappers";
|
15
|
+
import { Int32Value } from "../../../../google/protobuf/wrappers";
|
16
|
+
import { StringValue } from "../../../../google/protobuf/wrappers";
|
17
|
+
import { BoolValue } from "../../../../google/protobuf/wrappers";
|
18
|
+
/**
|
19
|
+
* Shared Objects
|
20
|
+
*
|
21
|
+
* @generated from protobuf message devvit.plugin.redditapi.newmodmail.ConversationData
|
22
|
+
*/
|
23
|
+
export interface ConversationData {
|
24
|
+
/**
|
25
|
+
* Is the conversation automatically generated e.g. from automod, u/reddit
|
26
|
+
*
|
27
|
+
* @generated from protobuf field: google.protobuf.BoolValue is_auto = 1;
|
28
|
+
*/
|
29
|
+
isAuto?: BoolValue;
|
30
|
+
/**
|
31
|
+
* Participant. Is absent for mod discussions
|
32
|
+
*
|
33
|
+
* @generated from protobuf field: devvit.plugin.redditapi.newmodmail.Participant participant = 2;
|
34
|
+
*/
|
35
|
+
participant?: Participant;
|
36
|
+
/**
|
37
|
+
* List of object ids (denormalized). E.g. [{id: 'qwer42', key: 'messages'}, {id: 'abcd33', key: 'modActions'}]
|
38
|
+
*
|
39
|
+
* @generated from protobuf field: repeated devvit.plugin.redditapi.newmodmail.ConversationData.ObjId obj_ids = 3;
|
40
|
+
*/
|
41
|
+
objIds: ConversationData_ObjId[];
|
42
|
+
/**
|
43
|
+
* NOTE: is_repliable will always be true currently (at the time of writing this comment)
|
44
|
+
*
|
45
|
+
* @generated from protobuf field: google.protobuf.BoolValue is_repliable = 4;
|
46
|
+
*/
|
47
|
+
isRepliable?: BoolValue;
|
48
|
+
/**
|
49
|
+
* The last datetime a user made any interaction with the conversation
|
50
|
+
*
|
51
|
+
* @generated from protobuf field: google.protobuf.StringValue last_user_update = 5;
|
52
|
+
*/
|
53
|
+
lastUserUpdate?: StringValue;
|
54
|
+
/**
|
55
|
+
* Is the conversation internal (i.e. mod only)
|
56
|
+
*
|
57
|
+
* @generated from protobuf field: google.protobuf.BoolValue is_internal = 6;
|
58
|
+
*/
|
59
|
+
isInternal?: BoolValue;
|
60
|
+
/**
|
61
|
+
* The last datetime a mod from the owning subreddit made any interaction with the conversation.
|
62
|
+
* (Note that if this is a subreddit to subreddit conversation, the mods of
|
63
|
+
* the participant subreddit are irrelevant and do not affect this field.)
|
64
|
+
*
|
65
|
+
* @generated from protobuf field: google.protobuf.StringValue last_mod_update = 7;
|
66
|
+
*/
|
67
|
+
lastModUpdate?: StringValue;
|
68
|
+
/**
|
69
|
+
* @generated from protobuf field: repeated devvit.plugin.redditapi.newmodmail.Participant authors = 8;
|
70
|
+
*/
|
71
|
+
authors: Participant[];
|
72
|
+
/**
|
73
|
+
* The last time the conversation was updated (includes actions)
|
74
|
+
*
|
75
|
+
* @generated from protobuf field: google.protobuf.StringValue last_updated = 9;
|
76
|
+
*/
|
77
|
+
lastUpdated?: StringValue;
|
78
|
+
/**
|
79
|
+
* Id of the first corresponding message in the legacy message system
|
80
|
+
*
|
81
|
+
* @generated from protobuf field: google.protobuf.StringValue legacy_first_message_id = 10;
|
82
|
+
*/
|
83
|
+
legacyFirstMessageId?: StringValue;
|
84
|
+
/**
|
85
|
+
* @generated from protobuf field: google.protobuf.Int32Value state = 11;
|
86
|
+
*/
|
87
|
+
state?: Int32Value;
|
88
|
+
/**
|
89
|
+
* Type of conversation:
|
90
|
+
* - `internal` (mod discussion)
|
91
|
+
* - `sr_user` (between a subreddit and user)
|
92
|
+
* - `sr_sr` (between two subreddits)
|
93
|
+
*
|
94
|
+
* @generated from protobuf field: google.protobuf.StringValue conversation_type = 12;
|
95
|
+
*/
|
96
|
+
conversationType?: StringValue;
|
97
|
+
/**
|
98
|
+
* The datetime of the last unread message within this conversation for the current viewer.
|
99
|
+
*
|
100
|
+
* @generated from protobuf field: google.protobuf.StringValue last_unread = 13;
|
101
|
+
*/
|
102
|
+
lastUnread?: StringValue;
|
103
|
+
/**
|
104
|
+
* The subreddit that owns the conversation.
|
105
|
+
*
|
106
|
+
* @generated from protobuf field: devvit.plugin.redditapi.newmodmail.ConversationData.Owner owner = 14;
|
107
|
+
*/
|
108
|
+
owner?: ConversationData_Owner;
|
109
|
+
/**
|
110
|
+
* Suject of the conversation
|
111
|
+
*
|
112
|
+
* @generated from protobuf field: google.protobuf.StringValue subject = 15;
|
113
|
+
*/
|
114
|
+
subject?: StringValue;
|
115
|
+
/**
|
116
|
+
* Conversation ID
|
117
|
+
*
|
118
|
+
* @generated from protobuf field: google.protobuf.StringValue id = 16;
|
119
|
+
*/
|
120
|
+
id?: StringValue;
|
121
|
+
/**
|
122
|
+
* Is the conversation highlighted
|
123
|
+
*
|
124
|
+
* @generated from protobuf field: google.protobuf.BoolValue is_highlighted = 17;
|
125
|
+
*/
|
126
|
+
isHighlighted?: BoolValue;
|
127
|
+
/**
|
128
|
+
* Number of messages (not actions) in the conversation
|
129
|
+
*
|
130
|
+
* @generated from protobuf field: google.protobuf.Int64Value num_messages = 18;
|
131
|
+
*/
|
132
|
+
numMessages?: Int64Value;
|
133
|
+
/**
|
134
|
+
* from createconversationmessageresponse
|
135
|
+
*
|
136
|
+
* @generated from protobuf field: map<string, devvit.plugin.redditapi.newmodmail.ModActionData> mod_actions = 19;
|
137
|
+
*/
|
138
|
+
modActions: {
|
139
|
+
[key: string]: ModActionData;
|
140
|
+
};
|
141
|
+
}
|
142
|
+
/**
|
143
|
+
* @generated from protobuf message devvit.plugin.redditapi.newmodmail.ConversationData.ObjId
|
144
|
+
*/
|
145
|
+
export interface ConversationData_ObjId {
|
146
|
+
/**
|
147
|
+
* Id of an object (e.g. message ID or modAction ID)
|
148
|
+
*
|
149
|
+
* @generated from protobuf field: google.protobuf.StringValue id = 1;
|
150
|
+
*/
|
151
|
+
id?: StringValue;
|
152
|
+
/**
|
153
|
+
* Property name of the object collection (e.g. 'messages' or 'modActions')
|
154
|
+
*
|
155
|
+
* @generated from protobuf field: google.protobuf.StringValue key = 2;
|
156
|
+
*/
|
157
|
+
key?: StringValue;
|
158
|
+
}
|
159
|
+
/**
|
160
|
+
* @generated from protobuf message devvit.plugin.redditapi.newmodmail.ConversationData.Owner
|
161
|
+
*/
|
162
|
+
export interface ConversationData_Owner {
|
163
|
+
/**
|
164
|
+
* Subreddit display name
|
165
|
+
*
|
166
|
+
* @generated from protobuf field: google.protobuf.StringValue display_name = 1;
|
167
|
+
*/
|
168
|
+
displayName?: StringValue;
|
169
|
+
/**
|
170
|
+
* always 'subreddit'
|
171
|
+
*
|
172
|
+
* @generated from protobuf field: google.protobuf.StringValue type = 2;
|
173
|
+
*/
|
174
|
+
type?: StringValue;
|
175
|
+
/**
|
176
|
+
* Subreddit id
|
177
|
+
*
|
178
|
+
* @generated from protobuf field: google.protobuf.StringValue id = 3;
|
179
|
+
*/
|
180
|
+
id?: StringValue;
|
181
|
+
}
|
182
|
+
/**
|
183
|
+
* @generated from protobuf message devvit.plugin.redditapi.newmodmail.MessageData
|
184
|
+
*/
|
185
|
+
export interface MessageData {
|
186
|
+
/**
|
187
|
+
* @generated from protobuf field: google.protobuf.StringValue body = 1;
|
188
|
+
*/
|
189
|
+
body?: StringValue;
|
190
|
+
/**
|
191
|
+
* @generated from protobuf field: devvit.plugin.redditapi.newmodmail.Participant author = 2;
|
192
|
+
*/
|
193
|
+
author?: Participant;
|
194
|
+
/**
|
195
|
+
* @generated from protobuf field: google.protobuf.BoolValue is_internal = 3;
|
196
|
+
*/
|
197
|
+
isInternal?: BoolValue;
|
198
|
+
/**
|
199
|
+
* @generated from protobuf field: google.protobuf.StringValue date = 4;
|
200
|
+
*/
|
201
|
+
date?: StringValue;
|
202
|
+
/**
|
203
|
+
* @generated from protobuf field: google.protobuf.StringValue body_markdown = 5;
|
204
|
+
*/
|
205
|
+
bodyMarkdown?: StringValue;
|
206
|
+
/**
|
207
|
+
* @generated from protobuf field: google.protobuf.StringValue id = 6;
|
208
|
+
*/
|
209
|
+
id?: StringValue;
|
210
|
+
/**
|
211
|
+
* @generated from protobuf field: google.protobuf.StringValue participating_as = 7;
|
212
|
+
*/
|
213
|
+
participatingAs?: StringValue;
|
214
|
+
}
|
215
|
+
/**
|
216
|
+
* @generated from protobuf message devvit.plugin.redditapi.newmodmail.ConversationUserData
|
217
|
+
*/
|
218
|
+
export interface ConversationUserData {
|
219
|
+
/**
|
220
|
+
* @generated from protobuf field: map<string, devvit.plugin.redditapi.newmodmail.ConversationUserData.CommentData> recent_comments = 1;
|
221
|
+
*/
|
222
|
+
recentComments: {
|
223
|
+
[key: string]: ConversationUserData_CommentData;
|
224
|
+
};
|
225
|
+
/**
|
226
|
+
* @generated from protobuf field: devvit.plugin.redditapi.newmodmail.ConversationUserData.MuteStatus mute_status = 2;
|
227
|
+
*/
|
228
|
+
muteStatus?: ConversationUserData_MuteStatus;
|
229
|
+
/**
|
230
|
+
* @generated from protobuf field: google.protobuf.StringValue name = 3;
|
231
|
+
*/
|
232
|
+
name?: StringValue;
|
233
|
+
/**
|
234
|
+
* @generated from protobuf field: google.protobuf.StringValue created = 4;
|
235
|
+
*/
|
236
|
+
created?: StringValue;
|
237
|
+
/**
|
238
|
+
* @generated from protobuf field: devvit.plugin.redditapi.newmodmail.ConversationUserData.BanStatus ban_status = 5;
|
239
|
+
*/
|
240
|
+
banStatus?: ConversationUserData_BanStatus;
|
241
|
+
/**
|
242
|
+
* @generated from protobuf field: google.protobuf.BoolValue is_suspended = 6;
|
243
|
+
*/
|
244
|
+
isSuspended?: BoolValue;
|
245
|
+
/**
|
246
|
+
* @generated from protobuf field: devvit.plugin.redditapi.newmodmail.ConversationUserData.ApproveStatus approve_status = 7;
|
247
|
+
*/
|
248
|
+
approveStatus?: ConversationUserData_ApproveStatus;
|
249
|
+
/**
|
250
|
+
* @generated from protobuf field: google.protobuf.BoolValue is_shadow_banned = 8;
|
251
|
+
*/
|
252
|
+
isShadowBanned?: BoolValue;
|
253
|
+
/**
|
254
|
+
* @generated from protobuf field: map<string, devvit.plugin.redditapi.newmodmail.ConversationUserData.PostData> recent_posts = 9;
|
255
|
+
*/
|
256
|
+
recentPosts: {
|
257
|
+
[key: string]: ConversationUserData_PostData;
|
258
|
+
};
|
259
|
+
/**
|
260
|
+
* @generated from protobuf field: map<string, devvit.plugin.redditapi.newmodmail.ConversationUserData.ConvoData> recent_convos = 10;
|
261
|
+
*/
|
262
|
+
recentConvos: {
|
263
|
+
[key: string]: ConversationUserData_ConvoData;
|
264
|
+
};
|
265
|
+
/**
|
266
|
+
* @generated from protobuf field: google.protobuf.StringValue id = 11;
|
267
|
+
*/
|
268
|
+
id?: StringValue;
|
269
|
+
}
|
270
|
+
/**
|
271
|
+
* @generated from protobuf message devvit.plugin.redditapi.newmodmail.ConversationUserData.CommentData
|
272
|
+
*/
|
273
|
+
export interface ConversationUserData_CommentData {
|
274
|
+
/**
|
275
|
+
* @generated from protobuf field: google.protobuf.StringValue comment = 1;
|
276
|
+
*/
|
277
|
+
comment?: StringValue;
|
278
|
+
/**
|
279
|
+
* @generated from protobuf field: google.protobuf.StringValue date = 2;
|
280
|
+
*/
|
281
|
+
date?: StringValue;
|
282
|
+
/**
|
283
|
+
* @generated from protobuf field: google.protobuf.StringValue permalink = 3;
|
284
|
+
*/
|
285
|
+
permalink?: StringValue;
|
286
|
+
/**
|
287
|
+
* @generated from protobuf field: google.protobuf.StringValue title = 4;
|
288
|
+
*/
|
289
|
+
title?: StringValue;
|
290
|
+
}
|
291
|
+
/**
|
292
|
+
* @generated from protobuf message devvit.plugin.redditapi.newmodmail.ConversationUserData.MuteStatus
|
293
|
+
*/
|
294
|
+
export interface ConversationUserData_MuteStatus {
|
295
|
+
/**
|
296
|
+
* @generated from protobuf field: google.protobuf.Int64Value mute_count = 1;
|
297
|
+
*/
|
298
|
+
muteCount?: Int64Value;
|
299
|
+
/**
|
300
|
+
* @generated from protobuf field: google.protobuf.BoolValue is_muted = 2;
|
301
|
+
*/
|
302
|
+
isMuted?: BoolValue;
|
303
|
+
/**
|
304
|
+
* @generated from protobuf field: google.protobuf.StringValue end_date = 3;
|
305
|
+
*/
|
306
|
+
endDate?: StringValue;
|
307
|
+
/**
|
308
|
+
* @generated from protobuf field: google.protobuf.StringValue reason = 4;
|
309
|
+
*/
|
310
|
+
reason?: StringValue;
|
311
|
+
}
|
312
|
+
/**
|
313
|
+
* @generated from protobuf message devvit.plugin.redditapi.newmodmail.ConversationUserData.BanStatus
|
314
|
+
*/
|
315
|
+
export interface ConversationUserData_BanStatus {
|
316
|
+
/**
|
317
|
+
* @generated from protobuf field: google.protobuf.BoolValue is_banned = 1;
|
318
|
+
*/
|
319
|
+
isBanned?: BoolValue;
|
320
|
+
/**
|
321
|
+
* @generated from protobuf field: google.protobuf.BoolValue is_permanent = 2;
|
322
|
+
*/
|
323
|
+
isPermanent?: BoolValue;
|
324
|
+
/**
|
325
|
+
* @generated from protobuf field: google.protobuf.StringValue end_date = 3;
|
326
|
+
*/
|
327
|
+
endDate?: StringValue;
|
328
|
+
/**
|
329
|
+
* @generated from protobuf field: google.protobuf.StringValue reason = 4;
|
330
|
+
*/
|
331
|
+
reason?: StringValue;
|
332
|
+
}
|
333
|
+
/**
|
334
|
+
* @generated from protobuf message devvit.plugin.redditapi.newmodmail.ConversationUserData.ApproveStatus
|
335
|
+
*/
|
336
|
+
export interface ConversationUserData_ApproveStatus {
|
337
|
+
/**
|
338
|
+
* @generated from protobuf field: google.protobuf.BoolValue is_approved = 1;
|
339
|
+
*/
|
340
|
+
isApproved?: BoolValue;
|
341
|
+
}
|
342
|
+
/**
|
343
|
+
* @generated from protobuf message devvit.plugin.redditapi.newmodmail.ConversationUserData.PostData
|
344
|
+
*/
|
345
|
+
export interface ConversationUserData_PostData {
|
346
|
+
/**
|
347
|
+
* @generated from protobuf field: google.protobuf.StringValue date = 1;
|
348
|
+
*/
|
349
|
+
date?: StringValue;
|
350
|
+
/**
|
351
|
+
* @generated from protobuf field: google.protobuf.StringValue permalink = 2;
|
352
|
+
*/
|
353
|
+
permalink?: StringValue;
|
354
|
+
/**
|
355
|
+
* @generated from protobuf field: google.protobuf.StringValue title = 3;
|
356
|
+
*/
|
357
|
+
title?: StringValue;
|
358
|
+
}
|
359
|
+
/**
|
360
|
+
* @generated from protobuf message devvit.plugin.redditapi.newmodmail.ConversationUserData.ConvoData
|
361
|
+
*/
|
362
|
+
export interface ConversationUserData_ConvoData {
|
363
|
+
/**
|
364
|
+
* @generated from protobuf field: google.protobuf.StringValue date = 1;
|
365
|
+
*/
|
366
|
+
date?: StringValue;
|
367
|
+
/**
|
368
|
+
* @generated from protobuf field: google.protobuf.StringValue permalink = 2;
|
369
|
+
*/
|
370
|
+
permalink?: StringValue;
|
371
|
+
/**
|
372
|
+
* @generated from protobuf field: google.protobuf.StringValue id = 3;
|
373
|
+
*/
|
374
|
+
id?: StringValue;
|
375
|
+
/**
|
376
|
+
* @generated from protobuf field: google.protobuf.StringValue subject = 4;
|
377
|
+
*/
|
378
|
+
subject?: StringValue;
|
379
|
+
}
|
380
|
+
/**
|
381
|
+
* @generated from protobuf message devvit.plugin.redditapi.newmodmail.Participant
|
382
|
+
*/
|
383
|
+
export interface Participant {
|
384
|
+
/**
|
385
|
+
* @generated from protobuf field: google.protobuf.BoolValue is_mod = 1;
|
386
|
+
*/
|
387
|
+
isMod?: BoolValue;
|
388
|
+
/**
|
389
|
+
* @generated from protobuf field: google.protobuf.BoolValue is_admin = 2;
|
390
|
+
*/
|
391
|
+
isAdmin?: BoolValue;
|
392
|
+
/**
|
393
|
+
* @generated from protobuf field: google.protobuf.StringValue name = 3;
|
394
|
+
*/
|
395
|
+
name?: StringValue;
|
396
|
+
/**
|
397
|
+
* @generated from protobuf field: google.protobuf.BoolValue is_op = 4;
|
398
|
+
*/
|
399
|
+
isOp?: BoolValue;
|
400
|
+
/**
|
401
|
+
* @generated from protobuf field: google.protobuf.BoolValue is_participant = 5;
|
402
|
+
*/
|
403
|
+
isParticipant?: BoolValue;
|
404
|
+
/**
|
405
|
+
* @generated from protobuf field: google.protobuf.BoolValue is_approved = 6;
|
406
|
+
*/
|
407
|
+
isApproved?: BoolValue;
|
408
|
+
/**
|
409
|
+
* @generated from protobuf field: google.protobuf.BoolValue is_hidden = 7;
|
410
|
+
*/
|
411
|
+
isHidden?: BoolValue;
|
412
|
+
/**
|
413
|
+
* @generated from protobuf field: google.protobuf.Int64Value id = 8;
|
414
|
+
*/
|
415
|
+
id?: Int64Value;
|
416
|
+
/**
|
417
|
+
* @generated from protobuf field: google.protobuf.BoolValue is_deleted = 9;
|
418
|
+
*/
|
419
|
+
isDeleted?: BoolValue;
|
420
|
+
}
|
421
|
+
/**
|
422
|
+
* @generated from protobuf message devvit.plugin.redditapi.newmodmail.ModActionData
|
423
|
+
*/
|
424
|
+
export interface ModActionData {
|
425
|
+
/**
|
426
|
+
* @generated from protobuf field: google.protobuf.StringValue date = 1;
|
427
|
+
*/
|
428
|
+
date?: StringValue;
|
429
|
+
/**
|
430
|
+
* @generated from protobuf field: google.protobuf.Int32Value action_type_id = 2;
|
431
|
+
*/
|
432
|
+
actionTypeId?: Int32Value;
|
433
|
+
/**
|
434
|
+
* @generated from protobuf field: google.protobuf.StringValue id = 3;
|
435
|
+
*/
|
436
|
+
id?: StringValue;
|
437
|
+
/**
|
438
|
+
* @generated from protobuf field: devvit.plugin.redditapi.newmodmail.ModActionData.ModActionAuthor author = 4;
|
439
|
+
*/
|
440
|
+
author?: ModActionData_ModActionAuthor;
|
441
|
+
}
|
442
|
+
/**
|
443
|
+
* @generated from protobuf message devvit.plugin.redditapi.newmodmail.ModActionData.ModActionAuthor
|
444
|
+
*/
|
445
|
+
export interface ModActionData_ModActionAuthor {
|
446
|
+
/**
|
447
|
+
* @generated from protobuf field: google.protobuf.BoolValue is_mod = 1;
|
448
|
+
*/
|
449
|
+
isMod?: BoolValue;
|
450
|
+
/**
|
451
|
+
* @generated from protobuf field: google.protobuf.BoolValue is_admin = 2;
|
452
|
+
*/
|
453
|
+
isAdmin?: BoolValue;
|
454
|
+
/**
|
455
|
+
* @generated from protobuf field: google.protobuf.StringValue name = 3;
|
456
|
+
*/
|
457
|
+
name?: StringValue;
|
458
|
+
/**
|
459
|
+
* @generated from protobuf field: google.protobuf.BoolValue is_hidden = 4;
|
460
|
+
*/
|
461
|
+
isHidden?: BoolValue;
|
462
|
+
/**
|
463
|
+
* @generated from protobuf field: google.protobuf.Int64Value id = 5;
|
464
|
+
*/
|
465
|
+
id?: Int64Value;
|
466
|
+
/**
|
467
|
+
* @generated from protobuf field: google.protobuf.BoolValue is_deleted = 6;
|
468
|
+
*/
|
469
|
+
isDeleted?: BoolValue;
|
470
|
+
}
|
471
|
+
/**
|
472
|
+
* Requests
|
473
|
+
*
|
474
|
+
* @generated from protobuf message devvit.plugin.redditapi.newmodmail.BulkReadConversationsRequest
|
475
|
+
*/
|
476
|
+
export interface BulkReadConversationsRequest {
|
477
|
+
/**
|
478
|
+
* comma-delimited list of subreddit names (e.g. 'pics,worldnews'
|
479
|
+
*
|
480
|
+
* @generated from protobuf field: string entity = 1;
|
481
|
+
*/
|
482
|
+
entity: string;
|
483
|
+
/**
|
484
|
+
* one of (all, appeals, notifications, inbox, filtered, inprogress, mod, archived, default,
|
485
|
+
* highlighted, join_requests, new)
|
486
|
+
*
|
487
|
+
* @generated from protobuf field: string state = 2;
|
488
|
+
*/
|
489
|
+
state: string;
|
490
|
+
}
|
491
|
+
/**
|
492
|
+
* @generated from protobuf message devvit.plugin.redditapi.newmodmail.GetConversationsRequest
|
493
|
+
*/
|
494
|
+
export interface GetConversationsRequest {
|
495
|
+
/**
|
496
|
+
* id36 of a modmail
|
497
|
+
*
|
498
|
+
* @generated from protobuf field: google.protobuf.StringValue after = 1;
|
499
|
+
*/
|
500
|
+
after?: StringValue;
|
501
|
+
/**
|
502
|
+
* comma-delimited list of subreddit names
|
503
|
+
*
|
504
|
+
* @generated from protobuf field: google.protobuf.StringValue entity = 2;
|
505
|
+
*/
|
506
|
+
entity?: StringValue;
|
507
|
+
/**
|
508
|
+
* an integer between 1 and 100 (default: 25)
|
509
|
+
*
|
510
|
+
* @generated from protobuf field: google.protobuf.Int32Value limit = 3;
|
511
|
+
*/
|
512
|
+
limit?: Int32Value;
|
513
|
+
/**
|
514
|
+
* one of (recent, mod, user, unread)
|
515
|
+
*
|
516
|
+
* @generated from protobuf field: google.protobuf.StringValue sort = 4;
|
517
|
+
*/
|
518
|
+
sort?: StringValue;
|
519
|
+
/**
|
520
|
+
* one of (all, appeals, notifications, inbox, filtered, inprogress, mod, archived, default,
|
521
|
+
* highlighted, join_requests, new)
|
522
|
+
*
|
523
|
+
* @generated from protobuf field: google.protobuf.StringValue state = 5;
|
524
|
+
*/
|
525
|
+
state?: StringValue;
|
526
|
+
}
|
527
|
+
/**
|
528
|
+
* @generated from protobuf message devvit.plugin.redditapi.newmodmail.CreateConversationRequest
|
529
|
+
*/
|
530
|
+
export interface CreateConversationRequest {
|
531
|
+
/**
|
532
|
+
* raw markdown text
|
533
|
+
*
|
534
|
+
* @generated from protobuf field: string body = 1;
|
535
|
+
*/
|
536
|
+
body: string;
|
537
|
+
/**
|
538
|
+
* is author hidden?
|
539
|
+
*
|
540
|
+
* @generated from protobuf field: bool is_author_hidden = 2;
|
541
|
+
*/
|
542
|
+
isAuthorHidden: boolean;
|
543
|
+
/**
|
544
|
+
* subreddit name
|
545
|
+
*
|
546
|
+
* @generated from protobuf field: string sr_name = 3;
|
547
|
+
*/
|
548
|
+
srName: string;
|
549
|
+
/**
|
550
|
+
* subject of the conversation. max 100 characters.
|
551
|
+
*
|
552
|
+
* @generated from protobuf field: string subject = 4;
|
553
|
+
*/
|
554
|
+
subject: string;
|
555
|
+
/**
|
556
|
+
* a user (e.g. u/username), a subreddit (e.g. r/subreddit) or null
|
557
|
+
*
|
558
|
+
* @generated from protobuf field: google.protobuf.StringValue to = 5;
|
559
|
+
*/
|
560
|
+
to?: StringValue;
|
561
|
+
}
|
562
|
+
/**
|
563
|
+
* @generated from protobuf message devvit.plugin.redditapi.newmodmail.GetConversationRequest
|
564
|
+
*/
|
565
|
+
export interface GetConversationRequest {
|
566
|
+
/**
|
567
|
+
* id36 of a modmail conversation id
|
568
|
+
*
|
569
|
+
* @generated from protobuf field: string conversation_id = 1;
|
570
|
+
*/
|
571
|
+
conversationId: string;
|
572
|
+
/**
|
573
|
+
* mark read?
|
574
|
+
*
|
575
|
+
* @generated from protobuf field: bool mark_read = 2;
|
576
|
+
*/
|
577
|
+
markRead: boolean;
|
578
|
+
}
|
579
|
+
/**
|
580
|
+
* @generated from protobuf message devvit.plugin.redditapi.newmodmail.CreateConversationMessageRequest
|
581
|
+
*/
|
582
|
+
export interface CreateConversationMessageRequest {
|
583
|
+
/**
|
584
|
+
* markdown text
|
585
|
+
*
|
586
|
+
* @generated from protobuf field: string body = 1;
|
587
|
+
*/
|
588
|
+
body: string;
|
589
|
+
/**
|
590
|
+
* @generated from protobuf field: bool is_author_hidden = 2;
|
591
|
+
*/
|
592
|
+
isAuthorHidden: boolean;
|
593
|
+
/**
|
594
|
+
* @generated from protobuf field: bool is_internal = 3;
|
595
|
+
*/
|
596
|
+
isInternal: boolean;
|
597
|
+
/**
|
598
|
+
* id36 of a modmail conversation id
|
599
|
+
*
|
600
|
+
* @generated from protobuf field: string conversation_id = 4;
|
601
|
+
*/
|
602
|
+
conversationId: string;
|
603
|
+
}
|
604
|
+
/**
|
605
|
+
* @generated from protobuf message devvit.plugin.redditapi.newmodmail.BasicConversationRequest
|
606
|
+
*/
|
607
|
+
export interface BasicConversationRequest {
|
608
|
+
/**
|
609
|
+
* id36 of a modmail conversation id
|
610
|
+
*
|
611
|
+
* @generated from protobuf field: string conversation_id = 1;
|
612
|
+
*/
|
613
|
+
conversationId: string;
|
614
|
+
}
|
615
|
+
/**
|
616
|
+
* @generated from protobuf message devvit.plugin.redditapi.newmodmail.BasicConversationsRequest
|
617
|
+
*/
|
618
|
+
export interface BasicConversationsRequest {
|
619
|
+
/**
|
620
|
+
* comma seperated list of id36 of a modmail conversation ids
|
621
|
+
*
|
622
|
+
* @generated from protobuf field: string conversation_ids = 1;
|
623
|
+
*/
|
624
|
+
conversationIds: string;
|
625
|
+
}
|
626
|
+
/**
|
627
|
+
* @generated from protobuf message devvit.plugin.redditapi.newmodmail.MuteConversationRequest
|
628
|
+
*/
|
629
|
+
export interface MuteConversationRequest {
|
630
|
+
/**
|
631
|
+
* id36 of a modmail conversation id
|
632
|
+
*
|
633
|
+
* @generated from protobuf field: string conversation_id = 1;
|
634
|
+
*/
|
635
|
+
conversationId: string;
|
636
|
+
/**
|
637
|
+
* how long? one of (72, 168, 672)
|
638
|
+
*
|
639
|
+
* @generated from protobuf field: int32 num_hours = 2;
|
640
|
+
*/
|
641
|
+
numHours: number;
|
642
|
+
}
|
643
|
+
/**
|
644
|
+
* @generated from protobuf message devvit.plugin.redditapi.newmodmail.TempBanRequest
|
645
|
+
*/
|
646
|
+
export interface TempBanRequest {
|
647
|
+
/**
|
648
|
+
* id36 of a modmail conversation id
|
649
|
+
*
|
650
|
+
* @generated from protobuf field: string conversation_id = 1;
|
651
|
+
*/
|
652
|
+
conversationId: string;
|
653
|
+
/**
|
654
|
+
* duration in days, max 999
|
655
|
+
*
|
656
|
+
* @generated from protobuf field: int32 duration = 2;
|
657
|
+
*/
|
658
|
+
duration: number;
|
659
|
+
}
|
660
|
+
/**
|
661
|
+
* Responses
|
662
|
+
*
|
663
|
+
* @generated from protobuf message devvit.plugin.redditapi.newmodmail.BulkReadConversationsResponse
|
664
|
+
*/
|
665
|
+
export interface BulkReadConversationsResponse {
|
666
|
+
/**
|
667
|
+
* @generated from protobuf field: repeated google.protobuf.StringValue conversation_ids = 1;
|
668
|
+
*/
|
669
|
+
conversationIds: StringValue[];
|
670
|
+
}
|
671
|
+
/**
|
672
|
+
* @generated from protobuf message devvit.plugin.redditapi.newmodmail.GetConversationsResponse
|
673
|
+
*/
|
674
|
+
export interface GetConversationsResponse {
|
675
|
+
/**
|
676
|
+
* @generated from protobuf field: map<string, devvit.plugin.redditapi.newmodmail.ConversationData> conversations = 1;
|
677
|
+
*/
|
678
|
+
conversations: {
|
679
|
+
[key: string]: ConversationData;
|
680
|
+
};
|
681
|
+
/**
|
682
|
+
* @generated from protobuf field: map<string, devvit.plugin.redditapi.newmodmail.MessageData> messages = 2;
|
683
|
+
*/
|
684
|
+
messages: {
|
685
|
+
[key: string]: MessageData;
|
686
|
+
};
|
687
|
+
/**
|
688
|
+
* @generated from protobuf field: google.protobuf.StringValue viewer_id = 3;
|
689
|
+
*/
|
690
|
+
viewerId?: StringValue;
|
691
|
+
/**
|
692
|
+
* @generated from protobuf field: repeated google.protobuf.StringValue conversation_ids = 4;
|
693
|
+
*/
|
694
|
+
conversationIds: StringValue[];
|
695
|
+
}
|
696
|
+
/**
|
697
|
+
* @generated from protobuf message devvit.plugin.redditapi.newmodmail.CreateConversationResponse
|
698
|
+
*/
|
699
|
+
export interface CreateConversationResponse {
|
700
|
+
/**
|
701
|
+
* @generated from protobuf field: devvit.plugin.redditapi.newmodmail.ConversationData conversation = 1;
|
702
|
+
*/
|
703
|
+
conversation?: ConversationData;
|
704
|
+
/**
|
705
|
+
* @generated from protobuf field: map<string, devvit.plugin.redditapi.newmodmail.MessageData> messages = 2;
|
706
|
+
*/
|
707
|
+
messages: {
|
708
|
+
[key: string]: MessageData;
|
709
|
+
};
|
710
|
+
/**
|
711
|
+
* @generated from protobuf field: map<string, devvit.plugin.redditapi.newmodmail.ModActionData> mod_actions = 3;
|
712
|
+
*/
|
713
|
+
modActions: {
|
714
|
+
[key: string]: ModActionData;
|
715
|
+
};
|
716
|
+
/**
|
717
|
+
* error case
|
718
|
+
*
|
719
|
+
* @generated from protobuf field: repeated google.protobuf.StringValue fields = 4;
|
720
|
+
*/
|
721
|
+
fields: StringValue[];
|
722
|
+
/**
|
723
|
+
* @generated from protobuf field: google.protobuf.StringValue reason = 5;
|
724
|
+
*/
|
725
|
+
reason?: StringValue;
|
726
|
+
/**
|
727
|
+
* @generated from protobuf field: google.protobuf.StringValue message = 6;
|
728
|
+
*/
|
729
|
+
message?: StringValue;
|
730
|
+
/**
|
731
|
+
* @generated from protobuf field: google.protobuf.StringValue explanation = 7;
|
732
|
+
*/
|
733
|
+
explanation?: StringValue;
|
734
|
+
/**
|
735
|
+
* @generated from protobuf field: devvit.plugin.redditapi.newmodmail.ConversationUserData user = 8;
|
736
|
+
*/
|
737
|
+
user?: ConversationUserData;
|
738
|
+
}
|
739
|
+
/**
|
740
|
+
* @generated from protobuf message devvit.plugin.redditapi.newmodmail.GetConversationResponse
|
741
|
+
*/
|
742
|
+
export interface GetConversationResponse {
|
743
|
+
/**
|
744
|
+
* @generated from protobuf field: devvit.plugin.redditapi.newmodmail.ConversationData conversation = 1;
|
745
|
+
*/
|
746
|
+
conversation?: ConversationData;
|
747
|
+
/**
|
748
|
+
* @generated from protobuf field: map<string, devvit.plugin.redditapi.newmodmail.MessageData> messages = 2;
|
749
|
+
*/
|
750
|
+
messages: {
|
751
|
+
[key: string]: MessageData;
|
752
|
+
};
|
753
|
+
/**
|
754
|
+
* @generated from protobuf field: map<string, devvit.plugin.redditapi.newmodmail.ModActionData> mod_actions = 3;
|
755
|
+
*/
|
756
|
+
modActions: {
|
757
|
+
[key: string]: ModActionData;
|
758
|
+
};
|
759
|
+
/**
|
760
|
+
* @generated from protobuf field: google.protobuf.Any participant_subreddit = 4;
|
761
|
+
*/
|
762
|
+
participantSubreddit?: Any;
|
763
|
+
/**
|
764
|
+
* @generated from protobuf field: devvit.plugin.redditapi.newmodmail.ConversationUserData user = 5;
|
765
|
+
*/
|
766
|
+
user?: ConversationUserData;
|
767
|
+
}
|
768
|
+
/**
|
769
|
+
* @generated from protobuf message devvit.plugin.redditapi.newmodmail.CreateConversationMessageResponse
|
770
|
+
*/
|
771
|
+
export interface CreateConversationMessageResponse {
|
772
|
+
/**
|
773
|
+
* @generated from protobuf field: devvit.plugin.redditapi.newmodmail.ConversationData conversation = 1;
|
774
|
+
*/
|
775
|
+
conversation?: ConversationData;
|
776
|
+
/**
|
777
|
+
* @generated from protobuf field: map<string, devvit.plugin.redditapi.newmodmail.MessageData> messages = 2;
|
778
|
+
*/
|
779
|
+
messages: {
|
780
|
+
[key: string]: MessageData;
|
781
|
+
};
|
782
|
+
/**
|
783
|
+
* @generated from protobuf field: devvit.plugin.redditapi.newmodmail.ConversationUserData user = 3;
|
784
|
+
*/
|
785
|
+
user?: ConversationUserData;
|
786
|
+
}
|
787
|
+
/**
|
788
|
+
* @generated from protobuf message devvit.plugin.redditapi.newmodmail.ApproveConversationResponse
|
789
|
+
*/
|
790
|
+
export interface ApproveConversationResponse {
|
791
|
+
/**
|
792
|
+
* @generated from protobuf field: devvit.plugin.redditapi.newmodmail.ConversationData conversations = 1;
|
793
|
+
*/
|
794
|
+
conversations?: ConversationData;
|
795
|
+
/**
|
796
|
+
* @generated from protobuf field: map<string, devvit.plugin.redditapi.newmodmail.MessageData> messages = 2;
|
797
|
+
*/
|
798
|
+
messages: {
|
799
|
+
[key: string]: MessageData;
|
800
|
+
};
|
801
|
+
/**
|
802
|
+
* @generated from protobuf field: devvit.plugin.redditapi.newmodmail.ConversationUserData user = 3;
|
803
|
+
*/
|
804
|
+
user?: ConversationUserData;
|
805
|
+
/**
|
806
|
+
* @generated from protobuf field: map<string, devvit.plugin.redditapi.newmodmail.ModActionData> mod_actions = 4;
|
807
|
+
*/
|
808
|
+
modActions: {
|
809
|
+
[key: string]: ModActionData;
|
810
|
+
};
|
811
|
+
/**
|
812
|
+
* error case
|
813
|
+
*
|
814
|
+
* @generated from protobuf field: repeated google.protobuf.StringValue fields = 5;
|
815
|
+
*/
|
816
|
+
fields: StringValue[];
|
817
|
+
/**
|
818
|
+
* @generated from protobuf field: google.protobuf.StringValue reason = 6;
|
819
|
+
*/
|
820
|
+
reason?: StringValue;
|
821
|
+
/**
|
822
|
+
* @generated from protobuf field: google.protobuf.StringValue message = 7;
|
823
|
+
*/
|
824
|
+
message?: StringValue;
|
825
|
+
/**
|
826
|
+
* @generated from protobuf field: google.protobuf.StringValue explanation = 8;
|
827
|
+
*/
|
828
|
+
explanation?: StringValue;
|
829
|
+
}
|
830
|
+
/**
|
831
|
+
* @generated from protobuf message devvit.plugin.redditapi.newmodmail.ArchiveConversationResponse
|
832
|
+
*/
|
833
|
+
export interface ArchiveConversationResponse {
|
834
|
+
/**
|
835
|
+
* @deprecated use `conversation`
|
836
|
+
*
|
837
|
+
* @generated from protobuf field: devvit.plugin.redditapi.newmodmail.ConversationData conversations = 1;
|
838
|
+
*/
|
839
|
+
conversations?: ConversationData;
|
840
|
+
/**
|
841
|
+
* @generated from protobuf field: map<string, devvit.plugin.redditapi.newmodmail.MessageData> messages = 2;
|
842
|
+
*/
|
843
|
+
messages: {
|
844
|
+
[key: string]: MessageData;
|
845
|
+
};
|
846
|
+
/**
|
847
|
+
* @generated from protobuf field: map<string, devvit.plugin.redditapi.newmodmail.ModActionData> mod_actions = 3;
|
848
|
+
*/
|
849
|
+
modActions: {
|
850
|
+
[key: string]: ModActionData;
|
851
|
+
};
|
852
|
+
/**
|
853
|
+
* @generated from protobuf field: devvit.plugin.redditapi.newmodmail.ConversationData conversation = 4;
|
854
|
+
*/
|
855
|
+
conversation?: ConversationData;
|
856
|
+
}
|
857
|
+
/**
|
858
|
+
* @generated from protobuf message devvit.plugin.redditapi.newmodmail.HighlightConversationResponse
|
859
|
+
*/
|
860
|
+
export interface HighlightConversationResponse {
|
861
|
+
/**
|
862
|
+
* @deprecated use `conversation`
|
863
|
+
*
|
864
|
+
* @generated from protobuf field: devvit.plugin.redditapi.newmodmail.ConversationData conversations = 1;
|
865
|
+
*/
|
866
|
+
conversations?: ConversationData;
|
867
|
+
/**
|
868
|
+
* @generated from protobuf field: map<string, devvit.plugin.redditapi.newmodmail.MessageData> messages = 2;
|
869
|
+
*/
|
870
|
+
messages: {
|
871
|
+
[key: string]: MessageData;
|
872
|
+
};
|
873
|
+
/**
|
874
|
+
* @generated from protobuf field: map<string, devvit.plugin.redditapi.newmodmail.ModActionData> mod_actions = 3;
|
875
|
+
*/
|
876
|
+
modActions: {
|
877
|
+
[key: string]: ModActionData;
|
878
|
+
};
|
879
|
+
/**
|
880
|
+
* @generated from protobuf field: devvit.plugin.redditapi.newmodmail.ConversationData conversation = 4;
|
881
|
+
*/
|
882
|
+
conversation?: ConversationData;
|
883
|
+
}
|
884
|
+
/**
|
885
|
+
* @generated from protobuf message devvit.plugin.redditapi.newmodmail.MuteConversationResponse
|
886
|
+
*/
|
887
|
+
export interface MuteConversationResponse {
|
888
|
+
/**
|
889
|
+
* @generated from protobuf field: devvit.plugin.redditapi.newmodmail.ConversationData conversations = 1;
|
890
|
+
*/
|
891
|
+
conversations?: ConversationData;
|
892
|
+
/**
|
893
|
+
* @generated from protobuf field: map<string, devvit.plugin.redditapi.newmodmail.MessageData> messages = 2;
|
894
|
+
*/
|
895
|
+
messages: {
|
896
|
+
[key: string]: MessageData;
|
897
|
+
};
|
898
|
+
/**
|
899
|
+
* @generated from protobuf field: devvit.plugin.redditapi.newmodmail.ConversationUserData user = 3;
|
900
|
+
*/
|
901
|
+
user?: ConversationUserData;
|
902
|
+
/**
|
903
|
+
* @generated from protobuf field: map<string, devvit.plugin.redditapi.newmodmail.ModActionData> mod_actions = 4;
|
904
|
+
*/
|
905
|
+
modActions: {
|
906
|
+
[key: string]: ModActionData;
|
907
|
+
};
|
908
|
+
}
|
909
|
+
/**
|
910
|
+
* @generated from protobuf message devvit.plugin.redditapi.newmodmail.TempBanResponse
|
911
|
+
*/
|
912
|
+
export interface TempBanResponse {
|
913
|
+
/**
|
914
|
+
* @generated from protobuf field: devvit.plugin.redditapi.newmodmail.ConversationData conversations = 1;
|
915
|
+
*/
|
916
|
+
conversations?: ConversationData;
|
917
|
+
/**
|
918
|
+
* @generated from protobuf field: map<string, devvit.plugin.redditapi.newmodmail.MessageData> messages = 2;
|
919
|
+
*/
|
920
|
+
messages: {
|
921
|
+
[key: string]: MessageData;
|
922
|
+
};
|
923
|
+
/**
|
924
|
+
* @generated from protobuf field: devvit.plugin.redditapi.newmodmail.ConversationUserData user = 3;
|
925
|
+
*/
|
926
|
+
user?: ConversationUserData;
|
927
|
+
/**
|
928
|
+
* @generated from protobuf field: map<string, devvit.plugin.redditapi.newmodmail.ModActionData> mod_actions = 4;
|
929
|
+
*/
|
930
|
+
modActions: {
|
931
|
+
[key: string]: ModActionData;
|
932
|
+
};
|
933
|
+
/**
|
934
|
+
* error case
|
935
|
+
*
|
936
|
+
* @generated from protobuf field: repeated google.protobuf.StringValue fields = 5;
|
937
|
+
*/
|
938
|
+
fields: StringValue[];
|
939
|
+
/**
|
940
|
+
* @generated from protobuf field: google.protobuf.StringValue reason = 6;
|
941
|
+
*/
|
942
|
+
reason?: StringValue;
|
943
|
+
/**
|
944
|
+
* @generated from protobuf field: google.protobuf.StringValue message = 7;
|
945
|
+
*/
|
946
|
+
message?: StringValue;
|
947
|
+
}
|
948
|
+
/**
|
949
|
+
* @generated from protobuf message devvit.plugin.redditapi.newmodmail.SubredditsResponse
|
950
|
+
*/
|
951
|
+
export interface SubredditsResponse {
|
952
|
+
/**
|
953
|
+
* @generated from protobuf field: map<string, devvit.plugin.redditapi.newmodmail.SubredditsResponse.SubredditData> subreddits = 1;
|
954
|
+
*/
|
955
|
+
subreddits: {
|
956
|
+
[key: string]: SubredditsResponse_SubredditData;
|
957
|
+
};
|
958
|
+
}
|
959
|
+
/**
|
960
|
+
* @generated from protobuf message devvit.plugin.redditapi.newmodmail.SubredditsResponse.SubredditData
|
961
|
+
*/
|
962
|
+
export interface SubredditsResponse_SubredditData {
|
963
|
+
/**
|
964
|
+
* @generated from protobuf field: google.protobuf.StringValue community_icon = 1;
|
965
|
+
*/
|
966
|
+
communityIcon?: StringValue;
|
967
|
+
/**
|
968
|
+
* @generated from protobuf field: google.protobuf.StringValue key_color = 2;
|
969
|
+
*/
|
970
|
+
keyColor?: StringValue;
|
971
|
+
/**
|
972
|
+
* @generated from protobuf field: google.protobuf.StringValue display_name = 3;
|
973
|
+
*/
|
974
|
+
displayName?: StringValue;
|
975
|
+
/**
|
976
|
+
* @generated from protobuf field: google.protobuf.StringValue name = 4;
|
977
|
+
*/
|
978
|
+
name?: StringValue;
|
979
|
+
/**
|
980
|
+
* @generated from protobuf field: google.protobuf.Int32Value subscribers = 5;
|
981
|
+
*/
|
982
|
+
subscribers?: Int32Value;
|
983
|
+
/**
|
984
|
+
* @generated from protobuf field: google.protobuf.StringValue primary_color = 6;
|
985
|
+
*/
|
986
|
+
primaryColor?: StringValue;
|
987
|
+
/**
|
988
|
+
* @generated from protobuf field: google.protobuf.StringValue id = 7;
|
989
|
+
*/
|
990
|
+
id?: StringValue;
|
991
|
+
/**
|
992
|
+
* @generated from protobuf field: google.protobuf.StringValue last_updated = 8;
|
993
|
+
*/
|
994
|
+
lastUpdated?: StringValue;
|
995
|
+
/**
|
996
|
+
* @generated from protobuf field: google.protobuf.StringValue icon = 9;
|
997
|
+
*/
|
998
|
+
icon?: StringValue;
|
999
|
+
}
|
1000
|
+
/**
|
1001
|
+
* @generated from protobuf message devvit.plugin.redditapi.newmodmail.UnreadCountResponse
|
1002
|
+
*/
|
1003
|
+
export interface UnreadCountResponse {
|
1004
|
+
/**
|
1005
|
+
* @generated from protobuf field: google.protobuf.Int32Value archived = 1;
|
1006
|
+
*/
|
1007
|
+
archived?: Int32Value;
|
1008
|
+
/**
|
1009
|
+
* @generated from protobuf field: google.protobuf.Int32Value appeals = 2;
|
1010
|
+
*/
|
1011
|
+
appeals?: Int32Value;
|
1012
|
+
/**
|
1013
|
+
* @generated from protobuf field: google.protobuf.Int32Value highlighted = 3;
|
1014
|
+
*/
|
1015
|
+
highlighted?: Int32Value;
|
1016
|
+
/**
|
1017
|
+
* @generated from protobuf field: google.protobuf.Int32Value notifications = 4;
|
1018
|
+
*/
|
1019
|
+
notifications?: Int32Value;
|
1020
|
+
/**
|
1021
|
+
* @generated from protobuf field: google.protobuf.Int32Value join_requests = 5;
|
1022
|
+
*/
|
1023
|
+
joinRequests?: Int32Value;
|
1024
|
+
/**
|
1025
|
+
* @generated from protobuf field: google.protobuf.Int32Value filtered = 6;
|
1026
|
+
*/
|
1027
|
+
filtered?: Int32Value;
|
1028
|
+
/**
|
1029
|
+
* @generated from protobuf field: google.protobuf.Int32Value new = 7;
|
1030
|
+
*/
|
1031
|
+
new?: Int32Value;
|
1032
|
+
/**
|
1033
|
+
* @generated from protobuf field: google.protobuf.Int32Value inprogress = 8;
|
1034
|
+
*/
|
1035
|
+
inprogress?: Int32Value;
|
1036
|
+
/**
|
1037
|
+
* @generated from protobuf field: google.protobuf.Int32Value mod = 9;
|
1038
|
+
*/
|
1039
|
+
mod?: Int32Value;
|
1040
|
+
}
|
1041
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
1042
|
+
class ConversationData$Type extends MessageType<ConversationData> {
|
1043
|
+
constructor() {
|
1044
|
+
super("devvit.plugin.redditapi.newmodmail.ConversationData", [
|
1045
|
+
{ no: 1, name: "is_auto", kind: "message", T: () => BoolValue },
|
1046
|
+
{ no: 2, name: "participant", kind: "message", T: () => Participant },
|
1047
|
+
{ no: 3, name: "obj_ids", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => ConversationData_ObjId },
|
1048
|
+
{ no: 4, name: "is_repliable", kind: "message", T: () => BoolValue },
|
1049
|
+
{ no: 5, name: "last_user_update", kind: "message", T: () => StringValue },
|
1050
|
+
{ no: 6, name: "is_internal", kind: "message", T: () => BoolValue },
|
1051
|
+
{ no: 7, name: "last_mod_update", kind: "message", T: () => StringValue },
|
1052
|
+
{ no: 8, name: "authors", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Participant },
|
1053
|
+
{ no: 9, name: "last_updated", kind: "message", T: () => StringValue },
|
1054
|
+
{ no: 10, name: "legacy_first_message_id", kind: "message", T: () => StringValue },
|
1055
|
+
{ no: 11, name: "state", kind: "message", T: () => Int32Value },
|
1056
|
+
{ no: 12, name: "conversation_type", kind: "message", T: () => StringValue },
|
1057
|
+
{ no: 13, name: "last_unread", kind: "message", T: () => StringValue },
|
1058
|
+
{ no: 14, name: "owner", kind: "message", T: () => ConversationData_Owner },
|
1059
|
+
{ no: 15, name: "subject", kind: "message", T: () => StringValue },
|
1060
|
+
{ no: 16, name: "id", kind: "message", T: () => StringValue },
|
1061
|
+
{ no: 17, name: "is_highlighted", kind: "message", T: () => BoolValue },
|
1062
|
+
{ no: 18, name: "num_messages", kind: "message", T: () => Int64Value },
|
1063
|
+
{ no: 19, name: "mod_actions", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => ModActionData } }
|
1064
|
+
]);
|
1065
|
+
}
|
1066
|
+
create(value?: PartialMessage<ConversationData>): ConversationData {
|
1067
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
1068
|
+
message.objIds = [];
|
1069
|
+
message.authors = [];
|
1070
|
+
message.modActions = {};
|
1071
|
+
if (value !== undefined)
|
1072
|
+
reflectionMergePartial<ConversationData>(this, message, value);
|
1073
|
+
return message;
|
1074
|
+
}
|
1075
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ConversationData): ConversationData {
|
1076
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
1077
|
+
while (reader.pos < end) {
|
1078
|
+
let [fieldNo, wireType] = reader.tag();
|
1079
|
+
switch (fieldNo) {
|
1080
|
+
case /* google.protobuf.BoolValue is_auto */ 1:
|
1081
|
+
message.isAuto = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.isAuto);
|
1082
|
+
break;
|
1083
|
+
case /* devvit.plugin.redditapi.newmodmail.Participant participant */ 2:
|
1084
|
+
message.participant = Participant.internalBinaryRead(reader, reader.uint32(), options, message.participant);
|
1085
|
+
break;
|
1086
|
+
case /* repeated devvit.plugin.redditapi.newmodmail.ConversationData.ObjId obj_ids */ 3:
|
1087
|
+
message.objIds.push(ConversationData_ObjId.internalBinaryRead(reader, reader.uint32(), options));
|
1088
|
+
break;
|
1089
|
+
case /* google.protobuf.BoolValue is_repliable */ 4:
|
1090
|
+
message.isRepliable = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.isRepliable);
|
1091
|
+
break;
|
1092
|
+
case /* google.protobuf.StringValue last_user_update */ 5:
|
1093
|
+
message.lastUserUpdate = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.lastUserUpdate);
|
1094
|
+
break;
|
1095
|
+
case /* google.protobuf.BoolValue is_internal */ 6:
|
1096
|
+
message.isInternal = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.isInternal);
|
1097
|
+
break;
|
1098
|
+
case /* google.protobuf.StringValue last_mod_update */ 7:
|
1099
|
+
message.lastModUpdate = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.lastModUpdate);
|
1100
|
+
break;
|
1101
|
+
case /* repeated devvit.plugin.redditapi.newmodmail.Participant authors */ 8:
|
1102
|
+
message.authors.push(Participant.internalBinaryRead(reader, reader.uint32(), options));
|
1103
|
+
break;
|
1104
|
+
case /* google.protobuf.StringValue last_updated */ 9:
|
1105
|
+
message.lastUpdated = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.lastUpdated);
|
1106
|
+
break;
|
1107
|
+
case /* google.protobuf.StringValue legacy_first_message_id */ 10:
|
1108
|
+
message.legacyFirstMessageId = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.legacyFirstMessageId);
|
1109
|
+
break;
|
1110
|
+
case /* google.protobuf.Int32Value state */ 11:
|
1111
|
+
message.state = Int32Value.internalBinaryRead(reader, reader.uint32(), options, message.state);
|
1112
|
+
break;
|
1113
|
+
case /* google.protobuf.StringValue conversation_type */ 12:
|
1114
|
+
message.conversationType = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.conversationType);
|
1115
|
+
break;
|
1116
|
+
case /* google.protobuf.StringValue last_unread */ 13:
|
1117
|
+
message.lastUnread = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.lastUnread);
|
1118
|
+
break;
|
1119
|
+
case /* devvit.plugin.redditapi.newmodmail.ConversationData.Owner owner */ 14:
|
1120
|
+
message.owner = ConversationData_Owner.internalBinaryRead(reader, reader.uint32(), options, message.owner);
|
1121
|
+
break;
|
1122
|
+
case /* google.protobuf.StringValue subject */ 15:
|
1123
|
+
message.subject = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.subject);
|
1124
|
+
break;
|
1125
|
+
case /* google.protobuf.StringValue id */ 16:
|
1126
|
+
message.id = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.id);
|
1127
|
+
break;
|
1128
|
+
case /* google.protobuf.BoolValue is_highlighted */ 17:
|
1129
|
+
message.isHighlighted = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.isHighlighted);
|
1130
|
+
break;
|
1131
|
+
case /* google.protobuf.Int64Value num_messages */ 18:
|
1132
|
+
message.numMessages = Int64Value.internalBinaryRead(reader, reader.uint32(), options, message.numMessages);
|
1133
|
+
break;
|
1134
|
+
case /* map<string, devvit.plugin.redditapi.newmodmail.ModActionData> mod_actions */ 19:
|
1135
|
+
this.binaryReadMap19(message.modActions, reader, options);
|
1136
|
+
break;
|
1137
|
+
default:
|
1138
|
+
let u = options.readUnknownField;
|
1139
|
+
if (u === "throw")
|
1140
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
1141
|
+
let d = reader.skip(wireType);
|
1142
|
+
if (u !== false)
|
1143
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
1144
|
+
}
|
1145
|
+
}
|
1146
|
+
return message;
|
1147
|
+
}
|
1148
|
+
private binaryReadMap19(map: ConversationData["modActions"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
1149
|
+
let len = reader.uint32(), end = reader.pos + len, key: keyof ConversationData["modActions"] | undefined, val: ConversationData["modActions"][any] | undefined;
|
1150
|
+
while (reader.pos < end) {
|
1151
|
+
let [fieldNo, wireType] = reader.tag();
|
1152
|
+
switch (fieldNo) {
|
1153
|
+
case 1:
|
1154
|
+
key = reader.string();
|
1155
|
+
break;
|
1156
|
+
case 2:
|
1157
|
+
val = ModActionData.internalBinaryRead(reader, reader.uint32(), options);
|
1158
|
+
break;
|
1159
|
+
default: throw new globalThis.Error("unknown map entry field for field devvit.plugin.redditapi.newmodmail.ConversationData.mod_actions");
|
1160
|
+
}
|
1161
|
+
}
|
1162
|
+
map[key ?? ""] = val ?? ModActionData.create();
|
1163
|
+
}
|
1164
|
+
internalBinaryWrite(message: ConversationData, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
1165
|
+
/* google.protobuf.BoolValue is_auto = 1; */
|
1166
|
+
if (message.isAuto)
|
1167
|
+
BoolValue.internalBinaryWrite(message.isAuto, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
1168
|
+
/* devvit.plugin.redditapi.newmodmail.Participant participant = 2; */
|
1169
|
+
if (message.participant)
|
1170
|
+
Participant.internalBinaryWrite(message.participant, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
1171
|
+
/* repeated devvit.plugin.redditapi.newmodmail.ConversationData.ObjId obj_ids = 3; */
|
1172
|
+
for (let i = 0; i < message.objIds.length; i++)
|
1173
|
+
ConversationData_ObjId.internalBinaryWrite(message.objIds[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
1174
|
+
/* google.protobuf.BoolValue is_repliable = 4; */
|
1175
|
+
if (message.isRepliable)
|
1176
|
+
BoolValue.internalBinaryWrite(message.isRepliable, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
1177
|
+
/* google.protobuf.StringValue last_user_update = 5; */
|
1178
|
+
if (message.lastUserUpdate)
|
1179
|
+
StringValue.internalBinaryWrite(message.lastUserUpdate, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
1180
|
+
/* google.protobuf.BoolValue is_internal = 6; */
|
1181
|
+
if (message.isInternal)
|
1182
|
+
BoolValue.internalBinaryWrite(message.isInternal, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
1183
|
+
/* google.protobuf.StringValue last_mod_update = 7; */
|
1184
|
+
if (message.lastModUpdate)
|
1185
|
+
StringValue.internalBinaryWrite(message.lastModUpdate, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
1186
|
+
/* repeated devvit.plugin.redditapi.newmodmail.Participant authors = 8; */
|
1187
|
+
for (let i = 0; i < message.authors.length; i++)
|
1188
|
+
Participant.internalBinaryWrite(message.authors[i], writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
1189
|
+
/* google.protobuf.StringValue last_updated = 9; */
|
1190
|
+
if (message.lastUpdated)
|
1191
|
+
StringValue.internalBinaryWrite(message.lastUpdated, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
1192
|
+
/* google.protobuf.StringValue legacy_first_message_id = 10; */
|
1193
|
+
if (message.legacyFirstMessageId)
|
1194
|
+
StringValue.internalBinaryWrite(message.legacyFirstMessageId, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
1195
|
+
/* google.protobuf.Int32Value state = 11; */
|
1196
|
+
if (message.state)
|
1197
|
+
Int32Value.internalBinaryWrite(message.state, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
1198
|
+
/* google.protobuf.StringValue conversation_type = 12; */
|
1199
|
+
if (message.conversationType)
|
1200
|
+
StringValue.internalBinaryWrite(message.conversationType, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
|
1201
|
+
/* google.protobuf.StringValue last_unread = 13; */
|
1202
|
+
if (message.lastUnread)
|
1203
|
+
StringValue.internalBinaryWrite(message.lastUnread, writer.tag(13, WireType.LengthDelimited).fork(), options).join();
|
1204
|
+
/* devvit.plugin.redditapi.newmodmail.ConversationData.Owner owner = 14; */
|
1205
|
+
if (message.owner)
|
1206
|
+
ConversationData_Owner.internalBinaryWrite(message.owner, writer.tag(14, WireType.LengthDelimited).fork(), options).join();
|
1207
|
+
/* google.protobuf.StringValue subject = 15; */
|
1208
|
+
if (message.subject)
|
1209
|
+
StringValue.internalBinaryWrite(message.subject, writer.tag(15, WireType.LengthDelimited).fork(), options).join();
|
1210
|
+
/* google.protobuf.StringValue id = 16; */
|
1211
|
+
if (message.id)
|
1212
|
+
StringValue.internalBinaryWrite(message.id, writer.tag(16, WireType.LengthDelimited).fork(), options).join();
|
1213
|
+
/* google.protobuf.BoolValue is_highlighted = 17; */
|
1214
|
+
if (message.isHighlighted)
|
1215
|
+
BoolValue.internalBinaryWrite(message.isHighlighted, writer.tag(17, WireType.LengthDelimited).fork(), options).join();
|
1216
|
+
/* google.protobuf.Int64Value num_messages = 18; */
|
1217
|
+
if (message.numMessages)
|
1218
|
+
Int64Value.internalBinaryWrite(message.numMessages, writer.tag(18, WireType.LengthDelimited).fork(), options).join();
|
1219
|
+
/* map<string, devvit.plugin.redditapi.newmodmail.ModActionData> mod_actions = 19; */
|
1220
|
+
for (let k of globalThis.Object.keys(message.modActions)) {
|
1221
|
+
writer.tag(19, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
|
1222
|
+
writer.tag(2, WireType.LengthDelimited).fork();
|
1223
|
+
ModActionData.internalBinaryWrite(message.modActions[k], writer, options);
|
1224
|
+
writer.join().join();
|
1225
|
+
}
|
1226
|
+
let u = options.writeUnknownFields;
|
1227
|
+
if (u !== false)
|
1228
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
1229
|
+
return writer;
|
1230
|
+
}
|
1231
|
+
}
|
1232
|
+
/**
|
1233
|
+
* @generated MessageType for protobuf message devvit.plugin.redditapi.newmodmail.ConversationData
|
1234
|
+
*/
|
1235
|
+
export const ConversationData = new ConversationData$Type();
|
1236
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
1237
|
+
class ConversationData_ObjId$Type extends MessageType<ConversationData_ObjId> {
|
1238
|
+
constructor() {
|
1239
|
+
super("devvit.plugin.redditapi.newmodmail.ConversationData.ObjId", [
|
1240
|
+
{ no: 1, name: "id", kind: "message", T: () => StringValue },
|
1241
|
+
{ no: 2, name: "key", kind: "message", T: () => StringValue }
|
1242
|
+
]);
|
1243
|
+
}
|
1244
|
+
create(value?: PartialMessage<ConversationData_ObjId>): ConversationData_ObjId {
|
1245
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
1246
|
+
if (value !== undefined)
|
1247
|
+
reflectionMergePartial<ConversationData_ObjId>(this, message, value);
|
1248
|
+
return message;
|
1249
|
+
}
|
1250
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ConversationData_ObjId): ConversationData_ObjId {
|
1251
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
1252
|
+
while (reader.pos < end) {
|
1253
|
+
let [fieldNo, wireType] = reader.tag();
|
1254
|
+
switch (fieldNo) {
|
1255
|
+
case /* google.protobuf.StringValue id */ 1:
|
1256
|
+
message.id = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.id);
|
1257
|
+
break;
|
1258
|
+
case /* google.protobuf.StringValue key */ 2:
|
1259
|
+
message.key = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.key);
|
1260
|
+
break;
|
1261
|
+
default:
|
1262
|
+
let u = options.readUnknownField;
|
1263
|
+
if (u === "throw")
|
1264
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
1265
|
+
let d = reader.skip(wireType);
|
1266
|
+
if (u !== false)
|
1267
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
1268
|
+
}
|
1269
|
+
}
|
1270
|
+
return message;
|
1271
|
+
}
|
1272
|
+
internalBinaryWrite(message: ConversationData_ObjId, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
1273
|
+
/* google.protobuf.StringValue id = 1; */
|
1274
|
+
if (message.id)
|
1275
|
+
StringValue.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
1276
|
+
/* google.protobuf.StringValue key = 2; */
|
1277
|
+
if (message.key)
|
1278
|
+
StringValue.internalBinaryWrite(message.key, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
1279
|
+
let u = options.writeUnknownFields;
|
1280
|
+
if (u !== false)
|
1281
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
1282
|
+
return writer;
|
1283
|
+
}
|
1284
|
+
}
|
1285
|
+
/**
|
1286
|
+
* @generated MessageType for protobuf message devvit.plugin.redditapi.newmodmail.ConversationData.ObjId
|
1287
|
+
*/
|
1288
|
+
export const ConversationData_ObjId = new ConversationData_ObjId$Type();
|
1289
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
1290
|
+
class ConversationData_Owner$Type extends MessageType<ConversationData_Owner> {
|
1291
|
+
constructor() {
|
1292
|
+
super("devvit.plugin.redditapi.newmodmail.ConversationData.Owner", [
|
1293
|
+
{ no: 1, name: "display_name", kind: "message", T: () => StringValue },
|
1294
|
+
{ no: 2, name: "type", kind: "message", T: () => StringValue },
|
1295
|
+
{ no: 3, name: "id", kind: "message", T: () => StringValue }
|
1296
|
+
]);
|
1297
|
+
}
|
1298
|
+
create(value?: PartialMessage<ConversationData_Owner>): ConversationData_Owner {
|
1299
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
1300
|
+
if (value !== undefined)
|
1301
|
+
reflectionMergePartial<ConversationData_Owner>(this, message, value);
|
1302
|
+
return message;
|
1303
|
+
}
|
1304
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ConversationData_Owner): ConversationData_Owner {
|
1305
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
1306
|
+
while (reader.pos < end) {
|
1307
|
+
let [fieldNo, wireType] = reader.tag();
|
1308
|
+
switch (fieldNo) {
|
1309
|
+
case /* google.protobuf.StringValue display_name */ 1:
|
1310
|
+
message.displayName = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.displayName);
|
1311
|
+
break;
|
1312
|
+
case /* google.protobuf.StringValue type */ 2:
|
1313
|
+
message.type = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.type);
|
1314
|
+
break;
|
1315
|
+
case /* google.protobuf.StringValue id */ 3:
|
1316
|
+
message.id = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.id);
|
1317
|
+
break;
|
1318
|
+
default:
|
1319
|
+
let u = options.readUnknownField;
|
1320
|
+
if (u === "throw")
|
1321
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
1322
|
+
let d = reader.skip(wireType);
|
1323
|
+
if (u !== false)
|
1324
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
1325
|
+
}
|
1326
|
+
}
|
1327
|
+
return message;
|
1328
|
+
}
|
1329
|
+
internalBinaryWrite(message: ConversationData_Owner, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
1330
|
+
/* google.protobuf.StringValue display_name = 1; */
|
1331
|
+
if (message.displayName)
|
1332
|
+
StringValue.internalBinaryWrite(message.displayName, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
1333
|
+
/* google.protobuf.StringValue type = 2; */
|
1334
|
+
if (message.type)
|
1335
|
+
StringValue.internalBinaryWrite(message.type, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
1336
|
+
/* google.protobuf.StringValue id = 3; */
|
1337
|
+
if (message.id)
|
1338
|
+
StringValue.internalBinaryWrite(message.id, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
1339
|
+
let u = options.writeUnknownFields;
|
1340
|
+
if (u !== false)
|
1341
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
1342
|
+
return writer;
|
1343
|
+
}
|
1344
|
+
}
|
1345
|
+
/**
|
1346
|
+
* @generated MessageType for protobuf message devvit.plugin.redditapi.newmodmail.ConversationData.Owner
|
1347
|
+
*/
|
1348
|
+
export const ConversationData_Owner = new ConversationData_Owner$Type();
|
1349
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
1350
|
+
class MessageData$Type extends MessageType<MessageData> {
|
1351
|
+
constructor() {
|
1352
|
+
super("devvit.plugin.redditapi.newmodmail.MessageData", [
|
1353
|
+
{ no: 1, name: "body", kind: "message", T: () => StringValue },
|
1354
|
+
{ no: 2, name: "author", kind: "message", T: () => Participant },
|
1355
|
+
{ no: 3, name: "is_internal", kind: "message", T: () => BoolValue },
|
1356
|
+
{ no: 4, name: "date", kind: "message", T: () => StringValue },
|
1357
|
+
{ no: 5, name: "body_markdown", kind: "message", T: () => StringValue },
|
1358
|
+
{ no: 6, name: "id", kind: "message", T: () => StringValue },
|
1359
|
+
{ no: 7, name: "participating_as", kind: "message", T: () => StringValue }
|
1360
|
+
]);
|
1361
|
+
}
|
1362
|
+
create(value?: PartialMessage<MessageData>): MessageData {
|
1363
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
1364
|
+
if (value !== undefined)
|
1365
|
+
reflectionMergePartial<MessageData>(this, message, value);
|
1366
|
+
return message;
|
1367
|
+
}
|
1368
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MessageData): MessageData {
|
1369
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
1370
|
+
while (reader.pos < end) {
|
1371
|
+
let [fieldNo, wireType] = reader.tag();
|
1372
|
+
switch (fieldNo) {
|
1373
|
+
case /* google.protobuf.StringValue body */ 1:
|
1374
|
+
message.body = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.body);
|
1375
|
+
break;
|
1376
|
+
case /* devvit.plugin.redditapi.newmodmail.Participant author */ 2:
|
1377
|
+
message.author = Participant.internalBinaryRead(reader, reader.uint32(), options, message.author);
|
1378
|
+
break;
|
1379
|
+
case /* google.protobuf.BoolValue is_internal */ 3:
|
1380
|
+
message.isInternal = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.isInternal);
|
1381
|
+
break;
|
1382
|
+
case /* google.protobuf.StringValue date */ 4:
|
1383
|
+
message.date = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.date);
|
1384
|
+
break;
|
1385
|
+
case /* google.protobuf.StringValue body_markdown */ 5:
|
1386
|
+
message.bodyMarkdown = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.bodyMarkdown);
|
1387
|
+
break;
|
1388
|
+
case /* google.protobuf.StringValue id */ 6:
|
1389
|
+
message.id = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.id);
|
1390
|
+
break;
|
1391
|
+
case /* google.protobuf.StringValue participating_as */ 7:
|
1392
|
+
message.participatingAs = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.participatingAs);
|
1393
|
+
break;
|
1394
|
+
default:
|
1395
|
+
let u = options.readUnknownField;
|
1396
|
+
if (u === "throw")
|
1397
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
1398
|
+
let d = reader.skip(wireType);
|
1399
|
+
if (u !== false)
|
1400
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
1401
|
+
}
|
1402
|
+
}
|
1403
|
+
return message;
|
1404
|
+
}
|
1405
|
+
internalBinaryWrite(message: MessageData, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
1406
|
+
/* google.protobuf.StringValue body = 1; */
|
1407
|
+
if (message.body)
|
1408
|
+
StringValue.internalBinaryWrite(message.body, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
1409
|
+
/* devvit.plugin.redditapi.newmodmail.Participant author = 2; */
|
1410
|
+
if (message.author)
|
1411
|
+
Participant.internalBinaryWrite(message.author, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
1412
|
+
/* google.protobuf.BoolValue is_internal = 3; */
|
1413
|
+
if (message.isInternal)
|
1414
|
+
BoolValue.internalBinaryWrite(message.isInternal, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
1415
|
+
/* google.protobuf.StringValue date = 4; */
|
1416
|
+
if (message.date)
|
1417
|
+
StringValue.internalBinaryWrite(message.date, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
1418
|
+
/* google.protobuf.StringValue body_markdown = 5; */
|
1419
|
+
if (message.bodyMarkdown)
|
1420
|
+
StringValue.internalBinaryWrite(message.bodyMarkdown, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
1421
|
+
/* google.protobuf.StringValue id = 6; */
|
1422
|
+
if (message.id)
|
1423
|
+
StringValue.internalBinaryWrite(message.id, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
1424
|
+
/* google.protobuf.StringValue participating_as = 7; */
|
1425
|
+
if (message.participatingAs)
|
1426
|
+
StringValue.internalBinaryWrite(message.participatingAs, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
1427
|
+
let u = options.writeUnknownFields;
|
1428
|
+
if (u !== false)
|
1429
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
1430
|
+
return writer;
|
1431
|
+
}
|
1432
|
+
}
|
1433
|
+
/**
|
1434
|
+
* @generated MessageType for protobuf message devvit.plugin.redditapi.newmodmail.MessageData
|
1435
|
+
*/
|
1436
|
+
export const MessageData = new MessageData$Type();
|
1437
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
1438
|
+
class ConversationUserData$Type extends MessageType<ConversationUserData> {
|
1439
|
+
constructor() {
|
1440
|
+
super("devvit.plugin.redditapi.newmodmail.ConversationUserData", [
|
1441
|
+
{ no: 1, name: "recent_comments", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => ConversationUserData_CommentData } },
|
1442
|
+
{ no: 2, name: "mute_status", kind: "message", T: () => ConversationUserData_MuteStatus },
|
1443
|
+
{ no: 3, name: "name", kind: "message", T: () => StringValue },
|
1444
|
+
{ no: 4, name: "created", kind: "message", T: () => StringValue },
|
1445
|
+
{ no: 5, name: "ban_status", kind: "message", T: () => ConversationUserData_BanStatus },
|
1446
|
+
{ no: 6, name: "is_suspended", kind: "message", T: () => BoolValue },
|
1447
|
+
{ no: 7, name: "approve_status", kind: "message", T: () => ConversationUserData_ApproveStatus },
|
1448
|
+
{ no: 8, name: "is_shadow_banned", kind: "message", T: () => BoolValue },
|
1449
|
+
{ no: 9, name: "recent_posts", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => ConversationUserData_PostData } },
|
1450
|
+
{ no: 10, name: "recent_convos", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => ConversationUserData_ConvoData } },
|
1451
|
+
{ no: 11, name: "id", kind: "message", T: () => StringValue }
|
1452
|
+
]);
|
1453
|
+
}
|
1454
|
+
create(value?: PartialMessage<ConversationUserData>): ConversationUserData {
|
1455
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
1456
|
+
message.recentComments = {};
|
1457
|
+
message.recentPosts = {};
|
1458
|
+
message.recentConvos = {};
|
1459
|
+
if (value !== undefined)
|
1460
|
+
reflectionMergePartial<ConversationUserData>(this, message, value);
|
1461
|
+
return message;
|
1462
|
+
}
|
1463
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ConversationUserData): ConversationUserData {
|
1464
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
1465
|
+
while (reader.pos < end) {
|
1466
|
+
let [fieldNo, wireType] = reader.tag();
|
1467
|
+
switch (fieldNo) {
|
1468
|
+
case /* map<string, devvit.plugin.redditapi.newmodmail.ConversationUserData.CommentData> recent_comments */ 1:
|
1469
|
+
this.binaryReadMap1(message.recentComments, reader, options);
|
1470
|
+
break;
|
1471
|
+
case /* devvit.plugin.redditapi.newmodmail.ConversationUserData.MuteStatus mute_status */ 2:
|
1472
|
+
message.muteStatus = ConversationUserData_MuteStatus.internalBinaryRead(reader, reader.uint32(), options, message.muteStatus);
|
1473
|
+
break;
|
1474
|
+
case /* google.protobuf.StringValue name */ 3:
|
1475
|
+
message.name = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.name);
|
1476
|
+
break;
|
1477
|
+
case /* google.protobuf.StringValue created */ 4:
|
1478
|
+
message.created = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.created);
|
1479
|
+
break;
|
1480
|
+
case /* devvit.plugin.redditapi.newmodmail.ConversationUserData.BanStatus ban_status */ 5:
|
1481
|
+
message.banStatus = ConversationUserData_BanStatus.internalBinaryRead(reader, reader.uint32(), options, message.banStatus);
|
1482
|
+
break;
|
1483
|
+
case /* google.protobuf.BoolValue is_suspended */ 6:
|
1484
|
+
message.isSuspended = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.isSuspended);
|
1485
|
+
break;
|
1486
|
+
case /* devvit.plugin.redditapi.newmodmail.ConversationUserData.ApproveStatus approve_status */ 7:
|
1487
|
+
message.approveStatus = ConversationUserData_ApproveStatus.internalBinaryRead(reader, reader.uint32(), options, message.approveStatus);
|
1488
|
+
break;
|
1489
|
+
case /* google.protobuf.BoolValue is_shadow_banned */ 8:
|
1490
|
+
message.isShadowBanned = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.isShadowBanned);
|
1491
|
+
break;
|
1492
|
+
case /* map<string, devvit.plugin.redditapi.newmodmail.ConversationUserData.PostData> recent_posts */ 9:
|
1493
|
+
this.binaryReadMap9(message.recentPosts, reader, options);
|
1494
|
+
break;
|
1495
|
+
case /* map<string, devvit.plugin.redditapi.newmodmail.ConversationUserData.ConvoData> recent_convos */ 10:
|
1496
|
+
this.binaryReadMap10(message.recentConvos, reader, options);
|
1497
|
+
break;
|
1498
|
+
case /* google.protobuf.StringValue id */ 11:
|
1499
|
+
message.id = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.id);
|
1500
|
+
break;
|
1501
|
+
default:
|
1502
|
+
let u = options.readUnknownField;
|
1503
|
+
if (u === "throw")
|
1504
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
1505
|
+
let d = reader.skip(wireType);
|
1506
|
+
if (u !== false)
|
1507
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
1508
|
+
}
|
1509
|
+
}
|
1510
|
+
return message;
|
1511
|
+
}
|
1512
|
+
private binaryReadMap1(map: ConversationUserData["recentComments"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
1513
|
+
let len = reader.uint32(), end = reader.pos + len, key: keyof ConversationUserData["recentComments"] | undefined, val: ConversationUserData["recentComments"][any] | undefined;
|
1514
|
+
while (reader.pos < end) {
|
1515
|
+
let [fieldNo, wireType] = reader.tag();
|
1516
|
+
switch (fieldNo) {
|
1517
|
+
case 1:
|
1518
|
+
key = reader.string();
|
1519
|
+
break;
|
1520
|
+
case 2:
|
1521
|
+
val = ConversationUserData_CommentData.internalBinaryRead(reader, reader.uint32(), options);
|
1522
|
+
break;
|
1523
|
+
default: throw new globalThis.Error("unknown map entry field for field devvit.plugin.redditapi.newmodmail.ConversationUserData.recent_comments");
|
1524
|
+
}
|
1525
|
+
}
|
1526
|
+
map[key ?? ""] = val ?? ConversationUserData_CommentData.create();
|
1527
|
+
}
|
1528
|
+
private binaryReadMap9(map: ConversationUserData["recentPosts"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
1529
|
+
let len = reader.uint32(), end = reader.pos + len, key: keyof ConversationUserData["recentPosts"] | undefined, val: ConversationUserData["recentPosts"][any] | undefined;
|
1530
|
+
while (reader.pos < end) {
|
1531
|
+
let [fieldNo, wireType] = reader.tag();
|
1532
|
+
switch (fieldNo) {
|
1533
|
+
case 1:
|
1534
|
+
key = reader.string();
|
1535
|
+
break;
|
1536
|
+
case 2:
|
1537
|
+
val = ConversationUserData_PostData.internalBinaryRead(reader, reader.uint32(), options);
|
1538
|
+
break;
|
1539
|
+
default: throw new globalThis.Error("unknown map entry field for field devvit.plugin.redditapi.newmodmail.ConversationUserData.recent_posts");
|
1540
|
+
}
|
1541
|
+
}
|
1542
|
+
map[key ?? ""] = val ?? ConversationUserData_PostData.create();
|
1543
|
+
}
|
1544
|
+
private binaryReadMap10(map: ConversationUserData["recentConvos"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
1545
|
+
let len = reader.uint32(), end = reader.pos + len, key: keyof ConversationUserData["recentConvos"] | undefined, val: ConversationUserData["recentConvos"][any] | undefined;
|
1546
|
+
while (reader.pos < end) {
|
1547
|
+
let [fieldNo, wireType] = reader.tag();
|
1548
|
+
switch (fieldNo) {
|
1549
|
+
case 1:
|
1550
|
+
key = reader.string();
|
1551
|
+
break;
|
1552
|
+
case 2:
|
1553
|
+
val = ConversationUserData_ConvoData.internalBinaryRead(reader, reader.uint32(), options);
|
1554
|
+
break;
|
1555
|
+
default: throw new globalThis.Error("unknown map entry field for field devvit.plugin.redditapi.newmodmail.ConversationUserData.recent_convos");
|
1556
|
+
}
|
1557
|
+
}
|
1558
|
+
map[key ?? ""] = val ?? ConversationUserData_ConvoData.create();
|
1559
|
+
}
|
1560
|
+
internalBinaryWrite(message: ConversationUserData, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
1561
|
+
/* map<string, devvit.plugin.redditapi.newmodmail.ConversationUserData.CommentData> recent_comments = 1; */
|
1562
|
+
for (let k of globalThis.Object.keys(message.recentComments)) {
|
1563
|
+
writer.tag(1, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
|
1564
|
+
writer.tag(2, WireType.LengthDelimited).fork();
|
1565
|
+
ConversationUserData_CommentData.internalBinaryWrite(message.recentComments[k], writer, options);
|
1566
|
+
writer.join().join();
|
1567
|
+
}
|
1568
|
+
/* devvit.plugin.redditapi.newmodmail.ConversationUserData.MuteStatus mute_status = 2; */
|
1569
|
+
if (message.muteStatus)
|
1570
|
+
ConversationUserData_MuteStatus.internalBinaryWrite(message.muteStatus, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
1571
|
+
/* google.protobuf.StringValue name = 3; */
|
1572
|
+
if (message.name)
|
1573
|
+
StringValue.internalBinaryWrite(message.name, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
1574
|
+
/* google.protobuf.StringValue created = 4; */
|
1575
|
+
if (message.created)
|
1576
|
+
StringValue.internalBinaryWrite(message.created, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
1577
|
+
/* devvit.plugin.redditapi.newmodmail.ConversationUserData.BanStatus ban_status = 5; */
|
1578
|
+
if (message.banStatus)
|
1579
|
+
ConversationUserData_BanStatus.internalBinaryWrite(message.banStatus, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
1580
|
+
/* google.protobuf.BoolValue is_suspended = 6; */
|
1581
|
+
if (message.isSuspended)
|
1582
|
+
BoolValue.internalBinaryWrite(message.isSuspended, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
1583
|
+
/* devvit.plugin.redditapi.newmodmail.ConversationUserData.ApproveStatus approve_status = 7; */
|
1584
|
+
if (message.approveStatus)
|
1585
|
+
ConversationUserData_ApproveStatus.internalBinaryWrite(message.approveStatus, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
1586
|
+
/* google.protobuf.BoolValue is_shadow_banned = 8; */
|
1587
|
+
if (message.isShadowBanned)
|
1588
|
+
BoolValue.internalBinaryWrite(message.isShadowBanned, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
1589
|
+
/* map<string, devvit.plugin.redditapi.newmodmail.ConversationUserData.PostData> recent_posts = 9; */
|
1590
|
+
for (let k of globalThis.Object.keys(message.recentPosts)) {
|
1591
|
+
writer.tag(9, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
|
1592
|
+
writer.tag(2, WireType.LengthDelimited).fork();
|
1593
|
+
ConversationUserData_PostData.internalBinaryWrite(message.recentPosts[k], writer, options);
|
1594
|
+
writer.join().join();
|
1595
|
+
}
|
1596
|
+
/* map<string, devvit.plugin.redditapi.newmodmail.ConversationUserData.ConvoData> recent_convos = 10; */
|
1597
|
+
for (let k of globalThis.Object.keys(message.recentConvos)) {
|
1598
|
+
writer.tag(10, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
|
1599
|
+
writer.tag(2, WireType.LengthDelimited).fork();
|
1600
|
+
ConversationUserData_ConvoData.internalBinaryWrite(message.recentConvos[k], writer, options);
|
1601
|
+
writer.join().join();
|
1602
|
+
}
|
1603
|
+
/* google.protobuf.StringValue id = 11; */
|
1604
|
+
if (message.id)
|
1605
|
+
StringValue.internalBinaryWrite(message.id, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
1606
|
+
let u = options.writeUnknownFields;
|
1607
|
+
if (u !== false)
|
1608
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
1609
|
+
return writer;
|
1610
|
+
}
|
1611
|
+
}
|
1612
|
+
/**
|
1613
|
+
* @generated MessageType for protobuf message devvit.plugin.redditapi.newmodmail.ConversationUserData
|
1614
|
+
*/
|
1615
|
+
export const ConversationUserData = new ConversationUserData$Type();
|
1616
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
1617
|
+
class ConversationUserData_CommentData$Type extends MessageType<ConversationUserData_CommentData> {
|
1618
|
+
constructor() {
|
1619
|
+
super("devvit.plugin.redditapi.newmodmail.ConversationUserData.CommentData", [
|
1620
|
+
{ no: 1, name: "comment", kind: "message", T: () => StringValue },
|
1621
|
+
{ no: 2, name: "date", kind: "message", T: () => StringValue },
|
1622
|
+
{ no: 3, name: "permalink", kind: "message", T: () => StringValue },
|
1623
|
+
{ no: 4, name: "title", kind: "message", T: () => StringValue }
|
1624
|
+
]);
|
1625
|
+
}
|
1626
|
+
create(value?: PartialMessage<ConversationUserData_CommentData>): ConversationUserData_CommentData {
|
1627
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
1628
|
+
if (value !== undefined)
|
1629
|
+
reflectionMergePartial<ConversationUserData_CommentData>(this, message, value);
|
1630
|
+
return message;
|
1631
|
+
}
|
1632
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ConversationUserData_CommentData): ConversationUserData_CommentData {
|
1633
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
1634
|
+
while (reader.pos < end) {
|
1635
|
+
let [fieldNo, wireType] = reader.tag();
|
1636
|
+
switch (fieldNo) {
|
1637
|
+
case /* google.protobuf.StringValue comment */ 1:
|
1638
|
+
message.comment = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.comment);
|
1639
|
+
break;
|
1640
|
+
case /* google.protobuf.StringValue date */ 2:
|
1641
|
+
message.date = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.date);
|
1642
|
+
break;
|
1643
|
+
case /* google.protobuf.StringValue permalink */ 3:
|
1644
|
+
message.permalink = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.permalink);
|
1645
|
+
break;
|
1646
|
+
case /* google.protobuf.StringValue title */ 4:
|
1647
|
+
message.title = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.title);
|
1648
|
+
break;
|
1649
|
+
default:
|
1650
|
+
let u = options.readUnknownField;
|
1651
|
+
if (u === "throw")
|
1652
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
1653
|
+
let d = reader.skip(wireType);
|
1654
|
+
if (u !== false)
|
1655
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
1656
|
+
}
|
1657
|
+
}
|
1658
|
+
return message;
|
1659
|
+
}
|
1660
|
+
internalBinaryWrite(message: ConversationUserData_CommentData, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
1661
|
+
/* google.protobuf.StringValue comment = 1; */
|
1662
|
+
if (message.comment)
|
1663
|
+
StringValue.internalBinaryWrite(message.comment, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
1664
|
+
/* google.protobuf.StringValue date = 2; */
|
1665
|
+
if (message.date)
|
1666
|
+
StringValue.internalBinaryWrite(message.date, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
1667
|
+
/* google.protobuf.StringValue permalink = 3; */
|
1668
|
+
if (message.permalink)
|
1669
|
+
StringValue.internalBinaryWrite(message.permalink, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
1670
|
+
/* google.protobuf.StringValue title = 4; */
|
1671
|
+
if (message.title)
|
1672
|
+
StringValue.internalBinaryWrite(message.title, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
1673
|
+
let u = options.writeUnknownFields;
|
1674
|
+
if (u !== false)
|
1675
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
1676
|
+
return writer;
|
1677
|
+
}
|
1678
|
+
}
|
1679
|
+
/**
|
1680
|
+
* @generated MessageType for protobuf message devvit.plugin.redditapi.newmodmail.ConversationUserData.CommentData
|
1681
|
+
*/
|
1682
|
+
export const ConversationUserData_CommentData = new ConversationUserData_CommentData$Type();
|
1683
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
1684
|
+
class ConversationUserData_MuteStatus$Type extends MessageType<ConversationUserData_MuteStatus> {
|
1685
|
+
constructor() {
|
1686
|
+
super("devvit.plugin.redditapi.newmodmail.ConversationUserData.MuteStatus", [
|
1687
|
+
{ no: 1, name: "mute_count", kind: "message", T: () => Int64Value },
|
1688
|
+
{ no: 2, name: "is_muted", kind: "message", T: () => BoolValue },
|
1689
|
+
{ no: 3, name: "end_date", kind: "message", T: () => StringValue },
|
1690
|
+
{ no: 4, name: "reason", kind: "message", T: () => StringValue }
|
1691
|
+
]);
|
1692
|
+
}
|
1693
|
+
create(value?: PartialMessage<ConversationUserData_MuteStatus>): ConversationUserData_MuteStatus {
|
1694
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
1695
|
+
if (value !== undefined)
|
1696
|
+
reflectionMergePartial<ConversationUserData_MuteStatus>(this, message, value);
|
1697
|
+
return message;
|
1698
|
+
}
|
1699
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ConversationUserData_MuteStatus): ConversationUserData_MuteStatus {
|
1700
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
1701
|
+
while (reader.pos < end) {
|
1702
|
+
let [fieldNo, wireType] = reader.tag();
|
1703
|
+
switch (fieldNo) {
|
1704
|
+
case /* google.protobuf.Int64Value mute_count */ 1:
|
1705
|
+
message.muteCount = Int64Value.internalBinaryRead(reader, reader.uint32(), options, message.muteCount);
|
1706
|
+
break;
|
1707
|
+
case /* google.protobuf.BoolValue is_muted */ 2:
|
1708
|
+
message.isMuted = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.isMuted);
|
1709
|
+
break;
|
1710
|
+
case /* google.protobuf.StringValue end_date */ 3:
|
1711
|
+
message.endDate = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.endDate);
|
1712
|
+
break;
|
1713
|
+
case /* google.protobuf.StringValue reason */ 4:
|
1714
|
+
message.reason = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.reason);
|
1715
|
+
break;
|
1716
|
+
default:
|
1717
|
+
let u = options.readUnknownField;
|
1718
|
+
if (u === "throw")
|
1719
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
1720
|
+
let d = reader.skip(wireType);
|
1721
|
+
if (u !== false)
|
1722
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
1723
|
+
}
|
1724
|
+
}
|
1725
|
+
return message;
|
1726
|
+
}
|
1727
|
+
internalBinaryWrite(message: ConversationUserData_MuteStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
1728
|
+
/* google.protobuf.Int64Value mute_count = 1; */
|
1729
|
+
if (message.muteCount)
|
1730
|
+
Int64Value.internalBinaryWrite(message.muteCount, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
1731
|
+
/* google.protobuf.BoolValue is_muted = 2; */
|
1732
|
+
if (message.isMuted)
|
1733
|
+
BoolValue.internalBinaryWrite(message.isMuted, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
1734
|
+
/* google.protobuf.StringValue end_date = 3; */
|
1735
|
+
if (message.endDate)
|
1736
|
+
StringValue.internalBinaryWrite(message.endDate, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
1737
|
+
/* google.protobuf.StringValue reason = 4; */
|
1738
|
+
if (message.reason)
|
1739
|
+
StringValue.internalBinaryWrite(message.reason, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
1740
|
+
let u = options.writeUnknownFields;
|
1741
|
+
if (u !== false)
|
1742
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
1743
|
+
return writer;
|
1744
|
+
}
|
1745
|
+
}
|
1746
|
+
/**
|
1747
|
+
* @generated MessageType for protobuf message devvit.plugin.redditapi.newmodmail.ConversationUserData.MuteStatus
|
1748
|
+
*/
|
1749
|
+
export const ConversationUserData_MuteStatus = new ConversationUserData_MuteStatus$Type();
|
1750
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
1751
|
+
class ConversationUserData_BanStatus$Type extends MessageType<ConversationUserData_BanStatus> {
|
1752
|
+
constructor() {
|
1753
|
+
super("devvit.plugin.redditapi.newmodmail.ConversationUserData.BanStatus", [
|
1754
|
+
{ no: 1, name: "is_banned", kind: "message", T: () => BoolValue },
|
1755
|
+
{ no: 2, name: "is_permanent", kind: "message", T: () => BoolValue },
|
1756
|
+
{ no: 3, name: "end_date", kind: "message", T: () => StringValue },
|
1757
|
+
{ no: 4, name: "reason", kind: "message", T: () => StringValue }
|
1758
|
+
]);
|
1759
|
+
}
|
1760
|
+
create(value?: PartialMessage<ConversationUserData_BanStatus>): ConversationUserData_BanStatus {
|
1761
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
1762
|
+
if (value !== undefined)
|
1763
|
+
reflectionMergePartial<ConversationUserData_BanStatus>(this, message, value);
|
1764
|
+
return message;
|
1765
|
+
}
|
1766
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ConversationUserData_BanStatus): ConversationUserData_BanStatus {
|
1767
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
1768
|
+
while (reader.pos < end) {
|
1769
|
+
let [fieldNo, wireType] = reader.tag();
|
1770
|
+
switch (fieldNo) {
|
1771
|
+
case /* google.protobuf.BoolValue is_banned */ 1:
|
1772
|
+
message.isBanned = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.isBanned);
|
1773
|
+
break;
|
1774
|
+
case /* google.protobuf.BoolValue is_permanent */ 2:
|
1775
|
+
message.isPermanent = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.isPermanent);
|
1776
|
+
break;
|
1777
|
+
case /* google.protobuf.StringValue end_date */ 3:
|
1778
|
+
message.endDate = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.endDate);
|
1779
|
+
break;
|
1780
|
+
case /* google.protobuf.StringValue reason */ 4:
|
1781
|
+
message.reason = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.reason);
|
1782
|
+
break;
|
1783
|
+
default:
|
1784
|
+
let u = options.readUnknownField;
|
1785
|
+
if (u === "throw")
|
1786
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
1787
|
+
let d = reader.skip(wireType);
|
1788
|
+
if (u !== false)
|
1789
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
1790
|
+
}
|
1791
|
+
}
|
1792
|
+
return message;
|
1793
|
+
}
|
1794
|
+
internalBinaryWrite(message: ConversationUserData_BanStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
1795
|
+
/* google.protobuf.BoolValue is_banned = 1; */
|
1796
|
+
if (message.isBanned)
|
1797
|
+
BoolValue.internalBinaryWrite(message.isBanned, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
1798
|
+
/* google.protobuf.BoolValue is_permanent = 2; */
|
1799
|
+
if (message.isPermanent)
|
1800
|
+
BoolValue.internalBinaryWrite(message.isPermanent, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
1801
|
+
/* google.protobuf.StringValue end_date = 3; */
|
1802
|
+
if (message.endDate)
|
1803
|
+
StringValue.internalBinaryWrite(message.endDate, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
1804
|
+
/* google.protobuf.StringValue reason = 4; */
|
1805
|
+
if (message.reason)
|
1806
|
+
StringValue.internalBinaryWrite(message.reason, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
1807
|
+
let u = options.writeUnknownFields;
|
1808
|
+
if (u !== false)
|
1809
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
1810
|
+
return writer;
|
1811
|
+
}
|
1812
|
+
}
|
1813
|
+
/**
|
1814
|
+
* @generated MessageType for protobuf message devvit.plugin.redditapi.newmodmail.ConversationUserData.BanStatus
|
1815
|
+
*/
|
1816
|
+
export const ConversationUserData_BanStatus = new ConversationUserData_BanStatus$Type();
|
1817
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
1818
|
+
class ConversationUserData_ApproveStatus$Type extends MessageType<ConversationUserData_ApproveStatus> {
|
1819
|
+
constructor() {
|
1820
|
+
super("devvit.plugin.redditapi.newmodmail.ConversationUserData.ApproveStatus", [
|
1821
|
+
{ no: 1, name: "is_approved", kind: "message", T: () => BoolValue }
|
1822
|
+
]);
|
1823
|
+
}
|
1824
|
+
create(value?: PartialMessage<ConversationUserData_ApproveStatus>): ConversationUserData_ApproveStatus {
|
1825
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
1826
|
+
if (value !== undefined)
|
1827
|
+
reflectionMergePartial<ConversationUserData_ApproveStatus>(this, message, value);
|
1828
|
+
return message;
|
1829
|
+
}
|
1830
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ConversationUserData_ApproveStatus): ConversationUserData_ApproveStatus {
|
1831
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
1832
|
+
while (reader.pos < end) {
|
1833
|
+
let [fieldNo, wireType] = reader.tag();
|
1834
|
+
switch (fieldNo) {
|
1835
|
+
case /* google.protobuf.BoolValue is_approved */ 1:
|
1836
|
+
message.isApproved = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.isApproved);
|
1837
|
+
break;
|
1838
|
+
default:
|
1839
|
+
let u = options.readUnknownField;
|
1840
|
+
if (u === "throw")
|
1841
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
1842
|
+
let d = reader.skip(wireType);
|
1843
|
+
if (u !== false)
|
1844
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
1845
|
+
}
|
1846
|
+
}
|
1847
|
+
return message;
|
1848
|
+
}
|
1849
|
+
internalBinaryWrite(message: ConversationUserData_ApproveStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
1850
|
+
/* google.protobuf.BoolValue is_approved = 1; */
|
1851
|
+
if (message.isApproved)
|
1852
|
+
BoolValue.internalBinaryWrite(message.isApproved, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
1853
|
+
let u = options.writeUnknownFields;
|
1854
|
+
if (u !== false)
|
1855
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
1856
|
+
return writer;
|
1857
|
+
}
|
1858
|
+
}
|
1859
|
+
/**
|
1860
|
+
* @generated MessageType for protobuf message devvit.plugin.redditapi.newmodmail.ConversationUserData.ApproveStatus
|
1861
|
+
*/
|
1862
|
+
export const ConversationUserData_ApproveStatus = new ConversationUserData_ApproveStatus$Type();
|
1863
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
1864
|
+
class ConversationUserData_PostData$Type extends MessageType<ConversationUserData_PostData> {
|
1865
|
+
constructor() {
|
1866
|
+
super("devvit.plugin.redditapi.newmodmail.ConversationUserData.PostData", [
|
1867
|
+
{ no: 1, name: "date", kind: "message", T: () => StringValue },
|
1868
|
+
{ no: 2, name: "permalink", kind: "message", T: () => StringValue },
|
1869
|
+
{ no: 3, name: "title", kind: "message", T: () => StringValue }
|
1870
|
+
]);
|
1871
|
+
}
|
1872
|
+
create(value?: PartialMessage<ConversationUserData_PostData>): ConversationUserData_PostData {
|
1873
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
1874
|
+
if (value !== undefined)
|
1875
|
+
reflectionMergePartial<ConversationUserData_PostData>(this, message, value);
|
1876
|
+
return message;
|
1877
|
+
}
|
1878
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ConversationUserData_PostData): ConversationUserData_PostData {
|
1879
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
1880
|
+
while (reader.pos < end) {
|
1881
|
+
let [fieldNo, wireType] = reader.tag();
|
1882
|
+
switch (fieldNo) {
|
1883
|
+
case /* google.protobuf.StringValue date */ 1:
|
1884
|
+
message.date = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.date);
|
1885
|
+
break;
|
1886
|
+
case /* google.protobuf.StringValue permalink */ 2:
|
1887
|
+
message.permalink = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.permalink);
|
1888
|
+
break;
|
1889
|
+
case /* google.protobuf.StringValue title */ 3:
|
1890
|
+
message.title = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.title);
|
1891
|
+
break;
|
1892
|
+
default:
|
1893
|
+
let u = options.readUnknownField;
|
1894
|
+
if (u === "throw")
|
1895
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
1896
|
+
let d = reader.skip(wireType);
|
1897
|
+
if (u !== false)
|
1898
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
1899
|
+
}
|
1900
|
+
}
|
1901
|
+
return message;
|
1902
|
+
}
|
1903
|
+
internalBinaryWrite(message: ConversationUserData_PostData, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
1904
|
+
/* google.protobuf.StringValue date = 1; */
|
1905
|
+
if (message.date)
|
1906
|
+
StringValue.internalBinaryWrite(message.date, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
1907
|
+
/* google.protobuf.StringValue permalink = 2; */
|
1908
|
+
if (message.permalink)
|
1909
|
+
StringValue.internalBinaryWrite(message.permalink, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
1910
|
+
/* google.protobuf.StringValue title = 3; */
|
1911
|
+
if (message.title)
|
1912
|
+
StringValue.internalBinaryWrite(message.title, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
1913
|
+
let u = options.writeUnknownFields;
|
1914
|
+
if (u !== false)
|
1915
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
1916
|
+
return writer;
|
1917
|
+
}
|
1918
|
+
}
|
1919
|
+
/**
|
1920
|
+
* @generated MessageType for protobuf message devvit.plugin.redditapi.newmodmail.ConversationUserData.PostData
|
1921
|
+
*/
|
1922
|
+
export const ConversationUserData_PostData = new ConversationUserData_PostData$Type();
|
1923
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
1924
|
+
class ConversationUserData_ConvoData$Type extends MessageType<ConversationUserData_ConvoData> {
|
1925
|
+
constructor() {
|
1926
|
+
super("devvit.plugin.redditapi.newmodmail.ConversationUserData.ConvoData", [
|
1927
|
+
{ no: 1, name: "date", kind: "message", T: () => StringValue },
|
1928
|
+
{ no: 2, name: "permalink", kind: "message", T: () => StringValue },
|
1929
|
+
{ no: 3, name: "id", kind: "message", T: () => StringValue },
|
1930
|
+
{ no: 4, name: "subject", kind: "message", T: () => StringValue }
|
1931
|
+
]);
|
1932
|
+
}
|
1933
|
+
create(value?: PartialMessage<ConversationUserData_ConvoData>): ConversationUserData_ConvoData {
|
1934
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
1935
|
+
if (value !== undefined)
|
1936
|
+
reflectionMergePartial<ConversationUserData_ConvoData>(this, message, value);
|
1937
|
+
return message;
|
1938
|
+
}
|
1939
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ConversationUserData_ConvoData): ConversationUserData_ConvoData {
|
1940
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
1941
|
+
while (reader.pos < end) {
|
1942
|
+
let [fieldNo, wireType] = reader.tag();
|
1943
|
+
switch (fieldNo) {
|
1944
|
+
case /* google.protobuf.StringValue date */ 1:
|
1945
|
+
message.date = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.date);
|
1946
|
+
break;
|
1947
|
+
case /* google.protobuf.StringValue permalink */ 2:
|
1948
|
+
message.permalink = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.permalink);
|
1949
|
+
break;
|
1950
|
+
case /* google.protobuf.StringValue id */ 3:
|
1951
|
+
message.id = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.id);
|
1952
|
+
break;
|
1953
|
+
case /* google.protobuf.StringValue subject */ 4:
|
1954
|
+
message.subject = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.subject);
|
1955
|
+
break;
|
1956
|
+
default:
|
1957
|
+
let u = options.readUnknownField;
|
1958
|
+
if (u === "throw")
|
1959
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
1960
|
+
let d = reader.skip(wireType);
|
1961
|
+
if (u !== false)
|
1962
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
1963
|
+
}
|
1964
|
+
}
|
1965
|
+
return message;
|
1966
|
+
}
|
1967
|
+
internalBinaryWrite(message: ConversationUserData_ConvoData, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
1968
|
+
/* google.protobuf.StringValue date = 1; */
|
1969
|
+
if (message.date)
|
1970
|
+
StringValue.internalBinaryWrite(message.date, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
1971
|
+
/* google.protobuf.StringValue permalink = 2; */
|
1972
|
+
if (message.permalink)
|
1973
|
+
StringValue.internalBinaryWrite(message.permalink, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
1974
|
+
/* google.protobuf.StringValue id = 3; */
|
1975
|
+
if (message.id)
|
1976
|
+
StringValue.internalBinaryWrite(message.id, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
1977
|
+
/* google.protobuf.StringValue subject = 4; */
|
1978
|
+
if (message.subject)
|
1979
|
+
StringValue.internalBinaryWrite(message.subject, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
1980
|
+
let u = options.writeUnknownFields;
|
1981
|
+
if (u !== false)
|
1982
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
1983
|
+
return writer;
|
1984
|
+
}
|
1985
|
+
}
|
1986
|
+
/**
|
1987
|
+
* @generated MessageType for protobuf message devvit.plugin.redditapi.newmodmail.ConversationUserData.ConvoData
|
1988
|
+
*/
|
1989
|
+
export const ConversationUserData_ConvoData = new ConversationUserData_ConvoData$Type();
|
1990
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
1991
|
+
class Participant$Type extends MessageType<Participant> {
|
1992
|
+
constructor() {
|
1993
|
+
super("devvit.plugin.redditapi.newmodmail.Participant", [
|
1994
|
+
{ no: 1, name: "is_mod", kind: "message", T: () => BoolValue },
|
1995
|
+
{ no: 2, name: "is_admin", kind: "message", T: () => BoolValue },
|
1996
|
+
{ no: 3, name: "name", kind: "message", T: () => StringValue },
|
1997
|
+
{ no: 4, name: "is_op", kind: "message", T: () => BoolValue },
|
1998
|
+
{ no: 5, name: "is_participant", kind: "message", T: () => BoolValue },
|
1999
|
+
{ no: 6, name: "is_approved", kind: "message", T: () => BoolValue },
|
2000
|
+
{ no: 7, name: "is_hidden", kind: "message", T: () => BoolValue },
|
2001
|
+
{ no: 8, name: "id", kind: "message", T: () => Int64Value },
|
2002
|
+
{ no: 9, name: "is_deleted", kind: "message", T: () => BoolValue }
|
2003
|
+
]);
|
2004
|
+
}
|
2005
|
+
create(value?: PartialMessage<Participant>): Participant {
|
2006
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
2007
|
+
if (value !== undefined)
|
2008
|
+
reflectionMergePartial<Participant>(this, message, value);
|
2009
|
+
return message;
|
2010
|
+
}
|
2011
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Participant): Participant {
|
2012
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
2013
|
+
while (reader.pos < end) {
|
2014
|
+
let [fieldNo, wireType] = reader.tag();
|
2015
|
+
switch (fieldNo) {
|
2016
|
+
case /* google.protobuf.BoolValue is_mod */ 1:
|
2017
|
+
message.isMod = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.isMod);
|
2018
|
+
break;
|
2019
|
+
case /* google.protobuf.BoolValue is_admin */ 2:
|
2020
|
+
message.isAdmin = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.isAdmin);
|
2021
|
+
break;
|
2022
|
+
case /* google.protobuf.StringValue name */ 3:
|
2023
|
+
message.name = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.name);
|
2024
|
+
break;
|
2025
|
+
case /* google.protobuf.BoolValue is_op */ 4:
|
2026
|
+
message.isOp = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.isOp);
|
2027
|
+
break;
|
2028
|
+
case /* google.protobuf.BoolValue is_participant */ 5:
|
2029
|
+
message.isParticipant = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.isParticipant);
|
2030
|
+
break;
|
2031
|
+
case /* google.protobuf.BoolValue is_approved */ 6:
|
2032
|
+
message.isApproved = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.isApproved);
|
2033
|
+
break;
|
2034
|
+
case /* google.protobuf.BoolValue is_hidden */ 7:
|
2035
|
+
message.isHidden = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.isHidden);
|
2036
|
+
break;
|
2037
|
+
case /* google.protobuf.Int64Value id */ 8:
|
2038
|
+
message.id = Int64Value.internalBinaryRead(reader, reader.uint32(), options, message.id);
|
2039
|
+
break;
|
2040
|
+
case /* google.protobuf.BoolValue is_deleted */ 9:
|
2041
|
+
message.isDeleted = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.isDeleted);
|
2042
|
+
break;
|
2043
|
+
default:
|
2044
|
+
let u = options.readUnknownField;
|
2045
|
+
if (u === "throw")
|
2046
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
2047
|
+
let d = reader.skip(wireType);
|
2048
|
+
if (u !== false)
|
2049
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
2050
|
+
}
|
2051
|
+
}
|
2052
|
+
return message;
|
2053
|
+
}
|
2054
|
+
internalBinaryWrite(message: Participant, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
2055
|
+
/* google.protobuf.BoolValue is_mod = 1; */
|
2056
|
+
if (message.isMod)
|
2057
|
+
BoolValue.internalBinaryWrite(message.isMod, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
2058
|
+
/* google.protobuf.BoolValue is_admin = 2; */
|
2059
|
+
if (message.isAdmin)
|
2060
|
+
BoolValue.internalBinaryWrite(message.isAdmin, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
2061
|
+
/* google.protobuf.StringValue name = 3; */
|
2062
|
+
if (message.name)
|
2063
|
+
StringValue.internalBinaryWrite(message.name, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
2064
|
+
/* google.protobuf.BoolValue is_op = 4; */
|
2065
|
+
if (message.isOp)
|
2066
|
+
BoolValue.internalBinaryWrite(message.isOp, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
2067
|
+
/* google.protobuf.BoolValue is_participant = 5; */
|
2068
|
+
if (message.isParticipant)
|
2069
|
+
BoolValue.internalBinaryWrite(message.isParticipant, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
2070
|
+
/* google.protobuf.BoolValue is_approved = 6; */
|
2071
|
+
if (message.isApproved)
|
2072
|
+
BoolValue.internalBinaryWrite(message.isApproved, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
2073
|
+
/* google.protobuf.BoolValue is_hidden = 7; */
|
2074
|
+
if (message.isHidden)
|
2075
|
+
BoolValue.internalBinaryWrite(message.isHidden, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
2076
|
+
/* google.protobuf.Int64Value id = 8; */
|
2077
|
+
if (message.id)
|
2078
|
+
Int64Value.internalBinaryWrite(message.id, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
2079
|
+
/* google.protobuf.BoolValue is_deleted = 9; */
|
2080
|
+
if (message.isDeleted)
|
2081
|
+
BoolValue.internalBinaryWrite(message.isDeleted, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
2082
|
+
let u = options.writeUnknownFields;
|
2083
|
+
if (u !== false)
|
2084
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
2085
|
+
return writer;
|
2086
|
+
}
|
2087
|
+
}
|
2088
|
+
/**
|
2089
|
+
* @generated MessageType for protobuf message devvit.plugin.redditapi.newmodmail.Participant
|
2090
|
+
*/
|
2091
|
+
export const Participant = new Participant$Type();
|
2092
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
2093
|
+
class ModActionData$Type extends MessageType<ModActionData> {
|
2094
|
+
constructor() {
|
2095
|
+
super("devvit.plugin.redditapi.newmodmail.ModActionData", [
|
2096
|
+
{ no: 1, name: "date", kind: "message", T: () => StringValue },
|
2097
|
+
{ no: 2, name: "action_type_id", kind: "message", T: () => Int32Value },
|
2098
|
+
{ no: 3, name: "id", kind: "message", T: () => StringValue },
|
2099
|
+
{ no: 4, name: "author", kind: "message", T: () => ModActionData_ModActionAuthor }
|
2100
|
+
]);
|
2101
|
+
}
|
2102
|
+
create(value?: PartialMessage<ModActionData>): ModActionData {
|
2103
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
2104
|
+
if (value !== undefined)
|
2105
|
+
reflectionMergePartial<ModActionData>(this, message, value);
|
2106
|
+
return message;
|
2107
|
+
}
|
2108
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ModActionData): ModActionData {
|
2109
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
2110
|
+
while (reader.pos < end) {
|
2111
|
+
let [fieldNo, wireType] = reader.tag();
|
2112
|
+
switch (fieldNo) {
|
2113
|
+
case /* google.protobuf.StringValue date */ 1:
|
2114
|
+
message.date = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.date);
|
2115
|
+
break;
|
2116
|
+
case /* google.protobuf.Int32Value action_type_id */ 2:
|
2117
|
+
message.actionTypeId = Int32Value.internalBinaryRead(reader, reader.uint32(), options, message.actionTypeId);
|
2118
|
+
break;
|
2119
|
+
case /* google.protobuf.StringValue id */ 3:
|
2120
|
+
message.id = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.id);
|
2121
|
+
break;
|
2122
|
+
case /* devvit.plugin.redditapi.newmodmail.ModActionData.ModActionAuthor author */ 4:
|
2123
|
+
message.author = ModActionData_ModActionAuthor.internalBinaryRead(reader, reader.uint32(), options, message.author);
|
2124
|
+
break;
|
2125
|
+
default:
|
2126
|
+
let u = options.readUnknownField;
|
2127
|
+
if (u === "throw")
|
2128
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
2129
|
+
let d = reader.skip(wireType);
|
2130
|
+
if (u !== false)
|
2131
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
2132
|
+
}
|
2133
|
+
}
|
2134
|
+
return message;
|
2135
|
+
}
|
2136
|
+
internalBinaryWrite(message: ModActionData, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
2137
|
+
/* google.protobuf.StringValue date = 1; */
|
2138
|
+
if (message.date)
|
2139
|
+
StringValue.internalBinaryWrite(message.date, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
2140
|
+
/* google.protobuf.Int32Value action_type_id = 2; */
|
2141
|
+
if (message.actionTypeId)
|
2142
|
+
Int32Value.internalBinaryWrite(message.actionTypeId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
2143
|
+
/* google.protobuf.StringValue id = 3; */
|
2144
|
+
if (message.id)
|
2145
|
+
StringValue.internalBinaryWrite(message.id, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
2146
|
+
/* devvit.plugin.redditapi.newmodmail.ModActionData.ModActionAuthor author = 4; */
|
2147
|
+
if (message.author)
|
2148
|
+
ModActionData_ModActionAuthor.internalBinaryWrite(message.author, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
2149
|
+
let u = options.writeUnknownFields;
|
2150
|
+
if (u !== false)
|
2151
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
2152
|
+
return writer;
|
2153
|
+
}
|
2154
|
+
}
|
2155
|
+
/**
|
2156
|
+
* @generated MessageType for protobuf message devvit.plugin.redditapi.newmodmail.ModActionData
|
2157
|
+
*/
|
2158
|
+
export const ModActionData = new ModActionData$Type();
|
2159
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
2160
|
+
class ModActionData_ModActionAuthor$Type extends MessageType<ModActionData_ModActionAuthor> {
|
2161
|
+
constructor() {
|
2162
|
+
super("devvit.plugin.redditapi.newmodmail.ModActionData.ModActionAuthor", [
|
2163
|
+
{ no: 1, name: "is_mod", kind: "message", T: () => BoolValue },
|
2164
|
+
{ no: 2, name: "is_admin", kind: "message", T: () => BoolValue },
|
2165
|
+
{ no: 3, name: "name", kind: "message", T: () => StringValue },
|
2166
|
+
{ no: 4, name: "is_hidden", kind: "message", T: () => BoolValue },
|
2167
|
+
{ no: 5, name: "id", kind: "message", T: () => Int64Value },
|
2168
|
+
{ no: 6, name: "is_deleted", kind: "message", T: () => BoolValue }
|
2169
|
+
]);
|
2170
|
+
}
|
2171
|
+
create(value?: PartialMessage<ModActionData_ModActionAuthor>): ModActionData_ModActionAuthor {
|
2172
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
2173
|
+
if (value !== undefined)
|
2174
|
+
reflectionMergePartial<ModActionData_ModActionAuthor>(this, message, value);
|
2175
|
+
return message;
|
2176
|
+
}
|
2177
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ModActionData_ModActionAuthor): ModActionData_ModActionAuthor {
|
2178
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
2179
|
+
while (reader.pos < end) {
|
2180
|
+
let [fieldNo, wireType] = reader.tag();
|
2181
|
+
switch (fieldNo) {
|
2182
|
+
case /* google.protobuf.BoolValue is_mod */ 1:
|
2183
|
+
message.isMod = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.isMod);
|
2184
|
+
break;
|
2185
|
+
case /* google.protobuf.BoolValue is_admin */ 2:
|
2186
|
+
message.isAdmin = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.isAdmin);
|
2187
|
+
break;
|
2188
|
+
case /* google.protobuf.StringValue name */ 3:
|
2189
|
+
message.name = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.name);
|
2190
|
+
break;
|
2191
|
+
case /* google.protobuf.BoolValue is_hidden */ 4:
|
2192
|
+
message.isHidden = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.isHidden);
|
2193
|
+
break;
|
2194
|
+
case /* google.protobuf.Int64Value id */ 5:
|
2195
|
+
message.id = Int64Value.internalBinaryRead(reader, reader.uint32(), options, message.id);
|
2196
|
+
break;
|
2197
|
+
case /* google.protobuf.BoolValue is_deleted */ 6:
|
2198
|
+
message.isDeleted = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.isDeleted);
|
2199
|
+
break;
|
2200
|
+
default:
|
2201
|
+
let u = options.readUnknownField;
|
2202
|
+
if (u === "throw")
|
2203
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
2204
|
+
let d = reader.skip(wireType);
|
2205
|
+
if (u !== false)
|
2206
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
2207
|
+
}
|
2208
|
+
}
|
2209
|
+
return message;
|
2210
|
+
}
|
2211
|
+
internalBinaryWrite(message: ModActionData_ModActionAuthor, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
2212
|
+
/* google.protobuf.BoolValue is_mod = 1; */
|
2213
|
+
if (message.isMod)
|
2214
|
+
BoolValue.internalBinaryWrite(message.isMod, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
2215
|
+
/* google.protobuf.BoolValue is_admin = 2; */
|
2216
|
+
if (message.isAdmin)
|
2217
|
+
BoolValue.internalBinaryWrite(message.isAdmin, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
2218
|
+
/* google.protobuf.StringValue name = 3; */
|
2219
|
+
if (message.name)
|
2220
|
+
StringValue.internalBinaryWrite(message.name, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
2221
|
+
/* google.protobuf.BoolValue is_hidden = 4; */
|
2222
|
+
if (message.isHidden)
|
2223
|
+
BoolValue.internalBinaryWrite(message.isHidden, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
2224
|
+
/* google.protobuf.Int64Value id = 5; */
|
2225
|
+
if (message.id)
|
2226
|
+
Int64Value.internalBinaryWrite(message.id, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
2227
|
+
/* google.protobuf.BoolValue is_deleted = 6; */
|
2228
|
+
if (message.isDeleted)
|
2229
|
+
BoolValue.internalBinaryWrite(message.isDeleted, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
2230
|
+
let u = options.writeUnknownFields;
|
2231
|
+
if (u !== false)
|
2232
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
2233
|
+
return writer;
|
2234
|
+
}
|
2235
|
+
}
|
2236
|
+
/**
|
2237
|
+
* @generated MessageType for protobuf message devvit.plugin.redditapi.newmodmail.ModActionData.ModActionAuthor
|
2238
|
+
*/
|
2239
|
+
export const ModActionData_ModActionAuthor = new ModActionData_ModActionAuthor$Type();
|
2240
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
2241
|
+
class BulkReadConversationsRequest$Type extends MessageType<BulkReadConversationsRequest> {
|
2242
|
+
constructor() {
|
2243
|
+
super("devvit.plugin.redditapi.newmodmail.BulkReadConversationsRequest", [
|
2244
|
+
{ no: 1, name: "entity", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
2245
|
+
{ no: 2, name: "state", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
2246
|
+
]);
|
2247
|
+
}
|
2248
|
+
create(value?: PartialMessage<BulkReadConversationsRequest>): BulkReadConversationsRequest {
|
2249
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
2250
|
+
message.entity = "";
|
2251
|
+
message.state = "";
|
2252
|
+
if (value !== undefined)
|
2253
|
+
reflectionMergePartial<BulkReadConversationsRequest>(this, message, value);
|
2254
|
+
return message;
|
2255
|
+
}
|
2256
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BulkReadConversationsRequest): BulkReadConversationsRequest {
|
2257
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
2258
|
+
while (reader.pos < end) {
|
2259
|
+
let [fieldNo, wireType] = reader.tag();
|
2260
|
+
switch (fieldNo) {
|
2261
|
+
case /* string entity */ 1:
|
2262
|
+
message.entity = reader.string();
|
2263
|
+
break;
|
2264
|
+
case /* string state */ 2:
|
2265
|
+
message.state = reader.string();
|
2266
|
+
break;
|
2267
|
+
default:
|
2268
|
+
let u = options.readUnknownField;
|
2269
|
+
if (u === "throw")
|
2270
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
2271
|
+
let d = reader.skip(wireType);
|
2272
|
+
if (u !== false)
|
2273
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
2274
|
+
}
|
2275
|
+
}
|
2276
|
+
return message;
|
2277
|
+
}
|
2278
|
+
internalBinaryWrite(message: BulkReadConversationsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
2279
|
+
/* string entity = 1; */
|
2280
|
+
if (message.entity !== "")
|
2281
|
+
writer.tag(1, WireType.LengthDelimited).string(message.entity);
|
2282
|
+
/* string state = 2; */
|
2283
|
+
if (message.state !== "")
|
2284
|
+
writer.tag(2, WireType.LengthDelimited).string(message.state);
|
2285
|
+
let u = options.writeUnknownFields;
|
2286
|
+
if (u !== false)
|
2287
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
2288
|
+
return writer;
|
2289
|
+
}
|
2290
|
+
}
|
2291
|
+
/**
|
2292
|
+
* @generated MessageType for protobuf message devvit.plugin.redditapi.newmodmail.BulkReadConversationsRequest
|
2293
|
+
*/
|
2294
|
+
export const BulkReadConversationsRequest = new BulkReadConversationsRequest$Type();
|
2295
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
2296
|
+
class GetConversationsRequest$Type extends MessageType<GetConversationsRequest> {
|
2297
|
+
constructor() {
|
2298
|
+
super("devvit.plugin.redditapi.newmodmail.GetConversationsRequest", [
|
2299
|
+
{ no: 1, name: "after", kind: "message", T: () => StringValue },
|
2300
|
+
{ no: 2, name: "entity", kind: "message", T: () => StringValue },
|
2301
|
+
{ no: 3, name: "limit", kind: "message", T: () => Int32Value },
|
2302
|
+
{ no: 4, name: "sort", kind: "message", T: () => StringValue },
|
2303
|
+
{ no: 5, name: "state", kind: "message", T: () => StringValue }
|
2304
|
+
]);
|
2305
|
+
}
|
2306
|
+
create(value?: PartialMessage<GetConversationsRequest>): GetConversationsRequest {
|
2307
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
2308
|
+
if (value !== undefined)
|
2309
|
+
reflectionMergePartial<GetConversationsRequest>(this, message, value);
|
2310
|
+
return message;
|
2311
|
+
}
|
2312
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetConversationsRequest): GetConversationsRequest {
|
2313
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
2314
|
+
while (reader.pos < end) {
|
2315
|
+
let [fieldNo, wireType] = reader.tag();
|
2316
|
+
switch (fieldNo) {
|
2317
|
+
case /* google.protobuf.StringValue after */ 1:
|
2318
|
+
message.after = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.after);
|
2319
|
+
break;
|
2320
|
+
case /* google.protobuf.StringValue entity */ 2:
|
2321
|
+
message.entity = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.entity);
|
2322
|
+
break;
|
2323
|
+
case /* google.protobuf.Int32Value limit */ 3:
|
2324
|
+
message.limit = Int32Value.internalBinaryRead(reader, reader.uint32(), options, message.limit);
|
2325
|
+
break;
|
2326
|
+
case /* google.protobuf.StringValue sort */ 4:
|
2327
|
+
message.sort = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.sort);
|
2328
|
+
break;
|
2329
|
+
case /* google.protobuf.StringValue state */ 5:
|
2330
|
+
message.state = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.state);
|
2331
|
+
break;
|
2332
|
+
default:
|
2333
|
+
let u = options.readUnknownField;
|
2334
|
+
if (u === "throw")
|
2335
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
2336
|
+
let d = reader.skip(wireType);
|
2337
|
+
if (u !== false)
|
2338
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
2339
|
+
}
|
2340
|
+
}
|
2341
|
+
return message;
|
2342
|
+
}
|
2343
|
+
internalBinaryWrite(message: GetConversationsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
2344
|
+
/* google.protobuf.StringValue after = 1; */
|
2345
|
+
if (message.after)
|
2346
|
+
StringValue.internalBinaryWrite(message.after, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
2347
|
+
/* google.protobuf.StringValue entity = 2; */
|
2348
|
+
if (message.entity)
|
2349
|
+
StringValue.internalBinaryWrite(message.entity, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
2350
|
+
/* google.protobuf.Int32Value limit = 3; */
|
2351
|
+
if (message.limit)
|
2352
|
+
Int32Value.internalBinaryWrite(message.limit, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
2353
|
+
/* google.protobuf.StringValue sort = 4; */
|
2354
|
+
if (message.sort)
|
2355
|
+
StringValue.internalBinaryWrite(message.sort, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
2356
|
+
/* google.protobuf.StringValue state = 5; */
|
2357
|
+
if (message.state)
|
2358
|
+
StringValue.internalBinaryWrite(message.state, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
2359
|
+
let u = options.writeUnknownFields;
|
2360
|
+
if (u !== false)
|
2361
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
2362
|
+
return writer;
|
2363
|
+
}
|
2364
|
+
}
|
2365
|
+
/**
|
2366
|
+
* @generated MessageType for protobuf message devvit.plugin.redditapi.newmodmail.GetConversationsRequest
|
2367
|
+
*/
|
2368
|
+
export const GetConversationsRequest = new GetConversationsRequest$Type();
|
2369
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
2370
|
+
class CreateConversationRequest$Type extends MessageType<CreateConversationRequest> {
|
2371
|
+
constructor() {
|
2372
|
+
super("devvit.plugin.redditapi.newmodmail.CreateConversationRequest", [
|
2373
|
+
{ no: 1, name: "body", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
2374
|
+
{ no: 2, name: "is_author_hidden", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
2375
|
+
{ no: 3, name: "sr_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
2376
|
+
{ no: 4, name: "subject", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
2377
|
+
{ no: 5, name: "to", kind: "message", T: () => StringValue }
|
2378
|
+
]);
|
2379
|
+
}
|
2380
|
+
create(value?: PartialMessage<CreateConversationRequest>): CreateConversationRequest {
|
2381
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
2382
|
+
message.body = "";
|
2383
|
+
message.isAuthorHidden = false;
|
2384
|
+
message.srName = "";
|
2385
|
+
message.subject = "";
|
2386
|
+
if (value !== undefined)
|
2387
|
+
reflectionMergePartial<CreateConversationRequest>(this, message, value);
|
2388
|
+
return message;
|
2389
|
+
}
|
2390
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateConversationRequest): CreateConversationRequest {
|
2391
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
2392
|
+
while (reader.pos < end) {
|
2393
|
+
let [fieldNo, wireType] = reader.tag();
|
2394
|
+
switch (fieldNo) {
|
2395
|
+
case /* string body */ 1:
|
2396
|
+
message.body = reader.string();
|
2397
|
+
break;
|
2398
|
+
case /* bool is_author_hidden */ 2:
|
2399
|
+
message.isAuthorHidden = reader.bool();
|
2400
|
+
break;
|
2401
|
+
case /* string sr_name */ 3:
|
2402
|
+
message.srName = reader.string();
|
2403
|
+
break;
|
2404
|
+
case /* string subject */ 4:
|
2405
|
+
message.subject = reader.string();
|
2406
|
+
break;
|
2407
|
+
case /* google.protobuf.StringValue to */ 5:
|
2408
|
+
message.to = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.to);
|
2409
|
+
break;
|
2410
|
+
default:
|
2411
|
+
let u = options.readUnknownField;
|
2412
|
+
if (u === "throw")
|
2413
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
2414
|
+
let d = reader.skip(wireType);
|
2415
|
+
if (u !== false)
|
2416
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
2417
|
+
}
|
2418
|
+
}
|
2419
|
+
return message;
|
2420
|
+
}
|
2421
|
+
internalBinaryWrite(message: CreateConversationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
2422
|
+
/* string body = 1; */
|
2423
|
+
if (message.body !== "")
|
2424
|
+
writer.tag(1, WireType.LengthDelimited).string(message.body);
|
2425
|
+
/* bool is_author_hidden = 2; */
|
2426
|
+
if (message.isAuthorHidden !== false)
|
2427
|
+
writer.tag(2, WireType.Varint).bool(message.isAuthorHidden);
|
2428
|
+
/* string sr_name = 3; */
|
2429
|
+
if (message.srName !== "")
|
2430
|
+
writer.tag(3, WireType.LengthDelimited).string(message.srName);
|
2431
|
+
/* string subject = 4; */
|
2432
|
+
if (message.subject !== "")
|
2433
|
+
writer.tag(4, WireType.LengthDelimited).string(message.subject);
|
2434
|
+
/* google.protobuf.StringValue to = 5; */
|
2435
|
+
if (message.to)
|
2436
|
+
StringValue.internalBinaryWrite(message.to, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
2437
|
+
let u = options.writeUnknownFields;
|
2438
|
+
if (u !== false)
|
2439
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
2440
|
+
return writer;
|
2441
|
+
}
|
2442
|
+
}
|
2443
|
+
/**
|
2444
|
+
* @generated MessageType for protobuf message devvit.plugin.redditapi.newmodmail.CreateConversationRequest
|
2445
|
+
*/
|
2446
|
+
export const CreateConversationRequest = new CreateConversationRequest$Type();
|
2447
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
2448
|
+
class GetConversationRequest$Type extends MessageType<GetConversationRequest> {
|
2449
|
+
constructor() {
|
2450
|
+
super("devvit.plugin.redditapi.newmodmail.GetConversationRequest", [
|
2451
|
+
{ no: 1, name: "conversation_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
2452
|
+
{ no: 2, name: "mark_read", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
2453
|
+
]);
|
2454
|
+
}
|
2455
|
+
create(value?: PartialMessage<GetConversationRequest>): GetConversationRequest {
|
2456
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
2457
|
+
message.conversationId = "";
|
2458
|
+
message.markRead = false;
|
2459
|
+
if (value !== undefined)
|
2460
|
+
reflectionMergePartial<GetConversationRequest>(this, message, value);
|
2461
|
+
return message;
|
2462
|
+
}
|
2463
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetConversationRequest): GetConversationRequest {
|
2464
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
2465
|
+
while (reader.pos < end) {
|
2466
|
+
let [fieldNo, wireType] = reader.tag();
|
2467
|
+
switch (fieldNo) {
|
2468
|
+
case /* string conversation_id */ 1:
|
2469
|
+
message.conversationId = reader.string();
|
2470
|
+
break;
|
2471
|
+
case /* bool mark_read */ 2:
|
2472
|
+
message.markRead = reader.bool();
|
2473
|
+
break;
|
2474
|
+
default:
|
2475
|
+
let u = options.readUnknownField;
|
2476
|
+
if (u === "throw")
|
2477
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
2478
|
+
let d = reader.skip(wireType);
|
2479
|
+
if (u !== false)
|
2480
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
2481
|
+
}
|
2482
|
+
}
|
2483
|
+
return message;
|
2484
|
+
}
|
2485
|
+
internalBinaryWrite(message: GetConversationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
2486
|
+
/* string conversation_id = 1; */
|
2487
|
+
if (message.conversationId !== "")
|
2488
|
+
writer.tag(1, WireType.LengthDelimited).string(message.conversationId);
|
2489
|
+
/* bool mark_read = 2; */
|
2490
|
+
if (message.markRead !== false)
|
2491
|
+
writer.tag(2, WireType.Varint).bool(message.markRead);
|
2492
|
+
let u = options.writeUnknownFields;
|
2493
|
+
if (u !== false)
|
2494
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
2495
|
+
return writer;
|
2496
|
+
}
|
2497
|
+
}
|
2498
|
+
/**
|
2499
|
+
* @generated MessageType for protobuf message devvit.plugin.redditapi.newmodmail.GetConversationRequest
|
2500
|
+
*/
|
2501
|
+
export const GetConversationRequest = new GetConversationRequest$Type();
|
2502
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
2503
|
+
class CreateConversationMessageRequest$Type extends MessageType<CreateConversationMessageRequest> {
|
2504
|
+
constructor() {
|
2505
|
+
super("devvit.plugin.redditapi.newmodmail.CreateConversationMessageRequest", [
|
2506
|
+
{ no: 1, name: "body", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
2507
|
+
{ no: 2, name: "is_author_hidden", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
2508
|
+
{ no: 3, name: "is_internal", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
2509
|
+
{ no: 4, name: "conversation_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
2510
|
+
]);
|
2511
|
+
}
|
2512
|
+
create(value?: PartialMessage<CreateConversationMessageRequest>): CreateConversationMessageRequest {
|
2513
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
2514
|
+
message.body = "";
|
2515
|
+
message.isAuthorHidden = false;
|
2516
|
+
message.isInternal = false;
|
2517
|
+
message.conversationId = "";
|
2518
|
+
if (value !== undefined)
|
2519
|
+
reflectionMergePartial<CreateConversationMessageRequest>(this, message, value);
|
2520
|
+
return message;
|
2521
|
+
}
|
2522
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateConversationMessageRequest): CreateConversationMessageRequest {
|
2523
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
2524
|
+
while (reader.pos < end) {
|
2525
|
+
let [fieldNo, wireType] = reader.tag();
|
2526
|
+
switch (fieldNo) {
|
2527
|
+
case /* string body */ 1:
|
2528
|
+
message.body = reader.string();
|
2529
|
+
break;
|
2530
|
+
case /* bool is_author_hidden */ 2:
|
2531
|
+
message.isAuthorHidden = reader.bool();
|
2532
|
+
break;
|
2533
|
+
case /* bool is_internal */ 3:
|
2534
|
+
message.isInternal = reader.bool();
|
2535
|
+
break;
|
2536
|
+
case /* string conversation_id */ 4:
|
2537
|
+
message.conversationId = reader.string();
|
2538
|
+
break;
|
2539
|
+
default:
|
2540
|
+
let u = options.readUnknownField;
|
2541
|
+
if (u === "throw")
|
2542
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
2543
|
+
let d = reader.skip(wireType);
|
2544
|
+
if (u !== false)
|
2545
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
2546
|
+
}
|
2547
|
+
}
|
2548
|
+
return message;
|
2549
|
+
}
|
2550
|
+
internalBinaryWrite(message: CreateConversationMessageRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
2551
|
+
/* string body = 1; */
|
2552
|
+
if (message.body !== "")
|
2553
|
+
writer.tag(1, WireType.LengthDelimited).string(message.body);
|
2554
|
+
/* bool is_author_hidden = 2; */
|
2555
|
+
if (message.isAuthorHidden !== false)
|
2556
|
+
writer.tag(2, WireType.Varint).bool(message.isAuthorHidden);
|
2557
|
+
/* bool is_internal = 3; */
|
2558
|
+
if (message.isInternal !== false)
|
2559
|
+
writer.tag(3, WireType.Varint).bool(message.isInternal);
|
2560
|
+
/* string conversation_id = 4; */
|
2561
|
+
if (message.conversationId !== "")
|
2562
|
+
writer.tag(4, WireType.LengthDelimited).string(message.conversationId);
|
2563
|
+
let u = options.writeUnknownFields;
|
2564
|
+
if (u !== false)
|
2565
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
2566
|
+
return writer;
|
2567
|
+
}
|
2568
|
+
}
|
2569
|
+
/**
|
2570
|
+
* @generated MessageType for protobuf message devvit.plugin.redditapi.newmodmail.CreateConversationMessageRequest
|
2571
|
+
*/
|
2572
|
+
export const CreateConversationMessageRequest = new CreateConversationMessageRequest$Type();
|
2573
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
2574
|
+
class BasicConversationRequest$Type extends MessageType<BasicConversationRequest> {
|
2575
|
+
constructor() {
|
2576
|
+
super("devvit.plugin.redditapi.newmodmail.BasicConversationRequest", [
|
2577
|
+
{ no: 1, name: "conversation_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
2578
|
+
]);
|
2579
|
+
}
|
2580
|
+
create(value?: PartialMessage<BasicConversationRequest>): BasicConversationRequest {
|
2581
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
2582
|
+
message.conversationId = "";
|
2583
|
+
if (value !== undefined)
|
2584
|
+
reflectionMergePartial<BasicConversationRequest>(this, message, value);
|
2585
|
+
return message;
|
2586
|
+
}
|
2587
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BasicConversationRequest): BasicConversationRequest {
|
2588
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
2589
|
+
while (reader.pos < end) {
|
2590
|
+
let [fieldNo, wireType] = reader.tag();
|
2591
|
+
switch (fieldNo) {
|
2592
|
+
case /* string conversation_id */ 1:
|
2593
|
+
message.conversationId = reader.string();
|
2594
|
+
break;
|
2595
|
+
default:
|
2596
|
+
let u = options.readUnknownField;
|
2597
|
+
if (u === "throw")
|
2598
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
2599
|
+
let d = reader.skip(wireType);
|
2600
|
+
if (u !== false)
|
2601
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
2602
|
+
}
|
2603
|
+
}
|
2604
|
+
return message;
|
2605
|
+
}
|
2606
|
+
internalBinaryWrite(message: BasicConversationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
2607
|
+
/* string conversation_id = 1; */
|
2608
|
+
if (message.conversationId !== "")
|
2609
|
+
writer.tag(1, WireType.LengthDelimited).string(message.conversationId);
|
2610
|
+
let u = options.writeUnknownFields;
|
2611
|
+
if (u !== false)
|
2612
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
2613
|
+
return writer;
|
2614
|
+
}
|
2615
|
+
}
|
2616
|
+
/**
|
2617
|
+
* @generated MessageType for protobuf message devvit.plugin.redditapi.newmodmail.BasicConversationRequest
|
2618
|
+
*/
|
2619
|
+
export const BasicConversationRequest = new BasicConversationRequest$Type();
|
2620
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
2621
|
+
class BasicConversationsRequest$Type extends MessageType<BasicConversationsRequest> {
|
2622
|
+
constructor() {
|
2623
|
+
super("devvit.plugin.redditapi.newmodmail.BasicConversationsRequest", [
|
2624
|
+
{ no: 1, name: "conversation_ids", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
2625
|
+
]);
|
2626
|
+
}
|
2627
|
+
create(value?: PartialMessage<BasicConversationsRequest>): BasicConversationsRequest {
|
2628
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
2629
|
+
message.conversationIds = "";
|
2630
|
+
if (value !== undefined)
|
2631
|
+
reflectionMergePartial<BasicConversationsRequest>(this, message, value);
|
2632
|
+
return message;
|
2633
|
+
}
|
2634
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BasicConversationsRequest): BasicConversationsRequest {
|
2635
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
2636
|
+
while (reader.pos < end) {
|
2637
|
+
let [fieldNo, wireType] = reader.tag();
|
2638
|
+
switch (fieldNo) {
|
2639
|
+
case /* string conversation_ids */ 1:
|
2640
|
+
message.conversationIds = reader.string();
|
2641
|
+
break;
|
2642
|
+
default:
|
2643
|
+
let u = options.readUnknownField;
|
2644
|
+
if (u === "throw")
|
2645
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
2646
|
+
let d = reader.skip(wireType);
|
2647
|
+
if (u !== false)
|
2648
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
2649
|
+
}
|
2650
|
+
}
|
2651
|
+
return message;
|
2652
|
+
}
|
2653
|
+
internalBinaryWrite(message: BasicConversationsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
2654
|
+
/* string conversation_ids = 1; */
|
2655
|
+
if (message.conversationIds !== "")
|
2656
|
+
writer.tag(1, WireType.LengthDelimited).string(message.conversationIds);
|
2657
|
+
let u = options.writeUnknownFields;
|
2658
|
+
if (u !== false)
|
2659
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
2660
|
+
return writer;
|
2661
|
+
}
|
2662
|
+
}
|
2663
|
+
/**
|
2664
|
+
* @generated MessageType for protobuf message devvit.plugin.redditapi.newmodmail.BasicConversationsRequest
|
2665
|
+
*/
|
2666
|
+
export const BasicConversationsRequest = new BasicConversationsRequest$Type();
|
2667
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
2668
|
+
class MuteConversationRequest$Type extends MessageType<MuteConversationRequest> {
|
2669
|
+
constructor() {
|
2670
|
+
super("devvit.plugin.redditapi.newmodmail.MuteConversationRequest", [
|
2671
|
+
{ no: 1, name: "conversation_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
2672
|
+
{ no: 2, name: "num_hours", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
|
2673
|
+
]);
|
2674
|
+
}
|
2675
|
+
create(value?: PartialMessage<MuteConversationRequest>): MuteConversationRequest {
|
2676
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
2677
|
+
message.conversationId = "";
|
2678
|
+
message.numHours = 0;
|
2679
|
+
if (value !== undefined)
|
2680
|
+
reflectionMergePartial<MuteConversationRequest>(this, message, value);
|
2681
|
+
return message;
|
2682
|
+
}
|
2683
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MuteConversationRequest): MuteConversationRequest {
|
2684
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
2685
|
+
while (reader.pos < end) {
|
2686
|
+
let [fieldNo, wireType] = reader.tag();
|
2687
|
+
switch (fieldNo) {
|
2688
|
+
case /* string conversation_id */ 1:
|
2689
|
+
message.conversationId = reader.string();
|
2690
|
+
break;
|
2691
|
+
case /* int32 num_hours */ 2:
|
2692
|
+
message.numHours = reader.int32();
|
2693
|
+
break;
|
2694
|
+
default:
|
2695
|
+
let u = options.readUnknownField;
|
2696
|
+
if (u === "throw")
|
2697
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
2698
|
+
let d = reader.skip(wireType);
|
2699
|
+
if (u !== false)
|
2700
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
2701
|
+
}
|
2702
|
+
}
|
2703
|
+
return message;
|
2704
|
+
}
|
2705
|
+
internalBinaryWrite(message: MuteConversationRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
2706
|
+
/* string conversation_id = 1; */
|
2707
|
+
if (message.conversationId !== "")
|
2708
|
+
writer.tag(1, WireType.LengthDelimited).string(message.conversationId);
|
2709
|
+
/* int32 num_hours = 2; */
|
2710
|
+
if (message.numHours !== 0)
|
2711
|
+
writer.tag(2, WireType.Varint).int32(message.numHours);
|
2712
|
+
let u = options.writeUnknownFields;
|
2713
|
+
if (u !== false)
|
2714
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
2715
|
+
return writer;
|
2716
|
+
}
|
2717
|
+
}
|
2718
|
+
/**
|
2719
|
+
* @generated MessageType for protobuf message devvit.plugin.redditapi.newmodmail.MuteConversationRequest
|
2720
|
+
*/
|
2721
|
+
export const MuteConversationRequest = new MuteConversationRequest$Type();
|
2722
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
2723
|
+
class TempBanRequest$Type extends MessageType<TempBanRequest> {
|
2724
|
+
constructor() {
|
2725
|
+
super("devvit.plugin.redditapi.newmodmail.TempBanRequest", [
|
2726
|
+
{ no: 1, name: "conversation_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
2727
|
+
{ no: 2, name: "duration", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
|
2728
|
+
]);
|
2729
|
+
}
|
2730
|
+
create(value?: PartialMessage<TempBanRequest>): TempBanRequest {
|
2731
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
2732
|
+
message.conversationId = "";
|
2733
|
+
message.duration = 0;
|
2734
|
+
if (value !== undefined)
|
2735
|
+
reflectionMergePartial<TempBanRequest>(this, message, value);
|
2736
|
+
return message;
|
2737
|
+
}
|
2738
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TempBanRequest): TempBanRequest {
|
2739
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
2740
|
+
while (reader.pos < end) {
|
2741
|
+
let [fieldNo, wireType] = reader.tag();
|
2742
|
+
switch (fieldNo) {
|
2743
|
+
case /* string conversation_id */ 1:
|
2744
|
+
message.conversationId = reader.string();
|
2745
|
+
break;
|
2746
|
+
case /* int32 duration */ 2:
|
2747
|
+
message.duration = reader.int32();
|
2748
|
+
break;
|
2749
|
+
default:
|
2750
|
+
let u = options.readUnknownField;
|
2751
|
+
if (u === "throw")
|
2752
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
2753
|
+
let d = reader.skip(wireType);
|
2754
|
+
if (u !== false)
|
2755
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
2756
|
+
}
|
2757
|
+
}
|
2758
|
+
return message;
|
2759
|
+
}
|
2760
|
+
internalBinaryWrite(message: TempBanRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
2761
|
+
/* string conversation_id = 1; */
|
2762
|
+
if (message.conversationId !== "")
|
2763
|
+
writer.tag(1, WireType.LengthDelimited).string(message.conversationId);
|
2764
|
+
/* int32 duration = 2; */
|
2765
|
+
if (message.duration !== 0)
|
2766
|
+
writer.tag(2, WireType.Varint).int32(message.duration);
|
2767
|
+
let u = options.writeUnknownFields;
|
2768
|
+
if (u !== false)
|
2769
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
2770
|
+
return writer;
|
2771
|
+
}
|
2772
|
+
}
|
2773
|
+
/**
|
2774
|
+
* @generated MessageType for protobuf message devvit.plugin.redditapi.newmodmail.TempBanRequest
|
2775
|
+
*/
|
2776
|
+
export const TempBanRequest = new TempBanRequest$Type();
|
2777
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
2778
|
+
class BulkReadConversationsResponse$Type extends MessageType<BulkReadConversationsResponse> {
|
2779
|
+
constructor() {
|
2780
|
+
super("devvit.plugin.redditapi.newmodmail.BulkReadConversationsResponse", [
|
2781
|
+
{ no: 1, name: "conversation_ids", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => StringValue }
|
2782
|
+
]);
|
2783
|
+
}
|
2784
|
+
create(value?: PartialMessage<BulkReadConversationsResponse>): BulkReadConversationsResponse {
|
2785
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
2786
|
+
message.conversationIds = [];
|
2787
|
+
if (value !== undefined)
|
2788
|
+
reflectionMergePartial<BulkReadConversationsResponse>(this, message, value);
|
2789
|
+
return message;
|
2790
|
+
}
|
2791
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BulkReadConversationsResponse): BulkReadConversationsResponse {
|
2792
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
2793
|
+
while (reader.pos < end) {
|
2794
|
+
let [fieldNo, wireType] = reader.tag();
|
2795
|
+
switch (fieldNo) {
|
2796
|
+
case /* repeated google.protobuf.StringValue conversation_ids */ 1:
|
2797
|
+
message.conversationIds.push(StringValue.internalBinaryRead(reader, reader.uint32(), options));
|
2798
|
+
break;
|
2799
|
+
default:
|
2800
|
+
let u = options.readUnknownField;
|
2801
|
+
if (u === "throw")
|
2802
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
2803
|
+
let d = reader.skip(wireType);
|
2804
|
+
if (u !== false)
|
2805
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
2806
|
+
}
|
2807
|
+
}
|
2808
|
+
return message;
|
2809
|
+
}
|
2810
|
+
internalBinaryWrite(message: BulkReadConversationsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
2811
|
+
/* repeated google.protobuf.StringValue conversation_ids = 1; */
|
2812
|
+
for (let i = 0; i < message.conversationIds.length; i++)
|
2813
|
+
StringValue.internalBinaryWrite(message.conversationIds[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
2814
|
+
let u = options.writeUnknownFields;
|
2815
|
+
if (u !== false)
|
2816
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
2817
|
+
return writer;
|
2818
|
+
}
|
2819
|
+
}
|
2820
|
+
/**
|
2821
|
+
* @generated MessageType for protobuf message devvit.plugin.redditapi.newmodmail.BulkReadConversationsResponse
|
2822
|
+
*/
|
2823
|
+
export const BulkReadConversationsResponse = new BulkReadConversationsResponse$Type();
|
2824
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
2825
|
+
class GetConversationsResponse$Type extends MessageType<GetConversationsResponse> {
|
2826
|
+
constructor() {
|
2827
|
+
super("devvit.plugin.redditapi.newmodmail.GetConversationsResponse", [
|
2828
|
+
{ no: 1, name: "conversations", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => ConversationData } },
|
2829
|
+
{ no: 2, name: "messages", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => MessageData } },
|
2830
|
+
{ no: 3, name: "viewer_id", kind: "message", T: () => StringValue },
|
2831
|
+
{ no: 4, name: "conversation_ids", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => StringValue }
|
2832
|
+
]);
|
2833
|
+
}
|
2834
|
+
create(value?: PartialMessage<GetConversationsResponse>): GetConversationsResponse {
|
2835
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
2836
|
+
message.conversations = {};
|
2837
|
+
message.messages = {};
|
2838
|
+
message.conversationIds = [];
|
2839
|
+
if (value !== undefined)
|
2840
|
+
reflectionMergePartial<GetConversationsResponse>(this, message, value);
|
2841
|
+
return message;
|
2842
|
+
}
|
2843
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetConversationsResponse): GetConversationsResponse {
|
2844
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
2845
|
+
while (reader.pos < end) {
|
2846
|
+
let [fieldNo, wireType] = reader.tag();
|
2847
|
+
switch (fieldNo) {
|
2848
|
+
case /* map<string, devvit.plugin.redditapi.newmodmail.ConversationData> conversations */ 1:
|
2849
|
+
this.binaryReadMap1(message.conversations, reader, options);
|
2850
|
+
break;
|
2851
|
+
case /* map<string, devvit.plugin.redditapi.newmodmail.MessageData> messages */ 2:
|
2852
|
+
this.binaryReadMap2(message.messages, reader, options);
|
2853
|
+
break;
|
2854
|
+
case /* google.protobuf.StringValue viewer_id */ 3:
|
2855
|
+
message.viewerId = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.viewerId);
|
2856
|
+
break;
|
2857
|
+
case /* repeated google.protobuf.StringValue conversation_ids */ 4:
|
2858
|
+
message.conversationIds.push(StringValue.internalBinaryRead(reader, reader.uint32(), options));
|
2859
|
+
break;
|
2860
|
+
default:
|
2861
|
+
let u = options.readUnknownField;
|
2862
|
+
if (u === "throw")
|
2863
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
2864
|
+
let d = reader.skip(wireType);
|
2865
|
+
if (u !== false)
|
2866
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
2867
|
+
}
|
2868
|
+
}
|
2869
|
+
return message;
|
2870
|
+
}
|
2871
|
+
private binaryReadMap1(map: GetConversationsResponse["conversations"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
2872
|
+
let len = reader.uint32(), end = reader.pos + len, key: keyof GetConversationsResponse["conversations"] | undefined, val: GetConversationsResponse["conversations"][any] | undefined;
|
2873
|
+
while (reader.pos < end) {
|
2874
|
+
let [fieldNo, wireType] = reader.tag();
|
2875
|
+
switch (fieldNo) {
|
2876
|
+
case 1:
|
2877
|
+
key = reader.string();
|
2878
|
+
break;
|
2879
|
+
case 2:
|
2880
|
+
val = ConversationData.internalBinaryRead(reader, reader.uint32(), options);
|
2881
|
+
break;
|
2882
|
+
default: throw new globalThis.Error("unknown map entry field for field devvit.plugin.redditapi.newmodmail.GetConversationsResponse.conversations");
|
2883
|
+
}
|
2884
|
+
}
|
2885
|
+
map[key ?? ""] = val ?? ConversationData.create();
|
2886
|
+
}
|
2887
|
+
private binaryReadMap2(map: GetConversationsResponse["messages"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
2888
|
+
let len = reader.uint32(), end = reader.pos + len, key: keyof GetConversationsResponse["messages"] | undefined, val: GetConversationsResponse["messages"][any] | undefined;
|
2889
|
+
while (reader.pos < end) {
|
2890
|
+
let [fieldNo, wireType] = reader.tag();
|
2891
|
+
switch (fieldNo) {
|
2892
|
+
case 1:
|
2893
|
+
key = reader.string();
|
2894
|
+
break;
|
2895
|
+
case 2:
|
2896
|
+
val = MessageData.internalBinaryRead(reader, reader.uint32(), options);
|
2897
|
+
break;
|
2898
|
+
default: throw new globalThis.Error("unknown map entry field for field devvit.plugin.redditapi.newmodmail.GetConversationsResponse.messages");
|
2899
|
+
}
|
2900
|
+
}
|
2901
|
+
map[key ?? ""] = val ?? MessageData.create();
|
2902
|
+
}
|
2903
|
+
internalBinaryWrite(message: GetConversationsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
2904
|
+
/* map<string, devvit.plugin.redditapi.newmodmail.ConversationData> conversations = 1; */
|
2905
|
+
for (let k of globalThis.Object.keys(message.conversations)) {
|
2906
|
+
writer.tag(1, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
|
2907
|
+
writer.tag(2, WireType.LengthDelimited).fork();
|
2908
|
+
ConversationData.internalBinaryWrite(message.conversations[k], writer, options);
|
2909
|
+
writer.join().join();
|
2910
|
+
}
|
2911
|
+
/* map<string, devvit.plugin.redditapi.newmodmail.MessageData> messages = 2; */
|
2912
|
+
for (let k of globalThis.Object.keys(message.messages)) {
|
2913
|
+
writer.tag(2, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
|
2914
|
+
writer.tag(2, WireType.LengthDelimited).fork();
|
2915
|
+
MessageData.internalBinaryWrite(message.messages[k], writer, options);
|
2916
|
+
writer.join().join();
|
2917
|
+
}
|
2918
|
+
/* google.protobuf.StringValue viewer_id = 3; */
|
2919
|
+
if (message.viewerId)
|
2920
|
+
StringValue.internalBinaryWrite(message.viewerId, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
2921
|
+
/* repeated google.protobuf.StringValue conversation_ids = 4; */
|
2922
|
+
for (let i = 0; i < message.conversationIds.length; i++)
|
2923
|
+
StringValue.internalBinaryWrite(message.conversationIds[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
2924
|
+
let u = options.writeUnknownFields;
|
2925
|
+
if (u !== false)
|
2926
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
2927
|
+
return writer;
|
2928
|
+
}
|
2929
|
+
}
|
2930
|
+
/**
|
2931
|
+
* @generated MessageType for protobuf message devvit.plugin.redditapi.newmodmail.GetConversationsResponse
|
2932
|
+
*/
|
2933
|
+
export const GetConversationsResponse = new GetConversationsResponse$Type();
|
2934
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
2935
|
+
class CreateConversationResponse$Type extends MessageType<CreateConversationResponse> {
|
2936
|
+
constructor() {
|
2937
|
+
super("devvit.plugin.redditapi.newmodmail.CreateConversationResponse", [
|
2938
|
+
{ no: 1, name: "conversation", kind: "message", T: () => ConversationData },
|
2939
|
+
{ no: 2, name: "messages", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => MessageData } },
|
2940
|
+
{ no: 3, name: "mod_actions", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => ModActionData } },
|
2941
|
+
{ no: 4, name: "fields", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => StringValue },
|
2942
|
+
{ no: 5, name: "reason", kind: "message", T: () => StringValue },
|
2943
|
+
{ no: 6, name: "message", kind: "message", T: () => StringValue },
|
2944
|
+
{ no: 7, name: "explanation", kind: "message", T: () => StringValue },
|
2945
|
+
{ no: 8, name: "user", kind: "message", T: () => ConversationUserData }
|
2946
|
+
]);
|
2947
|
+
}
|
2948
|
+
create(value?: PartialMessage<CreateConversationResponse>): CreateConversationResponse {
|
2949
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
2950
|
+
message.messages = {};
|
2951
|
+
message.modActions = {};
|
2952
|
+
message.fields = [];
|
2953
|
+
if (value !== undefined)
|
2954
|
+
reflectionMergePartial<CreateConversationResponse>(this, message, value);
|
2955
|
+
return message;
|
2956
|
+
}
|
2957
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateConversationResponse): CreateConversationResponse {
|
2958
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
2959
|
+
while (reader.pos < end) {
|
2960
|
+
let [fieldNo, wireType] = reader.tag();
|
2961
|
+
switch (fieldNo) {
|
2962
|
+
case /* devvit.plugin.redditapi.newmodmail.ConversationData conversation */ 1:
|
2963
|
+
message.conversation = ConversationData.internalBinaryRead(reader, reader.uint32(), options, message.conversation);
|
2964
|
+
break;
|
2965
|
+
case /* map<string, devvit.plugin.redditapi.newmodmail.MessageData> messages */ 2:
|
2966
|
+
this.binaryReadMap2(message.messages, reader, options);
|
2967
|
+
break;
|
2968
|
+
case /* map<string, devvit.plugin.redditapi.newmodmail.ModActionData> mod_actions */ 3:
|
2969
|
+
this.binaryReadMap3(message.modActions, reader, options);
|
2970
|
+
break;
|
2971
|
+
case /* repeated google.protobuf.StringValue fields */ 4:
|
2972
|
+
message.fields.push(StringValue.internalBinaryRead(reader, reader.uint32(), options));
|
2973
|
+
break;
|
2974
|
+
case /* google.protobuf.StringValue reason */ 5:
|
2975
|
+
message.reason = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.reason);
|
2976
|
+
break;
|
2977
|
+
case /* google.protobuf.StringValue message */ 6:
|
2978
|
+
message.message = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.message);
|
2979
|
+
break;
|
2980
|
+
case /* google.protobuf.StringValue explanation */ 7:
|
2981
|
+
message.explanation = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.explanation);
|
2982
|
+
break;
|
2983
|
+
case /* devvit.plugin.redditapi.newmodmail.ConversationUserData user */ 8:
|
2984
|
+
message.user = ConversationUserData.internalBinaryRead(reader, reader.uint32(), options, message.user);
|
2985
|
+
break;
|
2986
|
+
default:
|
2987
|
+
let u = options.readUnknownField;
|
2988
|
+
if (u === "throw")
|
2989
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
2990
|
+
let d = reader.skip(wireType);
|
2991
|
+
if (u !== false)
|
2992
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
2993
|
+
}
|
2994
|
+
}
|
2995
|
+
return message;
|
2996
|
+
}
|
2997
|
+
private binaryReadMap2(map: CreateConversationResponse["messages"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
2998
|
+
let len = reader.uint32(), end = reader.pos + len, key: keyof CreateConversationResponse["messages"] | undefined, val: CreateConversationResponse["messages"][any] | undefined;
|
2999
|
+
while (reader.pos < end) {
|
3000
|
+
let [fieldNo, wireType] = reader.tag();
|
3001
|
+
switch (fieldNo) {
|
3002
|
+
case 1:
|
3003
|
+
key = reader.string();
|
3004
|
+
break;
|
3005
|
+
case 2:
|
3006
|
+
val = MessageData.internalBinaryRead(reader, reader.uint32(), options);
|
3007
|
+
break;
|
3008
|
+
default: throw new globalThis.Error("unknown map entry field for field devvit.plugin.redditapi.newmodmail.CreateConversationResponse.messages");
|
3009
|
+
}
|
3010
|
+
}
|
3011
|
+
map[key ?? ""] = val ?? MessageData.create();
|
3012
|
+
}
|
3013
|
+
private binaryReadMap3(map: CreateConversationResponse["modActions"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
3014
|
+
let len = reader.uint32(), end = reader.pos + len, key: keyof CreateConversationResponse["modActions"] | undefined, val: CreateConversationResponse["modActions"][any] | undefined;
|
3015
|
+
while (reader.pos < end) {
|
3016
|
+
let [fieldNo, wireType] = reader.tag();
|
3017
|
+
switch (fieldNo) {
|
3018
|
+
case 1:
|
3019
|
+
key = reader.string();
|
3020
|
+
break;
|
3021
|
+
case 2:
|
3022
|
+
val = ModActionData.internalBinaryRead(reader, reader.uint32(), options);
|
3023
|
+
break;
|
3024
|
+
default: throw new globalThis.Error("unknown map entry field for field devvit.plugin.redditapi.newmodmail.CreateConversationResponse.mod_actions");
|
3025
|
+
}
|
3026
|
+
}
|
3027
|
+
map[key ?? ""] = val ?? ModActionData.create();
|
3028
|
+
}
|
3029
|
+
internalBinaryWrite(message: CreateConversationResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
3030
|
+
/* devvit.plugin.redditapi.newmodmail.ConversationData conversation = 1; */
|
3031
|
+
if (message.conversation)
|
3032
|
+
ConversationData.internalBinaryWrite(message.conversation, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
3033
|
+
/* map<string, devvit.plugin.redditapi.newmodmail.MessageData> messages = 2; */
|
3034
|
+
for (let k of globalThis.Object.keys(message.messages)) {
|
3035
|
+
writer.tag(2, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
|
3036
|
+
writer.tag(2, WireType.LengthDelimited).fork();
|
3037
|
+
MessageData.internalBinaryWrite(message.messages[k], writer, options);
|
3038
|
+
writer.join().join();
|
3039
|
+
}
|
3040
|
+
/* map<string, devvit.plugin.redditapi.newmodmail.ModActionData> mod_actions = 3; */
|
3041
|
+
for (let k of globalThis.Object.keys(message.modActions)) {
|
3042
|
+
writer.tag(3, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
|
3043
|
+
writer.tag(2, WireType.LengthDelimited).fork();
|
3044
|
+
ModActionData.internalBinaryWrite(message.modActions[k], writer, options);
|
3045
|
+
writer.join().join();
|
3046
|
+
}
|
3047
|
+
/* repeated google.protobuf.StringValue fields = 4; */
|
3048
|
+
for (let i = 0; i < message.fields.length; i++)
|
3049
|
+
StringValue.internalBinaryWrite(message.fields[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
3050
|
+
/* google.protobuf.StringValue reason = 5; */
|
3051
|
+
if (message.reason)
|
3052
|
+
StringValue.internalBinaryWrite(message.reason, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
3053
|
+
/* google.protobuf.StringValue message = 6; */
|
3054
|
+
if (message.message)
|
3055
|
+
StringValue.internalBinaryWrite(message.message, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
3056
|
+
/* google.protobuf.StringValue explanation = 7; */
|
3057
|
+
if (message.explanation)
|
3058
|
+
StringValue.internalBinaryWrite(message.explanation, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
3059
|
+
/* devvit.plugin.redditapi.newmodmail.ConversationUserData user = 8; */
|
3060
|
+
if (message.user)
|
3061
|
+
ConversationUserData.internalBinaryWrite(message.user, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
3062
|
+
let u = options.writeUnknownFields;
|
3063
|
+
if (u !== false)
|
3064
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
3065
|
+
return writer;
|
3066
|
+
}
|
3067
|
+
}
|
3068
|
+
/**
|
3069
|
+
* @generated MessageType for protobuf message devvit.plugin.redditapi.newmodmail.CreateConversationResponse
|
3070
|
+
*/
|
3071
|
+
export const CreateConversationResponse = new CreateConversationResponse$Type();
|
3072
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
3073
|
+
class GetConversationResponse$Type extends MessageType<GetConversationResponse> {
|
3074
|
+
constructor() {
|
3075
|
+
super("devvit.plugin.redditapi.newmodmail.GetConversationResponse", [
|
3076
|
+
{ no: 1, name: "conversation", kind: "message", T: () => ConversationData },
|
3077
|
+
{ no: 2, name: "messages", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => MessageData } },
|
3078
|
+
{ no: 3, name: "mod_actions", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => ModActionData } },
|
3079
|
+
{ no: 4, name: "participant_subreddit", kind: "message", T: () => Any },
|
3080
|
+
{ no: 5, name: "user", kind: "message", T: () => ConversationUserData }
|
3081
|
+
]);
|
3082
|
+
}
|
3083
|
+
create(value?: PartialMessage<GetConversationResponse>): GetConversationResponse {
|
3084
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
3085
|
+
message.messages = {};
|
3086
|
+
message.modActions = {};
|
3087
|
+
if (value !== undefined)
|
3088
|
+
reflectionMergePartial<GetConversationResponse>(this, message, value);
|
3089
|
+
return message;
|
3090
|
+
}
|
3091
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetConversationResponse): GetConversationResponse {
|
3092
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
3093
|
+
while (reader.pos < end) {
|
3094
|
+
let [fieldNo, wireType] = reader.tag();
|
3095
|
+
switch (fieldNo) {
|
3096
|
+
case /* devvit.plugin.redditapi.newmodmail.ConversationData conversation */ 1:
|
3097
|
+
message.conversation = ConversationData.internalBinaryRead(reader, reader.uint32(), options, message.conversation);
|
3098
|
+
break;
|
3099
|
+
case /* map<string, devvit.plugin.redditapi.newmodmail.MessageData> messages */ 2:
|
3100
|
+
this.binaryReadMap2(message.messages, reader, options);
|
3101
|
+
break;
|
3102
|
+
case /* map<string, devvit.plugin.redditapi.newmodmail.ModActionData> mod_actions */ 3:
|
3103
|
+
this.binaryReadMap3(message.modActions, reader, options);
|
3104
|
+
break;
|
3105
|
+
case /* google.protobuf.Any participant_subreddit */ 4:
|
3106
|
+
message.participantSubreddit = Any.internalBinaryRead(reader, reader.uint32(), options, message.participantSubreddit);
|
3107
|
+
break;
|
3108
|
+
case /* devvit.plugin.redditapi.newmodmail.ConversationUserData user */ 5:
|
3109
|
+
message.user = ConversationUserData.internalBinaryRead(reader, reader.uint32(), options, message.user);
|
3110
|
+
break;
|
3111
|
+
default:
|
3112
|
+
let u = options.readUnknownField;
|
3113
|
+
if (u === "throw")
|
3114
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
3115
|
+
let d = reader.skip(wireType);
|
3116
|
+
if (u !== false)
|
3117
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
3118
|
+
}
|
3119
|
+
}
|
3120
|
+
return message;
|
3121
|
+
}
|
3122
|
+
private binaryReadMap2(map: GetConversationResponse["messages"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
3123
|
+
let len = reader.uint32(), end = reader.pos + len, key: keyof GetConversationResponse["messages"] | undefined, val: GetConversationResponse["messages"][any] | undefined;
|
3124
|
+
while (reader.pos < end) {
|
3125
|
+
let [fieldNo, wireType] = reader.tag();
|
3126
|
+
switch (fieldNo) {
|
3127
|
+
case 1:
|
3128
|
+
key = reader.string();
|
3129
|
+
break;
|
3130
|
+
case 2:
|
3131
|
+
val = MessageData.internalBinaryRead(reader, reader.uint32(), options);
|
3132
|
+
break;
|
3133
|
+
default: throw new globalThis.Error("unknown map entry field for field devvit.plugin.redditapi.newmodmail.GetConversationResponse.messages");
|
3134
|
+
}
|
3135
|
+
}
|
3136
|
+
map[key ?? ""] = val ?? MessageData.create();
|
3137
|
+
}
|
3138
|
+
private binaryReadMap3(map: GetConversationResponse["modActions"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
3139
|
+
let len = reader.uint32(), end = reader.pos + len, key: keyof GetConversationResponse["modActions"] | undefined, val: GetConversationResponse["modActions"][any] | undefined;
|
3140
|
+
while (reader.pos < end) {
|
3141
|
+
let [fieldNo, wireType] = reader.tag();
|
3142
|
+
switch (fieldNo) {
|
3143
|
+
case 1:
|
3144
|
+
key = reader.string();
|
3145
|
+
break;
|
3146
|
+
case 2:
|
3147
|
+
val = ModActionData.internalBinaryRead(reader, reader.uint32(), options);
|
3148
|
+
break;
|
3149
|
+
default: throw new globalThis.Error("unknown map entry field for field devvit.plugin.redditapi.newmodmail.GetConversationResponse.mod_actions");
|
3150
|
+
}
|
3151
|
+
}
|
3152
|
+
map[key ?? ""] = val ?? ModActionData.create();
|
3153
|
+
}
|
3154
|
+
internalBinaryWrite(message: GetConversationResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
3155
|
+
/* devvit.plugin.redditapi.newmodmail.ConversationData conversation = 1; */
|
3156
|
+
if (message.conversation)
|
3157
|
+
ConversationData.internalBinaryWrite(message.conversation, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
3158
|
+
/* map<string, devvit.plugin.redditapi.newmodmail.MessageData> messages = 2; */
|
3159
|
+
for (let k of globalThis.Object.keys(message.messages)) {
|
3160
|
+
writer.tag(2, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
|
3161
|
+
writer.tag(2, WireType.LengthDelimited).fork();
|
3162
|
+
MessageData.internalBinaryWrite(message.messages[k], writer, options);
|
3163
|
+
writer.join().join();
|
3164
|
+
}
|
3165
|
+
/* map<string, devvit.plugin.redditapi.newmodmail.ModActionData> mod_actions = 3; */
|
3166
|
+
for (let k of globalThis.Object.keys(message.modActions)) {
|
3167
|
+
writer.tag(3, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
|
3168
|
+
writer.tag(2, WireType.LengthDelimited).fork();
|
3169
|
+
ModActionData.internalBinaryWrite(message.modActions[k], writer, options);
|
3170
|
+
writer.join().join();
|
3171
|
+
}
|
3172
|
+
/* google.protobuf.Any participant_subreddit = 4; */
|
3173
|
+
if (message.participantSubreddit)
|
3174
|
+
Any.internalBinaryWrite(message.participantSubreddit, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
3175
|
+
/* devvit.plugin.redditapi.newmodmail.ConversationUserData user = 5; */
|
3176
|
+
if (message.user)
|
3177
|
+
ConversationUserData.internalBinaryWrite(message.user, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
3178
|
+
let u = options.writeUnknownFields;
|
3179
|
+
if (u !== false)
|
3180
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
3181
|
+
return writer;
|
3182
|
+
}
|
3183
|
+
}
|
3184
|
+
/**
|
3185
|
+
* @generated MessageType for protobuf message devvit.plugin.redditapi.newmodmail.GetConversationResponse
|
3186
|
+
*/
|
3187
|
+
export const GetConversationResponse = new GetConversationResponse$Type();
|
3188
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
3189
|
+
class CreateConversationMessageResponse$Type extends MessageType<CreateConversationMessageResponse> {
|
3190
|
+
constructor() {
|
3191
|
+
super("devvit.plugin.redditapi.newmodmail.CreateConversationMessageResponse", [
|
3192
|
+
{ no: 1, name: "conversation", kind: "message", T: () => ConversationData },
|
3193
|
+
{ no: 2, name: "messages", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => MessageData } },
|
3194
|
+
{ no: 3, name: "user", kind: "message", T: () => ConversationUserData }
|
3195
|
+
]);
|
3196
|
+
}
|
3197
|
+
create(value?: PartialMessage<CreateConversationMessageResponse>): CreateConversationMessageResponse {
|
3198
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
3199
|
+
message.messages = {};
|
3200
|
+
if (value !== undefined)
|
3201
|
+
reflectionMergePartial<CreateConversationMessageResponse>(this, message, value);
|
3202
|
+
return message;
|
3203
|
+
}
|
3204
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateConversationMessageResponse): CreateConversationMessageResponse {
|
3205
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
3206
|
+
while (reader.pos < end) {
|
3207
|
+
let [fieldNo, wireType] = reader.tag();
|
3208
|
+
switch (fieldNo) {
|
3209
|
+
case /* devvit.plugin.redditapi.newmodmail.ConversationData conversation */ 1:
|
3210
|
+
message.conversation = ConversationData.internalBinaryRead(reader, reader.uint32(), options, message.conversation);
|
3211
|
+
break;
|
3212
|
+
case /* map<string, devvit.plugin.redditapi.newmodmail.MessageData> messages */ 2:
|
3213
|
+
this.binaryReadMap2(message.messages, reader, options);
|
3214
|
+
break;
|
3215
|
+
case /* devvit.plugin.redditapi.newmodmail.ConversationUserData user */ 3:
|
3216
|
+
message.user = ConversationUserData.internalBinaryRead(reader, reader.uint32(), options, message.user);
|
3217
|
+
break;
|
3218
|
+
default:
|
3219
|
+
let u = options.readUnknownField;
|
3220
|
+
if (u === "throw")
|
3221
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
3222
|
+
let d = reader.skip(wireType);
|
3223
|
+
if (u !== false)
|
3224
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
3225
|
+
}
|
3226
|
+
}
|
3227
|
+
return message;
|
3228
|
+
}
|
3229
|
+
private binaryReadMap2(map: CreateConversationMessageResponse["messages"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
3230
|
+
let len = reader.uint32(), end = reader.pos + len, key: keyof CreateConversationMessageResponse["messages"] | undefined, val: CreateConversationMessageResponse["messages"][any] | undefined;
|
3231
|
+
while (reader.pos < end) {
|
3232
|
+
let [fieldNo, wireType] = reader.tag();
|
3233
|
+
switch (fieldNo) {
|
3234
|
+
case 1:
|
3235
|
+
key = reader.string();
|
3236
|
+
break;
|
3237
|
+
case 2:
|
3238
|
+
val = MessageData.internalBinaryRead(reader, reader.uint32(), options);
|
3239
|
+
break;
|
3240
|
+
default: throw new globalThis.Error("unknown map entry field for field devvit.plugin.redditapi.newmodmail.CreateConversationMessageResponse.messages");
|
3241
|
+
}
|
3242
|
+
}
|
3243
|
+
map[key ?? ""] = val ?? MessageData.create();
|
3244
|
+
}
|
3245
|
+
internalBinaryWrite(message: CreateConversationMessageResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
3246
|
+
/* devvit.plugin.redditapi.newmodmail.ConversationData conversation = 1; */
|
3247
|
+
if (message.conversation)
|
3248
|
+
ConversationData.internalBinaryWrite(message.conversation, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
3249
|
+
/* map<string, devvit.plugin.redditapi.newmodmail.MessageData> messages = 2; */
|
3250
|
+
for (let k of globalThis.Object.keys(message.messages)) {
|
3251
|
+
writer.tag(2, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
|
3252
|
+
writer.tag(2, WireType.LengthDelimited).fork();
|
3253
|
+
MessageData.internalBinaryWrite(message.messages[k], writer, options);
|
3254
|
+
writer.join().join();
|
3255
|
+
}
|
3256
|
+
/* devvit.plugin.redditapi.newmodmail.ConversationUserData user = 3; */
|
3257
|
+
if (message.user)
|
3258
|
+
ConversationUserData.internalBinaryWrite(message.user, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
3259
|
+
let u = options.writeUnknownFields;
|
3260
|
+
if (u !== false)
|
3261
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
3262
|
+
return writer;
|
3263
|
+
}
|
3264
|
+
}
|
3265
|
+
/**
|
3266
|
+
* @generated MessageType for protobuf message devvit.plugin.redditapi.newmodmail.CreateConversationMessageResponse
|
3267
|
+
*/
|
3268
|
+
export const CreateConversationMessageResponse = new CreateConversationMessageResponse$Type();
|
3269
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
3270
|
+
class ApproveConversationResponse$Type extends MessageType<ApproveConversationResponse> {
|
3271
|
+
constructor() {
|
3272
|
+
super("devvit.plugin.redditapi.newmodmail.ApproveConversationResponse", [
|
3273
|
+
{ no: 1, name: "conversations", kind: "message", T: () => ConversationData },
|
3274
|
+
{ no: 2, name: "messages", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => MessageData } },
|
3275
|
+
{ no: 3, name: "user", kind: "message", T: () => ConversationUserData },
|
3276
|
+
{ no: 4, name: "mod_actions", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => ModActionData } },
|
3277
|
+
{ no: 5, name: "fields", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => StringValue },
|
3278
|
+
{ no: 6, name: "reason", kind: "message", T: () => StringValue },
|
3279
|
+
{ no: 7, name: "message", kind: "message", T: () => StringValue },
|
3280
|
+
{ no: 8, name: "explanation", kind: "message", T: () => StringValue }
|
3281
|
+
]);
|
3282
|
+
}
|
3283
|
+
create(value?: PartialMessage<ApproveConversationResponse>): ApproveConversationResponse {
|
3284
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
3285
|
+
message.messages = {};
|
3286
|
+
message.modActions = {};
|
3287
|
+
message.fields = [];
|
3288
|
+
if (value !== undefined)
|
3289
|
+
reflectionMergePartial<ApproveConversationResponse>(this, message, value);
|
3290
|
+
return message;
|
3291
|
+
}
|
3292
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ApproveConversationResponse): ApproveConversationResponse {
|
3293
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
3294
|
+
while (reader.pos < end) {
|
3295
|
+
let [fieldNo, wireType] = reader.tag();
|
3296
|
+
switch (fieldNo) {
|
3297
|
+
case /* devvit.plugin.redditapi.newmodmail.ConversationData conversations */ 1:
|
3298
|
+
message.conversations = ConversationData.internalBinaryRead(reader, reader.uint32(), options, message.conversations);
|
3299
|
+
break;
|
3300
|
+
case /* map<string, devvit.plugin.redditapi.newmodmail.MessageData> messages */ 2:
|
3301
|
+
this.binaryReadMap2(message.messages, reader, options);
|
3302
|
+
break;
|
3303
|
+
case /* devvit.plugin.redditapi.newmodmail.ConversationUserData user */ 3:
|
3304
|
+
message.user = ConversationUserData.internalBinaryRead(reader, reader.uint32(), options, message.user);
|
3305
|
+
break;
|
3306
|
+
case /* map<string, devvit.plugin.redditapi.newmodmail.ModActionData> mod_actions */ 4:
|
3307
|
+
this.binaryReadMap4(message.modActions, reader, options);
|
3308
|
+
break;
|
3309
|
+
case /* repeated google.protobuf.StringValue fields */ 5:
|
3310
|
+
message.fields.push(StringValue.internalBinaryRead(reader, reader.uint32(), options));
|
3311
|
+
break;
|
3312
|
+
case /* google.protobuf.StringValue reason */ 6:
|
3313
|
+
message.reason = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.reason);
|
3314
|
+
break;
|
3315
|
+
case /* google.protobuf.StringValue message */ 7:
|
3316
|
+
message.message = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.message);
|
3317
|
+
break;
|
3318
|
+
case /* google.protobuf.StringValue explanation */ 8:
|
3319
|
+
message.explanation = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.explanation);
|
3320
|
+
break;
|
3321
|
+
default:
|
3322
|
+
let u = options.readUnknownField;
|
3323
|
+
if (u === "throw")
|
3324
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
3325
|
+
let d = reader.skip(wireType);
|
3326
|
+
if (u !== false)
|
3327
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
3328
|
+
}
|
3329
|
+
}
|
3330
|
+
return message;
|
3331
|
+
}
|
3332
|
+
private binaryReadMap2(map: ApproveConversationResponse["messages"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
3333
|
+
let len = reader.uint32(), end = reader.pos + len, key: keyof ApproveConversationResponse["messages"] | undefined, val: ApproveConversationResponse["messages"][any] | undefined;
|
3334
|
+
while (reader.pos < end) {
|
3335
|
+
let [fieldNo, wireType] = reader.tag();
|
3336
|
+
switch (fieldNo) {
|
3337
|
+
case 1:
|
3338
|
+
key = reader.string();
|
3339
|
+
break;
|
3340
|
+
case 2:
|
3341
|
+
val = MessageData.internalBinaryRead(reader, reader.uint32(), options);
|
3342
|
+
break;
|
3343
|
+
default: throw new globalThis.Error("unknown map entry field for field devvit.plugin.redditapi.newmodmail.ApproveConversationResponse.messages");
|
3344
|
+
}
|
3345
|
+
}
|
3346
|
+
map[key ?? ""] = val ?? MessageData.create();
|
3347
|
+
}
|
3348
|
+
private binaryReadMap4(map: ApproveConversationResponse["modActions"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
3349
|
+
let len = reader.uint32(), end = reader.pos + len, key: keyof ApproveConversationResponse["modActions"] | undefined, val: ApproveConversationResponse["modActions"][any] | undefined;
|
3350
|
+
while (reader.pos < end) {
|
3351
|
+
let [fieldNo, wireType] = reader.tag();
|
3352
|
+
switch (fieldNo) {
|
3353
|
+
case 1:
|
3354
|
+
key = reader.string();
|
3355
|
+
break;
|
3356
|
+
case 2:
|
3357
|
+
val = ModActionData.internalBinaryRead(reader, reader.uint32(), options);
|
3358
|
+
break;
|
3359
|
+
default: throw new globalThis.Error("unknown map entry field for field devvit.plugin.redditapi.newmodmail.ApproveConversationResponse.mod_actions");
|
3360
|
+
}
|
3361
|
+
}
|
3362
|
+
map[key ?? ""] = val ?? ModActionData.create();
|
3363
|
+
}
|
3364
|
+
internalBinaryWrite(message: ApproveConversationResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
3365
|
+
/* devvit.plugin.redditapi.newmodmail.ConversationData conversations = 1; */
|
3366
|
+
if (message.conversations)
|
3367
|
+
ConversationData.internalBinaryWrite(message.conversations, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
3368
|
+
/* map<string, devvit.plugin.redditapi.newmodmail.MessageData> messages = 2; */
|
3369
|
+
for (let k of globalThis.Object.keys(message.messages)) {
|
3370
|
+
writer.tag(2, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
|
3371
|
+
writer.tag(2, WireType.LengthDelimited).fork();
|
3372
|
+
MessageData.internalBinaryWrite(message.messages[k], writer, options);
|
3373
|
+
writer.join().join();
|
3374
|
+
}
|
3375
|
+
/* devvit.plugin.redditapi.newmodmail.ConversationUserData user = 3; */
|
3376
|
+
if (message.user)
|
3377
|
+
ConversationUserData.internalBinaryWrite(message.user, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
3378
|
+
/* map<string, devvit.plugin.redditapi.newmodmail.ModActionData> mod_actions = 4; */
|
3379
|
+
for (let k of globalThis.Object.keys(message.modActions)) {
|
3380
|
+
writer.tag(4, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
|
3381
|
+
writer.tag(2, WireType.LengthDelimited).fork();
|
3382
|
+
ModActionData.internalBinaryWrite(message.modActions[k], writer, options);
|
3383
|
+
writer.join().join();
|
3384
|
+
}
|
3385
|
+
/* repeated google.protobuf.StringValue fields = 5; */
|
3386
|
+
for (let i = 0; i < message.fields.length; i++)
|
3387
|
+
StringValue.internalBinaryWrite(message.fields[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
3388
|
+
/* google.protobuf.StringValue reason = 6; */
|
3389
|
+
if (message.reason)
|
3390
|
+
StringValue.internalBinaryWrite(message.reason, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
3391
|
+
/* google.protobuf.StringValue message = 7; */
|
3392
|
+
if (message.message)
|
3393
|
+
StringValue.internalBinaryWrite(message.message, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
3394
|
+
/* google.protobuf.StringValue explanation = 8; */
|
3395
|
+
if (message.explanation)
|
3396
|
+
StringValue.internalBinaryWrite(message.explanation, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
3397
|
+
let u = options.writeUnknownFields;
|
3398
|
+
if (u !== false)
|
3399
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
3400
|
+
return writer;
|
3401
|
+
}
|
3402
|
+
}
|
3403
|
+
/**
|
3404
|
+
* @generated MessageType for protobuf message devvit.plugin.redditapi.newmodmail.ApproveConversationResponse
|
3405
|
+
*/
|
3406
|
+
export const ApproveConversationResponse = new ApproveConversationResponse$Type();
|
3407
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
3408
|
+
class ArchiveConversationResponse$Type extends MessageType<ArchiveConversationResponse> {
|
3409
|
+
constructor() {
|
3410
|
+
super("devvit.plugin.redditapi.newmodmail.ArchiveConversationResponse", [
|
3411
|
+
{ no: 1, name: "conversations", kind: "message", T: () => ConversationData },
|
3412
|
+
{ no: 2, name: "messages", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => MessageData } },
|
3413
|
+
{ no: 3, name: "mod_actions", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => ModActionData } },
|
3414
|
+
{ no: 4, name: "conversation", kind: "message", T: () => ConversationData }
|
3415
|
+
]);
|
3416
|
+
}
|
3417
|
+
create(value?: PartialMessage<ArchiveConversationResponse>): ArchiveConversationResponse {
|
3418
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
3419
|
+
message.messages = {};
|
3420
|
+
message.modActions = {};
|
3421
|
+
if (value !== undefined)
|
3422
|
+
reflectionMergePartial<ArchiveConversationResponse>(this, message, value);
|
3423
|
+
return message;
|
3424
|
+
}
|
3425
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ArchiveConversationResponse): ArchiveConversationResponse {
|
3426
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
3427
|
+
while (reader.pos < end) {
|
3428
|
+
let [fieldNo, wireType] = reader.tag();
|
3429
|
+
switch (fieldNo) {
|
3430
|
+
case /* devvit.plugin.redditapi.newmodmail.ConversationData conversations */ 1:
|
3431
|
+
message.conversations = ConversationData.internalBinaryRead(reader, reader.uint32(), options, message.conversations);
|
3432
|
+
break;
|
3433
|
+
case /* map<string, devvit.plugin.redditapi.newmodmail.MessageData> messages */ 2:
|
3434
|
+
this.binaryReadMap2(message.messages, reader, options);
|
3435
|
+
break;
|
3436
|
+
case /* map<string, devvit.plugin.redditapi.newmodmail.ModActionData> mod_actions */ 3:
|
3437
|
+
this.binaryReadMap3(message.modActions, reader, options);
|
3438
|
+
break;
|
3439
|
+
case /* devvit.plugin.redditapi.newmodmail.ConversationData conversation */ 4:
|
3440
|
+
message.conversation = ConversationData.internalBinaryRead(reader, reader.uint32(), options, message.conversation);
|
3441
|
+
break;
|
3442
|
+
default:
|
3443
|
+
let u = options.readUnknownField;
|
3444
|
+
if (u === "throw")
|
3445
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
3446
|
+
let d = reader.skip(wireType);
|
3447
|
+
if (u !== false)
|
3448
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
3449
|
+
}
|
3450
|
+
}
|
3451
|
+
return message;
|
3452
|
+
}
|
3453
|
+
private binaryReadMap2(map: ArchiveConversationResponse["messages"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
3454
|
+
let len = reader.uint32(), end = reader.pos + len, key: keyof ArchiveConversationResponse["messages"] | undefined, val: ArchiveConversationResponse["messages"][any] | undefined;
|
3455
|
+
while (reader.pos < end) {
|
3456
|
+
let [fieldNo, wireType] = reader.tag();
|
3457
|
+
switch (fieldNo) {
|
3458
|
+
case 1:
|
3459
|
+
key = reader.string();
|
3460
|
+
break;
|
3461
|
+
case 2:
|
3462
|
+
val = MessageData.internalBinaryRead(reader, reader.uint32(), options);
|
3463
|
+
break;
|
3464
|
+
default: throw new globalThis.Error("unknown map entry field for field devvit.plugin.redditapi.newmodmail.ArchiveConversationResponse.messages");
|
3465
|
+
}
|
3466
|
+
}
|
3467
|
+
map[key ?? ""] = val ?? MessageData.create();
|
3468
|
+
}
|
3469
|
+
private binaryReadMap3(map: ArchiveConversationResponse["modActions"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
3470
|
+
let len = reader.uint32(), end = reader.pos + len, key: keyof ArchiveConversationResponse["modActions"] | undefined, val: ArchiveConversationResponse["modActions"][any] | undefined;
|
3471
|
+
while (reader.pos < end) {
|
3472
|
+
let [fieldNo, wireType] = reader.tag();
|
3473
|
+
switch (fieldNo) {
|
3474
|
+
case 1:
|
3475
|
+
key = reader.string();
|
3476
|
+
break;
|
3477
|
+
case 2:
|
3478
|
+
val = ModActionData.internalBinaryRead(reader, reader.uint32(), options);
|
3479
|
+
break;
|
3480
|
+
default: throw new globalThis.Error("unknown map entry field for field devvit.plugin.redditapi.newmodmail.ArchiveConversationResponse.mod_actions");
|
3481
|
+
}
|
3482
|
+
}
|
3483
|
+
map[key ?? ""] = val ?? ModActionData.create();
|
3484
|
+
}
|
3485
|
+
internalBinaryWrite(message: ArchiveConversationResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
3486
|
+
/* devvit.plugin.redditapi.newmodmail.ConversationData conversations = 1; */
|
3487
|
+
if (message.conversations)
|
3488
|
+
ConversationData.internalBinaryWrite(message.conversations, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
3489
|
+
/* map<string, devvit.plugin.redditapi.newmodmail.MessageData> messages = 2; */
|
3490
|
+
for (let k of globalThis.Object.keys(message.messages)) {
|
3491
|
+
writer.tag(2, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
|
3492
|
+
writer.tag(2, WireType.LengthDelimited).fork();
|
3493
|
+
MessageData.internalBinaryWrite(message.messages[k], writer, options);
|
3494
|
+
writer.join().join();
|
3495
|
+
}
|
3496
|
+
/* map<string, devvit.plugin.redditapi.newmodmail.ModActionData> mod_actions = 3; */
|
3497
|
+
for (let k of globalThis.Object.keys(message.modActions)) {
|
3498
|
+
writer.tag(3, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
|
3499
|
+
writer.tag(2, WireType.LengthDelimited).fork();
|
3500
|
+
ModActionData.internalBinaryWrite(message.modActions[k], writer, options);
|
3501
|
+
writer.join().join();
|
3502
|
+
}
|
3503
|
+
/* devvit.plugin.redditapi.newmodmail.ConversationData conversation = 4; */
|
3504
|
+
if (message.conversation)
|
3505
|
+
ConversationData.internalBinaryWrite(message.conversation, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
3506
|
+
let u = options.writeUnknownFields;
|
3507
|
+
if (u !== false)
|
3508
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
3509
|
+
return writer;
|
3510
|
+
}
|
3511
|
+
}
|
3512
|
+
/**
|
3513
|
+
* @generated MessageType for protobuf message devvit.plugin.redditapi.newmodmail.ArchiveConversationResponse
|
3514
|
+
*/
|
3515
|
+
export const ArchiveConversationResponse = new ArchiveConversationResponse$Type();
|
3516
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
3517
|
+
class HighlightConversationResponse$Type extends MessageType<HighlightConversationResponse> {
|
3518
|
+
constructor() {
|
3519
|
+
super("devvit.plugin.redditapi.newmodmail.HighlightConversationResponse", [
|
3520
|
+
{ no: 1, name: "conversations", kind: "message", T: () => ConversationData },
|
3521
|
+
{ no: 2, name: "messages", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => MessageData } },
|
3522
|
+
{ no: 3, name: "mod_actions", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => ModActionData } },
|
3523
|
+
{ no: 4, name: "conversation", kind: "message", T: () => ConversationData }
|
3524
|
+
]);
|
3525
|
+
}
|
3526
|
+
create(value?: PartialMessage<HighlightConversationResponse>): HighlightConversationResponse {
|
3527
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
3528
|
+
message.messages = {};
|
3529
|
+
message.modActions = {};
|
3530
|
+
if (value !== undefined)
|
3531
|
+
reflectionMergePartial<HighlightConversationResponse>(this, message, value);
|
3532
|
+
return message;
|
3533
|
+
}
|
3534
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: HighlightConversationResponse): HighlightConversationResponse {
|
3535
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
3536
|
+
while (reader.pos < end) {
|
3537
|
+
let [fieldNo, wireType] = reader.tag();
|
3538
|
+
switch (fieldNo) {
|
3539
|
+
case /* devvit.plugin.redditapi.newmodmail.ConversationData conversations */ 1:
|
3540
|
+
message.conversations = ConversationData.internalBinaryRead(reader, reader.uint32(), options, message.conversations);
|
3541
|
+
break;
|
3542
|
+
case /* map<string, devvit.plugin.redditapi.newmodmail.MessageData> messages */ 2:
|
3543
|
+
this.binaryReadMap2(message.messages, reader, options);
|
3544
|
+
break;
|
3545
|
+
case /* map<string, devvit.plugin.redditapi.newmodmail.ModActionData> mod_actions */ 3:
|
3546
|
+
this.binaryReadMap3(message.modActions, reader, options);
|
3547
|
+
break;
|
3548
|
+
case /* devvit.plugin.redditapi.newmodmail.ConversationData conversation */ 4:
|
3549
|
+
message.conversation = ConversationData.internalBinaryRead(reader, reader.uint32(), options, message.conversation);
|
3550
|
+
break;
|
3551
|
+
default:
|
3552
|
+
let u = options.readUnknownField;
|
3553
|
+
if (u === "throw")
|
3554
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
3555
|
+
let d = reader.skip(wireType);
|
3556
|
+
if (u !== false)
|
3557
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
3558
|
+
}
|
3559
|
+
}
|
3560
|
+
return message;
|
3561
|
+
}
|
3562
|
+
private binaryReadMap2(map: HighlightConversationResponse["messages"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
3563
|
+
let len = reader.uint32(), end = reader.pos + len, key: keyof HighlightConversationResponse["messages"] | undefined, val: HighlightConversationResponse["messages"][any] | undefined;
|
3564
|
+
while (reader.pos < end) {
|
3565
|
+
let [fieldNo, wireType] = reader.tag();
|
3566
|
+
switch (fieldNo) {
|
3567
|
+
case 1:
|
3568
|
+
key = reader.string();
|
3569
|
+
break;
|
3570
|
+
case 2:
|
3571
|
+
val = MessageData.internalBinaryRead(reader, reader.uint32(), options);
|
3572
|
+
break;
|
3573
|
+
default: throw new globalThis.Error("unknown map entry field for field devvit.plugin.redditapi.newmodmail.HighlightConversationResponse.messages");
|
3574
|
+
}
|
3575
|
+
}
|
3576
|
+
map[key ?? ""] = val ?? MessageData.create();
|
3577
|
+
}
|
3578
|
+
private binaryReadMap3(map: HighlightConversationResponse["modActions"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
3579
|
+
let len = reader.uint32(), end = reader.pos + len, key: keyof HighlightConversationResponse["modActions"] | undefined, val: HighlightConversationResponse["modActions"][any] | undefined;
|
3580
|
+
while (reader.pos < end) {
|
3581
|
+
let [fieldNo, wireType] = reader.tag();
|
3582
|
+
switch (fieldNo) {
|
3583
|
+
case 1:
|
3584
|
+
key = reader.string();
|
3585
|
+
break;
|
3586
|
+
case 2:
|
3587
|
+
val = ModActionData.internalBinaryRead(reader, reader.uint32(), options);
|
3588
|
+
break;
|
3589
|
+
default: throw new globalThis.Error("unknown map entry field for field devvit.plugin.redditapi.newmodmail.HighlightConversationResponse.mod_actions");
|
3590
|
+
}
|
3591
|
+
}
|
3592
|
+
map[key ?? ""] = val ?? ModActionData.create();
|
3593
|
+
}
|
3594
|
+
internalBinaryWrite(message: HighlightConversationResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
3595
|
+
/* devvit.plugin.redditapi.newmodmail.ConversationData conversations = 1; */
|
3596
|
+
if (message.conversations)
|
3597
|
+
ConversationData.internalBinaryWrite(message.conversations, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
3598
|
+
/* map<string, devvit.plugin.redditapi.newmodmail.MessageData> messages = 2; */
|
3599
|
+
for (let k of globalThis.Object.keys(message.messages)) {
|
3600
|
+
writer.tag(2, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
|
3601
|
+
writer.tag(2, WireType.LengthDelimited).fork();
|
3602
|
+
MessageData.internalBinaryWrite(message.messages[k], writer, options);
|
3603
|
+
writer.join().join();
|
3604
|
+
}
|
3605
|
+
/* map<string, devvit.plugin.redditapi.newmodmail.ModActionData> mod_actions = 3; */
|
3606
|
+
for (let k of globalThis.Object.keys(message.modActions)) {
|
3607
|
+
writer.tag(3, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
|
3608
|
+
writer.tag(2, WireType.LengthDelimited).fork();
|
3609
|
+
ModActionData.internalBinaryWrite(message.modActions[k], writer, options);
|
3610
|
+
writer.join().join();
|
3611
|
+
}
|
3612
|
+
/* devvit.plugin.redditapi.newmodmail.ConversationData conversation = 4; */
|
3613
|
+
if (message.conversation)
|
3614
|
+
ConversationData.internalBinaryWrite(message.conversation, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
3615
|
+
let u = options.writeUnknownFields;
|
3616
|
+
if (u !== false)
|
3617
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
3618
|
+
return writer;
|
3619
|
+
}
|
3620
|
+
}
|
3621
|
+
/**
|
3622
|
+
* @generated MessageType for protobuf message devvit.plugin.redditapi.newmodmail.HighlightConversationResponse
|
3623
|
+
*/
|
3624
|
+
export const HighlightConversationResponse = new HighlightConversationResponse$Type();
|
3625
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
3626
|
+
class MuteConversationResponse$Type extends MessageType<MuteConversationResponse> {
|
3627
|
+
constructor() {
|
3628
|
+
super("devvit.plugin.redditapi.newmodmail.MuteConversationResponse", [
|
3629
|
+
{ no: 1, name: "conversations", kind: "message", T: () => ConversationData },
|
3630
|
+
{ no: 2, name: "messages", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => MessageData } },
|
3631
|
+
{ no: 3, name: "user", kind: "message", T: () => ConversationUserData },
|
3632
|
+
{ no: 4, name: "mod_actions", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => ModActionData } }
|
3633
|
+
]);
|
3634
|
+
}
|
3635
|
+
create(value?: PartialMessage<MuteConversationResponse>): MuteConversationResponse {
|
3636
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
3637
|
+
message.messages = {};
|
3638
|
+
message.modActions = {};
|
3639
|
+
if (value !== undefined)
|
3640
|
+
reflectionMergePartial<MuteConversationResponse>(this, message, value);
|
3641
|
+
return message;
|
3642
|
+
}
|
3643
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MuteConversationResponse): MuteConversationResponse {
|
3644
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
3645
|
+
while (reader.pos < end) {
|
3646
|
+
let [fieldNo, wireType] = reader.tag();
|
3647
|
+
switch (fieldNo) {
|
3648
|
+
case /* devvit.plugin.redditapi.newmodmail.ConversationData conversations */ 1:
|
3649
|
+
message.conversations = ConversationData.internalBinaryRead(reader, reader.uint32(), options, message.conversations);
|
3650
|
+
break;
|
3651
|
+
case /* map<string, devvit.plugin.redditapi.newmodmail.MessageData> messages */ 2:
|
3652
|
+
this.binaryReadMap2(message.messages, reader, options);
|
3653
|
+
break;
|
3654
|
+
case /* devvit.plugin.redditapi.newmodmail.ConversationUserData user */ 3:
|
3655
|
+
message.user = ConversationUserData.internalBinaryRead(reader, reader.uint32(), options, message.user);
|
3656
|
+
break;
|
3657
|
+
case /* map<string, devvit.plugin.redditapi.newmodmail.ModActionData> mod_actions */ 4:
|
3658
|
+
this.binaryReadMap4(message.modActions, reader, options);
|
3659
|
+
break;
|
3660
|
+
default:
|
3661
|
+
let u = options.readUnknownField;
|
3662
|
+
if (u === "throw")
|
3663
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
3664
|
+
let d = reader.skip(wireType);
|
3665
|
+
if (u !== false)
|
3666
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
3667
|
+
}
|
3668
|
+
}
|
3669
|
+
return message;
|
3670
|
+
}
|
3671
|
+
private binaryReadMap2(map: MuteConversationResponse["messages"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
3672
|
+
let len = reader.uint32(), end = reader.pos + len, key: keyof MuteConversationResponse["messages"] | undefined, val: MuteConversationResponse["messages"][any] | undefined;
|
3673
|
+
while (reader.pos < end) {
|
3674
|
+
let [fieldNo, wireType] = reader.tag();
|
3675
|
+
switch (fieldNo) {
|
3676
|
+
case 1:
|
3677
|
+
key = reader.string();
|
3678
|
+
break;
|
3679
|
+
case 2:
|
3680
|
+
val = MessageData.internalBinaryRead(reader, reader.uint32(), options);
|
3681
|
+
break;
|
3682
|
+
default: throw new globalThis.Error("unknown map entry field for field devvit.plugin.redditapi.newmodmail.MuteConversationResponse.messages");
|
3683
|
+
}
|
3684
|
+
}
|
3685
|
+
map[key ?? ""] = val ?? MessageData.create();
|
3686
|
+
}
|
3687
|
+
private binaryReadMap4(map: MuteConversationResponse["modActions"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
3688
|
+
let len = reader.uint32(), end = reader.pos + len, key: keyof MuteConversationResponse["modActions"] | undefined, val: MuteConversationResponse["modActions"][any] | undefined;
|
3689
|
+
while (reader.pos < end) {
|
3690
|
+
let [fieldNo, wireType] = reader.tag();
|
3691
|
+
switch (fieldNo) {
|
3692
|
+
case 1:
|
3693
|
+
key = reader.string();
|
3694
|
+
break;
|
3695
|
+
case 2:
|
3696
|
+
val = ModActionData.internalBinaryRead(reader, reader.uint32(), options);
|
3697
|
+
break;
|
3698
|
+
default: throw new globalThis.Error("unknown map entry field for field devvit.plugin.redditapi.newmodmail.MuteConversationResponse.mod_actions");
|
3699
|
+
}
|
3700
|
+
}
|
3701
|
+
map[key ?? ""] = val ?? ModActionData.create();
|
3702
|
+
}
|
3703
|
+
internalBinaryWrite(message: MuteConversationResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
3704
|
+
/* devvit.plugin.redditapi.newmodmail.ConversationData conversations = 1; */
|
3705
|
+
if (message.conversations)
|
3706
|
+
ConversationData.internalBinaryWrite(message.conversations, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
3707
|
+
/* map<string, devvit.plugin.redditapi.newmodmail.MessageData> messages = 2; */
|
3708
|
+
for (let k of globalThis.Object.keys(message.messages)) {
|
3709
|
+
writer.tag(2, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
|
3710
|
+
writer.tag(2, WireType.LengthDelimited).fork();
|
3711
|
+
MessageData.internalBinaryWrite(message.messages[k], writer, options);
|
3712
|
+
writer.join().join();
|
3713
|
+
}
|
3714
|
+
/* devvit.plugin.redditapi.newmodmail.ConversationUserData user = 3; */
|
3715
|
+
if (message.user)
|
3716
|
+
ConversationUserData.internalBinaryWrite(message.user, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
3717
|
+
/* map<string, devvit.plugin.redditapi.newmodmail.ModActionData> mod_actions = 4; */
|
3718
|
+
for (let k of globalThis.Object.keys(message.modActions)) {
|
3719
|
+
writer.tag(4, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
|
3720
|
+
writer.tag(2, WireType.LengthDelimited).fork();
|
3721
|
+
ModActionData.internalBinaryWrite(message.modActions[k], writer, options);
|
3722
|
+
writer.join().join();
|
3723
|
+
}
|
3724
|
+
let u = options.writeUnknownFields;
|
3725
|
+
if (u !== false)
|
3726
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
3727
|
+
return writer;
|
3728
|
+
}
|
3729
|
+
}
|
3730
|
+
/**
|
3731
|
+
* @generated MessageType for protobuf message devvit.plugin.redditapi.newmodmail.MuteConversationResponse
|
3732
|
+
*/
|
3733
|
+
export const MuteConversationResponse = new MuteConversationResponse$Type();
|
3734
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
3735
|
+
class TempBanResponse$Type extends MessageType<TempBanResponse> {
|
3736
|
+
constructor() {
|
3737
|
+
super("devvit.plugin.redditapi.newmodmail.TempBanResponse", [
|
3738
|
+
{ no: 1, name: "conversations", kind: "message", T: () => ConversationData },
|
3739
|
+
{ no: 2, name: "messages", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => MessageData } },
|
3740
|
+
{ no: 3, name: "user", kind: "message", T: () => ConversationUserData },
|
3741
|
+
{ no: 4, name: "mod_actions", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => ModActionData } },
|
3742
|
+
{ no: 5, name: "fields", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => StringValue },
|
3743
|
+
{ no: 6, name: "reason", kind: "message", T: () => StringValue },
|
3744
|
+
{ no: 7, name: "message", kind: "message", T: () => StringValue }
|
3745
|
+
]);
|
3746
|
+
}
|
3747
|
+
create(value?: PartialMessage<TempBanResponse>): TempBanResponse {
|
3748
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
3749
|
+
message.messages = {};
|
3750
|
+
message.modActions = {};
|
3751
|
+
message.fields = [];
|
3752
|
+
if (value !== undefined)
|
3753
|
+
reflectionMergePartial<TempBanResponse>(this, message, value);
|
3754
|
+
return message;
|
3755
|
+
}
|
3756
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TempBanResponse): TempBanResponse {
|
3757
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
3758
|
+
while (reader.pos < end) {
|
3759
|
+
let [fieldNo, wireType] = reader.tag();
|
3760
|
+
switch (fieldNo) {
|
3761
|
+
case /* devvit.plugin.redditapi.newmodmail.ConversationData conversations */ 1:
|
3762
|
+
message.conversations = ConversationData.internalBinaryRead(reader, reader.uint32(), options, message.conversations);
|
3763
|
+
break;
|
3764
|
+
case /* map<string, devvit.plugin.redditapi.newmodmail.MessageData> messages */ 2:
|
3765
|
+
this.binaryReadMap2(message.messages, reader, options);
|
3766
|
+
break;
|
3767
|
+
case /* devvit.plugin.redditapi.newmodmail.ConversationUserData user */ 3:
|
3768
|
+
message.user = ConversationUserData.internalBinaryRead(reader, reader.uint32(), options, message.user);
|
3769
|
+
break;
|
3770
|
+
case /* map<string, devvit.plugin.redditapi.newmodmail.ModActionData> mod_actions */ 4:
|
3771
|
+
this.binaryReadMap4(message.modActions, reader, options);
|
3772
|
+
break;
|
3773
|
+
case /* repeated google.protobuf.StringValue fields */ 5:
|
3774
|
+
message.fields.push(StringValue.internalBinaryRead(reader, reader.uint32(), options));
|
3775
|
+
break;
|
3776
|
+
case /* google.protobuf.StringValue reason */ 6:
|
3777
|
+
message.reason = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.reason);
|
3778
|
+
break;
|
3779
|
+
case /* google.protobuf.StringValue message */ 7:
|
3780
|
+
message.message = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.message);
|
3781
|
+
break;
|
3782
|
+
default:
|
3783
|
+
let u = options.readUnknownField;
|
3784
|
+
if (u === "throw")
|
3785
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
3786
|
+
let d = reader.skip(wireType);
|
3787
|
+
if (u !== false)
|
3788
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
3789
|
+
}
|
3790
|
+
}
|
3791
|
+
return message;
|
3792
|
+
}
|
3793
|
+
private binaryReadMap2(map: TempBanResponse["messages"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
3794
|
+
let len = reader.uint32(), end = reader.pos + len, key: keyof TempBanResponse["messages"] | undefined, val: TempBanResponse["messages"][any] | undefined;
|
3795
|
+
while (reader.pos < end) {
|
3796
|
+
let [fieldNo, wireType] = reader.tag();
|
3797
|
+
switch (fieldNo) {
|
3798
|
+
case 1:
|
3799
|
+
key = reader.string();
|
3800
|
+
break;
|
3801
|
+
case 2:
|
3802
|
+
val = MessageData.internalBinaryRead(reader, reader.uint32(), options);
|
3803
|
+
break;
|
3804
|
+
default: throw new globalThis.Error("unknown map entry field for field devvit.plugin.redditapi.newmodmail.TempBanResponse.messages");
|
3805
|
+
}
|
3806
|
+
}
|
3807
|
+
map[key ?? ""] = val ?? MessageData.create();
|
3808
|
+
}
|
3809
|
+
private binaryReadMap4(map: TempBanResponse["modActions"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
3810
|
+
let len = reader.uint32(), end = reader.pos + len, key: keyof TempBanResponse["modActions"] | undefined, val: TempBanResponse["modActions"][any] | undefined;
|
3811
|
+
while (reader.pos < end) {
|
3812
|
+
let [fieldNo, wireType] = reader.tag();
|
3813
|
+
switch (fieldNo) {
|
3814
|
+
case 1:
|
3815
|
+
key = reader.string();
|
3816
|
+
break;
|
3817
|
+
case 2:
|
3818
|
+
val = ModActionData.internalBinaryRead(reader, reader.uint32(), options);
|
3819
|
+
break;
|
3820
|
+
default: throw new globalThis.Error("unknown map entry field for field devvit.plugin.redditapi.newmodmail.TempBanResponse.mod_actions");
|
3821
|
+
}
|
3822
|
+
}
|
3823
|
+
map[key ?? ""] = val ?? ModActionData.create();
|
3824
|
+
}
|
3825
|
+
internalBinaryWrite(message: TempBanResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
3826
|
+
/* devvit.plugin.redditapi.newmodmail.ConversationData conversations = 1; */
|
3827
|
+
if (message.conversations)
|
3828
|
+
ConversationData.internalBinaryWrite(message.conversations, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
3829
|
+
/* map<string, devvit.plugin.redditapi.newmodmail.MessageData> messages = 2; */
|
3830
|
+
for (let k of globalThis.Object.keys(message.messages)) {
|
3831
|
+
writer.tag(2, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
|
3832
|
+
writer.tag(2, WireType.LengthDelimited).fork();
|
3833
|
+
MessageData.internalBinaryWrite(message.messages[k], writer, options);
|
3834
|
+
writer.join().join();
|
3835
|
+
}
|
3836
|
+
/* devvit.plugin.redditapi.newmodmail.ConversationUserData user = 3; */
|
3837
|
+
if (message.user)
|
3838
|
+
ConversationUserData.internalBinaryWrite(message.user, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
3839
|
+
/* map<string, devvit.plugin.redditapi.newmodmail.ModActionData> mod_actions = 4; */
|
3840
|
+
for (let k of globalThis.Object.keys(message.modActions)) {
|
3841
|
+
writer.tag(4, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
|
3842
|
+
writer.tag(2, WireType.LengthDelimited).fork();
|
3843
|
+
ModActionData.internalBinaryWrite(message.modActions[k], writer, options);
|
3844
|
+
writer.join().join();
|
3845
|
+
}
|
3846
|
+
/* repeated google.protobuf.StringValue fields = 5; */
|
3847
|
+
for (let i = 0; i < message.fields.length; i++)
|
3848
|
+
StringValue.internalBinaryWrite(message.fields[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
3849
|
+
/* google.protobuf.StringValue reason = 6; */
|
3850
|
+
if (message.reason)
|
3851
|
+
StringValue.internalBinaryWrite(message.reason, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
3852
|
+
/* google.protobuf.StringValue message = 7; */
|
3853
|
+
if (message.message)
|
3854
|
+
StringValue.internalBinaryWrite(message.message, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
3855
|
+
let u = options.writeUnknownFields;
|
3856
|
+
if (u !== false)
|
3857
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
3858
|
+
return writer;
|
3859
|
+
}
|
3860
|
+
}
|
3861
|
+
/**
|
3862
|
+
* @generated MessageType for protobuf message devvit.plugin.redditapi.newmodmail.TempBanResponse
|
3863
|
+
*/
|
3864
|
+
export const TempBanResponse = new TempBanResponse$Type();
|
3865
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
3866
|
+
class SubredditsResponse$Type extends MessageType<SubredditsResponse> {
|
3867
|
+
constructor() {
|
3868
|
+
super("devvit.plugin.redditapi.newmodmail.SubredditsResponse", [
|
3869
|
+
{ no: 1, name: "subreddits", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => SubredditsResponse_SubredditData } }
|
3870
|
+
]);
|
3871
|
+
}
|
3872
|
+
create(value?: PartialMessage<SubredditsResponse>): SubredditsResponse {
|
3873
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
3874
|
+
message.subreddits = {};
|
3875
|
+
if (value !== undefined)
|
3876
|
+
reflectionMergePartial<SubredditsResponse>(this, message, value);
|
3877
|
+
return message;
|
3878
|
+
}
|
3879
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SubredditsResponse): SubredditsResponse {
|
3880
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
3881
|
+
while (reader.pos < end) {
|
3882
|
+
let [fieldNo, wireType] = reader.tag();
|
3883
|
+
switch (fieldNo) {
|
3884
|
+
case /* map<string, devvit.plugin.redditapi.newmodmail.SubredditsResponse.SubredditData> subreddits */ 1:
|
3885
|
+
this.binaryReadMap1(message.subreddits, reader, options);
|
3886
|
+
break;
|
3887
|
+
default:
|
3888
|
+
let u = options.readUnknownField;
|
3889
|
+
if (u === "throw")
|
3890
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
3891
|
+
let d = reader.skip(wireType);
|
3892
|
+
if (u !== false)
|
3893
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
3894
|
+
}
|
3895
|
+
}
|
3896
|
+
return message;
|
3897
|
+
}
|
3898
|
+
private binaryReadMap1(map: SubredditsResponse["subreddits"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
3899
|
+
let len = reader.uint32(), end = reader.pos + len, key: keyof SubredditsResponse["subreddits"] | undefined, val: SubredditsResponse["subreddits"][any] | undefined;
|
3900
|
+
while (reader.pos < end) {
|
3901
|
+
let [fieldNo, wireType] = reader.tag();
|
3902
|
+
switch (fieldNo) {
|
3903
|
+
case 1:
|
3904
|
+
key = reader.string();
|
3905
|
+
break;
|
3906
|
+
case 2:
|
3907
|
+
val = SubredditsResponse_SubredditData.internalBinaryRead(reader, reader.uint32(), options);
|
3908
|
+
break;
|
3909
|
+
default: throw new globalThis.Error("unknown map entry field for field devvit.plugin.redditapi.newmodmail.SubredditsResponse.subreddits");
|
3910
|
+
}
|
3911
|
+
}
|
3912
|
+
map[key ?? ""] = val ?? SubredditsResponse_SubredditData.create();
|
3913
|
+
}
|
3914
|
+
internalBinaryWrite(message: SubredditsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
3915
|
+
/* map<string, devvit.plugin.redditapi.newmodmail.SubredditsResponse.SubredditData> subreddits = 1; */
|
3916
|
+
for (let k of globalThis.Object.keys(message.subreddits)) {
|
3917
|
+
writer.tag(1, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
|
3918
|
+
writer.tag(2, WireType.LengthDelimited).fork();
|
3919
|
+
SubredditsResponse_SubredditData.internalBinaryWrite(message.subreddits[k], writer, options);
|
3920
|
+
writer.join().join();
|
3921
|
+
}
|
3922
|
+
let u = options.writeUnknownFields;
|
3923
|
+
if (u !== false)
|
3924
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
3925
|
+
return writer;
|
3926
|
+
}
|
3927
|
+
}
|
3928
|
+
/**
|
3929
|
+
* @generated MessageType for protobuf message devvit.plugin.redditapi.newmodmail.SubredditsResponse
|
3930
|
+
*/
|
3931
|
+
export const SubredditsResponse = new SubredditsResponse$Type();
|
3932
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
3933
|
+
class SubredditsResponse_SubredditData$Type extends MessageType<SubredditsResponse_SubredditData> {
|
3934
|
+
constructor() {
|
3935
|
+
super("devvit.plugin.redditapi.newmodmail.SubredditsResponse.SubredditData", [
|
3936
|
+
{ no: 1, name: "community_icon", kind: "message", T: () => StringValue },
|
3937
|
+
{ no: 2, name: "key_color", kind: "message", T: () => StringValue },
|
3938
|
+
{ no: 3, name: "display_name", kind: "message", T: () => StringValue },
|
3939
|
+
{ no: 4, name: "name", kind: "message", T: () => StringValue },
|
3940
|
+
{ no: 5, name: "subscribers", kind: "message", T: () => Int32Value },
|
3941
|
+
{ no: 6, name: "primary_color", kind: "message", T: () => StringValue },
|
3942
|
+
{ no: 7, name: "id", kind: "message", T: () => StringValue },
|
3943
|
+
{ no: 8, name: "last_updated", kind: "message", T: () => StringValue },
|
3944
|
+
{ no: 9, name: "icon", kind: "message", T: () => StringValue }
|
3945
|
+
]);
|
3946
|
+
}
|
3947
|
+
create(value?: PartialMessage<SubredditsResponse_SubredditData>): SubredditsResponse_SubredditData {
|
3948
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
3949
|
+
if (value !== undefined)
|
3950
|
+
reflectionMergePartial<SubredditsResponse_SubredditData>(this, message, value);
|
3951
|
+
return message;
|
3952
|
+
}
|
3953
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SubredditsResponse_SubredditData): SubredditsResponse_SubredditData {
|
3954
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
3955
|
+
while (reader.pos < end) {
|
3956
|
+
let [fieldNo, wireType] = reader.tag();
|
3957
|
+
switch (fieldNo) {
|
3958
|
+
case /* google.protobuf.StringValue community_icon */ 1:
|
3959
|
+
message.communityIcon = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.communityIcon);
|
3960
|
+
break;
|
3961
|
+
case /* google.protobuf.StringValue key_color */ 2:
|
3962
|
+
message.keyColor = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.keyColor);
|
3963
|
+
break;
|
3964
|
+
case /* google.protobuf.StringValue display_name */ 3:
|
3965
|
+
message.displayName = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.displayName);
|
3966
|
+
break;
|
3967
|
+
case /* google.protobuf.StringValue name */ 4:
|
3968
|
+
message.name = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.name);
|
3969
|
+
break;
|
3970
|
+
case /* google.protobuf.Int32Value subscribers */ 5:
|
3971
|
+
message.subscribers = Int32Value.internalBinaryRead(reader, reader.uint32(), options, message.subscribers);
|
3972
|
+
break;
|
3973
|
+
case /* google.protobuf.StringValue primary_color */ 6:
|
3974
|
+
message.primaryColor = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.primaryColor);
|
3975
|
+
break;
|
3976
|
+
case /* google.protobuf.StringValue id */ 7:
|
3977
|
+
message.id = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.id);
|
3978
|
+
break;
|
3979
|
+
case /* google.protobuf.StringValue last_updated */ 8:
|
3980
|
+
message.lastUpdated = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.lastUpdated);
|
3981
|
+
break;
|
3982
|
+
case /* google.protobuf.StringValue icon */ 9:
|
3983
|
+
message.icon = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.icon);
|
3984
|
+
break;
|
3985
|
+
default:
|
3986
|
+
let u = options.readUnknownField;
|
3987
|
+
if (u === "throw")
|
3988
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
3989
|
+
let d = reader.skip(wireType);
|
3990
|
+
if (u !== false)
|
3991
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
3992
|
+
}
|
3993
|
+
}
|
3994
|
+
return message;
|
3995
|
+
}
|
3996
|
+
internalBinaryWrite(message: SubredditsResponse_SubredditData, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
3997
|
+
/* google.protobuf.StringValue community_icon = 1; */
|
3998
|
+
if (message.communityIcon)
|
3999
|
+
StringValue.internalBinaryWrite(message.communityIcon, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
4000
|
+
/* google.protobuf.StringValue key_color = 2; */
|
4001
|
+
if (message.keyColor)
|
4002
|
+
StringValue.internalBinaryWrite(message.keyColor, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
4003
|
+
/* google.protobuf.StringValue display_name = 3; */
|
4004
|
+
if (message.displayName)
|
4005
|
+
StringValue.internalBinaryWrite(message.displayName, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
4006
|
+
/* google.protobuf.StringValue name = 4; */
|
4007
|
+
if (message.name)
|
4008
|
+
StringValue.internalBinaryWrite(message.name, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
4009
|
+
/* google.protobuf.Int32Value subscribers = 5; */
|
4010
|
+
if (message.subscribers)
|
4011
|
+
Int32Value.internalBinaryWrite(message.subscribers, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
4012
|
+
/* google.protobuf.StringValue primary_color = 6; */
|
4013
|
+
if (message.primaryColor)
|
4014
|
+
StringValue.internalBinaryWrite(message.primaryColor, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
4015
|
+
/* google.protobuf.StringValue id = 7; */
|
4016
|
+
if (message.id)
|
4017
|
+
StringValue.internalBinaryWrite(message.id, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
4018
|
+
/* google.protobuf.StringValue last_updated = 8; */
|
4019
|
+
if (message.lastUpdated)
|
4020
|
+
StringValue.internalBinaryWrite(message.lastUpdated, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
4021
|
+
/* google.protobuf.StringValue icon = 9; */
|
4022
|
+
if (message.icon)
|
4023
|
+
StringValue.internalBinaryWrite(message.icon, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
4024
|
+
let u = options.writeUnknownFields;
|
4025
|
+
if (u !== false)
|
4026
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
4027
|
+
return writer;
|
4028
|
+
}
|
4029
|
+
}
|
4030
|
+
/**
|
4031
|
+
* @generated MessageType for protobuf message devvit.plugin.redditapi.newmodmail.SubredditsResponse.SubredditData
|
4032
|
+
*/
|
4033
|
+
export const SubredditsResponse_SubredditData = new SubredditsResponse_SubredditData$Type();
|
4034
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
4035
|
+
class UnreadCountResponse$Type extends MessageType<UnreadCountResponse> {
|
4036
|
+
constructor() {
|
4037
|
+
super("devvit.plugin.redditapi.newmodmail.UnreadCountResponse", [
|
4038
|
+
{ no: 1, name: "archived", kind: "message", T: () => Int32Value },
|
4039
|
+
{ no: 2, name: "appeals", kind: "message", T: () => Int32Value },
|
4040
|
+
{ no: 3, name: "highlighted", kind: "message", T: () => Int32Value },
|
4041
|
+
{ no: 4, name: "notifications", kind: "message", T: () => Int32Value },
|
4042
|
+
{ no: 5, name: "join_requests", kind: "message", T: () => Int32Value },
|
4043
|
+
{ no: 6, name: "filtered", kind: "message", T: () => Int32Value },
|
4044
|
+
{ no: 7, name: "new", kind: "message", T: () => Int32Value },
|
4045
|
+
{ no: 8, name: "inprogress", kind: "message", T: () => Int32Value },
|
4046
|
+
{ no: 9, name: "mod", kind: "message", T: () => Int32Value }
|
4047
|
+
]);
|
4048
|
+
}
|
4049
|
+
create(value?: PartialMessage<UnreadCountResponse>): UnreadCountResponse {
|
4050
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
4051
|
+
if (value !== undefined)
|
4052
|
+
reflectionMergePartial<UnreadCountResponse>(this, message, value);
|
4053
|
+
return message;
|
4054
|
+
}
|
4055
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UnreadCountResponse): UnreadCountResponse {
|
4056
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
4057
|
+
while (reader.pos < end) {
|
4058
|
+
let [fieldNo, wireType] = reader.tag();
|
4059
|
+
switch (fieldNo) {
|
4060
|
+
case /* google.protobuf.Int32Value archived */ 1:
|
4061
|
+
message.archived = Int32Value.internalBinaryRead(reader, reader.uint32(), options, message.archived);
|
4062
|
+
break;
|
4063
|
+
case /* google.protobuf.Int32Value appeals */ 2:
|
4064
|
+
message.appeals = Int32Value.internalBinaryRead(reader, reader.uint32(), options, message.appeals);
|
4065
|
+
break;
|
4066
|
+
case /* google.protobuf.Int32Value highlighted */ 3:
|
4067
|
+
message.highlighted = Int32Value.internalBinaryRead(reader, reader.uint32(), options, message.highlighted);
|
4068
|
+
break;
|
4069
|
+
case /* google.protobuf.Int32Value notifications */ 4:
|
4070
|
+
message.notifications = Int32Value.internalBinaryRead(reader, reader.uint32(), options, message.notifications);
|
4071
|
+
break;
|
4072
|
+
case /* google.protobuf.Int32Value join_requests */ 5:
|
4073
|
+
message.joinRequests = Int32Value.internalBinaryRead(reader, reader.uint32(), options, message.joinRequests);
|
4074
|
+
break;
|
4075
|
+
case /* google.protobuf.Int32Value filtered */ 6:
|
4076
|
+
message.filtered = Int32Value.internalBinaryRead(reader, reader.uint32(), options, message.filtered);
|
4077
|
+
break;
|
4078
|
+
case /* google.protobuf.Int32Value new */ 7:
|
4079
|
+
message.new = Int32Value.internalBinaryRead(reader, reader.uint32(), options, message.new);
|
4080
|
+
break;
|
4081
|
+
case /* google.protobuf.Int32Value inprogress */ 8:
|
4082
|
+
message.inprogress = Int32Value.internalBinaryRead(reader, reader.uint32(), options, message.inprogress);
|
4083
|
+
break;
|
4084
|
+
case /* google.protobuf.Int32Value mod */ 9:
|
4085
|
+
message.mod = Int32Value.internalBinaryRead(reader, reader.uint32(), options, message.mod);
|
4086
|
+
break;
|
4087
|
+
default:
|
4088
|
+
let u = options.readUnknownField;
|
4089
|
+
if (u === "throw")
|
4090
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
4091
|
+
let d = reader.skip(wireType);
|
4092
|
+
if (u !== false)
|
4093
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
4094
|
+
}
|
4095
|
+
}
|
4096
|
+
return message;
|
4097
|
+
}
|
4098
|
+
internalBinaryWrite(message: UnreadCountResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
4099
|
+
/* google.protobuf.Int32Value archived = 1; */
|
4100
|
+
if (message.archived)
|
4101
|
+
Int32Value.internalBinaryWrite(message.archived, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
4102
|
+
/* google.protobuf.Int32Value appeals = 2; */
|
4103
|
+
if (message.appeals)
|
4104
|
+
Int32Value.internalBinaryWrite(message.appeals, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
4105
|
+
/* google.protobuf.Int32Value highlighted = 3; */
|
4106
|
+
if (message.highlighted)
|
4107
|
+
Int32Value.internalBinaryWrite(message.highlighted, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
4108
|
+
/* google.protobuf.Int32Value notifications = 4; */
|
4109
|
+
if (message.notifications)
|
4110
|
+
Int32Value.internalBinaryWrite(message.notifications, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
4111
|
+
/* google.protobuf.Int32Value join_requests = 5; */
|
4112
|
+
if (message.joinRequests)
|
4113
|
+
Int32Value.internalBinaryWrite(message.joinRequests, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
4114
|
+
/* google.protobuf.Int32Value filtered = 6; */
|
4115
|
+
if (message.filtered)
|
4116
|
+
Int32Value.internalBinaryWrite(message.filtered, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
4117
|
+
/* google.protobuf.Int32Value new = 7; */
|
4118
|
+
if (message.new)
|
4119
|
+
Int32Value.internalBinaryWrite(message.new, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
4120
|
+
/* google.protobuf.Int32Value inprogress = 8; */
|
4121
|
+
if (message.inprogress)
|
4122
|
+
Int32Value.internalBinaryWrite(message.inprogress, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
4123
|
+
/* google.protobuf.Int32Value mod = 9; */
|
4124
|
+
if (message.mod)
|
4125
|
+
Int32Value.internalBinaryWrite(message.mod, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
4126
|
+
let u = options.writeUnknownFields;
|
4127
|
+
if (u !== false)
|
4128
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
4129
|
+
return writer;
|
4130
|
+
}
|
4131
|
+
}
|
4132
|
+
/**
|
4133
|
+
* @generated MessageType for protobuf message devvit.plugin.redditapi.newmodmail.UnreadCountResponse
|
4134
|
+
*/
|
4135
|
+
export const UnreadCountResponse = new UnreadCountResponse$Type();
|